Remove dwarf hack because Go fixed bug

This commit is contained in:
Derek Parker 2014-08-01 15:47:39 -05:00
parent 974d3d5bcd
commit 319f6d2e20
4 changed files with 4 additions and 7 deletions

Binary file not shown.

@ -156,9 +156,6 @@ func (frame *FrameContext) ExecuteUntilPC(instructions []byte) {
for frame.loc <= frame.address && frame.buf.Len() > 0 {
executeDwarfInstruction(frame)
}
// TODO: Why is this necessary?
executeDwarfInstruction(frame)
executeDwarfInstruction(frame)
}
func executeDwarfInstruction(frame *FrameContext) {

@ -84,7 +84,7 @@ func TestFindReturnAddress(t *testing.T) {
syscall.PtracePeekText(p.Pid, uintptr(addr), data)
addr = binary.LittleEndian.Uint64(data)
end := uint64(0x400dff)
end := uint64(0x400d9f)
if addr != end {
t.Fatalf("return address not found correctly, expected %#v got %#v", end, addr)
}

@ -42,7 +42,7 @@ func TestDebugLinePrologueParser(t *testing.T) {
prologue = dbl.Prologue
)
if prologue.Length != uint32(59807) {
if prologue.Length != uint32(60685) {
t.Fatal("Length was not parsed correctly", prologue.Length)
}
@ -50,7 +50,7 @@ func TestDebugLinePrologueParser(t *testing.T) {
t.Fatal("Version not parsed correctly", prologue.Version)
}
if prologue.PrologueLength != uint32(5224) {
if prologue.PrologueLength != uint32(5363) {
t.Fatal("Prologue Length not parsed correctly", prologue.PrologueLength)
}
@ -85,7 +85,7 @@ func TestDebugLinePrologueParser(t *testing.T) {
t.Fatal("Include dirs not parsed correctly")
}
if len(dbl.FileNames) != 123 {
if len(dbl.FileNames) != 126 {
t.Fatal("Filenames not parsed correctly", len(dbl.FileNames))
}