This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] -thread-info new command
- From: Nick Roberts <nickrob at snap dot net dot nz>
- To: Denis PILAT <denis dot pilat at st dot com>
- Cc: gdb-patches <gdb-patches at sourceware dot org>
- Date: Tue, 20 Mar 2007 13:44:44 +1200
- Subject: Re: [RFC] -thread-info new command
- References: <45FE9E6A.3030906@st.com>
> +enum gdb_rc
> +gdb_thread_info (struct ui_out *uiout, char *tidstr, char **error_message)
> +{
> + return catch_exceptions_with_msg (uiout, do_captured_thread_info, tidstr,
> + error_message, RETURN_MASK_ALL);
> +}
This has the same problem as gdb_thread_select i.e gdb_thread_info returns type
enum gdb_rc but catch_exceptions_with_msg returns type int. I did suggest a
patch for this:
http://sourceware.org/ml/gdb-patches/2006-10/msg00220.html
(Re: [PATCH] PR mi/2086 -break-insert missing error diagnostic)
but the thread stopped at that point. I think that we should resolve this
issue before adding further similar functions.
--
Nick http://www.inet.net.nz/~nickrob