* [RFC] mips_abi_update, flush_cached_frames
@ 2005-04-01 0:56 Michael Snyder
2005-04-01 0:59 ` Daniel Jacobowitz
0 siblings, 1 reply; 5+ messages in thread
From: Michael Snyder @ 2005-04-01 0:56 UTC (permalink / raw)
To: gdb-patches
Check me out here -- if you change the abi, it seems to me
you better make sure you get rid of any cached frames...
2005-03-31 msnyder <msnyder@redhat.com>
* mips-tdep.c (mips_abi_update): If abi is changed, cached
frames better be flushed.
Index: mips-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-tdep.c,v
retrieving revision 1.379
diff -p -r1.379 mips-tdep.c
*** mips-tdep.c 17 Mar 2005 18:07:46 -0000 1.379
--- mips-tdep.c 1 Apr 2005 00:52:33 -0000
*************** mips_abi_update (char *ignore_args, int
*** 5057,5062 ****
--- 5057,5063 ----
mips_gdbarch_init will take care of the rest. */
gdbarch_info_init (&info);
gdbarch_update_p (info);
+ flush_cached_frames ();
}
/* Print out which MIPS ABI is in use. */
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC] mips_abi_update, flush_cached_frames
2005-04-01 0:56 [RFC] mips_abi_update, flush_cached_frames Michael Snyder
@ 2005-04-01 0:59 ` Daniel Jacobowitz
2005-04-01 1:25 ` Michael Snyder
2005-05-01 23:17 ` Daniel Jacobowitz
0 siblings, 2 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2005-04-01 0:59 UTC (permalink / raw)
To: Michael Snyder; +Cc: gdb-patches
On Thu, Mar 31, 2005 at 04:56:05PM -0800, Michael Snyder wrote:
> Check me out here -- if you change the abi, it seems to me
> you better make sure you get rid of any cached frames...
>
> 2005-03-31 msnyder <msnyder@redhat.com>
>
> * mips-tdep.c (mips_abi_update): If abi is changed, cached
> frames better be flushed.
Yes and no - I don't think this is the right place to do it.
My current feeling is that this belongs in
deprecated_current_gdbarch_select_hack.
[You're definitely right about the problem, though. I ran into this on
ARM last week.]
--
Daniel Jacobowitz
CodeSourcery, LLC
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC] mips_abi_update, flush_cached_frames
2005-04-01 0:59 ` Daniel Jacobowitz
@ 2005-04-01 1:25 ` Michael Snyder
2005-05-01 23:17 ` Daniel Jacobowitz
1 sibling, 0 replies; 5+ messages in thread
From: Michael Snyder @ 2005-04-01 1:25 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb-patches
> On Thu, Mar 31, 2005 at 04:56:05PM -0800, Michael Snyder wrote:
>> Check me out here -- if you change the abi, it seems to me
>> you better make sure you get rid of any cached frames...
>>
>> 2005-03-31 msnyder <msnyder@redhat.com>
>>
>> * mips-tdep.c (mips_abi_update): If abi is changed, cached
>> frames better be flushed.
>
> Yes and no - I don't think this is the right place to do it.
> My current feeling is that this belongs in
> deprecated_current_gdbarch_select_hack.
Are we allowed to change deprecated functions?
> [You're definitely right about the problem, though. I ran into this on
> ARM last week.]
>
> --
> Daniel Jacobowitz
> CodeSourcery, LLC
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC] mips_abi_update, flush_cached_frames
2005-04-01 0:59 ` Daniel Jacobowitz
2005-04-01 1:25 ` Michael Snyder
@ 2005-05-01 23:17 ` Daniel Jacobowitz
2005-05-02 19:23 ` Michael Snyder
1 sibling, 1 reply; 5+ messages in thread
From: Daniel Jacobowitz @ 2005-05-01 23:17 UTC (permalink / raw)
To: gdb-patches; +Cc: Michael Snyder
On Thu, Mar 31, 2005 at 08:00:40PM -0500, Daniel Jacobowitz wrote:
> On Thu, Mar 31, 2005 at 04:56:05PM -0800, Michael Snyder wrote:
> > Check me out here -- if you change the abi, it seems to me
> > you better make sure you get rid of any cached frames...
> >
> > 2005-03-31 msnyder <msnyder@redhat.com>
> >
> > * mips-tdep.c (mips_abi_update): If abi is changed, cached
> > frames better be flushed.
>
> Yes and no - I don't think this is the right place to do it.
> My current feeling is that this belongs in
> deprecated_current_gdbarch_select_hack.
>
> [You're definitely right about the problem, though. I ran into this on
> ARM last week.]
I've committed this more general fix.
--
Daniel Jacobowitz
CodeSourcery, LLC
2005-05-01 Daniel Jacobowitz <dan@codesourcery.com>
* gdbarch.sh (deprecated_current_gdbarch_select_hack): Flush
cached frames when changing gdbarch.
* gdbarch.c: Regenerated.
Index: gdbarch.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.c,v
retrieving revision 1.323
diff -u -p -r1.323 gdbarch.c
--- gdbarch.c 1 May 2005 19:58:52 -0000 1.323
+++ gdbarch.c 1 May 2005 23:13:39 -0000
@@ -4241,6 +4241,7 @@ deprecated_current_gdbarch_select_hack (
current_gdbarch_swap_out_hack ();
current_gdbarch_swap_in_hack (new_gdbarch);
architecture_changed_event ();
+ flush_cached_frames ();
}
extern void _initialize_gdbarch (void);
Index: gdbarch.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.sh,v
retrieving revision 1.358
diff -u -p -r1.358 gdbarch.sh
--- gdbarch.sh 1 May 2005 19:58:53 -0000 1.358
+++ gdbarch.sh 1 May 2005 23:13:40 -0000
@@ -2216,6 +2216,7 @@ deprecated_current_gdbarch_select_hack (
current_gdbarch_swap_out_hack ();
current_gdbarch_swap_in_hack (new_gdbarch);
architecture_changed_event ();
+ flush_cached_frames ();
}
extern void _initialize_gdbarch (void);
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC] mips_abi_update, flush_cached_frames
2005-05-01 23:17 ` Daniel Jacobowitz
@ 2005-05-02 19:23 ` Michael Snyder
0 siblings, 0 replies; 5+ messages in thread
From: Michael Snyder @ 2005-05-02 19:23 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb-patches
Daniel Jacobowitz wrote:
> On Thu, Mar 31, 2005 at 08:00:40PM -0500, Daniel Jacobowitz wrote:
>
>>On Thu, Mar 31, 2005 at 04:56:05PM -0800, Michael Snyder wrote:
>>
>>>Check me out here -- if you change the abi, it seems to me
>>>you better make sure you get rid of any cached frames...
>>>
>>>2005-03-31 msnyder <msnyder@redhat.com>
>>>
>>>* mips-tdep.c (mips_abi_update): If abi is changed, cached
>>>frames better be flushed.
>>
>>Yes and no - I don't think this is the right place to do it.
>>My current feeling is that this belongs in
>>deprecated_current_gdbarch_select_hack.
>>
>>[You're definitely right about the problem, though. I ran into this on
>>ARM last week.]
>
>
> I've committed this more general fix.
Thanks Daniel.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-05-02 19:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-01 0:56 [RFC] mips_abi_update, flush_cached_frames Michael Snyder
2005-04-01 0:59 ` Daniel Jacobowitz
2005-04-01 1:25 ` Michael Snyder
2005-05-01 23:17 ` Daniel Jacobowitz
2005-05-02 19:23 ` Michael Snyder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox