This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
cplus_demangle decl.
- From: Yannick PERRET <yperret at bat710 dot univ-lyon1 dot fr>
- To: binutils at sources dot redhat dot com
- Date: Tue, 19 Feb 2002 14:08:43 +0100
- Subject: cplus_demangle decl.
- Organization: UFR Info - Universite Claude Bernard Lyon1
Hi.
I'm using BFD to extract names from a program.
I saw that libiberty gives some functions to demangle C++
names, but these functions are not declared in bfd.h nor
bfdlink.h, and I cannot find any "iberty.h" or "libiberty.h"
on my system, so I add to declare myself the functions
from demangle.h in binutils tree.
Is it a bad installation on my system ?
(I'm under linux/debian, using binutils-2.11.2).
Is there an other way to perform that ?
By the way, with this BFD version, I have a little
problem with the function 'bfd_find_nearest_line':
names and files are extracted well, but the line
number is alway 0.
i.e.:
from BFD: lo1
/home/yperret/funC/Project/fnccheck/FunctionCheck-3.0/test/simple_test_calib.c
0
from BFD: lo2
/home/yperret/funC/Project/fnccheck/FunctionCheck-3.0/test/simple_test_calib.c
0
(...)
With our previous version of binutils (binutils-2.10.1)
the line number was right. Is it a bug ?
(the program opened with bfd is compiled and linked with -g option,
and I check it with 'objdump -g' and line number relative stuff is
ok).
Thank you for any help.
Regards,
--
Yannick