From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,93cc4a2300ae17bc,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 1993-09-02 20:15:58 PST Path: gmd.de!xlink.net!howland.reston.ans.net!gatech!concert!samba.oit.unc.edu!bounce-bounce From: jrs@world.std.com (Rick Sladkey) Newsgroups: comp.os.linux.announce Subject: UPS debugger available for Linux Followup-To: comp.os.linux.misc Date: 3 Sep 1993 03:04:16 GMT Organization: The Internet Message-ID: <266c7g$fkm@samba.oit.unc.edu> Reply-To: jrs@world.std.com (Rick Sladkey) NNTP-Posting-Host: calypso.oit.unc.edu Summary: windowed native debugger ported to Linux Keywords: Linux, debugging, X11, program development Originator: mdw@sunSITE I have ported the UPS debugger to Linux. Diffs are available at: sunsite.unc.edu:/pub/Linux/Incoming/ups-2.45.2-linux-0.1.diff.gz Comments, suggestions and bug reports for this version may be sent to Rick Sladkey . The UPS debugger was written by Mark Russell. Here is the blurb from his README. WHAT IS UPS? ------------ Ups is a source level C debugger that runs under X11 or SunView. It runs in a window with two major regions: one showing the current state of the target program data and the other showing the currently executing source code. A key feature of ups is that the variables display is persistent: when you add a variable to the display it stays there as you step through the code. The current stack trace (which function called which) is always visible. Ups includes a C interpreter which allows you to add fragments of code simply by editing them into the source window (the source file itself is not modified). This lets you add debugging printf calls without recompiling, relinking (or even restarting) the target program. You can also add conditional breakpoints in a natural way - you just add a statement like "if (i == 73) #stop" at the appropriate place in the source window. Some things you can do with ups: + Add variables to the display by simply clicking on them in the source window. + Expand (recursively) structures and unions to show their members. + Assign to variables by editing the displayed value. + Add breakpoints by pointing with the mouse at the line where you want execution to stop. + Add interpreted code at any breakpoint, including code that calls compiled functions and assigns to variables. It's hard to describe an interactive application in a few paragraphs of text - the best way to see what ups is like grab a copy and try it. There's a walkthrough debugging session in the manual page: if you work through this and aren't hooked at the end of it then I'll give you your money back :-) HOW UPS DIFFERS FROM XXGDB, XDBX AND DBXTOOL -------------------------------------------- The key implementation difference between ups and the various X front ends for dbx and gdb is that ups is not a front end for a command based debugger. Xdbx and xgdb give you a convenient way to invoke the underlying debugger's commands, but it is fairly clear in both that you are talking to a text based debugger. Ups in the other hand is a complete native debugger implementation; there is no underlying command language. An example: to print the value of a variable in xgdb you select (by dragging) a variable name and then click on `print' in the menu. Xgdb passes the print command with the selection to gdb and displays the result. By contract in ups you click the mouse over a variable name and it is added to the display. Once the variable is added to the display it stays there, so you can watch it change as you step through the code. If the variable happens to be a structure or a pointer to a structure you can `expand' it to show its members. Again, the structure members thus added remain in the display until you get rid of them so you can watch their values change as you execute the code. Of course there is a downside to not talking to an existing debugger: you lose portability. Ups is machine dependent - a port to a new architecture is a significant effort. I think the benefits outweigh the cost. -- Send submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu