[syslinux] Can't get COM32 + GDB to work

H. Peter Anvin hpa at zytor.com
Wed May 19 14:28:30 PDT 2010


On 05/19/2010 02:25 PM, Don Hiatt wrote:
> Breakpoints still don't work. Here is the gdb session. From syslinux's
> "boot:" I type "/boot/hello" and it runs but doesn't trigger the
> breakpoint in main().
> 
> 
> Reading symbols from /export/devel/syslinux/core/extlinux.elf...done.
> (gdb) target remote localhost:1234
> Remote debugging using localhost:1234
> 0x000f1996 in ?? ()
> (gdb) add-symbol-file com32/samples/hello.elf free_high_memory
> add symbol table from file "com32/samples/hello.elf" at
> 	.text_addr = 0x0
> (y or n) y
> Reading symbols from /export/devel/syslinux/com32/samples/hello.elf...done.
> (gdb) b hello.c:main
> Breakpoint 1 at 0xa4: file hello.c, line 24.

If they are soft breakpoints they won't work until the module has
actually loaded when the breakpoint is set.

Hard breakpoints should work, but I have never had good luck with hard
breakpoints in Qemu.

	-hpa




More information about the Syslinux mailing list