From 2723532319f481192924e817dcf7428cacc0eecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Kesim?= Date: Thu, 17 Nov 2022 14:59:49 +0100 Subject: [PATCH] adjust rx for parsing gdb line --- GetRuntimeAddresses/symbolyze/gdb_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GetRuntimeAddresses/symbolyze/gdb_test.go b/GetRuntimeAddresses/symbolyze/gdb_test.go index 2724f4d..bf0fe72 100644 --- a/GetRuntimeAddresses/symbolyze/gdb_test.go +++ b/GetRuntimeAddresses/symbolyze/gdb_test.go @@ -82,7 +82,7 @@ func TestSimpleGDB(t *testing.T) { // searchRX should match the output of gdb when it prints the address of the // 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 // address of the symbol _PyRuntime by calling `info address _PyRuntime`. If