From 2d5f09f0fa6ac12b2e6747926dd5f645a0d9d826 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Wed, 8 Jul 2009 12:03:01 +0000 Subject: [PATCH] * tui/tui-stack.c (tui_make_status_line): Display PC as ?? if unknown. --- gdb/ChangeLog | 4 ++++ gdb/tui/tui-stack.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a406d57a74c..b7c2297261e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-07-07 Ulrich Weigand + + * tui/tui-stack.c (tui_make_status_line): Display PC as ?? if unknown. + 2009-07-07 Pierre Muller * breakpoint.c (set_raw_breakpoint): Remove static modifier. diff --git a/gdb/tui/tui-stack.c b/gdb/tui/tui-stack.c index 62743cd652e..54d091df482 100644 --- a/gdb/tui/tui-stack.c +++ b/gdb/tui/tui-stack.c @@ -103,7 +103,8 @@ tui_make_status_line (struct tui_locator_element *loc) /* Translate PC address. */ pc_out = tui_sfileopen (128); - fputs_filtered (paddress (loc->gdbarch, loc->addr), pc_out); + fputs_filtered (loc->gdbarch? paddress (loc->gdbarch, loc->addr) : "??", + pc_out); pc_buf = tui_file_get_strbuf (pc_out); pc_width = strlen (pc_buf); -- 2.30.2