From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1468 invoked by alias); 30 Nov 2007 15:03:06 -0000 Received: (qmail 1456 invoked by uid 22791); 30 Nov 2007 15:03:05 -0000 X-Spam-Check-By: sourceware.org Received: from mail.tut.by (HELO speedy.tutby.com) (195.137.160.40) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 30 Nov 2007 15:02:51 +0000 X-VBA32: Checked Received: from [194.105.120.70] (account spiridenok@tut.by) by speedy.tutby.com (CommuniGate Pro WEBUSER 5.1.12) with HTTP id 442287840; Fri, 30 Nov 2007 17:02:46 +0200 From: "Dima S" Subject: Re: C++ names in backtrace To: Paul Koning Cc: gdb@sourceware.org X-Mailer: CommuniGate Pro WebUser v5.1.12 Date: Fri, 30 Nov 2007 15:03:00 -0000 Message-ID: In-Reply-To: <18256.9079.496311.286@pkoning-laptop.equallogic.com> References: <18256.9079.496311.286@pkoning-laptop.equallogic.com> MIME-Version: 1.0 Content-Type: text/plain;charset=windows-1251;format="flowed" Content-Transfer-Encoding: 8bit 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: 2007-11/txt/msg00292.txt.bz2 Thanks for tips! I've tried both of them (print demangle + set language), none of them works :( $>gdb GNU gdb 6.7.50.20071104 Copyright (C) 2007 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "sparc-sun-solaris2.8"... (gdb) set print demangle (gdb) set language c++ (gdb) b WSLCLAG.cpp:120 No source file named WSLCLAG.cpp. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (WSLCLAG.cpp:120) pending. (gdb) run Starting program: warning: Temporarily disabling breakpoints for unloaded shared library "/usr/lib/ld.so.1" warning: Lowest section in /usr/lib/libdl.so.1 is .dynamic at 00000094 Running 17 tests Breakpoint 1, _ZN7WSLCLAG7destroyEv (this=0x14fcd0) at WSLCLAG.cpp:120 120 int actuator_i = 0; (gdb) backtrace #0 _ZN7WSLCLAG7destroyEv (this=0x14fcd0) at WSLCLAG.cpp:120 #1 0x0002c5c8 in _ZN12WSLCLAGSStst21test_init_and_destroyEv (this=0x4b62c) at WSLCLAGtst.hpp:97 #2 0x0002c270 in _ZN50TestDescription_WSLCLAGSStst_test_init_and_destroy7runTestEv (this=0x4b660) at WSLCLAGtst.cpp:32 #3 0x0001df00 in _ZN7CxxTest19RealTestDescription3runEv (this=0x4b660) at ../../../xinc/cxxtest/RealDescriptions.cpp:96 #4 0x00026f04 in _ZN7CxxTest10TestRunner7runTestERNS_15TestDescriptionE (this=0xffbfe26f, td=@0x4b660) at ../../../xinc/cxxtest/TestRunner.h:74 #5 0x00026d7c in _ZN7CxxTest10TestRunner8runSuiteERNS_16SuiteDescriptionE (this=0xffbfe26f, sd=@0x4b63c) at ../../../xinc/cxxtest/TestRunner.h:61 #6 0x00026af0 in _ZN7CxxTest10TestRunner8runWorldEv (this=0xffbfe26f) at ../../../xinc/cxxtest/TestRunner.h:46 #7 0x00026968 in _ZN7CxxTest10TestRunner11runAllTestsERNS_12TestListenerE (listener=@0xffbfe358) at ../../../xinc/cxxtest/TestRunner.h:23 #8 0x000268c8 in _ZN7CxxTest14ErrorFormatter3runEv (this=0xffbfe358) at ../../../xinc/cxxtest/ErrorFormatter.h:47 #9 0x0001be64 in main () at WSLCLAGtst.cpp:20 Fri, 30 Nov 2007 09:51:35 -0500, Paul Koning > > Bobo> ...My question: - is there any way to let gdb display the real C++ > Bobo> names iso the mangled ones in commands like backtrace? > > Try "set print demangle". > > paul > ----------- IRR.BY ('Èç ðóê â ðóêè – Îíëàéí') – êðóïíåéøèé â Áåëàðóñè ñàéò ÷àñòíûõ îáúÿâëåíèé. http://irr.by