Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [nathanw_sa] src/gnu/dist/toolchain/gdb



Module Name:    src
Committed By:   nathanw
Date:           Thu Jan  9 03:32:12 UTC 2003

Modified Files:
        src/gnu/dist/toolchain/gdb [nathanw_sa]: nbsd-thread.c

Log Message:
Change of strategy: Instead of trying to be clever with the
new_objfile hook to determine when to push the thread target onto the
target stack, just use it to detect the presence of libpthread, and
always push the target in attach() and create_inferior(), and unpush
the target in detach() and mourn_inferior(). This is more reliable,
and avoids some complicated situations (such as attaching to a
previously attached process; the new_objfile hook is not called
again).  As a result, a few more routines have to be defensive about
whether or not to reset inferior_pid or call the original child
operation.

Encapsulate the thread debugging activation and deactivation.

Use nbsd_thread_active to keep track of whether we've really got
thread debugging going, and introduce a new varabile
nbsd_thread_present to track the presence of libpthread in a file.

Use the coreops_suppress_target hack so that the target list gets our
core operations instead of the original one; this makes "target
netbsd-core foo.core" work as well as "gdb foo foo.core"


To generate a diff of this commit:
cvs rdiff -r1.1.2.6 -r1.1.2.7 src/gnu/dist/toolchain/gdb/nbsd-thread.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index