diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/arch-utils.c | 2 | ||||
-rw-r--r-- | gdb/gdbarch.c | 9 | ||||
-rw-r--r-- | gdb/gdbarch.h | 4 | ||||
-rwxr-xr-x | gdb/gdbarch.sh | 13 |
5 files changed, 36 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a7be1b1..5369a93 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2001-06-06 Jim Blandy <jimb@redhat.com> + + * 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. + 2001-06-06 Andrew Cagney <ac131313@redhat.com> * symfile.c (compare_psymbols): Replace PTR with void*. Delete diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index 733b2b9..4697001 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -705,6 +705,8 @@ initialize_current_architecture (void) "initialize_current_architecture: Selection of initial architecture failed"); } } + else + initialize_non_multiarch (); /* Create the ``set architecture'' command appending ``auto'' to the list of architectures. */ diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 2bd957f..95e9044 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -387,6 +387,15 @@ struct gdbarch startup_gdbarch = 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); +} + /* Create a new ``struct gdbarch'' based on information provided by ``struct gdbarch_info''. */ diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index 5b2bcac..2e9d35f 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -1834,6 +1834,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; diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index 14e88c3..57b1ab0 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 |