From: Mark Wielaard <mark@klomp.org>
To: SASHA NICOLAS DA ROCHA PINHEIRO <darochapinhe@wisc.edu>
Cc: Josh Stone <jistone@redhat.com>,
"elfutils-devel@sourceware.org" <elfutils-devel@sourceware.org>
Subject: Re: Group section
Date: Tue, 21 Mar 2017 21:24:00 -0000 [thread overview]
Message-ID: <20170321212429.GB2373@stream> (raw)
In-Reply-To: <BN3PR0601MB13452518E66297F9C53C39A6A63D0@BN3PR0601MB1345.namprd06.prod.outlook.com>
On Tue, Mar 21, 2017 at 08:46:25PM +0000, SASHA NICOLAS DA ROCHA PINHEIRO wrote:
> That's the problem. It says "no error" once, in another call it says
> "no reference value", and in another call "no DWARF information".
> [...]
> > 106Â Â Â Â file_data = dwarf_begin_elf(file->e_elfp(), DWARF_C_READ, NULL);Â Â Â Â Â Â Â Â Â Â Â Â
> > 107Â Â Â Â cerr << "Error message:" << dwarf_errmsg(-1) << endl;Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> > 108Â Â Â Â if (!file_data) {Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> > 109Â Â Â Â Â Â Â Â init_dwarf_status = dwarf_status_error;Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> > 110Â Â Â Â Â Â Â Â return false;Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> > 111Â Â Â Â }
Note that if file_data != NULL then the result of dwarf_errmsg (-1)
is undefined. You should first check file_data == NULL before calling
dwarf_errmsg (-1).
Cheers,
Mark
prev parent reply other threads:[~2017-03-21 21:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-21 19:39 SASHA NICOLAS DA ROCHA PINHEIRO
2017-03-21 19:53 ` Josh Stone
2017-03-21 20:46 ` SASHA NICOLAS DA ROCHA PINHEIRO
2017-03-21 21:24 ` Mark Wielaard [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=20170321212429.GB2373@stream \
--to=mark@klomp.org \
--cc=darochapinhe@wisc.edu \
--cc=elfutils-devel@sourceware.org \
--cc=jistone@redhat.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).