This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Fix for incorrect warning string
- To: "John S. Kallal" <jskallal at home dot com>
- Subject: Re: [PATCH] Fix for incorrect warning string
- From: Fernando Nasser <fnasser at redhat dot com>
- Date: Wed, 23 May 2001 21:08:42 -0400
- CC: gdb-patches at sources dot redhat dot com, Rob Savoye <rob at welcomehome dot org>
- Organization: Red Hat Canada
- References: <3B047AC3.31FD065B@home.com>
It looks like an obvious fix to me.
What do you think Rob?
Fernando
"John S. Kallal" wrote:
>
> 2001-05-17 John S Kallal <jskallal@home.com>
>
> * thread-db.c (enable_thread_event_reporting) : Correct
> warning message about getting thread creation breakpoint.
>
> --- ../gdb+dejagnu-20010516-org/gdb/thread-db.c Wed May 16 12:03:55 2001
> +++ gdb/thread-db.c Thu May 17 13:59:20 2001
> @@ -389,37 +389,37 @@ enable_thread_event_reporting (void)
>
> /* Get address for thread creation breakpoint. */
> err = td_ta_event_addr_p (thread_agent, TD_CREATE, ¬ify);
> if (err != TD_OK)
> {
> warning ("Unable to get location for thread creation breakpoint:
> %s",
> thread_db_err_str (err));
> return;
> }
>
> /* Set up the breakpoint. */
> td_create_bp_addr = (CORE_ADDR) notify.u.bptaddr;
> create_thread_event_breakpoint (td_create_bp_addr);
>
> /* Get address for thread death breakpoint. */
> err = td_ta_event_addr_p (thread_agent, TD_DEATH, ¬ify);
> if (err != TD_OK)
> {
> - warning ("Unable to get location for thread creation breakpoint:
> %s",
> + warning ("Unable to get location for thread death breakpoint:
> %s",
> thread_db_err_str (err));
> return;
> }
>
> /* Set up the breakpoint. */
> td_death_bp_addr = (CORE_ADDR) notify.u.bptaddr;
> create_thread_event_breakpoint (td_death_bp_addr);
> }
>
> static void
> disable_thread_event_reporting (void)
> {
> td_thr_events_t events;
>
> /* Set the process wide mask saying we aren't interested in any
> events anymore. */
> td_event_emptyset (&events);
> td_ta_set_event_p (thread_agent, &events);
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9