This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: Group section
- From: Josh Stone <jistone at redhat dot com>
- To: SASHA NICOLAS DA ROCHA PINHEIRO <darochapinhe at wisc dot edu>, "elfutils-devel at sourceware dot org" <elfutils-devel at sourceware dot org>
- Date: Tue, 21 Mar 2017 12:53:12 -0700
- Subject: Re: Group section
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jistone at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com C8BBB85541
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com C8BBB85541
- References: <BN3PR0601MB134547D85B4522F200CBC93AA63D0@BN3PR0601MB1345.namprd06.prod.outlook.com>
On 03/21/2017 12:38 PM, SASHA NICOLAS DA ROCHA PINHEIRO wrote:
>
> Hi Josh
> I am getting error on the following code, and it looks like to be related to group sections.
What is the error?
> As you can see I changed the dwarf_elf_init to dwarf_begin_elf, but passed NULL on the third parameter.
> Do you know how should I actually deal with it?
>
> 91 bool DwarfHandle::init_dbg()
> 92 {
> 93 //int status;
> 94 //Dwarf_Error err;
> 95 if (init_dwarf_status == dwarf_status_ok) {
> 96 return true;
> 97 }
> 98
> 99 if (init_dwarf_status == dwarf_status_error) {
> 100 return false;
> 101 }
> 102
> 103 //status = dwarf_elf_init(file->e_elfp(), DW_DLC_READ,
> 104 // err_func, &file_data, &file_data, &err);
> 105
> 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 }
>