Mail Archives: djgpp/2020/09/04/13:33:39
Le vendredi 4 septembre 2020 à 18:39:54 UTC+2, sleepy_dog AT gmx DOT de [via djgpp AT delorie DOT com] a écrit :
> Thanks for that info! I'll look into that.
> Single threaded, yeah. I don't think there is much to gain from using
> multiple threads for a program targeted for DOSBox, so I'm fine with that.
> pif DOT DOT DOT AT gmail DOT com wrote:
> > Le vendredi 4 septembre 2020 à 01:15:04 UTC+2, A. Wik (awi DOT DOT DOT AT gmail DOT com) [via dj DOT DOT DOT AT delorie DOT com] a écrit :
> >> Hi all,
> >> On Thu, 3 Sep 2020 at 22:55, sleep DOT DOT DOT AT gmx DOT de [via dj DOT DOT DOT AT delorie DOT com]
> >> <dj DOT DOT DOT AT delorie DOT com> wrote:
> >>> "Serial debugging" was mentioned, I at first thought this would work
> >>> similar, just using a serialconnection instead of ethernet. Apparently
> >>> it does not work the same way as you'd debug a program via gdbserver
> >>> running on a remote system.
> >>> I'm not familiar with that at all. Can someone point me to an explanation?
> > Gdb and gdbserver have conception problems and have quiet the same hardware requirements. Gdb teams try solve that since a long time by making them sharing more and more software but when djgpp was supported by gdb, gdbserver did not. Now, they simply drop djgpp support since version 8 or 9.
> >
> > To remote or cross debug, you have to build a cross gdb that target i586-msdos-djgpp. Gdb 7.12 is okay for that.
> >
> > To debug your program running on djgpp compliant environment, you have to embedded a gdbstub. You can find one on djgpp ftp. The stub will act like gdbserver by implementing gdb communication protocol but it will be a part of your program that will catch interruption and talk to gdb at this moment.
> > Stubs use serial connection because it use less hardware and software that tcp/IP over ethernet.
> >
> >>> Since I am somewhat familiar with gdb and it is very common, going a
> >>> route that rests on that would probably make most sense, even if it
> >>> works somewhat different on DOS.
> > The stubs on ftp doesn't implement all gdb features. It's okay for breakpoint, stepping, read and write memory, intercepted segmentation fault. Your program have to be single threaded, multi thread is not implemented.
> >
> > S. Guillaume
> >
> >
Gdbstub work well on real hardware and virtualbox by plugging serial port to local tcp port.
Can you give a back if it works on dosbox please.
- Raw text -