From: j DOT aldrich6 AT genie DOT com Message-Id: <199607050346.AA039308379@relay1.geis.com> Date: Fri, 5 Jul 96 03:27:00 UTC 0000 To: djgpp AT delorie DOT com Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Subject: Re: C++ & djgpp debugger ? urg Reply to message 8187378 from 101667 DOT 3707 AT C on 07/04/96 6:54PM >I've read the faq and the info docs several times, >and I can't see how to get the gdb debugger to work >effectively with C++, given that DJGPP doesn't have >stabs format as an option. The main problem is that >gdb can't demangle C++ names, which makes it almost impossible >to set breakpoints etc. Before you go screaming off telling everybody how gdb sucks, why don't you do some exploring with the setting options? To get gdb to automagically demangle C++ names, just type the following command: set print demangle *poof!* There you are. Figuring out how to do this is as simple as browsing through the help commands. Typing "help" gives you a list of categories, one of which includes gdb settings. Typing "help set" gives you a list of everything in gdb you can set. On this list is "print" settings, so therefore you should type "help set print", which brings up a whole large list of print options, oneof which is "demangle". Hell, I don't even use C++, and I figured this out within half a day of starting to use gdb. Now, you'll probably complain that you have to type this in every time you run gdb. Wrong again. Create a file called 'gdb.ini' in your DJGPP\BIN directory, and put in it all the commands you want to be run automatically when gdb starts up. You can even have separate gdb.ini files in each project directory which are loaded in addition to the main one in DJGPP\BIN. Note to Eli, DJ, and whoever... the gdb docs don't mention 'gdb.ini' specifically; they don't appear to have been translated at all from the Unix versions. Is it desirable to edit the docs, or is this a FAQ? John