diff options
author | Pedro Alves <palves@redhat.com> | 2011-03-22 14:39:40 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-03-22 14:39:40 +0000 |
commit | ce406537179aa72cf126062f938ceed5eae0de4c (patch) | |
tree | ba934be238faa92922d726d0dba7751ddf29ad4b /gdb/printcmd.c | |
parent | da5d4055636ade8701e93544b7b1120bf7afedca (diff) | |
download | gdb-ce406537179aa72cf126062f938ceed5eae0de4c.zip gdb-ce406537179aa72cf126062f938ceed5eae0de4c.tar.gz gdb-ce406537179aa72cf126062f938ceed5eae0de4c.tar.bz2 |
* infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
errors when reading the `stop_pc'.
* printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
get_frame_pc.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 81360ad..f1ebb7e 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -759,9 +759,7 @@ pc_prefix (CORE_ADDR addr) CORE_ADDR pc; frame = get_selected_frame (NULL); - pc = get_frame_pc (frame); - - if (pc == addr) + if (get_frame_pc_if_available (frame, &pc) && pc == addr) return "=> "; } return " "; |