[fpc-devel] gdb crashes with trunk

Jonas Maebe jonas.maebe at elis.ugent.be
Sat Apr 5 14:54:29 CEST 2008


On 05 Apr 2008, at 10:25, Martin Schreiber wrote:
> I tried with gdb 6.8.50:
> "
> GNU gdb 6.8.50.20080306
> Copyright (C) 2008 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html 
> >
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show  
> copying"
> and "show warranty" for details.
> This GDB was configured as "i686-pc-linux-gnu"...
> (gdb) break reader.inc:1260
> Breakpoint 1 at 0x80d742e: file ../objpas/classes/reader.inc, line  
> 1260.
> (gdb) run
> Starting program: /home/mse/packs/standard/svn/mse/trunk/apps/ide/ 
> mseidefp
> [Thread debugging using libthread_db enabled]
> [New Thread 0xb7b538d0 (LWP 5905)]
> [Switching to Thread 0xb7b538d0 (LWP 5905)]
>
> Breakpoint 1, READROOTCOMPONENT (READROOTCOMPONENT=0xb77a5020,
> AROOT=0xb77a5020, this=0xb7795020) at ../objpas/classes/reader.inc: 
> 1260
> 1260              Result.FComponentState :=
> (gdb) print result.fcomponentstate
> $1 = []
> (gdb) next
> 1264              i := 0;
> (gdb) print result.fcomponentstate
> $2 = []
> (gdb)
> "
> BTW the set display is not always wrong.

It works with gdb 6.6, but indeed not with 6.8. I'll try to find the  
cause and file a bug report with gdb if necessary.


Jonas



More information about the fpc-devel mailing list