40e084e177
* linespec.c (decode_compound): Remove. (enum offset_relative_sign): New enum. (struct line_offset): New struct. (struct linespec): New struct. (struct linespec_state): Move file_symtabs, user_filename, and user_function into struct linespec. Make result an anonymous struct holding vectors of symbolp and minsym_and_objfile_d. Add language member. (enum ls_token_type): New enum. (linespec_keywords): New array. (struct ls_token): New struct. (struct ls_parser): New struct. (linespec_lexer_lex_number): New function. (linespec_lexer_lex_keyword): New function. (is_ada_operator): New function. (skip_quote_char): New function. (copy_token_string): New function. (is_closing_quote_enclosed): New function. (find_parameter_list_end): New function. (linespec_lexer_lex_string): New function. (linespec_lexer_lex_one): New function. (linespec_lexer_consume_token): New function. (linespec_lexer_peek_token): New function. (cplusplus_error): Remove unused function. (find_methods): Update comment. (find_toplevel_char): Return const. (is_objc_method_format): Remove unused function. (find_toplevel_string): New function. (is_linespec_boundary): Remove. (symbol_not_found_error): New function. (find_method_overload_end): Remove function. (unexpected_linespec_error): New function. (keep_name_info): Remove. (linespec_parse_line_offset): New function. (linespec_parse_basic): New function. (canonicalize_linespec): New function. (decode_line_internal): Remove. (create_sals_line_offset): New function adapted from decode_all_digits. (convert_linespec_to_sals): New function. (parse_linespec): New function. (linespec_parser_new): New function. (linespec_state_destructor): Change parameter type to struct linespec_state *. Add language parameter. Remove freeing of moved members. (linespec_parser_delete): New function. (decode_line_full): Use parse_linespec and linespec_parser_new. (decode_line_1): Likewise. (decode_indirect): Rename to ... (linespec_expression_to_pc): ... this and rewrite to simply find CORE_ADDR, storing this result for later conversion to SALs. (locate_first_half): Remove. (deocde_objc): Add parameter LS. Initialize new struct collect_info members. Handle minimal symbols, too. (decode_compound): Delete. (lookup_prefix_sym): Rewrite. (compare_msymbols): New function. (find_method): Rewrite. Do not call cplusplus_error. (symtabs_from_filename): Rewrite. (collect_function_symbols): Delete. (find_function_symbols): Rewrite without ARGPTR-style processing. (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.) (decode_dollar): Adapted and renamed to ... (linespec_parse_variable): ... this. (find_linespec_symbols): New function. (decode_label): Adapted and renamed to ... (find_label_symbols): ... this. (decode_digits_list_mode): Add and use LS argument. (decode_digits_ordinary): Likewise. (collect_symbols): Do not collect SALs, just symbols and msymbols. If in list mode, allow any symbol class. Otherwise, only permit LOC_BLOCK symbols. (minsym_found): Update comments. (search_minsyms_for_name): Do not convert the matching symbol into a SAL. Simply push the symbol and objfile into the result vector. (decode_variable): Delete. Contents adapted into find_linespec_symbols. * cp-support.c (SKIP_SPACE): Remove. (operator_tokens): Remove unused global. (cp_validate_operator): Remove. * cp-support.h (cp_validate_operator): Remove declaration. * gdb.base/advance.exp: Update error message for "advance malformed" test. * gdb.base/break.exp: Likewise for "breakpoint with trailing garbage" test. * gdb.base/hbreak2.exp: Likewise for "hardware breakpoint with trailing garbage" test. * gdb.base/jump.exp: Likewise for "jump with trailing argument junk" test. * gdb.base/sepdebug.exp: Likewise for "breakpoint with trailng garbage" test. * gdb.base/until.exp: Likewise for "malformed until" test. * gdb.cp/ovldbreak.exp: Create the breakpoint table for "breakpoint info (after setting on all)". * gdb.cp/userdef.exp: Remove quoting for "break A2::operator+" tests. * gdb.cp/cplabel.cc: New file. * gdb.cp/cplabel.exp: New test. * gdb.linespec/ls-errs.c: New file. * gdb.linespec/ls-errs.exp: New test. |
||
---|---|---|
.. | ||
comp-dir/subdir | ||
a2-run.exp | ||
advance.c | ||
advance.exp | ||
alias.exp | ||
all-bin.exp | ||
all-types.c | ||
annota1.c | ||
annota1.exp | ||
annota3.c | ||
annota3.exp | ||
anon.c | ||
anon.exp | ||
args.c | ||
args.exp | ||
arithmet.exp | ||
arrayidx.c | ||
arrayidx.exp | ||
assign.exp | ||
async-shell.c | ||
async-shell.exp | ||
async.c | ||
async.exp | ||
attach-pie-misread.c | ||
attach-pie-misread.exp | ||
attach-pie-noexec.c | ||
attach-pie-noexec.exp | ||
attach-twice.c | ||
attach-twice.exp | ||
attach.c | ||
attach.exp | ||
attach2.c | ||
auxv.c | ||
auxv.exp | ||
average.c | ||
bang.exp | ||
bar.c | ||
baz.c | ||
bfp-test.c | ||
bfp-test.exp | ||
bigcore.c | ||
bigcore.exp | ||
bitfields.c | ||
bitfields.exp | ||
bitfields2.c | ||
bitfields2.exp | ||
bitops.exp | ||
branches.c | ||
break-always.c | ||
break-always.exp | ||
break-entry.exp | ||
break-inline.c | ||
break-inline.exp | ||
break-interp-lib.c | ||
break-interp-main.c | ||
break-interp.exp | ||
break-on-linker-gcd-function.cc | ||
break-on-linker-gcd-function.exp | ||
break.c | ||
break.exp | ||
break1.c | ||
breakpoint-shadow.c | ||
breakpoint-shadow.exp | ||
call-ar-st.c | ||
call-ar-st.exp | ||
call-rt-st.c | ||
call-rt-st.exp | ||
call-sc.c | ||
call-sc.exp | ||
call-signal-resume.exp | ||
call-signals.c | ||
call-strs.c | ||
call-strs.exp | ||
callexit.c | ||
callexit.exp | ||
callfuncs.c | ||
callfuncs.exp | ||
catch-load-so.c | ||
catch-load.c | ||
catch-load.exp | ||
catch-syscall.c | ||
catch-syscall.exp | ||
charset-malloc.c | ||
charset.c | ||
charset.exp | ||
checkpoint.c | ||
checkpoint.exp | ||
chng-syms.c | ||
chng-syms.exp | ||
code-expr.exp | ||
code_elim.exp | ||
code_elim1.c | ||
code_elim2.c | ||
commands.exp | ||
completion.exp | ||
complex.c | ||
complex.exp | ||
cond-eval-mode.exp | ||
cond-expr.exp | ||
condbreak.exp | ||
consecutive.c | ||
consecutive.exp | ||
constvars.c | ||
constvars.exp | ||
corefile.exp | ||
coremaker.c | ||
coremaker2.c | ||
cursal.c | ||
cursal.exp | ||
cvexpr.c | ||
cvexpr.exp | ||
d10v.ld | ||
d10vovly.c | ||
dbx.exp | ||
default.exp | ||
define.exp | ||
del.c | ||
del.exp | ||
detach.exp | ||
dfp-exprs.exp | ||
dfp-test.c | ||
dfp-test.exp | ||
disasm-end-cu-1.c | ||
disasm-end-cu-2.c | ||
disasm-end-cu.exp | ||
disp-step-fork.c | ||
disp-step-syscall.exp | ||
disp-step-vfork.c | ||
display.c | ||
display.exp | ||
dmsym.c | ||
dmsym.exp | ||
dmsym_main.c | ||
dump.c | ||
dump.exp | ||
dup-sect.exp | ||
dup-sect.S | ||
echo.exp | ||
ena-dis-br.exp | ||
ending-run.c | ||
ending-run.exp | ||
enum_cond.c | ||
enum_cond.exp | ||
environ.exp | ||
eu-strip-infcall.c | ||
eu-strip-infcall.exp | ||
eval-skip.exp | ||
eval.exp | ||
exe-lock.exp | ||
execd-prog.c | ||
expand-psymtabs.c | ||
expand-psymtabs.exp | ||
exprs.c | ||
exprs.exp | ||
fileio.c | ||
fileio.exp | ||
find.c | ||
find.exp | ||
finish.exp | ||
fixsection.c | ||
fixsection.exp | ||
fixsectshr.c | ||
float.c | ||
float.exp | ||
foll-exec.c | ||
foll-exec.exp | ||
foll-fork.c | ||
foll-fork.exp | ||
foll-vfork.c | ||
foll-vfork.exp | ||
foo.c | ||
fortran-sym-case.c | ||
fortran-sym-case.exp | ||
frame-args.c | ||
frame-args.exp | ||
freebpcmd.c | ||
freebpcmd.exp | ||
fullname.c | ||
fullname.exp | ||
funcargs.c | ||
funcargs.exp | ||
gcore-buffer-overflow.c | ||
gcore-buffer-overflow.exp | ||
gcore.c | ||
gcore.exp | ||
gdb1056.exp | ||
gdb1090.c | ||
gdb1090.exp | ||
gdb1250.c | ||
gdb1250.exp | ||
gdb1555-main.c | ||
gdb1555.c | ||
gdb1555.exp | ||
gdb1821.c | ||
gdb1821.exp | ||
gdb11530.c | ||
gdb11530.exp | ||
gdb11531.c | ||
gdb11531.exp | ||
gdb_history | ||
gdbindex-stabs-dwarf.c | ||
gdbindex-stabs.c | ||
gdbindex-stabs.exp | ||
gdbvars.c | ||
gdbvars.exp | ||
gnu-ifunc-lib.c | ||
gnu-ifunc.c | ||
gnu-ifunc.exp | ||
gnu_vector.c | ||
gnu_vector.exp | ||
grbx.c | ||
hashline1.exp | ||
hashline2.exp | ||
hashline3.exp | ||
hbreak.c | ||
hbreak.exp | ||
hbreak2.exp | ||
help.exp | ||
hook-stop-continue.c | ||
hook-stop-continue.exp | ||
hook-stop-frame.c | ||
hook-stop-frame.exp | ||
huge.c | ||
huge.exp | ||
ifelse.exp | ||
included.c | ||
included.exp | ||
included.h | ||
inferior-died.c | ||
inferior-died.exp | ||
infnan.c | ||
infnan.exp | ||
info-macros.c | ||
info-macros.exp | ||
info-proc.exp | ||
info-target.exp | ||
infoline.c | ||
infoline.exp | ||
int-type.c | ||
interact.exp | ||
interp.c | ||
interp.exp | ||
interrupt.c | ||
interrupt.exp | ||
jit-dlmain.c | ||
jit-main.c | ||
jit-simple.c | ||
jit-simple.exp | ||
jit-so.exp | ||
jit-solib.c | ||
jit.exp | ||
jump.c | ||
jump.exp | ||
kill-after-signal.c | ||
kill-after-signal.exp | ||
label.c | ||
label.exp | ||
langs.exp | ||
langs0.c | ||
langs1.c | ||
langs1.f | ||
langs2.c | ||
langs2.cxx | ||
lineinc.c | ||
lineinc.exp | ||
lineinc1.h | ||
lineinc2.h | ||
lineinc3.h | ||
linespecs.exp | ||
list.exp | ||
list0.c | ||
list0.h | ||
list1.c | ||
logical.exp | ||
long_long.c | ||
long_long.exp | ||
longjmp.c | ||
longjmp.exp | ||
m32r.ld | ||
m32rovly.c | ||
macscp.exp | ||
macscp1.c | ||
macscp2.h | ||
macscp3.h | ||
macscp4.h | ||
maint.exp | ||
Makefile.in | ||
memattr.c | ||
memattr.exp | ||
mips_pro.c | ||
mips_pro.exp | ||
miscexprs.c | ||
miscexprs.exp | ||
morestack.c | ||
morestack.exp | ||
moribund-step.exp | ||
multi-forks.c | ||
multi-forks.exp | ||
nextoverexit.c | ||
nextoverexit.exp | ||
nodebug.c | ||
nodebug.exp | ||
nofield.c | ||
nofield.exp | ||
nostdlib.c | ||
nostdlib.exp | ||
opaque.exp | ||
opaque0.c | ||
opaque1.c | ||
overlays.c | ||
overlays.exp | ||
ovlymgr.c | ||
ovlymgr.h | ||
page.exp | ||
pc-fp.c | ||
pc-fp.exp | ||
pending.c | ||
pending.exp | ||
pendshr.c | ||
permissions.exp | ||
pi.txt | ||
pie-execl.c | ||
pie-execl.exp | ||
pointers.c | ||
pointers.exp | ||
pr10179-a.c | ||
pr10179-b.c | ||
pr10179.exp | ||
pr11022.c | ||
pr11022.exp | ||
prelink-lib.c | ||
prelink.c | ||
prelink.exp | ||
printcmds.c | ||
printcmds.exp | ||
prologue.c | ||
prologue.exp | ||
psymtab.exp | ||
psymtab1.c | ||
psymtab2.c | ||
ptr-typedef.c | ||
ptr-typedef.exp | ||
ptype.c | ||
ptype.exp | ||
ptype1.c | ||
radix.exp | ||
randomize.c | ||
randomize.exp | ||
readline-ask.c | ||
readline-ask.exp | ||
readline-ask.inputrc | ||
readline.exp | ||
recpar.c | ||
recpar.exp | ||
recurse.c | ||
recurse.exp | ||
relational.exp | ||
relativedebug.c | ||
relativedebug.exp | ||
relocate.c | ||
relocate.exp | ||
remote.c | ||
remote.exp | ||
remotetimeout.exp | ||
reread.exp | ||
reread1.c | ||
reread2.c | ||
restore.c | ||
restore.exp | ||
return-nodebug.c | ||
return-nodebug.exp | ||
return-nodebug1.c | ||
return.c | ||
return.exp | ||
return2.c | ||
return2.exp | ||
run.c | ||
save-bp.c | ||
save-bp.exp | ||
savedregs.c | ||
savedregs.exp | ||
scope.exp | ||
scope0.c | ||
scope1.c | ||
sect-cmd.exp | ||
sep-proc.c | ||
sep.c | ||
sep.exp | ||
sepdebug.c | ||
sepdebug.exp | ||
sepdebug2.c | ||
sepsymtab.c | ||
sepsymtab.exp | ||
set-lang-auto.exp | ||
setshow.c | ||
setshow.exp | ||
setvar.c | ||
setvar.exp | ||
shell.exp | ||
shlib-call.exp | ||
shmain.c | ||
shr1.c | ||
shr2.c | ||
shreloc.c | ||
shreloc.exp | ||
shreloc1.c | ||
shreloc2.c | ||
sigall.c | ||
sigall.exp | ||
sigaltstack.c | ||
sigaltstack.exp | ||
sigbpt.c | ||
sigbpt.exp | ||
sigchld.c | ||
sigchld.exp | ||
siginfo-addr.c | ||
siginfo-addr.exp | ||
siginfo-infcall.c | ||
siginfo-infcall.exp | ||
siginfo-obj.c | ||
siginfo-obj.exp | ||
siginfo.c | ||
siginfo.exp | ||
signals.c | ||
signals.exp | ||
signest.c | ||
signest.exp | ||
signull.c | ||
signull.exp | ||
sigrepeat.c | ||
sigrepeat.exp | ||
sigstep.c | ||
sigstep.exp | ||
sizeof.c | ||
sizeof.exp | ||
skip-solib-lib.c | ||
skip-solib-main.c | ||
skip-solib.exp | ||
skip.c | ||
skip.exp | ||
skip1.c | ||
so-disc-shr.c | ||
so-impl-ld.c | ||
so-impl-ld.exp | ||
so-indr-cl.c | ||
so-indr-cl.exp | ||
solib-corrupted.exp | ||
solib-disc.c | ||
solib-disc.exp | ||
solib-display-lib.c | ||
solib-display-main.c | ||
solib-display.exp | ||
solib-nodir.exp | ||
solib-overlap-lib.c | ||
solib-overlap-main.c | ||
solib-overlap.exp | ||
solib-symbol-lib.c | ||
solib-symbol-main.c | ||
solib-symbol.exp | ||
solib-weak.c | ||
solib-weak.exp | ||
solib.c | ||
solib.exp | ||
solib1.c | ||
solib2.c | ||
source-error.gdb | ||
source-test.gdb | ||
source.exp | ||
spu.ld | ||
ss.h | ||
stack-checking.c | ||
stack-checking.exp | ||
start.c | ||
start.exp | ||
step-break.c | ||
step-break.exp | ||
step-bt.c | ||
step-bt.exp | ||
step-line.c | ||
step-line.exp | ||
step-line.inp | ||
step-resume-infcall.c | ||
step-resume-infcall.exp | ||
step-test.c | ||
step-test.exp | ||
store.c | ||
store.exp | ||
structs.c | ||
structs.exp | ||
structs2.c | ||
structs2.exp | ||
structs3.c | ||
structs3.exp | ||
subst.exp | ||
sum.c | ||
symbol-without-target_section.c | ||
symbol-without-target_section.exp | ||
term.c | ||
term.exp | ||
testenv.c | ||
testenv.exp | ||
trace-commands.exp | ||
tui-layout.exp | ||
twice.c | ||
twice.exp | ||
type-opaque-lib.c | ||
type-opaque-main.c | ||
type-opaque.exp | ||
ui-redirect.exp | ||
unload.c | ||
unload.exp | ||
unloadshr.c | ||
unloadshr2.c | ||
until.exp | ||
unwindonsignal.c | ||
unwindonsignal.exp | ||
valgrind-db-attach.c | ||
valgrind-db-attach.exp | ||
value-double-free.c | ||
value-double-free.exp | ||
varargs.c | ||
varargs.exp | ||
vforked-prog.c | ||
volatile.exp | ||
watch-cond-infcall.c | ||
watch-cond-infcall.exp | ||
watch-cond.c | ||
watch-cond.exp | ||
watch-non-mem.c | ||
watch-non-mem.exp | ||
watch-read.c | ||
watch-read.exp | ||
watch-vfork.c | ||
watch-vfork.exp | ||
watch_thread_num.c | ||
watch_thread_num.exp | ||
watchpoint-cond-gone-stripped.c | ||
watchpoint-cond-gone.c | ||
watchpoint-cond-gone.exp | ||
watchpoint-delete.c | ||
watchpoint-delete.exp | ||
watchpoint-hw-hit-once.c | ||
watchpoint-hw-hit-once.exp | ||
watchpoint-hw.c | ||
watchpoint-hw.exp | ||
watchpoint-solib-shr.c | ||
watchpoint-solib.c | ||
watchpoint-solib.exp | ||
watchpoint.c | ||
watchpoint.exp | ||
watchpoints.c | ||
watchpoints.exp | ||
wchar.c | ||
wchar.exp | ||
weaklib1.c | ||
weaklib2.c | ||
whatis-exp.exp | ||
whatis.c | ||
whatis.exp |