projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
btrace: fix test build error in gdb.btrace/instruction_history.c
[deliverable/binutils-gdb.git]
/
gdb
/
source.c
diff --git
a/gdb/source.c
b/gdb/source.c
index 194b044f44432370236f822ca1f5cf9af1587628..a1f55b29c4329f7db755d6e140822138063253f7 100644
(file)
--- a/
gdb/source.c
+++ b/
gdb/source.c
@@
-1,5
+1,5
@@
/* List lines of source files for GDB, the GNU debugger.
/* List lines of source files for GDB, the GNU debugger.
- Copyright (C) 1986-201
5
Free Software Foundation, Inc.
+ Copyright (C) 1986-201
6
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-42,6
+42,7
@@
#include "completer.h"
#include "ui-out.h"
#include "readline/readline.h"
#include "completer.h"
#include "ui-out.h"
#include "readline/readline.h"
+#include "common/enum-flags.h"
#define OPEN_MODE (O_RDONLY | O_BINARY)
#define FDOPEN_MODE FOPEN_RB
#define OPEN_MODE (O_RDONLY | O_BINARY)
#define FDOPEN_MODE FOPEN_RB
@@
-94,7
+95,7
@@
static struct program_space *current_source_pspace;
and friends should be rewritten to count characters and see where
things are wrapping, but that would be a fair amount of work. */
and friends should be rewritten to count characters and see where
things are wrapping, but that would be a fair amount of work. */
-int lines_to_list = 10;
+
static
int lines_to_list = 10;
static void
show_lines_to_list (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value)
static void
show_lines_to_list (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value)
@@
-1327,7
+1328,7
@@
identify_source_line (struct symtab *s, int line, int mid_statement,
static void
print_source_lines_base (struct symtab *s, int line, int stopline,
static void
print_source_lines_base (struct symtab *s, int line, int stopline,
-
enum
print_source_lines_flags flags)
+ print_source_lines_flags flags)
{
int c;
int desc;
{
int c;
int desc;
@@
-1361,7
+1362,7
@@
print_source_lines_base (struct symtab *s, int line, int stopline,
else
{
desc = last_source_error;
else
{
desc = last_source_error;
-
flags |= PRINT_SOURCE_LINES_NOERROR;
+ flags |= PRINT_SOURCE_LINES_NOERROR;
noprint = 1;
}
noprint = 1;
}
@@
-1487,7
+1488,7
@@
print_source_lines_base (struct symtab *s, int line, int stopline,
void
print_source_lines (struct symtab *s, int line, int stopline,
void
print_source_lines (struct symtab *s, int line, int stopline,
-
enum
print_source_lines_flags flags)
+ print_source_lines_flags flags)
{
print_source_lines_base (s, line, stopline, flags);
}
{
print_source_lines_base (s, line, stopline, flags);
}
This page took
0.036179 seconds
and
4
git commands to generate.