mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-15 05:01:13 +08:00
frame: add frame_id_build_unavailable_stack_special
Add a function to build a frame_id for a frame with unavailable stack and with a special identifier address. 2014-01-16 Markus Metzger <markus.t.metzger@intel.com> * frame.h (frame_id_build_unavailable_stack_special): New. * frame.c (frame_id_build_unavailable_stack_special): New.
This commit is contained in:
16
gdb/frame.c
16
gdb/frame.c
@ -528,6 +528,22 @@ frame_id_build_unavailable_stack (CORE_ADDR code_addr)
|
||||
return id;
|
||||
}
|
||||
|
||||
/* See frame.h. */
|
||||
|
||||
struct frame_id
|
||||
frame_id_build_unavailable_stack_special (CORE_ADDR code_addr,
|
||||
CORE_ADDR special_addr)
|
||||
{
|
||||
struct frame_id id = null_frame_id;
|
||||
|
||||
id.stack_status = FID_STACK_UNAVAILABLE;
|
||||
id.code_addr = code_addr;
|
||||
id.code_addr_p = 1;
|
||||
id.special_addr = special_addr;
|
||||
id.special_addr_p = 1;
|
||||
return id;
|
||||
}
|
||||
|
||||
struct frame_id
|
||||
frame_id_build (CORE_ADDR stack_addr, CORE_ADDR code_addr)
|
||||
{
|
||||
|
Reference in New Issue
Block a user