OLD | NEW |
1 /* Definitions for dealing with stack frames, for GDB, the GNU debugger. | 1 /* Definitions for dealing with stack frames, for GDB, the GNU debugger. |
2 | 2 |
3 Copyright (C) 1986, 1988-1994, 1996-2004, 2007-2012 Free Software | 3 Copyright (C) 1986, 1988-1994, 1996-2004, 2007-2012 Free Software |
4 Foundation, Inc. | 4 Foundation, Inc. |
5 | 5 |
6 This file is part of GDB. | 6 This file is part of GDB. |
7 | 7 |
8 This program is free software; you can redistribute it and/or modify | 8 This program is free software; you can redistribute it and/or modify |
9 it under the terms of the GNU General Public License as published by | 9 it under the terms of the GNU General Public License as published by |
10 the Free Software Foundation; either version 3 of the License, or | 10 the Free Software Foundation; either version 3 of the License, or |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 | 493 |
494 extern LONGEST frame_unwind_register_signed (struct frame_info *frame, | 494 extern LONGEST frame_unwind_register_signed (struct frame_info *frame, |
495 int regnum); | 495 int regnum); |
496 extern LONGEST get_frame_register_signed (struct frame_info *frame, | 496 extern LONGEST get_frame_register_signed (struct frame_info *frame, |
497 int regnum); | 497 int regnum); |
498 extern ULONGEST frame_unwind_register_unsigned (struct frame_info *frame, | 498 extern ULONGEST frame_unwind_register_unsigned (struct frame_info *frame, |
499 int regnum); | 499 int regnum); |
500 extern ULONGEST get_frame_register_unsigned (struct frame_info *frame, | 500 extern ULONGEST get_frame_register_unsigned (struct frame_info *frame, |
501 int regnum); | 501 int regnum); |
502 | 502 |
| 503 /* Read a register from this, or unwind a register from the next |
| 504 frame. Note that the read_frame methods are wrappers to |
| 505 get_frame_register_value, that do not throw if the result is |
| 506 optimized out or unavailable. */ |
| 507 |
| 508 extern int read_frame_register_unsigned (struct frame_info *frame, |
| 509 int regnum, ULONGEST *val); |
503 | 510 |
504 /* Get the value of the register that belongs to this FRAME. This | 511 /* Get the value of the register that belongs to this FRAME. This |
505 function is a wrapper to the call sequence ``frame_register_unwind | 512 function is a wrapper to the call sequence ``frame_register_unwind |
506 (get_next_frame (FRAME))''. As per frame_register_unwind(), if | 513 (get_next_frame (FRAME))''. As per frame_register_unwind(), if |
507 VALUEP is NULL, the registers value is not fetched/computed. */ | 514 VALUEP is NULL, the registers value is not fetched/computed. */ |
508 | 515 |
509 extern void frame_register (struct frame_info *frame, int regnum, | 516 extern void frame_register (struct frame_info *frame, int regnum, |
510 int *optimizedp, int *unavailablep, | 517 int *optimizedp, int *unavailablep, |
511 enum lval_type *lvalp, | 518 enum lval_type *lvalp, |
512 CORE_ADDR *addrp, int *realnump, | 519 CORE_ADDR *addrp, int *realnump, |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
771 | 778 |
772 extern struct frame_info *create_new_frame (CORE_ADDR base, CORE_ADDR pc); | 779 extern struct frame_info *create_new_frame (CORE_ADDR base, CORE_ADDR pc); |
773 | 780 |
774 /* Return true if the frame unwinder for frame FI is UNWINDER; false | 781 /* Return true if the frame unwinder for frame FI is UNWINDER; false |
775 otherwise. */ | 782 otherwise. */ |
776 | 783 |
777 extern int frame_unwinder_is (struct frame_info *fi, | 784 extern int frame_unwinder_is (struct frame_info *fi, |
778 const struct frame_unwind *unwinder); | 785 const struct frame_unwind *unwinder); |
779 | 786 |
780 #endif /* !defined (FRAME_H) */ | 787 #endif /* !defined (FRAME_H) */ |
OLD | NEW |