🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.verilog
Article #210

Re: debug verilog-PLI using gdb ?

#210
From: Swapnajit Mittra
Date: Thu, 06 Feb 2003 20:38
34 lines
2260 bytes
thewhizkid@rock.com (thewhizkid) wrote in message news:<31b3e6e5.0302051926.321131e2@posting.google.com>...
> Hi everybody:
> 
> I'm trying to single-step through my verilog-PLI functions using gdb.
> I am able to load the symbol table, but then when I try to
> single-step using the "step" command, I am able to step a 
> couple of times and then the program just quits saying its 
> done.
> 
> Can somebody give me some tips ?
> Thanks.
> --thewhizkid.

For general information on how to debug PLI application, 
look into: 
   http://www.angelfire.com/ca/verilog/debug1.html

Most likely, you have an error (memory fault, bus error, 
segmentation fault etc.) at the last location that is 
causing the program to terminate. Note that, your 
last location may contain a function call and the error 
may be heppening inside the function. Try setting up 
breakpoints. 

In general, I found xxgdb to be more user friendly in 
this type of situation. 

- Swapnajit. 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Project VeriPage - Your one stop source for Verilog PLI resources. 
http://www.angelfire.com/ca/verilog/
Now available: "VCS DirectC - A Quick Look", a Project VeriPage Report
http://www.angelfire.com/ca/verilog/directc/
Technical Details
Message-ID: <57666134.0302061238.4f928135@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
References: <31b3e6e5.0302051926.321131e2@posting.google.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,b8ed3448cc3844df
X-Google-Attributes: gid11318c,public
X-Google-Thread: 112e4c,b8ed3448cc3844df
X-Google-Attributes: gid112e4c,public
X-Google-ArrivalTime: 2003-02-06 12:38:13 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
From: mittra@juno.com (Swapnajit Mittra)
Newsgroups: comp.lang.verilog,gnu.gcc.help
Subject: Re: debug verilog-PLI using gdb ?
Date: 6 Feb 2003 12:38:13 -0800
Organization: http://groups.google.com/
Lines: 34
Message-ID: <57666134.0302061238.4f928135@posting.google.com>
References: <31b3e6e5.0302051926.321131e2@posting.google.com>
NNTP-Posting-Host: 192.82.208.3
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1044563893 29220 127.0.0.1 (6 Feb 2003 20:38:13 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 6 Feb 2003 20:38:13 GMT