aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-11-12 18:20:32 -0700
committerTom Tromey <tom@tromey.com>2019-12-20 09:15:54 -0700
commit52469d7673d716a4811c8ccec8cc8ef605992b31 (patch)
tree584e7f9fe47088989ab3ff1145e1206ae1268856 /gdb/ChangeLog
parent5d49bf1b698124fe21017105f84b18e29221b262 (diff)
downloadgdb-52469d7673d716a4811c8ccec8cc8ef605992b31.zip
gdb-52469d7673d716a4811c8ccec8cc8ef605992b31.tar.gz
gdb-52469d7673d716a4811c8ccec8cc8ef605992b31.tar.bz2
Reimplement tui_get_begin_asm_address
tui_get_begin_asm_address looks for the inferior's "main" to display it. I think this is incorrect in two ways. First, it should probably instead use the user's most recent source context, if one has been set. Second, it uses a hard-coded list of "main" names, but gdb already has a better approach to handling this. This patch fixes both of these problems. gdb/ChangeLog 2019-12-20 Tom Tromey <tom@tromey.com> * tui/tui-disasm.c (tui_get_begin_asm_address): Use get_current_source_symtab_and_line, and main_name. Change-Id: I77dc13d49148e8dec5aa3eeb357ce3968a68d0bd
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 f5d667e..e471536 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2019-12-20 Tom Tromey <tom@tromey.com>
+ * tui/tui-disasm.c (tui_get_begin_asm_address): Use
+ get_current_source_symtab_and_line, and main_name.
+
+2019-12-20 Tom Tromey <tom@tromey.com>
+
* tui/tui.c (tui_show_source): Update.
* tui/tui-winsource.h (tui_update_source_windows_with_line): Update.
* tui/tui-winsource.c (tui_update_source_windows_with_line): Take