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....

+ Reply to Thread
Results 1 to 2 of 2

Thread: disabling gdb new thread notification

  1. 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.


  2. 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.

+ Reply to Thread