aboutsummaryrefslogtreecommitdiff
path: root/gdb/sh64-tdep.c
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@broadcom.com>2013-09-04 16:34:07 +0000
committerAndrew Burgess <aburgess@broadcom.com>2013-09-04 16:34:07 +0000
commit47061676f3da3108858c4bb154c4de16afde28b1 (patch)
treebced9abb859210a566fc7265a58807fe1bf2a522 /gdb/sh64-tdep.c
parent0e80562ec226eb129dd814ceba6f5dfb3632f581 (diff)
downloadbinutils-47061676f3da3108858c4bb154c4de16afde28b1.zip
binutils-47061676f3da3108858c4bb154c4de16afde28b1.tar.gz
binutils-47061676f3da3108858c4bb154c4de16afde28b1.tar.bz2
Avoid printing unavailable/optimized out registers (sh64-tdep.c)
https://sourceware.org/ml/gdb-patches/2013-08/msg00834.html gdb/ChangeLog * sh64-tdep.c (sh64_do_register): Return after printing message about unavailable register contents.
Diffstat (limited to 'gdb/sh64-tdep.c')
-rw-r--r--gdb/sh64-tdep.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/sh64-tdep.c b/gdb/sh64-tdep.c
index b640b1d..e9ce42b 100644
--- a/gdb/sh64-tdep.c
+++ b/gdb/sh64-tdep.c
@@ -2045,7 +2045,10 @@ sh64_do_register (struct gdbarch *gdbarch, struct ui_file *file,
/* Get the data in raw format. */
if (!deprecated_frame_register_read (frame, regnum, raw_buffer))
- fprintf_filtered (file, "*value not available*\n");
+ {
+ fprintf_filtered (file, "*value not available*\n");
+ return;
+ }
get_formatted_print_options (&opts, 'x');
opts.deref_ref = 1;