diff options
author | aburgess <aburgess> | 2013-09-04 16:34:06 +0000 |
---|---|---|
committer | aburgess <aburgess> | 2013-09-04 16:34:06 +0000 |
commit | 0fac8c92c5a2d8f795fc09879f4dacf8a51b832b (patch) | |
tree | 98bfdae9f1662ee60d58a46d1ef570d87aabc13a /gdb | |
parent | 44dcf2541f9c932d1dd73c04fa6c6cf79a02804e (diff) | |
download | gdb-0fac8c92c5a2d8f795fc09879f4dacf8a51b832b.tar.gz |
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')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/sh64-tdep.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index de171119e54..a8bc3cb99f6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-09-04 Andrew Burgess <aburgess@broadcom.com> + + * sh64-tdep.c (sh64_do_register): Return after printing message + about unavailable register contents. + 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com> Pedro Alves <palves@redhat.com> diff --git a/gdb/sh64-tdep.c b/gdb/sh64-tdep.c index b640b1d2aad..e9ce42bef9d 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; |