Hi all,
I am trying to parse a location list given as an sec_offset.
How do I get this offset value that points to .debug_loc so I can call
dwarf_getlocations()?
Should I pass this offset as the second parameter of this call?
Sasha
Well, I have been trying to use the Dwarf_Attribute.
If you see the snippet below, locationAttribute is acquired by doing
dwarf_attr(&e, DW_AT_location, &locationAttribute);
and &e is the DW_TAG_variable DIE.
Dwarf_Op * exprs = NULL;
size_t exprlen = 0;
std::vector locDesc
As you can see the following variables have distinct locations:
[81] variable abbrev: 5
name (string) "a"
decl_file(data1) sasha.c (1)
decl_line(data1) 12
type (
Hi Mark,
first of all, thanks for giving me a direction here.
I am now trying to design the changes needed to be done in Dyninst.
So far we have only used the functions dwarf_* under libdw.
What I understood is that libdw is kinda divided in subsets of functions,
dwarf_*, dwfl_* and dwelf_*.
I d
Wednesday, June 10, 2020 6:33 AM
To: Sasha Da Rocha Pinheiro ;
elfutils-devel@sourceware.org
Subject: Re: location list
Hi Sasha,
On Tue, 2020-06-09 at 16:38 +, Sasha Da Rocha Pinheiro via
Elfutils-devel wrote:
> I am now trying to design the changes needed to be done in Dyninst.
> So f
Hi,
we are currently dealing with multiple separate debug files, the normal
stripped ones put in .debug/ folder and now the ones generated by DWZ and put
into .dwz/ folder.
When loading a normal stripped debug files who has a dwz file, I saw the same
DIE (same id) twice with different data. Woul
ovember 4, 2020 7:35 AM
To: Sasha Da Rocha Pinheiro ;
elfutils-devel@sourceware.org
Cc: Tim Haines ; b...@cs.wisc.edu
Subject: Re: multi debug files and artificial module
Hi Sasha,
On Tue, 2020-11-03 at 21:37 +, Sasha Da Rocha Pinheiro via
Elfutils-devel wrote:
> we are currently dealing with