2000-11-10 Fernando Nasser <fnasser@totem.toronto.redhat.com>

* symtab.c (decode_line_1, total_number_of_methods, find_methods,
	build_command_line_spec, find_toplevel_char, decode_line_2):
	Move to linespec.c.
	* linespec.c: New file. Routines that handle linespecs, formerly
	in symtab.c.
	* symtab.h: Export find_line_symtab and find_function_start_sal,
	* Makefile.in: Add linespec.c.
This commit is contained in:
Fernando Nasser 2000-11-10 23:02:56 +00:00
parent 5fcfd273c3
commit 506419459a
5 changed files with 1309 additions and 1235 deletions

View File

@ -1,3 +1,13 @@
2000-11-10 Fernando Nasser <fnasser@totem.toronto.redhat.com>
* symtab.c (decode_line_1, total_number_of_methods, find_methods,
build_command_line_spec, find_toplevel_char, decode_line_2):
Move to linespec.c.
* linespec.c: New file. Routines that handle linespecs, formerly
in symtab.c.
* symtab.h: Export find_line_symtab and find_function_start_sal,
* Makefile.in: Add linespec.c.
2000-11-10 Christopher Faylor <cgf@cygnus.com>
* inferior.h (step_over_calls_kind): New enum to clarify values in

View File

@ -492,7 +492,7 @@ SFILES = ax-general.c ax-gdb.c bcache.c blockframe.c breakpoint.c \
p-exp.y p-lang.c p-typeprint.c p-valprint.c parse.c \
printcmd.c remote.c remote-nrom.c scm-exp.c scm-lang.c \
scm-valprint.c source.c stabsread.c stack.c symfile.c \
symmisc.c symtab.c target.c thread.c top.c tracepoint.c \
symmisc.c symtab.c linespec.c target.c thread.c top.c tracepoint.c \
typeprint.c utils.c valarith.c valops.c valprint.c values.c \
serial.c ser-unix.c mdebugread.c os9kread.c \
tui/tui.c tui/tui.h tui/tuiCommand.c tui/tuiCommand.h \
@ -621,7 +621,7 @@ TAGFILES_WITH_SRCDIR = $(HFILES_WITH_SRCDIR)
COMMON_OBS = version.o blockframe.o breakpoint.o findvar.o regcache.o \
source.o values.o eval.o valops.o valarith.o valprint.o printcmd.o \
symtab.o symfile.o symmisc.o infcmd.o infrun.o command.o \
symtab.o symfile.o symmisc.o linespec.o infcmd.o infrun.o command.o \
expprint.o environ.o stack.o thread.o \
event-loop.o event-top.o inf-loop.o \
gdbarch.o arch-utils.o gdbtypes.o copying.o $(DEPFILES) \
@ -1899,6 +1899,9 @@ symtab.o: symtab.c call-cmds.h $(defs_h) $(expression_h) $(frame_h) \
gnu-regex.h symfile.h $(symtab_h) target.h $(value_h) \
gdb_string.h
linespec.o: linespec.c $(defs_h) $(gdbcmd_h) $(gdbtypes_h) objfiles.h \
symfile.h $(symtab_h) $(INCLUDE_DIR)/demangle.h inferior.h
# OBSOLETE tahoe-tdep.o: tahoe-tdep.c $(OP_INCLUDE)/tahoe.h $(defs_h) \
# OBSOLETE $(symtab_h)

1266
gdb/linespec.c Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1345,8 +1345,10 @@ extern struct symtabs_and_lines decode_line_spec (char *, int);
extern struct symtabs_and_lines decode_line_spec_1 (char *, int);
extern struct symtabs_and_lines
decode_line_1 (char **, int, struct symtab *, int, char ***);
/* From linespec.c */
extern struct symtabs_and_lines decode_line_1 (char **,
int, struct symtab *, int, char ***);
/* Symmisc.c */
@ -1390,6 +1392,10 @@ extern struct symbol **make_symbol_overload_list (struct symbol *);
extern struct partial_symtab *find_main_psymtab (void);
extern struct symtab *find_line_symtab (struct symtab *, int, int *, int *);
extern struct symtab_and_line find_function_start_sal (struct symbol *sym, int);
/* blockframe.c */
extern struct blockvector *blockvector_for_pc (CORE_ADDR, int *);