GDB support: Couldn't find method

Pedro Alves palves@redhat.com
Mon Aug 20 15:13:00 GMT 2018


On 08/04/2018 12:48 PM, 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

Note that "set debug-file-directory" is used to point GDB at
debug symbol files, not source files.  For the latter, you'd use
the "directory" command.

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

Since it works for Simon downthread, and absent a more complete
reproducer, I'd suggest trying a newer GDB version.  7.11 is a few
releases behind by now.

Thanks,
Pedro Alves



More information about the Gdb mailing list