This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [CRIS] Reading core file selects "wrong" mach
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: orjan dot friberg at axis dot com
- Cc: kettenis at gnu dot org, gdb-patches at sources dot redhat dot com, hans-peter dot nilsson at axis dot com
- Date: Mon, 13 Dec 2004 16:44:59 +0100
- Subject: Re: [CRIS] Reading core file selects "wrong" mach
> Date: Mon, 13 Dec 2004 15:41:05 +0100
> From: Orjan Friberg <orjanf@axis.com>
> I guess the answer to this is 'no', but would it be possible (and correct) to
> use whatever machine was set when loading the corresponding program into GDB?
(I assume by that, you mean "as opposed to the core file".)
IMHO when there's a difference, the mach setting from the core
file should override (or at least augment) what's in the
program, because the core file supposedly comes from the "real"
hardware, so it supposedly has a narrower mach setting than that
in the program. Incompatible differences should be flagged as
an error (as in: wrong program used with the core file).
So, in my opinion "no".
(In this case, I think there should be no difference in mach
settings between core and program, but that wasn't the
question.)
brgds, H-P