diff options
author | Jim Blandy <jimb@codesourcery.com> | 2001-06-06 17:47:28 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2001-06-06 17:47:28 +0000 |
commit | 32e84ebf59314972661d3983537337b630c9b6f9 (patch) | |
tree | ed87ca6780f84ad5d0d6422ffc0aaee708957114 /gdb/gdbarch.sh | |
parent | d91eab7f716a23d76b57eff02e2aefed1d0614d6 (diff) | |
download | gdb-32e84ebf59314972661d3983537337b630c9b6f9.tar.gz |
* gdbarch.sh: Changes to effect the following:
* gdbarch.c (initialize_non_multiarch): New function.
* gdbarch.h (initialize_non_multiarch): New declaration.
* arch-utils.c (initialize_current_architecture): For
non-multiarch configurations, call initialize_non_multiarch.
Diffstat (limited to 'gdb/gdbarch.sh')
-rwxr-xr-x | gdb/gdbarch.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index 14e88c30a83..57b1ab02339 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -1065,6 +1065,10 @@ extern void set_gdbarch_from_file (bfd *); extern void initialize_current_architecture (void); +/* For non-multiarched targets, do any initialization of the default + gdbarch object necessary after the _initialize_MODULE functions + have run. */ +extern void initialize_non_multiarch (); /* gdbarch trace variable */ extern int gdbarch_debug; @@ -1246,6 +1250,15 @@ cat <<EOF }; struct gdbarch *current_gdbarch = &startup_gdbarch; + +/* Do any initialization needed for a non-multiarch configuration + after the _initialize_MODULE functions have been run. */ +void +initialize_non_multiarch () +{ + alloc_gdbarch_data (&startup_gdbarch); + init_gdbarch_data (&startup_gdbarch); +} EOF # Create a new gdbarch struct |