[prev in list] [next in list] [prev in thread] [next in thread]
List: gdb-patches
Subject: [PATCH] Fix for incorrect warning string
From: fnasser () redhat ! com (Fernando Nasser)
Date: 2001-05-23 18:11:00
Message-ID: 3B0C5F1A.121C1794 () redhat ! com
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic