BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

debug information of other compiler

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
Frank Birbacher
Guest





PostPosted: Thu Jan 22, 2004 4:53 pm    Post subject: debug information of other compiler Reply with quote



Hi!

I have got a little project (10KB using boost) which doesn't run in my
BCB5Pro well. It compiles, runs, but doesn't terminate (with gcc it does
terminate). The IDE chokes with exceptions (from IDE, not from program)
and messes up the editor (no changes to code are possible anymore).

Is there a way of using another compiler for compilation, but to use the
debugger of BCB which allows step-by-step execution and display of source?

Frank

Back to top
Dennis Jones
Guest





PostPosted: Thu Jan 22, 2004 8:36 pm    Post subject: Re: debug information of other compiler Reply with quote




"Frank Birbacher" <bloodymir.crap (AT) gmx (DOT) net> wrote

Quote:
Hi!

I have got a little project (10KB using boost) which doesn't run in my
BCB5Pro well. It compiles, runs, but doesn't terminate (with gcc it does
terminate). The IDE chokes with exceptions (from IDE, not from program)
and messes up the editor (no changes to code are possible anymore).

Is there a way of using another compiler for compilation, but to use the
debugger of BCB which allows step-by-step execution and display of source?

Not unless the other compiler generates Borland-style debug information!

Does the program terminate successfully when it is not run from within the
IDE?

My guess is that there is a latent bug in the source code, and that you are
merely getting lucky when the project is run after being compiled with gcc.
Have you tried CodeGuard, BoundsChecker, or AQTime to help pinpoint the bug?

- Dennis



Back to top
Frank Birbacher
Guest





PostPosted: Fri Jan 23, 2004 12:37 am    Post subject: Re: debug information of other compiler Reply with quote



Hi!

Dennis Jones wrote:
Quote:
Is there a way of using another compiler for compilation, but to use the
debugger of BCB which allows step-by-step execution and display of source?


Not unless the other compiler generates Borland-style debug information!

Are there any besides bcc itself?

Quote:
Does the program terminate successfully when it is not run from within the
IDE?

No. But it does when I turn off strict ANSI compliance.

Quote:
My guess is that there is a latent bug in the source code, and that you are
merely getting lucky when the project is run after being compiled with gcc.
Have you tried CodeGuard, BoundsChecker, or AQTime to help pinpoint the bug?

I turned on CodeGuard, which reports a couple of error from within
boost. The others you mentioned I don't have.

I set up two scenarios:
I: program doesn't consume all of its input files, but terminates due to
invalid input
II: program should comsume all of its input and produce an output file

I found out for full debug mode, scenario I:
- CodeGuard reports errors unless I use dynamic RTL and turn off
strict ANSI compliance
- Only if I use strict ANSI compliance, the program does not terminate.
- I didn't notice a difference when running the program within the IDE
or outside.

In scenario II:
- always hangs on writing the output via ofstream

I guess the RougeWave/boost combo messes some things up, if run in
strict ANSI mode (CG reported failed calls to some seek function inside
fstream.h).

BTW, the exe generated with BCB is 650KB only, while gcc/cygwin creates
1500KB and gcc/DevCpp in debug mode even >11MB (!).

Frank


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Fri Jan 23, 2004 1:06 am    Post subject: Re: debug information of other compiler Reply with quote


"Frank Birbacher" <bloodymir.crap (AT) gmx (DOT) net> wrote


Quote:
Is there a way of using another compiler for compilation

Not with BCB, no. CBX allows that, though.


Gambit



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.