This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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: [rfa] New test sigbpt.{c,exp}


drow> 0x080483f2 in bowler () at /opt/src/gdb/src/gdb/testsuite/gdb.base/sigbpt.c:38
drow> 38        return *(char *) (v1 + v2 + v3);
drow> 1: x/i $pc  0x80483f2 <bowler+25>:      mov    $0x55c35d00,%esi
drow> (gdb) FAIL: gdb.base/sigbpt.exp: stepi out of handler; stepi bp at segv
drow> 
drow> That's not the instruction that should be there; there's a multi-byte
drow> instruction at <bowler+24>.

How about:

  (1) before running the program, 'disassemble bowler'
  (2) at the breakpoint, 'x/i $pc'
  check that the output of (2) matches one of the lines in (1)

Michael C


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