From: peter@tardis.trl.OZ.AU (Peter K. Campbell)
Subject: Re: xdbx problems ...
Keywords: debuggers
Organization: Telecom Research Labs, Melbourne, Australia
Date: Wed, 7 Oct 1992 04:34:10 GMT

laydin@solar.usc.edu (Levent Aydin) writes:

>	I am using xdbx-2.00 to debug my programs.Recently I have had enough
>problems with it and I decided to ask if any of you out there know a better debug
>tool for X windows based on dbx.If there is a newer version let me know.Or if
>you are using a better one with no problems tell me its name.Or better yet let me
>know if I can get it from an ftp site or something.

After trying half a dozen Unix debuggers, I must say that the best by far
is UPS.  Rather than being an X interface to dbx (xdbx) or gdb (xxgdb),
this is a stand alone C debugger.  It runs under X (=> Openwindows) and
Sunview, has smooth scrolling, separate windows to display the program
code and variables in, easy expansion of variables (including Environment
variables), works out the source files in an executable, etc.

However, the nicest feature is the ability to add C-code to an executable
_without_ needing to recompile.  What you do is put in a breakpoint (which
is display as "#stop" in bold => EZ to find), and then just add your C
code before this, e.g.

         if (i == 72)
              #stop;

         if (strcmp(p->p_name, "foo") == 0)
              #stop;

Simple comparison, function calls, anything can be done.  A very useful
tool, one which I mainly use to put "printf" statements everywhere to show
me why my variables aren't giving me the correct result :-).

It also has smooth scrolling of code, and if the source code is newer than
the executable will "beep" you and invert the code screen to warn you of
this fact.

The manual is also very good, including a complete example of how to use
all the features.

Note, however, that it doesn't handle C++ code.  But there's nothing to
stop you preprocessing it with cpp/gcc first and then debugging this.

You can get it from:

Host athene.uni-paderborn.de

    Location: /unix/X11/more_contrib
      FILE      -r-xr-xr-x     935121  May 13 15:18  ups-2.31.tar.Z

Host clouso.crim.ca

    Location: /pub/X11/X11R5/contrib-Internet
      FILE      -rwxr-xr-x       9758  May 22 15:40  ups-2.31.README
      FILE      -rwxr-xr-x     963435  May 22 15:43  ups-2.31.tar.Z

Host crl.dec.com

    Location: /pub/X11/contrib
      FILE      -rw-r--r--     963435  Jun 24  1991  ups-2.31.tar.Z

Host ftp.uni-kl.de

    Location: /pub1/X.V11R4/contrib
      FILE      -rw-r--r--     963435  May 14 11:56  ups-2.31.tar.Z

Host ftp.uu.net

    Location: /pub/window-sys/X/contrib
      FILE      -rw-r--r--       5447  May 19  1991  ups-2.31.README.Z
      FILE      -rw-r--r--     963435  May 19  1991  ups-2.31.tar.Z

Host gipsy.vmars.tuwien.ac.at

    Location: /pub/unix
      FILE      -rw-r--r--       9758  Nov 26  1991  ups-2.31.README
      FILE      -rw-r--r--     963435  Nov 26  1991  ups-2.31.tar.Z

Host gogol.cenatls.cena.dgac.fr

    Location: /pub/X11
      FILE      -rw-r--r--     963435  May 22 08:39  ups-2.31.tar.Z

Host guardian.cs.psu.edu

    Location: /pub/src
      FILE      -rw-r--r--       9758  Aug 31  1991  ups-2.31.README
      FILE      -rw-r--r--     971673  Aug 31  1991  ups-2.31.tar.Z

Host icarus.riacs.edu

    Location: /pub
      FILE      -rw-r--r--       9758  May 26 23:31  ups-2.31.README
      FILE      -rw-r--r--     963435  May 26 23:31  ups-2.31.tar.Z

Host imag.imag.fr

    Location: /archive/x11/ups-2.31
      FILE      -rw-r--r--       9758  Jun  8  1991  ups-2.31.README
      FILE      -rw-r--r--     963435  Jun  8  1991  ups-2.31.tar.Z

Host ipc1.rrzn.uni-hannover.de

    Location: /pub/unix/windows/X11-Tools
      FILE      -rw-r--r--     963435  Sep 10 20:19  ups-2.31.tar.Z

Host iraun1.ira.uka.de

    Location: /x11
      FILE      -rw-r--r--       9758  Nov 14  1991  ups-2.31.README
      FILE      -rw-r--r--     963435  Nov 14  1991  ups-2.31.tar.Z

Host iros1.iro.umontreal.ca

    Location: /pub/Internet/x11r5/contrib-Internet
      FILE      -rw-r--r--       9758  Nov 19  1991  ups-2.31.README
      FILE      -rw-r--r--     963435  Nov 29  1991  ups-2.31.tar.Z

Host iskut.ucs.ubc.ca

    Location: /pub/X11/contrib/Readmes
      FILE      -rw-rw-r--      10169  Apr 21 11:12  ups-2.31.README.Z
    Location: /pub/X11/contrib
      FILE      -rw-rw-r--     963435  May 31  1991  ups-2.31.tar.Z

Host mcsun.eu.net
 
    Location: /windows/X/R4.contrib
      FILE      -rw-r--r--       5447  Sep 24  1991  ups-2.31.README.Z
      FILE      -rw-rw-r--     963435  Sep 24  1991  ups-2.31.tar.Z

Host nic.funet.fi

    Location: /pub/X11/contrib
      FILE      -rw-rw-r--       9758  May  6 21:20  ups-2.31.README
      FILE      -rw-rw-r--     963435  May  6 21:20  ups-2.31.tar.Z

    Location: /pub/pics/jpeg/programs/X11
      FILE      -rw-rw-r--       9758  May  6 21:20  ups-2.31.README
      FILE      -rw-rw-r--     963435  May  6 21:20  ups-2.31.tar.Z

Host nuri.inria.fr

    Location: /X/contrib/clients
      FILE      -rw-rw-r--       9758  Jun  9 10:32  ups-2.31.README
      FILE      -rw-rw-r--     963435  Jun  9 10:32  ups-2.31.tar.Z

Host oskgate0.mei.co.jp

    Location: /tmp_mnt/public/mnt0/X
      FILE      -rw-r--r--     963435  May 21  1991  ups-2.31.tar.Z

Host phloem.uoregon.edu
 
    Location: /pub/src/X11
      FILE      -rw-r--r--     963435  May 26 03:35  ups-2.31.tar.Z

Host plaza.aarnet.edu.au

    Location: /X11/contrib
      FILE      -rw-r--r--       9758  Jun  1  1991  ups-2.31.README
      FILE      -rw-rw-r--       5447  Jul 26  1991  ups-2.31.README.Z
      FILE      -rw-r--r--     963435  May 23  1991  ups-2.31.tar.Z

Host psuvax1.cs.psu.edu

    Location: /pub/src
      FILE      -rw-r--r--       9758  Aug 31  1991  ups-2.31.README
      FILE      -rw-r--r--     971673  Aug 31  1991  ups-2.31.tar.Z

Host qiclab.scn.rain.com

    Location: /pub/programming
      FILE      -rw-r--r--    2508915  Mar 29 00:00  ups-2.31.tar.Z

Host relay.iunet.it

    Location: /local
      FILE      -rwxr-xr-x     963435  Aug  4  1991  ups-2.31.tar.Z

Host rs3.hrz.th-darmstadt.de
 
    Location: /pub/X11/contrib
      FILE      -rw-rw-r--       9758  May 19  1991  ups-2.31.README

Host src.doc.ic.ac.uk

    Location: /graphics/X11/contrib
      FILE      -r--r--r--       9758  May 21  1991  ups-2.31.README
      FILE      -r--r--r--     963435  May 22  1991  ups-2.31.tar.Z

Host sun0.urz.uni-heidelberg.de

    Location: /pub/X11
      FILE      -rw-r--r--     963435  Jun  8 18:32  ups-2.31.tar.Z

Host swdsrv.edvz.univie.ac.at

    Location: /x11/contrib
      FILE      -rw-r--r--       9758  May 20  1991  ups-2.31.README
      FILE      -rw-r--r--     963435  May 20  1991  ups-2.31.tar.Z

Host switek.uni-muenster.de

    Location: /pub/tools
      FILE      -r--r--r--       9758  Jun  3  1991  ups-2.31.README
      FILE      -r--r--r--     963435  Jun  3  1991  ups-2.31.tar.Z

Host theta.iis.u-tokyo.ac.jp
 
    Location: /contrib
      FILE      -rw-r--r--       9758  Nov  3  1991  ups-2.31.README
      FILE      -rw-r--r--     963435  Nov  3  1991  ups-2.31.tar.Z

Host tupac-amaru.informatik.rwth-aachen.de

    Location: /pub/unix
      FILE      -rw-r--r--     935121  Aug 17 08:06  ups-2.31.tar.Z

Host ugle.unit.no

    Location: /pub/X11/contrib
      FILE      -r--r--r--       9662  Aug 18 06:45  ups-2.31.README
      FILE      -rw-r--r--     963435  Aug 18 06:44  ups-2.31.tar.Z

Host unix.hensa.ac.uk

    Location: /pub/uunet/pub/window-sys/X/contrib
      FILE      -rw-r--r--       5447  May 19  1991  ups-2.31.README.Z
      FILE      -rw-r--r--     963435  May 19  1991  ups-2.31.tar.Z

Host ugle.unit.no

    Location: /pub/X11/contrib
      FILE      -r--r--r--       9662  Aug 18 06:45  ups-2.31.README
      FILE      -rw-r--r--     963435  Aug 18 06:44  ups-2.31.tar.Z

Host unix.hensa.ac.uk

    Location: /pub/uunet/pub/window-sys/X/contrib
      FILE      -rw-r--r--       5447  May 19  1991  ups-2.31.README.Z
      FILE      -rw-r--r--     963435  May 19  1991  ups-2.31.tar.Z

Host uts.mcc.ac.uk

    Location: /pub/src
      FILE      -r--r--r--       9571  Apr 21 11:19  ups-2.31.README
      FILE      -r--r--r--     963435  Apr 21 11:18  ups-2.31.tar.Z

Host walhalla.germany.eu.net

    Location: /pub/X11/contrib
      FILE      -rw-r--r--       9758  May 20  1991  ups-2.31.README
      FILE      -rw-r--r--     963435  May 20  1991  ups-2.31.tar.Z

Host world.std.com

    Location: /src/debuggers
      FILE      -r--r--r--     963435  Aug  7 00:51  ups-2.31.tar.Z

according to archie :-).

>	Thank you very much.Please address directly to me as I cannot read this
>group too often.
net.etiquette:  If one asks question on a group, one must be prepared to
read it.  But I'll mail it too, I must be in a good mood :-).

Peter K. Campbell
p.campbell@trl.oz.au
Newsgroups: comp.windows.x.apps