Index: gdb/amd64-sol2-tdep.c |
diff --git a/gdb/amd64-sol2-tdep.c b/gdb/amd64-sol2-tdep.c |
index 6d2f57f8b715bc8413394fe905cc2ee7a6956d3d..dbc65d4783ae3d37161fec23c7501446f8c7500c 100644 |
--- a/gdb/amd64-sol2-tdep.c |
+++ b/gdb/amd64-sol2-tdep.c |
@@ -54,7 +54,7 @@ static int amd64_sol2_gregset_reg_offset[] = { |
1 * 8, |
0 * 8, /* ... %r15 */ |
17 * 8, /* %rip */ |
- 16 * 8, /* %eflags */ |
+ 19 * 8, /* %eflags */ |
18 * 8, /* %cs */ |
21 * 8, /* %ss */ |
25 * 8, /* %ds */ |
@@ -71,7 +71,7 @@ static int |
amd64_sol2_sigtramp_p (struct frame_info *this_frame) |
{ |
CORE_ADDR pc = get_frame_pc (this_frame); |
- char *name; |
+ const char *name; |
find_pc_partial_function (pc, &name, NULL, NULL); |
return (name && (strcmp ("sigacthandler", name) == 0 |