adjust rx for parsing gdb line

This commit is contained in:
Özgür Kesim 2022-11-17 14:59:49 +01:00
parent 8b93641896
commit 2723532319

View File

@ -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