New "info sources" args [-dirname | -basename] [--] [REGEXP]
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 31 Mar 2019 18:06:39 +0000 (20:06 +0200)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 3 Aug 2019 19:26:37 +0000 (21:26 +0200)
commit28cd9371e84144df3b9b8903770f71d39824f8f8
treeeabecba93ab6fc3251c69a91ca9c3062f0d4619c
parent6d6231ed5822782b76a2aad268cc4891e4f91dfc
New "info sources" args [-dirname | -basename] [--] [REGEXP]

gdb/ChangeLog

2019-08-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>

* symtab.c (filename_partial_match_opts): New struct type.
(struct output_source_filename_data): New members
regexp, c_regexp, partial_match.
(output_source_filename): Use new members to decide to print file.
(info_sources_option_defs): New variable.
(make_info_sources_options_def_group, print_info_sources_header,
info_sources_command_completer):
New functions.
(info_sources_command): Read new optional arguments.
(_initialize_symtab): Update info sources help.
gdb/ChangeLog
gdb/symtab.c