aboutsummaryrefslogtreecommitdiff
path: root/gdb/annotate.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-05-17 08:41:12 -0600
committerTom Tromey <tromey@adacore.com>2019-05-17 10:16:40 -0600
commita45575b0356d671df2c55fcfc66de719b6b2e5e5 (patch)
tree4d61f0beb1337c2b88c4a59f3ae215fb3be06142 /gdb/annotate.h
parent87781e8475f8ec80463937130cde48540ff87149 (diff)
downloadgdb-a45575b0356d671df2c55fcfc66de719b6b2e5e5.zip
gdb-a45575b0356d671df2c55fcfc66de719b6b2e5e5.tar.gz
gdb-a45575b0356d671df2c55fcfc66de719b6b2e5e5.tar.bz2
Constify annotate_source
I noticed that annotate_source takes a "char *", but really should take a "const char *". This patch fixes this. gdb/ChangeLog 2019-05-17 Tom Tromey <tromey@adacore.com> * annotate.c (annotate_source): Make "filename" const. * annotate.h (annotate_source): Use const.
Diffstat (limited to 'gdb/annotate.h')
-rw-r--r--gdb/annotate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/annotate.h b/gdb/annotate.h
index 4a9e1b5..ff10d45 100644
--- a/gdb/annotate.h
+++ b/gdb/annotate.h
@@ -87,7 +87,7 @@ struct annotate_arg_emitter
DISABLE_COPY_AND_ASSIGN (annotate_arg_emitter);
};
-extern void annotate_source (char *, int, int, int,
+extern void annotate_source (const char *, int, int, int,
struct gdbarch *, CORE_ADDR);
extern void annotate_frame_begin (int, struct gdbarch *, CORE_ADDR);