This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: [rfa] Printf debugging output in lin-lwp.c


Michael Snyder wrote:

> !             if (debug_lin_lwp)
> !               printf ("Delayed SIGSTOP caught for %s.\n",
> !                       target_pid_to_str (lp->pid));
> !

FYI, once this is in, someone should go through and change the
printf()'s to:

	fprintf_unfiltered (gdb_stdlog, ...);

> +
> +   add_show_from_set (add_set_cmd ("lin-lwp", no_class, var_zinteger,
> +                                 (char *) &debug_lin_lwp,
> +                                 "Set debugging of linux lwp module.\n\
> + Enables printf debugging output.\n",
> +                                     &setdebuglist),
> +                    &showdebuglist);

Yep, thanks!

	Andrew


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