Recent

Author Topic: "SizeOf" does not work in the Evaluate/Modify wind  (Read 10428 times)

Hitnrun

  • New Member
  • *
  • Posts: 24
"SizeOf" does not work in the Evaluate/Modify wind
« on: July 03, 2007, 01:19:50 pm »
Am I missing something? The sizeof function is one of the "internal" functions, it seems strange to me that it doesn't work on the debugging windows...

If this is really the case, is it possible to talk directly do gdb while debugging on lazarus?

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
RE: "SizeOf" does not work in the Evaluate/Modify
« Reply #1 on: July 03, 2007, 05:05:52 pm »
a function is a function, even if it is an internal function.

No, it is not possible to talk directly to gdb while debugging in Lazarus, but you can start gdb from the command line yourself and debug your app directly in gdb.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2583
RE: "SizeOf" does not work in the Evaluate/Modify
« Reply #2 on: July 03, 2007, 06:09:42 pm »
Event then it will be hard. Please let me know if you were able to call a function
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Hitnrun

  • New Member
  • *
  • Posts: 24
RE: "SizeOf" does not work in the Evaluate/Modify
« Reply #3 on: July 05, 2007, 12:09:23 am »
Hmm so I can't call any function on the evaluate window? Is this a gdb or fpc/lazarus limitation? It really makes debugging slower, but it can be overcomed.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2583
RE: "SizeOf" does not work in the Evaluate/Modify
« Reply #4 on: July 05, 2007, 11:30:40 am »
by default ist turned off in gdb
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Hitnrun

  • New Member
  • *
  • Posts: 24
RE: "SizeOf" does not work in the Evaluate/Modify
« Reply #5 on: July 06, 2007, 02:17:09 am »
So... the irresistible question... can we turn it on?

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2583
RE: "SizeOf" does not work in the Evaluate/Modify
« Reply #6 on: July 06, 2007, 02:00:17 pm »
I don't expect any usefull results from gdb, so I won't turn it on.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Hitnrun

  • New Member
  • *
  • Posts: 24
RE: "SizeOf" does not work in the Evaluate/Modify
« Reply #7 on: July 06, 2007, 10:24:05 pm »
Ah it is only changeable inside lazarus source code? Ah ok, I thought there was an option somewhere.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2583
RE: "SizeOf" does not work in the Evaluate/Modify
« Reply #8 on: July 09, 2007, 11:22:18 am »
its an option for gdb, but this is not exposed since I expect lost of troubles with it.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018