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.
This commit is contained in:
Andrew Burgess 2013-09-04 16:34:07 +00:00
parent 0e80562ec2
commit 47061676f3
2 changed files with 9 additions and 1 deletions

View File

@ -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>

View File

@ -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;