This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: GDB support: Couldn't find method
- From: Simon Marchi <simon dot marchi at polymtl dot ca>
- To: Viesturs Veckalns <viesturs dot veckalns at cern dot ch>
- Cc: gdb at sourceware dot org
- Date: Tue, 07 Aug 2018 20:27:44 -0400
- Subject: Re: GDB support: Couldn't find method
- References: <3FAD73755234DA45BB9E7CAA811E9CB70102A57F27@CERNXCHG73.cern.ch>
On 2018-08-04 07:48, Viesturs Veckalns wrote:
Hello!
I compile a binary by linking a library:
-L${LIBDIR}/lib -lCompoundHisto
In the debug session the library is listed under
info sharedlibrary
Additionally, I requested to read symbols from the relevant source
files by
set debug-file-directory ${LIBDIR}/interface
set debug-file-directory ${LIBDIR}/src
Nevertheless, I encounter the following problem:
p GetLevel(resultcode) -> GetHU(mo)
Couldn't find method CompoundHistoUnfolding::Level::GetHU
The methods are described in the source to build libCompoundHisto.so
What is wrong?
My gdb version is 7.11.
Viesturs
Hi Viesturs,
A sanity check to see if GDB knows about any GetHU method would to do
(gdb) ptype GetLevel(resultcode)
or
(gdb) ptype CompoundHistoUnfolding::Level
Do you see GetHU listed?
Simon