aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-layout.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2010-03-20 05:17:10 +0000
committerDaniel Jacobowitz <drow@false.org>2010-03-20 05:17:10 +0000
commit957b8b5a0f7479a25848d22860f2056793aa1ff1 (patch)
treeb1baf4be277c3feee9d107aac8f9f98dc50e1051 /gdb/tui/tui-layout.c
parent515cc1798ab98d4c4ac382e0f88084a07493bb06 (diff)
downloadgdb-957b8b5a0f7479a25848d22860f2056793aa1ff1.zip
gdb-957b8b5a0f7479a25848d22860f2056793aa1ff1.tar.gz
gdb-957b8b5a0f7479a25848d22860f2056793aa1ff1.tar.bz2
* tui/tui-disasm.c (tui_get_begin_asm_address): Default to
get_current_arch. * tui/tui-layout.c (extract_display_start_addr): Likewise.
Diffstat (limited to 'gdb/tui/tui-layout.c')
-rw-r--r--gdb/tui/tui-layout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c
index e9ff1e6..0c622b9 100644
--- a/gdb/tui/tui-layout.c
+++ b/gdb/tui/tui-layout.c
@@ -21,6 +21,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#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 ();