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

Don Hiatt donhiatt at gmail.com
Wed May 19 14:38:42 PDT 2010


On Wed, May 19, 2010 at 2:29 PM, H. Peter Anvin <hpa at zytor.com> wrote:
> 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.
>
> You *might* have better luck setting breakpoints with "hbreak".
>
>        -hpa
>

Thank hpa, do you still use bochs? Maybe I'll give that a try while I
try and sort out the qemu issue.




More information about the Syslinux mailing list