From: Daniel Jacobowitz Date: Sat, 20 Mar 2010 05:17:10 +0000 (+0000) Subject: * tui/tui-disasm.c (tui_get_begin_asm_address): Default to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=957b8b5a0f7479a25848d22860f2056793aa1ff1;p=binutils-gdb.git * tui/tui-disasm.c (tui_get_begin_asm_address): Default to get_current_arch. * tui/tui-layout.c (extract_display_start_addr): Likewise. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3155ce81f93..6507b66274f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2010-03-20 Daniel Jacobowitz + + * tui/tui-disasm.c (tui_get_begin_asm_address): Default to + get_current_arch. + * tui/tui-layout.c (extract_display_start_addr): Likewise. + 2010-03-19 Stan Shebs * ax-gdb.c (gen_fetch): Handle bool. diff --git a/gdb/tui/tui-disasm.c b/gdb/tui/tui-disasm.c index c7b684ac04a..cb8358eb143 100644 --- a/gdb/tui/tui-disasm.c +++ b/gdb/tui/tui-disasm.c @@ -21,6 +21,7 @@ along with this program. If not, see . */ #include "defs.h" +#include "arch-utils.h" #include "symtab.h" #include "breakpoint.h" #include "frame.h" @@ -330,7 +331,7 @@ tui_get_begin_asm_address (struct gdbarch **gdbarch_p, CORE_ADDR *addr_p) { struct tui_gen_win_info *locator; struct tui_locator_element *element; - struct gdbarch *gdbarch = NULL; + struct gdbarch *gdbarch = get_current_arch (); CORE_ADDR addr; locator = tui_locator_win_info_ptr (); diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c index e9ff1e68689..0c622b97b2b 100644 --- a/gdb/tui/tui-layout.c +++ b/gdb/tui/tui-layout.c @@ -21,6 +21,7 @@ along with this program. If not, see . */ #include "defs.h" +#include "arch-utils.h" #include "command.h" #include "symtab.h" #include "frame.h" @@ -522,7 +523,7 @@ static void extract_display_start_addr (struct gdbarch **gdbarch_p, CORE_ADDR *addr_p) { enum tui_layout_type cur_layout = tui_current_layout (); - struct gdbarch *gdbarch = NULL; + struct gdbarch *gdbarch = get_current_arch (); CORE_ADDR addr; CORE_ADDR pc; struct symtab_and_line cursal = get_current_source_symtab_and_line ();