disabling gdb new thread notification - Linux
This is a discussion on disabling gdb new thread notification - Linux ; Hi everyone.
When debug multithreaded program under gdb, it prints notification when
new thread is created or exited. How can I disable this?
Thanks in advance....
-
disabling gdb new thread notification
Hi everyone.
When debug multithreaded program under gdb, it prints notification when
new thread is created or exited. How can I disable this?
Thanks in advance.
-
Re: disabling gdb new thread notification
"Dmitry Chumack" writes:
> When debug multithreaded program under gdb, it prints notification when
> new thread is created or exited. How can I disable this?
Use the source, Luke.
In gdb-6.5/gdb/linux-thread-db.c:
case TD_CREATE:
/* Call attach_thread whether or not we already know about a
thread with this thread ID. */
attach_thread (ptid, msg.th_p, &ti, 1);
^ this is the 'verbose' parameter below
and later:
if (verbose)
printf_unfiltered (_("[New %s]\n"), target_pid_to_str (ptid));
Therefore, short of modifying the source and rebuilding gdb, you
can't disable these messages.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.