all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacs, gdb and runsparc.
@ 2008-11-24 21:22 kidologie
  2008-11-24 23:08 ` Tom Tromey
  0 siblings, 1 reply; 2+ messages in thread
From: kidologie @ 2008-11-24 21:22 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I have a strange requirement where I want to run gdb on a linux
machine, but target a solaris image using a simulator.

The simulator being used is runsol/runsparc. Outside of emacs, I would
do 'runsparc gdb ./<image>' and this works fine. But through emacs I
am having issues. For example:

M-x gdb
 Run gdb as: runsparc /solaris/router/bin/gdb <image>

Error is: "runsparc" is expecting "a native path to a binary or shell
script"

I think what's going on essentially is that, gdb emacs is being handed
an additional command: runsol,  which it is interpreting as being the
debugger. The additional file names are treated as files to be
debugged. By pre-pending the fully-qualified path, emacs is forcing
the change to the CWD to that path.

So I think I need an emacs hook to handle this integration? An
alternative is to actually copy 'gdb' to the working directory and
then this works: M-x gdb: runsparc ./gdb ./<image>

My lisp skills being very rudimentary - any advice would be most
welcome!

Thanks!



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-24 23:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-24 21:22 Emacs, gdb and runsparc kidologie
2008-11-24 23:08 ` Tom Tromey

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.