Hi, When I compile a pascal program with gpc and -g option. I try to use the binary file with gdb. But when I want to examine a value of a variable, gdb says the type of the variable is "void" instead of "integer". What is the solution to examine variables? I have gdb5.1.x and gpc is the last release before the last updates dating 02/09/2003 thanks
Mehdi Khaldi wrote:
Hi, When I compile a pascal program with gpc and -g option. I try to use the binary file with gdb. But when I want to examine a value of a variable, gdb says the type of the variable is "void" instead of "integer". What is the solution to examine variables? I have gdb5.1.x and gpc is the last release before the last updates dating 02/09/2003
I fixed such a bug on 2002-08-31, so if your version is newer than that, it ought to work (and it does for me). Does it happen with a simple test program such as the following, or only in more complicates cases? What did you type in gdb? Which backend (GCC) version does your GPC use?
program Foo; var i: Integer; begin end.
Frank