-g Works_(re)

Sat, 9 Aug 1997 12:02:12 +0100 (WET DST)


On Sat, 9 Aug 1997, Bernhard Tschirren wrote:

> 
> Compiling with '-g' seems to work. I dont usually compile with this option,
> so I cant be sure. However, the last couple of programs compiled OK with
> '-g'. Great Work!
> 

Ahum?

I think that always worked (at least the last two years)
In fact, GCC (and thus, GPC) is one of the few compilers that can put
debug info in optimized code. Though debugging such code can be confusing,
because the compiler may optimize code away, or rearange it.

It would be nice if gdb recognized Pascal syntax, so you could give it
commands like `display p^.field'

I started work in this direction a few months ago, but I have lots of
other things on my to-do list...

JJ
---
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going
to land, and it could be dangerous sitting under them as they fly
overhead.  -- RFC1925.


Jan-Jaap van der Heijden (janjaap@Wit381304.student.utwente.nl)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es