This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Hitachi djprobe mechanism


hi roland,

On Sat, 2005-10-22 at 15:09 -0700, Roland McGrath wrote:
> The work is still in progress.  The assembler work is already in binutils
> development CVS.  I don't think there has been any release including it yet.
> As far as I know, the gcc work has not been committed anywhere and I don't
> really know how complete it is.  Richard and I have it as a back-burner

Out of curiosity, I looked at the dwarf2 line info spec to have an idea
of what this bb stuff looks like. Am I right in assuming that the only
information given is the fact that various source code lines constitute
the start of a basic block ?

Here is a simple example:

while (bar != x) {do_foo (); bar++}

i.e. here, you have something like this:
start:
cmp bar, x
jne end
call do_foo
inc bar
ja start
end:

bb1:
start:
cmp bar, x
jne end;

bb2:
call do_foo

bb3:
inc bar
ja start

The only thing the dwarf2 info would represent is the fact that the
source code line represents the start of bb1 and would not make any
mention of bb2 or bb3. Am I right ?

Mathieu
-- 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]