This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: need of SOFTWARE_SINGLE_STEP
- To: "debashis mahata" <debashis dot mahata at wipro dot com>
- Subject: Re: need of SOFTWARE_SINGLE_STEP
- From: Daniel Berlin <dan at cgsoftware dot com>
- Date: 18 Jun 2001 10:39:31 -0400
- Cc: "gdb" <gdb at sourceware dot cygnus dot com>
- References: <001e01c0f7f8$b6406f00$5dcda8c0@8420044-mahatad.wipro.com>
"debashis mahata" <debashis.mahata@wipro.com> writes:
> Hi,
>
> I am just a new comer in GDB internals. I have a doubt regarding the necessity
> of SOFTWARE_SINGLE_STEP in the function resume() (file: infrun.c). My working
> platform is Sparc- Solaris 5.8 and going through the code of GDB 4.18. The
> question is :
>
>
>
> The file procfs.c have the support for single step using the PRSTEP flag
> (function: proc_run_process() ). Then, is there any specific reason behind
> doing SOFTWARE_SINGLE_STEP rather than using the proc system
> support?
The fact that many host OSes of GDB have no procfs support?
> Will
> there be any hidden side effect if I disabled SOFTWARE_SINGLE_STEP_P and use
> PRSTEP for single stepping?
Yes, you'll break GDB on a lot of platforms.
:)
>
>
>
> Looking forward to an early response.
>
> Thanks in advance.
>
> mahata.
--
"There was a power outage at a department store yesterday.
Twenty people were trapped on the escalators.
"-Steven Wright