[archer-tromey-call-frame-cfa] [patch] Fix compilation [resent]
Jan Kratochvil
jan.kratochvil@redhat.com
Wed Jul 29 19:18:00 GMT 2009
[this time with the patch]
Hi Tom,
dwarf2-frame.c: In function ‘dwarf2_frame_cfa’:
dwarf2-frame.c:1257: error: passing argument 2 of ‘frame_base_is’ discards qualifiers from pointer target type
frame.h:702: note: expected ‘struct frame_base *’ but argument is of type ‘const struct frame_base *’
Fedora 11 gcc-4.4.0-4.x86_64
more curious it did not happen to you. OK to check-in?
Thanks,
Jan
commit e1849a4a9801313f99fa3faee8a88267651d6217
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Wed Jul 29 21:13:07 2009 +0200
gdb/
* frame.c (frame_base_is): Make the BASE parameter const.
* frame.c (frame_base_is): Likewise.
diff --git a/gdb/frame.c b/gdb/frame.c
index c009288..afa6e2a 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -1847,7 +1847,7 @@ get_frame_args_address (struct frame_info *fi)
otherwise. */
int
-frame_base_is (struct frame_info *fi, struct frame_base *base)
+frame_base_is (struct frame_info *fi, const struct frame_base *base)
{
if (fi->base == NULL)
fi->base = frame_base_find_by_frame (fi);
diff --git a/gdb/frame.h b/gdb/frame.h
index 2c23400..09bf628 100644
--- a/gdb/frame.h
+++ b/gdb/frame.h
@@ -699,6 +699,6 @@ extern struct frame_info *create_new_frame (CORE_ADDR base, CORE_ADDR pc);
/* Return true if the frame base for frame FI is BASE; false
otherwise. */
-extern int frame_base_is (struct frame_info *fi, struct frame_base *base);
+extern int frame_base_is (struct frame_info *fi, const struct frame_base *base);
#endif /* !defined (FRAME_H) */
More information about the Archer
mailing list