Hi, I am currently converting many SUN Pascal programs to GPC (on Solaris for now). I must say, the operation goes pretty well for now (with the help of a Perl translation program I build progressively when I encounter syntax issues). In this context, the first time I ran my second translated program, I got the following runtime error: run.shell: Value out of range (error #300 at 4692b) Here comes my point: - That is true, there was an error, but I had to browse the code a lot to find it! - With such a message, is there a way to find out where the faulty code is? - What means the 4692b (an address in hex?)? - Is it feasible to implement (in a future release) more explicit error messages, like 'run.shell: Value out of range in run.shell.pas, line 1229' for example, when the program is compiled with -o0 and -g options? Anyway, I would greatly appreciate a hint for the next time I will have such a runtime error. Thanks Pascal Viandier
Pascal Viandier wrote:
I am currently converting many SUN Pascal programs to GPC (on Solaris for now). I must say, the operation goes pretty well for now (with the help of a Perl translation program I build progressively when I encounter syntax issues). In this context, the first time I ran my second translated program, I got the following runtime error:
run.shell: Value out of range (error #300 at 4692b)
Here comes my point: - That is true, there was an error, but I had to browse the code a lot to find it!
addr2line and run-gpc (you can search the archives for details). Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8
Great! addr2line does exactly what I need. It will speed up my debugging. Now, what is run-gpc? I don't find anything about it in the gpc documentation, and it is not part of the gpc sources on my system... Thanks a lot! Pascal Viandier pascal@accovia.com -----Message d'origine----- De : gpc-owner@gnu.de [mailto:gpc-owner@gnu.de] De la part de Frank Heckenbach Envoyé : July 26, 2005 10:28 À : gpc@gnu.de Objet : Re: Cryptic runtime error Pascal Viandier wrote:
I am currently converting many SUN Pascal programs to GPC (on Solaris for now). I must say, the operation goes pretty well for now (with the help of a Perl translation program I build progressively when I encounter syntax issues). In this context, the first time I ran my second translated program, I got the following runtime error:
run.shell: Value out of range (error #300 at 4692b)
Here comes my point: - That is true, there was an error, but I had to browse the code a lot to find it!
addr2line and run-gpc (you can search the archives for details). Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8
Pascal Viandier wrote:
Now, what is run-gpc? I don't find anything about it in the gpc documentation, and it is not part of the gpc sources on my system...
Sorry, it's called gpc-run. Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8
participants (2)
-
Frank Heckenbach -
Pascal Viandier