On Wed, 2010-03-03 at 07:40 -0800, Ian Lance Taylor wrote: > Steve Teale <steve.teale@xxxxxxxxxxxxxxxx> writes: > > > (gdb) n > > 6313 input_location = EXPR_LOCATION (*expr_p); > > (gdb) n > > 6729 post_p == &internal_post ? NULL : post_p, > > > > Things go pear shaped after line 6312 - after that, next seems to get > > you somewhere rather arbitrary. > > You are debugging optimized code. Random jumps do happen. You need > to go further to see if there is a real problem here. > > Ian Ian, Go further? So should I build the compiler with no optimization? My problem is that I am trying to build the GDC compiler for 4.4.3. This (for historical reasons I don't want to get involved in) involves actually patching some GCC code. However the changes in 4.4.3 are such that are such that applying the existing (4.3.4) patches is not at all obvious. To investigate what needs to be done I could really use the debugger, but of course since I patched the code I don't know if it is generating proper debug info. Catch 22. Any suggestions? Thanks Steve