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: [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


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