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
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
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