Path: chuka.playstation.co.uk!news From: Jim Newsgroups: scee.yaroze.beginners Subject: Re: GDB Date: Sun, 20 Apr 1997 22:35:21 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 39 Message-ID: <335A8C19.6FF8@micronetics.com> References: <335853CC.55967925@hypemeister.bb.bawue.de> NNTP-Posting-Host: jim.micronetics.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.0b2 (Win95; I) X-Priority: 3 (Normal) Hans-Jürgen Schmid wrote: > > I would like the GNU debugger gdb for testing my code - but I do not > know how. Could anybody point me in the right direction ? > > CU > Hans Hi Hans, It's been a few week since I used gdb and even then it was only playing around, but it goes something like this. Compile your code with -g. This is for symbolic debugging information in the exe. startup siocons, and do ? because there is a command that I have forgotten, its something like 'start remote debugging' but I could be wrong. Then run gdb and do 'help' then get help on misc user commands and there should be some specific psx commands, run em. -- Well, after scanning what I just wrote, I realize there is niff all real information. Basically all I did was type 'help' and '?' at every prompt in siocons and gdb until it worked. You will have to set the com ports port and irq within gdb. I think you may have limited success with gdb because of the way it works. Its definitely not as good as similar debuggers (adb, xdb etc..) I really think you will have more luck with ton loads of asserts and printfs. l8r Jim