Jump to page: 1 2
Thread overview
Debug dmd2 using gdb 7.6 on windxp
Oct 16, 2014
Zaher Dirkey
Oct 20, 2014
Zaher Dirkey
Oct 22, 2014
Zaher Dirkey
Oct 24, 2014
Zaher Dirkey
Oct 24, 2014
Martin Krejcirik
Oct 28, 2014
Zaher Dirkey
Oct 28, 2014
Rainer Schuetze
Oct 29, 2014
Zaher Dirkey
Oct 31, 2014
Zaher Dirkey
Oct 31, 2014
Rainer Schuetze
Oct 31, 2014
Zaher Dirkey
Oct 31, 2014
Zaher Dirkey
Oct 31, 2014
Rainer Schuetze
Nov 02, 2014
Zaher Dirkey
Nov 03, 2014
Zaher Dirkey
Nov 03, 2014
Rainer Schuetze
Nov 02, 2014
ljkp
Nov 03, 2014
Zaher Dirkey
Nov 03, 2014
Rainer Schuetze
October 16, 2014
Hi,
I want to debug my application using gdb, i used last mingw version that include gdb7.6, i use CodeBlock as editor, but i notice gdb can't run my exe in windows xp(sp3), i added -gc to compiler but it fail to start gdb

dmd -gc hello.d
gdb hello.exe

If it work it will work with CodeBlock debugger for windows.

If not it is supported what should i use? CodeBlock have another option CDB, from where i can install it?

thanks in advance.
October 20, 2014
I searched before, but i found this after post

https://groups.google.com/forum/#!topic/ddt-ide/CGDT7ucgZvU

this very old
http://forum.dlang.org/thread/ck0rbi$2cn1$1@digitaldaemon.com
October 22, 2014
I found CDB in WinSDKWin32Tools in DVD that you can download it from Microsoft site

http://www.microsoft.com/en-us/download/details.aspx?id=8442
I choose GRMSDK_EN_DVD.iso

More info
https://developer.mozilla.org/en-US/docs/Windows_SDK_versions#Windows_7_SDK

I will try it.

On Monday, 20 October 2014 at 11:47:12 UTC, Zaher Dirkey wrote:
> I searched before, but i found this after post
>
> https://groups.google.com/forum/#!topic/ddt-ide/CGDT7ucgZvU
>
> this very old
> http://forum.dlang.org/thread/ck0rbi$2cn1$1@digitaldaemon.com

October 24, 2014
Mission failed
October 24, 2014
What compiler are you using ? Maybe gdc can produce debug info compatible with gdb on Windows. If that fails, you have to use visualD, which works great.
October 28, 2014
On Friday, 24 October 2014 at 11:21:20 UTC, Martin Krejcirik wrote:
> What compiler are you using ? Maybe gdc can produce debug info compatible with gdb on Windows. If that fails, you have to use visualD, which works great.

I used last one DMD2
gdc made some conflicts versions with my mingw, so i will retry it.

about VisualD, is it need Visual Studio paid version?
it is not worked with Express version :(

I liked D i will keep trying to use it :)
October 28, 2014

On 28.10.2014 19:34, Zaher Dirkey wrote:
> On Friday, 24 October 2014 at 11:21:20 UTC, Martin Krejcirik wrote:
>> What compiler are you using ? Maybe gdc can produce debug info
>> compatible with gdb on Windows. If that fails, you have to use
>> visualD, which works great.
>
> I used last one DMD2
> gdc made some conflicts versions with my mingw, so i will retry it.
>
> about VisualD, is it need Visual Studio paid version?
> it is not worked with Express version :(


Indeed, Visual D does not work with the Express versions because they don't support extensions.

Instead, you can use the free Visual Studio Shell. See the installation hints here: http://rainers.github.io/visuald/visuald/Installation.html

> I liked D i will keep trying to use it :)
October 29, 2014
While i am trying to download VS2010, I will go to install gdc, there is only version for mingw 4.6 for windows but, i have 4.8, do i need to revert back to mingw 4.6?
October 31, 2014
Failed to install VS2010 i have links to download but icons not appears, So i downloaded VS2080 and VisualD (VisualD in c:\programs\visuald), Create new D project in c:\temp\testd (no spaces)
but then i have Error in compiling

------ Rebuild All started: Project: testd, Configuration: Debug Win32 ------
Building Debug\testd.exe...
"Debug\testd.exe_cv" not created!
Building Debug\testd.exe failed!
Details saved as "file://c:\temp\testd\testd\testd\Debug\testd.buildlog.html"
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

On Wednesday, 29 October 2014 at 18:03:33 UTC, Zaher Dirkey wrote:
> While i am trying to download VS2010, I will go to install gdc, there is only version for mingw 4.6 for windows but, i have 4.8, do i need to revert back to mingw 4.6?

October 31, 2014

On 31.10.2014 11:31, Zaher Dirkey wrote:
> Failed to install VS2010 i have links to download but icons not appears,
> So i downloaded VS2080 and VisualD (VisualD in c:\programs\visuald),
> Create new D project in c:\temp\testd (no spaces)
> but then i have Error in compiling
>
> ------ Rebuild All started: Project: testd, Configuration: Debug Win32
> ------
> Building Debug\testd.exe...
> "Debug\testd.exe_cv" not created!
> Building Debug\testd.exe failed!
> Details saved as
> "file://c:\temp\testd\testd\testd\Debug\testd.buildlog.html"
> ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
>

I guess you are using the VS shell. As explained in the installation instructions [1], VS 2008 Shell is missing the file msobj80.dll that is needed for the debug info conversion. You need to extract that from other products as the Express version.

I rather recommend using the VS 2013 Shell instead, it doesn't need additional files.

[1] http://rainers.github.io/visuald/visuald/Installation.html
« First   ‹ Prev
1 2