RE: Using debugger under Linxu...
Very nice. :) DDD looks good. Makes getting around a little nicer, but for the times when the gui get's in the way, you can just use gdb through ddd's command line interface window. :) Thanks Erik! -Original Message- From: Erik van der Knaap [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 24, 2000 12:02 AM To: [EMAIL PROTECTED] Subject: Re: Using debugger under Linxu... Isaac Richards wrote: On 23-Feb-2000 Lee Patterson wrote: I had heard that gdb doesn't support multiple threads. Is this "sort of" true? It works more or less in other words. Nope, it supports threaded programs.. Well, sorta. Different versions of gdb support different versions of glibc's threading model, but the latest release of gdb (which is what's shipping in rh 6.2 and the debian 2.2 release candidate, dunno about other distros) supports the threads library that's in the latest release of glibc, so it's all fine... I'm also very green with Linux. Are there alternative debuggers (commercial /or free) one can use? What's a good one? That, I don't know. It's something we're quite interested in for freeamp, though. =) Isaac ___ [EMAIL PROTECTED] http://www.freeamp.org/mailman/listinfo/freeamp-dev Try using the ddd (Data Display Debugger), we are also using it. Here is a text from there homepage. http://www.gnu.org/software/ddd/ or http://www.cs.tu-bs.de/softech/ddd/ddd.html Regards, Erik van der Knaap --- Snip Snip Snip --- The Data Display Debugger (DDD) is a popular graphical user interface for command-line debuggers such as GDB, DBX, JDB, WDB, XDB, the Perl debugger, and the Python debugger. Besides ``usual'' front-end features such as viewing source texts, DDD has become famous through its interactive graphical data display, where data structures are displayed as graphs. A simple mouse click dereferences pointers or views structure contents, updated each time the program stops. Using DDD, you can reason about your application by watching its data, not just by viewing it execute lines of source code. Other DDD features include: debugging of programs written in Ada, C, C++, Chill, Fortran, Java, Modula, Pascal, Perl, and Python; machine-level debugging; hypertext source navigation and lookup; breakpoint, watchpoint, backtrace, and history editors; array plots; undo/redo; preferences and settings editors; program execution in terminal emulator window; debugging on remote host; on-line manual; extensive help on the Motif user interface; command-line interface with full editing, history, and completion capabilities. --- Snip Snip Snip -- ___ [EMAIL PROTECTED] http://www.freeamp.org/mailman/listinfo/freeamp-dev ___ [EMAIL PROTECTED] http://www.freeamp.org/mailman/listinfo/freeamp-dev
Re: Using debugger under Linxu...
Isaac Richards wrote: On 23-Feb-2000 Lee Patterson wrote: I had heard that gdb doesn't support multiple threads. Is this "sort of" true? It works more or less in other words. Nope, it supports threaded programs.. Well, sorta. Different versions of gdb support different versions of glibc's threading model, but the latest release of gdb (which is what's shipping in rh 6.2 and the debian 2.2 release candidate, dunno about other distros) supports the threads library that's in the latest release of glibc, so it's all fine... I'm also very green with Linux. Are there alternative debuggers (commercial /or free) one can use? What's a good one? That, I don't know. It's something we're quite interested in for freeamp, though. =) Isaac ___ [EMAIL PROTECTED] http://www.freeamp.org/mailman/listinfo/freeamp-dev Try using the ddd (Data Display Debugger), we are also using it. Here is a text from there homepage. http://www.gnu.org/software/ddd/ or http://www.cs.tu-bs.de/softech/ddd/ddd.html Regards, Erik van der Knaap --- Snip Snip Snip --- The Data Display Debugger (DDD) is a popular graphical user interface for command-line debuggers such as GDB, DBX, JDB, WDB, XDB, the Perl debugger, and the Python debugger. Besides ``usual'' front-end features such as viewing source texts, DDD has become famous through its interactive graphical data display, where data structures are displayed as graphs. A simple mouse click dereferences pointers or views structure contents, updated each time the program stops. Using DDD, you can reason about your application by watching its data, not just by viewing it execute lines of source code. Other DDD features include: debugging of programs written in Ada, C, C++, Chill, Fortran, Java, Modula, Pascal, Perl, and Python; machine-level debugging; hypertext source navigation and lookup; breakpoint, watchpoint, backtrace, and history editors; array plots; undo/redo; preferences and settings editors; program execution in terminal emulator window; debugging on remote host; on-line manual; extensive help on the Motif user interface; command-line interface with full editing, history, and completion capabilities. --- Snip Snip Snip -- ___ [EMAIL PROTECTED] http://www.freeamp.org/mailman/listinfo/freeamp-dev
Re: Using debugger under Linxu...
Hello, I loked at the latest gdb. It is not a GUI based one?. Is there any good GUI based debugger based on gdb?. also, If I do some changes in some section of the code (for example commandline.ui) and want to use the gdb to find out where UI failed (i.e. the to find the stupid mistake I have made in the code) how do I do that without doing any changes in the make file?. thanks Prabha ___ [EMAIL PROTECTED] http://www.freeamp.org/mailman/listinfo/freeamp-dev
Re: Using debugger under Linxu...
Prabhakaran Selvadurai wrote: Hello, I loked at the latest gdb. It is not a GUI based one?. Is there any good GUI based debugger based on gdb?. Look for ddd (Data Display Debugger), or ups. See my previous mail. Regards, Erik van der Knaap also, If I do some changes in some section of the code (for example commandline.ui) and want to use the gdb to find out where UI failed (i.e. the to find the stupid mistake I have made in the code) how do I do that without doing any changes in the make file?. thanks Prabha ___ [EMAIL PROTECTED] http://www.freeamp.org/mailman/listinfo/freeamp-dev ___ [EMAIL PROTECTED] http://www.freeamp.org/mailman/listinfo/freeamp-dev
RE: Using debugger under Linxu...
On 23-Feb-2000 Prabhakaran Selvadurai wrote: Hi There, I am not that experience in programming in linux environment so please pardon me with basic question. 1) What debugger is used by the freeamp developers (linux)?. I use gdb. It works most of the time, but freeamp is complex enough and has enough threads going on that gdb has an annoying tendency to segfault when freeamp does.. makes it fun to debug =) 2) How to change the make file to be able to debug?. (The make file is too complicated for me to follow). If you built freeamp from sources yourself, you shouldn't have to change anything.. thanks in advance.. Prabha To debug segfaults and the like, all you really need to do is: gdb freeamp gdb startup junk (gdb) run ... mess with it, wait for a segfault, etc... (gdb) bt and it'll give you a stack trace of where the problem occurred. Isaac ___ [EMAIL PROTECTED] http://www.freeamp.org/mailman/listinfo/freeamp-dev
RE: Using debugger under Linxu...
On Wed, 23 Feb 2000, Isaac Richards wrote: On 23-Feb-2000 Prabhakaran Selvadurai wrote: Hi There, I am not that experience in programming in linux environment so please pardon me with basic question. 1) What debugger is used by the freeamp developers (linux)?. I use gdb. It works most of the time, but freeamp is complex enough and has enough threads going on that gdb has an annoying tendency to segfault when freeamp does.. makes it fun to debug =) Ah. Do you have any hints for working around that? Everytime I try to debug a segfault gdb segfaults. Paul ___ [EMAIL PROTECTED] http://www.freeamp.org/mailman/listinfo/freeamp-dev