aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-08-01 09:17:14 -0600
committerTom Tromey <tromey@adacore.com>2019-10-02 09:53:17 -0600
commit5c281dbb2458be9d58355e865f527e96b40bcd8c (patch)
treeabffdd8f111e441f5bb01c67edae916c56de2135 /gdb/ChangeLog
parentd3d323915c034ed9f7465568e1876aa269ab1d0f (diff)
downloadgdb-5c281dbb2458be9d58355e865f527e96b40bcd8c.zip
gdb-5c281dbb2458be9d58355e865f527e96b40bcd8c.tar.gz
gdb-5c281dbb2458be9d58355e865f527e96b40bcd8c.tar.bz2
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.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c2417cf..d419fdf 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2019-10-02 Tom Tromey <tromey@adacore.com>
+
+ * source.c (select_source_symtab): Don't call
+ decode_line_with_current_source.
+
2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
* symtab.c (lookup_global_symbol): Search global block.