public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* line info
@ 2019-09-11 21:52 Sasha Da Rocha Pinheiro
  2019-09-12  9:04 ` Mark Wielaard
  0 siblings, 1 reply; 4+ messages in thread
From: Sasha Da Rocha Pinheiro @ 2019-09-11 21:52 UTC (permalink / raw)
  To: Mark Wielaard, elfutils-devel

Hi all,

how do we get the line info range end address for a given line and file?

For instance, gdb adds 2 breapoint to:
(gdb) b /g/g90/devkota1/LULESH/lulesh.cc:233
Breakpoint 1 at 0x4060a0: /g/g90/devkota1/LULESH/lulesh.cc:233. (2 locations)
(gdb) i b
Num     Type           Disp Enb Address            What
1       breakpoint     keep y   <MULTIPLE>         
1.1                         y     0x00000000004060a0 in CollectDomainNodesToElemNodes(Domain&, Index_t const*, Real_t*, Real_t*, Real_t*) at lulesh.cc:233
1.2                         y     0x0000000000409c0c in CalcKinematicsForElems(Domain&, double, int) 
                                                   at lulesh.cc:233

And we find all these locations:
Compilation Unit name: lulesh.cc
[403eb0, ffffffffffffffff) /g/g90/devkota1/LULESH/lulesh.cc:233
[405477, ffffffffffffffff) /g/g90/devkota1/LULESH/lulesh.h:233 
[4060a0, ffffffffffffffff) /g/g90/devkota1/LULESH/lulesh.cc:233 
[409c0c, ffffffffffffffff) /g/g90/devkota1/LULESH/lulesh.cc:233 

But we need to get the whole range, lower and upper addresses.

Regars,
Sasha

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-10-02 16:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-11 21:52 line info Sasha Da Rocha Pinheiro
2019-09-12  9:04 ` Mark Wielaard
2019-09-12 15:22   ` Sasha Da Rocha Pinheiro
2019-10-02 16:14     ` Mark Wielaard

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).