aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2-frame.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-02-15 21:29:26 +0000
committerMark Kettenis <kettenis@gnu.org>2004-02-15 21:29:26 +0000
commit8f22cb9068670ce9c634e55028877721e7863e63 (patch)
treee8dee1ae23e90d8fbcf3079f982bd5a6ca2cec5c /gdb/dwarf2-frame.h
parent046a4708e43cc23af647089c058c034ff23adec0 (diff)
downloadgdb-8f22cb9068670ce9c634e55028877721e7863e63.zip
gdb-8f22cb9068670ce9c634e55028877721e7863e63.tar.gz
gdb-8f22cb9068670ce9c634e55028877721e7863e63.tar.bz2
* dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
* dwarf2-frame.c (dwarf2_frame_data): New variable. (struct dwarf2_frame_ops): New. (dwarf2_frame_default_init_reg): New function, based on dwarf2_frame_init_reg. (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function. (dwarf2_frame_init_reg): Call architecture-specific function. (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data. (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data instead of dwarf2_frame_data. (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data. Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
Diffstat (limited to 'gdb/dwarf2-frame.h')
-rw-r--r--gdb/dwarf2-frame.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/dwarf2-frame.h b/gdb/dwarf2-frame.h
index b650a84..4bb313c 100644
--- a/gdb/dwarf2-frame.h
+++ b/gdb/dwarf2-frame.h
@@ -71,6 +71,13 @@ struct dwarf2_frame_state_reg
enum dwarf2_frame_reg_rule how;
};
+/* Set the architecture-specific register state initialization
+ function for GDBARCH to INIT_REG. */
+
+extern void dwarf2_frame_set_init_reg (struct gdbarch *gdbarch,
+ void (*init_reg) (struct gdbarch *, int,
+ struct dwarf2_frame_state_reg *));
+
/* Return the frame unwind methods for the function that contains PC,
or NULL if it can't be handled by DWARF CFI frame unwinder. */