This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] generic_find_dummy_frame -> deprecated_find_dummy_frame_regcache
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 15 May 2003 15:06:54 -0400
- Subject: [commit] generic_find_dummy_frame -> deprecated_find_dummy_frame_regcache
Hello,
This rename is to clarify the status of the [old]
generic_find_dummy_frame method. It should not be used in new code.
See the thread http://sources.redhat.com/ml/gdb/2003-04/msg00279.html
Andrew
2003-05-15 Andrew Cagney <cagney@redhat.com>
* dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
generic_find_dummy_frame.
* dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
(deprecated_generic_find_dummy_frame): Update.
(deprecated_read_register_dummy): Update.
* frame.c (deprecated_generic_get_saved_register): Update.
Index: dummy-frame.c
===================================================================
RCS file: /cvs/src/src/gdb/dummy-frame.c,v
retrieving revision 1.21
diff -u -r1.21 dummy-frame.c
--- dummy-frame.c 5 May 2003 18:33:10 -0000 1.21
+++ dummy-frame.c 15 May 2003 18:38:11 -0000
@@ -111,7 +111,7 @@
}
struct regcache *
-generic_find_dummy_frame (CORE_ADDR pc, CORE_ADDR fp)
+deprecated_find_dummy_frame_regcache (CORE_ADDR pc, CORE_ADDR fp)
{
struct dummy_frame *dummy = find_dummy_frame (pc, fp);
if (dummy != NULL)
@@ -123,7 +123,7 @@
char *
deprecated_generic_find_dummy_frame (CORE_ADDR pc, CORE_ADDR fp)
{
- struct regcache *regcache = generic_find_dummy_frame (pc, fp);
+ struct regcache *regcache = deprecated_find_dummy_frame_regcache (pc, fp);
if (regcache == NULL)
return NULL;
return deprecated_grub_regcache_for_registers (regcache);
@@ -176,7 +176,7 @@
CORE_ADDR
deprecated_read_register_dummy (CORE_ADDR pc, CORE_ADDR fp, int regno)
{
- struct regcache *dummy_regs = generic_find_dummy_frame (pc, fp);
+ struct regcache *dummy_regs = deprecated_find_dummy_frame_regcache (pc, fp);
if (dummy_regs)
{
Index: dummy-frame.h
===================================================================
RCS file: /cvs/src/src/gdb/dummy-frame.h,v
retrieving revision 1.10
diff -u -r1.10 dummy-frame.h
--- dummy-frame.h 5 May 2003 17:56:54 -0000 1.10
+++ dummy-frame.h 15 May 2003 18:38:11 -0000
@@ -81,6 +81,6 @@
deprecated_generic_get_saved_register. Eliminate that function and
this, to, can go. */
-extern struct regcache *generic_find_dummy_frame (CORE_ADDR pc,
- CORE_ADDR fp);
+extern struct regcache *deprecated_find_dummy_frame_regcache (CORE_ADDR pc,
+ CORE_ADDR fp);
#endif /* !defined (DUMMY_FRAME_H) */
Index: frame.c
===================================================================
RCS file: /cvs/src/src/gdb/frame.c,v
retrieving revision 1.114
diff -u -r1.114 frame.c
--- frame.c 13 May 2003 19:27:27 -0000 1.114
+++ frame.c 15 May 2003 18:38:17 -0000
@@ -1112,8 +1112,8 @@
fly, constructs either a raw or pseudo register
from the raw register cache. */
regcache_raw_read
- (generic_find_dummy_frame (get_frame_pc (frame),
- get_frame_base (frame)),
+ (deprecated_find_dummy_frame_regcache (get_frame_pc (frame),
+ get_frame_base (frame)),
regnum, raw_buffer);
return;
}