* tui/tui-stack.c (tui_make_status_line): Display PC as ?? if unknown.
authorUlrich Weigand <uweigand@de.ibm.com>
Wed, 8 Jul 2009 12:03:01 +0000 (12:03 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Wed, 8 Jul 2009 12:03:01 +0000 (12:03 +0000)
gdb/ChangeLog
gdb/tui/tui-stack.c

index a406d57a74cdd3741dedbca354b3b230445a2af3..b7c2297261e21c3f76e92500aaeaf7fd64508ee7 100644 (file)
@@ -1,3 +1,7 @@
+2009-07-07  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * tui/tui-stack.c (tui_make_status_line): Display PC as ?? if unknown.
+
 2009-07-07  Pierre Muller  <muller@ics.u-strasbg.fr>
 
        * breakpoint.c (set_raw_breakpoint): Remove static modifier.
index 62743cd652e5c9e96d29239a8c08d85ccf15deb5..54d091df482bb6d6e56daca4422ff1acfa2c6af7 100644 (file)
@@ -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);