mirror of
https://github.com/go-delve/delve.git
synced 2025-11-02 21:40:22 +08:00
Implement 'trace' subcommand
Allows a user to execute `dlv trace [regexp]` and Delve will execute the program and output information on functions matching [regexp].
This commit is contained in:
@ -55,7 +55,7 @@ func (reader *Reader) SeekToFunction(pc uint64) (*dwarf.Entry, error) {
|
||||
continue
|
||||
}
|
||||
|
||||
if lowpc <= pc && highpc >= pc {
|
||||
if lowpc <= pc && highpc > pc {
|
||||
return entry, nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user