This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] fullname attribute for GDB/MI stack frames


On Wed, May 04, 2005 at 09:51:22AM -0400, Bob Rossi wrote:
> > > > We can't show the user the file, but we can use it to unambiguously
> > > > place a breakpoint in the correct file.
> > > 
> > > The same can be said about "\abc" or "d:foo".
> > 
> > No, I don't think it can.  The difference between an absolute path and
> > a partially relative path is that an absolute path has no implicit
> > information.  If GDB reports that one file includes a header c:\abc and
> > another includes \abc, the front end has to guess whether GDB considers
> > those the same file or not.
> 
> This is very true. This will break CGDB for instance. It use's the
> fullname as a unique key to a file. If GDB says that c:\abc has 2
> breakpoints and \abc has 1, CGDB will have 2 source files the user can
> choose and each will contain it's own breakpoints.
> 
> It should just think there is 1 file.
> 
> What would 'info sources' do in this case anyways?

Display them both, I presume.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]