delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/29/10:10:23

Date: Thu, 29 Jan 1998 16:10:06 +0100
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Message-Id: <199801291510.QAA09773@acp3bf.physik.rwth-aachen.de>
To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Cc: djgpp AT delorie DOT com
Subject: Re: Debugging with DJGPP
Newsgroups: comp.os.msdos.djgpp
Organization: RWTH Aachen, III. physikalisches Institut B

In article <6appup$pop AT freenet-news DOT carleton DOT ca> you wrote:

[...]
> Note that if you use C++, the names may be mangled, so your "foo" function
> might show up as something like:

> foo__Fv         (means foo(void) crashed)
> foo__Fii        (means foo(int, int) crashed)
> foo__FPi        (means foo(int *) crashed)
> foo__FcPc       (means foo(char, char *) crashed)

> The mangling scheme seems to be two underscores, 'F' on a function,

[... complicated try at de-mangling these manually del'ed]

Why so complicated? Just save the symify output to a file (symify -o
outfile does that, IIRC), and then run 'cxxfilt' on that. 'cxxfilt' is
part of the binutils distribution and it is meant exactly for this
purpose: de-mangle the text output from binary utilities (like our
'symify') that don't know how to do this themselves.

--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019