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.
This commit is contained in:
parent
87781e8475
commit
a45575b035
@ -1,3 +1,8 @@
|
||||
2019-05-17 Tom Tromey <tromey@adacore.com>
|
||||
|
||||
* annotate.c (annotate_source): Make "filename" const.
|
||||
* annotate.h (annotate_source): Use const.
|
||||
|
||||
2019-05-17 Alan Hayward <alan.hayward@arm.com>
|
||||
|
||||
* disasm.c (set_disassembler_options): Send errors to stderr.
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user