This is the mail archive of the gdb-patches@sourceware.org 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 2/2] Fix linking on non-x86* after libgdb.a removal


Jan Kratochvil wrote:
> On Thu, 05 Jan 2012 15:46:19 +0100, Ulrich Weigand wrote:
> > Maybe a better way would be to just unconditionally add corelow.o to
> > COMMON_OBS and be done with it?  What would be the harm in having the
> > core target always present, even in configurations where no core file
> > formats will be recognized?
> 
> Currently GDB writes:
> GDB can't read core files on this machine.
> 
> I guess it will load the core file without recognizing its registers?
> I do not have available any core file from the legacy *-tdep.c archs.
> That can be considered a regression.

I guess so.  Well, it should be straightforward to add a check to
corelow.c and give the same error message as above if:
- there are no old-style core_fns handlers installed at all, and
- there is no gdbarch handler for this core file type

That ought to fully replicate the current behaviour.

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


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