mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 20:12:01 +08:00
2003-12-17 Jeff Johnston <jjohnstn@redhat.com>
* linespec.h (decode_line_1): Add new not_found_ptr parameter. * linespec.c (decode_line_1): Add new parameter. Pass on new parameter to decode_variable and symtab_from_filename functions. (decode_variable): Add new not_found_ptr parameter. Throw exception rather than failing if the not_found_ptr is non-null and the function is not found. (symtab_from_filename): Add new not_found_ptr parametr. Throw exception rather than failing if the not_found_ptr is non-null and the source file is not found. * breakpoint.c: Change all callers of decode_line_1 to add default extra parameter for decode_line_1 calls. * tracepoint.c: Ditto. * cli/cli-cmds.c: Ditto.
This commit is contained in:
@ -557,7 +557,7 @@ edit_command (char *arg, int from_tty)
|
||||
/* Now should only be one argument -- decode it in SAL */
|
||||
|
||||
arg1 = arg;
|
||||
sals = decode_line_1 (&arg1, 0, 0, 0, 0);
|
||||
sals = decode_line_1 (&arg1, 0, 0, 0, 0, 0);
|
||||
|
||||
if (! sals.nelts) return; /* C++ */
|
||||
if (sals.nelts > 1) {
|
||||
@ -681,7 +681,7 @@ list_command (char *arg, int from_tty)
|
||||
dummy_beg = 1;
|
||||
else
|
||||
{
|
||||
sals = decode_line_1 (&arg1, 0, 0, 0, 0);
|
||||
sals = decode_line_1 (&arg1, 0, 0, 0, 0, 0);
|
||||
|
||||
if (!sals.nelts)
|
||||
return; /* C++ */
|
||||
@ -714,9 +714,9 @@ list_command (char *arg, int from_tty)
|
||||
else
|
||||
{
|
||||
if (dummy_beg)
|
||||
sals_end = decode_line_1 (&arg1, 0, 0, 0, 0);
|
||||
sals_end = decode_line_1 (&arg1, 0, 0, 0, 0, 0);
|
||||
else
|
||||
sals_end = decode_line_1 (&arg1, 0, sal.symtab, sal.line, 0);
|
||||
sals_end = decode_line_1 (&arg1, 0, sal.symtab, sal.line, 0, 0);
|
||||
if (sals_end.nelts == 0)
|
||||
return;
|
||||
if (sals_end.nelts > 1)
|
||||
|
Reference in New Issue
Block a user