Compilation Unit name

2017-03-16 Thread SASHA NICOLAS DA ROCHA PINHEIRO
Hello guys, I work for Dyninst, and I am moving from libdwarf to libdw. I am trying  to get the compilation unit name calling dwarf_nextcu, dwarf_offdie and  dwarf_diename, but it won't work as it works with libdwarf. I got NULL  as return from dwarf_diename. When I print the error messages aft

Re: Compilation Unit name

2017-03-16 Thread Josh Stone
On 03/16/2017 03:03 PM, SASHA NICOLAS DA ROCHA PINHEIRO wrote: > /* Iterate over the compilation-unit headers. */ > size_t cu_header_size; > for(Dwarf_Off cu_off = 0, next_cu_off; > dwarf_nextcu(dbg, cu_off, &next_cu_off, &cu_header_size, > NULL, NULL, NULL) == 0; >

Re: Compilation Unit name

2017-03-16 Thread Josh Stone
Stick to plain text, not HTML, if you want to reach the list. On 03/16/2017 03:44 PM, SASHA NICOLAS DA ROCHA PINHEIRO wrote: > I had that before, and it didn't work, then I empirically changed to > next_cu_off because it contained the same offset I was supposed to get > when I compared to the libd