Re: [fpc-pascal] map file

2009-09-24 Thread Alexey Voytsehovich
Hello Jonas, Thursday, September 24, 2009, 12:04:20 PM, you wrote: > On 24 Sep 2009, at 10:59, Alexey Voytsehovich wrote: >> Yes, it looks like what I need. :) Another question, can I use gdb as >> a reference? That is, from the command line to send him a request and >> get an answer. To chec

Re: [fpc-pascal] map file

2009-09-24 Thread Jonas Maebe
On 24 Sep 2009, at 11:04, Jonas Maebe wrote: On 24 Sep 2009, at 10:59, Alexey Voytsehovich wrote: gdb testexcept.exe info line *0x004015c3 You should be able to do this: echo "info line *0x004015c3" > gdb.txt gdb -batch --command=gdb.txt Sorry, gdb testexcept.exe -batch --command=gdb.tx

Re: [fpc-pascal] map file

2009-09-24 Thread Jonas Maebe
On 24 Sep 2009, at 10:59, Alexey Voytsehovich wrote: Yes, it looks like what I need. :) Another question, can I use gdb as a reference? That is, from the command line to send him a request and get an answer. To check each address automatically, but before work to run a script that will fill t

Re: [fpc-pascal] map file

2009-09-24 Thread Alexey Voytsehovich
Hello Jonas, Thursday, September 24, 2009, 11:47:10 AM, you wrote: > Runtime error 216 at $271C >$271C >$2744 >$00024720 >$26D0 >$23E0 >$1000 > then you can look up the addresses in gdb: > gdb my-program-compiled-with-g-and-not-stripped > (gdb) in

Re: [fpc-pascal] map file

2009-09-24 Thread Jonas Maebe
On 24 Sep 2009, at 10:37, Alexey Voytsehovich wrote: On 24 Sep 2009, at 10:14, Alexey Voytsehovich wrote: Do not prompt way to generate map file with line numbers in source code? By analogy with Delphi. Since not get to the addresses in the Call Stack to get a line in the source code. Com

Re: [fpc-pascal] map file

2009-09-24 Thread Joost van der Sluis
On Thu, 2009-09-24 at 11:14 +0300, Alexey Voytsehovich wrote: > Do not prompt way to generate map file with line numbers in source code? By > analogy with Delphi. Since not get to the addresses in the Call Stack to get > a line in the source code. When you compile with debuginfo on, (-gl) then

Re: [fpc-pascal] map file

2009-09-24 Thread Alexey Voytsehovich
Hello Jonas, Thursday, September 24, 2009, 11:33:29 AM, you wrote: > On 24 Sep 2009, at 10:14, Alexey Voytsehovich wrote: >> Do not prompt way to generate map file with line numbers in source >> code? By analogy with Delphi. Since not get to the addresses in the >> Call Stack to get a line

Re: [fpc-pascal] map file

2009-09-24 Thread Jonas Maebe
On 24 Sep 2009, at 10:14, Alexey Voytsehovich wrote: Do not prompt way to generate map file with line numbers in source code? By analogy with Delphi. Since not get to the addresses in the Call Stack to get a line in the source code. Compile your program with -gl to get line numbers next to

[fpc-pascal] map file

2009-09-24 Thread Alexey Voytsehovich
Good day. Do not prompt way to generate map file with line numbers in source code? By analogy with Delphi. Since not get to the addresses in the Call Stack to get a line in the source code. Thanks in advance. P.S. Sorry for my English. -- Best regards, Alexey Voytsehovich