From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7820 invoked by alias); 12 Mar 2008 09:14:17 -0000 Received: (qmail 7805 invoked by uid 22791); 12 Mar 2008 09:14:16 -0000 X-Spam-Check-By: sourceware.org Received: from omta04ps.mx.bigpond.com (HELO omta04ps.mx.bigpond.com) (144.140.83.156) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 12 Mar 2008 09:13:56 +0000 Received: from oaamta01ps.mx.bigpond.com ([58.172.128.171]) by omta04ps.mx.bigpond.com with ESMTP id <20080312091353.SAAC25793.omta04ps.mx.bigpond.com@oaamta01ps.mx.bigpond.com> for ; Wed, 12 Mar 2008 09:13:53 +0000 Received: from kiwi.contemporary.net.au ([58.172.128.171]) by oaamta01ps.mx.bigpond.com with ESMTP id <20080312091353.QEDS24732.oaamta01ps.mx.bigpond.com@kiwi.contemporary.net.au> for ; Wed, 12 Mar 2008 09:13:53 +0000 Received: from [172.16.100.186] (kaka.contemporary.net.au [172.16.100.186]) by kiwi.contemporary.net.au (8.14.2/8.14.2) with ESMTP id m2C9Dp9l006003 for ; Wed, 12 Mar 2008 20:13:52 +1100 Message-ID: <47D79ECF.7000900@rtems.org> Date: Wed, 12 Mar 2008 11:50:00 -0000 From: Chris Johns User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: gdb@sourceware.org Subject: Can back trace be stopped from always prints "char*" strings ? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-03/txt/msg00126.txt.bz2 Hello, I have a union being passed to a function. The union is: typedef union { /** This is a pointer to a string name. */ const char *name_p; /** This is the actual 32-bit "raw" integer name. */ uint32_t name_u32; } Objects_Name; The problem is the bt command ties to read the string pointed to by name_p how-ever this can be any value if the name_u32 field has been set. This has side effects on the embedded target I am using like killing the session. Is there a way to stop the bt accessing the char* data and just printing the pointer value ? Regards Chris