Re: [patch gdb]: Fix some DOS-path related issues in gdb

André Pönitz
2011-03-04T13:05:43Z

On Friday 04 March 2011 06:12:03 ext Joel Brobecker wrote:
> > Is that use-case even practical? Who would develop on Windows if they
> > have Linux or Irix?
>
> I really can't say that this is going to happen frequently...
> But I've seen situations where developers cross compile from
> their Windows desktop and then execute on a server running a Unix-like
> system. It might make less sense for GNU/Linux (I think that people
> are less scared of it, these days), but could make more sense for
> IRIX - I don't know how easy it is to procure a machine running
> IRIX these days...

Just two data points from an "gdb frontend" perspective:

- Two weeks ago I had to enable core file handling on Windows which I
previously disabled because I assumed it would not be needed.
Someone was actually trying to use it. Quote from the bug report:
(http://bugreports.qt.nokia.com/browse/QTCREATORBUG-3813)
"I want to use gdb (compiled using Mingw for mips64 target) to
debug a machine that dumps core."

- Today(!) I got a log file containing
[...]
GNU gdb (GDB) 7.2
This GDB was configured as "i686-pc-mingw32".
[...]
153-break-insert -f "\"main.cpp\":47"
153^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",
addr="0x004013b8",func="qMain(int, char **)",file="..\\calendar\\main.cpp",
fullname="C:\\SDK1\\Examples\\4.7\\richtext\\calendar-build-desktop/..\\calendar\\main.cpp",
line="47",times="0",original-location="\"main.cpp\":47"}
[...]

Note the "/.." bit in fullname.

People try to use gdb in a lot of "cross debugging" scenarios nowadays.

Andre'