Daniel Jacobowitz
054410c315
* gdb.base/annota1.exp: Remove extra send_gdb.
2007-01-10 03:23:04 +00:00
Daniel Jacobowitz
818f79f66b
2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
...
* symtab.c (matching_bfd_sections): Fix VMA matching for
prelinked objects.
* gdb.base/relativedebug.c, gdb.base/relativedebug.exp: New files.
2007-01-09 22:43:09 +00:00
Daniel Jacobowitz
85bb071872
* copyright.sh (prunes): Add step-line.inp and step-line.c.
2007-01-09 21:37:30 +00:00
Daniel Jacobowitz
6aba47ca06
Copyright updates for 2007.
2007-01-09 17:59:20 +00:00
Joel Brobecker
51679ba976
* gdb.base/nofield.c: New file.
...
* gdb.base/nofield.exp: New testcase.
2007-01-05 05:56:37 +00:00
Daniel Jacobowitz
1b572db9ac
* gdb.base/annota3.exp ($binfile): Append $EXEEXT.
...
Expect ".exe" extension.
2007-01-04 20:53:50 +00:00
Daniel Jacobowitz
381bc39bef
* gdb.base/charset.exp: Add explicit filename to break.
...
* gdb.base/dbx.exp: Add explicit filename to breaks.
2007-01-04 20:42:24 +00:00
Daniel Jacobowitz
05cfdb42f8
2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
...
* coffread.c (cs_to_section): If bfd_section is found, always
return its section index.
(coff_symtab_read): Determine the minimal_symbol_type using the
bfd_section flags.
* gdb.base/shreloc.exp: Use ldflags instead of additional_flags to
pass --image-base to linker.
2007-01-03 23:06:29 +00:00
Daniel Jacobowitz
2e03ee74df
2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
...
Daniel Jacobowitz <dan@codesourcery.com>
* Makefile.in (top.o): Update.
* top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
(saved_after_char_processing_hook, gdb_readline_wrapper_line)
(struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
New.
(gdb_readline_wrapper): Rewrite to use asynchronous readline.
2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
Daniel Jacobowitz <dan@codesourcery.com>
* gdb.base/readline.exp: Set $TERM. Test arrow keys in
secondary prompts.
2007-01-03 21:46:12 +00:00
Daniel Jacobowitz
2fa63963cd
* gdb.base/annota1.exp: Allow .*printf in backtraces.
...
* gdb.base/annota3.exp: Likewise.
* gdb.base/sigstep.exp (advancei): Fail if we hit the breakpoint
again (instead of timing out).
* gdb.gdb/selftest.exp (do_steps_and_nexts): Add an XFAIL for
GCC bug 26475.
* gdb.java/jmisc.exp: Adjust to work with method signatures including
return types. Add kfails for GDB bugs 2214 and 2215. Move exit
test from jmisc1.exp.
* gdb.java/jmisc1.exp: Delete.
* gdb.java/jprint.exp: Adjust to work with method signatures including
return types.
* gdb.objc/basicclass.exp: Update for gobjc 4.1 debug info.
* gdb.threads/linux-dp.exp: Don't be confused by program output.
* lib/java.exp (compile_java_from_source): Pass the correct type
to target_compile.
2006-12-31 20:01:25 +00:00
Daniel Jacobowitz
0823249716
gdb/
...
* elfread.c (elf_symtab_read): Treat weak functions as global.
gdb/testsuite/
* gdb.base/solib-weak.c, gdb.base/solib-weak.exp, gdb.base/weaklib1.c,
gdb.base/weaklib2.c: New files.
2006-12-01 18:14:30 +00:00
Nathan Sidwell
d394c9935d
* gdb.base/break.c (main): Move position of malloc.
...
* gdb.base/break.exp: Revert mistaken checkin.
2006-11-29 08:02:07 +00:00
Nathan Sidwell
8ec659a07e
* gdb.base/break.c (main): Move position of malloc.
2006-11-28 17:52:06 +00:00
Nathan Sidwell
f556d5e59d
* gdb.base/break.c (main): Call malloc.
2006-11-28 16:04:00 +00:00
Nathan Sidwell
697bc68de8
* gdb.base/ending-run.exp: Flatten expect script stepping out of
...
main to remove duplication. Add start function of the form
'_*start[1-9]*'. Add RVDS start function.
2006-11-27 15:09:54 +00:00
Ulrich Weigand
c1d88655bb
* gdb.asm/asm-source.exp: Add "spu*-*-*" target.
...
* gdb.asm/spu.inc: New file.
* gdb.base/term.exp: Disable if [target_info exists noargs].
* gdb.gdb/complaints.exp: Disable if ![isnative].
* gdb.gdb/selftest.exp: Likewise.
* gdb.gdb/observer.exp: Likewise.
* gdb.gdb/xfullpath.exp: Likewise.
* gdb.base/attach.exp: Disable on SPU target.
* gdb.cp/bs145503.exp: Likewise.
* gdb.cp/exception.exp: Likewise.
* gdb.cp/userdef.exp: Likewise.
2006-11-22 17:19:52 +00:00
Vladimir Prus
d8295fe954
2006-11-10 Vladimir Prus <vladimir@codesourcery.com>
...
* gdb.base/completion.exp: Fix completion tests for
'info' and 'info '.
* gdb.base/help.exp (help_test_raw, test_class_help)
(test_prefix_command_help): Move...
* lib/gdb.exp: Here.
* gdb.base/main.exp: Adjust.
* gdb.cp/maint.exp: Adjust.
* gdb.trace/tracecmd.exp: Use test_help_class.
2006-11-10 16:58:53 +00:00
Vladimir Prus
a38cd18094
2006-11-09 Vladimir Prus <vladimir@codesourcery.com>
...
* gdb.base/help.exp (help_test_raw): New.
(test_class_help): New.
(test_prefix_command_help): New.
Adjust testcases.
2006-11-09 19:22:11 +00:00
Frederic Riss
6760920914
2006-11-09 Christophe Lyon <christophe.lyon@st.com>
...
* gdb.base/constvars.c (main): Write to crass and crips, so that
they are allocated by the compiler.
2006-11-09 09:20:17 +00:00
Andreas Schwab
f73adfeb8b
* gdbcmd.h (detachlist): Declare.
...
* infcmd.c (_initialize_infcmd): Define "detach" as prefix
command.
* linux-fork.c (_initialize_linux_fork): Rename
"detach-checkpoint" to "detach checkpoint" and "detach-fork" to
"detach fork".
* cli/cli-cmds.c (detachlist): Define.
(init_cmd_lists): Initialize it.
* cli/cli-cmds.h (detachlist): Declare.
doc/:
* gdb.texinfo (Processes): Rename "detach-fork" to "detach fork".
testsuite/:
* gdb.base/multi-forks.exp: Use "detach fork" instead of
"detach-fork".
2006-10-27 22:23:21 +00:00
Daniel Jacobowitz
94277a3898
gdb/
...
* Makefile.in (symtab.o): Update.
* symtab.h (matching_bfd_section): New prototype.
* symtab.c (matching_bfd_section): New.
(find_pc_sect_psymbol, find_pc_sect_symtab): Use it.
* minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
* printcmd.c (sym_info): Ignore separate debug objfiles.
gdb/testsuite/
* gdb.base/sepdebug.exp: Remove debug format test.
* lib/gdb.exp (gdb_gnu_strip_debug): Perform debug format test.
Handle no-symtab.
* gdb.base/sepsymtab.c, gdb.base/sepsymtab.exp: New.
2006-10-17 20:17:45 +00:00
Daniel Jacobowitz
8c008720eb
* gdb.base/annota1.exp, gdb.base/maint.exp: Use string_to_regexp.
2006-10-12 19:03:22 +00:00
Joel Brobecker
dd920c3388
* gdb.base/subst.exp: New testcase.
2006-10-06 18:17:56 +00:00
Nick Roberts
9cb8286385
Include __kernel_vsyscall in regexp.
2006-09-18 21:17:07 +00:00
Daniel Jacobowitz
ae018d1aa1
* gdb.base/args.c (main): Add breakpoint marker.
...
* gdb.base/args.exp: Use args_test for tests. Add new tests which
really test empty arguments.
(args_load): Delete.
(args_test): New.
2006-09-15 20:06:42 +00:00
Andrew Stubbs
8625200f9f
2006-08-10 Andrew Stubbs <andrew.stubbs@st.com>
...
gdb/
* cli/cli-script.c (execute_user_command): Update command_next_depth
on user-command call.
gdb/testsuite
* gdb.base/trace-commands.exp: New file.
2006-08-10 16:06:25 +00:00
Daniel Jacobowitz
089ec8f1ac
* gdb.base/step-bt.exp: Make hexadecimal address optional in
...
expected output of the backtrace commands.
2006-08-10 13:05:18 +00:00
Joel Brobecker
b60f089831
* gdb.arch/altivec-abi.exp: Replace gdb_suppress_entire_file with
...
untested followed by return combination.
* gdb.arch/altivec-regs.exp: Likewise.
* gdb.arch/e500-abi.exp: Likewise.
* gdb.arch/e500-regs.exp: Likewise.
* gdb.arch/gdb1291.exp: Likewise.
* gdb.arch/gdb1431.exp: Likewise.
* gdb.arch/gdb1558.exp: Likewise.
* gdb.arch/i386-prologue.exp: Likewise.
* gdb.arch/i386-unwind.exp: Likewise.
* gdb.asm/asm-source.exp: Likewise.
* gdb.base/a2-run.exp: Likewise.
* gdb.base/advance.exp: Likewise.
* gdb.base/all-bin.exp: Likewise.
* gdb.base/annota1.exp: Likewise.
* gdb.base/annota3.exp: Likewise.
* gdb.base/args.exp: Likewise.
* gdb.base/arithmet.exp: Likewise.
* gdb.base/assign.exp: Likewise.
* gdb.base/async.exp: Likewise.
* gdb.base/attach.exp: Likewise.
* gdb.base/bang.exp: Likewise.
* gdb.base/bigcore.exp: Likewise.
* gdb.base/bitfields.exp: Likewise.
* gdb.base/bitfields2.exp: Likewise.
* gdb.base/break.exp: Likewise.
* gdb.base/call-sc.exp: Likewise.
* gdb.base/call-strs.exp: Likewise.
* gdb.base/callfuncs.exp: Likewise.
* gdb.base/checkpoint.exp: Likewise.
* gdb.base/chng-syms.exp: Likewise.
* gdb.base/code-expr.exp: Likewise.
* gdb.base/commands.exp: Likewise.
* gdb.base/completion.exp: Likewise.
* gdb.base/cond-expr.exp: Likewise.
* gdb.base/condbreak.exp: Likewise.
* gdb.base/consecutive.exp: Likewise.
* gdb.base/constvars.exp: Likewise.
* gdb.base/corefile.exp: Likewise.
* gdb.base/cvexpr.exp: Likewise.
* gdb.base/dbx.exp: Likewise.
* gdb.base/define.exp: Likewise.
* gdb.base/detach.exp: Likewise.
* gdb.base/display.exp: Likewise.
* gdb.base/dump.exp: Likewise.
* gdb.base/ena-dis-br.exp: Likewise.
* gdb.base/ending-run.exp: Likewise.
* gdb.base/environ.exp: Likewise.
* gdb.base/eval-skip.exp: Likewise.
* gdb.base/exprs.exp: Likewise.
* gdb.base/fileio.exp: Likewise.
* gdb.base/finish.exp: Likewise.
* gdb.base/float.exp: Likewise.
* gdb.base/foll-exec.exp: Likewise.
* gdb.base/foll-fork.exp: Likewise.
* gdb.base/foll-vfork.exp: Likewise.
* gdb.base/freebpcmd.exp: Likewise.
* gdb.base/funcargs.exp: Likewise.
* gdb.base/gcore.exp: Likewise.
* gdb.base/gdb1090.exp: Likewise.
* gdb.base/gdb1250.exp: Likewise.
* gdb.base/huge.exp: Likewise.
* gdb.base/info-proc.exp: Likewise.
* gdb.base/interrupt.exp: Likewise.
* gdb.base/jump.exp: Likewise.
* gdb.base/langs.exp: Likewise.
* gdb.base/lineinc.exp: Likewise.
* gdb.base/list.exp: Likewise.
* gdb.base/logical.exp: Likewise.
* gdb.base/long_long.exp: Likewise.
* gdb.base/macscp.exp: Likewise.
* gdb.base/maint.exp: Likewise.
* gdb.base/mips_pro.exp: Likewise.
* gdb.base/miscexprs.exp: Likewise.
* gdb.base/multi-forks.exp: Likewise.
* gdb.base/opaque.exp: Likewise.
* gdb.base/overlays.exp: Likewise.
* gdb.base/pc-fp.exp: Likewise.
* gdb.base/pointers.exp: Likewise.
* gdb.base/printcmds.exp: Likewise.
* gdb.base/psymtab.exp: Likewise.
* gdb.base/ptype.exp: Likewise.
* gdb.base/recurse.exp: Likewise.
* gdb.base/relational.exp: Likewise.
* gdb.base/relocate.exp: Likewise.
* gdb.base/remote.exp: Likewise.
* gdb.base/reread.exp: Likewise.
* gdb.base/restore.exp: Likewise.
* gdb.base/return.exp: Likewise.
* gdb.base/return2.exp: Likewise.
* gdb.base/scope.exp: Likewise.
* gdb.base/sect-cmd.exp: Likewise.
* gdb.base/sep.exp: Likewise.
* gdb.base/sepdebug.exp: Likewise.
* gdb.base/setshow.exp: Likewise.
* gdb.base/setvar.exp: Likewise.
* gdb.base/sigall.exp: Likewise.
* gdb.base/sigbpt.exp: Likewise.
* gdb.base/signals.exp: Likewise.
* gdb.base/signull.exp: Likewise.
* gdb.base/sizeof.exp: Likewise.
* gdb.base/solib.exp: Likewise.
* gdb.base/step-line.exp: Likewise.
* gdb.base/step-test.exp: Likewise.
* gdb.base/structs.exp: Likewise.
* gdb.base/structs2.exp: Likewise.
* gdb.base/term.exp: Likewise.
* gdb.base/twice.exp: Likewise.
* gdb.base/until.exp: Likewise.
* gdb.base/varargs.exp: Likewise.
* gdb.base/volatile.exp: Likewise.
* gdb.base/watchpoint.exp: Likewise.
* gdb.base/whatis-exp.exp: Likewise.
* gdb.base/whatis.exp: Likewise.
* gdb.cp/ambiguous.exp: Likewise.
* gdb.cp/annota2.exp: Likewise.
* gdb.cp/annota3.exp: Likewise.
* gdb.cp/bool.exp: Likewise.
* gdb.cp/breakpoint.exp: Likewise.
* gdb.cp/casts.exp: Likewise.
* gdb.cp/class2.exp: Likewise.
* gdb.cp/classes.exp: Likewise.
* gdb.cp/cplusfuncs.exp: Likewise.
* gdb.cp/ctti.exp: Likewise.
* gdb.cp/derivation.exp: Likewise.
* gdb.cp/exception.exp: Likewise.
* gdb.cp/gdb1355.exp: Likewise.
* gdb.cp/hang.exp: Likewise.
* gdb.cp/inherit.exp: Likewise.
* gdb.cp/local.exp: Likewise.
* gdb.cp/m-data.exp: Likewise.
* gdb.cp/m-static.exp: Likewise.
* gdb.cp/member-ptr.exp: Likewise.
* gdb.cp/method.exp: Likewise.
* gdb.cp/misc.exp: Likewise.
* gdb.cp/namespace.exp: Likewise.
* gdb.cp/overload.exp: Likewise.
* gdb.cp/ovldbreak.exp: Likewise.
* gdb.cp/pr-1023.exp: Likewise.
* gdb.cp/pr-1210.exp: Likewise.
* gdb.cp/pr-574.exp: Likewise.
* gdb.cp/printmethod.exp: Likewise.
* gdb.cp/psmang.exp: Likewise.
* gdb.cp/ref-params.exp: Likewise.
* gdb.cp/ref-types.exp: Likewise.
* gdb.cp/rtti.exp: Likewise.
* gdb.cp/templates.exp: Likewise.
* gdb.cp/try_catch.exp: Likewise.
* gdb.cp/userdef.exp: Likewise.
* gdb.cp/virtfunc.exp: Likewise.
* gdb.disasm/am33.exp: Likewise.
* gdb.disasm/h8300s.exp: Likewise.
* gdb.disasm/mn10300.exp: Likewise.
* gdb.disasm/sh3.exp: Likewise.
* gdb.disasm/t01_mov.exp: Likewise.
* gdb.disasm/t02_mova.exp: Likewise.
* gdb.disasm/t03_add.exp: Likewise.
* gdb.disasm/t04_sub.exp: Likewise.
* gdb.disasm/t05_cmp.exp: Likewise.
* gdb.disasm/t06_ari2.exp: Likewise.
* gdb.disasm/t07_ari3.exp: Likewise.
* gdb.disasm/t08_or.exp: Likewise.
* gdb.disasm/t09_xor.exp: Likewise.
* gdb.disasm/t10_and.exp: Likewise.
* gdb.disasm/t11_logs.exp: Likewise.
* gdb.disasm/t12_bit.exp: Likewise.
* gdb.disasm/t13_otr.exp: Likewise.
* gdb.hp/gdb.aCC/optimize.exp: Likewise.
* gdb.hp/gdb.aCC/watch-cmd.exp: Likewise.
* gdb.hp/gdb.base-hp/callfwmall.exp: Likewise.
* gdb.hp/gdb.base-hp/dollar.exp: Likewise.
* gdb.hp/gdb.base-hp/hwwatchbus.exp: Likewise.
* gdb.hp/gdb.base-hp/pxdb.exp: Likewise.
* gdb.hp/gdb.base-hp/reg-pa64.exp: Likewise.
* gdb.hp/gdb.base-hp/reg.exp: Likewise.
* gdb.hp/gdb.base-hp/sized-enum.exp: Likewise.
* gdb.hp/gdb.compat/xdb1.exp: Likewise.
* gdb.hp/gdb.compat/xdb3.exp: Likewise.
* gdb.hp/gdb.objdbg/objdbg01.exp: Likewise.
* gdb.hp/gdb.objdbg/objdbg02.exp: Likewise.
* gdb.hp/gdb.objdbg/objdbg03.exp: Likewise.
* gdb.hp/gdb.objdbg/objdbg04.exp: Likewise.
* gdb.mi/gdb701.exp: Likewise.
* gdb.mi/gdb792.exp: Likewise.
* gdb.mi/mi-basics.exp: Likewise.
* gdb.mi/mi-break.exp: Likewise.
* gdb.mi/mi-cli.exp: Likewise.
* gdb.mi/mi-console.exp: Likewise.
* gdb.mi/mi-disassemble.exp: Likewise.
* gdb.mi/mi-eval.exp: Likewise.
* gdb.mi/mi-file.exp: Likewise.
* gdb.mi/mi-read-memory.exp: Likewise.
* gdb.mi/mi-regs.exp: Likewise.
* gdb.mi/mi-return.exp: Likewise.
* gdb.mi/mi-simplerun.exp: Likewise.
* gdb.mi/mi-stack.exp: Likewise.
* gdb.mi/mi-stepi.exp: Likewise.
* gdb.mi/mi-syn-frame.exp: Likewise.
* gdb.mi/mi-until.exp: Likewise.
* gdb.mi/mi-var-block.exp: Likewise.
* gdb.mi/mi-var-child.exp: Likewise.
* gdb.mi/mi-var-cmd.exp: Likewise.
* gdb.mi/mi-var-display.exp: Likewise.
* gdb.mi/mi-watch.exp: Likewise.
* gdb.mi/mi2-basics.exp: Likewise.
* gdb.mi/mi2-break.exp: Likewise.
* gdb.mi/mi2-cli.exp: Likewise.
* gdb.mi/mi2-console.exp: Likewise.
* gdb.mi/mi2-disassemble.exp: Likewise.
* gdb.mi/mi2-eval.exp: Likewise.
* gdb.mi/mi2-file.exp: Likewise.
* gdb.mi/mi2-read-memory.exp: Likewise.
* gdb.mi/mi2-regs.exp: Likewise.
* gdb.mi/mi2-return.exp: Likewise.
* gdb.mi/mi2-simplerun.exp: Likewise.
* gdb.mi/mi2-stack.exp: Likewise.
* gdb.mi/mi2-stepi.exp: Likewise.
* gdb.mi/mi2-syn-frame.exp: Likewise.
* gdb.mi/mi2-until.exp: Likewise.
* gdb.mi/mi2-var-block.exp: Likewise.
* gdb.mi/mi2-var-child.exp: Likewise.
* gdb.mi/mi2-var-cmd.exp: Likewise.
* gdb.mi/mi2-var-display.exp: Likewise.
* gdb.mi/mi2-watch.exp: Likewise.
* gdb.stabs/exclfwd.exp: Likewise.
* gdb.stabs/weird.exp: Likewise.
* gdb.threads/gcore-thread.exp: Likewise.
* gdb.trace/actions.exp: Likewise.
* gdb.trace/backtrace.exp: Likewise.
* gdb.trace/circ.exp: Likewise.
* gdb.trace/collection.exp: Likewise.
* gdb.trace/deltrace.exp: Likewise.
* gdb.trace/infotrace.exp: Likewise.
* gdb.trace/limits.exp: Likewise.
* gdb.trace/packetlen.exp: Likewise.
* gdb.trace/passc-dyn.exp: Likewise.
* gdb.trace/passcount.exp: Likewise.
* gdb.trace/report.exp: Likewise.
* gdb.trace/save-trace.exp: Likewise.
* gdb.trace/tfind.exp: Likewise.
* gdb.trace/tracecmd.exp: Likewise.
* gdb.trace/while-dyn.exp: Likewise.
* gdb.trace/while-stepping.exp: Likewise.
2006-08-10 05:27:22 +00:00
Joel Brobecker
f4b618d163
* gdb.base/step-bt.c: New file.
...
* gdb.base/step-bt.exp: New testcase.
2006-08-08 21:50:54 +00:00
Daniel Jacobowitz
3d00d119d3
gdb/
...
* symfile.c (download_write_size): Remove.
(show_download_write_size): Remove.
(load_section_callback): Don't use download_write_size.
(_initialize_symfile): Don't register download_write_size.
* NEWS: Mention 'download-write-size' removal.
gdb/doc/
* gdb.texinfo (Target Commands): Remove
'set download-write-size' and 'show download-write-size'.
gdb/testsuite/
* config/monitor.exp (gdb_load): Remove support for obsolete
download-write-size.
* gdb.base/remote.exp: Likewise. Update all callers of
gdb_timed_load.
2006-08-08 15:48:08 +00:00
Daniel Jacobowitz
017b5bd423
* cursal.exp: Pass binfile to gdb_load.
2006-08-02 22:30:20 +00:00
Daniel Jacobowitz
837c599de6
* gdb.base/cursal.exp: Add "" to gdb_load call.
2006-08-01 22:57:49 +00:00
Daniel Jacobowitz
4c42eaff63
gdb/
...
* corefile.c (reopen_exec_file): Only check for an open exec file.
Use exec_file_attach.
* exec.c (exec_open): Make static.
(exec_file_command): Don't use target_preopen. Query directly about
changing the file.
* gdbcore.h (exec_open): Remove prototype.
gdb/testsuite/
* gdb.base/completion.exp: Update for change in "file" behavior.
* gdb.stabs/weird.exp: Likewise.
* lib/mi-support.exp (mi_gdb_file_cmd): Likewise.
* lib/gdb.exp (gdb_file_cmd): Likewise. Kill the program explicitly.
2006-07-24 20:38:08 +00:00
Nathan Sidwell
0155cc767d
* gdb.base/auxv.exp: Skip on non-linux, non-solaris targets.
...
* gdb.base/cursal.exp: Use gdb_file_cmd first, then separate gdb_load.
2006-07-24 14:20:50 +00:00
Andrew Stubbs
16026cd75d
2006-07-21 Andrew Stubbs <andrew.stubbs@st.com>
...
* cli/cli-cmds.c (source_verbose, trace_commands): New variables.
(source_script): New function.
(source_verbose_cleanup): New function.
(source_command): Move old contents to source_script.
Make function static. Parse -v option and call source_script.
(init_cli_cmds): Update source command help.
Add 'set trace-commands' command.
* cli/cli-script.c (command_next_depth): New static variable.
(suppress_next_print_command_trace): New static variable.
(reset_command_nest_depth): New function.
(print_command_trace): New function.
(execute_control_command): Split the continue_control and break_control
cases, add calls to print_command_trace and count the nest depth.
(while_command): Set suppress_next_print_command_trace.
(if_command): Likewise.
* top.c (execute_command): Call print_command_trace.
* cli/cli-cmds.h (source_verbose, trace_commands): New extern variables.
(source_command): Change to source_script.
* main.c (captued_main): Use source_script instead of source_command.
* top.h (source_command): Change to source_script.
* event-top.c (display_gdb_prompt): Call reset_command_nest_depth.
* cli/cli-script.h (print_command_trace): Export.
(reset_command_nest_depth): Likewise.
docs/
* gdb.texinfo (Optional warnings and messages): Add
'set/show trace-commands'.
(Command files): Add '-v' to source command.
testsuite/
* gdb.base/default.exp: Update source command error message.
* gdb.base/help.exp: Update 'help source' message.
2006-07-21 14:46:56 +00:00
Andrew Stubbs
6d7fd486d7
2006-07-19 Andrew Stubbs <andrew.stubbs@st.com>
...
* gdb.base/ifelse.exp: Remove troublesome 'got here' messages.
2006-07-19 13:05:21 +00:00
Mark Kettenis
267a692b80
* gdb.base/long_long.exp (gdb_test_long_long): Exclude
...
*-*-openbsd* from targets for wich we expect ARM FPA floating
point format.
2006-07-17 22:10:03 +00:00
Nick Roberts
616f635db8
Expect frame-begin annotation.
2006-07-17 07:29:47 +00:00
Joel Brobecker
85b4c6e892
* gdb.base/help.exp: Adjust "help unset" test to accept
...
any list of unset commands.
2006-07-14 22:53:19 +00:00
Andrew Stubbs
40d2e0e326
2006-07-07 Andrew Stubbs <andrew.stubbs@st.com>
...
* gdb.base/ifelse.exp: New file.
2006-07-07 12:53:47 +00:00
Nathan Sidwell
f6c957d29d
* gdb.base/huge.c: Allow CRASH_GDB to be set from command
...
line.
* gdb.base/huge.exp: Loop over compilation to find a size that
is acceptable.
* gdb.base/remote.exp: Correct expected strings.
* gdb.dwarf2/mac-fileno.S: Avoid # comments.
2006-07-04 09:40:28 +00:00
Daniel Jacobowitz
b9c5a23d0d
* gdb.base/store.exp: Don't use gdb_suppress_entire_file.
2006-06-22 19:57:02 +00:00
Daniel Jacobowitz
9af2e58deb
* gdb.base/gdb1555.exp: Use gdb_compile_shlib. Skip if not
...
native.
2006-06-22 19:53:46 +00:00
Daniel Jacobowitz
aa32fa1d64
* auxv.exp: Intercept undefined command messages before
...
gdb_test_multiple does.
2006-06-22 19:32:41 +00:00
Nathan Sidwell
5600ea19e0
gdb/
...
* remote-file.io.c (remote_fileio_func_system): Treat zero length
string as NULL. Adjust for NULL pointer argument.
* doc/gdb.texinfo (system): Document behaviour with zero length
string.
gdb/testsuite/
* gdb.base/fileio.c: Add system(NULL) test.
* gdb.base/fileio.exp: Check it.
2006-06-13 08:55:22 +00:00
Nathan Sidwell
e1c2defab5
* gdb.base/break.c: Add 10a breakpoint at }
...
* gdb.base/break.exp: Add test for breakpoint at }
* gdb.cp/anon-union.cc: Add code at end of function.
* gdb.cp/anon-union.exp: Adjust end of function breakpoint.
* gdb.mi/var-cmd.c: Add code at end of function.
* gdb.mi/mi-var-display.exp: Adjust end of next.
* gdb.mi/mi2-var-display.exp: Likewise.
* gdb.base/fileio.c: Add stop function and insert calls at
stopping places.
* gdb.base/fileio.exp: Breakpoint stop function and remove
explicit line number references.
2006-06-13 08:46:17 +00:00
Joel Brobecker
6c0112ecf2
* gdb.base/del.exp (test_delete_alias): New function.
...
Now check that both "del" and "d" work as aliases for "delete".
2006-05-20 01:35:27 +00:00
Fred Fish
154189a4a5
Reviewed and approved by Daniel Jacobowitz <drow@false.org>
...
2006-05-18 Fred Fish <fnf@specifix.com>
* gdb.base/a2-run.exp: Allow part of test to run when args aren't
required. Check for spurious output after program exits normally.
2006-05-18 19:34:01 +00:00
Fred Fish
582e64c29d
Suggested, reviewed, and approved by Daniel Jacobowitz <drow@false.org>
...
2006-05-17 Fred Fish <fnf@specifix.com>
* gdb.base/relocate.exp: Use gdb_file_cmd rather than
gdb_load, so it works in the simulator.
2006-05-17 23:59:40 +00:00
Fred Fish
8ef6493a1d
Reviewed and approved by Daniel Jacobowitz <drow@false.org>
...
2006-05-11 Fred Fish <fnf@specifix.com>
* gdb.base/bang.exp: Ignore unexpected output between the
"program exited normally" and the gdb prompt, as many other
tests do.
2006-05-11 13:09:58 +00:00