Hi all... I am now trying to debug my code...
However I have a problem with gdb...
I have the following code:
program hello; var testingint : integer; str : string; begin testingint := 432; str := 'Hello... '; writeln(str, testingint); end.
I compile it with
gpc -g -O0 --automake hello.pas --executable-file-name
And run gdb with "gdb hello"
I set a breakpoint at the start using "b hello.pas:6" and run it with "r". It stops fine, and when I have executed the next line (using "n") I try to print testingint using "print Testingint". But here I simply get "$1 = void"... What am I doing wrong here???
It prints out Str nicely (as a _p_schema-type, but I can live with that)...
Best regards Preben
===== Computers are like airconditioners: They stop working properly if you open windows.
__________________________________________________ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/
On 29 Oct 2002 at 5:21, Preben Mikael Bohn wrote:
Hi all... I am now trying to debug my code...
[...]
But here I simply get "$1 = void"... What am I doing wrong here???
See bulleted item "20020831" at:
http://www.gnu-pascal.de/gpc_533.html#SEC533
You must use the current (20020910) GPC snapshot to solve the problem.
-- Dave