Re: location list

2020-06-25 Thread Mark Wielaard
Hi Sasha, On Tue, 2020-06-23 at 16:34 +, Sasha Da Rocha Pinheiro wrote: > Since we are now using not only executables and .so, but ".o" files > too, I'm trying to decide if I can use the same functions to all of > them, like the code you pointed out to deal with ".o". Would that > work for EXE

Re: location list

2020-06-23 Thread Sasha Da Rocha Pinheiro via Elfutils-devel
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

Re: location list

2020-06-10 Thread Mark Wielaard
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 far we have only used the functions dwarf_* under libdw. > What I understood is that libdw is kinda divided in subsets of functi

Re: location list

2020-06-09 Thread Sasha Da Rocha Pinheiro via Elfutils-devel
: Sasha Da Rocha Pinheiro ; elfutils-devel@sourceware.org Subject: Re: location list   Hi Sasha, On Sat, 2020-06-06 at 00:30 +, Sasha Da Rocha Pinheiro wrote: > As you can see the following variables have distinct locations: >  [    81]  variable abbrev: 5 > 

Re: location list

2020-06-06 Thread Mark Wielaard
Hi Sasha, On Sat, 2020-06-06 at 00:30 +, Sasha Da Rocha Pinheiro wrote: > As you can see the following variables have distinct locations: > [81] variable abbrev: 5 >name (string) "a" >decl_file(data1) sasha.c (1)

Re: location list

2020-06-05 Thread Sasha Da Rocha Pinheiro via Elfutils-devel
0] const4u 65537 [ 5] breg0 0 [ 7] minus [ 8] stack_value Sasha From: Sasha Da Rocha Pinheiro Sent: Tuesday, June 2, 2020 1:12 PM To: Mark Wielaard ; elfutils-devel@sourceware.org Subject: Re: location list   Well, I have been trying to use the Dwarf

Re: location list

2020-06-02 Thread Sasha Da Rocha Pinheiro via Elfutils-devel
in .debug_loc. Where clearly for this variable, the location list (sec_offset) is at [4a] of that section. Maybe I am using the offset or the basep wrongly? Sasha From: Mark Wielaard Sent: Tuesday, June 2, 2020 12:19 PM To: Sasha Da Rocha Pinheiro ; elfutils-devel@sourceware.org Su

Re: location list

2020-06-02 Thread Mark Wielaard
Hi, On Tue, 2020-06-02 at 14:18 +, Sasha Da Rocha Pinheiro wrote: > 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?