This is the mail archive of the gdb-patches@sources.redhat.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]
Other format: [Raw text]

Re: [PATCH/RFA] Don't gdbarch_init for core files


On Thu, May 09, 2002 at 11:04:27PM -0400, Andrew Cagney wrote:

 > Instead of removing the call, is it possible to reasonably detect if the 
 > core file belongs to the current architecture (either in corefile.c) or 
 > in gdbarch_FOO_init().

How about this?

	* corelow.c (core_open): If the core's arch is known and
	different from the current, reinitialize gdbarch based on
	the core file.

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>

Attachment: core-patch
Description: Text document


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