mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-20 06:15:09 +08:00
2003-03-13 Andrew Cagney <cagney@redhat.com>
* frame.c (legacy_frame_p): New function. (get_prev_frame): Use legacy_frame_p. * frame.h (legacy_frame_p): Declare.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2003-03-13 Andrew Cagney <cagney@redhat.com>
|
||||||
|
|
||||||
|
* frame.c (legacy_frame_p): New function.
|
||||||
|
(get_prev_frame): Use legacy_frame_p.
|
||||||
|
* frame.h (legacy_frame_p): Declare.
|
||||||
|
|
||||||
2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
|
2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
|
||||||
|
|
||||||
* MAINTAINERS (write after approval): Alphabetically
|
* MAINTAINERS (write after approval): Alphabetically
|
||||||
|
14
gdb/frame.c
14
gdb/frame.c
@ -1327,10 +1327,7 @@ get_prev_frame (struct frame_info *this_frame)
|
|||||||
the legacy get_prev_frame method. Just don't try to unwind a
|
the legacy get_prev_frame method. Just don't try to unwind a
|
||||||
sentinel frame using that method - it doesn't work. All sentinal
|
sentinel frame using that method - it doesn't work. All sentinal
|
||||||
frames use the new unwind code. */
|
frames use the new unwind code. */
|
||||||
if ((DEPRECATED_INIT_FRAME_PC_P ()
|
if (legacy_frame_p (current_gdbarch)
|
||||||
|| DEPRECATED_INIT_FRAME_PC_FIRST_P ()
|
|
||||||
|| DEPRECATED_INIT_EXTRA_FRAME_INFO_P ()
|
|
||||||
|| FRAME_CHAIN_P ())
|
|
||||||
&& this_frame->level >= 0)
|
&& this_frame->level >= 0)
|
||||||
{
|
{
|
||||||
prev_frame = legacy_get_prev_frame (this_frame);
|
prev_frame = legacy_get_prev_frame (this_frame);
|
||||||
@ -1696,6 +1693,15 @@ deprecated_frame_xmalloc_with_cleanup (long sizeof_saved_regs,
|
|||||||
return frame;
|
return frame;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
legacy_frame_p (struct gdbarch *current_gdbarch)
|
||||||
|
{
|
||||||
|
return (DEPRECATED_INIT_FRAME_PC_P ()
|
||||||
|
|| DEPRECATED_INIT_FRAME_PC_FIRST_P ()
|
||||||
|
|| DEPRECATED_INIT_EXTRA_FRAME_INFO_P ()
|
||||||
|
|| FRAME_CHAIN_P ());
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
_initialize_frame (void)
|
_initialize_frame (void)
|
||||||
{
|
{
|
||||||
|
@ -701,4 +701,8 @@ extern struct context *deprecated_get_frame_context (struct frame_info *fi);
|
|||||||
extern void deprecated_set_frame_context (struct frame_info *fi,
|
extern void deprecated_set_frame_context (struct frame_info *fi,
|
||||||
struct context *context);
|
struct context *context);
|
||||||
|
|
||||||
|
/* Return non-zero if the architecture is relying on legacy frame
|
||||||
|
code. */
|
||||||
|
extern int legacy_frame_p (struct gdbarch *gdbarch);
|
||||||
|
|
||||||
#endif /* !defined (FRAME_H) */
|
#endif /* !defined (FRAME_H) */
|
||||||
|
Reference in New Issue
Block a user