Skip to content

Commit f179ed8

Browse files
authored
Document -ggdb3 flag (#141)
1 parent bf28018 commit f179ed8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Book/php7/debugging.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,9 @@ This chapter will introduce you with the GNU C debugger, aka GDB. When a crash h
55
guilty part in thousands of lines. You need tools for that, and GDB is the most commonly used debugger under Unix
66
platforms. Here we'll give you an introduction to GDB and how to practice with it against the PHP source code.
77

8+
Debug symbols
9+
-------------
810

11+
GDB requires debug symbols to map the memory addresses in your binary to the original position in your source code. To
12+
generate debug symbols you need to pass the ``--enable-debug`` flag to the ``./configure`` script. To get even more
13+
debugging information you may add the ``CFLAGS="-ggdb3"`` flag which will add support for macros.

0 commit comments

Comments
 (0)