Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

gdb on OSX not stopping at break points

Moderators: kris

Posted: 05/18/08 13:15:47

hi!

first, let me thank rasmus for his great installer for osx, which makes installing gdc/tango/dsss a true pleasure!

compiling works like a charm now, but i'm having issues with gdb (freshly reinstalled from xcode 3.0): it wont stop at breakpoints. i'm running gcc version 4.1.2 20070214 ( gdc 0.24, using dmd 1.025)on osx 10.5.2 with GNU gdb 6.3.50-20050815 (Apple version gdb-768).

i've got the following simple program and would like to put a breakpoint at the Stdout statement:

module main;

import tango.io.Stdout;

int main(char[][] args) {
	Stdout("test sucessfull!").newline;  // would like to break here
	return 0;
}

i compile with dsss build main.d and the resulting binary works as expected. now fireing up gdb:

rene$ gdb -q main
Reading symbols for shared libraries ... done
(gdb) break main.d:6
Breakpoint 1 at 0x19: file /Users/rene/Desktop/Diplomarbeit/D/eclipseTest/main.d, line 6.
(gdb) run
Starting program: /Users/rene/Desktop/Diplomarbeit/NG/D/eclipseTest/main 
Reading symbols for shared libraries ++. done
test sucessfull!

Program exited normally.
(gdb) 

attempting to do the same in eclipse/descent yields the same results, so I guess the problem is really with gdb not halting in D source files.

anybody experiencing the same behaviour? i'd be grateful for any hints!

rene

Author Message

Posted: 05/21/08 16:28:26

Continued in #1117

...... rasmus