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


Michael Snyder wrote:
> > > I guess I really do need to know why the change was added in the first
> > > place (the message with the original patch doesn't describe the problem
> > > the patch is trying to solve).
> > > Just a guess - debugging a core file without an original binary?
>
> Bingo!   ;-)

Ah, but in that case, why not call set_gdbarch_from_file() only when exec_bfd is NULL?  As in:

  if (!exec_bfd)
    set_gdbarch_from_file (core_bfd);

I tested this, and it seems to solve the problems for me when testing my pending i386 multi-arch patches on Linux.

Mark




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