[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gm2] gm2 and gdb
From: |
Christoph Schlegel |
Subject: |
Re: [Gm2] gm2 and gdb |
Date: |
Sun, 7 Apr 2013 11:11:23 +0200 |
Hello John,
thank you, that's it!
Christoph
On Sat, 6 Apr 2013 16:38:36 -0400
john o goyo <address@hidden> wrote:
> I forgot to copy the group on the following.
>
> Begin forwarded message:
> > From: john o goyo <address@hidden>
> > Date: April 6, 2013 4:18:30 PM GMT-04:00
> > To: Christoph Schlegel <address@hidden>
> > Subject: Re: gm2 and gdb
> >
> > On 6-Apr-13, at 9:31 AM, Christoph Schlegel wrote:
> >> Hi Gaius,
> >>
> >> I have another question. I need to step through some Modula-2 code
> >> with gdb but end up with C/C++ code produced by gm2.
> >> Is there a way to have gdb rely to the original code from my
> >> sourcefiles?
> >
> > If your main PROGRAM file is called prog.mod -- for example -- then
> > gm2 -g produces a file prog_m2.cpp. Inside, the function
> > call _M2_prog_init(argc, argv) is the call to the initialisation
> > part of prog.mod. Typically, I set a breakpoint on this function and
> > then step into it.
> >
> > john
>
>
> _______________________________________________
> gm2 mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/gm2
--
Christoph Schlegel <address@hidden>