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: [commit/AIX] Fix error happening while loading a core file


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


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