This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 1/3] Implement info sources args [-d | -b] [--] [REGEXP]
- From: Tom Tromey <tom at tromey dot com>
- To: Philippe Waroquiers <philippe dot waroquiers at skynet dot be>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 07 Jun 2019 12:09:13 -0600
- Subject: Re: [RFA 1/3] Implement info sources args [-d | -b] [--] [REGEXP]
- References: <20190331190803.7248-1-philippe.waroquiers@skynet.be> <20190331190803.7248-2-philippe.waroquiers@skynet.be>
>>>>> "Philippe" == Philippe Waroquiers <philippe.waroquiers@skynet.be> writes:
Philippe> 2019-03-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
Philippe> * symtab.c (struct output_source_filename_data): New members
Philippe> regexp, c_regexp, dirname, basename.
Philippe> (output_source_filename): Use new members to decide to print file.
Philippe> (extract_info_sources_args): New function.
Philippe> (print_info_sources_header): New function.
Philippe> (info_sources_command): Read new optional arguments.
Philippe> (_initialize_symtab): Update info sources help.
This looks essentially good, but I think it should wait for Pedro's
argument-parsing series and then be rewritten to take advantage of that.
Tom