From: Dan Nicolaescu <dann@ics.uci.edu>
To: Dmitry Dzhus <dima@sphinx.net.ru>
Cc: emacs-devel@gnu.org
Subject: Re: GSoC gdb-mi.el changes
Date: Tue, 11 Aug 2009 07:17:59 -0700 (PDT) [thread overview]
Message-ID: <200908111417.n7BEHxxu007130@godzilla.ics.uci.edu> (raw)
In-Reply-To: <874ose7fgn.fsf@sphinx.net.ru> (Dmitry Dzhus's message of "Tue, 11 Aug 2009 15:33:12 +0400")
Dmitry Dzhus <dima@sphinx.net.ru> writes:
> Dan Nicolaescu wrote:
>
> > Suggestion: don't show the -i=mi flag, users don't care about it (same
> > way rgrep/lgrep don't show the -n flag they pass to grep)
>
> I'll do this.
>
> > Issues:
> > echo 'int main () { printf ("Hello, World!\n");}' > t.c
> > gcc t.c
> > emacs -Q
> > M-x gdb RET ./a.out RET
> >
> > error in process filter: Symbol's function definition is void: mapcar*
> >
> > M-x load-library RET cl RET
> > M-x gdb RET ./a.out RET
>
> Uh-oh, that's very bad. Somehow I thought that mapcar* is a macro. I'll
> rewrite some of my functions without mapcar* then.
To see more compilation warnings, you can cd to the lisp directory and
do:
make recompile
there. As of today you'll get some extra warnings about using
`goto-line' too.
> >
> > Show the disassembly window
> >
> > b main
> >
> > A warning pops up:
> > &"warning: GDB: Failed to set controlling terminal: Operation not permitted\n"
How about this warning?
> >
> > si
> > si
> > si
> >
> > The cursor in the disassembly does not move correctly when single
> > stepping and it does not update the stack frames all the time.
>
> (At the time of your writing, stepping was just broken; I installed some
> fixes in CVS.)
Still some problems, given the example above if in the middle of the
execution I do:
r
yes (to restart execution)
I get:
Debugger aborted
the disassembly frame disappears and the debug window does not work anymore.
> Does it occur when you compile your target with -g, too?
It works for the code, but not when going through library functions that
don't have debug info (this worked fine in 22.1).
> Unlike GDB's CLI `disassemble` command, to show disassembly code for you
> program, MI needs to know either file:line information for the function
> you're interested in, or its memory range. For the former your target
> needs to be compiled with debugging information, and for the latter we
> need to query GDB for function memory range, but this command is not
> implemented in GDB/MI yet :(
Given that you know the details here, can you please file a gdb bug?
What do other GDB/MI front-ends do in this situation?
next prev parent reply other threads:[~2009-08-11 14:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-09 0:31 GSoC gdb-mi.el changes Dmitry Dzhus
2009-08-09 3:02 ` Chong Yidong
2009-08-11 4:53 ` Dan Nicolaescu
2009-08-11 11:33 ` Dmitry Dzhus
2009-08-11 14:17 ` Dan Nicolaescu [this message]
2009-08-12 5:26 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200908111417.n7BEHxxu007130@godzilla.ics.uci.edu \
--to=dann@ics.uci.edu \
--cc=dima@sphinx.net.ru \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.