diff options
author | elioat <hi@eli.li> | 2022-11-26 20:44:59 -0500 |
---|---|---|
committer | elioat <hi@eli.li> | 2022-11-26 20:44:59 -0500 |
commit | 2f4c578507a371caa7bba18d6d7104cb2d39182c (patch) | |
tree | efe62851846a9a972741692c902010a5830ea1aa /org/c/ex_04.org | |
parent | d9bf844148e0ca641c0894215c6afa0604229dc8 (diff) | |
download | hard-way-2f4c578507a371caa7bba18d6d7104cb2d39182c.tar.gz |
*
Diffstat (limited to 'org/c/ex_04.org')
-rw-r--r-- | org/c/ex_04.org | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/org/c/ex_04.org b/org/c/ex_04.org new file mode 100644 index 0000000..d287dca --- /dev/null +++ b/org/c/ex_04.org @@ -0,0 +1,15 @@ +* Exercise 4 + +Debuggers, baby! + +#+BEGING_SRC plaintext +gdb --args // this flag allows you to pass arguments *through* gdb + // into a program, without this flag gdb assumes any + // passed arguments are for it + +gdb --batch --ex r --ex bt --ex q --args +// run the program so that if it fails you get a backtrace +#+END_SRC + +Sometimes you have lldb instead of gdb. They are similar, but slightly different -- brace yourself for this. + |