mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 10:47:27 +08:00 
			
		
		
		
	Remove dwarf hack because Go fixed bug
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							| @ -156,9 +156,6 @@ func (frame *FrameContext) ExecuteUntilPC(instructions []byte) { | |||||||
| 	for frame.loc <= frame.address && frame.buf.Len() > 0 { | 	for frame.loc <= frame.address && frame.buf.Len() > 0 { | ||||||
| 		executeDwarfInstruction(frame) | 		executeDwarfInstruction(frame) | ||||||
| 	} | 	} | ||||||
| 	// TODO: Why is this necessary? |  | ||||||
| 	executeDwarfInstruction(frame) |  | ||||||
| 	executeDwarfInstruction(frame) |  | ||||||
| } | } | ||||||
|  |  | ||||||
| func executeDwarfInstruction(frame *FrameContext) { | func executeDwarfInstruction(frame *FrameContext) { | ||||||
|  | |||||||
| @ -84,7 +84,7 @@ func TestFindReturnAddress(t *testing.T) { | |||||||
| 		syscall.PtracePeekText(p.Pid, uintptr(addr), data) | 		syscall.PtracePeekText(p.Pid, uintptr(addr), data) | ||||||
| 		addr = binary.LittleEndian.Uint64(data) | 		addr = binary.LittleEndian.Uint64(data) | ||||||
|  |  | ||||||
| 		end := uint64(0x400dff) | 		end := uint64(0x400d9f) | ||||||
| 		if addr != end { | 		if addr != end { | ||||||
| 			t.Fatalf("return address not found correctly, expected %#v got %#v", end, addr) | 			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 | 		prologue = dbl.Prologue | ||||||
| 	) | 	) | ||||||
|  |  | ||||||
| 	if prologue.Length != uint32(59807) { | 	if prologue.Length != uint32(60685) { | ||||||
| 		t.Fatal("Length was not parsed correctly", prologue.Length) | 		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) | 		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) | 		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") | 		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)) | 		t.Fatal("Filenames not parsed correctly", len(dbl.FileNames)) | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Derek Parker
					Derek Parker