Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Modula 3 > cm3 and gdb
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 10 Topic 63 of 148
Post > Topic >>

cm3 and gdb

by Henning Thielemann <iakd0@[EMAIL PROTECTED] > Sep 22, 2003 at 02:20 PM

Has someone experiences with the GNU debugger applied to cm3 compiled
programs? GDB can be of big help when backtracing some nested function
calls. I have a program which raises an exception, but when run under GDB
it aborts even earlier, so I cannot trace the exception of interest. :-(

thielema@[EMAIL PROTECTED]
> cm3 -version
Critical Mass Modula-3 version 5.2.6
  last updated: 2003-06-27
  configuration: /home/thielema/cm3/bin/LINUXLIBC6/cm3.cfg

thielema@[EMAIL PROTECTED]
> gdb LINUXLIBC6/test
GNU gdb Red Hat Linux (5.2-2)
....
(gdb) run
Starting program:
/home/thielema/programming/m3/pkg/wavelib/test/LINUXLIBC6/test

Program received signal SIGSEGV, Segmentation fault.
0x400205fa in LongRealSignal__Init (M3_EYFkVD_SELF=0x403c3208,
M3_AcxOUs_first=-512, M3_AcxOUs_number=1149) at Signal.mg:50
50      Signal.mg: No such file or directory.
        in Signal.mg
(gdb) backtrace
#0  0x400205fa in LongRealSignal__Init (M3_EYFkVD_SELF=0x403c3208,
M3_AcxOUs_first=-512, M3_AcxOUs_number=1149) at Signal.mg:50
#1  0x4002114b in LongRealSignal__UpSample (M3_EYFkVD_x=0x403c31f8,
M3_AcxOUs_factor=2) at Signal.mg:184
....

LongRealSignal is a SAFE module and should not make any troubles I
thought.




 10 Posts in Topic:
cm3 and gdb
Henning Thielemann <ia  2003-09-22 14:20:38 
Re: cm3 and gdb
Olaf Wagner <wagner@[E  2003-09-28 13:09:13 
Re: cm3 and gdb
"E.A. Ratzer" &  2003-09-28 17:38:59 
Re: cm3 and gdb
Olaf Wagner <wagner@[E  2003-09-28 22:56:34 
newsgroup for modula 3 no longer in google?
Henning Thielemann <ne  2003-09-30 12:30:29 
Re: newsgroup for modula 3 no longer in google?
Teresa <<Terry>   2003-09-30 15:21:08 
Re: newsgroup for modula 3 no longer in google?
dragisha@[EMAIL PROTECTED  2003-10-06 01:11:17 
Re: newsgroup for modula 3 no longer in google?
Henning Thielemann <ia  2003-10-06 16:10:48 
Re: newsgroup for modula 3 no longer in google?
Teresa <<Terry>   2003-10-06 15:39:00 
Re: newsgroup for modula 3 no longer in google?
"E.A. Ratzer" &  2003-10-01 11:12:46 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 0:38:19 CDT 2008.