diff options
author | Pedro Alves <pedro@codesourcery.com> | 2012-03-01 20:48:50 +0000 |
---|---|---|
committer | Pedro Alves <pedro@codesourcery.com> | 2012-03-01 20:48:50 +0000 |
commit | 28ba1e58b6af971416b80acf05617700359fe430 (patch) | |
tree | 96ffab3de4a2e178d6bbb2918f8c596f0f11784b /gdb/frame.h | |
parent | fe594ff61b3961f1a96025198173c7572330784f (diff) | |
download | gdb-28ba1e58b6af971416b80acf05617700359fe430.tar.gz |
2012-03-01 Pedro Alves <palves@redhat.com>
PR gdb/13767
gdb/
* frame.c (read_frame_register_unsigned): New.
* frame.h (read_frame_register_unsigned): Declare.
* i387-tdep.c (print_i387_status_word): New parameter `status_p'.
Handle it.
(print_i387_control_word): New parameter `control_p'. Handle it.
(i387_print_float_info): Handle unavailable float registers.
gdb/testsuite/
* gdb.trace/unavailable.exp (gdb_unavailable_floats): New.
(gdb_collect_globals_test): Call it.
Diffstat (limited to 'gdb/frame.h')
-rw-r--r-- | gdb/frame.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/frame.h b/gdb/frame.h index 67dddbdb747..101db3b3eee 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -500,6 +500,13 @@ extern ULONGEST frame_unwind_register_unsigned (struct frame_info *frame, extern ULONGEST get_frame_register_unsigned (struct frame_info *frame, int regnum); +/* Read a a register from this, or unwind a register from the next + frame. Note that the read_frame methods are wrappers to + get_frame_register_value, that do not throw if the result is + optimized out or unavailable. */ + +extern int read_frame_register_unsigned (struct frame_info *frame, + int regnum, ULONGEST *val); /* Get the value of the register that belongs to this FRAME. This function is a wrapper to the call sequence ``frame_register_unwind |