This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA]: add reason code and silent flag to decode_line_1
J. Johnston writes:
> David, here is the updated patch based on your suggestion. It is definitely
> cleaner in the short-term.
>
> 2003-12-09 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.
The linespec.c/.h part is approved.