aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2013-03-07 00:48:25 +0000
committerKeith Seitz <keiths@redhat.com>2013-03-07 00:48:25 +0000
commit741d92cf3986c9327b90b1153c9f6e2a6a2cc13f (patch)
treeca2804540b7146c6f3d5d52276013ba6cd0c7e8e /gdb
parent31c620b0bc323ee9c8164ae80d12222d48c130d9 (diff)
downloadgdb-741d92cf3986c9327b90b1153c9f6e2a6a2cc13f.zip
gdb-741d92cf3986c9327b90b1153c9f6e2a6a2cc13f.tar.gz
gdb-741d92cf3986c9327b90b1153c9f6e2a6a2cc13f.tar.bz2
* ax-gdb.c (gen_printf): Make FORMAT const.
* ax-gdb.h (gen_printf): Likewise. * ax-general.c (ax_string): Make STR const. * ax.h (ax_string): Likewise.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/ax-gdb.c2
-rw-r--r--gdb/ax-gdb.h2
-rw-r--r--gdb/ax-general.c2
-rw-r--r--gdb/ax.h2
5 files changed, 12 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a8e681a..4dd1540 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,11 @@
+ChangeLog
+2013-03-06 Keith Seitz <keiths@redhat.com>
+
+ * ax-gdb.c (gen_printf): Make FORMAT const.
+ * ax-gdb.h (gen_printf): Likewise.
+ * ax-general.c (ax_string): Make STR const.
+ * ax.h (ax_string): Likewise.
+
2013-03-06 Doug Evans <dje@google.com>
* elfread.c (elf_symfile_read): Move debugging printf to more
diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c
index 2029882..066826e 100644
--- a/gdb/ax-gdb.c
+++ b/gdb/ax-gdb.c
@@ -2558,7 +2558,7 @@ gen_trace_for_return_address (CORE_ADDR scope, struct gdbarch *gdbarch)
struct agent_expr *
gen_printf (CORE_ADDR scope, struct gdbarch *gdbarch,
CORE_ADDR function, LONGEST channel,
- char *format, int fmtlen,
+ const char *format, int fmtlen,
struct format_piece *frags,
int nargs, struct expression **exprs)
{
diff --git a/gdb/ax-gdb.h b/gdb/ax-gdb.h
index e74d107..04772b7 100644
--- a/gdb/ax-gdb.h
+++ b/gdb/ax-gdb.h
@@ -117,7 +117,7 @@ extern void require_rvalue (struct agent_expr *ax, struct axs_value *value);
struct format_piece;
extern struct agent_expr *gen_printf (CORE_ADDR, struct gdbarch *,
- CORE_ADDR, LONGEST, char *, int,
+ CORE_ADDR, LONGEST, const char *, int,
struct format_piece *,
int, struct expression **);
diff --git a/gdb/ax-general.c b/gdb/ax-general.c
index 32a47a7..8bd4df6 100644
--- a/gdb/ax-general.c
+++ b/gdb/ax-general.c
@@ -337,7 +337,7 @@ ax_tsv (struct agent_expr *x, enum agent_op op, int num)
is counted in the length.) */
void
-ax_string (struct agent_expr *x, char *str, int slen)
+ax_string (struct agent_expr *x, const char *str, int slen)
{
int i;
diff --git a/gdb/ax.h b/gdb/ax.h
index 1c36125..32887ef 100644
--- a/gdb/ax.h
+++ b/gdb/ax.h
@@ -221,7 +221,7 @@ extern void ax_reg_mask (struct agent_expr *ax, int reg);
extern void ax_tsv (struct agent_expr *expr, enum agent_op op, int num);
/* Append a string to the bytecode stream. */
-extern void ax_string (struct agent_expr *x, char *str, int slen);
+extern void ax_string (struct agent_expr *x, const char *str, int slen);
/* Functions for printing out expressions, and otherwise debugging