Debugging ng-spice


To ng-spice@ieee.ing.uniroma1.it
From Anthony Wilson <awilson@mrcmicroe.com>
Date Fri, 29 Oct 1999 10:02:21 -0700 (MST)
Delivered-To mailing list ng-spice@ieee.ing.uniroma1.it
In-Reply-To <Pine.LNX.3.96.991029073704.8234A-100000@ieee.ing.uniroma1.it >
Mailing-List contact ng-spice-help@ieee.ing.uniroma1.it; run by ezmlm
Reply-To ng-spice@ieee.ing.uniroma1.it

Alright,
Has anyone been able to or tried to step thru ng-spice to debug it?

Well, in trying to do so I am getting a SIGSEGV error in the baseaddr()
function in resource.c @ line 366.  Not sure what is happening here.  From my
understanding the SIGSEGV is an "invalid access to storage error".  Well, I
guess I don't really understand what the baseaddr() function is trying to do.
Can I just #def that section out of the code when debugging? I guess I could
try that.

I am using gdb with DDD and Code Medic.  I have also tried to Insight with its
own gdb, but all give the same error.  I compiled ng-spice with the following
options
-g -O2 -Wall
and
-g -Wall

What I am trying to do is step thru the program to see the initialization 
steps for command line arguments, stdin, stderr, stdout, and linked vector 
lists
for plotting.

Any help would appreciated.

BTW, Paolo, how do I go about joining the dev team for ng-spice.

-anthony


Partial thread listing: