Compare commits
2 Commits
e928dd898b
...
2723532319
Author | SHA1 | Date | |
---|---|---|---|
2723532319 | |||
8b93641896 |
@ -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
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
CC=gcc
|
CC=gcc
|
||||||
PC=python3.7dm-config
|
PC=python3.11-config
|
||||||
PIE=-fPIE # this was necessary on my machine
|
PIE=-fPIE # this was necessary on my machine
|
||||||
CFLAGS=$(shell $(PC) --cflags)
|
CFLAGS=$(shell $(PC) --embed --cflags)
|
||||||
LDFLAGS=$(shell $(PC) --ldflags)
|
LDFLAGS=$(shell $(PC) --embed --ldflags)
|
||||||
|
|
||||||
simple: simple.o
|
simple: simple.o
|
||||||
$(CC) -o $@ $< $(LDFLAGS)
|
$(CC) -o $@ $< $(LDFLAGS)
|
||||||
|
Loading…
Reference in New Issue
Block a user