mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 10:47:27 +08:00 
			
		
		
		
	Improve docs
This commit is contained in:
		| @ -120,8 +120,7 @@ func (dbp *DebuggedProcess) setBreakpoint(tid int, addr uint64, temp bool) (*Bre | |||||||
| 			return dbp.HWBreakPoints[i], nil | 			return dbp.HWBreakPoints[i], nil | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 	// Fall back to software breakpoint. 0xCC is INT 3, software | 	// Fall back to software breakpoint. 0xCC is INT 3 trap interrupt. | ||||||
| 	// breakpoint trap interrupt. |  | ||||||
| 	thread := dbp.Threads[tid] | 	thread := dbp.Threads[tid] | ||||||
| 	originalData := make([]byte, 1) | 	originalData := make([]byte, 1) | ||||||
| 	if _, err := readMemory(thread, uintptr(addr), originalData); err != nil { | 	if _, err := readMemory(thread, uintptr(addr), originalData); err != nil { | ||||||
| @ -134,6 +133,7 @@ func (dbp *DebuggedProcess) setBreakpoint(tid int, addr uint64, temp bool) (*Bre | |||||||
| 	return dbp.BreakPoints[addr], nil | 	return dbp.BreakPoints[addr], nil | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // Error thrown when trying to clear a breakpoint that does not exist. | ||||||
| type NoBreakPointError struct { | type NoBreakPointError struct { | ||||||
| 	addr uint64 | 	addr uint64 | ||||||
| } | } | ||||||
|  | |||||||
| @ -247,6 +247,7 @@ func (dbp *DebuggedProcess) Next() error { | |||||||
| } | } | ||||||
|  |  | ||||||
| func (dbp *DebuggedProcess) next() error { | func (dbp *DebuggedProcess) next() error { | ||||||
|  | 	// Make sure we clean up the temp breakpoints created by thread.Next | ||||||
| 	defer dbp.clearTempBreakpoints() | 	defer dbp.clearTempBreakpoints() | ||||||
|  |  | ||||||
| 	curg, err := dbp.CurrentThread.curG() | 	curg, err := dbp.CurrentThread.curG() | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Derek Parker
					Derek Parker