This is the mail archive of the frysk@sources.redhat.com mailing list for the frysk 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: remote dwarf info using libunwind


>>>>> "Alexandre" == Alexandre Oliva <aoliva@redhat.com> writes:

Alexandre> Adding more stack frames gives it more stack space to sync
Alexandre> up, and then it does display function names correctly, but
Alexandre> it still fails to print file/line numbers.  I'm yet to
Alexandre> figure out why.

Adding more frames makes more of it work for me:

opsy. ./install/bin/fdtrace ./Closer
bad close() call at:
at 0x45bdc402
at 0x80483ba in function: doit2 (/home/tromey/gnu/frysk/CC.c:11)
at 0x80483dd in function: main
at 0x45c0f724
at 0x8048301

I've appended the program.

The doit2 frame is nearly correct -- the line number is off by 2.  The
doit frame itself doesn't print any info, and the main frame only
prints the function name.

This is the output including my patch to add StackFrame.toString,
which omits info that it can't find.

Tom

#include <unistd.h>
#include <stdio.h>

void doit() {
  close(73);
  close(74);
}

void doit2() { doit(); }

int main() {
  doit2();
  return 0;
}


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