Discussion:
gdb mode for lldb?
Raymond Toy
2015-08-25 17:28:38 UTC
Permalink
Is there a gdb mode that works with lldb? OSX no longer has gdb and
uses lldb instead. Is there some way to get gdb mode on xemacs to
work with lldb?

--
Ray
Stephen J. Turnbull
2015-08-26 02:41:47 UTC
Permalink
Post by Raymond Toy
Is there a gdb mode that works with lldb? OSX no longer has gdb and
uses lldb instead. Is there some way to get gdb mode on xemacs to
work with lldb?
Not that I know of. I suggest you try the llvm sites and lists.

However, if you find one, I'd be happy to package an add-on or
llvm-compatible version for XEmacs.

I doubt you'll find one in upstream Emacs, as Apple and LLVM are two
of RMS's favorite whipping boys. :-(
Kaarthik Sivakumar
2015-08-26 03:02:55 UTC
Permalink
I just ran lldb on my Mac (for the first time) - on first glance, it
seems to support the same set of commands as gdb. The prompt string is
different. Can you change gdb-mode to look for a different prompt and
does that "just work", atleast for basic functions? Or is it
fundamentally broken?

kaarthik
Post by Stephen J. Turnbull
Post by Raymond Toy
Is there a gdb mode that works with lldb? OSX no longer has gdb and
uses lldb instead. Is there some way to get gdb mode on xemacs to
work with lldb?
Not that I know of. I suggest you try the llvm sites and lists.
However, if you find one, I'd be happy to package an add-on or
llvm-compatible version for XEmacs.
I doubt you'll find one in upstream Emacs, as Apple and LLVM are two
of RMS's favorite whipping boys. :-(
_______________________________________________
XEmacs-Beta mailing list
http://lists.xemacs.org/mailman/listinfo/xemacs-beta
Stephen J. Turnbull
2015-08-26 13:54:45 UTC
Permalink
Post by Kaarthik Sivakumar
I just ran lldb on my Mac (for the first time) - on first glance,
it seems to support the same set of commands as gdb.
Many of the basic ones, yes. However, many facilities, even some
shared with gdb, are accessible only through lldb-specific syntax, I
think. It might be easier to add more command aliases to lldb than to
mess with gdb (except for the prompt string, but that's a trivial
change that isn't even handled by gdb, I believe, it's part of comint).
Post by Kaarthik Sivakumar
The prompt string is different. Can you change gdb-mode to look for
a different prompt and does that "just work", atleast for basic
functions?
I don't know: I never used gdb much, except for XEmacs specific
functions, and usually after XEmacs crashed.

I think it's a good idea to try, but I don't have time at the moment.
Raymond Toy
2015-08-27 20:11:13 UTC
Permalink
Post by Raymond Toy
Is there a gdb mode that works with lldb? OSX no longer has
gdb and uses lldb instead. Is there some way to get gdb mode
on xemacs to work with lldb?
Stephen> Not that I know of. I suggest you try the llvm sites and
Stephen> lists.

I think emacs has one (somewhere) and I looked a little at it. I think
xemacs' gdb mode and emacs' gdb/gud has diverged enough to make it
painful.

--
Ray

Loading...