adjust rx for parsing gdb line
This commit is contained in:
parent
8b93641896
commit
2723532319
@ -82,7 +82,7 @@ func TestSimpleGDB(t *testing.T) {
|
|||||||
|
|
||||||
// searchRX should match the output of gdb when it prints the address of the
|
// searchRX should match the output of gdb when it prints the address of the
|
||||||
// symbol
|
// symbol
|
||||||
var searchRX = regexp.MustCompile(`Symbol "_PyRuntime" is static storage at address 0x([0-9a-fA-F]+)`)
|
var searchRX = regexp.MustCompile(`Symbol "_PyRuntime" is.* at.* 0x([0-9a-fA-F]+)`)
|
||||||
|
|
||||||
// extractOffsetWithGdb calls gdb in batch-mode on a pid and looks up the
|
// extractOffsetWithGdb calls gdb in batch-mode on a pid and looks up the
|
||||||
// address of the symbol _PyRuntime by calling `info address _PyRuntime`. If
|
// address of the symbol _PyRuntime by calling `info address _PyRuntime`. If
|
||||||
|
Loading…
Reference in New Issue
Block a user