Regading debugging the SPICE code
Hai everybody,
My name is anil ale. I am new to this group. I hope someone can help me.
I have source code for the spice . I installed spice in Redhat linux. Now its running good. My problem is how the spice is converting the netlist to data structure and calculating the output and plotting the graph.
I want to know how it is choosing the alogritham.
I want to debugg the code when i run the netlist in the spice.
Is there anyway to see the path, how the spice is giving output.
I tried using the gdb. but it is giving error. The error is as follows
[anil@lnx anil]$ gdb ngspice test.net
GNU gdb Red Hat Linux (6.3.0.0-1.62rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".
"/usr1/home/anil/test.net" is not a core dump: File format not recognized
(gdb) run
Starting program: /usr1/home/anil/ngspice/bin/ngspice
Program received signal SIGSEGV, Segmentation fault.
0x0806731a in baseaddr () at resource.c:463
463 x = *at;
(gdb)
this type of error is coming
Hope some one can help me
Thanks in advance
regards,
anil
|