From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30297 invoked by alias); 20 Mar 2007 01:44:55 -0000 Received: (qmail 30288 invoked by uid 22791); 20 Mar 2007 01:44:54 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 20 Mar 2007 01:44:51 +0000 Received: from kahikatea.snap.net.nz (157.61.255.123.dynamic.snap.net.nz [123.255.61.157]) by viper.snap.net.nz (Postfix) with ESMTP id 2C2063D9A80; Tue, 20 Mar 2007 13:44:48 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 745784F72E; Tue, 20 Mar 2007 13:44:46 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17919.15500.439138.600411@kahikatea.snap.net.nz> Date: Tue, 20 Mar 2007 01:44:00 -0000 To: Denis PILAT Cc: gdb-patches Subject: Re: [RFC] -thread-info new command In-Reply-To: <45FE9E6A.3030906@st.com> References: <45FE9E6A.3030906@st.com> X-Mailer: VM 7.19 under Emacs 22.0.95.6 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-03/txt/msg00178.txt.bz2 > +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