[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs-gdb tutorial
From: |
Benedikt Stefansson |
Subject: |
Re: emacs-gdb tutorial |
Date: |
Mon, 18 May 1998 11:25:47 +0200 |
address@hidden wrote:
> I've never had much use for gdb yet, because I
> don't really understand what it is for.
I couldn't imagine writing a simulation without using GDB, which is why I'm
kind of in a bind with machines where I can't install GDB 4.16 (read Irix 6.x)
The bottom line is that a debugger allows you to monitor and check code at
runtime, stepping through lines of code as they are getting executed. To do
this you set breakpoints (to halt execution on a specific line of code or
method) and ask the debugger to show current values of variables, the class of
an object etc. The Emacs-GDB combination is especially nice since the editor
can show you exactly where you are in the source code.
> One caution/question. There is the obj-c "patched" version of gdb
> version 4.16, but I saw last week there is a new release of gdb 4.17.
> Last I heard it was doubtful obj-c would be included and who knows
> about a patch?
>
I've tried to apply the 4.16 patches to 4.17 but there are two key files that
have been altered to much between the two versions. I tried going through the
files by hand and making judgements about which lines to patch and which not,
but wasn't successful (there are hundreds of differences).
I think one can still use 4.16 on those machines which are supported, even
with GCC 2.8.x. Does anyone know this?
> It may be that your writeup would get dated very quickly. I guess
> we can insist people keep the older gdb, at least until new unix/linux
> releases start including the new one.
>
The changes to GDB from 4.16 to 4.17 are mostly internal, so I wouldn't worry
about the FAQ getting outdated.
--
With best regards,
-Benedikt
-------------------------------------------------------------------
Department of Economics, UCLA, Los Angeles, CA 90095-1477, USA
Tel: (310) 825 4126 Fax: (310) 825 9528
4/3-7/1 1998:
Dipartimento di Economia, Universita di Trento, 38100 Trento, ITALY
Tel: +39 (461) 88 22 46 Fax: +39 (461) 88 22 22
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
==================================
- Re: Documentation: swarm-symbols, (continued)
Re: Documentation: swarm-symbols, pauljohn, 1998/05/13
Java swarm from Agillis??????, Alessandro Perrone, 1998/05/15
emacs-gdb tutorial, Alessandro Perrone, 1998/05/15