mkhaldi@softaddicts.ca wrote:
Does it happen with a simple test program such as the following, or only in more complicates cases?
It happened in a simple case like your example. I just put a value to this integer!
What did you type in gdb? Which backend (GCC) version does your GPC use?
I have :
- gdb 5.1-4
- gcc 2.96 but I built gpc with gcc 2.95 core.
- I use DDD like graphical debug tool.
Sorry but I forgot a thing : I can't examine the value of this variable. How to do?
I'm not familiar with ddd, i gdb you type `p <expression>' where `<expression>' can simply be a variable name.
frank@goedel:~/work>cat foo.pas program Foo;
var i: Integer = 42;
begin end. frank@goedel:~/work>gpc -g foo.pas frank@goedel:~/work>gdb ./a.out GNU gdb 5.2.1 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i586-pc-linux-gnulibc1"... (gdb) p i $1 = 42 (gdb) q
Frank