* Compatibility problem with emacs 24.1 / GDB 6.3.50?
@ 2012-06-13 22:13 Charles Tucker
2012-06-13 22:44 ` Kaushik Srenevasan
0 siblings, 1 reply; 5+ messages in thread
From: Charles Tucker @ 2012-06-13 22:13 UTC (permalink / raw
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 1465 bytes --]
Caveat: I'm running on OS X (which ships with emacs 22.1 and gdb 6.3.50).
Newer versions grabbed / installed via Mac Homebrew, which may configure
things funny.
Filled with a desire to use more recent versions of tools, I've been using
emacs 23.4 / gdb 6.3 successfully for a while now, but brew recently
updated to emacs 24.1. The gdb mode under this new version spits out the
following garbage output (spacing intact):
Current directory is ~/
GNU gdb 6.3.50-20050815 (Apple version gdb-1752) (Sat Jan 28 03:02:46 UTC
2012)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".
(gdb)
(gdb)
time={wallclock="0.00002",user="0.00001",system="0.00000",start="1339625472.009357",end="1339625472.009373"}
Where is this new output coming from? It looks like it might be debugging
output from gdb-mode, but that's a guess.
I also tried solving the problem by running a more recent version of gdb
(again, through Homebrew), but I've yet to figure out how emacs selects
which gdb executable for "M-x gdb" to run.
--
-Charles
:(){:|:&};:
[-- Attachment #2: Type: text/html, Size: 1939 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Compatibility problem with emacs 24.1 / GDB 6.3.50?
2012-06-13 22:13 Compatibility problem with emacs 24.1 / GDB 6.3.50? Charles Tucker
@ 2012-06-13 22:44 ` Kaushik Srenevasan
[not found] ` <CAKgMwZrPtsJrEU9ecJWSKBTkACwetG_L9p5UBAhEnSqxLbgUFQ@mail.gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: Kaushik Srenevasan @ 2012-06-13 22:44 UTC (permalink / raw
To: Charles Tucker; +Cc: emacs-devel
On Wed, Jun 13, 2012 at 3:13 PM, Charles Tucker <cetucker@gmail.com> wrote:
> Caveat: I'm running on OS X (which ships with emacs 22.1 and gdb 6.3.50).
> Newer versions grabbed / installed via Mac Homebrew, which may configure
> things funny.
>
> Filled with a desire to use more recent versions of tools, I've been using
> emacs 23.4 / gdb 6.3 successfully for a while now, but brew recently updated
> to emacs 24.1. The gdb mode under this new version spits out the following
> garbage output (spacing intact):
>
Emacs 24 uses the machine interface (MI) to talk to GDB. I don't think
GDB 6.3 has support for MI.
You can simply call Emacs' gdb function (M-x gdb) with the complete
path to your (newer) GDB installation (macports typically calls it
"ggdb" - /opt/bin/ggdb)
(gdb "/opt/bin/ggdb -i=mi [[ rest of the gdb command line ]]")
Note that -i=mi is what asks GDB to output MI commands that Emacs recognizes.
-Kaushik
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Compatibility problem with emacs 24.1 / GDB 6.3.50?
[not found] ` <CAKgMwZrPtsJrEU9ecJWSKBTkACwetG_L9p5UBAhEnSqxLbgUFQ@mail.gmail.com>
@ 2012-06-14 23:42 ` Kaushik Srenevasan
2012-06-14 23:54 ` chad
2012-06-15 2:04 ` Stefan Monnier
0 siblings, 2 replies; 5+ messages in thread
From: Kaushik Srenevasan @ 2012-06-14 23:42 UTC (permalink / raw
To: Charles Tucker; +Cc: emacs-devel
On Thu, Jun 14, 2012 at 4:31 PM, Charles Tucker <cetucker@gmail.com> wrote:
> Brilliant, that appears to work the way I had hoped. Is there some way of
> overriding the default location emacs checks for gdb permanently? It'll get
> a little tedious to type that out each time I launch a debug session.
>
+emacs-devel
Put something like
(defun my-gdb ()
(interactive)
(gdb "/path/to/gdb ..."))
where emacs can find it. You can now run M-x my-gdb.
-Kaushik
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Compatibility problem with emacs 24.1 / GDB 6.3.50?
2012-06-14 23:42 ` Kaushik Srenevasan
@ 2012-06-14 23:54 ` chad
2012-06-15 2:04 ` Stefan Monnier
1 sibling, 0 replies; 5+ messages in thread
From: chad @ 2012-06-14 23:54 UTC (permalink / raw
To: Kaushik Srenevasan; +Cc: Charles Tucker, emacs-devel
If you're launching emacs from the dock, spotlight, or a launcher like QuickSilver/Alfred/LaunchBar/etc, you'll want to tweak your environment so that $PATH finds your local stuff. This can be a little tricky, depending on which version of the OS you're running, so I'll refer you to stack overflow:
http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x
Hope that helps,
*Chad
On Thu, Jun 14, 2012 at 4:31 PM, Charles Tucker <cetucker@gmail.com> wrote:
> Brilliant, that appears to work the way I had hoped. Is there some way of
> overriding the default location emacs checks for gdb permanently? It'll get
> a little tedious to type that out each time I launch a debug session.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Compatibility problem with emacs 24.1 / GDB 6.3.50?
2012-06-14 23:42 ` Kaushik Srenevasan
2012-06-14 23:54 ` chad
@ 2012-06-15 2:04 ` Stefan Monnier
1 sibling, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2012-06-15 2:04 UTC (permalink / raw
To: Kaushik Srenevasan; +Cc: Charles Tucker, emacs-devel
>> Brilliant, that appears to work the way I had hoped. Is there some way of
>> overriding the default location emacs checks for gdb permanently? It'll get
Emacs uses $PATH, like any other program, to find the `gdb' executable,
so just set your PATH accordingly. If you want a $PATH special in
Emacs, you can set `exec-path' instead.
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-06-15 2:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-13 22:13 Compatibility problem with emacs 24.1 / GDB 6.3.50? Charles Tucker
2012-06-13 22:44 ` Kaushik Srenevasan
[not found] ` <CAKgMwZrPtsJrEU9ecJWSKBTkACwetG_L9p5UBAhEnSqxLbgUFQ@mail.gmail.com>
2012-06-14 23:42 ` Kaushik Srenevasan
2012-06-14 23:54 ` chad
2012-06-15 2:04 ` Stefan Monnier
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.