From: Pedro Alves <palves@redhat.com>
To: Viesturs Veckalns <viesturs.veckalns@cern.ch>,
"gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: GDB support: Couldn't find method
Date: Mon, 20 Aug 2018 15:13:00 -0000 [thread overview]
Message-ID: <ba5b0a61-0867-d5d1-a574-90de829cb4b7@redhat.com> (raw)
In-Reply-To: <3FAD73755234DA45BB9E7CAA811E9CB70102A57F27@CERNXCHG73.cern.ch>
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
prev parent reply other threads:[~2018-08-20 15:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-04 11:48 Viesturs Veckalns
2018-08-08 0:27 ` Simon Marchi
2018-08-08 11:15 ` Viesturs Veckalns
2018-08-20 15:03 ` Simon Marchi
2018-08-20 15:13 ` Pedro Alves [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ba5b0a61-0867-d5d1-a574-90de829cb4b7@redhat.com \
--to=palves@redhat.com \
--cc=gdb@sourceware.org \
--cc=viesturs.veckalns@cern.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox