* 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.
This commit is contained in:
Jim Blandy 2001-06-06 17:47:28 +00:00
parent 6da13e9a21
commit ceaa8edf7e
5 changed files with 36 additions and 0 deletions

View File

@ -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

View File

@ -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. */

View File

@ -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''. */

View File

@ -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;

View File

@ -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