From 8372a7cb96e9d193cb1f85f3fd2c01e38c33a750 Mon Sep 17 00:00:00 2001 From: Markus Metzger Date: Wed, 18 Dec 2013 14:13:54 +0100 Subject: 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 * frame.h (frame_id_build_unavailable_stack_special): New. * frame.c (frame_id_build_unavailable_stack_special): New. --- gdb/frame.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'gdb/frame.c') diff --git a/gdb/frame.c b/gdb/frame.c index 10d486c..b72d5e4 100644 --- a/gdb/frame.c +++ b/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) { -- cgit v1.1