Re: [coldfire-gnu-discuss] Coldfire application/compiler problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coldfire-gnu-discuss] Coldfire application/compiler problem



Dave Meador wrote:

...

* Tried logging first line inside the constructor - no logs are
executed, but crashes after the call to "new"
* Tried eliminating the body code of the constructor, no help
* Tried calling "new"/"delete" with sizeof(MyClass) just prior to the
real alloc and the test alloc/delete completes fine, but crashes upon
calling the alloc of "MyClass".
* Tried moving the alloc MyClass call to various other places in the
code, it crashes upon the first call every time.

Does anyone have any ideas what this could be and how I might go about
figuring this out?

Dave,

Have you tried using the debugger? You can start your program on the target under gdbserver and then connect it from the host using gdb, then you can place a breakpoint on the last instruction that executes fine, continue your program execution to get to the breakpoint and then step several instructions until the crash occurs. This should at least tell you on which instruction the crash occurs.

--
Maxim K.
CodeSourcery