Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-06

watch window raise exception

7 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrea Mauri

Lazarus 0.9.29 r26036 FPC 2.4.0 i386-win32-win32/win64

Open Lazarus --> View --> Debug Windows --> Watch --> Division By Zero

Reply by email

Mattias Gärtner
to Andrea Mauri

Zitat von Andrea Mauri :

Lazarus 0.9.29 r26036 FPC 2.4.0 i386-win32-win32/win64 Open Lazarus --> View --> Debug Windows --> Watch --> Division By Zero

It works here.
Can you create a backtrace?

Mattias

Reply by email

Andrea Mauri
to Mattias Gärtner

Il 11/06/2010 10.45, Mattias G?rtner ha scritto:

It works here. Can you create a backtrace?

I tried but no significative output:

C:\lazarus_svn>gdb startlazarus.exe
GNU gdb 6.8
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-mingw32"...
(gdb) break fpc_raiseexception
Breakpoint 1 at 0x40b746
(gdb) run
Starting program: C:\lazarus_svn/startlazarus.exe
[New thread 3872.0xe18]

Program exited normally.
(gdb) quit

C:\lazarus_svn>

But the error is raised, see attached image.
What I am doing wrong using bt?

andrea
-------------- next part --------------
A non-text attachment was scrubbed...
Name: divisionbyzero.jpg
Type: image/jpeg
Size: 9099 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100611/8bc8808b/attachment-0001.jpg>

Reply by email

Mattias Gaertner
to Andrea Mauri
Show quoted text 7 lines
Il 11/06/2010 10.45, Mattias G?rtner ha scritto: > It works here. > Can you create a backtrace? I tried but no significative output: C:\lazarus_svn>gdb startlazarus.exe

gdb lazarus.exe

Mattias

Show quoted text 23 lines
GNU gdb 6.8 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-mingw32"... (gdb) break fpc_raiseexception Breakpoint 1 at 0x40b746 (gdb) run Starting program: C:\lazarus_svn/startlazarus.exe [New thread 3872.0xe18] Program exited normally. (gdb) quit C:\lazarus_svn> But the error is raised, see attached image. What I am doing wrong using bt? andrea

Reply by email

Andrea Mauri
to Mattias Gaertner

Il 11/06/2010 11.55, Mattias Gaertner ha scritto:

gdb lazarus.exe

here the backtrace

C:\lazarus_svn>gdb lazarus.exe
GNU gdb 6.8
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-mingw32"...
(gdb) break fpc_raiseexception
Breakpoint 1 at 0x40bf36
(gdb) run
Starting program: C:\lazarus_svn/lazarus.exe
[New thread 3860.0xa40]

Breakpoint 1, 0x0040bf36 in fpc_raiseexception ()
(gdb) cont
Continuing.

Program received signal SIGFPE, Arithmetic exception. 0x00426e22 in RAISEGDBEXCEPTION (MSG=0xaa1a6c 'TControl.EnableAutoSizing') at lclproc.pas:1514
1514 if (length(Msg) div (length(Msg) div 10000))=0 then ; (gdb) bt
#0 0x00426e22 in RAISEGDBEXCEPTION (MSG=0xaa1a6c
'TControl.EnableAutoSizing')
at lclproc.pas:1514
#1 0x00539a63 in TCONTROL__ENABLEAUTOSIZING (this=0x794bce0) at ./include/control.inc:4770
#2 0x007c2c3b in TDEBUGMANAGER__VIEWDEBUGDIALOG (ADIALOGTYPE=DDTWATCHES, BRINGTOFRONT=true, SHOW=true, DODISABLEAUTOSIZING=false, this=0x7b40428)
at debugmanager.pas:1787
#3 0x007c1a33 in TDEBUGMANAGER__MNUVIEWDEBUGDIALOGCLICK (SENDER=0x7e126a8, this=0x7b40428) at debugmanager.pas:1379
#4 0x00752b58 in TIDEMENUITEM__MENUITEMCLICK (SENDER=0x7595ce8, this=0x7e126a8) at menuintf.pas:538
#5 0x0075575a in TIDEMENUCOMMAND__MENUITEMCLICK (SENDER=0x7595ce8, this=0x7e126a8) at menuintf.pas:1549
#6 0x0053f461 in TMENUITEM__CLICK (this=0x7595ce8) at ./include/menuitem.inc:75
#7 0x0053fa18 in TMENUITEM__DOCLICKED (MSG=void, this=0x7595ce8) at ./include/menuitem.inc:269
#8 0x0040b86a in SYSTEM_TOBJECT_$__DISPATCH$formal () #9 0x0053f9e0 in TMENUITEM__GETPARENTCOMPONENT (this=0x5a4079) at ./include/menuitem.inc:258
#10 0x005faf2f in CUSTOMFORMWNDPROC (WINDOW=3737002, MSG=273, WPARAM=131, LPARAM=0) at win32wsforms.pp:354
#11 0x7e398734 in USER32!GetDC () from C:\WINDOWS\system32\user32.dll #12 0x003905aa in ?? ()
#13 0x00000111 in ?? ()
#14 0x00000083 in ?? ()
#15 0x00000000 in ?? ()
(gdb)

Reply by email

Mattias Gaertner
to Andrea Mauri
Show quoted text 39 lines
Il 11/06/2010 11.55, Mattias Gaertner ha scritto: > gdb lazarus.exe here the backtrace C:\lazarus_svn>gdb lazarus.exe GNU gdb 6.8 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-mingw32"... (gdb) break fpc_raiseexception Breakpoint 1 at 0x40bf36 (gdb) run Starting program: C:\lazarus_svn/lazarus.exe [New thread 3860.0xa40] Breakpoint 1, 0x0040bf36 in fpc_raiseexception () (gdb) cont Continuing. Program received signal SIGFPE, Arithmetic exception. 0x00426e22 in RAISEGDBEXCEPTION (MSG=0xaa1a6c 'TControl.EnableAutoSizing') at lclproc.pas:1514 1514 if (length(Msg) div (length(Msg) div 10000))=0 then ; (gdb) bt #0 0x00426e22 in RAISEGDBEXCEPTION (MSG=0xaa1a6c 'TControl.EnableAutoSizing') at lclproc.pas:1514 #1 0x00539a63 in TCONTROL__ENABLEAUTOSIZING (this=0x794bce0) at ./include/control.inc:4770 #2 0x007c2c3b in TDEBUGMANAGER__VIEWDEBUGDIALOG (ADIALOGTYPE=DDTWATCHES, BRINGTOFRONT=true, SHOW=true, DODISABLEAUTOSIZING=false, this=0x7b40428) at debugmanager.pas:1787

Fixed in svn. Please test.

Mattias

Reply by email