Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-debug-dev] Attempt to open file w/absolute path

This is something that I'm very interested in. Will you be posting
something for comments?

The source lookup improvements is the next item on my agenda, but I haven't started yet. I am planning to come up with a document and I'll post it as soon as it is ready.

- Let GDB do the source lookup if you can. It is often the same host OS
 as the toolchain and knows where and how to find the source files.

Agreed, but "often" is the key word here.

- There is no canonical representation. If a path originates
 from GDB, is used in Eclipse and fed back to GDB, then the
 path must *not* be converted to Eclipse speak and back to GDB
 speak, because any such transformation is inheritely lossy.
 Eclipse must store the original Eclipse/GDB path.
 E.g. today breakpoints are not persisted correctly between
 debug sessions due to such lossy conversion.

Not sure about this. Can you give examples?

Thanks,
Mikhail
----- Original Message ----- From: "Øyvind Harboe" <oyvind.harboe@xxxxxxxxx>
To: <cdt-debug-dev@xxxxxxxxxxx>
Sent: Friday, February 25, 2005 3:08 AM
Subject: [cdt-debug-dev] Attempt to open file w/absolute path


We are considering major changes in the source lookup related code
that
includes the solution for this problem. I don't think it makes sense
to
apply this patch now.

Mikhail Khodjaiants

Cool!

This is something that I'm very interested in. Will you be posting
something for comments?

Here are a couple of things I believe that a new design must take into
account if it is to survive a couple of generations:

- Let GDB do the source lookup if you can. It is often the same host OS
 as the toolchain and knows where and how to find the source files.

- Projectless debugging and development. Large existing projects will
 not be changed to be CDT projects. There is no large coordinated
 effort that I've heard about for this, but path handling is a very
 important piece to the puzzle.

- Host toolchain OS != Eclipse OS. I believe this is mostly a
 Windows issue. Hmm.... strike that. Teams could be mixed
 Windows/Linux and binaries could migrate back and forth.

 Example: MingGW or CygWin toolchain and Windows hosted Eclipse

- There is no canonical representation. If a path originates
 from GDB, is used in Eclipse and fed back to GDB, then the
 path must *not* be converted to Eclipse speak and back to GDB
 speak, because any such transformation is inheritely lossy.
 Eclipse must store the original Eclipse/GDB path.

 E.g. today breakpoints are not persisted correctly between
 debug sessions due to such lossy conversion.




--
Øyvind Harboe
http://www.zylin.com

_______________________________________________
cdt-debug-dev mailing list
cdt-debug-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cdt-debug-dev


Back to the top