aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-source.c2
-rw-r--r--gdb/tui/tui-source.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tui/tui-source.c b/gdb/tui/tui-source.c
index eb7879c..fb60fd4 100644
--- a/gdb/tui/tui-source.c
+++ b/gdb/tui/tui-source.c
@@ -332,7 +332,7 @@ tui_show_symtab_source (struct gdbarch *gdbarch, struct symtab *s,
/* Answer whether the source is currently displayed in the source
window. */
int
-tui_source_is_displayed (char *fname)
+tui_source_is_displayed (const char *fname)
{
return (TUI_SRC_WIN != NULL
&& TUI_SRC_WIN->generic.content_in_use
diff --git a/gdb/tui/tui-source.h b/gdb/tui/tui-source.h
index f5f31ed..8870268 100644
--- a/gdb/tui/tui-source.h
+++ b/gdb/tui/tui-source.h
@@ -35,7 +35,7 @@ extern enum tui_status tui_set_source_content (struct symtab *,
extern void tui_show_symtab_source (struct gdbarch *, struct symtab *,
struct tui_line_or_address,
int);
-extern int tui_source_is_displayed (char *);
+extern int tui_source_is_displayed (const char *);
extern void tui_vertical_source_scroll (enum tui_scroll_direction,
int);