This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [commit/AIX] Fix error happening while loading a core file
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Joel Brobecker <brobecker at adacore dot com>
- Date: Sun, 15 Mar 2009 20:28:54 +0000
- Subject: Re: [commit/AIX] Fix error happening while loading a core file
- References: <20090315203320.GB9576@adacore.com>
On Sunday 15 March 2009 20:33:20, Joel Brobecker wrote:
> This is another regression that I noticed on AIX.
>
> The problem is that we had a check in xcoff_relocate_symtab that
> was supposed to detect the case where we're debugging a core file.
> The check was based on the inferior ptid being null.
I see, no multi-threaded/lwps core files on aix then, as
otherwise this would have already been noticed before.
> I replaced it
> with a check against target_has_execution, which seemed more
> appropriate.
>
> Is there a routine that performs this check?
Nope, that's what we've got. We'll have to do something about these
target_has_* for multi-process, but meanwhile, that's indeed the
correct test.
--
Pedro Alves