projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb: Don't allow annotations to influence what else GDB prints
[deliverable/binutils-gdb.git]
/
gdb
/
annotate.c
diff --git
a/gdb/annotate.c
b/gdb/annotate.c
index 84f8129b22d0f0fbc94e0eda05eac5aeb270d12b..8d8a0196fb02d32f3021f780625ba7b317750c45 100644
(file)
--- a/
gdb/annotate.c
+++ b/
gdb/annotate.c
@@
-434,7
+434,7
@@
annotate_source (const char *filename, int line, int character, int mid,
/* See annotate.h. */
/* See annotate.h. */
-bool
+void
annotate_source_line (struct symtab *s, int line, int mid_statement,
CORE_ADDR pc)
{
annotate_source_line (struct symtab *s, int line, int mid_statement,
CORE_ADDR pc)
{
@@
-443,17
+443,15
@@
annotate_source_line (struct symtab *s, int line, int mid_statement,
if (s->line_charpos == nullptr)
open_source_file_with_line_charpos (s);
if (s->fullname == nullptr)
if (s->line_charpos == nullptr)
open_source_file_with_line_charpos (s);
if (s->fullname == nullptr)
- return
false
;
+ return;
/* Don't index off the end of the line_charpos array. */
if (line > s->nlines)
/* Don't index off the end of the line_charpos array. */
if (line > s->nlines)
- return
false
;
+ return;
annotate_source (s->fullname, line, s->line_charpos[line - 1],
mid_statement, get_objfile_arch (SYMTAB_OBJFILE (s)),
pc);
annotate_source (s->fullname, line, s->line_charpos[line - 1],
mid_statement, get_objfile_arch (SYMTAB_OBJFILE (s)),
pc);
- return true;
}
}
- return false;
}
}
This page took
0.024563 seconds
and
4
git commands to generate.