Compare commits

...

2 Commits

Author SHA1 Message Date
2723532319 adjust rx for parsing gdb line 2022-11-17 14:59:49 +01:00
8b93641896 update python 2022-11-17 14:53:47 +01:00
2 changed files with 4 additions and 4 deletions

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

View File

@ -1,8 +1,8 @@
CC=gcc
PC=python3.7dm-config
PC=python3.11-config
PIE=-fPIE # this was necessary on my machine
CFLAGS=$(shell $(PC) --cflags)
LDFLAGS=$(shell $(PC) --ldflags)
CFLAGS=$(shell $(PC) --embed --cflags)
LDFLAGS=$(shell $(PC) --embed --ldflags)
simple: simple.o
$(CC) -o $@ $< $(LDFLAGS)