Compare commits

..

No commits in common. "2723532319f481192924e817dcf7428cacc0eecc" and "e928dd898b05fb941d1c2c138e5c9a209b12825b" have entirely different histories.

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.* at.* 0x([0-9a-fA-F]+)`)
var searchRX = regexp.MustCompile(`Symbol "_PyRuntime" is static storage at address 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.11-config
PC=python3.7dm-config
PIE=-fPIE # this was necessary on my machine
CFLAGS=$(shell $(PC) --embed --cflags)
LDFLAGS=$(shell $(PC) --embed --ldflags)
CFLAGS=$(shell $(PC) --cflags)
LDFLAGS=$(shell $(PC) --ldflags)
simple: simple.o
$(CC) -o $@ $< $(LDFLAGS)