From ae0197111f450a5d8bca59ec55143e7e4dbb4614 Mon Sep 17 00:00:00 2001 From: Liz Rice Date: Tue, 15 May 2018 17:45:36 +0100 Subject: [PATCH] Note on compiling target --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 9b94259..4a971ec 100644 --- a/README.md +++ b/README.md @@ -7,3 +7,7 @@ Big caveat: it assumes there is only one file in the target! I fully expect this only to work on Linux. This is a more detailed version of the code I wrote in my [Debuggers From Scratch talk at dotGo Paris](https://youtu.be/TBrv17QyUE0). + +## A note on compiling the target executable + +You may find it helpful to compile your target excutable with `gcflags="-N -l"` to turn off compiler optimization and in-lining (otherwise you might find that the symbol table doesn't appear to know about code where you expect it to be!)