Newsgroups: comp.os.linux.embedded
Subject: Re: text-based frontend to GDB for Linux
References: <1119004117.1ac452c0630af82546d4aa75bd1f76e1@teranews>
Anton Erasmus writes:
> On Thu, 16 Jun 2005 09:41:08 +0800, wuulong
> wrote:
>
> >Roman Mashak wrote:
> >> Hello, All!
> >>
> >> I'm looking for a good frontend to GDB for Linux environment. All i
> >> could find are focused on graphical environment, but I'd prefer text-based
> >> version. Could you recommend me some?
> >>
> >> Thanks in advance!
> >>
> >> With best regards, Roman Mashak. E-mail: [email protected]
> >>
> >>
> >
> >I am not sure what you mean.
> >I am using redhat-linux. and the gdb command is text mode.
> >
>
> I think the OP means a more user friendly text mode front end. One
> which shows the current source in a text window, and provides hot keys
> for common commands like step etc. Something like the Turbo C debugger
> interface on Turbo C 3.
Emacs provides a much better interface to gdb that saves a lot of
typing and confusion. Executing the Emacs command M-x gdb starts up a
new window running gdb. If you set a breakpoint on the main function
and then run the program with the correct arguments, gdb will split
the window in two, with your source code on the bottom and a gdb
command line in the top. Emacs intercepts output from gdb and
interprets it for you. When you stop at a breakpoint, Emacs will take
the file and line number reported by gdb, and display the file
contents, with the point of the breakpoint market. As you step through
a program, Emacs will follow your pgoress in the source file. The
command C-x SPC will place a breakpoint at the current point of the
file you are in.
Using gdb under gnu Emacs
http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/gdb/emacs.html
An Introduction To Using GDB Under Emacs
http://tedlab.mit.edu/~dr/gdbintro.html
--
Tomi Engdahl (http://www.iki.fi/then/)
Take a look at my electronics web links and documents at
http://www.epanorama.net/