This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cplus_demangle decl.


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]