diff options
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 " "; |