diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-02-03 16:05:09 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-02-03 16:05:09 +0000 |
commit | aa079c9346c65921b85c75da180a887b7bd7a776 (patch) | |
tree | cda4ea09748da28bb01301d15ff5893c5a21b4a8 /gdb/tui/tui-source.c | |
parent | 652a899601383bee12293508992ca5f5e0d76967 (diff) | |
download | gdb-aa079c9346c65921b85c75da180a887b7bd7a776.zip gdb-aa079c9346c65921b85c75da180a887b7bd7a776.tar.gz gdb-aa079c9346c65921b85c75da180a887b7bd7a776.tar.bz2 |
gdb/
* tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
Rename field reference filename to fullname.
* tui/tui-data.h (struct tui_source_info): Rename field filename to
fullname. New comment for it.
* tui/tui-source.c (tui_set_source_content): Rename field reference
filename to fullname. Initialize field by symtab_to_fullname now.
* tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
reference filename to fullname. Use symtab_to_fullname during
comparison.
Diffstat (limited to 'gdb/tui/tui-source.c')
-rw-r--r-- | gdb/tui/tui-source.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/tui/tui-source.c b/gdb/tui/tui-source.c index fb60fd4..4368c04 100644 --- a/gdb/tui/tui-source.c +++ b/gdb/tui/tui-source.c @@ -99,9 +99,8 @@ tui_set_source_content (struct symtab *s, xfree (TUI_SRC_WIN->generic.title); TUI_SRC_WIN->generic.title = xstrdup (s->filename); - if (src->filename) - xfree (src->filename); - src->filename = xstrdup (s->filename); + xfree (src->fullname); + src->fullname = xstrdup (symtab_to_fullname (s)); /* Determine the threshold for the length of the line and the offset to start the display. */ |