Don't call decode_line_with_current_source from select_source_symtab
authorTom Tromey <tromey@adacore.com>
Thu, 1 Aug 2019 15:17:14 +0000 (09:17 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 2 Oct 2019 15:53:17 +0000 (09:53 -0600)
commit5c281dbb2458be9d58355e865f527e96b40bcd8c
treeabffdd8f111e441f5bb01c67edae916c56de2135
parentd3d323915c034ed9f7465568e1876aa269ab1d0f
Don't call decode_line_with_current_source from select_source_symtab

select_source_symtab currently calls decode_line_with_current_source.
However, this function iterates over all program spaces, and so it is
possible that it will return a "main" from some other program space.

This patch changes select_source_symtab to simply use the symbol it
already found in the current program space.

gdb/ChangeLog
2019-10-02  Tom Tromey  <tromey@adacore.com>

* source.c (select_source_symtab): Don't call
decode_line_with_current_source.
gdb/ChangeLog
gdb/source.c
This page took 0.024846 seconds and 4 git commands to generate.