Dank je, Marco.

Still I don't know how to apply this command, just entering it on the
gdb commandline gives me a "Target 'None' cannot support this
command.". If I open gdb with the executable filename as first
argument, it gives the same error, but then Target 'exec' is
mentioned.

I feel like there must be some way to apply this command in the
lazarus interface. Could you tell me how I should execute this gdb
command?

-Pelle

2007/4/15, Marco van de Voort <[EMAIL PROTECTED]>:
On Sun, Apr 15, 2007 at 08:07:05PM +0200, Pelle ten Cate wrote:
> I am trying to write quite a nice application in Lazarus. Now
> sometimes when I compile my project and run it (debug via Lazarus) i
> get the following error: (slightly different probably, translated from
> Dutch)
>
> "Running is temporarly halted. Address: $7C810665, Procedure:
> KERNEL32!CreateThread, File" (doesn't report a filename.)
>
> After clicking OK, debugging goes on immediately.
>
> I have no clue where this possibly comes from.
>
> My setup: Windows XP Pro SP2, Lazarus 0.9.22, fpc 2.0.4
>
> How to debug this irritating thingie?

You could try to use this GDB command:

set scheduler-locking <mode>
    Set the scheduler locking mode. If it is off, then there is no locking
and any thread may run at any time. If on, then only the current thread may
run when the inferior is resumed. The step mode optimizes for
single-stepping. It stops other threads from "seizing the prompt" by
preempting the current thread while you are stepping. Other threads will
only rarely (or never) get a chance to run when you step. They are more
likely to run when you `next' over a function call, and they are completely
free to run when you use commands like `continue', `until', or `finish'.
However, unless another thread hits a breakpoint during its timeslice, they
will never steal the GDB prompt away from the thread that you are debugging.

show scheduler-locking
    Display the current scheduler locking mode.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives



--
Aut viam inveniam aut faciam

Whatever you might be questioning yourself.... Google has the answer!

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to