Peter Vreman schreef:
Martin Schreiber schreef:

On Sunday 05 February 2006 17.11, Koenraad Lelong wrote:
...

Internalerror numbers are just unique numbers be using <date><seqnr>. They
don't have any meaning.

Quick intro for debugging this.
- Build compiler with debug info: 'make cycle OPT=-gl'
- Compile source with this new compiler in gdb:
   - gdb --args <newcompiler> <args>
   - (gdb) br INTERNALERROR
   - (gdb) dir <pathtocompilersource>
   - (gdb) r
   - Hit breakpoint
   - (gdb) bt
   - The backtrace will give you more info. Use 'fr <framenr>' to jump to
a function in the callstack so you can watch the code and variables.

OK, I tried this, but that's as far as I can get. Enclosed the output of the backtrace (first lines are the commandline I used).
Anything I can do further ?
Thanks,
Koenraad Lelong.
gdb --args ppcrossarm -odemo -Fu/home/koenraad/msegui/lib/common/widgets/ 
-Fu/home/koenraad/msegui/lib/common/sysutils/ 
-Fu/home/koenraad/msegui/lib/common/serialcomm/ 
-Fu/home/koenraad/msegui/lib/common/regcomponents/ 
-Fu/home/koenraad/msegui/lib/common/kernel/arm-linux/ 
-Fu/home/koenraad/msegui/lib/common/kernel/ 
-Fi/home/koenraad/msegui/lib/common/kernel/ 
-Fu/home/koenraad/msegui/lib/common/editwidgets/ 
-Fu/home/koenraad/msegui/lib/common/dialogs/ 
-Fu/home/koenraad/msegui/lib/common/designutils/ 
-Fu/home/koenraad/msegui/lib/common/db/ -l -gl -Mobjfpc -Sh -Ba -Xd -Xr 
-XParm-linux- demo.pas

msewidgets.pas(2898,11) Warning: Class types "tcaptionframe" and "tscrollframe" 
are not related
msewidgets.pas(2903,21) Warning: Class types "tscrollframe" and "tcaptionframe" 
are not related
Assembling msewidgets
Assembling msemenus

Breakpoint 1, INTERNALERROR (I=200312122) at verbose.pas:447
447     verbose.pas: Onbekend bestand of map.
        in verbose.pas
(gdb) bt
#0  INTERNALERROR (I=200312122) at verbose.pas:447
#1  0x080c926f in TCG__GETINTREGISTER (LIST=0x4161ecb4, SIZE=OS_32, 
this=0x40068014) at cgobj.pas:548
#2  0x0809a6db in TCGARM__A_OP_CONST_REG_REG_CHECKOVERFLOW (LIST=0x4161ecb4, 
OP=OP_SUB, SIZE=OS_32, A=369, SRC=16777216, DST=16777216, SETFLAGS=false, OVLOC=
        {LOC = LOC_VOID, SIZE = 166, RESFLAGS = 186, VALUE = 134759354, VALUE64 
= 4773033800840528826, REFERENCE = {OFFSET = 134759354, SYMBOL = 0x423d38f4, 
RELSYMBOL = 0x423d38f4, SEGMENT = 1091497844, BASE = -2068527460, INDEX = 
135726240, REFADDR = 68, SCALEFACTOR = 117, SYMBOLDATA = 0x809ff56, SIGNINDEX = 
52, SHIFTIMM = 4, ADDRESSMODE = 9, SHIFTMODE = 8}, REGISTER = 134759354, 
REGISTER64 = {REGLO = 134759354, REGHI = 1111308532}}, this=0x40068014) at 
cgcpu.pas:435
#3  0x0809a297 in TCGARM__A_OP_CONST_REG_REG (LIST=0x4161ecb4, OP=OP_SUB, 
SIZE=OS_32, A=369, SRC=16777216, DST=16777216, this=0x40068014) at cgcpu.pas:323
#4  0x0809a141 in TCGARM__A_OP_CONST_REG (LIST=0x4161ecb4, OP=OP_SUB, 
SIZE=OS_32, A=369, REG=16777216, this=0x40068014) at cgcpu.pas:287
#5  0x080ccfb3 in TCG__G_ADJUST_SELF_VALUE (LIST=0x4161ecb4, 
PROCDEF=0x422a71a4, IOFFSET=369, this=0x40068014) at cgobj.pas:2001
#6  0x0809cca5 in TCGARM__G_INTF_WRAPPER (LIST=0x4161ecb4, PROCDEF=0x422a71a4,
    
LABELNAME='WRPR_MSEGUI_TINTERNALAPPLICATION_$_IMOUSE_$_1_$_MSEGUI_TINTERNALAPPLICATION_$__GETMOUSEWINID$$LONGWORD',
 IOFFSET=369, this=0x40068014) at cgcpu.pas:1479
#7  0x0811d758 in GEN_INTF_WRAPPER (LIST=0x4161ecb4, _CLASS=0x423b2534) at 
ncgutil.pas:2349
#8  0x0811d7c3 in GEN_INTF_WRAPPERS (LIST=0x4161ecb4, ST=0x41444514) at 
ncgutil.pas:2364
#9  0x080e0a5b in PROC_UNIT () at pmodules.pas:1302
#10 0x0808f207 in COMPILE 
(FILENAME='/home/koenraad/msegui/lib/common/kernel/msegui.pas') at 
parser.pas:525
#11 0x080d6ef5 in TPPUMODULE__LOADPPU (this=0x40304744) at fppu.pas:1509
#12 0x080df58a in LOADUNITS () at pmodules.pas:621
#13 0x080e04ed in PROC_UNIT () at pmodules.pas:1097
#14 0x0808f207 in COMPILE 
(FILENAME='/home/koenraad/msegui/lib/common/kernel/arm-linux/mseguiintf.pas') 
at parser.pas:525
#15 0x080d6ef5 in TPPUMODULE__LOADPPU (this=0x419b1774) at fppu.pas:1509
#16 0x080df58a in LOADUNITS () at pmodules.pas:621
#17 0x080dfd25 in PARSE_IMPLEMENTATION_USES () at pmodules.pas:839
#18 0x080e06f0 in PROC_UNIT () at pmodules.pas:1184
#19 0x0808f207 in COMPILE 
(FILENAME='/home/koenraad/msegui/lib/common/kernel/msepointer.pas') at 
parser.pas:525
#20 0x080d6ef5 in TPPUMODULE__LOADPPU (this=0x404e6834) at fppu.pas:1509
#21 0x080df58a in LOADUNITS () at pmodules.pas:621
#22 0x080e04ed in PROC_UNIT () at pmodules.pas:1097
#23 0x0808f207 in COMPILE 
(FILENAME='/home/koenraad/msegui/lib/common/kernel/msegui.pas') at 
parser.pas:525
#24 0x080d6ef5 in TPPUMODULE__LOADPPU (this=0x40304744) at fppu.pas:1509
#25 0x080df58a in LOADUNITS () at pmodules.pas:621
#26 0x080e04ed in PROC_UNIT () at pmodules.pas:1097
#27 0x0808f207 in COMPILE 
(FILENAME='/home/koenraad/msegui/lib/common/kernel/arm-linux/mseguiintf.pas') 
at parser.pas:525
#28 0x080d6ef5 in TPPUMODULE__LOADPPU (this=0x419b1774) at fppu.pas:1509
#29 0x080df58a in LOADUNITS () at pmodules.pas:621
#30 0x080dfd25 in PARSE_IMPLEMENTATION_USES () at pmodules.pas:839
#31 0x080e06f0 in PROC_UNIT () at pmodules.pas:1184
#32 0x0808f207 in COMPILE 
(FILENAME='/home/koenraad/msegui/lib/common/kernel/msetimer.pas') at 
parser.pas:525
#33 0x080d6ef5 in TPPUMODULE__LOADPPU (this=0x41bbd2f4) at fppu.pas:1509
#34 0x080df58a in LOADUNITS () at pmodules.pas:621
#35 0x080e04ed in PROC_UNIT () at pmodules.pas:1097
#36 0x0808f207 in COMPILE 
(FILENAME='/home/koenraad/msegui/lib/common/kernel/msepointer.pas') at 
parser.pas:525
#37 0x080d6ef5 in TPPUMODULE__LOADPPU (this=0x404e6834) at fppu.pas:1509
#38 0x080df58a in LOADUNITS () at pmodules.pas:621
#39 0x080e04ed in PROC_UNIT () at pmodules.pas:1097
#40 0x0808f207 in COMPILE 
(FILENAME='/home/koenraad/msegui/lib/common/kernel/msegui.pas') at 
parser.pas:525
#41 0x080d6ef5 in TPPUMODULE__LOADPPU (this=0x40304744) at fppu.pas:1509
#42 0x080df58a in LOADUNITS () at pmodules.pas:621
#43 0x080e04ed in PROC_UNIT () at pmodules.pas:1097
#44 0x0808f207 in COMPILE 
(FILENAME='/home/koenraad/msegui/lib/common/kernel/arm-linux/mseguiintf.pas') 
at parser.pas:525
#45 0x080d6ef5 in TPPUMODULE__LOADPPU (this=0x419b1774) at fppu.pas:1509
#46 0x080df58a in LOADUNITS () at pmodules.pas:621
#47 0x080dfd25 in PARSE_IMPLEMENTATION_USES () at pmodules.pas:839
#48 0x080e06f0 in PROC_UNIT () at pmodules.pas:1184
#49 0x0808f207 in COMPILE 
(FILENAME='/home/koenraad/msegui/lib/common/kernel/msebitmap.pas') at 
parser.pas:525
#50 0x080d6ef5 in TPPUMODULE__LOADPPU (this=0x404e5fb4) at fppu.pas:1509
#51 0x080df58a in LOADUNITS () at pmodules.pas:621
#52 0x080e04ed in PROC_UNIT () at pmodules.pas:1097
#53 0x0808f207 in COMPILE 
(FILENAME='/home/koenraad/msegui/lib/common/kernel/msegui.pas') at 
parser.pas:525
#54 0x080d6ef5 in TPPUMODULE__LOADPPU (this=0x40304744) at fppu.pas:1509
#55 0x080df58a in LOADUNITS () at pmodules.pas:621
#56 0x080dfd25 in PARSE_IMPLEMENTATION_USES () at pmodules.pas:839
#57 0x080e06f0 in PROC_UNIT () at pmodules.pas:1184
#58 0x0808f207 in COMPILE 
(FILENAME='/home/koenraad/msegui/lib/common/kernel/msegraphics.pas') at 
parser.pas:525
#59 0x080d6ef5 in TPPUMODULE__LOADPPU (this=0x404e6d84) at fppu.pas:1509
#60 0x080df58a in LOADUNITS () at pmodules.pas:621
#61 0x080e04ed in PROC_UNIT () at pmodules.pas:1097
#62 0x0808f207 in COMPILE 
(FILENAME='/home/koenraad/msegui/lib/common/kernel/msearrayprops.pas') at 
parser.pas:525
#63 0x080d6ef5 in TPPUMODULE__LOADPPU (this=0x404e5ea4) at fppu.pas:1509
#64 0x080df58a in LOADUNITS () at pmodules.pas:621
#65 0x080e04ed in PROC_UNIT () at pmodules.pas:1097
#66 0x0808f207 in COMPILE 
(FILENAME='/home/koenraad/msegui/lib/common/kernel/msegui.pas') at 
parser.pas:525
#67 0x080d6ef5 in TPPUMODULE__LOADPPU (this=0x40304744) at fppu.pas:1509
#68 0x080df58a in LOADUNITS () at pmodules.pas:621
#69 0x080e108c in PROC_PROGRAM (ISLIBRARY=false) at pmodules.pas:1489
#70 0x0808f218 in COMPILE (FILENAME='demo.pas') at parser.pas:528
#71 0x08062d6d in COMPILE (CMD='') at compiler.pas:385
#72 0x08048288 in main () at pp.pas:208
(gdb)    
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to