|
List Info
Thread: gdbmi.el not working with emacs 22
|
|
| gdbmi.el not working with emacs 22 |

|
2007-02-28 15:15:37 |
The gdbmi.el file says it should work with emacs 22 by just
dropping it in.
I tried it with this emacs 22: http://our
comments.org/Emacs/EmacsW32.html
Using MinGW gdb 6.3-2 from here:
http://prdownloads.sf.net/mingw/gdb-6.3-2.exe?download
I downloaded gdbmi.el out of CVS.
http://sourceware.org/cgi-bin/cvsweb.cg
i/src/gdb/mi/gdb-mi.el?cvsroot=src
The same gdb/emacs combo works fine with the regular M-x gdb
mode and
--annotate=3, namely it shows the current line indicator
and
breakpoints properly.
However M-x gdbmi with the default command-line did not
work
properly. It is able to debug, but the decorations don't
show up in
the margin.
Is this a bug, or a known issue, or what?
Should I file a bug report?
Thanks,
Bill
|
|
| Re: gdbmi.el not working with emacs 22 |

|
2007-02-28 15:36:24 |
> The gdbmi.el file says it should work with emacs 22 by
just dropping it in.
>
> I tried it with this emacs 22: http://our
comments.org/Emacs/EmacsW32.html
> Using MinGW gdb 6.3-2 from here:
> http://prdownloads.sf.net/mingw/gdb-6.3-2.exe?download
> I downloaded gdbmi.el out of CVS.
> http://sourceware.org/cgi-bin/cvsweb.cg
i/src/gdb/mi/gdb-mi.el?cvsroot=src
>
> The same gdb/emacs combo works fine with the regular
M-x gdb mode and
> --annotate=3, namely it shows the current line
indicator and
> breakpoints properly.
I'm glad to hear that this works with MinGW.
> However M-x gdbmi with the default command-line did
not work
> properly. It is able to debug, but the decorations
don't show up in
> the margin.
Emacs 22 has probably changed too much in CVS in that time.
It *should* work
with latest GDB (6.6) but I don't know if MinGW has such a
build.
> Is this a bug, or a known issue, or what?
> Should I file a bug report?
Please don't file a bug report. It does says in the file
that it's under
development, but perhaps it should carry a stronger health
warning. If you
want an easy life then use the mode in Emacs 22. If you
want to help develop
gdb-mi.el then, welcome!, but you will need the latest GDB
and to post your
findings here. The plan was/is to keep it synchronised with
GDB once Emacs is
released.
--
Nick http://www.inet.net.n
z/~nickrob
|
|
| Re: gdbmi.el not working with emacs 22 |

|
2007-02-28 18:00:46 |
Thanks for the speedy reply, Nick.
Responses inline below:
On 3/1/07, Nick Roberts <nickrob snap.net.nz> wrote:
> I'm glad to hear that this works with MinGW.
>
> > However M-x gdbmi with the default command-line
did not work
> > properly. It is able to debug, but the
decorations don't show up in
> > the margin.
>
> Emacs 22 has probably changed too much in CVS in that
time. It *should* work
> with latest GDB (6.6) but I don't know if MinGW has
such a build.
No 6.2.3 is the latest snapshot. So you suspect 6.2.3's MI
output is
to old to work with the current emacs code? I'm not sure
what you
mean by Emacs 22 changing too much. Does that mean my emacs
is too
new or too old? Or my gdb is too old or too new for it?
I'd like to try to help get it working by tinkering on the
elisp side,
but some hints about what to look for would be nice.
> > Is this a bug, or a known issue, or what?
> > Should I file a bug report?
>
> Please don't file a bug report. It does says in the
file that it's under
> development, but perhaps it should carry a stronger
health warning.
It says this:
;; This mode acts as a graphical user interface to GDB and
works with Emacs
;; 22.x and the version of GDB with which it is
distributed.
Which sounds like it pretty definitively does work, as in
has been
successfully tested with Emacs 22. So maybe that should be
worded
with a little more uncertainty.
> If you
> want an easy life then use the mode in Emacs 22. If
you want to help develop
> gdb-mi.el then, welcome!, but you will need the latest
GDB and to post your
> findings here. The plan was/is to keep it synchronised
with GDB once Emacs is
> released.
What I really want to do is use the D debugger
(http://ddbg.maini
a.de/releases.html) which emulates GDB. The author
is planning to support GDB/MI output, but I can't help him
get ddbg
working in emacs until I can at least get GDB itself working
in emacs.
There's no point in him trying to emulate --annotate=3
output
starting from now just to make emacs happy. GDB/MI is
clearly the
future and --annotate is the past. Eclipse already supports
it for
example and other debuggers will or will soon also. So if
you're
emulating gdb for debuggers to use, emulating GDB/MI seems
the way to
go.
The problem with waiting for the next emacs release is that
Win32
versions pretty much *aren't* released. Ever. FSF is
providing emacs
21.3 from March 2004 as the "latest" version on
their web site. The
version of Emacs 22 I've got is from some individual who was
fed up
with that and decided to make his own.
So any hints about where I should focus my debugging efforts
to figure
out how to make gdb 6.2.3 + gdb-mi.el + emacs 22.0.93.1 work
together
nicely?
--bb
|
|
| Re: gdbmi.el not working with emacs 22 |
  United States |
2007-02-28 18:05:16 |
On Thu, Mar 01, 2007 at 09:00:46AM +0900, Bill Baxter
wrote:
> >Emacs 22 has probably changed too much in CVS in
that time. It *should*
> >work
> >with latest GDB (6.6) but I don't know if MinGW has
such a build.
>
> No 6.2.3 is the latest snapshot. So you suspect
6.2.3's MI output is
> to old to work with the current emacs code?
What do you mean by 6.2.3? Please see http://sourceware.org/gdb/
to
get a current release of GDB - I do not know of any with
that version
number.
--
Daniel Jacobowitz
CodeSourcery
|
|
| Re: gdbmi.el not working with emacs 22 |

|
2007-02-28 18:11:47 |
On 3/1/07, Daniel Jacobowitz <drow false.org> wrote:
> On Thu, Mar 01, 2007 at 09:00:46AM +0900, Bill Baxter
wrote:
> > >Emacs 22 has probably changed too much in CVS
in that time. It *should*
> > >work
> > >with latest GDB (6.6) but I don't know if
MinGW has such a build.
> >
> > No 6.2.3 is the latest snapshot. So you suspect
6.2.3's MI output is
> > to old to work with the current emacs code?
>
> What do you mean by 6.2.3? Please see http://sourceware.org/gdb/
to
> get a current release of GDB - I do not know of any
with that version
> number.
Sorry I meant 6.3.2.
--bb
|
|
| Re: gdbmi.el not working with emacs 22 |

|
2007-02-28 18:31:20 |
> > > However M-x gdbmi with the default
command-line did not work
> > > properly. It is able to debug, but the
decorations don't show up in
> > > the margin.
> >
> > Emacs 22 has probably changed too much in CVS in
that time. It *should*
> > work with latest GDB (6.6) but I don't know if
MinGW has such a build.
>
> No 6.2.3 is the latest snapshot. So you suspect
6.2.3's MI output is
> to old to work with the current emacs code?
Yes. MI is under development too, that's why I included
gdb-mi.el in GDB
- to keep up with the changes.
> I'm not
sure what you
> mean by Emacs 22 changing too much.
Emacs 22 still hasn't officially been released although you
may have got
a pretest tarball, or possibly a snapshot packaged for a
ditribution such
as Debian.
> Does that mean my emacs is too
> new or too old? Or my gdb is too old or too new for
it?
Probably just your gdb as your emacs is much more recent.
>...
> > Please don't file a bug report. It does says in
the file that it's under
> > development, but perhaps it should carry a
stronger health warning.
>
> It says this:
> ;; This mode acts as a graphical user interface to GDB
and works with Emacs
> ;; 22.x and the version of GDB with which it is
distributed.
>
> Which sounds like it pretty definitively does work, as
in has been
> successfully tested with Emacs 22. So maybe that
should be worded
> with a little more uncertainty.
OK, well current gdb-mi.el says it's developmental.
> > If you want an easy life then use the mode in
Emacs 22. If you want to
> > help develop gdb-mi.el then, welcome!, but you
will need the latest GDB
> > and to post your findings here. The plan was/is
to keep it synchronised
> > with GDB once Emacs is released.
>
> What I really want to do is use the D debugger
> (http://ddbg.maini
a.de/releases.html) which emulates GDB. The author
> is planning to support GDB/MI output, but I can't help
him get ddbg
> working in emacs until I can at least get GDB itself
working in emacs.
> There's no point in him trying to emulate
--annotate=3 output
> starting from now just to make emacs happy. GDB/MI is
clearly the
> future and --annotate is the past. Eclipse already
supports it for
> example and other debuggers will or will soon also.
So if you're
> emulating gdb for debuggers to use, emulating GDB/MI
seems the way to
> go.
>
> The problem with waiting for the next emacs release is
that Win32
> versions pretty much *aren't* released. Ever. FSF is
providing emacs
> 21.3 from March 2004 as the "latest"
version on their web site. The
> version of Emacs 22 I've got is from some individual
who was fed up
> with that and decided to make his own.
Emacs 22 should be released shortly. You can get prebuilt
binaries
e.g http://our
comments.org/Emacs/EmacsW32.html (I guess by `make his
own'
you just mean `build' - this shouldn't be too hard from the
CVS repository
at Savannah.
> So any hints about where I should focus my debugging
efforts to figure
> out how to make gdb 6.2.3 + gdb-mi.el + emacs
22.0.93.1 work together
> nicely?
Sorry, without a more recent version of gdb you're pretty
much on your own.
FSF GDB can do this:
* GDB can now be configured as a cross-debugger targeting
native Windows
(mingw32) or Cygwin. It can communicate with a remote
debugging stub
running on a Windows system over TCP/IP to debug Windows
programs.
Maybe that does all you need.
--
Nick http://www.inet.net.n
z/~nickrob
|
|
| Re: gdbmi.el not working with emacs 22 |
  United States |
2007-02-28 18:32:49 |
On Thu, Mar 01, 2007 at 09:11:47AM +0900, Bill Baxter
wrote:
> On 3/1/07, Daniel Jacobowitz <drow false.org> wrote:
> >On Thu, Mar 01, 2007 at 09:00:46AM +0900, Bill
Baxter wrote:
> >> >Emacs 22 has probably changed too much in
CVS in that time. It *should*
> >> >work
> >> >with latest GDB (6.6) but I don't know if
MinGW has such a build.
> >>
> >> No 6.2.3 is the latest snapshot. So you
suspect 6.2.3's MI output is
> >> to old to work with the current emacs code?
> >
> >What do you mean by 6.2.3? Please see http://sourceware.org/gdb/
to
> >get a current release of GDB - I do not know of any
with that version
> >number.
>
> Sorry I meant 6.3.2.
Same problem, same advice. The latest release of GDB is
version 6.6.
I suspect you're looking at some older MinGW package.
--
Daniel Jacobowitz
CodeSourcery
|
|
| Re: gdbmi.el not working with emacs 22 |

|
2007-02-28 18:56:37 |
On 3/1/07, Daniel Jacobowitz <drow false.org> wrote:
> Same problem, same advice. The latest release of GDB
is version 6.6.
>
> I suspect you're looking at some older MinGW package.
No that's the latest MinGW has. Unless you see something I
don't at
their download pages:
http://www.mingw.
org/download.shtml
http://sourceforge.net/project/showfiles.php?group_id=
2435
They don't have any gcc based on gcc-4.x either.
But anyway, I have cygwin too, so if their stuff is more
recent and
has a better chance of working I'll try that.
<checks> actually
cygwin's version is 6.5.50.
GNU gdb 6.5.50.20060706-cvs (cygwin-special)
So I guess that won't cut it either?
--bb
--bb
|
|
| Re: gdbmi.el not working with emacs 22 |

|
2007-02-28 19:09:23 |
On 3/1/07, Bill Baxter <wbaxter gmail.com> wrote:
> On 3/1/07, Daniel Jacobowitz <drow false.org> wrote:
>
> > Same problem, same advice. The latest release of
GDB is version 6.6.
> >
> > I suspect you're looking at some older MinGW
package.
>
> No that's the latest MinGW has. Unless you see
something I don't at
> their download pages:
> http://www.mingw.
org/download.shtml
> http://sourceforge.net/project/showfiles.php?group_id=
2435
>
> They don't have any gcc based on gcc-4.x either.
>
> But anyway, I have cygwin too, so if their stuff is
more recent and
> has a better chance of working I'll try that.
<checks> actually
> cygwin's version is 6.5.50.
> GNU gdb 6.5.50.20060706-cvs (cygwin-special)
> So I guess that won't cut it either?
I gave it a shot. Looks like that doesn't work either.
Break points show up, which is an improvement, but
current-line
display doesn't work.
Oh well. I'll try again some day after Emacs 22 is official
and gdb
6.6 is in cygwin.
Thanks for your help.
--bb
|
|
| Re: gdbmi.el not working with emacs 22 |
  United States |
2007-02-28 19:18:42 |
On Thu, Mar 01, 2007 at 10:09:23AM +0900, Bill Baxter
wrote:
> I gave it a shot. Looks like that doesn't work
either.
> Break points show up, which is an improvement, but
current-line
> display doesn't work.
You need to use a version of gdb-mi.el that comes with the
version of
GDB you're using. If you take the latest gdb-mi.el from
CVS, you need
to build GDB from CVS too.
--
Daniel Jacobowitz
CodeSourcery
|
|
|
|