This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb


Kees Everaars wrote:
> 
> Hi Eveybody
> I have been trying to debug a C program that is running multiple threads.
> This has given me a lot of headache.
> What I want is that I want to step through a single thread while the other
> threads do not get a chance to run while I am stepping in that single thread
> (i.e. I want "locked stepping").

Sorry -- you can't really do that.

> In the gdb manual I read that it is possible for some Operating systems
> to set the so called "scheduler-locking mode".

No, that doesn't work for linux.
Hmm, maybe somebody has some spare time to make it work?

> I have set it on. The answer of my machine (linux version 2.4.3-12 of Redhat).
> "Target 'None' cannot support this command".
> Now my questions.
> 1) Can I configure the installation of Linux in such a way that my machine
> support the above command?

No.

> 2) If not, is there in a near future a new version of Redhat Linux
> distribution  that supports "locked stepping"?

It has not been planned.

> 3) Is there a other debugger under Linux  that offers "locked stepping"?

I don't know, but I don't think so.

> 4) Does the Debian linux distribution offers the "locked stepping".
> 5) On which Operating systems does "locked stepping" work?

The only one that I know of is eCos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]