unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: new gdb/gdba code has bug with absolute source filenames
@ 2004-01-08 22:04 Nick Roberts
  0 siblings, 0 replies; 12+ messages in thread
From: Nick Roberts @ 2004-01-08 22:04 UTC (permalink / raw)
  Cc: emacs-devel


> I don't know which program is at fault.

Looking more carefully, I can reproduce this problem. I think this is normal
output. GDB only records a compilation directory if it makes sense. This is
used to help find the source code. If the source is in a different directory
to where the compilation is done, as it might be with

gcc -g3 -o hello /tmp/hello.c

then it might not help.

Since I think this is normal output, I've committed the changes in gdb-ui.el
to allow for this, to the CVS repository.


    Nick                                         http://www.nick.uklinux.net

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: new gdb/gdba code has bug with absolute source filenames
@ 2004-01-07 22:43 Nick Roberts
  2004-01-08  0:46 ` Bruce Stephens
  2004-01-08 10:21 ` Andreas Schwab
  0 siblings, 2 replies; 12+ messages in thread
From: Nick Roberts @ 2004-01-07 22:43 UTC (permalink / raw)
  Cc: emacs-devel


> > With a file (whose contents don't matter much) hello.c in /tmp.
> >
> >      gcc -g3 -o hello hello.c
> >
> > Then I can debug hello fine with the new M-x gdb.
> >
> > If I compile it thus:
> >
> >      gcc -g3 -o hello /tmp/hello.c
> >
> > then when I do M-x gdb, and select gdb --annotate=3 hello, I see the
> > assembler code for main rather than C source code.

> This is because gdb-frame-handler can't handle word wrapping in the
> ouput of "info frame".  Should be fixed now.

I've not considered word wrapping. I can see that this would create problems
but I don't think this fixes the problem stated above as it happens before
execution has started, when "info frame" just gives "No stack." The source code
is located for Emacs with the GDB command "info source".

Bruce, when you see the assembler code for main rather than C source code
what does GDB say when you type "info source" in the GUD buffer? I can't
duplicate this problem. What operating system, version of GDB, gcc etc
are you using?

Andreas, I imagine other handlers in gdb-ui.el can't handle word wrapping so
I guess that running GDB command, "set width 0", on initialisation will help.


    Nick                                         http://www.nick.uklinux.net

^ permalink raw reply	[flat|nested] 12+ messages in thread
* new gdb/gdba code has bug with absolute source filenames
@ 2004-01-06 17:05 Bruce Stephens
  2004-01-06 20:40 ` Andreas Schwab
  0 siblings, 1 reply; 12+ messages in thread
From: Bruce Stephens @ 2004-01-06 17:05 UTC (permalink / raw)


With a file (whose contents don't matter much) hello.c in /tmp.

     gcc -g3 -o hello hello.c

Then I can debug hello fine with the new M-x gdb.

If I compile it thus:

     gcc -g3 -o hello /tmp/hello.c

then when I do M-x gdb, and select gdb --annotate=3 hello, I see the
assembler code for main rather than C source code.

Obviously this is only a minor bug---overall the new modes are very
nice, even compared to the very usable previous version.

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

end of thread, other threads:[~2004-01-08 22:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-08 22:04 new gdb/gdba code has bug with absolute source filenames Nick Roberts
  -- strict thread matches above, loose matches on Subject: below --
2004-01-07 22:43 Nick Roberts
2004-01-08  0:46 ` Bruce Stephens
2004-01-08 10:21   ` Nick Roberts
2004-01-08 11:11     ` Bruce Stephens
2004-01-08 10:27   ` Andreas Schwab
2004-01-08 11:04     ` Bruce Stephens
2004-01-08 10:21 ` Andreas Schwab
2004-01-08 12:28   ` Nick Roberts
2004-01-08 13:53     ` Bruce Stephens
2004-01-06 17:05 Bruce Stephens
2004-01-06 20:40 ` Andreas Schwab

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).