bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using gdb with emacs


From: Tom Tromey
Subject: Re: Using gdb with emacs
Date: 07 Sep 2001 15:11:59 -0600

>>>>> "Tom" == Tom Tromey <address@hidden> writes:
>>>>> "Eli" == Eli Zaretskii <address@hidden> writes:

Eli> What happens if you do this:
Eli> (gdb) dir /home/tromey/gnu/egcs/mauve/gnu/testlet/java/text/DateFormat
Eli> (gdb) break Test.java:83
Eli> Does it work then?

Tom> Yes, that will work for this particular case.

I spoke too soon.  I tried it, and it does not work:

    (gdb) b Test.java:58
    Breakpoint 1 at 0x80afa20: file 
../mauve/gnu/testlet/java/io/ObjectInputOutput/Test.java, line 58.
    (gdb) dir ~/gnu/egcs/mauve/mauve/gnu/testlet/java/text/DateFormat/
    Source directories searched: 
/x2/tromey/gnu/egcs/mauve/mauve/gnu/testlet/java/text/DateFormat:$cdir:$cwd
    (gdb) b Test.java:58
    Note: breakpoint 1 also set at pc 0x80afa20.
    Breakpoint 2 at 0x80afa20: file 
../mauve/gnu/testlet/java/io/ObjectInputOutput/Test.java, line 58.


I dug through the gdb source a bit.  The problem is that `dir' is
(apparently) only used to find the source file for listing purposes
(source.c).  It doesn't appear to be used when trying to determine
which source file a user means when he (or Emacs) types "b Test.java"
(this code is in symtab.c).

Tom



reply via email to

[Prev in Thread] Current Thread [Next in Thread]