diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2009-07-08 12:03:01 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2009-07-08 12:03:01 +0000 |
commit | 2d5f09f0fa6ac12b2e6747926dd5f645a0d9d826 (patch) | |
tree | 806a8aae31e5b1ce39c3ef3e03251e8078eec86a /gdb/tui | |
parent | b97514f2dcf21c07bbaeebee05049ebc1c0ee9e0 (diff) | |
download | gdb-2d5f09f0fa6ac12b2e6747926dd5f645a0d9d826.zip gdb-2d5f09f0fa6ac12b2e6747926dd5f645a0d9d826.tar.gz gdb-2d5f09f0fa6ac12b2e6747926dd5f645a0d9d826.tar.bz2 |
* tui/tui-stack.c (tui_make_status_line): Display PC as ?? if unknown.
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/tui-stack.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/tui/tui-stack.c b/gdb/tui/tui-stack.c index 62743cd..54d091d 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); |