This is the mail archive of the gdb-patches@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: [RFA/RFC] Add i386_cleanup_dregs at program exit.


At 10:20 09/01/2002 , Eli Zaretskii a écrit:

>On Wed, 9 Jan 2002, Pierre Muller wrote:
>
> > The patch simply calls i386_cleanup_dregs
> > in breakpoint_init_inferior if context is inf_exited.
>
>Is this really necessary?  Why do we need to propagate processor-specific 
>issues into breakpoint.c?

Because there is no i386 common code that is called at program exit,
so otherwise this would need a much bigger change, with adding processor specific
mourn_inferior functions for OS that have a generic one
like linux.


>I thought there was a simpler solution back when we discussed this.  
>Something that would leave this issue where it belongs: in the 
>x86-specific files.
>
> > I have no idea if other processor might need a similar 
> > cleanup of debug registers
>
>They probably don't, since we didn't hear anything from their users.

But they might wake up later....


Pierre Muller
Institut Charles Sadron
6,rue Boussingault
F 67083 STRASBOURG CEDEX (France)
mailto:muller@ics.u-strasbg.fr
Phone : (33)-3-88-41-40-07  Fax : (33)-3-88-41-40-99


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