This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Fix compile error in rl78-tdep.c
- From: Kevin Buettner <kevinb at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 14 Feb 2012 13:09:20 -0700
- Subject: [commit] Fix compile error in rl78-tdep.c
I've committed the patch below. As noted in the subject, it fixes
a compile error for rl78-tdep.c.
Kevin
* rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
the name parameter being passed to find_pc_partial_function().
Index: rl78-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/rl78-tdep.c,v
retrieving revision 1.1
diff -u -p -r1.1 rl78-tdep.c
--- rl78-tdep.c 4 Feb 2012 06:05:50 -0000 1.1
+++ rl78-tdep.c 14 Feb 2012 20:03:40 -0000
@@ -636,7 +636,7 @@ rl78_pointer_to_address (struct gdbarch
static CORE_ADDR
rl78_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
{
- char *name;
+ const char *name;
CORE_ADDR func_addr, func_end;
struct rl78_prologue p;