Comment # 21 on bug 1201107 from
(In reply to Jan Engelhardt from comment #18)

> implementation in home:jengelh:branches:windows:mingw:win32> so we get source files again, but I have not tried if gdb is happy enough
> with that.

No, it did not find that sources:

Running gdb with a dbus-daemon.exe binary configured/compiled with
mingw32-cmake/make with 

$ wine gdb --args bin/dbus-daemon.exe --session
...
[GCC 12.1.0]
Reading symbols from bin/dbus-daemon.exe...
(gdb) b main
Breakpoint 1 at 0x436350: file /home/xxx/src/dbus/bus/main.c, line 397.
(gdb) r
Starting program: Z:\home\xxx\src\dbus-cmake-mingw32-build\bin\dbus-daemon.exe
--session

Breakpoint 1, main (argc=2, argv=0xba10d0) at /home/xxx/src/dbus/bus/main.c:397
397     {
(gdb) l
392     }
393     #endif /* DBUS_UNIX */
394
395     int
396     main (int argc, char **argv)
397     {
398       DBusError error;
399       DBusString config_file;
400       DBusString address;
401       DBusString addr_fd;

With 

1. install mingw32-dbus-1 package
2. install mingw32-dbus-1-debug package

$ cd /usr/i686-w64-mingw32/sys-root/mingw
$ wine gdb --args bin/dbus-daemon.exe --session

now I cannot get the source 

Breakpoint 1, main (argc=2, argv=0xac1118) at main.c:392
392     main.c: No such file or directory.


In the past I remember that there was printed 

Breakpoint 1, main (argc=2, argv=0xac1118) at
/home/abuild/rpmbuild/BUILD/dbus-1.12.20-xxx/bus/main.c:392."

which could be substituted with 

 set substitute-path /home/abuild/rpmbuild/BUILD src/debug

to get the real source shown.


You are receiving this mail because: