This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH]: hook gdbarch into corefiles.


If no one objects, I will check in the following change.
It groks the architecture from a corefile, and passes it
to gdbarch (just like is currently done for an executable
file).

2000-04-26  Michael Snyder  <msnyder@cleaver.cygnus.com>

        * corelow.c (core_open): call set_gdbarch_from_file so that 
        gdbarch becomes aware of the architecture encoded in the 
	corefile.

Index: corelow.c
===================================================================
RCS file: /cvs/src/src/gdb/corelow.c,v
retrieving revision 1.1.1.6
diff -p -r1.1.1.6 corelow.c
*** corelow.c   1999/12/08 02:50:37     1.1.1.6
--- corelow.c   2000/04/26 21:19:11
*************** core_open (filename, from_tty)
*** 318,323 ****
--- 318,325 ----
      error ("\"%s\": Can't find sections: %s",
           bfd_get_filename (core_bfd), bfd_errmsg (bfd_get_error ()));

+   set_gdbarch_from_file (core_bfd);
+
    ontop = !push_target (&core_ops);
    discard_cleanups (old_chain);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]