How to debug pc386 compiled program with gdb?
Pierre Ficheux
pierre.ficheux at openwide.fr
Wed Aug 29 22:32:14 UTC 2012
Le 29/08/12 19:44, Xiaochen Pan a écrit :
> Dear RTEMS developers and users,
>
> How to use i386-rtems4.11-gdb to debug pc386 compiled exe programs?
>
> Are all pc386 compiled files supposed to run with qemu emulator? Could they run without qemu? If it have to be with qemu, what instructions I should follow?
>
> Thank you very much!
>
> Sincerely,
> Xiaochen Pan
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
>
Use:
$ qemu -kernel program_name.exe -s -S
Then in another terminal :
$ i386-rtems4.11-gdb o-optimize/helloworld.exe
...
(gdb) b Init
(gdb) target remote localhost:1234
Then you can set breakpoints, etc.
regards
--
Pierre FICHEUX -/- CTO OW/OWI, France -\- pierre.ficheux at openwide.fr
http://ingenierie.openwide.fr
http://www.ficheux.org
I would love to change the world, but they won't give me the source code
More information about the users
mailing list