Re: Debugging a PHP Extension via GDB
| From: | mathieu.suen | Date: | Thu, 22 Apr 2010 15:25:28 +0000 |
| Subject: | Re: Debugging a PHP Extension via GDB | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-48058@lists.php.net to get a copy of this message | ||
One quick but ugly way is to add it in assembler in your C file:
__asm__("int3");
or something like this.
Sebastian Kurfürst wrote:
Hi Derick,-- Mathieu SuenTry just "break objectmonitor.c:80".Thanks, just tried that, but same issue: (gdb) break objectmonitor.c:80 No source file named objectmonitor.c. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (objectmonitor.c:80) pending. (gdb) run index.php -- and does not stop on breakpoint. Greets, Sebastian