This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] fix error reporting for td_ta_event_addr calls
- From: Mark Kettenis <kettenis at chello dot nl>
- To: roland at redhat dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 3 Dec 2003 18:23:44 +0100 (CET)
- Subject: Re: [PATCH] fix error reporting for td_ta_event_addr calls
- References: <200312030251.hB32pxHO021802@magilla.sf.frob.com>
Date: Tue, 2 Dec 2003 18:51:59 -0800
From: Roland McGrath <roland@redhat.com>
As it stands, if the libthread_db function td_ta_event_addr fails,
gdb will report "warning: Unable to get location for thread creation
breakpoint: generic 'call succeeded'", having discarded the actual error
code from the function. This patch fixes that.
Approved to commit?
Looks good to me, so, yes please!
Mark
2003-12-02 Roland McGrath <roland@redhat.com>
* thread-db.c (enable_thread_event): Change return type to
td_err_e. Return TD_OK or error code.
(enable_thread_event_reporting): Update callers.