public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: "Dima S" <spiridenok@tut.by>
To: Paul Koning <pkoning@equallogic.com>
Cc: gdb@sourceware.org
Subject: Re: C++ names in backtrace
Date: Fri, 30 Nov 2007 15:03:00 -0000	[thread overview]
Message-ID: <web-442287840@speedy.tutby.com> (raw)
In-Reply-To: <18256.9079.496311.286@pkoning-laptop.equallogic.com>

Thanks for tips! I've tried both of them (print demangle + set language), 
none of them works :(

$>gdb <my_cpp_application>
GNU gdb 6.7.50.20071104
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
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: <my_cpp_application>
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 <pkoning@equallogic.com>

> 
> 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

  reply	other threads:[~2007-11-30 15:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-30 10:38 Bobo
2007-11-30 14:46 ` Daniel Jacobowitz
2007-11-30 14:52 ` Paul Koning
2007-11-30 15:03   ` Dima S [this message]
2007-11-30 18:45     ` Stan Shebs
2007-12-05 12:49       ` Dima S
     [not found]         ` <18262.48200.586110.349260@pkoning-laptop.equallogic.com>
2007-12-07  8:29           ` Dima S
     [not found]     ` <18256.10018.785226.339384@pkoning-laptop.equallogic.com>
2007-12-05 12:47       ` Dima S

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=web-442287840@speedy.tutby.com \
    --to=spiridenok@tut.by \
    --cc=gdb@sourceware.org \
    --cc=pkoning@equallogic.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).