diff options
author | Tom Tromey <tromey@adacore.com> | 2019-05-17 08:41:12 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2019-05-17 10:16:40 -0600 |
commit | a45575b0356d671df2c55fcfc66de719b6b2e5e5 (patch) | |
tree | 4d61f0beb1337c2b88c4a59f3ae215fb3be06142 /gdb/annotate.c | |
parent | 87781e8475f8ec80463937130cde48540ff87149 (diff) | |
download | binutils-a45575b0356d671df2c55fcfc66de719b6b2e5e5.zip binutils-a45575b0356d671df2c55fcfc66de719b6b2e5e5.tar.gz binutils-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.c')
-rw-r--r-- | gdb/annotate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/annotate.c b/gdb/annotate.c index 97cb4c8..088f7c9 100644 --- a/gdb/annotate.c +++ b/gdb/annotate.c @@ -419,7 +419,7 @@ annotate_arg_end (void) } void -annotate_source (char *filename, int line, int character, int mid, +annotate_source (const char *filename, int line, int character, int mid, struct gdbarch *gdbarch, CORE_ADDR pc) { if (annotation_level > 1) |