[PATCH] fix error reporting for td_ta_event_addr calls

Mark Kettenis kettenis@chello.nl
Wed Dec 3 17:24:00 GMT 2003

   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!


   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.

More information about the Gdb-patches mailing list