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: Roland McGrath <roland at redhat dot com>
- To: Mark Kettenis <kettenis at chello dot nl>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 4 Dec 2003 15:04:06 -0800
- Subject: Re: [PATCH] fix error reporting for td_ta_event_addr calls
> 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!
Committed yesterday, sorry I forgot to post then.
> 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.