* GDB Not Seeing Sources
@ 2010-03-24 7:05 Patrick M. Rutkowski
[not found] ` <201003241527.o2OFRX9Z039853@ns.mahan.org>
0 siblings, 1 reply; 2+ messages in thread
From: Patrick M. Rutkowski @ 2010-03-24 7:05 UTC (permalink / raw)
To: help-gnu-emacs
Hi guys,
I've got an odd problem where a particular usage case of "M-x gdb"
isn't following the debugger in the source code buffers.
What I did was "M-x gdb", then I ran "attach PID" from within gdb, to
attach to my already running program. I did a "break poll" to break in
poll (it's server code), and then I did a "continue". It got to the
poll, and I did a "finish" to wait for it to get out of the poll. I
did get out of the poll, and now I'm successfully stopped from within
gdb, on the first line of code after the poll, but it's not following
along int the sources!
I can type "list" in gdb to get a source listing, but that interface
is clunky enough so as to be unusable. That is, after all, why I'm
trying to use gdb from within emacs!
Is it possible to get it to see sources after an "attach PID"? Or is
something fundamentally wrong here?
-Patrick
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: GDB Not Seeing Sources
[not found] ` <201003241527.o2OFRX9Z039853@ns.mahan.org>
@ 2010-03-25 0:08 ` Patrick M. Rutkowski
0 siblings, 0 replies; 2+ messages in thread
From: Patrick M. Rutkowski @ 2010-03-25 0:08 UTC (permalink / raw)
To: help-gnu-emacs
Ah, awesome; that did it :-)
I've since learned what exactly annotations are too, interesting.
It would be nice if emacs had given a warning message though, I'll bet
lots of people run into that problem. Though to make a self-criticism,
the --annotate is mentioned in the M-x apropos page for "gdb", I just
didn't read it :-)
-Patrick
On Wed, Mar 24, 2010 at 11:24 AM, Patrick Mahan <mahan@mahan.org> wrote:
>> Hi guys,
>>
>> I've got an odd problem where a particular usage case of "M-x gdb"
>> isn't following the debugger in the source code buffers.
>>
>> What I did was "M-x gdb", then I ran "attach PID" from within gdb, to
>> attach to my already running program. I did a "break poll" to break in
>> poll (it's server code), and then I did a "continue". It got to the
>> poll, and I did a "finish" to wait for it to get out of the poll. I
>> did get out of the poll, and now I'm successfully stopped from within
>> gdb, on the first line of code after the poll, but it's not following
>> along int the sources!
>>
>> I can type "list" in gdb to get a source listing, but that interface
>> is clunky enough so as to be unusable. That is, after all, why I'm
>> trying to use gdb from within emacs!
>>
>> Is it possible to get it to see sources after an "attach PID"? Or is
>> something fundamentally wrong here?
>>
>
> Try running it with "M-x gdb --annotate=3".
>
> Patrick Mahan
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-25 0:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-24 7:05 GDB Not Seeing Sources Patrick M. Rutkowski
[not found] ` <201003241527.o2OFRX9Z039853@ns.mahan.org>
2010-03-25 0:08 ` Patrick M. Rutkowski
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.