From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Tromey To: Eli Zaretskii Cc: gdb@sources.redhat.com, bug-gnu-emacs@gnu.org Subject: Re: Using gdb with emacs Date: Fri, 07 Sep 2001 13:59:00 -0000 Message-id: <87g09ybt9c.fsf@creche.redhat.com> References: <874rqfvl52.fsf@creche.redhat.com> <2593-Fri07Sep2001105921+0300-eliz@is.elta.co.il> <87elpid9dt.fsf@creche.redhat.com> X-SW-Source: 2001-09/msg00066.html >>>>> "Tom" == Tom Tromey writes: >>>>> "Eli" == Eli Zaretskii 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