This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
void +frame_read_unsigned_register (struct frame_info *frame, int regnum, + ULONGEST *val) +{ + frame_unwind_unsigned_register (get_next_frame (frame), regnum, val); +}So, the register belonging to this frame.
Yes. The old roughly equivalent function was get_saved_register.
To be pedantic, no. A frame's registers are ALWAYS found by unwinding get_next_frame(FRAME). It just so happens that registers unwound from get_next_frame(current_frame) come from the register cache.That means the register which would be in the hardware registers if this frame were current, right?
Definitly no :-)Should we allow NULL to imply the current frame?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |