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]

[RFA/commit] fix problem when debugging a core file on Tru64


Hello,

Core file debugging on Tru64 is slightly broken:

    (gdb) core core
    Reading symbols from /sbin/loader...done.
    Loaded symbols for /sbin/loader
    Reading symbols from /usr/shlib/libc.so...done.
    Loaded symbols for /usr/shlib/libc.so
    You can't do that without a process to debug.

The problem comes again from the solib create_inferior_hook which tries
to resume the execution of the inferior.  In the case of debugging
a core file, this cannot (and doesn't need to) be done.

I fixed it by checking whether the target_can_run or not. It seemed
logical to check that target feature before trying to resume the inferior.
However, it introduces another use of the global current_target. I can't
remember if we are trying to eliminate this global or not...

2008-06-02  Joel Brobecker  <brobecker@adacore.com>

        * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
        the target cannot run.

Tested on alpha-tru64. Will commit in a week if no comment.

-- 
Joel

Attachment: solib-osf.diff
Description: Text document


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