]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Fix whitespace issues
authorTom de Vries <tdevries@suse.de>
Sun, 23 Nov 2025 11:55:16 +0000 (12:55 +0100)
committerTom de Vries <tdevries@suse.de>
Sun, 23 Nov 2025 11:55:16 +0000 (12:55 +0100)
This is the result of:
...
$ git rm -rf gdb/testsuite
$ git commit -a -m tmp
$ git revert HEAD
$ git rebase --whitespace=fix HEAD^
...

Tested on x86_64-linux.

PR build/33616
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33616

755 files changed:
gdb/testsuite/ChangeLog-1993-2013
gdb/testsuite/config/dve.exp
gdb/testsuite/config/m32r.exp
gdb/testsuite/config/mn10300-eval.exp
gdb/testsuite/config/sid.exp
gdb/testsuite/gdb.ada/O2_float_param/caller.adb
gdb/testsuite/gdb.ada/O2_float_param/caller.ads
gdb/testsuite/gdb.ada/access_tagged_param.exp
gdb/testsuite/gdb.ada/addr_arith.exp
gdb/testsuite/gdb.ada/aliased_array.exp
gdb/testsuite/gdb.ada/aliased_array/foo.adb
gdb/testsuite/gdb.ada/array_bounds.exp
gdb/testsuite/gdb.ada/array_bounds/bar.adb
gdb/testsuite/gdb.ada/array_char_idx.exp
gdb/testsuite/gdb.ada/array_return.exp
gdb/testsuite/gdb.ada/array_return/pck.ads
gdb/testsuite/gdb.ada/array_subscript_addr.exp
gdb/testsuite/gdb.ada/array_subscript_addr/p.adb
gdb/testsuite/gdb.ada/arraydim.exp
gdb/testsuite/gdb.ada/arraydim/pck.adb
gdb/testsuite/gdb.ada/arraydim/pck.ads
gdb/testsuite/gdb.ada/arrayidx.exp
gdb/testsuite/gdb.ada/arrayparam/foo.adb
gdb/testsuite/gdb.ada/arrayparam/pck.adb
gdb/testsuite/gdb.ada/arrayparam/pck.ads
gdb/testsuite/gdb.ada/assign_1.exp
gdb/testsuite/gdb.ada/assign_arr.exp
gdb/testsuite/gdb.ada/atomic_enum.exp
gdb/testsuite/gdb.ada/attr_ref_and_charlit.exp
gdb/testsuite/gdb.ada/bad-task-bp-keyword.exp
gdb/testsuite/gdb.ada/big_packed_array.exp
gdb/testsuite/gdb.ada/boolean_expr.exp
gdb/testsuite/gdb.ada/bp_c_mixed_case.exp
gdb/testsuite/gdb.ada/bp_enum_homonym.exp
gdb/testsuite/gdb.ada/bp_enum_homonym/p.adb
gdb/testsuite/gdb.ada/bp_fun_addr.exp
gdb/testsuite/gdb.ada/bp_inlined_func.exp
gdb/testsuite/gdb.ada/bp_on_var.exp
gdb/testsuite/gdb.ada/bp_on_var/pck.adb
gdb/testsuite/gdb.ada/bp_on_var/pck.ads
gdb/testsuite/gdb.ada/bp_range_type.exp
gdb/testsuite/gdb.ada/bp_reset.exp
gdb/testsuite/gdb.ada/byte_packed_arr.exp
gdb/testsuite/gdb.ada/call_pn/foo.adb
gdb/testsuite/gdb.ada/call_pn/pck.adb
gdb/testsuite/gdb.ada/call_pn/pck.ads
gdb/testsuite/gdb.ada/catch_assert_if.exp
gdb/testsuite/gdb.ada/catch_assert_if/pck.ads
gdb/testsuite/gdb.ada/catch_ex.exp
gdb/testsuite/gdb.ada/char_enum/pck.adb
gdb/testsuite/gdb.ada/char_enum/pck.ads
gdb/testsuite/gdb.ada/char_param.exp
gdb/testsuite/gdb.ada/char_param/foo.adb
gdb/testsuite/gdb.ada/complete.exp
gdb/testsuite/gdb.ada/complete/foo.adb
gdb/testsuite/gdb.ada/cond_lang.exp
gdb/testsuite/gdb.ada/cond_lang/foo.c
gdb/testsuite/gdb.ada/disc_arr_bound.exp
gdb/testsuite/gdb.ada/dot_all/pck.adb
gdb/testsuite/gdb.ada/dot_all/pck.ads
gdb/testsuite/gdb.ada/dyn_arrayidx.exp
gdb/testsuite/gdb.ada/dyn_loc.exp
gdb/testsuite/gdb.ada/dyn_stride.exp
gdb/testsuite/gdb.ada/excep_handle.exp
gdb/testsuite/gdb.ada/exec_changed.exp
gdb/testsuite/gdb.ada/expr_delims.exp
gdb/testsuite/gdb.ada/expr_with_funcall/expr_r821_013.adb
gdb/testsuite/gdb.ada/fin_fun_out.exp
gdb/testsuite/gdb.ada/finish-var-size.exp
gdb/testsuite/gdb.ada/fixed_cmp.exp
gdb/testsuite/gdb.ada/fixed_points/pck.adb
gdb/testsuite/gdb.ada/fixed_points/pck.ads
gdb/testsuite/gdb.ada/fixed_points_function.exp
gdb/testsuite/gdb.ada/float_param.exp
gdb/testsuite/gdb.ada/formatted_ref.exp
gdb/testsuite/gdb.ada/frame_args.exp
gdb/testsuite/gdb.ada/frame_args/pck.adb
gdb/testsuite/gdb.ada/frame_args/pck.ads
gdb/testsuite/gdb.ada/fullname_bp.exp
gdb/testsuite/gdb.ada/fullname_bp/pck.adb
gdb/testsuite/gdb.ada/fullname_bp/pck.ads
gdb/testsuite/gdb.ada/fun_addr.exp
gdb/testsuite/gdb.ada/fun_in_declare.exp
gdb/testsuite/gdb.ada/fun_overload_menu.exp
gdb/testsuite/gdb.ada/fun_renaming.exp
gdb/testsuite/gdb.ada/funcall_param.exp
gdb/testsuite/gdb.ada/funcall_ptr.exp
gdb/testsuite/gdb.ada/homonym.exp
gdb/testsuite/gdb.ada/info_addr_mixed_case/pck.adb
gdb/testsuite/gdb.ada/info_addr_mixed_case/pck.ads
gdb/testsuite/gdb.ada/info_auto_lang.exp
gdb/testsuite/gdb.ada/info_exc.exp
gdb/testsuite/gdb.ada/info_locals_renaming.exp
gdb/testsuite/gdb.ada/info_types.c
gdb/testsuite/gdb.ada/info_types.exp
gdb/testsuite/gdb.ada/int_deref.exp
gdb/testsuite/gdb.ada/interface.exp
gdb/testsuite/gdb.ada/interface/foo.adb
gdb/testsuite/gdb.ada/interface/types.adb
gdb/testsuite/gdb.ada/interface/types.ads
gdb/testsuite/gdb.ada/iwide.exp
gdb/testsuite/gdb.ada/lang_switch.exp
gdb/testsuite/gdb.ada/limited-length/foo.adb
gdb/testsuite/gdb.ada/mi_catch_assert.exp
gdb/testsuite/gdb.ada/mi_catch_assert/pck.ads
gdb/testsuite/gdb.ada/mi_catch_ex.exp
gdb/testsuite/gdb.ada/mi_catch_ex_hand.exp
gdb/testsuite/gdb.ada/mi_dyn_arr/foo.adb
gdb/testsuite/gdb.ada/mi_ex_cond.exp
gdb/testsuite/gdb.ada/mi_exc_info.exp
gdb/testsuite/gdb.ada/mi_task_info.exp
gdb/testsuite/gdb.ada/minsyms.exp
gdb/testsuite/gdb.ada/mod_from_name/foo.adb
gdb/testsuite/gdb.ada/n_arr_bound.exp
gdb/testsuite/gdb.ada/nested.exp
gdb/testsuite/gdb.ada/notcplusplus.exp
gdb/testsuite/gdb.ada/null_array.exp
gdb/testsuite/gdb.ada/null_record.exp
gdb/testsuite/gdb.ada/null_record/null_record.adb
gdb/testsuite/gdb.ada/operator_bp.exp
gdb/testsuite/gdb.ada/operator_bp/ops.adb
gdb/testsuite/gdb.ada/operator_bp/ops.ads
gdb/testsuite/gdb.ada/optim_drec.exp
gdb/testsuite/gdb.ada/pckd_arr_ren/foo.adb
gdb/testsuite/gdb.ada/pckd_neg.exp
gdb/testsuite/gdb.ada/pkd_arr_elem.exp
gdb/testsuite/gdb.ada/pkd_arr_elem/failure.adb
gdb/testsuite/gdb.ada/pp-rec-component.exp
gdb/testsuite/gdb.ada/print_chars.exp
gdb/testsuite/gdb.ada/print_pc.exp
gdb/testsuite/gdb.ada/ptr_typedef.exp
gdb/testsuite/gdb.ada/ptype_arith_binop.exp
gdb/testsuite/gdb.ada/ptype_array/pck.adb
gdb/testsuite/gdb.ada/ptype_field.exp
gdb/testsuite/gdb.ada/ptype_tagged_param/pck.adb
gdb/testsuite/gdb.ada/ptype_tagged_param/pck.ads
gdb/testsuite/gdb.ada/py_range.exp
gdb/testsuite/gdb.ada/rdv_wait.exp
gdb/testsuite/gdb.ada/rec_comp/bar_o203_012.adb
gdb/testsuite/gdb.ada/rec_return.exp
gdb/testsuite/gdb.ada/rec_return/foo.adb
gdb/testsuite/gdb.ada/rec_return/pck.adb
gdb/testsuite/gdb.ada/rec_return/pck.ads
gdb/testsuite/gdb.ada/ref_param.exp
gdb/testsuite/gdb.ada/ref_tick_size.exp
gdb/testsuite/gdb.ada/ref_tick_size/p.adb
gdb/testsuite/gdb.ada/rename_subscript_param.exp
gdb/testsuite/gdb.ada/repeat_dyn.exp
gdb/testsuite/gdb.ada/same_enum/pck.adb
gdb/testsuite/gdb.ada/same_enum/pck.ads
gdb/testsuite/gdb.ada/scoped_watch.exp
gdb/testsuite/gdb.ada/set_pckd_arr_elt.exp
gdb/testsuite/gdb.ada/set_wstr.exp
gdb/testsuite/gdb.ada/small_reg_param.exp
gdb/testsuite/gdb.ada/start.exp
gdb/testsuite/gdb.ada/str_binop_equal.exp
gdb/testsuite/gdb.ada/str_binop_equal/pck.adb
gdb/testsuite/gdb.ada/str_ref_cmp.exp
gdb/testsuite/gdb.ada/sym_print_name.exp
gdb/testsuite/gdb.ada/taft_type.exp
gdb/testsuite/gdb.ada/taft_type/p.adb
gdb/testsuite/gdb.ada/tagged.exp
gdb/testsuite/gdb.ada/tagged/pck.adb
gdb/testsuite/gdb.ada/tagged/pck.ads
gdb/testsuite/gdb.ada/tagged_not_init.exp
gdb/testsuite/gdb.ada/task_bp.exp
gdb/testsuite/gdb.ada/task_switch_in_core.exp
gdb/testsuite/gdb.ada/tasks.exp
gdb/testsuite/gdb.ada/tick_last_segv.exp
gdb/testsuite/gdb.ada/tick_length_array_enum_idx/pck.adb
gdb/testsuite/gdb.ada/tick_length_array_enum_idx/pck.ads
gdb/testsuite/gdb.ada/type_coercion.exp
gdb/testsuite/gdb.ada/unc_arr_ptr_in_var_rec/foo.adb
gdb/testsuite/gdb.ada/uninitialized_vars.exp
gdb/testsuite/gdb.ada/var_arr_attrs/foo_o115_002.adb
gdb/testsuite/gdb.ada/var_arr_typedef.exp
gdb/testsuite/gdb.ada/vla.exp
gdb/testsuite/gdb.ada/watch_arg.exp
gdb/testsuite/gdb.ada/watch_arg/watch.adb
gdb/testsuite/gdb.ada/watch_minus_l.exp
gdb/testsuite/gdb.ada/whatis_array_val.exp
gdb/testsuite/gdb.ada/whatis_array_val/foo.adb
gdb/testsuite/gdb.ada/win_fu_syms.exp
gdb/testsuite/gdb.arch/aarch64-atomic-inst.c
gdb/testsuite/gdb.arch/aarch64-dbreg-contents.c
gdb/testsuite/gdb.arch/aarch64-dbreg-contents.exp
gdb/testsuite/gdb.arch/aarch64-fp.c
gdb/testsuite/gdb.arch/alpha-step.c
gdb/testsuite/gdb.arch/alpha-step.exp
gdb/testsuite/gdb.arch/altivec-abi.c
gdb/testsuite/gdb.arch/altivec-regs.exp
gdb/testsuite/gdb.arch/amd64-gs_base.exp
gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp
gdb/testsuite/gdb.arch/arc-analyze-prologue.exp
gdb/testsuite/gdb.arch/arc-decode-insn.exp
gdb/testsuite/gdb.arch/arm-disassembler-options.exp
gdb/testsuite/gdb.arch/arm-disp-step.exp
gdb/testsuite/gdb.arch/e500-abi.c
gdb/testsuite/gdb.arch/e500-prologue.exp
gdb/testsuite/gdb.arch/e500-regs.exp
gdb/testsuite/gdb.arch/i386-avx.exp
gdb/testsuite/gdb.arch/i386-avx512.exp
gdb/testsuite/gdb.arch/i386-gnu-cfi-asm.S
gdb/testsuite/gdb.arch/i386-gnu-cfi.exp
gdb/testsuite/gdb.arch/i386-pkru.c
gdb/testsuite/gdb.arch/i386-pkru.exp
gdb/testsuite/gdb.arch/i386-prologue.c
gdb/testsuite/gdb.arch/i386-prologue.exp
gdb/testsuite/gdb.arch/i386-sse.c
gdb/testsuite/gdb.arch/i386-sse.exp
gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.exp
gdb/testsuite/gdb.arch/insn-reloc.c
gdb/testsuite/gdb.arch/mips-fpregset-core.c
gdb/testsuite/gdb.arch/mips-fpregset-core.exp
gdb/testsuite/gdb.arch/pa-nullify.exp
gdb/testsuite/gdb.arch/powerpc-addpcis.exp
gdb/testsuite/gdb.arch/powerpc-aix-prologue.exp
gdb/testsuite/gdb.arch/powerpc-disassembler-options.exp
gdb/testsuite/gdb.arch/powerpc-htm-regs.exp
gdb/testsuite/gdb.arch/powerpc-lnia.exp
gdb/testsuite/gdb.arch/powerpc-plxv-nonrel.exp
gdb/testsuite/gdb.arch/powerpc-prologue-frame.exp
gdb/testsuite/gdb.arch/powerpc-trap.exp
gdb/testsuite/gdb.arch/powerpc64-prologue.exp
gdb/testsuite/gdb.arch/ppc-longdouble.exp
gdb/testsuite/gdb.arch/ppc64-isa207-atomic-inst.c
gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw.c
gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw.exp
gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-mv.c
gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-mv.exp
gdb/testsuite/gdb.arch/sparc64-adi.c
gdb/testsuite/gdb.arch/sparc64-adi.exp
gdb/testsuite/gdb.arch/sparc64-regs.exp
gdb/testsuite/gdb.arch/thumb-singlestep.exp
gdb/testsuite/gdb.arch/vsx-regs.exp
gdb/testsuite/gdb.arch/vsx-vsr-float28.exp
gdb/testsuite/gdb.asm/aarch64.inc
gdb/testsuite/gdb.asm/arm.inc
gdb/testsuite/gdb.asm/asm-source.exp
gdb/testsuite/gdb.asm/iq2000.inc
gdb/testsuite/gdb.asm/m32c.inc
gdb/testsuite/gdb.asm/openbsd.inc
gdb/testsuite/gdb.asm/pa64.inc
gdb/testsuite/gdb.asm/s390.inc
gdb/testsuite/gdb.asm/s390x.inc
gdb/testsuite/gdb.asm/sparc.inc
gdb/testsuite/gdb.asm/sparc64.inc
gdb/testsuite/gdb.asm/v850.inc
gdb/testsuite/gdb.asm/xstormy16.inc
gdb/testsuite/gdb.base/advance.c
gdb/testsuite/gdb.base/advance.exp
gdb/testsuite/gdb.base/all-bin.exp
gdb/testsuite/gdb.base/annota1.c
gdb/testsuite/gdb.base/annota1.exp
gdb/testsuite/gdb.base/annota3.c
gdb/testsuite/gdb.base/annota3.exp
gdb/testsuite/gdb.base/arrayidx.exp
gdb/testsuite/gdb.base/async.exp
gdb/testsuite/gdb.base/attach2.c
gdb/testsuite/gdb.base/attach3.c
gdb/testsuite/gdb.base/auto-connect-native-target.c
gdb/testsuite/gdb.base/average.c
gdb/testsuite/gdb.base/bfd-errors.exp
gdb/testsuite/gdb.base/bitfields2.exp
gdb/testsuite/gdb.base/bitops.exp
gdb/testsuite/gdb.base/bp-permanent.exp
gdb/testsuite/gdb.base/break-fun-addr.exp
gdb/testsuite/gdb.base/break-inline.c
gdb/testsuite/gdb.base/break-inline.exp
gdb/testsuite/gdb.base/break-interp.exp
gdb/testsuite/gdb.base/breakpoint-shadow.exp
gdb/testsuite/gdb.base/c-linkage-name.exp
gdb/testsuite/gdb.base/call-ar-st.c
gdb/testsuite/gdb.base/call-rt-st.c
gdb/testsuite/gdb.base/call-rt-st.exp
gdb/testsuite/gdb.base/call-sc.exp
gdb/testsuite/gdb.base/call-strs.c
gdb/testsuite/gdb.base/call-strs.exp
gdb/testsuite/gdb.base/callfuncs.c
gdb/testsuite/gdb.base/callfuncs.exp
gdb/testsuite/gdb.base/catch-signal-fork.c
gdb/testsuite/gdb.base/catch-signal.c
gdb/testsuite/gdb.base/catch-signal.exp
gdb/testsuite/gdb.base/charset.c
gdb/testsuite/gdb.base/charset.exp
gdb/testsuite/gdb.base/chng-syms.c
gdb/testsuite/gdb.base/clear_non_user_bp.exp
gdb/testsuite/gdb.base/code-expr.exp
gdb/testsuite/gdb.base/commands.exp
gdb/testsuite/gdb.base/completion.exp
gdb/testsuite/gdb.base/comprdebug.exp
gdb/testsuite/gdb.base/cond-expr.exp
gdb/testsuite/gdb.base/consecutive.exp
gdb/testsuite/gdb.base/coredump-filter.exp
gdb/testsuite/gdb.base/coremaker.c
gdb/testsuite/gdb.base/coremaker2.c
gdb/testsuite/gdb.base/ctf-ptype.exp
gdb/testsuite/gdb.base/ctxobj-m.c
gdb/testsuite/gdb.base/ctxobj.exp
gdb/testsuite/gdb.base/dcache-line-read-error.c
gdb/testsuite/gdb.base/define-prefix.exp
gdb/testsuite/gdb.base/define.exp
gdb/testsuite/gdb.base/del.exp
gdb/testsuite/gdb.base/dfp-exprs.exp
gdb/testsuite/gdb.base/dfp-test.c
gdb/testsuite/gdb.base/disasm-end-cu.exp
gdb/testsuite/gdb.base/display.c
gdb/testsuite/gdb.base/dlmopen-ns-ids.exp
gdb/testsuite/gdb.base/dmsym.exp
gdb/testsuite/gdb.base/dmsym_main.c
gdb/testsuite/gdb.base/dprintf-pending.exp
gdb/testsuite/gdb.base/dtrace-probe.exp
gdb/testsuite/gdb.base/empty_exe.exp
gdb/testsuite/gdb.base/ena-dis-br.exp
gdb/testsuite/gdb.base/ending-run.c
gdb/testsuite/gdb.base/ending-run.exp
gdb/testsuite/gdb.base/enum_cond.exp
gdb/testsuite/gdb.base/examine-backward.c
gdb/testsuite/gdb.base/examine-backward.exp
gdb/testsuite/gdb.base/exe-lock.exp
gdb/testsuite/gdb.base/expand-psymtabs.exp
gdb/testsuite/gdb.base/fileio.c
gdb/testsuite/gdb.base/finish.exp
gdb/testsuite/gdb.base/float.exp
gdb/testsuite/gdb.base/foll-exec.exp.tcl
gdb/testsuite/gdb.base/frame-args.exp
gdb/testsuite/gdb.base/frame-selection.exp
gdb/testsuite/gdb.base/freebpcmd.exp
gdb/testsuite/gdb.base/funcargs.c
gdb/testsuite/gdb.base/gcorebg.exp
gdb/testsuite/gdb.base/gdb1056.exp
gdb/testsuite/gdb.base/gdb11530.c
gdb/testsuite/gdb.base/gdb11530.exp
gdb/testsuite/gdb.base/gdb11531.c
gdb/testsuite/gdb.base/gdb11531.exp
gdb/testsuite/gdb.base/gdb1555.c
gdb/testsuite/gdb.base/gdb1555.exp
gdb/testsuite/gdb.base/gdb1821.exp
gdb/testsuite/gdb.base/gdbhistsize-history.exp
gdb/testsuite/gdb.base/gdbinit-history.exp
gdb/testsuite/gdb.base/grbx.c
gdb/testsuite/gdb.base/index-cache.c
gdb/testsuite/gdb.base/index-cache.exp
gdb/testsuite/gdb.base/infcall-nested-structs.exp.tcl
gdb/testsuite/gdb.base/info-macros.c
gdb/testsuite/gdb.base/info-target.exp
gdb/testsuite/gdb.base/info_sources_base.c
gdb/testsuite/gdb.base/infoline.exp
gdb/testsuite/gdb.base/int-type.c
gdb/testsuite/gdb.base/interact.exp
gdb/testsuite/gdb.base/interrupt.exp
gdb/testsuite/gdb.base/jit-elf-util.h
gdb/testsuite/gdb.base/jit-protocol.h
gdb/testsuite/gdb.base/jit-reader.c
gdb/testsuite/gdb.base/killed-outside.exp
gdb/testsuite/gdb.base/label.c
gdb/testsuite/gdb.base/langs1.c
gdb/testsuite/gdb.base/large-frame.exp
gdb/testsuite/gdb.base/ldbl_e308.exp
gdb/testsuite/gdb.base/line65535.exp
gdb/testsuite/gdb.base/lineinc.exp
gdb/testsuite/gdb.base/list-missing-source.exp
gdb/testsuite/gdb.base/long-inferior-output.exp
gdb/testsuite/gdb.base/m32r.ld
gdb/testsuite/gdb.base/macscp.exp
gdb/testsuite/gdb.base/maint.exp
gdb/testsuite/gdb.base/max-depth.c
gdb/testsuite/gdb.base/miscexprs.exp
gdb/testsuite/gdb.base/morestack.c
gdb/testsuite/gdb.base/nested-subp1.exp
gdb/testsuite/gdb.base/nested-subp2.exp
gdb/testsuite/gdb.base/nested-subp3.exp
gdb/testsuite/gdb.base/nofield.c
gdb/testsuite/gdb.base/nofield.exp
gdb/testsuite/gdb.base/opaque.exp
gdb/testsuite/gdb.base/overlays.c
gdb/testsuite/gdb.base/overlays.exp
gdb/testsuite/gdb.base/pie-execl.exp
gdb/testsuite/gdb.base/prelink.exp
gdb/testsuite/gdb.base/printcmds.exp
gdb/testsuite/gdb.base/prologue-include.c
gdb/testsuite/gdb.base/psym-external-decl.c
gdb/testsuite/gdb.base/ptype-offsets.exp
gdb/testsuite/gdb.base/ptype.exp
gdb/testsuite/gdb.base/randomize.exp
gdb/testsuite/gdb.base/readline-commands-eof.exp
gdb/testsuite/gdb.base/readnever.exp
gdb/testsuite/gdb.base/recpar.exp
gdb/testsuite/gdb.base/recurse.exp
gdb/testsuite/gdb.base/relational.exp
gdb/testsuite/gdb.base/relativedebug.exp
gdb/testsuite/gdb.base/restore.c
gdb/testsuite/gdb.base/restore.exp
gdb/testsuite/gdb.base/return2.exp
gdb/testsuite/gdb.base/save-bp.c
gdb/testsuite/gdb.base/sep.c
gdb/testsuite/gdb.base/sep.exp
gdb/testsuite/gdb.base/server-del-break.exp
gdb/testsuite/gdb.base/set-lang-auto.exp
gdb/testsuite/gdb.base/settings.exp
gdb/testsuite/gdb.base/share-psymtabs-bt.exp
gdb/testsuite/gdb.base/shr1.c
gdb/testsuite/gdb.base/sigall.exp
gdb/testsuite/gdb.base/sigchld.exp
gdb/testsuite/gdb.base/signals.exp
gdb/testsuite/gdb.base/signest.exp
gdb/testsuite/gdb.base/skip.exp
gdb/testsuite/gdb.base/solib-abort.c
gdb/testsuite/gdb.base/solib-search.exp
gdb/testsuite/gdb.base/solib-symbol-main.c
gdb/testsuite/gdb.base/solib-vanish.exp
gdb/testsuite/gdb.base/source-dir.exp
gdb/testsuite/gdb.base/source.exp
gdb/testsuite/gdb.base/stack-protector.exp
gdb/testsuite/gdb.base/stap-probe.exp
gdb/testsuite/gdb.base/start-cpp.exp
gdb/testsuite/gdb.base/start.exp
gdb/testsuite/gdb.base/step-bt.exp
gdb/testsuite/gdb.base/step-indirect-call-thunk.exp
gdb/testsuite/gdb.base/step-line.exp
gdb/testsuite/gdb.base/step-line.inp
gdb/testsuite/gdb.base/step-test.c
gdb/testsuite/gdb.base/step-test.exp
gdb/testsuite/gdb.base/store.exp
gdb/testsuite/gdb.base/structs.exp
gdb/testsuite/gdb.base/subst.exp
gdb/testsuite/gdb.base/sum.c
gdb/testsuite/gdb.base/term.exp
gdb/testsuite/gdb.base/testenv.c
gdb/testsuite/gdb.base/until.exp
gdb/testsuite/gdb.base/vla-datatypes.exp
gdb/testsuite/gdb.base/vla-optimized-out.exp
gdb/testsuite/gdb.base/vla-sideeffect.exp
gdb/testsuite/gdb.base/watch_thread_num.c
gdb/testsuite/gdb.base/watch_thread_num.exp
gdb/testsuite/gdb.base/watchpoint.exp
gdb/testsuite/gdb.base/watchpoints.exp
gdb/testsuite/gdb.base/wchar.c
gdb/testsuite/gdb.base/wrong_frame_bt_full.exp
gdb/testsuite/gdb.btrace/cpu.exp
gdb/testsuite/gdb.btrace/enable-running.exp
gdb/testsuite/gdb.btrace/instruction_history.exp
gdb/testsuite/gdb.btrace/multi-thread-step.exp
gdb/testsuite/gdb.btrace/non-stop.exp
gdb/testsuite/gdb.btrace/tsx.exp
gdb/testsuite/gdb.compile/compile-cplus-namespace.cc
gdb/testsuite/gdb.cp/annota2.cc
gdb/testsuite/gdb.cp/annota2.exp
gdb/testsuite/gdb.cp/annota3.cc
gdb/testsuite/gdb.cp/annota3.exp
gdb/testsuite/gdb.cp/baseenum.cc
gdb/testsuite/gdb.cp/baseenum.exp
gdb/testsuite/gdb.cp/classes.exp
gdb/testsuite/gdb.cp/cplabel.cc
gdb/testsuite/gdb.cp/cplusfuncs.exp
gdb/testsuite/gdb.cp/derivation.cc
gdb/testsuite/gdb.cp/derivation.exp
gdb/testsuite/gdb.cp/derivation2.cc
gdb/testsuite/gdb.cp/dispcxx.cc
gdb/testsuite/gdb.cp/formatted-ref.exp
gdb/testsuite/gdb.cp/gdb2384.exp
gdb/testsuite/gdb.cp/koenig.cc
gdb/testsuite/gdb.cp/local.cc
gdb/testsuite/gdb.cp/local.exp
gdb/testsuite/gdb.cp/m-static.h
gdb/testsuite/gdb.cp/maint.exp
gdb/testsuite/gdb.cp/many-args.cc
gdb/testsuite/gdb.cp/mb-ctor.exp
gdb/testsuite/gdb.cp/mb-templates.exp
gdb/testsuite/gdb.cp/method.cc
gdb/testsuite/gdb.cp/method.exp
gdb/testsuite/gdb.cp/method2.exp
gdb/testsuite/gdb.cp/namespace-enum.exp
gdb/testsuite/gdb.cp/nested-types.cc
gdb/testsuite/gdb.cp/nsalias.cc
gdb/testsuite/gdb.cp/nsnoimports.cc
gdb/testsuite/gdb.cp/nsnoimports.exp
gdb/testsuite/gdb.cp/nsusing.cc
gdb/testsuite/gdb.cp/oranking.cc
gdb/testsuite/gdb.cp/overload.cc
gdb/testsuite/gdb.cp/overload.exp
gdb/testsuite/gdb.cp/ovldbreak.cc
gdb/testsuite/gdb.cp/ovldbreak.exp
gdb/testsuite/gdb.cp/ovsrch1.cc
gdb/testsuite/gdb.cp/pass-by-ref.exp
gdb/testsuite/gdb.cp/pr-1210.cc
gdb/testsuite/gdb.cp/pr10687.exp
gdb/testsuite/gdb.cp/pr10728-x.h
gdb/testsuite/gdb.cp/pr9167.cc
gdb/testsuite/gdb.cp/pr9167.exp
gdb/testsuite/gdb.cp/ref-types.exp
gdb/testsuite/gdb.cp/rvalue-ref-types.exp
gdb/testsuite/gdb.cp/shadow.cc
gdb/testsuite/gdb.cp/smartp.cc
gdb/testsuite/gdb.cp/smartp.exp
gdb/testsuite/gdb.cp/static-method.exp
gdb/testsuite/gdb.cp/static-typedef-print.cc
gdb/testsuite/gdb.cp/static-typedef-print.exp
gdb/testsuite/gdb.cp/templates.exp
gdb/testsuite/gdb.cp/typedef-base.exp
gdb/testsuite/gdb.cp/userdef.exp
gdb/testsuite/gdb.cp/virtbase2.exp
gdb/testsuite/gdb.cp/virtfunc.cc
gdb/testsuite/gdb.ctf/ctf-a.h
gdb/testsuite/gdb.ctf/ctf-b.h
gdb/testsuite/gdb.debuginfod/build-id-no-debug-warning.exp
gdb/testsuite/gdb.disasm/sh3.exp
gdb/testsuite/gdb.dlang/circular.c
gdb/testsuite/gdb.dlang/circular.exp
gdb/testsuite/gdb.dlang/watch-loc.exp
gdb/testsuite/gdb.dwarf2/ada-cold-name.exp
gdb/testsuite/gdb.dwarf2/ada-linkage-name.exp
gdb/testsuite/gdb.dwarf2/ada-thick-pointer.exp
gdb/testsuite/gdb.dwarf2/ada-valprint-error.exp
gdb/testsuite/gdb.dwarf2/arr-stride.exp
gdb/testsuite/gdb.dwarf2/arr-subrange.exp
gdb/testsuite/gdb.dwarf2/calling-convention.exp
gdb/testsuite/gdb.dwarf2/data-loc.exp
gdb/testsuite/gdb.dwarf2/dup-psym.S
gdb/testsuite/gdb.dwarf2/dw2-basic.S
gdb/testsuite/gdb.dwarf2/dw2-compdir-oldgcc.S
gdb/testsuite/gdb.dwarf2/dw2-compressed.S
gdb/testsuite/gdb.dwarf2/dw2-const.S
gdb/testsuite/gdb.dwarf2/dw2-fixed-point.exp
gdb/testsuite/gdb.dwarf2/dw2-intercu.S
gdb/testsuite/gdb.dwarf2/dw2-intermix.S
gdb/testsuite/gdb.dwarf2/dw2-line-number-zero.c
gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-inner.S
gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-outer.S
gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap.exp
gdb/testsuite/gdb.dwarf2/dw2-op-out-param.S
gdb/testsuite/gdb.dwarf2/dw2-producer.S
gdb/testsuite/gdb.dwarf2/dw2-ranges-base.c
gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c
gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c
gdb/testsuite/gdb.dwarf2/dw2-ranges-func.exp
gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.exp
gdb/testsuite/gdb.dwarf2/dw2-step-out-of-function-no-stmt.c
gdb/testsuite/gdb.dwarf2/dw2-step-out-of-function-no-stmt.exp
gdb/testsuite/gdb.dwarf2/dw2-unusual-field-names.c
gdb/testsuite/gdb.dwarf2/dw2-using-debug-str.exp
gdb/testsuite/gdb.dwarf2/dw5-rnglist-test.cc
gdb/testsuite/gdb.dwarf2/dw5-rnglist-test.exp
gdb/testsuite/gdb.dwarf2/dyn-type-unallocated.c
gdb/testsuite/gdb.dwarf2/formdata16.exp
gdb/testsuite/gdb.dwarf2/implptrconst.exp
gdb/testsuite/gdb.dwarf2/implptrpiece.exp
gdb/testsuite/gdb.dwarf2/implref-struct.exp
gdb/testsuite/gdb.dwarf2/imported-unit.exp
gdb/testsuite/gdb.dwarf2/locexpr-data-member-location.exp
gdb/testsuite/gdb.dwarf2/mac-fileno.S
gdb/testsuite/gdb.dwarf2/missing-sig-type.exp
gdb/testsuite/gdb.dwarf2/multidictionary.exp
gdb/testsuite/gdb.dwarf2/nostaticblock.exp
gdb/testsuite/gdb.dwarf2/pieces-optimized-out.c
gdb/testsuite/gdb.dwarf2/pieces-optimized-out.exp
gdb/testsuite/gdb.dwarf2/symtab-producer.exp
gdb/testsuite/gdb.dwarf2/template-specification-full-name.exp
gdb/testsuite/gdb.dwarf2/varval.exp
gdb/testsuite/gdb.fortran/array-bounds.f90
gdb/testsuite/gdb.fortran/array-element.exp
gdb/testsuite/gdb.fortran/array-element.f
gdb/testsuite/gdb.fortran/derived-type-function.f90
gdb/testsuite/gdb.fortran/derived-type.exp
gdb/testsuite/gdb.fortran/dot-ops.exp
gdb/testsuite/gdb.fortran/function-calls.exp
gdb/testsuite/gdb.fortran/info-modules.exp
gdb/testsuite/gdb.fortran/namelist.exp
gdb/testsuite/gdb.fortran/nested-funcs.f90
gdb/testsuite/gdb.fortran/oop_extend_type.exp
gdb/testsuite/gdb.fortran/print_type.exp
gdb/testsuite/gdb.fortran/ptr-indentation.exp
gdb/testsuite/gdb.fortran/subarray.f
gdb/testsuite/gdb.fortran/vla-type.exp
gdb/testsuite/gdb.fortran/vla-value-sub-finish.exp
gdb/testsuite/gdb.fortran/whatis_type.exp
gdb/testsuite/gdb.guile/scm-pretty-print.scm
gdb/testsuite/gdb.guile/scm-value.exp
gdb/testsuite/gdb.linespec/break-asm-file.exp
gdb/testsuite/gdb.linespec/linespec.exp
gdb/testsuite/gdb.linespec/ls-errs.exp
gdb/testsuite/gdb.mi/ChangeLog-1999-2003
gdb/testsuite/gdb.mi/gdb669.exp
gdb/testsuite/gdb.mi/interrupt-thread-group.c
gdb/testsuite/gdb.mi/list-thread-groups-no-inferior.exp
gdb/testsuite/gdb.mi/mi-basics.exp
gdb/testsuite/gdb.mi/mi-breakpoint-script.exp
gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.cc
gdb/testsuite/gdb.mi/mi-complete.exp
gdb/testsuite/gdb.mi/mi-disassemble.exp
gdb/testsuite/gdb.mi/mi-file.exp
gdb/testsuite/gdb.mi/mi-i-cmd.exp
gdb/testsuite/gdb.mi/mi-language.exp
gdb/testsuite/gdb.mi/mi-nonstop-exit.exp
gdb/testsuite/gdb.mi/mi-pthreads.exp
gdb/testsuite/gdb.mi/mi-reverse.exp
gdb/testsuite/gdb.mi/mi-simplerun.exp
gdb/testsuite/gdb.mi/mi-start.exp
gdb/testsuite/gdb.mi/mi-stepi.exp
gdb/testsuite/gdb.mi/mi-syn-frame.c
gdb/testsuite/gdb.mi/mi-undefined-cmd.exp
gdb/testsuite/gdb.mi/mi-until.exp
gdb/testsuite/gdb.mi/mi-var-child.c
gdb/testsuite/gdb.mi/mi-var-child.exp
gdb/testsuite/gdb.mi/mi-var-cmd.exp
gdb/testsuite/gdb.mi/mi-var-cp.cc
gdb/testsuite/gdb.mi/mi-var-cp.exp
gdb/testsuite/gdb.mi/mi-var-display.exp
gdb/testsuite/gdb.mi/mi-var-list-children-invalid-grandchild.exp
gdb/testsuite/gdb.mi/mi-var-rtti.cc
gdb/testsuite/gdb.mi/mi-var-rtti.exp
gdb/testsuite/gdb.mi/mi-vla-c99.exp
gdb/testsuite/gdb.mi/mi-watch.exp
gdb/testsuite/gdb.mi/mi2-var-child.exp
gdb/testsuite/gdb.mi/non-stop.c
gdb/testsuite/gdb.mi/nsintrall.c
gdb/testsuite/gdb.mi/pthreads.c
gdb/testsuite/gdb.mi/run-with-two-mi-uis.exp
gdb/testsuite/gdb.mi/user-selected-context-sync.exp
gdb/testsuite/gdb.mi/var-cmd.c
gdb/testsuite/gdb.multi/base.exp
gdb/testsuite/gdb.multi/bkpt-multi-exec.c
gdb/testsuite/gdb.multi/multi-arch-exec.c
gdb/testsuite/gdb.multi/multi-arch-exec.exp
gdb/testsuite/gdb.multi/remove-inferiors.c
gdb/testsuite/gdb.objc/basicclass.exp
gdb/testsuite/gdb.objc/nondebug.exp
gdb/testsuite/gdb.opt/clobbered-registers-O2.exp
gdb/testsuite/gdb.opt/inline-break.exp
gdb/testsuite/gdb.pascal/case-insensitive-symbols.pas
gdb/testsuite/gdb.pascal/gdb11492.exp
gdb/testsuite/gdb.pascal/gdb11492.pas
gdb/testsuite/gdb.pascal/hello.exp
gdb/testsuite/gdb.pascal/hello.pas
gdb/testsuite/gdb.python/py-auto-load-chaining.c
gdb/testsuite/gdb.python/py-block.exp
gdb/testsuite/gdb.python/py-breakpoint-create-fail.exp
gdb/testsuite/gdb.python/py-disasm.exp.tcl
gdb/testsuite/gdb.python/py-events-shlib.c
gdb/testsuite/gdb.python/py-evsignal.exp
gdb/testsuite/gdb.python/py-evthreads.exp
gdb/testsuite/gdb.python/py-explore-cc.exp
gdb/testsuite/gdb.python/py-explore.exp
gdb/testsuite/gdb.python/py-finish-breakpoint2.cc
gdb/testsuite/gdb.python/py-finish-breakpoint2.exp
gdb/testsuite/gdb.python/py-format-string.exp
gdb/testsuite/gdb.python/py-framefilter.exp
gdb/testsuite/gdb.python/py-lookup-type.exp
gdb/testsuite/gdb.python/py-missing-objfile.exp
gdb/testsuite/gdb.python/py-prettyprint.exp
gdb/testsuite/gdb.python/py-recurse-unwind.exp
gdb/testsuite/gdb.python/py-template.exp
gdb/testsuite/gdb.python/py-thrhandle.exp
gdb/testsuite/gdb.python/py-type.exp
gdb/testsuite/gdb.python/py-unwind-inline.exp
gdb/testsuite/gdb.python/py-unwind.c
gdb/testsuite/gdb.python/py-value.exp
gdb/testsuite/gdb.reverse/consecutive-precsave.exp
gdb/testsuite/gdb.reverse/consecutive-reverse.c
gdb/testsuite/gdb.reverse/consecutive-reverse.exp
gdb/testsuite/gdb.reverse/finish-reverse.c
gdb/testsuite/gdb.reverse/i386-precsave.exp
gdb/testsuite/gdb.reverse/i386-reverse.exp
gdb/testsuite/gdb.reverse/i386-sse-reverse.c
gdb/testsuite/gdb.reverse/i386-sse-reverse.exp
gdb/testsuite/gdb.reverse/machinestate-precsave.exp
gdb/testsuite/gdb.reverse/ppc_record_test_isa_2_06.c
gdb/testsuite/gdb.reverse/ppc_record_test_isa_2_06.exp
gdb/testsuite/gdb.reverse/ppc_record_test_isa_3_1.c
gdb/testsuite/gdb.reverse/ppc_record_test_isa_3_1.exp
gdb/testsuite/gdb.reverse/s390-mvcle.c
gdb/testsuite/gdb.reverse/s390-mvcle.exp
gdb/testsuite/gdb.reverse/sigall-precsave.exp
gdb/testsuite/gdb.reverse/sigall-reverse.exp
gdb/testsuite/gdb.reverse/solib-reverse.c
gdb/testsuite/gdb.reverse/step-precsave.exp
gdb/testsuite/gdb.reverse/step-reverse.c
gdb/testsuite/gdb.reverse/step-reverse.exp
gdb/testsuite/gdb.reverse/watch-precsave.exp
gdb/testsuite/gdb.reverse/watch-reverse.c
gdb/testsuite/gdb.reverse/watch-reverse.exp
gdb/testsuite/gdb.rocm/addr-bp-gpu-no-deb-info.exp
gdb/testsuite/gdb.rocm/mi-attach.cpp
gdb/testsuite/gdb.server/ext-run.exp
gdb/testsuite/gdb.threads/bp_in_thread.c
gdb/testsuite/gdb.threads/bp_in_thread.exp
gdb/testsuite/gdb.threads/del-pending-thread-bp.c
gdb/testsuite/gdb.threads/execl.exp
gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.exp
gdb/testsuite/gdb.threads/gcore-stale-thread.exp
gdb/testsuite/gdb.threads/gcore-thread.exp
gdb/testsuite/gdb.threads/hand-call-in-threads.c
gdb/testsuite/gdb.threads/hand-call-in-threads.exp
gdb/testsuite/gdb.threads/inf-thr-count.c
gdb/testsuite/gdb.threads/interrupted-hand-call.c
gdb/testsuite/gdb.threads/interrupted-hand-call.exp
gdb/testsuite/gdb.threads/killed.exp
gdb/testsuite/gdb.threads/manythreads.exp
gdb/testsuite/gdb.threads/non-stop-fair-events.exp
gdb/testsuite/gdb.threads/omp-par-scope.c
gdb/testsuite/gdb.threads/pending-step.c
gdb/testsuite/gdb.threads/print-threads.c
gdb/testsuite/gdb.threads/pthread_cond_wait.c
gdb/testsuite/gdb.threads/pthread_cond_wait.exp
gdb/testsuite/gdb.threads/schedlock.c
gdb/testsuite/gdb.threads/signal-while-stepping-over-bp-other-thread.exp
gdb/testsuite/gdb.threads/staticthreads.exp
gdb/testsuite/gdb.threads/switch-threads.exp
gdb/testsuite/gdb.threads/thread-unwindonsignal.exp
gdb/testsuite/gdb.threads/thread_check.c
gdb/testsuite/gdb.threads/thread_events.exp
gdb/testsuite/gdb.threads/threadapply.c
gdb/testsuite/gdb.threads/threadapply.exp
gdb/testsuite/gdb.threads/tls-main.c
gdb/testsuite/gdb.threads/tls-shared.c
gdb/testsuite/gdb.threads/tls-shared.exp
gdb/testsuite/gdb.threads/tls-so_extern.exp
gdb/testsuite/gdb.threads/tls-so_extern_main.c
gdb/testsuite/gdb.threads/tls.c
gdb/testsuite/gdb.threads/tls.exp
gdb/testsuite/gdb.threads/watchthreads-reorder.exp
gdb/testsuite/gdb.threads/watchthreads.c
gdb/testsuite/gdb.threads/watchthreads2.exp
gdb/testsuite/gdb.threads/wp-replication.c
gdb/testsuite/gdb.trace/actions.c
gdb/testsuite/gdb.trace/ax.exp
gdb/testsuite/gdb.trace/collection.c
gdb/testsuite/gdb.trace/ftrace.exp
gdb/testsuite/gdb.trace/packetlen.exp
gdb/testsuite/gdb.trace/passc-dyn.exp
gdb/testsuite/gdb.trace/pending.exp
gdb/testsuite/gdb.trace/tfile.c
gdb/testsuite/gdb.trace/trace-break.exp
gdb/testsuite/gdb.trace/trace-buffer-size.exp
gdb/testsuite/gdb.trace/unavailable-dwarf-piece.exp
gdb/testsuite/gdb.xml/maint_print_struct.xml
gdb/testsuite/gdb.xml/tdesc-regs.exp
gdb/testsuite/lib/ada.exp
gdb/testsuite/lib/dtrace.exp
gdb/testsuite/lib/dwarf.exp
gdb/testsuite/lib/future.exp
gdb/testsuite/lib/gdb.exp
gdb/testsuite/lib/gdbserver-support.exp
gdb/testsuite/lib/gen-perf-test.exp
gdb/testsuite/lib/memory.exp
gdb/testsuite/lib/mi-support.exp
gdb/testsuite/lib/opencl.exp
gdb/testsuite/lib/opencl_hostapp.c
gdb/testsuite/lib/pascal.exp
gdb/testsuite/lib/pdtrace.in
gdb/testsuite/lib/prelink-support.exp
gdb/testsuite/lib/prompt.exp
gdb/testsuite/lib/range-stepping-support.exp
gdb/testsuite/lib/read1.c
gdb/testsuite/lib/ton.tcl

index a54c643ae65dd2893f5b8a9370e5fe5014a8203c..9dc07d9de48fcc1e703f6a7ce6c26ba779019339 100644 (file)
 
 2013-11-20  Walfred Tedeschi  <walfred.tedeschi@intel.com>
 
-       * gdb.python/py-pp-maint.exp: Consider new pretty-print added 
+       * gdb.python/py-pp-maint.exp: Consider new pretty-print added
        for bnd registers.
 
 2013-11-20  Walfred Tedeschi  <walfred.tedeschi@intel.com>
 
 2013-11-11  Phil Muldoon  <pmuldoon@redhat.com>
 
-       * gdb.python/py-linetable.S: New file.
+       * gdb.python/py-linetable.S: New file.
        * gdb.python/py-linetable.c: New file.
-       * gdb.python/py-linetable.exp: New file.
+       * gdb.python/py-linetable.exp: New file.
 
 2013-11-11  Joel Brobecker  <brobecker@adacore.com>
 
 
        PR gdb/15501
        * gdb.base/ena-dis-br.exp: Add test to verify
-       enable/disable commands work correctly with
+       enable/disable commands work correctly with
        multiple arguments that include multiple locations.
 
 2013-08-22  Samuel Bronson  <naesten@gmail.com>
index b08514b6890b7b3000a81887bce91f00b618cf05..b60d6d4d79f13ee18521befc90844e13e5e5f4c8 100644 (file)
@@ -16,4 +16,3 @@
 load_lib ../config/monitor.exp
 set timeout 1000
 verbose "Timeout is now $timeout seconds" 2
-
index 2ea691b901acc2c7b528a0c6228d55fcc6bd2287..132c65e3f0ed21a5b5a043032ec13833fb6c6139 100644 (file)
@@ -16,4 +16,3 @@
 load_lib ../config/monitor.exp
 set timeout 120
 verbose "Timeout is now $timeout seconds" 2
-
index b08514b6890b7b3000a81887bce91f00b618cf05..b60d6d4d79f13ee18521befc90844e13e5e5f4c8 100644 (file)
@@ -16,4 +16,3 @@
 load_lib ../config/monitor.exp
 set timeout 1000
 verbose "Timeout is now $timeout seconds" 2
-
index 54825fd1254fc5eed73b16fba42b47f6d349f14c..e466e3512d6afb193d212458c25178e26e11004f 100644 (file)
@@ -25,8 +25,8 @@ proc sid_start {} {
            if {[target_info exists sim,defaultendian]} {
                set sidendian [target_info sim,defaultendian]
            } else {
-                # rely on endianness settings in sid configuration defaults
-                set sidendian ""
+               # rely on endianness settings in sid configuration defaults
+               set sidendian ""
            }
        }
     }
@@ -92,7 +92,7 @@ proc sid_start {} {
     sleep 4
 
     if ![target_info exists gdb,no_push_conn] {
-        remote_push_conn host
+       remote_push_conn host
     }
 }
 
index 8736917e7b35e43216ad3c8365117ae52e8e673a..30d4baf33ce4cebb009ec6e28b603394c275c021 100644 (file)
@@ -23,4 +23,3 @@ package body Caller is
       Increment (Val, "Verbose_Increment");
    end Verbose_Increment;
 end Caller;
-
index fe3ec2e00e3e4ffad7c31bc95c7a15f6ca1b033c..9ea162a8e7a81a75a7510b011bfb503e3d459645 100644 (file)
@@ -16,4 +16,3 @@
 package Caller is
    procedure Verbose_Increment (Val : in out Float; Msg : String);
 end Caller;
-
index 12a351202bcd1f19496e52e25886203bbde28739..f3722259b43b9426b21d0b3f4abd9b146b42f5e4 100644 (file)
@@ -38,4 +38,4 @@ gdb_breakpoint "pck.adb:19"
 # the value of all the parameters.
 
 gdb_test "continue" \
-         ".*Breakpoint $decimal, pck\\.inspect \\(obj=$hex, <objL>=\[1-9\]\\) at .*"
+        ".*Breakpoint $decimal, pck\\.inspect \\(obj=$hex, <objL>=\[1-9\]\\) at .*"
index 15c57e52e0739573ad34da507bd001838b4648d0..cac98e0b636f69f37c74df461d7dd625497cbe71 100644 (file)
@@ -31,13 +31,13 @@ if {![runto "foo_na07_019.adb:$bp_location"]} {
 }
 
 gdb_test "print something'address + 0" \
-         "\\(system\\.address\\) $hex <pck\\.something>"
+        "\\(system\\.address\\) $hex <pck\\.something>"
 
 gdb_test "print 0 + something'address" \
-         "\\(system\\.address\\) $hex <pck\\.something>"
+        "\\(system\\.address\\) $hex <pck\\.something>"
 
 gdb_test "print something'address - 0" \
-         "\\(system\\.address\\) $hex <pck\\.something>"
+        "\\(system\\.address\\) $hex <pck\\.something>"
 
 gdb_test "print 0 - something'address" \
-         "\\(system\\.address\\) $hex.*"
+        "\\(system\\.address\\) $hex.*"
index 2110cf14a6c916c62afd30e5c4d351f05fd18a6e..3933cc516d801aec0a614bfbb86c79aa81d4c3da 100644 (file)
@@ -29,4 +29,3 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
 runto "foo.adb:$bp_location"
 
 gdb_test "print bt" " = \\(1, 2, 3\\)"
-
index b859ddbee97b5a400ffda94a00df4b2ecb49fea8..b10c0d7e1193cb3090772be39a244012e5fd7d16 100644 (file)
@@ -19,4 +19,3 @@ procedure Foo is
 begin
    Do_Nothing (BT'Address); -- STOP
 end Foo;
-
index 3b84db594d1a1a00f9a9675eea0e07654c22c01c..431e6d1d9e41cbbecc8389e0c7457a2f4b7f6890 100644 (file)
@@ -31,13 +31,13 @@ if {![runto "bar.adb:$bp_location"]} {
 }
 
 gdb_test "print itable'first" \
-         "= 2"
+        "= 2"
 
 gdb_test "print itable'last" \
-         "= 5"
+        "= 5"
 
 gdb_test "print table'first" \
-         "= zero"
+        "= zero"
 
 gdb_test "print table'last" \
-         "= two"
+        "= two"
index 0d2a81f07375880fb0dac525c6054f235f9656b9..5ed73c47bed5c1ef45a6d6f2bbeeb3d91670dde6 100644 (file)
@@ -24,4 +24,3 @@ begin
    Table (Zero) := 5;  --  START
    ITable (3) := 10;
 end Bar;
-
index f0919b04ba7722fc9c121889e2ef97c5c649373e..166996fe92d85144772def46c0ea23739410b710 100644 (file)
@@ -26,12 +26,12 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug}] != ""} {
 clean_restart ${testfile}
 
 gdb_test "ptype char_table" \
-         "= array \\(character\\) of natural"
+        "= array \\(character\\) of natural"
 
 gdb_test "ptype global_char_table" \
-         "= array \\(character\\) of natural"
+        "= array \\(character\\) of natural"
 
 # Some more recent versions of gcc can statically initialize this
 # array, so we allow either 0 or 4874.
 gdb_test "print my_table" "= \\((0|4874) <repeats 256 times>\\)" \
-         "Display my_table"
+        "Display my_table"
index 21a75d8c4fa68b7a02d90c01ed98712ccaffd65f..3973f9cf2c43ea620a9e0aaf9f92986d8f1185ae 100644 (file)
@@ -41,34 +41,34 @@ if {![runto_main]} {
 # the "finish" command.
 
 gdb_test "break create_small" \
-         "Breakpoint \[0-9\]+ at.*: file .*pck.adb, line \[0-9\]+." \
-         "insert breakpoint in create_small"
+        "Breakpoint \[0-9\]+ at.*: file .*pck.adb, line \[0-9\]+." \
+        "insert breakpoint in create_small"
 
 gdb_test "break create_large" \
-         "Breakpoint \[0-9\]+ at.*: file .*pck.adb, line \[0-9\]+." \
-         "insert breakpoint in create_large"
+        "Breakpoint \[0-9\]+ at.*: file .*pck.adb, line \[0-9\]+." \
+        "insert breakpoint in create_large"
 
 gdb_test "break create_small_float_vector" \
-         "Breakpoint \[0-9\]+ at.*: file .*pck.adb, line \[0-9\]+." \
-         "insert breakpoint in create_small_float_vector"
+        "Breakpoint \[0-9\]+ at.*: file .*pck.adb, line \[0-9\]+." \
+        "insert breakpoint in create_small_float_vector"
 
 # Then continue until reaching the first breakpoint inside Create_Small,
 # and then do a "finish".
 
 gdb_test "cont" \
-         "Breakpoint \[0-9\]+, pck.create_small \\(\\).*" \
-         "continuing to Create_Small"
+        "Breakpoint \[0-9\]+, pck.create_small \\(\\).*" \
+        "continuing to Create_Small"
 
 gdb_test "finish" \
-         "Value returned is \\\$\[0-9\]+ = \\(1, 1\\)" \
-         "value printed by finish of Create_Small"
+        "Value returned is \\\$\[0-9\]+ = \\(1, 1\\)" \
+        "value printed by finish of Create_Small"
 
 # Now continue until reaching the second breakpoint inside Create_Large,
 # and then do another "finish".
 
 gdb_test "cont" \
-         "Breakpoint \[0-9\]+, pck.create_large \\(\\).*" \
-         "continuing to Create_Large"
+        "Breakpoint \[0-9\]+, pck.create_large \\(\\).*" \
+        "continuing to Create_Large"
 
 # On hppa32, the value returned is too large to be returned via a register.
 # Instead, it is returned using the struct convention, and the debugger
@@ -79,17 +79,16 @@ if {![istarget "hppa*64*-*-*"]} {
 }
 
 gdb_test "finish" \
-         "Value returned is \\\$\[0-9\]+ = \\(2, 2, 2, 2\\)" \
-         "value printed by finish of Create_Large"
+        "Value returned is \\\$\[0-9\]+ = \\(2, 2, 2, 2\\)" \
+        "value printed by finish of Create_Large"
 
 # Now continue until reaching the third breakpoint, and then do another
 # "finish" again.
 
 gdb_test "cont" \
-         "Breakpoint \[0-9\]+, pck.create_small_float_vector \\(\\).*" \
-         "continuing to Create_Small_Float_Vector"
+        "Breakpoint \[0-9\]+, pck.create_small_float_vector \\(\\).*" \
+        "continuing to Create_Small_Float_Vector"
 
 gdb_test "finish" \
-         "Value returned is \\\$\[0-9\]+ = \\(4.25, 4.25\\)" \
-         "value printed by finish of Create_Small_Float_Vector"
-
+        "Value returned is \\\$\[0-9\]+ = \\(4.25, 4.25\\)" \
+        "value printed by finish of Create_Small_Float_Vector"
index 45284aad2aca3b3c6d39fc251b135c51e02d6e95..2e3e035a4d9e888765fb62d495542e868a2088a1 100644 (file)
@@ -25,4 +25,3 @@ package Pck is
    function Create_Small_Float_Vector return Small_Float_Vector;
 
 end Pck;
-
index c679a70d6045b8d2b77e35867d6d46d1b1131069..a07992c3ff7ce04591f0144d5e167087225c5d8f 100644 (file)
@@ -31,4 +31,4 @@ runto "p.adb:$bp_location"
 # Verify that we can compare a string slice with another string.
 
 gdb_test "print a(2)'Address" \
-         "= \\(system\\.address\\) 0x\[0-9a-fA-F\]+"
+        "= \\(system\\.address\\) 0x\[0-9a-fA-F\]+"
index 057d7a02a9c3bfb9f7c2cbd02d31d889414a1531..838dddd9ef1915df48a00a8f5d6f999b1ec8fe9f 100644 (file)
@@ -27,4 +27,3 @@ procedure P is
 begin
    C := A (1) + A (2);  -- STOP
 end P;
-
index a732751395d45cf4121989e1efd720b1bd912e05..e8f0b40e0da57cab672f9260e176e38b3864850d 100644 (file)
@@ -34,7 +34,7 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
 runto "foo.adb:$bp_location"
 
 gdb_test "ptype m" \
-         "array \\(1 \\.\\. 1, 2 \\.\\. 3, 4 \\.\\. 6\\) of integer"
+        "array \\(1 \\.\\. 1, 2 \\.\\. 3, 4 \\.\\. 6\\) of integer"
 
 gdb_test "print m'first" " = 1"
 gdb_test "print m'last" " = 1"
@@ -53,7 +53,7 @@ gdb_test "print m'last(3)" " = 6"
 gdb_test "print m'length(3)" " = 3"
 
 gdb_test "ptype global_3dim_for_gdb_testing" \
-         "array \\(0 \\.\\. 0, 0 \\.\\. 1, 0 \\.\\. 2\\) of int"
+        "array \\(0 \\.\\. 0, 0 \\.\\. 1, 0 \\.\\. 2\\) of int"
 
 gdb_test "print global_3dim_for_gdb_testing'first" " = 0"
 gdb_test "print global_3dim_for_gdb_testing'last" " = 0"
index d05dba81302c68c3fa0ff52ac92a3d649a28aecb..04e2b8b43b0517c0d2ff0d92cacf523a44fb2892 100644 (file)
@@ -19,4 +19,3 @@ package body Pck is
       null;
    end Do_Nothing;
 end Pck;
-
index cfa98d472e69532d25224414605cbdd68b68a34d..16a570ca7912d5a21b9d30932f802f807f358e9d 100644 (file)
@@ -17,4 +17,3 @@ with System;
 package Pck is
    procedure Do_Nothing (A : System.Address);
 end Pck;
-
index 6a7188a9b351f26ef7a5f1e6eb9687afaa60c52c..74620277fbb3d1880b3e5aeb948db80a46a23883 100644 (file)
@@ -38,45 +38,45 @@ if {$old_gcc} {
     setup_xfail "*-*-*"
 }
 gdb_test "print one_two_three" \
-         "= \\(1, 2, 3\\)" \
-         "print one_two_three, indexes off"
+        "= \\(1, 2, 3\\)" \
+        "print one_two_three, indexes off"
 
 gdb_test "print e_one_two_three" \
-         "= \\(1, 2, 3\\)" \
-         "print e_one_two_three, indexes off"
+        "= \\(1, 2, 3\\)" \
+        "print e_one_two_three, indexes off"
 
 gdb_test "print r_two_three" \
-         "= \\(two => 2, 3\\)" \
-         "print r_two_three, indexes off"
+        "= \\(two => 2, 3\\)" \
+        "print r_two_three, indexes off"
 
 gdb_test "print u_one_two_three" \
-         "= \\(1, 2, 3\\)" \
-         "print u_one_two_three, indexes off"
+        "= \\(1, 2, 3\\)" \
+        "print u_one_two_three, indexes off"
 
 gdb_test "print p_one_two_three" \
-         "= \\(false, true, true\\)" \
-         "print p_one_two_three, indexes off"
+        "= \\(false, true, true\\)" \
+        "print p_one_two_three, indexes off"
 
 if {$old_gcc} {
     setup_xfail "*-*-*"
 }
 gdb_test "print few_reps" \
-         "= \\(1, 2, 3, 3, 3, 3, 3, 4, 5\\)" \
-         "print few_reps, indexes off"
+        "= \\(1, 2, 3, 3, 3, 3, 3, 4, 5\\)" \
+        "print few_reps, indexes off"
 
 if {$old_gcc} {
     setup_xfail "*-*-*"
 }
 gdb_test "print many_reps" \
-         "= \\(1, 2, 3 <repeats 12 times>, 4, 5\\)" \
-         "print many_reps, indexes off"
+        "= \\(1, 2, 3 <repeats 12 times>, 4, 5\\)" \
+        "print many_reps, indexes off"
 
 if {$old_gcc} {
     setup_xfail "*-*-*"
 }
 gdb_test "print empty" \
-         "= \\(\\)" \
-         "print empty, indexes off"
+        "= \\(\\)" \
+        "print empty, indexes off"
 
 # Next, print all the arrays with the indexes
 
@@ -86,34 +86,34 @@ if {$old_gcc} {
     setup_xfail "*-*-*"
 }
 gdb_test "print one_two_three" \
-         "= \\(1 => 1, 2 => 2, 3 => 3\\)"
+        "= \\(1 => 1, 2 => 2, 3 => 3\\)"
 
 gdb_test "print e_one_two_three" \
-         "= \\(one => 1, two => 2, three => 3\\)"
+        "= \\(one => 1, two => 2, three => 3\\)"
 
 gdb_test "print r_two_three" \
-         "= \\(two => 2, three => 3\\)"
+        "= \\(two => 2, three => 3\\)"
 
 gdb_test "print u_one_two_three" \
-         "= \\(1 => 1, 2 => 2, 3 => 3\\)"
+        "= \\(1 => 1, 2 => 2, 3 => 3\\)"
 
 gdb_test "print p_one_two_three" \
-         "= \\(one => false, two => true, three => true\\)"
+        "= \\(one => false, two => true, three => true\\)"
 
 if {$old_gcc} {
     setup_xfail "*-*-*"
 }
 gdb_test "print few_reps" \
-         "= \\(1 => 1, 2 => 2, 3 => 3, 4 => 3, 5 => 3, 6 => 3, 7 => 3, 8 => 4, 9 => 5\\)"
+        "= \\(1 => 1, 2 => 2, 3 => 3, 4 => 3, 5 => 3, 6 => 3, 7 => 3, 8 => 4, 9 => 5\\)"
 
 if {$old_gcc} {
     setup_xfail "*-*-*"
 }
 gdb_test "print many_reps" \
-         "= \\(1 => 1, 2 => 2, 3 => 3 <repeats 12 times>, 15 => 4, 16 => 5\\)"
+        "= \\(1 => 1, 2 => 2, 3 => 3 <repeats 12 times>, 15 => 4, 16 => 5\\)"
 
 if {$old_gcc} {
     setup_xfail "*-*-*"
 }
 gdb_test "print empty" \
-         "= \\(\\)"
+        "= \\(\\)"
index bdd2499b110a6000aa9d2ca36758b98d420d040a..7d004d439f37f8865d57ff316f6a0ccfcb0b2887 100644 (file)
@@ -23,4 +23,3 @@ begin
    Length := -1;
    Call_Me (My_String);  -- STOP
 end Foo;
-
index 794ac34ec9041a9d69a9d3fb73258bf176b015ad..aae3a63a3c1cb9e98f8716540511e4ede097a129 100644 (file)
@@ -25,4 +25,3 @@ package body Pck is
    end Call_Me;
 
 end Pck;
-
index af5c8399ea83a0907431c4986bde9a4f7f697391..0fb6421d8e33a06ca6783fb1bc4a25e6f3de83ca 100644 (file)
@@ -22,4 +22,3 @@ package Pck is
    procedure Call_Me (Str : String);
 
 end Pck;
-
index 622fa9624257f453261804682fafdcb541a260df..2339beb28f6ad3f3dfd8359011ec3a66e9514c5e 100644 (file)
@@ -22,11 +22,11 @@ clean_restart
 # Force the language to Ada, as this will not happen automatically
 # in this case (no test program).
 gdb_test_no_output "set lang ada" \
-         "changing the language to ada"
+        "changing the language to ada"
 
 gdb_test "print \$xxx := 1" \
-         "= 1" \
-         "set convenience variable \$xxx to 1"
+        "= 1" \
+        "set convenience variable \$xxx to 1"
 
 
 gdb_test "print \$xxx := @ + 23 + @" \
index b4897183f764fa33ed4d42333216bd250dafe4cb..87ec190a6498e87038e13a9a0dae898a6a94f2b8 100644 (file)
@@ -29,10 +29,10 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/main_p324_051.adb]
 runto "main_p324_051.adb:$bp_location"
 
 gdb_test "print assign_arr_input.u2 :=(0.25,0.5,0.75)" \
-         " = \\(0\\.25, 0\\.5, 0\\.75\\)"
+        " = \\(0\\.25, 0\\.5, 0\\.75\\)"
 
 gdb_test "print assign_arr_input.u2 :=(0.25, others => 0.125)" \
-         " = \\(0\\.25, 0\\.125, 0\\.125\\)"
+        " = \\(0\\.25, 0\\.125, 0\\.125\\)"
 
 set line [gdb_get_line_number "STOP2" ${testdir}/target_wrapper.adb]
 gdb_breakpoint target_wrapper.adb:$line
index 58838feda63493ee44e5cece8e965fbd6ee42ec9..22b0f8709a46f4f3cc54343b7ec8ffd5f09b055b 100644 (file)
@@ -28,11 +28,10 @@ clean_restart ${testfile}
 set test "ptype pck.data_flag"
 gdb_test_multiple "$test" $test {
     -re "type = \\(one, two, three\\).*$gdb_prompt $" {
-        pass $test
-        }
+       pass $test
+       }
     -re "type = \\(\\).*$gdb_prompt $" {
-        # This is a known compiler problem with Stabs.
-        xfail $test
-        }
+       # This is a known compiler problem with Stabs.
+       xfail $test
+       }
 }
-
index 87a233a253e8c90f4ca4d0fb904b655e901a646f..4ea55fc5858db707280b2823f45fd05bd7976852 100644 (file)
@@ -39,7 +39,7 @@ with_test_prefix "run" {
 }
 
 gdb_test "continue" \
-         ".*Breakpoint \[0-9\]+, foo\\.p \\(s=.*\\) at .*foo.adb:\[0-9\]+.*"
+        ".*Breakpoint \[0-9\]+, foo\\.p \\(s=.*\\) at .*foo.adb:\[0-9\]+.*"
 
 with_test_prefix "cont" {
     gdb_test "print s'first" " = 4"
index 48ff9c1ae87d4a2b429349695c8c7cdd8a192ec7..96fa3350d459e2ad8296e9ee818f8d3ad23a568c 100644 (file)
@@ -34,17 +34,17 @@ runto "foo.adb:$bp_location"
 # report an error.  Try various weird combinations too.
 
 gdb_test "break *break_me'address TASK 2" \
-         "Garbage 'TASK 2' at end of command"
+        "Garbage 'TASK 2' at end of command"
 
 set test "break *break_me'address TASK Task TaSK 2"
 gdb_test_multiple "$test" $test {
     -re "Garbage 'TASK Task TaSK 2' at end of command\[\r\n\]+$gdb_prompt $" {
-        pass $test
-        }
+       pass $test
+       }
     -re "Garbage 'TaSK 2' at end of command\[\r\n\]+$gdb_prompt $" {
-        kfail gdb/14111 "$test"
-        }
+       kfail gdb/14111 "$test"
+       }
 }
 
 gdb_test "break *break_me'address TASK if" \
-         "Garbage 'TASK if' at end of command"
+        "Garbage 'TASK if' at end of command"
index 96ed9d29a285b11aa380c6800879da196d25138c..fbc20d58d721dcd6d2c85b114c9ee09c1f6f510e 100644 (file)
@@ -45,14 +45,14 @@ foreach_gnat_encoding scenario flags {all minimal} {
     set re_xfail2 "= \\(0 => 0 <repeats 24 times>, ($decimal)\\)"
     gdb_test_multiple "print bad" "" {
        -re -wrap $re  {
-           pass $gdb_test_name
+          pass $gdb_test_name
        }
        -re -wrap $re_xfail {
-           if { $have_xfail } {
-               # gcc/101643
-               setup_xfail *-*-*
-           }
-           fail $gdb_test_name
+          if { $have_xfail } {
+              # gcc/101643
+              setup_xfail *-*-*
+          }
+          fail $gdb_test_name
        }
        -re -wrap $re_xfail2 {
           set last $expect_out(1,string)
@@ -61,12 +61,12 @@ foreach_gnat_encoding scenario flags {all minimal} {
           } else {
               set mask 0xf0
           }
-           if { $have_xfail && [string is integer $last] \
+          if { $have_xfail && [string is integer $last] \
                    && [expr ($last & $mask) == 0] } {
-               # gcc/101643
-               setup_xfail *-*-*
-           }
-           fail $gdb_test_name
+              # gcc/101643
+              setup_xfail *-*-*
+          }
+          fail $gdb_test_name
        }
     }
 }
index de6cc4c4b71834f6a3b372c80629b16fd0ab801f..9d52db7fc5e158e55f171e0238ef31848ebf1866 100644 (file)
@@ -25,10 +25,10 @@ set any_addr "0x\[0-9a-zA-Z\]+"
 # Force the language to Ada, as this will not happen automatically
 # in this case (no test program).
 gdb_test_no_output "set lang ada" \
-         "changing the language to ada"
+        "changing the language to ada"
 
 gdb_test "print 1 = 2" \
-         "= false"
+        "= false"
 
 gdb_test "print 3 = 3" \
-         "= true"
+        "= true"
index 63b6ecb126e37e6e0a15b0ba4599cfa9b62f35bb..288ed29a958688509394fe4a413e5cb4e95bf930 100644 (file)
@@ -52,43 +52,43 @@ if {![runto "foo_h731_021"]} {
 
 # Verify that the current language is Ada.
 gdb_test "show lang" \
-         "\"auto; currently ada\"\\."
+        "\"auto; currently ada\"\\."
 
 # Before running to the C function (and thus switching out of Ada
 # mode), try printing the function using the "<...>" notation.
 gdb_test "p <MixedCaseFunc>" \
-         " = void" \
-         "p <MixedCaseFunc>, in Ada"
+        " = void" \
+        "p <MixedCaseFunc>, in Ada"
 
 gdb_test "p <NoDebugMixedCaseFunc>" \
-         " = {<text variable, no debug info>} $hex <NoDebugMixedCaseFunc>" \
-         "p <NoDebugMixedCaseFunc>, in Ada"
+        " = {<text variable, no debug info>} $hex <NoDebugMixedCaseFunc>" \
+        "p <NoDebugMixedCaseFunc>, in Ada"
 
 # Try inserting a breakpoint inside a C function. Because the function's
 # name has some uppercase letters, we need to use the "<...>" notation.
 # The purpose of this testcase is to verify that we can in fact do so
 # and that it inserts the breakpoint at the expected location.
 gdb_test "break <MixedCaseFunc>" \
-         "Breakpoint $decimal at $hex: file .*bar.c, line $decimal\\."
+        "Breakpoint $decimal at $hex: file .*bar.c, line $decimal\\."
 
 # Same, but this time on the function with no debug info.
 gdb_test "break <NoDebugMixedCaseFunc>" \
-         "Breakpoint $decimal at $hex"
+        "Breakpoint $decimal at $hex"
 
 # Resume the program's execution, verifying that it lands at the expected
 # location.
 gdb_test "continue" \
-         "Breakpoint $decimal, MixedCaseFunc \\(\\) at .*bar\\.c:$decimal.*"
+        "Breakpoint $decimal, MixedCaseFunc \\(\\) at .*bar\\.c:$decimal.*"
 
 # Try printing again using the "<...>" notation.  This shouldn't work
 # now, since the current frame is a C function.
 gdb_test "p <MixedCaseFunc>" \
-         "A syntax error in expression, near `<MixedCaseFunc>'\\." \
-         "p <MixedCaseFunc>, in C"
+        "A syntax error in expression, near `<MixedCaseFunc>'\\." \
+        "p <MixedCaseFunc>, in C"
 
 gdb_test "p <NoDebugMixedCaseFunc>" \
-         "A syntax error in expression, near `<NoDebugMixedCaseFunc>'\\." \
-         "p <NoDebugMixedCaseFunc>, in C"
+        "A syntax error in expression, near `<NoDebugMixedCaseFunc>'\\." \
+        "p <NoDebugMixedCaseFunc>, in C"
 
 set test "break <MixedCaseFunc>, in C"
 gdb_test_multiple "break <MixedCaseFunc>" $test {
index 511b5dbcf484522e0e4254f8e595a3b5f026a513..d104ae48921d3847dd363dde084ff9a9d5fba39b 100644 (file)
@@ -27,7 +27,7 @@ clean_restart ${testfile}
 
 # Force GDB to convert the psymtab of pck.adb into a symtab.
 gdb_test "list pck.adb:1" \
-         "$decimal\[ \t\]+--  Copyright.*"
+        "$decimal\[ \t\]+--  Copyright.*"
 
 # Break on subprogram "Archive". There is an enumeral that's an
 # homonym, so verify that GDB doesn't provide the choice between
@@ -35,7 +35,7 @@ gdb_test "list pck.adb:1" \
 # Instead, it should insert the breakpoint on the function alone.
 
 gdb_test "break archive" \
-         "Breakpoint $decimal at $hex: file .*pck.adb, line $decimal\\."
+        "Breakpoint $decimal at $hex: file .*pck.adb, line $decimal\\."
 
 # Run the program. Make sure the program runs until it hits
 # the breakpoint and that the debugger does not unexpectedly ask
@@ -45,6 +45,5 @@ gdb_test "break archive" \
 
 gdb_run_cmd
 gdb_test "" \
-         "Breakpoint $decimal, pck\\.archive \\(\\).*" \
-         "run to pck.archive breakpoint"
-
+        "Breakpoint $decimal, pck\\.archive \\(\\).*" \
+        "run to pck.archive breakpoint"
index 84cb6976f7f1a0d993d11547751ef999f43ad1e9..988f28f6f17a8d612b6337e0bc75b5398dee1b42 100644 (file)
@@ -23,4 +23,3 @@ begin
       Archive;
    end if;
 end P;
-
index 82481a94c7e08c92513a8ea85bcb47c2a8378a9f..be67a2a1d45ad0747770ddc8899fbe799e3c7dc4 100644 (file)
@@ -26,10 +26,9 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug}] != ""} {
 clean_restart ${testfile}
 
 gdb_test "break *bp_fun_addr'address" \
-         "Breakpoint \[0-9\]+ at.*: file .*bp_fun_addr.adb, line \[0-9\]+."
+        "Breakpoint \[0-9\]+ at.*: file .*bp_fun_addr.adb, line \[0-9\]+."
 
 gdb_run_cmd
 gdb_test "" \
-         "Breakpoint $decimal, bp_fun_addr \\(\\).*" \
-         "run until breakpoint at bp_fun_addr'address"
-
+        "Breakpoint $decimal, bp_fun_addr \\(\\).*" \
+        "run until breakpoint at bp_fun_addr'address"
index 3bab85a126de673ec4f0fb70448fe2ce4882a5f4..8b05a428a78b7b987972693b39431b8d83ba9cbf 100644 (file)
@@ -33,8 +33,8 @@ if {![runto_main]} {
 # 4 breakpoints (or possibly 5, including the read_small function itself).
 
 gdb_test "break read_small" \
-         "Breakpoint $decimal at $hex: read_small\\. \\(\[45\] locations\\)" \
-         "set breakpoint at read_small"
+        "Breakpoint $decimal at $hex: read_small\\. \\(\[45\] locations\\)" \
+        "set breakpoint at read_small"
 
 # We do not verify each breakpoint info, but use continue commands instead
 # to verify that we properly stop on each expected breakpoint.
@@ -50,5 +50,5 @@ for {set i 0} {$i < 4} {incr i} {
 }
 
 gdb_test "continue" \
-         "Continuing\\..*$inferior_exited_re.*" \
-         "continuing to program completion"
+        "Continuing\\..*$inferior_exited_re.*" \
+        "continuing to program completion"
index 78ba4bfba70729238762665d1af5262f51fe17e8..0b5e6a1a0a63b55fdfa77e676b34d3f80b2e326d 100644 (file)
@@ -33,7 +33,7 @@ clean_restart ${testfile}
 gdb_test_no_output "set breakpoint pending off" "disable pending breakpoints"
 
 gdb_test "break pck.my_global_variable" \
-         "Function \"pck\\.my_global_variable\" not defined\\."
+        "Function \"pck\\.my_global_variable\" not defined\\."
 
 
 # Test inserting breakpoint on pck.my_hidden_variable.
@@ -44,4 +44,4 @@ gdb_test_no_output "set breakpoint pending off" \
     "disable pending breakpoints after restart"
 
 gdb_test "break pck.my_hidden_variable" \
-         "Function \"pck\\.my_hidden_variable\" not defined\\."
+        "Function \"pck\\.my_hidden_variable\" not defined\\."
index 2371a1f6b6b640f35050eb504e3c498366f993d3..5b8641af65fb2d3dc7d5676b20106cd96a4ade19 100644 (file)
@@ -24,4 +24,3 @@ package body Pck is
       My_Hidden_Variable := My_Hidden_Variable + 1;
    end Do_Something;
 end Pck;
-
index 979207a515a6c07f4180270a62ec2df332746993..279678e880a7218ddd7a98a2f197df6cad52a715 100644 (file)
@@ -17,4 +17,3 @@ package Pck is
    My_Global_Variable : Integer := 11;
    procedure Do_Something (I : in out Integer);
 end Pck;
-
index fd9ab9881965e42774c63f596a6a5080d8f535d9..ba16fe23235e77f6f15914aba2728994cd9d6530 100644 (file)
@@ -28,12 +28,12 @@ clean_restart ${testfile}
 set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
 
 gdb_test "break foo.adb:$bp_location if small_value > 20" \
-         "Breakpoint $decimal at $hex: file .*foo.adb, line $decimal\\."
+        "Breakpoint $decimal at $hex: file .*foo.adb, line $decimal\\."
 
 gdb_run_cmd
 gdb_test "" \
-         "Breakpoint $decimal, foo \\(\\).*" \
-         "run to breakpoint"
+        "Breakpoint $decimal, foo \\(\\).*" \
+        "run to breakpoint"
 
 # Verify that we stopped at the correct iteration.
 gdb_test "print small_value" " = 25"
index c8a18570b6f97219eec9912147c7635ac8e3cefe..d5441debf6e6cc826a3d089cedae774b00857af6 100644 (file)
@@ -26,10 +26,10 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
 clean_restart ${testfile}
 
 gdb_test "break nested_sub" \
-         "Breakpoint $decimal at $hex: file .*foo.adb, line $decimal\\."
+        "Breakpoint $decimal at $hex: file .*foo.adb, line $decimal\\."
 
 gdb_test "break do_nothing" \
-         "Breakpoint $decimal at $hex: file .*pck.adb, line $decimal\\."
+        "Breakpoint $decimal at $hex: file .*pck.adb, line $decimal\\."
 
 # Run the program. Make sure the program runs until it hits
 # the first breakpoint inside nested_sub.
index d3f51d933cb140ef5c8b520e556b52457711aac8..6014c0864b04a9e7b4285c757bf4b6eacfb1594c 100644 (file)
@@ -29,4 +29,4 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/reprod.adb]
 runto "reprod.adb:$bp_location"
 
 gdb_test "print broken" \
-         " = \\(len => 1, data => \\(\\(i => 1\\)\\)\\)"
+        " = \\(len => 1, data => \\(\\(i => 1\\)\\)\\)"
index 7923732071a7d91fed422acb176ce8f13261c55e..42ad7bdb5b2534e745e101afd35e94d466f55fee 100644 (file)
@@ -20,4 +20,3 @@ procedure Foo is
 begin
    New_Node := Pn (1234);  -- STOP
 end Foo;
-
index 6604aeaf1117e1bcd4b461e750525996181bb761..61f81d037ccbbbd4e0cab699165f83ee04d46fde 100644 (file)
@@ -22,4 +22,3 @@ package body Pck is
       return N;
    end Pn;
 end Pck;
-
index f1cc9c2dd7f8ed24fffa3c040da3f76a607929ba..6e9edd4ed9f64257caefcb77af42469a103bbbb0 100644 (file)
@@ -20,4 +20,3 @@ package Pck is
 
    function Pn (N : Node_Id) return Node_Id;
 end Pck;
-
index eca657f869ecc0ca4e9102267010704208e23b50..443a90fc09e9b2ef58a31a8fd163d3daeae1b390 100644 (file)
@@ -39,8 +39,8 @@ if {![runto_main]} {
 }
 
 gdb_test "catch assert if Global_Var = 2" \
-         "Catchpoint $decimal: failed Ada assertions" \
-         "insert catchpoint on failed assertions with condition"
+        "Catchpoint $decimal: failed Ada assertions" \
+        "insert catchpoint on failed assertions with condition"
 
 # Check that condition is stored and properly displayed.
 
@@ -53,8 +53,8 @@ set catchpoint_msg \
   "Catchpoint $decimal, failed assertion at $hex in bla \\\(\\\).*at .*bla.adb:$bp_location"
 gdb_test "continue" \
         "Continuing\\.$eol$eol$catchpoint_msg$eol.*STOP" \
-         "continuing to expected failed assertion"
+        "continuing to expected failed assertion"
 
 gdb_test "continue" \
-         "Continuing\\..*$inferior_exited_re.*" \
-         "continuing to program completion"
+        "Continuing\\..*$inferior_exited_re.*" \
+        "continuing to program completion"
index 62409d58d13db0d7c216949436b7f3e81db9c6a7..3f48421e8e14ecabb33339f9d47efc8069886718 100644 (file)
@@ -16,4 +16,3 @@
 package Pck is
    Global_Var : Integer := 0;
 end Pck;
-
index 34f3202254155b5fed47950d2dbbc9b703b14a0b..8ea718e4eaf44762a67e66a2cf08e5d05a5bdbe3 100644 (file)
@@ -49,20 +49,20 @@ gdb_test "catch exception" \
     "insert catchpoint on all Ada exceptions"
 
 gdb_test "info break" \
-         "$info_break_header$eol.*$catch_exception_info" \
-         "info break, catch all Ada exceptions"
+        "$info_break_header$eol.*$catch_exception_info" \
+        "info break, catch all Ada exceptions"
 
 set catchpoint_msg \
   "Catchpoint $any_nb, CONSTRAINT_ERROR (\\\(ignore C_E\\\) )?at $any_addr in foo \\\(\\\).*at .*foo.adb:$any_nb"
 gdb_test "continue" \
         "Continuing\\.$eol$eol$catchpoint_msg$eol.*SPOT1" \
-         "continuing to first exception"
+        "continuing to first exception"
 
 set catchpoint_msg \
   "Catchpoint $any_nb, PROGRAM_ERROR (\\\(foo\\.adb:$decimal explicit raise\\\) )?at $any_addr in foo \\\(\\\).*at .*foo.adb:$any_nb"
 gdb_test "continue" \
         "Continuing\\.$eol$eol$catchpoint_msg$eol.*SPOT2" \
-         "continuing to second exception"
+        "continuing to second exception"
 
 ################################################
 # 2. Try catching only some of the exceptions. #
@@ -83,16 +83,16 @@ if {![runto_main]} {
 }
 
 gdb_test "catch exception Program_Error" \
-         "Catchpoint $any_nb: \`Program_Error' Ada exception" \
-         "insert catchpoint on Program_Error"
+        "Catchpoint $any_nb: \`Program_Error' Ada exception" \
+        "insert catchpoint on Program_Error"
 
 gdb_test "catch assert" \
-         "Catchpoint $any_nb: failed Ada assertions" \
-         "insert catchpoint on failed assertions"
+        "Catchpoint $any_nb: failed Ada assertions" \
+        "insert catchpoint on failed assertions"
 
 gdb_test "catch exception unhandled" \
-         "Catchpoint $any_nb: unhandled Ada exceptions" \
-         "insert catchpoint on unhandled exceptions"
+        "Catchpoint $any_nb: unhandled Ada exceptions" \
+        "insert catchpoint on unhandled exceptions"
 
 set catch_exception_entry \
   "$any_nb${sp}catchpoint${sp}keep${sp}y${sp}\`Program_Error' Ada exception"
@@ -102,30 +102,30 @@ set catch_unhandled_entry \
   "$any_nb${sp}catchpoint${sp}keep${sp}y${sp}unhandled Ada exceptions"
 
 gdb_test "info break" \
-         "$info_break_header$eol.*$catch_exception_entry$eol$catch_assert_entry$eol$catch_unhandled_entry" \
-         "info break, second run"
+        "$info_break_header$eol.*$catch_exception_entry$eol$catch_assert_entry$eol$catch_unhandled_entry" \
+        "info break, second run"
 
 set catchpoint_msg \
   "Catchpoint $any_nb, PROGRAM_ERROR (\\\(foo.adb:$decimal explicit raise\\\) )?at $any_addr in foo \\\(\\\).*at .*foo.adb:$any_nb"
 gdb_test "continue" \
         "Continuing\\.$eol$eol$catchpoint_msg$eol.*SPOT2" \
-         "continuing to Program_Error exception"
+        "continuing to Program_Error exception"
 
 set catchpoint_msg \
   "Catchpoint $any_nb, failed assertion at $any_addr in foo \\\(\\\).*at .*foo.adb:$any_nb"
 gdb_test "continue" \
         "Continuing\\.$eol$eol$catchpoint_msg$eol.*SPOT3" \
-         "continuing to failed assertion"
+        "continuing to failed assertion"
 
 set catchpoint_msg \
   "Catchpoint $any_nb, unhandled CONSTRAINT_ERROR at $any_addr in foo \\\(\\\).*at .*foo.adb:$any_nb"
 gdb_test "continue" \
         "Continuing\\.$eol$eol$catchpoint_msg$eol.*SPOT4" \
-         "continuing to unhandled exception"
+        "continuing to unhandled exception"
 
 gdb_test "continue" \
-         "Continuing\\..*$inferior_exited_re.*" \
-         "continuing to program completion"
+        "Continuing\\..*$inferior_exited_re.*" \
+        "continuing to program completion"
 
 #################################
 # 3. Try temporary catchpoints. #
@@ -143,18 +143,16 @@ if {![runto_main]} {
 }
 
 gdb_test "tcatch exception" \
-         "Temporary catchpoint $any_nb: all Ada exceptions"
+        "Temporary catchpoint $any_nb: all Ada exceptions"
 
 set temp_catchpoint_msg \
   "Temporary catchpoint $any_nb, CONSTRAINT_ERROR (\\\(.*\\\) )?at $any_addr in foo \\\(\\\).*at .*foo.adb:$any_nb"
 gdb_test "continue" \
         "Continuing\\.$eol$eol$temp_catchpoint_msg$eol.*SPOT1" \
-         "continuing to temporary catchpoint"
+        "continuing to temporary catchpoint"
 
 with_test_prefix "temporary catchpoint" {
     gdb_test "continue" \
        "Continuing\\..*$inferior_exited_re.*" \
        "continuing to program completion"
 }
-
-
index fc67d2f69382430388f2adacca422eeefe9919d0..2bfbe8ce33e1e0a4c2a87d4adbb8a297cce63207 100644 (file)
@@ -19,4 +19,3 @@ package body Pck is
       null;
    end Do_Nothing;
 end Pck;
-
index 0293c79ff3410d3cabc9ead4dcb876f1a5b12189..e83e7442f50b582f068ad1d45051c2073a9eaa6d 100644 (file)
@@ -19,4 +19,3 @@ package Pck is
    type Global_Enum_Type is ('x', 'Y', '+');
    procedure Do_Nothing (A : System.Address);
 end Pck;
-
index 1490b7102849d46e655bdb9ea2294a338934bcc8..b33d8201411ff3d6d3d2199a6af3baad7df7b092 100644 (file)
@@ -34,23 +34,21 @@ runto "foo.adb:$bp_location"
 # the function call.
 
 gdb_test "print procedure_result" \
-         "= 32 ' '"  \
-         "print procedure_result before calling same"
+        "= 32 ' '"  \
+        "print procedure_result before calling same"
 
 gdb_test "call same (first)" \
-         "" \
-         "call same"
+        "" \
+        "call same"
 
 gdb_test "print procedure_result" \
-         "= 97 'a'"  \
-         "print procedure_result after calling same"
+        "= 97 'a'"  \
+        "print procedure_result after calling same"
 
 gdb_test "call next (first)" \
-         "= 98 'b'" \
-         "call next"
+        "= 98 'b'" \
+        "call next"
 
 gdb_test "print procedure_result" \
-         "= 98 'b'"  \
-         "print procedure_result after calling next"
-
-
+        "= 98 'b'"  \
+        "print procedure_result after calling next"
index b1e4bfd24233d4f6c475efa23e121d679bf2730b..b07fc9eb59416d3a26b670cabaf466e1f0ac7823 100644 (file)
@@ -22,6 +22,3 @@ begin
    Same (First);  -- STOP
    Next (First);
 end Foo;
-
-
-
index fbdd24c466b4f0b58d6af98124850f93303f8457..725f06bbb3980aea51894f23c005fe73ecff0d15 100644 (file)
@@ -50,7 +50,7 @@ proc test_gdb_complete { expr expected_output {msg ""} } {
        set msg $cmd
     }
     gdb_test "complete p $expr" \
-             "$expected_output" $msg
+            "$expected_output" $msg
 }
 
 # A convenience function that verifies that the "complete EXPR" command
@@ -63,12 +63,12 @@ proc test_gdb_no_completion { expr } {
 # Try a global variable, only one match should be found:
 
 test_gdb_complete "my_glob" \
-                  "p my_global_variable"
+                 "p my_global_variable"
 
 # A global variable, inside a nested package:
 
 test_gdb_complete "insi" \
-                  "p inside_variable"
+                 "p inside_variable"
 
 # A global variable inside a nested package, but only giving part of
 # the fully qualified name (top level package name missing):
@@ -77,16 +77,16 @@ test_gdb_no_completion "inner.insi"
 
 # An incomplete nested package name, were lies a single symbol:
 test_gdb_complete "pck.inne" \
-                  "p pck.inner.inside_variable" \
-                  "complete nested package name"
+                 "p pck.inner.inside_variable" \
+                 "complete nested package name"
 
 # A fully qualified symbol name, mangled...
 test_gdb_complete "pck__inner__ins" \
-                  "p pck__inner__inside_variable"
+                 "p pck__inner__inside_variable"
 
 # A fully qualified symbol name...
 test_gdb_complete "pck.inner.ins" \
-                  "p pck.inner.inside_variable"
+                 "p pck.inner.inside_variable"
 
 # Make sure that "inside" is not returned as a possible completion
 # for "side"...
@@ -98,7 +98,7 @@ test_gdb_no_completion "exported"
 
 # check the "<...>" notation.
 test_gdb_complete "<Exported" \
-                  "p <Exported_Capitalized>"
+                 "p <Exported_Capitalized>"
 
 # While at it, make sure we can print the symbol too, using the '<'
 # notation.
@@ -112,16 +112,16 @@ gdb_test "p exported_capitalized" \
 
 # A global symbol, created by the binder, that starts with __gnat...
 test_gdb_complete "__gnat_ada_main_progra" \
-                  "p __gnat_ada_main_program_name"
+                 "p __gnat_ada_main_program_name"
 
 # A global symbol, created by the binder, that starts with __gnat,
 # and using the '<' notation.
 test_gdb_complete "<__gnat_ada_main_prog" \
-                  "p <__gnat_ada_main_program_name>"
+                 "p <__gnat_ada_main_program_name>"
 
 # A local variable
 test_gdb_complete "some" \
-                  "p some_local_variable"
+                 "p some_local_variable"
 
 # A local variable variable, but in a different procedure. No match
 # should be returned.
@@ -132,7 +132,7 @@ test_gdb_no_completion "pck.ins"
 
 # A fully qualified variable name that does exist...
 test_gdb_complete "pck.my" \
-                  "p pck.my_global_variable"
+                 "p pck.my_global_variable"
 
 # A fully qualified package name
 test_gdb_complete "pck.inner" \
@@ -141,28 +141,28 @@ test_gdb_complete "pck.inner" \
 
 # A fully qualified package name, with a dot at the end
 test_gdb_complete "pck.inner." \
-                  "p pck.inner.inside_variable"
+                 "p pck.inner.inside_variable"
 
 # Two matches, from the global scope:
 test_gdb_complete "local_ident" \
-                  [multi_line "p local_identical_one" \
-                              "p local_identical_two" ]
+                 [multi_line "p local_identical_one" \
+                             "p local_identical_two" ]
 
 # Two matches, from the global scope, but using fully qualified names:
 test_gdb_complete "pck.local_ident" \
-                  [multi_line "p pck.local_identical_one" \
-                              "p pck.local_identical_two" ]
+                 [multi_line "p pck.local_identical_one" \
+                             "p pck.local_identical_two" ]
 
 # Two matches, from the global scope, but using mangled fully qualified
 # names:
 test_gdb_complete "pck__local_ident" \
-                  [multi_line "p pck__local_identical_one" \
-                              "p pck__local_identical_two" ]
+                 [multi_line "p pck__local_identical_one" \
+                             "p pck__local_identical_two" ]
 
 # Two matches, one from the global scope, the other from the local scope:
 test_gdb_complete "external_ident" \
-                  [multi_line "p external_identical_one" \
-                              "p external_identical_two" ]
+                 [multi_line "p external_identical_one" \
+                             "p external_identical_two" ]
 
 # Complete on the name of package.
 test_gdb_complete "pck" \
@@ -198,7 +198,7 @@ test_gdb_complete "pck." \
 
 # Complete a mangled symbol name, but using the '<...>' notation.
 test_gdb_complete "<pck__my" \
-                  "p <pck__my_global_variable>"
+                 "p <pck__my_global_variable>"
 
 # Very simple completion, but using the interactive form, this time.
 # The verification we are trying to make involves the event loop,
@@ -224,12 +224,12 @@ if { [readline_is_used] } {
 # which users can select a specific function.  This should not happen during
 # completion, though.
 test_gdb_complete "ambig" \
-                  [multi_line "p ambiguous_func" \
-                              "p ambiguous_proc" ]
+                 [multi_line "p ambiguous_func" \
+                             "p ambiguous_proc" ]
 test_gdb_complete "ambiguous_f" \
-                  "p ambiguous_func"
+                 "p ambiguous_func"
 test_gdb_complete "ambiguous_func" \
-                  "p ambiguous_func"
+                 "p ambiguous_func"
 
 # Perform a test intended to verify the behavior where the number
 # of possible completions is very large.  The goal is not to verify
index 446d054ca47a094bde9a3b3c7f53d514191384c0..5d93e53ac4e04e9c33074faf7fe6c598ec1f77d1 100644 (file)
@@ -26,4 +26,3 @@ begin
    Aux_Pck.Ambiguous_Proc;
    Pck.Ambiguous_Func;
 end Foo;
-
index a0db685b09c2a7e419d76c60cfec47bb8a6e10f6..599a1223643d3e7d0b8b83816307e32d9929a258 100644 (file)
@@ -33,7 +33,7 @@ clean_restart ${testfile}
 # Run to c_function an verify that the language automatically gets set to C.
 runto c_function
 gdb_test "show lang" \
-         "The current source language is \"auto; currently c\"\\."
+        "The current source language is \"auto; currently c\"\\."
 
 # Now, insert a breakpoint inside an Ada unit, using a condition written
 # in Ada. Even though the current language is "auto; currently c", we
@@ -41,13 +41,11 @@ gdb_test "show lang" \
 # current language mode is auto, and the breakpoint is inside Ada code.
 set bp_location [gdb_get_line_number "STOP" ${testdir}/mixed.adb]
 gdb_test "break mixed.adb:${bp_location} if light = green" \
-         "Breakpoint \[0-9\]* at .*: file (.*/)?mixed.adb, line \[0-9\]*\\."
+        "Breakpoint \[0-9\]* at .*: file (.*/)?mixed.adb, line \[0-9\]*\\."
 
 # Now, continue until we hit the breakpoint.  If the condition is
 # evaluated correctly, the first hit will be ignored, and the debugger
 # will stop at the second hit only, when the "light" argument is equal
 # to green.
 gdb_test "continue" \
-         "Breakpoint \[0-9\]*, mixed\\.break_me \\(light=green\\) at .*"
-
-
+        "Breakpoint \[0-9\]*, mixed\\.break_me \\(light=green\\) at .*"
index aeb28b8229ad391aa679a046f9cd0c9765975b54..55fb1a84fe9c877af043a379dd083964e129e5c2 100644 (file)
@@ -22,4 +22,3 @@ c_function (void)
 {
   callme ();
 }
-
index 7ea65a8d1e96e84b94e060b3afbf9187b16378cb..e34ab4ece07e260868d05dccaddddf0dfd21e059 100644 (file)
@@ -31,7 +31,7 @@ if {![runto "foo_n612_026.adb:$bp_location"]} {
 }
 
 gdb_test "print r" \
-         " = \\(n => 10, a => \\(10, 20, 30, 40, 50, 60, 70, 80, 90, 100\\)\\)"
+        " = \\(n => 10, a => \\(10, 20, 30, 40, 50, 60, 70, 80, 90, 100\\)\\)"
 
 gdb_test "print r.a" \
-         " = \\(10, 20, 30, 40, 50, 60, 70, 80, 90, 100\\)"
+        " = \\(10, 20, 30, 40, 50, 60, 70, 80, 90, 100\\)"
index 7b1933a9791e2971b20b590ee16ddbcbee724989..4c32dd51854b3a9542597ddd331e213499248b62 100644 (file)
@@ -21,5 +21,3 @@ package body Pck is
    end Do_Nothing;
 
 end Pck;
-
-
index 90ba348c4370a55109e21b3af34906b19998a0be..778ac5ad2808ca071cbef92affedcea3f851bbb8 100644 (file)
@@ -18,5 +18,3 @@ with System;
 package Pck is
    procedure Do_Nothing (A : System.Address);
 end Pck;
-
-
index f166e2add333b9827eabd1cd8fcb594907180d11..0affece86819e88636fa5f425121e748b219d17a 100644 (file)
@@ -33,4 +33,4 @@ runto "foo.adb:$bp_location"
 gdb_test_no_output "maintenance set ada ignore-descriptive-types"
 
 gdb_test "ptype array_type" \
-         " = array \\(5 \\.\\. 10\\) of natural" \
+        " = array \\(5 \\.\\. 10\\) of natural" \
index b8207644212e650a9c3453da5f7c9bee3a493eed..5ff2287779c4ad738458318f9073916fc700842b 100644 (file)
@@ -35,13 +35,12 @@ set eol "\r\n"
 set test "info locals"
 gdb_test_multiple "$test" "$test" {
     -re "i = \"AA\"${eol}s = \"        \"" {
-        pass $test
+       pass $test
     }
     -re "i = \"AA\"${eol}.*${eol}s = \"        \"" {
-        # The debugger printed the two local variable correctly, but
-        # it probably failed to NOT print some variables internally
-        # generated by the compiler.  This is a known issue.
-        xfail $test
+       # The debugger printed the two local variable correctly, but
+       # it probably failed to NOT print some variables internally
+       # generated by the compiler.  This is a known issue.
+       xfail $test
     }
 }
-
index 95ec606b3b8df8b9c5773c627aaa7c6b02de9415..b25a56910da7665060b2b4f5aa1281d8fc5766f8 100644 (file)
@@ -31,16 +31,16 @@ if {![runto "foo.adb:$bp_location"]} {
 }
 
 gdb_test "print A1(1)" \
-         "\\(i => 0, s => \"\"\\)"
+        "\\(i => 0, s => \"\"\\)"
 
 gdb_test "print A1(2)" \
-         "\\(i => 1, s => \"A\"\\)"
+        "\\(i => 1, s => \"A\"\\)"
 
 gdb_test "print A1(3)" \
-         "\\(i => 2, s => \"AB\"\\)"
+        "\\(i => 2, s => \"AB\"\\)"
 
 gdb_test "print A1(1..3)" \
-         "\\(\\(i => 0, s => \"\"\\), \\(i => 1, s => \"A\"\\), \\(i => 2, s => \"AB\"\\)\\)"
+        "\\(\\(i => 0, s => \"\"\\), \\(i => 1, s => \"A\"\\), \\(i => 2, s => \"AB\"\\)\\)"
 
 # Test the use of the "repeat" operator (@).
 #
@@ -59,4 +59,4 @@ gdb_test "print A1(1..3)" \
 # of the array).
 
 gdb_test "print a1(1)@3" \
-         " = \\(\\(i => 0, s => \"\"\\), \\(i => -?$decimal, s => .*\\), \\(i => -?$decimal, s => .*\\)\\)"
+        " = \\(\\(i => 0, s => \"\"\\), \\(i => -?$decimal, s => .*\\), \\(i => -?$decimal, s => .*\\)\\)"
index 40047f4f6405763bf984aa4ebef301c50b62bf28..b2dc3bf0fb77f34c63d32bd9ba5a90c2c633f1e4 100644 (file)
@@ -70,7 +70,7 @@ gdb_test "continue" \
     "continuing and stopping in Storage_Error exception handlers"
 
 gdb_test_no_output "delete 2" \
-                   "delete catchpoint on all Ada exceptions handlers"
+                  "delete catchpoint on all Ada exceptions handlers"
 
 ##################################################
 # 2. Try catching some named exception handlers. #
@@ -79,8 +79,8 @@ gdb_test_no_output "delete 2" \
 # Insert a catchpoint on Program_Error Ada exception handlers.
 
 gdb_test "catch handlers Program_Error" \
-         "Catchpoint $decimal: `Program_Error' Ada exception handlers" \
-         "insert catchpoint on Program_Error Ada exception handlers"
+        "Catchpoint $decimal: `Program_Error' Ada exception handlers" \
+        "insert catchpoint on Program_Error Ada exception handlers"
 
 # Continue, we should not stop at ABORT_SIGNAL but at Program_Error one.
 
@@ -95,8 +95,8 @@ gdb_test_no_output \
 # Insert a catchpoint on Storage_Error Ada exception handlers.
 
 gdb_test "catch handlers Storage_Error" \
-         "Catchpoint $decimal: `Storage_Error' Ada exception handlers" \
-         "insert catchpoint on Storage_Error Ada exception handlers"
+        "Catchpoint $decimal: `Storage_Error' Ada exception handlers" \
+        "insert catchpoint on Storage_Error Ada exception handlers"
 
 # Continue, we should stop at Storage_Error handlers.
 
@@ -115,13 +115,13 @@ gdb_test_no_output \
 # Insert a catchpoint on all Ada exceptions handlers with condition.
 
 gdb_test "catch handlers if Global_Var = 2" \
-         "Catchpoint $decimal: all Ada exceptions handlers" \
-         "insert catchpoint on all Ada exception handlers with condition"
+        "Catchpoint $decimal: all Ada exceptions handlers" \
+        "insert catchpoint on all Ada exception handlers with condition"
 
 # Check that condition is stored and properly displayed.
 
 gdb_test "info breakpoint" "stop only if Global_Var = 2" \
-         "Check catch handlers with condition"
+        "Check catch handlers with condition"
 
 # Continue, we should not stop at ABORT_SIGNAL but at Program_Error one.
 
@@ -154,5 +154,5 @@ gdb_test "continue" \
 # Continue, the program should exit properly.
 
 gdb_test "continue" \
-         "Continuing\\..*$inferior_exited_re.*" \
-         "continuing to program completion"
+        "Continuing\\..*$inferior_exited_re.*" \
+        "continuing to program completion"
index b67f6d49c06babd6784b769090bbba63bf699359..8f64be3acdc53dc55382155820b102859248948c 100644 (file)
@@ -56,8 +56,8 @@ if { [gdb_start_cmd] < 0 } {
 }
 
 gdb_test "" \
-         "first \\(\\) at .*first.adb.*" \
-         "start first"
+        "first \\(\\) at .*first.adb.*" \
+        "start first"
 
 # Restore first executable to its original name, and move
 # second executable into its place.  Ensure that the new
@@ -78,8 +78,8 @@ if { [gdb_start_cmd] < 0 } {
     fail "start second"
 } else {
     gdb_test "" \
-             "second \\(\\) at .*second.adb.*" \
-             "start second"
+            "second \\(\\) at .*second.adb.*" \
+            "start second"
 }
 
 # Try again, this time with just changing the file time of first.
index 83e398a830279e22065b43faa1ae6c17d4cc63b0..332cc811df2f93ec1d1680fda7a13071321e8f8a 100644 (file)
@@ -36,32 +36,32 @@ gdb_run_cmd
 gdb_test "" "Breakpoint $decimal, foo \\(\\).*" \
     "run to foo"
 gdb_test "continue" \
-         "Continuing\\..*Breakpoint $decimal, foo \\(\\).*"
+        "Continuing\\..*Breakpoint $decimal, foo \\(\\).*"
 
 # Make sure that "thread" may be used as a variable without being mistaken
 # for an expression delimiter.
 gdb_test "print thread" \
-         "= 1" \
-         "print variable 'thread'"
+        "= 1" \
+        "print variable 'thread'"
 
 gdb_test_no_output "delete 1"
 
 gdb_test "watch thread" \
-         ".*atchpoint \[0-9\]+: thread" \
-         "set plain watchpoint on variable 'thread'"
+        ".*atchpoint \[0-9\]+: thread" \
+        "set plain watchpoint on variable 'thread'"
 
 # Make sure that 'if' when followed by an expression beginning
 # with 'i' works.
 gdb_test "watch thread if i = 2" \
-         ".*atchpoint \[0-9\]+: thread" \
-         "set conditional watchpoint."
+        ".*atchpoint \[0-9\]+: thread" \
+        "set conditional watchpoint."
 
 gdb_test "info break" \
-         ".*${ws}.*atchpoint${ws}keep${ws}y${ws}thread${ws}.*atchpoint${ws}keep${ws}y${ws}thread${ws}stop only if i = 2" \
-         "check that watchpoint is set correctly."
+        ".*${ws}.*atchpoint${ws}keep${ws}y${ws}thread${ws}.*atchpoint${ws}keep${ws}y${ws}thread${ws}stop only if i = 2" \
+        "check that watchpoint is set correctly."
 
 # Check for right error when using both 'if' and 'thread' clauses.
 
 gdb_test "break foo.adb:$bp_location if thread = 10 thread 999" \
-         ".*Unknown thread 999\\." \
-         "combination of 'if' and 'thread' delimiters."
+        ".*Unknown thread 999\\." \
+        "combination of 'if' and 'thread' delimiters."
index 8df4b1795b3ba0dc47c5bcb96d15bcfaf7aa3ab6..ba12a53670388bdc84693a099ddb250c565eb014 100644 (file)
@@ -20,4 +20,3 @@ procedure Expr_R821_013 is
 begin
    Do_Nothing (Val'Address); -- STOP
 end Expr_R821_013;
-
index fcc7b40f47899870140d0bad99cb8d705020953b..d71a31f0ebc911b97b5271c2d0618f44f1aed7ec 100644 (file)
@@ -33,8 +33,8 @@ runto "bar.f"
 # to display, depending on the ABI.  The objective of the test is
 # to verify that we don't crash, so keep the expected output simple...
 gdb_test "finish" \
-         ".*Value returned.*"
+        ".*Value returned.*"
 
 # Verify that GDB is still alive...
 gdb_test "print 1" \
-         "= 1"
+        "= 1"
index 06baad58eb1584d25a7f68e148c1e0905e53fb72..7486dcc10c6b971ab478912c8170f711bcc2faac 100644 (file)
@@ -40,7 +40,7 @@ set value [string_to_regexp "= (defined => true, payload => true)"]
 # With some ABIs the return value cannot be determined.  Accept this,
 # or the correct result.
 gdb_test "finish" \
-         "Value returned .*($value|Cannot determine contents)"
+        "Value returned .*($value|Cannot determine contents)"
 
 # Test that an inferior call yields the correct result.
 gdb_test "print pck.get(True)" $value
index 0fe52dcc09e3a9b1bcbfadd5e4c4aa61ae495fb6..0385f8ee8473806df723f9863064aa7f64f25fde 100644 (file)
@@ -32,16 +32,16 @@ foreach_gnat_encoding gnat_encodings flags {all minimal} {
     runto "fixed.adb:$bp_location"
 
     gdb_test "print My_Var > 10.0" \
-             "= true"
+            "= true"
 
     gdb_test "print My_Var > 20.0" \
-             "= false"
+            "= false"
 
     # Do the same, but with integer values.
 
     gdb_test "print My_Var > 10" \
-             "= true"
+            "= true"
 
     gdb_test "print My_Var > 20" \
-             "= false"
+            "= false"
 }
index 06ff0af5c845a106c9f588b6c65086d3a1c14785..00c95106974b5bfef2639042c44c20d73c7f21f7 100644 (file)
@@ -19,4 +19,3 @@ package body Pck is
       null;
    end Do_Nothing;
 end pck;
-
index 74a8144051c42416174fa96819561bad69fb7dd3..e292644472aabecfaeafc2d64c51214e849d0570 100644 (file)
@@ -36,4 +36,3 @@ package Pck is
 
    procedure Do_Nothing (A : System.Address);
 end pck;
-
index 3b0c78b13908eb0347429eba9ca7376a17e81d11..2299fd3c098e4b894940161f7410f727b50f95b4 100644 (file)
@@ -29,10 +29,10 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/fixed_points_function.adb
 runto "fixed_points_function.adb:$bp_location"
 
 gdb_test "print call_fp1(1)" \
-         " = 1"
+        " = 1"
 
 gdb_test "print call_fp1(0.5)" \
-         " = 0.5"
+        " = 0.5"
 
 gdb_test "print call_fp1(-0.5)" \
-         " = -0.5"
+        " = -0.5"
index 8b5fc4375e4e9d092da6c87b01d96ada0077ecd8..78384fa56b4c8cd7077ca60b4be09b7cf1bdd306 100644 (file)
@@ -30,14 +30,12 @@ runto "foo.adb:$bp_location"
 
 gdb_test_no_output "call set_float(2.0)"
 gdb_test "print global_float" \
-         " = 2\\.0"
+        " = 2\\.0"
 
 gdb_test_no_output "call set_double(1, 3.0)"
 gdb_test "print global_double" \
-         " = 3\\.0"
+        " = 3\\.0"
 
 gdb_test_no_output "call set_long_double(1, global_small_struct, 4.0)"
 gdb_test "print global_long_double" \
-         " = 4\\.0"
-
-
+        " = 4\\.0"
index 08e56cee0efec9637cc9cb9fc22ab2587a26c480..b1ea6ea4130ac0ad0d944463d11caf1f8fd74918 100644 (file)
@@ -41,8 +41,8 @@ proc get_address { var } {
 
     gdb_test_multiple "print $var'access" "address of $var" {
        -re "\\$\[0-9\]+ = \\(.*\\) (0x\[0-9a-f\]+).*$gdb_prompt $" {
-            return $expect_out(1,string)
-        }
+           return $expect_out(1,string)
+       }
     }
     return ""
 }
@@ -52,15 +52,15 @@ proc test_p_x { var val addr } {
 
     set test "print/x $var"
     gdb_test_multiple "$test" $test {
-        -re "\\$\[0-9\]+ = [string_to_regexp $val].*$gdb_prompt $" {
+       -re "\\$\[0-9\]+ = [string_to_regexp $val].*$gdb_prompt $" {
            pass $test
        }
        -re "\\$\[0-9\]+ = $addr.*$gdb_prompt $" {
-            fail "$test (prints just address)"
-        }
+           fail "$test (prints just address)"
+       }
        -re "\\$\[0-9\]+ = 0x\[a-f0-9\]+.*$gdb_prompt $" {
-            fail "$test (prints unexpected address)"
-        }
+           fail "$test (prints unexpected address)"
+       }
     }
     return 0
 }
index 9f8badd0276dd0d43970a605b4e23d21c00c15ec..701a8a1a5f510457c44b43207e9ed856876d5e72 100644 (file)
@@ -37,10 +37,8 @@ if {![runto break_me]} {
 # First, print all the arrays without indexes
 
 gdb_test_no_output "set print frame-arguments scalars" \
-         "set print frame-arguments scalars"
+        "set print frame-arguments scalars"
 
 gdb_test "frame 1" \
-         "#1$sp$any_addr in pck.call_me \\(int=1, flt=2.0, bln=true, ary=\\.\\.\\., chr=106 'j', sad=\\(system.address\\) $any_addr, rec=\\.\\.\\.\\).*" \
-         "display frame 1 with frame-arguments set to scalars"
-
-
+        "#1$sp$any_addr in pck.call_me \\(int=1, flt=2.0, bln=true, ary=\\.\\.\\., chr=106 'j', sad=\\(system.address\\) $any_addr, rec=\\.\\.\\.\\).*" \
+        "display frame 1 with frame-arguments set to scalars"
index 3fddae8963b38a04ed6a62224c826b5163e63b3a..ba9ebac368f500e3b65fb33d08c320a47bcd00b0 100644 (file)
@@ -33,4 +33,3 @@ package body Pck is
    end Call_Me;
 
 end Pck;
-
index abb380c873a7041e80eb20ad4394cc984c825902..9914553dec181ee18f56a29d12ca0b338f16258b 100644 (file)
@@ -34,4 +34,3 @@ package Pck is
                       Rec : Struct);  -- Non scalar
 
 end Pck;
-
index 7729c63fec756c0adf3634127ba654d75063fc17..ae0f7d21683e46a39b3190dca4419233b8762ca2 100644 (file)
@@ -31,7 +31,7 @@ clean_restart ${testfile}
 # Break on "pck.hello" rather than just "hello" to make sure we trigger
 # the non-wild symbol lookup.
 gdb_test "break pck.hello" \
-         "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*pck.adb, line \[0-9\]+."
+        "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*pck.adb, line \[0-9\]+."
 
 # Do the same, but this time using a linespec where the user also
 # provided a filename.
@@ -39,7 +39,7 @@ gdb_test "break pck.hello" \
 clean_restart ${testfile}
 
 gdb_test "break pck.adb:pck.hello" \
-         "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*pck.adb, line \[0-9\]+."
+        "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*pck.adb, line \[0-9\]+."
 
 # Same scenarios as above, but with a function name that is spelled
 # with upper-case letters.
@@ -47,9 +47,9 @@ gdb_test "break pck.adb:pck.hello" \
 clean_restart ${testfile}
 
 gdb_test "break Pck.Hello" \
-         "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*pck.adb, line \[0-9\]+."
+        "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*pck.adb, line \[0-9\]+."
 
 clean_restart ${testfile}
 
 gdb_test "break pck.adb:Pck.Hello" \
-         "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*pck.adb, line \[0-9\]+."
+        "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*pck.adb, line \[0-9\]+."
index cf218e2981159d617be23eb5d051906b467c1225..d2b823c6e3e6e8e401a53d95bdee8b58bb59c53a 100644 (file)
@@ -31,5 +31,3 @@ package body Pck is
       null;
    end There;
 end Pck;
-
-
index f2c7f6d88ebb00837f9468f04be102a5acf629e6..1cfc167d054ba12a0b51401d5c262770955097aa 100644 (file)
@@ -19,4 +19,3 @@ package Pck is
    --  The name of that procedure needs to be greater (in terms
    --  of alphabetical order) than the name of the procedure above.
 end Pck;
-
index 2d86fd43fd22b8646ec18b24150639a444062f39..ed22a9d65b7c29612d4a9feeacd5291cfb279225 100644 (file)
@@ -29,4 +29,4 @@ clean_restart ${testfile}
 # the inferior is *not* running (no frame).
 
 gdb_test "print foo'address" \
-         "= .* 0x\[0-9a-zA-Z\]+ <foo>"
+        "= .* 0x\[0-9a-zA-Z\]+ <foo>"
index edd231821e6b93f7ce086f688573bf08cc6f62e0..60f761048de0839b922013d90547ecf72b6646a2 100644 (file)
@@ -36,10 +36,9 @@ set any_addr "0x\[0-9a-zA-Z\]+"
 
 set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
 gdb_test "break foo.adb:$bp_location" \
-         "Breakpoint $any_nb at $any_addr: file .*foo.adb, line $any_nb." \
-         "insert breakpoint inside foo.call_me"
+        "Breakpoint $any_nb at $any_addr: file .*foo.adb, line $any_nb." \
+        "insert breakpoint inside foo.call_me"
 
 gdb_test "continue" \
-         ".*Breakpoint $any_nb, foo\\.call_me \\(\\) at .*foo.adb:$any_nb.*" \
-         "decoding of function name"
-
+        ".*Breakpoint $any_nb, foo\\.call_me \\(\\) at .*foo.adb:$any_nb.*" \
+        "decoding of function name"
index 7bafd09ec0468c9402d2c6f8d7a20cb296699713..117f1ffb8cd483b6f496a56f11c41076c317897e 100644 (file)
@@ -44,17 +44,17 @@ proc test_menu {expr function first second selection output} {
                   "> $"]
     set test_name "multiple matches for $function {$expr}"
     gdb_test_multiple "print $expr" "$test_name" {
-        -re "$menu1" {
-            pass "$test_name"
-        }
-        -re "$menu2" {
-            pass "$test_name"
+       -re "$menu1" {
+           pass "$test_name"
+       }
+       -re "$menu2" {
+           pass "$test_name"
            # Make sure we pick the correct one.
            set selection [expr {3 - $selection}]
-        }
-        default {
-            fail "$test_name"
-        }
+       }
+       default {
+           fail "$test_name"
+       }
     }
     gdb_test "$selection" "$output"
 }
index 9d84a572cb725eccb8c6a5d6b0b2dcd1be292f7a..05e0c2926f7e9efc0518003b32e5477af4391342 100644 (file)
@@ -38,48 +38,48 @@ gdb_test "print fun_rename_test_next(1)" " = 2"
 set test "print fun_rename_test_n(1)"
 gdb_test_multiple $test $test {
     -wrap -re " = 2"  {
-        pass $test
+       pass $test
     }
     -wrap -re "No definition of \"fun_rename_test_n\" in current context\\." {
        if {[gnat_version_compare >= 6]} {
-            fail $test
-        } else {
-            xfail $test
-        }
+           fail $test
+       } else {
+           xfail $test
+       }
     }
 
 }
 set test "print renamed_fun_rename_test_next(1)"
 gdb_test_multiple $test $test {
     -wrap -re " = 2" {
-        pass $test
+       pass $test
     }
     -wrap -re "No definition of \"renamed_fun_rename_test_next\" in current context\\." {
        if {[gnat_version_compare >= 6]} {
-            fail $test
-        } else {
-            xfail $test
-        }
+           fail $test
+       } else {
+           xfail $test
+       }
     }
 }
 
 set test "print pack.renamed_fun_rename_test_next(1)"
 gdb_test_multiple $test $test {
     -wrap -re " = 2" {
-        pass $test
+       pass $test
     }
     -wrap -re "No definition of \"pack\\.renamed_fun_rename_test_next\" in current context\\." {
        if {[gnat_version_compare >= 6]} {
-            fail $test
-        } else {
-            xfail $test
-        }
+           fail $test
+       } else {
+           xfail $test
+       }
     }
     -wrap -re "Type <data variable, no debug info> is not a structure or union type\\." {
        if {[gnat_version_compare >= 6]} {
-            fail $test
-        } else {
-            xfail $test
-        }
+           fail $test
+       } else {
+           xfail $test
+       }
     }
 }
index 10e5175a99b2ed10f9095567a5a06a0fe50a110d..e3e7fe553b28880201a1268e505c72a0bf068aed 100644 (file)
@@ -32,4 +32,4 @@ runto "foo.adb:$bp_location"
 # class-wide.
 
 gdb_test "p ident (ident (my_parameter))" \
-         "= \\(one => 1, two => 2, three => 3\\)" "value of ident"
+        "= \\(one => 1, two => 2, three => 3\\)" "value of ident"
index 8b93c12e4dec83db46147c053ffbf61c5a9c9aab..f20e990893252b85cb21354c90767461cdb1dd70 100644 (file)
@@ -29,7 +29,7 @@ set bp_location [gdb_get_line_number "BREAK" ${testdir}/foo.adb]
 runto "foo.adb:$bp_location"
 
 gdb_test "print pck.ga" " = \\(access integer\\) 0x0" \
-         "Check that initial value of GA is null"
+        "Check that initial value of GA is null"
 
 gdb_test_no_output "call pck.p(0x1234)"
 
@@ -39,4 +39,4 @@ gdb_test_no_output "call pck.p(0x1234)"
 # procedure hence should be 0x1234 after the call above.
 
 gdb_test "print pck.ga" " = \\(access integer\\) 0x1234" \
-         "Check that value of GA is 0x1234"
+        "Check that value of GA is 0x1234"
index ac3c22d4fba6ca8abde8d6f5149acfce50854169..778507c2cbec0b3ee3470e1854fbb9acb241897a 100644 (file)
@@ -51,24 +51,24 @@ runto "homonym.adb:$bp_location"
 # sure that the debugger doesn't get mixed up.
 
 gdb_test "ptype local_type" \
-         "type = range -100 \\.\\. 100" \
-         "ptype local_type at BREAK_1"
+        "type = range -100 \\.\\. 100" \
+        "ptype local_type at BREAK_1"
 
 gdb_test "ptype local_type_subtype" \
-         "type = range -100 \\.\\. 100" \
-         "ptype local_type_subtype at BREAK_1"
+        "type = range -100 \\.\\. 100" \
+        "ptype local_type_subtype at BREAK_1"
 
 gdb_test "ptype int_type" \
-         "type = range -100 \\.\\. 100" \
-         "ptype int_type at BREAK_1"
+        "type = range -100 \\.\\. 100" \
+        "ptype int_type at BREAK_1"
 
 gdb_test "ptype lcl" \
-         "type = range -100 \\.\\. 100" \
-         "ptype lcl at BREAK_1"
+        "type = range -100 \\.\\. 100" \
+        "ptype lcl at BREAK_1"
 
 gdb_test "print lcl" \
-         "= 29" \
-         "print lcl at BREAK_1"
+        "= 29" \
+        "print lcl at BREAK_1"
 
 # Now, continue until reaching BREAK_2, and do the same commands
 # as above.  The result should be different since the definitions
@@ -76,25 +76,25 @@ gdb_test "print lcl" \
 
 set bp_location [gdb_get_line_number "BREAK_2" ${testdir}/homonym.adb]
 gdb_test "break homonym.adb:$bp_location" \
-         "Breakpoint \[0-9\]+ at 0x\[0-9a-fA-F\]+: file .*homonym\\.adb, line \[0-9\]+\\." \
-         "break at BREAK_2"
+        "Breakpoint \[0-9\]+ at 0x\[0-9a-fA-F\]+: file .*homonym\\.adb, line \[0-9\]+\\." \
+        "break at BREAK_2"
 
 gdb_test "continue" \
-         ".*Breakpoint \[0-9\]+, homonym\\.get_value \\(\\) at .*homonym\\.adb:.*" \
-         "continue until BREAK_2"
+        ".*Breakpoint \[0-9\]+, homonym\\.get_value \\(\\) at .*homonym\\.adb:.*" \
+        "continue until BREAK_2"
 
 gdb_test "ptype local_type" \
-         "type = range 1 \\.\\. 19740804" \
-         "ptype local_type at BREAK_2"
+        "type = range 1 \\.\\. 19740804" \
+        "ptype local_type at BREAK_2"
 
 gdb_test "ptype local_type_subtype" \
-         "type = range 1 \\.\\. 19740804" \
-         "ptype local_type_subtype at BREAK_2"
+        "type = range 1 \\.\\. 19740804" \
+        "ptype local_type_subtype at BREAK_2"
 
 gdb_test "ptype lcl" \
-         "type = range 1 \\.\\. 19740804" \
-         "ptype lcl at BREAK_2"
+        "type = range 1 \\.\\. 19740804" \
+        "ptype lcl at BREAK_2"
 
 gdb_test "print lcl" \
-         "= 17" \
-         "print lcl at BREAK_2"
+        "= 17" \
+        "print lcl at BREAK_2"
index 656c81e2c37fdd4337fea63d784c8b85465ad996..b73846c8eb69c2e31336d0e9a735e027b106cf96 100644 (file)
@@ -21,4 +21,3 @@ package body Pck is
    end Do_Nothing;
 
 end Pck;
-
index af0c2aa688e2307028ab61a9b72b3117af4aa20b..650b0d52b23d6185b39ecfea7b9792376e0b0c1f 100644 (file)
@@ -32,4 +32,3 @@ package Pck is
    procedure Do_Nothing (A : System.Address);
 
 end Pck;
-
index ea561e7d80101c35c3efa0f426234afad110a4ba..3520ab4f272330c6001ed146110e0bdc019f6fc6 100644 (file)
@@ -160,4 +160,3 @@ foreach_with_prefix language_choice { "auto" "ada" "c" } {
        }
     }
 }
-
index b3ed9959a28028fd92010db7f7e3dd4c029f2113..8d1f06d7b75fc0fc66ec41a08d3b5c5a01b13f24 100644 (file)
@@ -31,24 +31,24 @@ if {![runto_main]} {
 
 gdb_test "info exceptions" \
     [multi_line "All defined Ada exceptions:" \
-                "constraint_error: $hex" \
-                "program_error: $hex" \
-                "storage_error: $hex" \
-                "tasking_error: $hex" \
-                ".*\[\r\n\]*const.aint_global_gdb_e: $hex\[\r\n\]*.*" ]
+               "constraint_error: $hex" \
+               "program_error: $hex" \
+               "storage_error: $hex" \
+               "tasking_error: $hex" \
+               ".*\[\r\n\]*const.aint_global_gdb_e: $hex\[\r\n\]*.*" ]
 
 gdb_test "info exceptions task" \
     [multi_line "All Ada exceptions matching regular expression \"task\":" \
-                "tasking_error: $hex"]
+               "tasking_error: $hex"]
 
 gdb_test "info exceptions global_gdb" \
     [multi_line "All Ada exceptions matching regular expression \"global_gdb\":" \
-                "const.aint_global_gdb_e: $hex"]
+               "const.aint_global_gdb_e: $hex"]
 
 gdb_test "info exceptions const.aint" \
     [multi_line "All Ada exceptions matching regular expression \"const\\.aint\":" \
-                "constraint_error: $hex" \
-                "const.aint_global_gdb_e: $hex"]
+               "constraint_error: $hex" \
+               "const.aint_global_gdb_e: $hex"]
 
 foreach cmd {exception handlers} {
     gdb_test "complete catch $cmd const.a" \
index 9c33e944d90476981dbe3b73ba6e4fa4ea18c33d..eb79704a9f4c326a42b7253b44035deb0bc02259 100644 (file)
@@ -29,4 +29,3 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
 runto "foo.adb:$bp_location"
 
 gdb_test "info locals" "gv = 1"
-
index 34c7447d1d0205f738a4003f81ae9f588c309cf4..6de9100e089c9d436c0edc02dad3ed73e989a915 100644 (file)
@@ -31,4 +31,3 @@ main (void)
   do_something(&toto);
   return 0;
 }
-
index 24d7c8f467d8183d5b4f3988102fbfba50c73727..476c69363215e5dc12a143a352f637b42029869d 100644 (file)
@@ -29,5 +29,4 @@ gdb_test "set lang ada" ""
 set eol "\r\n"
 
 gdb_test "info types new_integer_type" \
-         "All types matching regular expression \"new_integer_type\":${eol}${eol}File .*info_types.c:${eol}.*\tint"
-
+        "All types matching regular expression \"new_integer_type\":${eol}${eol}File .*info_types.c:${eol}.*\tint"
index c3ecea869ce4d8568ccf50fa2783c951da867873..7308e787648fc1e2f7459adc0afabce59516a31c 100644 (file)
@@ -31,11 +31,10 @@ runto "foo.adb:$bp_location"
 # Hijack a bit this testcase, to verify that name decoding works
 # when doing symbolic address printing.
 gdb_test "print watch'address" \
-         " = \\(system\\.address\\) $hex <pck\\.watch>"
+        " = \\(system\\.address\\) $hex <pck\\.watch>"
 
 gdb_test "print *long_integer(watch'address)" \
-         " = 4874"
+        " = 4874"
 
 gdb_test "print long_integer(watch'address).all" \
-         " = 4874"
-
+        " = 4874"
index e038c47d087d8d0ad3bd35600733209cad845f53..b46cf576b517f7390160155f63cbaf2160d91b60 100644 (file)
@@ -31,10 +31,10 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
 runto "foo.adb:$bp_location"
 
 gdb_test "print r" \
-         "= \\(x => 1, y => 2, w => 3, h => 4\\)"
+        "= \\(x => 1, y => 2, w => 3, h => 4\\)"
 
 gdb_test "print s" \
-         "= \\(x => 1, y => 2, w => 3, h => 4\\)"
+        "= \\(x => 1, y => 2, w => 3, h => 4\\)"
 
 set r_re "r = \[^\r\n\]*"
 set s_re "s = \[^\r\n\]*"
index 0c0da6d7ad90932251285ded8fc03b7d149b1780..f28d89ee7b537f02ace5e5a3b1eaae33e35b2aeb 100644 (file)
@@ -22,4 +22,3 @@ begin
    Do_Nothing (R);  -- STOP
    Do_Nothing (S);
 end Foo;
-
index 43d54e146ff283daa6de04a7098b5f463d4ab100..f967d846f26061e42c7d15b23ca2774c357200ec 100644 (file)
@@ -26,4 +26,3 @@ package body Types is
    end Do_Nothing;
 
 end Types;
-
index e0fdabab217e169c0039bae468ff8d4958e528aa..e7a46b2cb2074a9985daeb4eb40b086df44870ee 100644 (file)
@@ -39,4 +39,3 @@ package Types is
    end record;
 
 end Types;
-
index a2a049f7f2e0a7819514d873f1598c00c019b054..3029f8978c48c6a43a17be7636a9295b8b15fa41 100644 (file)
@@ -52,16 +52,16 @@ gdb_test_multiple "" "Runto to $bp_location" {
 }
 
 gdb_test "print My_Drawable" \
-         "= \\(center => \\(x => 1, y => 2\\), radius => 3\\)"
+        "= \\(center => \\(x => 1, y => 2\\), radius => 3\\)"
 
 gdb_test "print s_access.all" \
-         "\\(center => \\(x => 1, y => 2\\), radius => 3\\)"
+        "\\(center => \\(x => 1, y => 2\\), radius => 3\\)"
 
 gdb_test "print sp_access.all" \
-         "\\(center => \\(x => 1, y => 2\\), radius => 3\\)"
+        "\\(center => \\(x => 1, y => 2\\), radius => 3\\)"
 
 gdb_test "print d_access.all" \
-         "\\(center => \\(x => 1, y => 2\\), radius => 3\\)"
+        "\\(center => \\(x => 1, y => 2\\), radius => 3\\)"
 
 gdb_test "print dp_access.all" \
-         "\\(center => \\(x => 1, y => 2\\), radius => 3\\)"
+        "\\(center => \\(x => 1, y => 2\\), radius => 3\\)"
index 70f5d0ba7992f563f279bb5ccf58930328fb6c90..7f40c29ec5d00990892f1089b7736cad94b2872a 100644 (file)
@@ -37,8 +37,8 @@ gdb_test_no_output "set print frame-arguments all"
 # Make sure that the language is switched to Ada for the second frame
 # by checking the string parameter.
 gdb_test "bt" \
-         ".*#1.*lang_switch\\.ada_procedure\\s*\\(msg=\"msg\"\\).*" \
-         "backtrace"
+        ".*#1.*lang_switch\\.ada_procedure\\s*\\(msg=\"msg\"\\).*" \
+        "backtrace"
 
 # Now, make sure that the language doesn't get automatically switched
 # if the current language is not "auto".
@@ -47,5 +47,5 @@ gdb_test "set lang c"
 # -fgnat-encodings=all, but since we don't care so much about the
 # precise details here, we just accept anything.
 gdb_test "bt" \
-         ".*#1.*lang_switch\\.ada_procedure\\s*\\(msg=(@$hex: +)?.*\\).*" \
-         "backtrace with lang set to C"
+        ".*#1.*lang_switch\\.ada_procedure\\s*\\(msg=(@$hex: +)?.*\\).*" \
+        "backtrace with lang set to C"
index b269ce2d1d84d016223c15e1d1c05c1be834de57..c7e78e51629b81c125bb368ef5588938cc1094a9 100644 (file)
@@ -34,4 +34,3 @@ begin
    Do_Nothing (Large_1d_Array'Address);
    Do_Nothing (Large_3d_Array'Address); -- STOP
 end Foo;
-
index d011ca58da2abee1ddfd7c2042ff01980e714bae..eb5ffec909a6d51bb4cd9db9935e5a16aa7d5541 100644 (file)
@@ -43,15 +43,15 @@ if {[mi_runto_main] < 0} {
 }
 
 mi_gdb_test "-catch-assert -c \"Global_Var = 2\"" \
-            "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"failed Ada assertions\",.*,cond=\"Global_Var = 2\",.*}" \
-            "catch assert failures with condition"
+           "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"failed Ada assertions\",.*,cond=\"Global_Var = 2\",.*}" \
+           "catch assert failures with condition"
 
 set bp_location [gdb_get_line_number "STOP" ${testdir}/bla.adb]
 mi_execute_to "exec-continue" \
-              "\"breakpoint-hit\",disp=\"keep\",bkptno=\"$decimal\"" \
-              "bla" "" ".*" "$bp_location" \
-              ".*" \
-              "continue to assert failure catchpoint hit"
+             "\"breakpoint-hit\",disp=\"keep\",bkptno=\"$decimal\"" \
+             "bla" "" ".*" "$bp_location" \
+             ".*" \
+             "continue to assert failure catchpoint hit"
 
 # Exit the inferior.
 mi_send_resuming_command "exec-continue" "continuing to inferior exit"
index 62409d58d13db0d7c216949436b7f3e81db9c6a7..3f48421e8e14ecabb33339f9d47efc8069886718 100644 (file)
@@ -16,4 +16,3 @@
 package Pck is
    Global_Var : Integer := 0;
 end Pck;
-
index 974da0d72c967519565b884de3eeab2faf6f2d14..d1bd9ed645bccd7138d4e6c44a0f8aba8bf2bc07 100644 (file)
@@ -43,8 +43,8 @@ with_test_prefix "scenario 1" {
 }
 
 mi_gdb_test "-catch-exception" \
-            "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"all Ada exceptions\",.*}" \
-            "catch all exceptions"
+           "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"all Ada exceptions\",.*}" \
+           "catch all exceptions"
 
 # Continue to caught exception.
 
@@ -101,32 +101,31 @@ with_test_prefix "scenario 2" {
 }
 
 mi_gdb_test "-catch-exception -e Program_Error" \
-            "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"`Program_Error' Ada exception\",.*}" \
-            "catch Program_Error"
+           "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"`Program_Error' Ada exception\",.*}" \
+           "catch Program_Error"
 
 mi_gdb_test "-catch-assert" \
-            "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"failed Ada assertions\",.*}" \
-            "catch assert failures"
+           "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"failed Ada assertions\",.*}" \
+           "catch assert failures"
 
 mi_gdb_test "-catch-exception -u" \
-            "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"unhandled Ada exceptions\",.*}" \
-            "catch unhandled exceptions"
+           "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"unhandled Ada exceptions\",.*}" \
+           "catch unhandled exceptions"
 
 mi_execute_to "exec-continue" \
-              "\"breakpoint-hit\",disp=\"keep\",bkptno=\"$any_nb\",exception-name=\"PROGRAM_ERROR(\",exception-message=\"foo\\.adb:$decimal explicit raise)?\"" \
-              "foo" "" ".*" ".*" \
-              ".*" \
-              "continue to exception catchpoint hit"
+             "\"breakpoint-hit\",disp=\"keep\",bkptno=\"$any_nb\",exception-name=\"PROGRAM_ERROR(\",exception-message=\"foo\\.adb:$decimal explicit raise)?\"" \
+             "foo" "" ".*" ".*" \
+             ".*" \
+             "continue to exception catchpoint hit"
 
 mi_execute_to "exec-continue" \
-              "\"breakpoint-hit\",disp=\"keep\",bkptno=\"$any_nb\"" \
-              "foo" "" ".*" ".*" \
-              ".*" \
-              "continue to assert failure catchpoint hit"
+             "\"breakpoint-hit\",disp=\"keep\",bkptno=\"$any_nb\"" \
+             "foo" "" ".*" ".*" \
+             ".*" \
+             "continue to assert failure catchpoint hit"
 
 mi_execute_to "exec-continue" \
-              "\"breakpoint-hit\",disp=\"keep\",bkptno=\"$any_nb\",exception-name=\"CONSTRAINT_ERROR\"" \
-              "foo" "" ".*" ".*" \
-              ".*" \
-              "continue to unhandled exception catchpoint hit"
-
+             "\"breakpoint-hit\",disp=\"keep\",bkptno=\"$any_nb\",exception-name=\"CONSTRAINT_ERROR\"" \
+             "foo" "" ".*" ".*" \
+             ".*" \
+             "continue to unhandled exception catchpoint hit"
index f853f6bb561a921f48934abcbd3e37a730ca93fc..330079594ead9153b4998496e1568646cdcc4df7 100644 (file)
@@ -39,8 +39,8 @@ with_test_prefix "scenario 1" {
 }
 
 mi_gdb_test "-catch-handlers" \
-            "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"all Ada exceptions handlers\",.*}" \
-            "catch all exceptions handlers"
+           "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"all Ada exceptions handlers\",.*}" \
+           "catch all exceptions handlers"
 
 # Continue to exception handler.
 
@@ -55,7 +55,7 @@ proc continue_to_exception_handler { test line } {
        "\"breakpoint-hit\",disp=\"keep\",bkptno=\"$decimal\",exception-name=\"exception\"" \
        "foo" "" ".*" "$line" \
        ".*" \
-        $test
+       $test
 }
 
 # We don't have the exception name info when stopping at the exception handlers
@@ -91,14 +91,14 @@ with_test_prefix "scenario 2" {
 }
 
 mi_gdb_test "-catch-handlers -e Constraint_Error" \
-            "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"`Constraint_Error' Ada exception handlers\",.*}" \
-            "catch Constraint_Error"
+           "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"`Constraint_Error' Ada exception handlers\",.*}" \
+           "catch Constraint_Error"
 
 mi_execute_to "exec-continue" \
-              "\"breakpoint-hit\",disp=\"keep\",bkptno=\"$decimal\",exception-name=\"exception\"" \
-              "foo" "" ".*" "$bp_ce_location" \
-              ".*" \
-              "continue to exception catchpoint hit"
+             "\"breakpoint-hit\",disp=\"keep\",bkptno=\"$decimal\",exception-name=\"exception\"" \
+             "foo" "" ".*" "$bp_ce_location" \
+             ".*" \
+             "continue to exception catchpoint hit"
 
 # Exit the inferior.
 mi_send_resuming_command "exec-continue" "continuing to inferior exit"
index f56a0d3898e63d5170ff5367925f556206e4d9c6..c141fe5bcac246faabbaaa723a590fe81e4abb15 100644 (file)
@@ -21,4 +21,3 @@ procedure Foo is
 begin
    Do_Nothing (BT'Address);  -- STOP
 end Foo;
-
index 51bea38998f849b9b377b31a4cc5d3d6bbff930b..c8ab260475671ea793ed81908a7fafd20f2d3152 100644 (file)
@@ -38,8 +38,8 @@ if {[mi_clean_restart $::testfile]} {
 # catchpoint that uses both conditions and exception name.
 
 mi_gdb_test "-catch-exception -c \"i = 2\" -e constraint_error" \
-            "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"`constraint_error' Ada exception\",.*,cond=\"i = 2\",.*}" \
-            "catch C_E if i = 2"
+           "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"`constraint_error' Ada exception\",.*,cond=\"i = 2\",.*}" \
+           "catch C_E if i = 2"
 
 # It is important that we start the program's execution after having
 # inserted the exception catchpoint above.  We want to verify that
index 5358fcfa92d16120a98bf203ce71b60debd54fab..49507510053ad263057d786da3d8e79784383240 100644 (file)
@@ -51,4 +51,3 @@ mi_gdb_test "-info-ada-exceptions global_gdb" \
 mi_gdb_test "-info-ada-exceptions const.aint" \
   "\\^done,ada-exceptions={nr_rows=\"2\",nr_cols=\"2\",hdr=\\\[{width=\"1\",alignment=\"-1\",col_name=\"name\",colhdr=\"Name\"},{width=\"1\",alignment=\"-1\",col_name=\"address\",colhdr=\"Address\"}\\\],body=\\\[{name=\"constraint_error\",address=\"$hex\"},{name=\"const.aint_global_gdb_e\",address=\"$hex\"}\\\]}" \
   "-info-ada-exceptions const.aint"
-
index 3b1a37e306a02417a1a2dac507506796b0f0c07f..efa437adf3b1d202d8b0c760c6f651fa76333a60 100644 (file)
@@ -56,4 +56,3 @@ mi_gdb_test "-ada-task-info" \
 mi_gdb_test "-ada-task-info 3" \
   "\\^done,tasks={nr_rows=\"1\",nr_cols=\"8\",$ada_task_info_hdr,body=\\\[$task_3\\\]}" \
   "-ada-task-info 3"
-
index 2d77f6b7bed871e10129a503563a75f4fa3c6152..a66b271479d3b8dfd54b95fa44adfdfa2287a651 100644 (file)
@@ -32,13 +32,13 @@ if {![runto "_ada_foo_qb07_057"]} {
 gdb_test_no_output "set language ada"
 
 gdb_test "print some_minsym" \
-         "'some_minsym' has unknown type; cast it to its declared type"
+        "'some_minsym' has unknown type; cast it to its declared type"
 
 gdb_test "print integer(some_minsym)" \
-         " = 1234"
+        " = 1234"
 
 gdb_test "print &some_minsym" \
-         " = \\(access <data variable, no debug info>\\) $hex <some_minsym>"
+        " = \\(access <data variable, no debug info>\\) $hex <some_minsym>"
 
 gdb_test "print /x integer(&some_minsym)" \
-         " = $hex"
+        " = $hex"
index a8d70d3164a40f8b4b40657f8960e163ac28ed78..8cb3c38e940a3036aa6925bc83ae55c6c29b293c 100644 (file)
@@ -33,4 +33,3 @@ procedure Foo is
 begin
    Slice (4) := 4;  --  START
 end Foo;
-
index 3df5747c71e7fbf42eb1cdd38b23621876d17d05..d4762231856c5e346f3afcc3c89f519c9daf1b6e 100644 (file)
@@ -29,4 +29,4 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
 runto "foo.adb:$bp_location"
 
 gdb_test "ptype var" \
-         "= array \\(0 .. -1\\) of integer"
+        "= array \\(0 .. -1\\) of integer"
index 3e91e688d9ea9046e64f786dd8253e86ef293486..336f69ecd349abf9a256e061199f44c3d53b2f61 100644 (file)
@@ -31,8 +31,8 @@ set any_addr "0x\[0-9a-zA-Z\]+"
 # Try breaking on a nested function.
 
 gdb_test "break first" \
-         "Breakpoint $any_nb at $any_addr: file .*hello.adb, line $any_nb." \
-         "break on nested function First"
+        "Breakpoint $any_nb at $any_addr: file .*hello.adb, line $any_nb." \
+        "break on nested function First"
 
 gdb_test "break fourth" \
     "Breakpoint $any_nb at $any_addr: file .*hello.adb, line $any_nb." \
index 8f69a6cfa068f371444b552c4062d454fa017d77..bfd7b01d96fe43b2e9a35b3e8fe06de55924af2a 100644 (file)
@@ -26,20 +26,20 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug}] != ""} {
 clean_restart ${testfile}
 
 gdb_test "print /x <symada__cS>" \
-         "= \\(a => 0x60287af\\)" \
-         "print <symada__cS> before loading symbols from ver.ads"
+        "= \\(a => 0x60287af\\)" \
+        "print <symada__cS> before loading symbols from ver.ads"
 
 # Force the partial symbosl from ver.ads to be expanded into full symbols.
 
 gdb_test \
      "list ver.ads:16" \
      [multi_line ".*" \
-                 "16\\s+package Ver is" \
-                 "17\\s+type Wrapper is record" \
-                 "18\\s+A : Integer;" \
-                 "19\\s+end record;" \
-                 "20\\s+u00045 : constant Wrapper := \\(A => 16#060287af#\\);"]
+                "16\\s+package Ver is" \
+                "17\\s+type Wrapper is record" \
+                "18\\s+A : Integer;" \
+                "19\\s+end record;" \
+                "20\\s+u00045 : constant Wrapper := \\(A => 16#060287af#\\);"]
 
 gdb_test "print /x <symada__cS>" \
-         "= \\(a => 0x60287af\\)" \
-         "print <symada__cS> after loading symbols from ver.ads"
+        "= \\(a => 0x60287af\\)" \
+        "print <symada__cS> after loading symbols from ver.ads"
index 04ef5738040eafca0c7c3f443051d9d1bdff696f..dd2c6fd97823beb9f38142c120779fc40c2cbfa4 100644 (file)
@@ -33,10 +33,10 @@ if {[gnat_version_compare <= {4 4}]} {
     setup_xfail *-*-*
 }
 gdb_test "print my_table" \
-         "= \\(\\)"
+        "= \\(\\)"
 
 gdb_test "ptype my_table" \
-         "type = array \\(10 \\.\\. 1\\) of integer"
+        "type = array \\(10 \\.\\. 1\\) of integer"
 
 gdb_test "print my_matrix" \
-         "= \\(m => \\((\"\", ){9}\"\"\\)\\)"
+        "= \\(m => \\((\"\", ){9}\"\"\\)\\)"
index c9a5f4f58a5375249445e8b65bc78e9ef7124af9..e742ad1f156ec28cc2b1843b25636e071f6b2f89 100644 (file)
@@ -29,5 +29,5 @@ set bp_location [gdb_get_line_number "START" ${testdir}/null_record.adb]
 runto "null_record.adb:$bp_location"
 
 gdb_test "ptype empty" \
-         "type = record null; end record" \
-         "ptype on null record"
+        "type = record null; end record" \
+        "ptype on null record"
index 07bf4d974c142c1be96392af64f53835ae721327..919b075ccb6a712c54d72d010bd58ab9d887d7a3 100644 (file)
@@ -20,4 +20,3 @@ procedure Null_Record is
 begin
    Do_Nothing (E);  -- START
 end Null_Record;
-
index 1bc3d271c28ebcb898d64e1d20fbb41749031a88..45d13102704004d53281f737cefc366a6f844247 100644 (file)
@@ -56,8 +56,8 @@ foreach op { "*" "/" "mod" "rem" "**" "<" "<=" ">" ">=" "=" "and" "or" "xor" "&"
 foreach op { "+" "-" "*" "/" "mod" "rem" "**" "<" "<=" ">" ">=" "=" "and" "or" "xor" "&" "abs" "not"} {
     set op_re [string_to_regexp $op]
     gdb_test "continue" \
-             "Breakpoint $bkptno_numopt_re, ops\\.\"$op_re\" .*"\
-             "continue to \"$op\""
+            "Breakpoint $bkptno_numopt_re, ops\\.\"$op_re\" .*"\
+            "continue to \"$op\""
 }
 
 # Perform the same test, but using the qualified name of the operator,
@@ -72,13 +72,13 @@ runto "ops_test.adb:$bp_location"
 foreach op { "+" "-" } {
     set op_re [string_to_regexp $op]
     gdb_test "break ops.\"$op\"" \
-             "Breakpoint $decimal at $hex: ops\\.\"$op_re\"\\. \\(2 locations\\)"
+            "Breakpoint $decimal at $hex: ops\\.\"$op_re\"\\. \\(2 locations\\)"
 }
 
 foreach op { "*" "/" "mod" "rem" "**" "<" "<=" ">" ">=" "=" "and" "or" "xor" "&" "abs" "not"} {
     set op_re [string_to_regexp $op]
     gdb_test "break ops.\"$op\"" \
-             "Breakpoint $decimal at $hex: file .*ops.adb, line $decimal."
+            "Breakpoint $decimal at $hex: file .*ops.adb, line $decimal."
 }
 
 # Make sure we stop correctly in each operator function.
@@ -86,8 +86,6 @@ foreach op { "*" "/" "mod" "rem" "**" "<" "<=" ">" ">=" "=" "and" "or" "xor" "&"
 foreach op { "+" "-" "*" "/" "mod" "rem" "**" "<" "<=" ">" ">=" "=" "and" "or" "xor" "&" "abs" "not"} {
     set op_re [string_to_regexp $op]
     gdb_test "continue" \
-             "Breakpoint $bkptno_numopt_re, ops\\.\"$op_re\" .*"\
-             "continue to ops.\"$op\""
+            "Breakpoint $bkptno_numopt_re, ops\\.\"$op_re\" .*"\
+            "continue to ops.\"$op\""
 }
-
-
index 412824f59e70ff931dbac24c90add11457b4e5d9..7de82eb5b7b8d512e452716a23fce071624b355f 100644 (file)
@@ -135,6 +135,3 @@ package body Ops is
    end Dummy;
 
 end Ops;
-
-
-
index a5ca7eb51ce50146f6e032dba035e6b7b02b227b..d9f2b8c62ec0385e90db037cd0715507bfe01b43 100644 (file)
@@ -48,5 +48,3 @@ private
    type Int is new IntRep;
 
 end Ops;
-
-
index 6256baae2407895431d84083ae42f7e53e632684..b4492d8ae67d7a0e0fc1748c23c08111558c624c 100644 (file)
@@ -30,6 +30,4 @@ if {![runto "foo"]} {
 }
 
 gdb_test "print z" \
-         "= (\\(a => .*, b => .*, c => .*\\)|<optimized out>)"
-
-
+        "= (\\(a => .*, b => .*, c => .*\\)|<optimized out>)"
index 3d5aaa20d7a0cfefac26d24ebf079c6bf6bf6a04..2f36424d3ff0259ffcd565237b51217c187c5a2c 100644 (file)
@@ -21,4 +21,3 @@ procedure Foo is
 begin
    Do_Nothing (A2'Address); -- STOP
 end Foo;
-
index 3319bb1938a6ba2a00572af9413662d0c6d0a5aa..5e5af3d6bdbba6e3bf8c05af37860ac6a409ef0c 100644 (file)
@@ -29,16 +29,16 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/foo_o508_021.adb]
 runto "foo_o508_021.adb:$bp_location"
 
 gdb_test "print SSA" \
-         "= \\(-1, 2, -3, 4\\)"
+        "= \\(-1, 2, -3, 4\\)"
 
 gdb_test "print SSA(1)" \
-         "= -1"
+        "= -1"
 
 gdb_test "print SSA(2)" \
-         "= 2"
+        "= 2"
 
 gdb_test "print SSA(3)" \
-         "= -3"
+        "= -3"
 
 gdb_test "print SSA(4)" \
-         "= 4"
+        "= 4"
index d589e88820547548c5af54322828b169d53963f0..ed80f43c491ed1757f810527b8929b91400b086f 100644 (file)
@@ -64,7 +64,7 @@ gdb_test_multiple "$test" $test {
 }
 
 gdb_test "print test.str" \
-         "= \\(33 'A', nul <repeats 99 times>\\)"
+        "= \\(33 'A', nul <repeats 99 times>\\)"
 
 gdb_test "print test.str(1)" \
-         "= 33 'A'"
+        "= 33 'A'"
index 8ccb94d17dcc944a4dd1333d8f4b7905901c7164..2973526cf2f394e25c121368fe64f6468fa37ac1 100644 (file)
@@ -42,4 +42,3 @@ begin
    Test.Length := 1;
    Do_Nothing (Test'Address); -- START
 end;
-
index 30e362cdd8ce5cc09376e5f6ab0f845555a7ebd1..255d353a85f22537b0a1184189375fd78bf1a0f5 100644 (file)
@@ -34,7 +34,7 @@ set bp_location [gdb_get_line_number "BREAK" ${testdir}/foo.adb]
 runto "foo.adb:$bp_location"
 
 gdb_test "print before" \
-         " = Thu Nov 14 02:22:23 2013 \\(1384395743\\)"
+        " = Thu Nov 14 02:22:23 2013 \\(1384395743\\)"
 
 gdb_test "print /r before" \
-         " = \\(secs => 1384395743\\)"
+        " = \\(secs => 1384395743\\)"
index b487772cc013a3374a479ee3b1aca1144fc50191..f3af8941c1f5120a52c2362a4cb84c99abed819f 100644 (file)
@@ -30,12 +30,12 @@ runto "foo.adb:$bp_location"
 
 
 gdb_test "print C" \
-         "= 97 'a'"
+        "= 97 'a'"
 
 gdb_test "print WC" \
-         "= 98 'b'"
+        "= 98 'b'"
 
 gdb_test "print WWC" \
-         "= 99 'c'"
+        "= 99 'c'"
 
 gdb_test "print MC" " = 77 'M'"
index 8b2043cab66c0bcccf913d91fcd76f6f2f6eeb16..6a98097ecdf9f14d3915417aec9deb4d85389154 100644 (file)
@@ -29,4 +29,4 @@ set bp_location [gdb_get_line_number "START" ${testdir}/dummy.adb]
 runto "dummy.adb:$bp_location"
 
 gdb_test "p /x \$pc" \
-         "= 0x\[0-9a-zA-Z\]+"
+        "= 0x\[0-9a-zA-Z\]+"
index 7bed41c3f7f5306b0e20976002d2d0b01f53cd80..854e1b93fe8e080c6a044d6529ac3bcf0877d841 100644 (file)
@@ -29,5 +29,3 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
 runto "foo.adb:$bp_location"
 
 gdb_test "print my_blob.bees(1)" "= \\(access boolean\\) 0x0"
-
-
index b4f6ee5907b628dee8981d5b7696ff19c02ff967..b3414a45508bd0fda3ed4eddd2d36bffebb6b732 100644 (file)
@@ -18,10 +18,10 @@ require allow_ada_tests
 clean_restart
 
 gdb_test_no_output "set lang ada" \
-         "set lang ada"
+        "set lang ada"
 
 gdb_test "ptype 3 * 2.0" \
-         "= <\[0-9\]+-byte float>"
+        "= <\[0-9\]+-byte float>"
 
 gdb_test "ptype 3 / 2.0" \
-         "= <\[0-9\]+-byte float>"
+        "= <\[0-9\]+-byte float>"
index d44600abd3b6b6a33a684ca5bc5cc64b166b1525..34162db7b193f1fbfa40434baa843a008ba2dbfe 100644 (file)
@@ -19,5 +19,3 @@ package body Pck is
       null;
    end Do_Nothing;
 end Pck;
-
-
index 16e5e1d66542f898c0b99645de6a32ed6989cd28..03cae87acb74bc0a3692c3cc5189a0848d188517 100644 (file)
@@ -29,19 +29,19 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
 runto "foo.adb:$bp_location"
 
 gdb_test "ptype circle" \
-         [multi_line "type = record" \
-                     "    pos: pck\\.position;" \
-                     "    radius: integer;" \
-                     "end record" ]
+        [multi_line "type = record" \
+                    "    pos: pck\\.position;" \
+                    "    radius: integer;" \
+                    "end record" ]
 
 gdb_test "ptype circle.pos" \
-         [multi_line "type = record" \
-                     "    x: integer;" \
-                     "    y: integer;" \
-                     "end record" ]
+        [multi_line "type = record" \
+                    "    x: integer;" \
+                    "    y: integer;" \
+                    "end record" ]
 
 gdb_test "ptype circle.pos.x" \
-         "type = <\[0-9\]+-byte integer>"
+        "type = <\[0-9\]+-byte integer>"
 
 gdb_test "complete print my_circ" "print my_circle"
 gdb_test "complete print my_circle.r" "print my_circle\\.radius"
index a760e0499b82f5b938b44f7e6151a0a8bca372a7..95f041a091df2858a2c9e7235e787894ed2b4561 100644 (file)
@@ -27,4 +27,3 @@ package body Pck is
    end Area;
 
 end Pck;
-
index 2dd627e0466184387814030dda6f413b41ea8132..a4c3ea0717e37883186dcd06b4657d0ae4bd8f28 100644 (file)
@@ -26,4 +26,3 @@ package Pck is
    function Area (C : in Circle) return Integer;
 
 end Pck;
-
index 237cf46543c821955d01d0250f772e39d289771b..5e48c747e3ba64020d66ff94818f6bdb6f5abed7 100644 (file)
@@ -30,13 +30,13 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
 runto "foo.adb:$bp_location"
 
 gdb_test "python print(int(gdb.parse_and_eval('sr')))" \
-         "48"
+        "48"
 
 gdb_test "python print(int(gdb.parse_and_eval('si')))" \
-         "740804"
+        "740804"
 
 gdb_test "python print(int(gdb.parse_and_eval('ir')))" \
-         "974"
+        "974"
 
 # Accept "foo." prefix for older versions of GNAT.
 gdb_test "python print(gdb.parse_and_eval('si').type)" \
index d6d446ec0d42cbafe41c944d3d7c9bc2d3b5609c..479f6107ec343f03fcefe152d5cc93e1070f0440 100644 (file)
@@ -33,8 +33,8 @@ runto "break_me"
 # Switch to task 2, and verify that GDB is able to unwind all the way
 # to foo.T.
 gdb_test "task 2" \
-         [join {"\\\[Switching to task 2 \"mit\"\\\].*" \
-                ".*foo\\.t \\(.*\\).*foo\\.adb:.*"} ""]
+        [join {"\\\[Switching to task 2 \"mit\"\\\].*" \
+               ".*foo\\.t \\(.*\\).*foo\\.adb:.*"} ""]
 
 gdb_test "task apply 1 -q frame" ".*pck\\.break_me.*"
 
index faffcf1c1b2c68449e4efa9664a815d5d7f45401..d5ddfe564745d854d4a51f9043a3d48ca854e1af 100644 (file)
@@ -29,4 +29,3 @@ begin
    Do_Nothing (R'Address);
    Do_Nothing (IA'Address);
 end Bar_O203_012;
-
index dd94441365cf858807a1600c43eb4bf2591d8110..3bba420583f9631665ec1fb579544312180bc1be 100644 (file)
@@ -31,4 +31,4 @@ if {![runto "foo.adb:$bp_location"]} {
 }
 
 gdb_test "print bar" \
-         "= \\(x => 42, s => \"ABCDEFGH\"\\)"
+        "= \\(x => 42, s => \"ABCDEFGH\"\\)"
index df93dd57fd0af0eddae776c63c2da534913031af..c404115605a229b3c16694c50ea957ce53f3827c 100644 (file)
@@ -21,4 +21,3 @@ begin
    Q := Bar; -- STOP HERE
    Do_Nothing (Q'Address);
 end Foo;
-
index 1bfdb6c0bd8328b857346dc0a8601b8f40783c12..675f46e25d63a8c9e154ef3140f3a46358051396 100644 (file)
@@ -24,4 +24,3 @@ package body Pck is
       null;
    end Do_Nothing;
 end Pck;
-
index e95fe2c2acd0f989cdd206c218a9641371aa5ead..880a172cd138953114fd5b60abf664bfdba5618b 100644 (file)
@@ -25,4 +25,3 @@ package Pck is
    procedure Do_Nothing (A : System.Address);
 
 end Pck;
-
index b9c0eb9009c80434b4b2ff99745c214eee0231c2..e326298808294b0f5d6d2c3ee509647b50340445 100644 (file)
@@ -33,6 +33,5 @@ gdb_test_no_output "set print frame-arguments all"
 
 set expected_d "\\(one => 1, two => 2, three => 3, four => 4, five => 5, six => 6\\)"
 gdb_test "frame" \
-         "#0\[ \t\]*pck\\.call_me \\(d=${expected_d}\\).*"  \
-         "frame argument value printed"
-
+        "#0\[ \t\]*pck\\.call_me \\(d=${expected_d}\\).*"  \
+        "frame argument value printed"
index 18b63eff4e6fa9a4c03cec0d6b3c0c7a436bcfdb..c39c216b1c26a6cf0871bbc445d076bd089f8fd4 100644 (file)
@@ -34,4 +34,4 @@ runto "p.adb:$bp_location"
 # the size of d1.
 
 gdb_test "print d1'size = d2'size" \
-         "= true"
+        "= true"
index 88b11925397846f47cb1b7ffa4b5d7400d99d005..6cd4a07b8b3a62da5ca0c53e2e454e14b81b257f 100644 (file)
@@ -26,4 +26,3 @@ begin
    Do_Nothing (D1'Address);  --  START
    Do_Nothing (D2'Address);
 end P;
-
index 73e58b40c1e5a4555e75fdf7aac8cdde75cc54b7..5e762f5f2ec4e49c89f2e61f9c431e6fadc55c39 100644 (file)
@@ -31,18 +31,18 @@ set bp_location [gdb_get_line_number "BREAK" ${testdir}/pkg.adb]
 runto "pkg.adb:$bp_location"
 
 gdb_test "print rename_subscript_param_b" \
-         " = false" \
-         "print rename_subscript_param_b before changing its value"
+        " = false" \
+        "print rename_subscript_param_b before changing its value"
 
 set bp_location [gdb_get_line_number "Do_Nothing" ${testdir}/pkg.adb]
 gdb_test "break pkg.adb:$bp_location" \
-         "Breakpoint \[0-9\]+ at.*: file .*pkg.adb, line \[0-9\]+." \
-         "insert second breakpoint in pkg.adb"
+        "Breakpoint \[0-9\]+ at.*: file .*pkg.adb, line \[0-9\]+." \
+        "insert second breakpoint in pkg.adb"
 
 gdb_test "cont" \
-         "Breakpoint \[0-9\]+, pkg.flip \\(.*" \
-         "Continuing to breakpoint on call to Do_Nothing"
+        "Breakpoint \[0-9\]+, pkg.flip \\(.*" \
+        "Continuing to breakpoint on call to Do_Nothing"
 
 gdb_test "print rename_subscript_param_b" \
-         " = true" \
-         "print rename_subscript_param_b after changing its value"
+        " = true" \
+        "print rename_subscript_param_b after changing its value"
index fb1ecbbd743efb3676552f87e1c92ec91b7f2927..a866e17571433c502fa18141ca39b4ead47e4885 100644 (file)
@@ -29,4 +29,4 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/foo_oc22_002.adb]
 runto "foo_oc22_002.adb:$bp_location"
 
 gdb_test "print a1(1)@3" \
-         " = \\(3, 5, 8\\)"
+        " = \\(3, 5, 8\\)"
index fc67d2f69382430388f2adacca422eeefe9919d0..2bfbe8ce33e1e0a4c2a87d4adbb8a297cce63207 100644 (file)
@@ -19,4 +19,3 @@ package body Pck is
       null;
    end Do_Nothing;
 end Pck;
-
index efb475bfad035518072d68a8bfcc1469daad84d8..eb0d51a7902455551bd7cf01fc1da54820b3ee8e 100644 (file)
@@ -21,4 +21,3 @@ package Pck is
 
    procedure Do_Nothing (A : System.Address);
 end Pck;
-
index 17760f7c13bf38a665c5716661251274db47dc8c..03526a2e0809ab0c1019acc175a48f3520ed8e72 100644 (file)
@@ -31,27 +31,27 @@ runto "pck.adb:$bp_location"
 # Insert a watchpoint on local variable "result"
 
 gdb_test "watch result" \
-         ".*atchpoint \[0-9\]+: result"
+        ".*atchpoint \[0-9\]+: result"
 
 # Insert a breakpoint we'll reach after returning from the current
 # function.
 
 set bp_location [gdb_get_line_number "Do_Nothing" ${testdir}/foo_p708_025.adb]
 gdb_test "break foo_p708_025.adb:$bp_location" \
-         "Breakpoint \[0-9\]+ at.*: file .*foo_p708_025.adb, line \[0-9\]+."
+        "Breakpoint \[0-9\]+ at.*: file .*foo_p708_025.adb, line \[0-9\]+."
 
 # This breakpoint will be there to stop us after we test what happens
 # during a continue (see below...)
 
 gdb_test "break pck.increment" \
-         "Breakpoint \[0-9\]+ at.*: file .*pck.adb, line \[0-9\]+."
+        "Breakpoint \[0-9\]+ at.*: file .*pck.adb, line \[0-9\]+."
 
 # Continue until we reach our watchpoint.  It isn't strictly necessary
 # for our purpose that the watchpoint actually triggers, but this shows
 # that the watchpoint exists and is active.
 gdb_test "cont" \
-         ".*atchpoint \[0-9\]+: result.*Old value = 8.*New value = 64.*" \
-         "continuing to watchpoint hit"
+        ".*atchpoint \[0-9\]+: result.*Old value = 8.*New value = 64.*" \
+        "continuing to watchpoint hit"
 
 # Continue again.  We should be stopped at the (internal) breakpoint
 # that we setup to delete the watchpoint as soon as the program leaves
@@ -66,18 +66,18 @@ gdb_test \
 # (on the call to Do_Nothing) we set earlier.
 
 gdb_test "cont" \
-         "Breakpoint \[0-9\]+.*Do_Nothing.*" \
-         "continuing to breakpoint on call to Do_Nothing"
+        "Breakpoint \[0-9\]+.*Do_Nothing.*" \
+        "continuing to breakpoint on call to Do_Nothing"
 
 # Do a next, to verify that it works...
 
 gdb_test "next" \
-         ".* Call_Me;" \
-         "next to call to Call_Me"
+        ".* Call_Me;" \
+        "next to call to Call_Me"
 
 # And finally, one more continue.
 
 
 gdb_test "cont" \
-         "Breakpoint \[0-9\]+.*pck\\.increment.*" \
-         "continuing to breakpoint in pck.increment"
+        "Breakpoint \[0-9\]+.*pck\\.increment.*" \
+        "continuing to breakpoint in pck.increment"
index 76070e2803181ec894819bb74f4ccf1cd62de9fd..fcba9d7064dbc3a2c351f8ade4353506714dde4d 100644 (file)
@@ -42,11 +42,11 @@ foreach_gnat_encoding scenario flags {all minimal} {
     gdb_breakpoint "update_small"
 
     gdb_test "continue" \
-        "Breakpoint .*, pck\\.update_small \\(s=9\\) at .*pck.adb:.*" \
-        "continue to update_small"
+       "Breakpoint .*, pck\\.update_small \\(s=9\\) at .*pck.adb:.*" \
+       "continue to update_small"
 
     # And again for the second call.
     gdb_test "continue" \
-        "Breakpoint .*, pck\\.update_small \\(s=15\\) at .*pck.adb:.*" \
-        "continue to update_small for va.t"
+       "Breakpoint .*, pck\\.update_small \\(s=15\\) at .*pck.adb:.*" \
+       "continue to update_small for va.t"
 }
index bac83154acfbd93fa2ee5b97253b31c6bfb58c0c..07c81ab63d36a23996efff1c3ad565addd32f28d 100644 (file)
@@ -33,38 +33,38 @@ if {![runto "a.adb:$bp_location"]} {
 # Verify that assigning to Nnn (a basic string) works...
 
 gdb_test "print nnn" \
-         "= \"12345\"" \
-         "print nnn before assignment"
+        "= \"12345\"" \
+        "print nnn before assignment"
 
 gdb_test_no_output "set variable nnn := \"qcyom\""
 
 gdb_test "print nnn" \
-         "= \"qcyom\"" \
-         "print nnn after assignment"
+        "= \"qcyom\"" \
+        "print nnn after assignment"
 
 # Same with Www (a wide string)...
 
 gdb_test "print www" \
-         "= \"12345\"" \
-         "print www before assignment"
+        "= \"12345\"" \
+        "print www before assignment"
 
 gdb_test_no_output "set variable www := \"zenrk\""
 
 gdb_test "print www" \
-         "= \"zenrk\"" \
-         "print www after assignment"
+        "= \"zenrk\"" \
+        "print www after assignment"
 
 # Same with Rws (a wide wide string)...
 
 gdb_test "print rws" \
-         "= \"12345\"" \
-         "print rws before assignment"
+        "= \"12345\"" \
+        "print rws before assignment"
 
 gdb_test_no_output "set variable rws := \"ndhci\""
 
 gdb_test "print rws" \
-         "= \"ndhci\"" \
-         "print rws after assignment"
+        "= \"ndhci\"" \
+        "print rws after assignment"
 
 # Also, check that GDB doesn't get tricked if we assign to Www a
 # string twice the length of Www.  The debugger should reject the
@@ -72,7 +72,7 @@ gdb_test "print rws" \
 # used to get tricked because the array size was the same).
 
 gdb_test "set variable www := \"1#2#3#4#5#\"" \
-         "cannot assign arrays of different length"
+        "cannot assign arrays of different length"
 
 # However, reassigning an array of a different length should work when
 # the LHS is a convenience variable.
index a5dce7d1d4c4a13ec62cf152b137272861bae91d..119e561bd0202d4280cffde5a11572b6ae84d5d2 100644 (file)
@@ -40,4 +40,3 @@ gdb_test "continue" \
 # And just to make sure, we also verify that the parameter value
 # is correct when we print it manually.
 gdb_test "print w" " = 50"
-
index 14f24903c6d1e031116eb58cd6449d0ef54fd34e..9138030aef084bfb470c7bd4f8cd2d23aabd398a 100644 (file)
@@ -36,5 +36,5 @@ if { [gdb_start_cmd] < 0 } {
 }
 
 gdb_test "" \
-         "dummy \\(\\) at .*dummy.adb.*" \
-         "start"
+        "dummy \\(\\) at .*dummy.adb.*" \
+        "start"
index 4de533cf362db957d1b145c756ab769febf06b1e..85cf9cb0e41f42301efdeb2fda042b3a4dce3db8 100644 (file)
@@ -29,13 +29,13 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/foo_p211_061.adb]
 runto "foo_p211_061.adb:$bp_location"
 
 gdb_test "print my_str = my_str" \
-         " = true"
+        " = true"
 
 gdb_test "print my_str = \"ABCD\"" \
     " = true"
 
 gdb_test "print my_str = \"EFGH\"" \
-         " = false"
+        " = false"
 
 gdb_test "print my_str = \"AB\"" \
-         " = false"
+        " = false"
index 32b2b6e38c0f3f3ac2cf6fd8845c573559df54ba..e275efe60090563371d875ceb84ef92d29948b79 100644 (file)
@@ -19,4 +19,3 @@ package body Pck is
       null;
    end Do_Nothing;
 end pck;
-
index a3362bffaa7be10bcde2be2492dbae1966507f78..b2bb976f16c467d9c92986fa3dd46bf9336b6e5e 100644 (file)
@@ -44,7 +44,7 @@ gdb_test_multiple {print "a" = "a"} $test {
 # Verify that we can compare a string slice with another string.
 
 gdb_test "print String_Var (1 .. 3) = \"Hel\"" \
-         "= true"
+        "= true"
 
 gdb_test "print String_Var (1 .. 3) = \"hel\"" \
-         "= false"
+        "= false"
index 399fede8c298ddf6791844a8aa434179eafa7b82..9e4a38bb5df54d87769d7f3bbc7852df8f0f0c9f 100644 (file)
@@ -38,16 +38,15 @@ set test_name "multiple matches for symbol integervar"
 gdb_test_multiple "print integervar" "$test_name" \
 {
       -re "$menu" {
-          pass "$test_name"
+         pass "$test_name"
       }
 
       default {
-          fail "$test_name"
+         fail "$test_name"
       }
 }
 
 # Select the first choice from the multiple-choice menu above.
 gdb_test "1" \
-         "= 48" \
-         "select first choice from multiple-choice menu"
-
+        "= 48" \
+        "select first choice from multiple-choice menu"
index 25d7d564b24fc083f6ce0ff4516cbd3015734ea7..c07f5b144ea00900b897cc03c43c2366c3b914c0 100644 (file)
@@ -31,4 +31,4 @@ if {![runto "p.adb:$bp_location"]} {
 }
 
 gdb_test "print w.e.all" \
-         "= \\(month => 8, year => 1974\\)"
+        "= \\(month => 8, year => 1974\\)"
index be354931a408bd9b6c6c01c835119ba19623bf91..fc41347075507ffa218b10cae4680c5339847193 100644 (file)
@@ -20,4 +20,3 @@ procedure P is
 begin
    W := Create;
 end P;  --  START
-
index ef714c6344ee564ab3b80f9cac44a9cda2587e26..20f1e334079c6a7572a6c881bfb40b9200820999 100644 (file)
@@ -34,19 +34,19 @@ runto "foo.adb:$bp_location"
 # class-wide.
 
 gdb_test "ptype segm" \
-         [multi_line "type = new pck\\.object with record" \
-                     "    width: integer;" \
-                     "end record" ]
+        [multi_line "type = new pck\\.object with record" \
+                    "    width: integer;" \
+                    "end record" ]
 
 gdb_test "print segm" \
-         "= \\(position => 74, width => 8\\)"
+        "= \\(position => 74, width => 8\\)"
 
 # Now, test printing of an class-wide object.
 
 gdb_test "ptype obj" \
-         [multi_line "type = new pck\\.object with record" \
-                     "    width: integer;" \
-                     "end record" ]
+        [multi_line "type = new pck\\.object with record" \
+                    "    width: integer;" \
+                    "end record" ]
 
 gdb_test "print obj" \
-         "= \\(position => 74, width => 8\\)"
+        "= \\(position => 74, width => 8\\)"
index 7b1933a9791e2971b20b590ee16ddbcbee724989..4c32dd51854b3a9542597ddd331e213499248b62 100644 (file)
@@ -21,5 +21,3 @@ package body Pck is
    end Do_Nothing;
 
 end Pck;
-
-
index 88095c08dd7578d3c8c75f6252f0daa9825ba44c..995919252a4df328299e3452c37af523ec33ba0c 100644 (file)
@@ -28,5 +28,3 @@ package Pck is
    procedure Do_Nothing (A : System.Address);
 
 end Pck;
-
-
index ea653005bf76895e4137374436377903633f50fc..61fbfa4844985e4a1989ab5ccf6732e8ec2f0a05 100644 (file)
@@ -29,4 +29,3 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
 runto "foo.adb:$bp_location"
 
 gdb_test "print obj" " = \\(x => -?$decimal\\)"
-
index 7e9102c5e76150bbc02db7a009ead97e94d80683..de96082ba1000a1ed4ade17ee119f75c4cd907b4 100644 (file)
@@ -47,7 +47,7 @@ proc test_bp { loc msg } {
 }
 
 set all_linespecs { "pck.dummy_task" "dummy_task"
-                    "pck.adb:pck.dummy_task" "pck.adb:dummy_task"}
+                   "pck.adb:pck.dummy_task" "pck.adb:dummy_task"}
 
 # First, test the linespecs when the associated symtab hasn't been
 # expanded yet.
index 59fbe11676ddb8784ef1c9b1626b8a495b988a77..cb04c749aca3131e2bd9a1b7e496bf8673d80c2f 100644 (file)
@@ -56,14 +56,14 @@ if { $core_loaded == -1 } {
 # First, switch to task 1.
 
 gdb_test "task 1" \
-         "crash\\.request_for_crash \\(\\) at .*crash\\.adb:$decimal.*"
+        "crash\\.request_for_crash \\(\\) at .*crash\\.adb:$decimal.*"
 
 
 gdb_test "info tasks" \
-         [multi_line "\\s+ID\\s+TID\\s+P-ID\\s+Pri\\s+State\\s+Name" \
-                     "\\*\\s+1\\s+.*main_task" \
-                     "\\s+2.*my_t"] \
-         "info tasks after switching to task 1"
+        [multi_line "\\s+ID\\s+TID\\s+P-ID\\s+Pri\\s+State\\s+Name" \
+                    "\\*\\s+1\\s+.*main_task" \
+                    "\\s+2.*my_t"] \
+        "info tasks after switching to task 1"
 
 # Switch to task 2. Unlike in the case where we tested the switch to
 # task 1, don't check the location where the debugger says the program
@@ -73,10 +73,10 @@ gdb_test "info tasks" \
 # we will verify right after with an additional test that the current
 # task is now task 2.
 gdb_test "task 2" \
-         "\\\[Switching to task 2 \"my_t\"\\\].*"
+        "\\\[Switching to task 2 \"my_t\"\\\].*"
 
 gdb_test "info tasks" \
-         [multi_line "\\s+ID\\s+TID\\s+P-ID\\s+Pri\\s+State\\s+Name" \
-                     "\\s+1\\s+.*main_task" \
-                     "\\*\\s+2.*my_t"] \
-         "info tasks after switching to task 2"
+        [multi_line "\\s+ID\\s+TID\\s+P-ID\\s+Pri\\s+State\\s+Name" \
+                    "\\s+1\\s+.*main_task" \
+                    "\\*\\s+2.*my_t"] \
+        "info tasks after switching to task 2"
index 4f6fc5201a8b95c31a614a2a9f45f991cb861cf0..e36edeaf83bff03ca7da31d9514631d80f33fc66 100644 (file)
@@ -33,13 +33,13 @@ runto "foo.adb:$bp_location"
 # Make sure that all tasks appear in the "info tasks" listing, and
 # that the active task is the environment task.
 gdb_test "info tasks" \
-         [join {" +ID +TID P-ID Pri State +Name" \
-                "\\* +1 .* main_task" \
-                " +2 .* task_list\\(1\\)" \
-                " +3 .* task_list\\(2\\)" \
-                " +4 .* task_list\\(3\\)"} \
-               "\r\n"] \
-         "info tasks before inserting breakpoint"
+        [join {" +ID +TID P-ID Pri State +Name" \
+               "\\* +1 .* main_task" \
+               " +2 .* task_list\\(1\\)" \
+               " +3 .* task_list\\(2\\)" \
+               " +4 .* task_list\\(3\\)"} \
+              "\r\n"] \
+        "info tasks before inserting breakpoint"
 
 # Confirm that the "info threads" output lines up with the tasks list.
 gdb_test "info threads" \
@@ -159,19 +159,19 @@ if {[allow_guile_tests]} {
 # task 3 will hit our breakpoint, and GDB is expected to stop at that
 # point.  Also make sure that GDB reports the correct breakpoint number.
 gdb_test "continue" \
-         ".*Breakpoint $bp_number, foo.break_me \\(\\).*" \
-         "continue to breakpoint"
+        ".*Breakpoint $bp_number, foo.break_me \\(\\).*" \
+        "continue to breakpoint"
 
 # Check that it is indeed task 3 that hit the breakpoint by checking
 # which is the active task.
 gdb_test "info tasks" \
-         [join {" +ID +TID P-ID Pri State +Name" \
-                " +1 .* main_task" \
-                " +2 .* task_list\\(1\\)" \
-                "\\* +3 .* task_list\\(2\\)" \
-                " +4 .* task_list\\(3\\)"} \
-               "\r\n"] \
-         "info tasks after hitting breakpoint"
+        [join {" +ID +TID P-ID Pri State +Name" \
+               " +1 .* main_task" \
+               " +2 .* task_list\\(1\\)" \
+               "\\* +3 .* task_list\\(2\\)" \
+               " +4 .* task_list\\(3\\)"} \
+              "\r\n"] \
+        "info tasks after hitting breakpoint"
 
 # Now, resume the execution and make sure that GDB does not stop when
 # task 4 hits the breakpoint. Continuing thus results in our program
index 5dba9b652c4f38cafea7916e749be73d08847379..0ad2ef860eb0f3b794e52192471965582705115a 100644 (file)
@@ -31,10 +31,9 @@ clean_restart ${testfile}
 # The actual value printed is of no interest in this testcase.
 
 gdb_test "print short_integer'first" \
-         "= -\[0-9\]+" \
-         "print short-integer'first"
+        "= -\[0-9\]+" \
+        "print short-integer'first"
 
 gdb_test "print short_integer'last" \
-         "= \[0-9\]+" \
-         "print short-integer'last"
-
+        "= \[0-9\]+" \
+        "print short-integer'last"
index 7cc5dd948775f1b654d17c450f62d7113253d2be..b94f40e9e6d6c567c76486ee15079c36244237fd 100644 (file)
@@ -30,5 +30,3 @@ package body Pck is
       null;
    end Do_Nothing;
 end Pck;
-
-
index 7f0405e3f0a94622fbe57af417f8205abdef822a..7c00cb0e4640a3ce7a45944115cfe7a23956f0d7 100644 (file)
@@ -28,4 +28,3 @@ package Pck is
 
    procedure Do_Nothing (A : System.Address);
 end Pck;
-
index 11f289fbddc4f754d25119fb48b7ba4a702654f1..201e4c045d47a8515639c17913df24ab7b5fe726 100644 (file)
@@ -29,19 +29,19 @@ set bp_location [gdb_get_line_number "START" ${testdir}/assign.adb]
 runto "assign.adb:$bp_location"
 
 gdb_test "p q" \
-         "= \\(2, 3, 5, 7, 11\\)" "initial value of q"
+        "= \\(2, 3, 5, 7, 11\\)" "initial value of q"
 
 gdb_test_no_output "set \$addr := q'address" \
-         "save q'address in convenience variable"
+        "save q'address in convenience variable"
 
 gdb_test "p {Integer} \$addr" \
-         "= 2" \
-         "print {Integer} \$addr"
+        "= 2" \
+        "print {Integer} \$addr"
 
 # Now change the value at $addr using the same "{TYPE}" syntax.
 
 gdb_test_no_output "set {Integer} \$addr := 19" \
-         "set {Integer} \$addr := 19"
+        "set {Integer} \$addr := 19"
 
 gdb_test "p q" \
-         "= \\(19, 3, 5, 7, 11\\)" "modified value of q"
+        "= \\(19, 3, 5, 7, 11\\)" "modified value of q"
index 57b771e14d36719b6696ad425046ca1a029b5524..b0537cb43cad2ba565550821d53a170863b1ebcf 100644 (file)
@@ -48,4 +48,3 @@ begin
    Do_Nothing (My_Object'Address);             -- STOP2
    Do_Nothing (My_P_Object'Address);
 end Foo;
-
index 9c325ed33743aa9f38ed722c4ece421b71b6320d..f01c7ca8382a37068068f8ea2c931ea53a05b652 100644 (file)
@@ -35,4 +35,4 @@ runto "parse.adb:$bp_location"
 
 # Check that printing uninitialized variables does not crash the debugger.
 gdb_test "info locals" \
-         ".*"
+        ".*"
index c07c90cd95442285386b2ebec8f6f8b673f8065e..7a815b6985cd2e60a28f13b5c8bc38804d43ae0e 100644 (file)
@@ -22,4 +22,3 @@ begin
    Do_Nothing (My_Object'Address);             -- STOP
    Do_Nothing (My_Small_Object'Address);
 end Foo_O115_002;
-
index 680b9cce481f1963784e5b1bd0855587d53ac4d1..8b525833636c16526726a71389736a06a6708549 100644 (file)
@@ -37,10 +37,10 @@ set vb "\\($rb, $rb, $ra, $ra\\)"
 set a "\\($va, $va, $vb, $vb\\)"
 
 gdb_test "print va" \
-         " = $va"
+        " = $va"
 
 gdb_test "print vb" \
-         " = $vb"
+        " = $vb"
 
 gdb_test "print a" \
-         " = $a"
+        " = $a"
index 144fbd6314ada3a53c041555063f3e95edd14d64..dc418d864e761af761b79c7d2ef03c7f4b3619f9 100644 (file)
@@ -29,10 +29,10 @@ set bp_location [gdb_get_line_number "Set breakpoint here" ${testdir}/vla.adb]
 runto "vla.adb:$bp_location"
 
 gdb_test "print r00" \
-         "= \\(l1 => 0, l2 => 0, i1 => 1, a1 => \\(\\), i2 => 2, a2 => \\(\\), i3 => 3\\)"
+        "= \\(l1 => 0, l2 => 0, i1 => 1, a1 => \\(\\), i2 => 2, a2 => \\(\\), i3 => 3\\)"
 gdb_test "print r01" \
-         "= \\(l1 => 0, l2 => 1, i1 => 1, a1 => \\(\\), i2 => 2, a2 => \\(20\\), i3 => 3\\)"
+        "= \\(l1 => 0, l2 => 1, i1 => 1, a1 => \\(\\), i2 => 2, a2 => \\(20\\), i3 => 3\\)"
 gdb_test "print r10" \
-         "= \\(l1 => 1, l2 => 0, i1 => 1, a1 => \\(10\\), i2 => 2, a2 => \\(\\), i3 => 3\\)"
+        "= \\(l1 => 1, l2 => 0, i1 => 1, a1 => \\(10\\), i2 => 2, a2 => \\(\\), i3 => 3\\)"
 gdb_test "print r22" \
-         "= \\(l1 => 2, l2 => 2, i1 => 1, a1 => \\(10, 10\\), i2 => 2, a2 => \\(20, 20\\), i3 => 3\\)"
+        "= \\(l1 => 2, l2 => 2, i1 => 1, a1 => \\(10, 10\\), i2 => 2, a2 => \\(20, 20\\), i3 => 3\\)"
index b1b6adea15a00e72e4463ca8914519443986d35e..7927f8a9a4bafc1f376400f05def896fc294969c 100644 (file)
@@ -31,14 +31,14 @@ runto "watch.adb:$bp_location"
 # Insert a watchpoint on argument X
 
 gdb_test "watch x" \
-         ".*atchpoint \[0-9\]+: x" \
-         "set watchpoint on function argument X"
+        ".*atchpoint \[0-9\]+: x" \
+        "set watchpoint on function argument X"
 
 # Then insert a breakpoint at the location we'd like to continue to...
 set bp_location [gdb_get_line_number "BREAK2" ${testdir}/watch.adb]
 gdb_test "break watch.adb:$bp_location" \
-         "Breakpoint \[0-9\]+ at.*: file .*watch.adb, line \[0-9\]+." \
-         "insert second breakpoint in watch.adb"
+        "Breakpoint \[0-9\]+ at.*: file .*watch.adb, line \[0-9\]+." \
+        "insert second breakpoint in watch.adb"
 
 # Continue again.  We should be stopped at the (internal) breakpoint
 # that we setup to delete the watchpoint as soon as the program leaves
@@ -53,7 +53,5 @@ gdb_test \
 # we inserted.
 
 gdb_test "cont" \
-         "Breakpoint \[0-9\]+, watch \\(\\).*" \
-         "continuing to second breakpoint"
-
-
+        "Breakpoint \[0-9\]+, watch \\(\\).*" \
+        "continuing to second breakpoint"
index fa0977619d0eacc7115ae6e074108c88c0a28812..f33f8c0d72014b70d837ee5e575412b0ff5daee0 100644 (file)
@@ -29,4 +29,3 @@ begin
    Foo (X);
    X := 2;  -- BREAK2
 end Watch;
-
index 08be8bfac0c246af1894264023c4d931c7e2faca..7cda58c1e6c41000004457bae4d5814d72302acb 100644 (file)
@@ -31,7 +31,7 @@ runto "foo_ra10_006.adb:$bp_location"
 # Insert a watchpoint on argument X
 
 gdb_test "watch -location pck.global_var" \
-         ".*atchpoint \[0-9\]+: -location pck.global_var"
+        ".*atchpoint \[0-9\]+: -location pck.global_var"
 
 # Continue again.  We should be stopped at the (internal) breakpoint
 # that we setup to delete the watchpoint as soon as the program leaves
index 0fd48e6d25e322be2d8c33f108efd38ba24362e9..78ca14cfcfccb0e2c64b33863a1f6e722e9c5d71 100644 (file)
@@ -32,11 +32,10 @@ if {![runto "foo.adb:$bp_location"]} {
 
 # Accept "foo." prefix for older versions of GNAT.
 gdb_test "whatis full" \
-         "type = (foo\\.)?full_table"
+        "type = (foo\\.)?full_table"
 
 gdb_test "print full" \
-         " = \\(144, 233, 377, 610, 987\\)"
+        " = \\(144, 233, 377, 610, 987\\)"
 
 gdb_test "whatis $" \
-         "type = (foo\\.)?full_table"
-
+        "type = (foo\\.)?full_table"
index 7315359a2c5b8ac4acde54ef079182bbc5dae256..6a110c2b40d136ffbcf177bd1a03fc17c46bd095 100644 (file)
@@ -22,4 +22,3 @@ procedure Foo is
 begin
    Do_Nothing (Full'Address); -- STOP
 end Foo;
-
index 8e4f2156cd8ceadced1bae323582f2b63a4a9df5..837ea48933571775e306a17a199bb29fc539f2a9 100644 (file)
@@ -28,11 +28,10 @@ clean_restart ${testfile}
 
 set loc [gdb_get_line_number "Integer" ${testdir}/foo.adb]
 gdb_test "info line foo.adb:$loc" \
-         "Line $decimal of \".*foo\\.adb\" starts at address $hex <_ada_foo\\+$decimal> and ends at $hex <_ada_foo\\+$decimal>\\." \
-         "info line on variable declaration"
+        "Line $decimal of \".*foo\\.adb\" starts at address $hex <_ada_foo\\+$decimal> and ends at $hex <_ada_foo\\+$decimal>\\." \
+        "info line on variable declaration"
 
 set loc [gdb_get_line_number "Do_Nothing" ${testdir}/foo.adb]
 gdb_test "info line foo.adb:$loc" \
-         "Line $decimal of \".*foo\\.adb\" starts at address $hex <_ada_foo\\+$decimal> and ends at $hex <_ada_foo\\+$decimal>\\." \
-         "info line on Do_Nothing call"
-
+        "Line $decimal of \".*foo\\.adb\" starts at address $hex <_ada_foo\\+$decimal> and ends at $hex <_ada_foo\\+$decimal>\\." \
+        "info line on Do_Nothing call"
index a9444b89fcc9071b5cb4aa1bc668a6561810bd85..7eb91ec3315a4ef44ed622f8cc325edd19c32244 100644 (file)
@@ -23,24 +23,24 @@ int main(void)
   /* Test that we can step over ldxr/stxr. This sequence should step from
      ldxr to the following __asm __volatile.  */
   __asm __volatile ("1:     ldxr    %0,%2\n"                             \
-                    "       cmp     %0,#1\n"                             \
-                    "       b.eq    out\n"                               \
-                    "       add     %0,%0,1\n"                           \
-                    "       stxr    %w1,%0,%2\n"                         \
-                    "       cbnz    %w1,1b"                              \
-                    : "=&r" (tmp), "=&r" (cond), "+Q" (dword)            \
-                    : : "memory");
+                   "       cmp     %0,#1\n"                             \
+                   "       b.eq    out\n"                               \
+                   "       add     %0,%0,1\n"                           \
+                   "       stxr    %w1,%0,%2\n"                         \
+                   "       cbnz    %w1,1b"                              \
+                   : "=&r" (tmp), "=&r" (cond), "+Q" (dword)            \
+                   : : "memory");
 
   /* This sequence should take the conditional branch and step from ldxr
      to the return dword line.  */
   __asm __volatile ("1:     ldxr    %0,%2\n"                             \
-                    "       cmp     %0,#1\n"                             \
-                    "       b.eq    out\n"                               \
-                    "       add     %0,%0,1\n"                           \
-                    "       stxr    %w1,%0,%2\n"                         \
-                    "       cbnz    %w1,1b\n"                            \
-                    : "=&r" (tmp), "=&r" (cond), "+Q" (dword)            \
-                    : : "memory");
+                   "       cmp     %0,#1\n"                             \
+                   "       b.eq    out\n"                               \
+                   "       add     %0,%0,1\n"                           \
+                   "       stxr    %w1,%0,%2\n"                         \
+                   "       cbnz    %w1,1b\n"                            \
+                   : "=&r" (tmp), "=&r" (cond), "+Q" (dword)            \
+                   : : "memory");
 
   dword = -1;
 __asm __volatile ("out:\n");
index 64f020054696376ea19a52ffed50e70e0bcba97a..ef5e9d751430e0f744d14d8fb5d96f67dde7c2f9 100644 (file)
@@ -71,7 +71,7 @@ set_watchpoint (pid_t pid, volatile void *addr, unsigned len_mask)
 
   iov.iov_base = &dreg_state;
   iov.iov_len = (offsetof (struct user_hwdebug_state, dbg_regs)
-                 + sizeof (dreg_state.dbg_regs[0]));
+                + sizeof (dreg_state.dbg_regs[0]));
   errno = 0;
   l = ptrace (PTRACE_SETREGSET, pid, NT_ARM_HW_WATCH, &iov);
   if (errno != 0)
index 7777175d7dc04d324d7d537e33b62c75ffc119d0..895e2f01515aaa42f6aa89dcb0062ed5031c8dcc 100644 (file)
@@ -33,10 +33,10 @@ runto_main
 set test "continue to exit"
 gdb_test_multiple "continue" "$test" {
     -re "exited with code 01.*$gdb_prompt $" {
-        # For case that the PTRACE_SETREGSET call fails.
-        pass "$test"
+       # For case that the PTRACE_SETREGSET call fails.
+       pass "$test"
     }
     -re "exited normally.*$gdb_prompt $" {
-        pass "$test"
+       pass "$test"
     }
 }
index 2bc990a94473f6085166734f79348a3ed02cce02..a6139defaa2292b398924dc4356b54201ade9363 100644 (file)
@@ -19,9 +19,9 @@ int
 main (void)
 {
   char buf0[] = {0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
-                 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f};
+                0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f};
   char buf1[] = {0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27,
-                 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f};
+                0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f};
   long val;
   void *addr;
 
@@ -41,4 +41,3 @@ main (void)
 
   return 1;
 }
-
index 363d4fc84b3bee23e34b657deffdc1f686b7edc2..63b9a9875dba31c4afe2aee51a65a4b4581484f4 100644 (file)
@@ -112,5 +112,3 @@ asm ("       .text\n"
      "$ne_1:\n"
      "       ret $31,($26),1\n"
      "       .end ne\n");
-
-
index aea492e5206b6cf73e82e046e130e7c65aaba661..1d3d6f7715cc380fc65c1941254846fff17bfd52 100644 (file)
@@ -33,62 +33,62 @@ proc test_stepi {function } {
     # of the previous tests, this makes sure that it doesn't affect
     # this series of tests.
     if {![runto_main]} {
-        return 0
+       return 0
     }
 
     # Insert a breakpoint on the FP branch instruction inside FUNCTION.
     # Since the function has been hand written, we know this instruction
     # is a "fb$function" located at FUNCTION+4.
     gdb_test "break *$function+4" \
-             "Breakpoint .* at .*" \
-             "breakpoint on fb$function instruction"
+            "Breakpoint .* at .*" \
+            "breakpoint on fb$function instruction"
 
     gdb_test "continue" \
-             "Breakpoint .*, 0x\[0-9a-fA-F\]+ in $function\(\).*" \
-             "continue to fb$function instruction (first call)"
+            "Breakpoint .*, 0x\[0-9a-fA-F\]+ in $function\(\).*" \
+            "continue to fb$function instruction (first call)"
 
     # Extra check to make sure we stopped on the FP branch instruction.
 
     gdb_test "x /i \$pc" \
-             "0x\[0-9a-fA-F\]+ <.*>:\[ \t\]+fb$function.*" \
-             "Check breakpoint on fb$function instruction (first call)"
+            "0x\[0-9a-fA-F\]+ <.*>:\[ \t\]+fb$function.*" \
+            "Check breakpoint on fb$function instruction (first call)"
 
     # Step test, followed by the check that we landed on the expected
     # instruction (the testcase should be written in such a way that
     # the branch is taken on the first call to this function.
 
     gdb_test "stepi" \
-             "0x\[0-9a-fA-F\]+.*" \
-             "stepi on fb$function (first call)"
+            "0x\[0-9a-fA-F\]+.*" \
+            "stepi on fb$function (first call)"
 
     gdb_test "x /i \$pc" \
-             "0x\[0-9a-fA-F\]+ <.*>:\[ \t\]+ret.*" \
-             "Check stepi over fb$function stopped on ret"
+            "0x\[0-9a-fA-F\]+ <.*>:\[ \t\]+ret.*" \
+            "Check stepi over fb$function stopped on ret"
 
     # Continue again. FUNCTION should be called a second time, this time
     # with an argument such that the FP branch will not be taken.
 
     gdb_test "continue" \
-             "Breakpoint .*, 0x\[0-9a-fA-F\]+ in $function\(\).*" \
-             "continue to fb$function instruction (second call)"
+            "Breakpoint .*, 0x\[0-9a-fA-F\]+ in $function\(\).*" \
+            "continue to fb$function instruction (second call)"
 
     # Extra check to make sure we stopped on the FP branch instruction.
 
     gdb_test "x /i \$pc" \
-             "0x\[0-9a-fA-F\]+ <.*>:\[ \t\]+fb$function.*" \
-             "Check breakpoint on fb$function instruction (second call)"
+            "0x\[0-9a-fA-F\]+ <.*>:\[ \t\]+fb$function.*" \
+            "Check breakpoint on fb$function instruction (second call)"
 
     # Step test, branch should not be taken.
 
     gdb_test "stepi" \
-             "0x\[0-9a-fA-F\]+.*" \
-             "stepi on fb$function (branch not taken)"
+            "0x\[0-9a-fA-F\]+.*" \
+            "stepi on fb$function (branch not taken)"
 
     # Extra check to verify that we landed on the instruction we expected.
 
     gdb_test "x /i \$pc" \
-             "0x\[0-9a-fA-F\]+ <.*>:\[ \t\]+fneg.*" \
-             "check stepi over fb$function stopped on fneg instruction"
+            "0x\[0-9a-fA-F\]+ <.*>:\[ \t\]+fneg.*" \
+            "check stepi over fb$function stopped on fneg instruction"
 
 }
 
@@ -98,4 +98,3 @@ test_stepi "lt"
 test_stepi "le"
 test_stepi "eq"
 test_stepi "ne"
-
index fb3b106b1d6c15b595197915fa7cd77966d7f2fa..73c6750899cc7a24dd7a13f44d61312f99177c02 100644 (file)
@@ -48,18 +48,18 @@ array_of_vector_func (vector signed short *matrix)
 
 vector int
 vec_func (vector short vshort_f,             /* goes in v2 */
-          vector unsigned short vushort_f,   /* goes in v3 */
-          vector int vint_f,                 /* goes in v4 */
-          vector unsigned int vuint_f,       /* goes in v5 */
-          vector char vchar_f,               /* goes in v6 */
-          vector unsigned char vuchar_f,     /* goes in v7 */
-          vector float vfloat_f,             /* goes in v8 */
-          vector short x_f,                  /* goes in v9 */
-          vector int y_f,                    /* goes in v10 */
-          vector char a_f,                   /* goes in v11 */
-          vector float b_f,                  /* goes in v12 */
-          vector float c_f,                  /* goes in v13 */
-          vector int intv_on_stack_f)
+         vector unsigned short vushort_f,   /* goes in v3 */
+         vector int vint_f,                 /* goes in v4 */
+         vector unsigned int vuint_f,       /* goes in v5 */
+         vector char vchar_f,               /* goes in v6 */
+         vector unsigned char vuchar_f,     /* goes in v7 */
+         vector float vfloat_f,             /* goes in v8 */
+         vector short x_f,                  /* goes in v9 */
+         vector int y_f,                    /* goes in v10 */
+         vector char a_f,                   /* goes in v11 */
+         vector float b_f,                  /* goes in v12 */
+         vector float c_f,                  /* goes in v13 */
+         vector int intv_on_stack_f)
 {
 
    vector int vint_res;
@@ -75,12 +75,12 @@ vec_func (vector short vshort_f,             /* goes in v2 */
    vuint_res  = vec_add (vuint_f, ((vector unsigned int) {5,6,7,8}));
    vshort_res  = vec_add (vshort_f, x_f);
    vushort_res  = vec_add (vushort_f,
-                           ((vector unsigned short) {1,2,3,4,5,6,7,8}));
+                          ((vector unsigned short) {1,2,3,4,5,6,7,8}));
    vchar_res  = vec_add (vchar_f, a_f);
    vfloat_res  = vec_add (vfloat_f, b_f);
    vfloat_res  = vec_add (c_f, ((vector float) {1.1,1.1,1.1,1.1}));
    vuchar_res  = vec_add (vuchar_f,
-               ((vector unsigned char) {'a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a'}));
+              ((vector unsigned char) {'a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a'}));
 
     return vint_res;
 }
@@ -120,22 +120,21 @@ main (void)
 vec_func(vshort,vushort,vint,vuint,vchar,vuchar,vfloat,x,y,a,b,c,intv_on_stack)
 #endif
   result = vec_func (vshort,    /* goes in v2 */
-                     vushort,   /* goes in v3 */
-                     vint,      /* goes in v4 */
-                     vuint,     /* goes in v5 */
-                     vchar,     /* goes in v6 */
-                     vuchar,    /* goes in v7 */
-                     vfloat,    /* goes in v8 */
-                     x,    /* goes in v9 */
-                     y,    /* goes in v10 */
-                     a,    /* goes in v11 */
-                     b,    /* goes in v12 */
-                     c,    /* goes in v13 */
-                     intv_on_stack);
+                    vushort,   /* goes in v3 */
+                    vint,      /* goes in v4 */
+                    vuint,     /* goes in v5 */
+                    vchar,     /* goes in v6 */
+                    vuchar,    /* goes in v7 */
+                    vfloat,    /* goes in v8 */
+                    x,    /* goes in v9 */
+                    y,    /* goes in v10 */
+                    a,    /* goes in v11 */
+                    b,    /* goes in v12 */
+                    c,    /* goes in v13 */
+                    intv_on_stack);
 
    struct_of_vector_func (vect_struct);
    array_of_vector_func (test4);
 
   return 0;
 }
-
index dfe7e243a9602a327a9a1d30e839bc87e44670f4..255cc268f22bdde121f4556c834ecdb5459d04c6 100644 (file)
@@ -59,9 +59,9 @@ gdb_test "set print frame-arguments all"
 
 # set all the registers integer portions to 1
 for {set i 0} {$i < 32} {incr i 1} {
-        for {set j 0} {$j < 4} {incr j 1} {
-           gdb_test "set \$vr$i.v4_int32\[$j\] = 1" "" "set reg vr$i.v4si.f\[$j\]"
-        }
+       for {set j 0} {$j < 4} {incr j 1} {
+          gdb_test "set \$vr$i.v4_int32\[$j\] = 1" "" "set reg vr$i.v4si.f\[$j\]"
+       }
 }
 
 gdb_test "set \$vscr = 1" "" ""
@@ -174,6 +174,3 @@ gdb_test "down" \
 gdb_test "finish" \
   "Run till exit from .0  vector_fun \\(a=.0x2020202, 0x2020202, 0x2020202, 0x2020202., b=.0x3030303, 0x3030303, 0x3030303, 0x3030303.\\) at.*altivec-regs.c.*in main \\(\\) at.*altivec-regs.c.*z = vector_fun \\(x, y\\);.*Value returned is.*= .0x5050505, 0x5050505, 0x5050505, 0x5050505." \
   "finish returned correct value"
-
-
-
index a48cbec62d30afcad1c6c1bd205df0edcf83c0ff..64d40300d20308b02feedc87e9aa178cef1baa15 100644 (file)
@@ -36,8 +36,8 @@ gdb_test "print \$gs_base = 3" "= 3" "set gs_base"
 #
 set ws "\[\t \]+"
 set info_reg_out [multi_line "info register fs_base gs_base" \
-          "fs_base${ws}0x2${ws}2"\
-          "gs_base${ws}0x3${ws}3" ]
+         "fs_base${ws}0x2${ws}2"\
+         "gs_base${ws}0x3${ws}3" ]
 
 gdb_test "info register fs_base gs_base" $info_reg_out\
    "info registers fs_base and gs_base with value"
index e96b85b23542753614becf5755f13f5272abe51a..054d4233cc64a6036ad8257fc965a3c6cfeb1a17 100644 (file)
@@ -41,7 +41,7 @@ gdb_breakpoint "g"
 gdb_continue_to_breakpoint "first time in g" ".* v = 2;"
 
 gdb_test "return" { f \(\); /\* second \*/} "return" \
-         {Make g return now\? \(y or n\) } "y"
+        {Make g return now\? \(y or n\) } "y"
 
 gdb_continue_to_breakpoint "second time in g" ".* v = 2;"
 
index dc1149cc3df1c141e9043f1ab3756daaa2f0f4fc..609997f3ab431d14846e235e4722d69682d23d04 100644 (file)
@@ -200,4 +200,3 @@ gdb_test "info frame 0" ".*Saved registers:$regs" \
 set regs [saved_regs_to_str {fp blink} alloca_inner]
 gdb_test "info frame 1" ".*Saved registers:$regs" \
     "saved registers in alloca_outer"
-
index 01b23ebec1252ede2b273eb1f7d77bff9cb19f65..ad8bf6b538136961236c785475865e76812027da 100644 (file)
@@ -125,4 +125,3 @@ runto start_branch_tests
 foreach test $branch_test_list {
     test_branch_insn $test
 }
-
index d20b2a84aa76f9089c56c6e6847dcf14186b8b5b..205b78b5973f659eb23e5eb49b822205d30f8eb6 100644 (file)
@@ -50,4 +50,3 @@ gdb_test "set architecture $arch2" \
 gdb_test "show disassembler-options" \
        "The current disassembler options are '$option'.*" \
        "show disassembler-options $option, modified architecture"
-
index a6214ef5a0fee8453cdc01cd8c27d5b958d93ad1..145c1c202cb8beba91a7d66288c7eca89165f199 100644 (file)
@@ -67,10 +67,10 @@ proc test_ldr_literal {} {
 
     gdb_test_multiple "break *test_ldr_literal" "" {
        -re "Breakpoint.*at.* file .*$srcfile, line.*\r\n$gdb_prompt $" {
-           pass $gdb_test_name
+          pass $gdb_test_name
        }
        -re "No symbol.*\r\n$gdb_prompt $" {
-           return 0
+          return 0
        }
     }
 
index 2f6b200fd84203d4b5652aca2d50eb895c4a3bba..b988cba0dd0e04ca217e023759d2557ab07bc693 100644 (file)
@@ -28,16 +28,16 @@ vector int m_vec_d = {0, 0};
 
 vector int
 vec_func (vector unsigned int a_vec_f,
-          vector int b_vec_f,
-          vector float c_vec_f,
-          vector unsigned int d_vec_f,
-          vector int e_vec_f,
-          vector unsigned short f_vec_f,
-          vector short g_vec_f,
-          vector float h_vec_f,
-          vector float i_vec_f,
-          vector unsigned int l_vec_f,
-          vector int m_vec_f)
+         vector int b_vec_f,
+         vector float c_vec_f,
+         vector unsigned int d_vec_f,
+         vector int e_vec_f,
+         vector unsigned short f_vec_f,
+         vector short g_vec_f,
+         vector float h_vec_f,
+         vector float i_vec_f,
+         vector unsigned int l_vec_f,
+         vector int m_vec_f)
 {
   vector int n_vec;
 
@@ -91,16 +91,16 @@ vec_func(a_vec,b_vec,c_vec,d_vec,e_vec,f_vec,g_vec,h_vec,i_vec,l_vec,m_vec)
 #endif
 
   res_vec = vec_func (a_vec,  /* goes in r3 */
-                      b_vec,  /* goes in r4 */
-                      c_vec,  /* goes in r5 */
-                      d_vec,  /* goes in r6 */
-                      e_vec,  /* goes in r7 */
-                      f_vec,  /* goes in r8 */
-                      g_vec,  /* goes in r9 */
-                      h_vec,  /* goes in r10 */
-                      i_vec,  /* goes in stack */
-                      l_vec,  /* goes in stack */
-                      m_vec);  /* goes in stack */
+                     b_vec,  /* goes in r4 */
+                     c_vec,  /* goes in r5 */
+                     d_vec,  /* goes in r6 */
+                     e_vec,  /* goes in r7 */
+                     f_vec,  /* goes in r8 */
+                     g_vec,  /* goes in r9 */
+                     h_vec,  /* goes in r10 */
+                     i_vec,  /* goes in stack */
+                     l_vec,  /* goes in stack */
+                     m_vec);  /* goes in stack */
 
   return 0;
 }
index b468e71fadfdaacaec7ab2f6082043baece832d1..18795828c29f42eed36d63dbefa1e3e0c3bb4f0c 100644 (file)
@@ -43,12 +43,12 @@ proc insert_breakpoint {function expected_location} {
     # Insert a breakpoint using the given function name, and extract
     # the breakpoint address for the output.
     gdb_test_multiple "break $function" "set breakpoint in $function" {
-        -re "Breakpoint 1 at ($hex).*$gdb_prompt $" {
-            set address $expect_out(1,string)
-        }
-        default {
-            fail "set breakpoint in $function"
-        }
+       -re "Breakpoint 1 at ($hex).*$gdb_prompt $" {
+           set address $expect_out(1,string)
+       }
+       default {
+           fail "set breakpoint in $function"
+       }
     }
 
     # If we managed to get the breakpoing address, then check that
@@ -58,8 +58,8 @@ proc insert_breakpoint {function expected_location} {
     # the instruction).
     if {$address != ""} {
        gdb_test "x /i $address" \
-                ".*<$function\\+$expected_location>.*" \
-                "check $function breakpoint address"
+               ".*<$function\\+$expected_location>.*" \
+               "check $function breakpoint address"
     } else {
        fail "unable to compute breakpoint address"
     }
index fa10b4f6a1d004cdf5362ade309d263d3cf5de06..ae10b8e3d7ac515c2a855b9ea8fcda8405328081 100644 (file)
@@ -46,9 +46,9 @@ if {![runto_main]} {
 
 # set all the registers integer portions to 1
 for {set i 0} {$i < 32} {incr i 1} {
-        for {set j 0} {$j < 2} {incr j 1} {
-           gdb_test "set \$ev$i.v2_int32\[$j\] = 1" "" "set reg ev$i.v4si.f\[$j\]"
-        }
+       for {set j 0} {$j < 2} {incr j 1} {
+          gdb_test "set \$ev$i.v2_int32\[$j\] = 1" "" "set reg ev$i.v4si.f\[$j\]"
+       }
 }
 
 # Now execute some target code, so that GDB's register cache is flushed.
@@ -68,7 +68,7 @@ set vector_register ".uint64 = 0x100000001, v2_float = .0x0, 0x0., v2_int32 = .0
 }
 
 for {set i 0} {$i < 32} {incr i 1} {
-        gdb_test "info reg ev$i" "ev$i.*$vector_register" "info reg ev$i"
+       gdb_test "info reg ev$i" "ev$i.*$vector_register" "info reg ev$i"
 }
 
 # Test whether the GPRs are updated accordingly. (GPRs are just the lower
@@ -77,7 +77,7 @@ for {set i 0} {$i < 32} {incr i 1} {
 set general_register "0x1\[ \t\]+1"
 
 for {set i 0} {$i < 32} {incr i 1} {
-        gdb_test "info reg r$i" "r$i.*$general_register" "info reg r$i"
+       gdb_test "info reg r$i" "r$i.*$general_register" "info reg r$i"
 }
 
 # Now redo the same tests, but using the print command.
@@ -89,12 +89,12 @@ if {$endianness == "big"} {
 }
 
 for {set i 0} {$i < 32} {incr i 1} {
-        gdb_test "print \$ev$i" ".* = $decimal_vector" "print ev$i"
+       gdb_test "print \$ev$i" ".* = $decimal_vector" "print ev$i"
 }
 
 for {set i 0} {$i < 32} {incr i 1} {
-         set pattern$i ".*ev$i.*"
-         append pattern$i $vector_register
+        set pattern$i ".*ev$i.*"
+        append pattern$i $vector_register
 }
 
 send_gdb "info vector\n"
@@ -195,6 +195,3 @@ gdb_test "down" \
 gdb_test "finish" \
   "Run till exit from .0  vector_fun \\(a=.2, 2., b=.3, 3.\\) at.*e500-regs.c.*main \\(\\) at.*e500-regs.c.*z = vector_fun \\(x, y\\);.*Value returned is.*= .2, 2." \
   "finish returned correct value"
-
-
-
index 3a1d8e8607b0cba8ae15f6bf8a2b7dd01d1a60a1..84f763f9eb4e8c2777b9b8656c30d0dc4fe0effc 100644 (file)
@@ -49,8 +49,8 @@ if {![runto_main]} {
 }
 
 gdb_test "break [gdb_get_line_number "first breakpoint here"]" \
-         "Breakpoint .* at .*i386-avx.c.*" \
-         "set first breakpoint in main"
+        "Breakpoint .* at .*i386-avx.c.*" \
+        "set first breakpoint in main"
 gdb_continue_to_breakpoint "continue to first breakpoint in main"
 
 if {[is_amd64_regs_target]} {
@@ -61,11 +61,11 @@ if {[is_amd64_regs_target]} {
 
 for { set r 0 } { $r < $nr_regs } { incr r } {
     gdb_test "print \$ymm$r.v8_float" \
-        ".. = \\{$r, $r.125, $r.25, $r.375, $r.5, $r.625, $r.75, $r.875\\}.*" \
-        "check float contents of %ymm$r"
+       ".. = \\{$r, $r.125, $r.25, $r.375, $r.5, $r.625, $r.75, $r.875\\}.*" \
+       "check float contents of %ymm$r"
     gdb_test "print \$ymm$r.v32_int8" \
-        ".. = \\{(-?\[0-9\]+, ){31}-?\[0-9\]+\\}.*" \
-        "check int8 contents of %ymm$r"
+       ".. = \\{(-?\[0-9\]+, ){31}-?\[0-9\]+\\}.*" \
+       "check int8 contents of %ymm$r"
 }
 
 for { set r 0 } { $r < $nr_regs } { incr r } {
@@ -73,14 +73,14 @@ for { set r 0 } { $r < $nr_regs } { incr r } {
 }
 
 gdb_test "break [gdb_get_line_number "second breakpoint here"]" \
-         "Breakpoint .* at .*i386-avx.c.*" \
-         "set second breakpoint in main"
+        "Breakpoint .* at .*i386-avx.c.*" \
+        "set second breakpoint in main"
 gdb_continue_to_breakpoint "continue to second breakpoint in main"
 
 for { set r 0 } { $r < $nr_regs } { incr r } {
     gdb_test "print data\[$r\]" \
-        ".. = \\{f = \\{[expr {$r + 10}], $r.125, $r.25, $r.375, $r.5, $r.625, $r.75, $r.875\\}\\}.*" \
-        "check contents of data\[$r\]"
+       ".. = \\{f = \\{[expr {$r + 10}], $r.125, $r.25, $r.375, $r.5, $r.625, $r.75, $r.875\\}\\}.*" \
+       "check contents of data\[$r\]"
 }
 
 # If testing with a remote protocol target, check that we can
index 675a3c79801e89fb16b6a192239981cccaf34580..8abf79c97c9d67623a00c13b7f915d817c1c0e5d 100644 (file)
@@ -40,11 +40,11 @@ set supports_avx512 0
 set test "probe AVX512 support"
 gdb_test_multiple "print have_avx512()" $test {
     -re ".. = 1\r\n$gdb_prompt $" {
-        pass $test
-        set supports_avx512 1
+       pass $test
+       set supports_avx512 1
     }
     -re ".. = 0\r\n$gdb_prompt $" {
-        pass $test
+       pass $test
     }
 }
 
@@ -62,8 +62,8 @@ set nr_regs 8
 
 for { set r 1 } { $r < $nr_regs } { incr r } {
     gdb_test "print/x \$k$r" \
-        ".. = 0x[format %x $r]2[format %x $r]1" \
-        "check contents of %k$r"
+       ".. = 0x[format %x $r]2[format %x $r]1" \
+       "check contents of %k$r"
 }
 
 for { set r 1 } { $r < $nr_regs } { incr r } {
@@ -80,8 +80,8 @@ set nr_regs 7
 for { set r 0 } { $r < $nr_regs } { incr r } {
     set val [expr {$r + 1}]
     gdb_test "print/x k_data\[$r\]" \
-        ".. = 0x$val$val$val$val" \
-        "check contents of k_data\[$r\]"
+       ".. = 0x$val$val$val$val" \
+       "check contents of k_data\[$r\]"
 }
 
 gdb_test "break [gdb_get_line_number "third breakpoint here"]" \
@@ -97,23 +97,23 @@ if {[is_amd64_regs_target]} {
 
 for { set r 0 } { $r < $nr_regs } { incr r } {
     gdb_test "print \$zmm$r.v8_double" \
-        ".. = \\{$r, $r.125, $r.25, $r.375, $r.5, $r.625, $r.75, $r.875\\}.*" \
-        "check double contents of %zmm$r"
+       ".. = \\{$r, $r.125, $r.25, $r.375, $r.5, $r.625, $r.75, $r.875\\}.*" \
+       "check double contents of %zmm$r"
     gdb_test "print \$zmm$r.v32_int16" \
-        ".. = \\{(-?\[0-9\]+, ){31}-?\[0-9\]+\\}.*" \
-        "check int16 contents of %zmm$r"
+       ".. = \\{(-?\[0-9\]+, ){31}-?\[0-9\]+\\}.*" \
+       "check int16 contents of %zmm$r"
     gdb_test "print \$ymm$r.v4_double" \
-        ".. = \\{$r, $r.125, $r.25, $r.375\\}.*" \
-        "check float contents of %ymm$r"
+       ".. = \\{$r, $r.125, $r.25, $r.375\\}.*" \
+       "check float contents of %ymm$r"
     gdb_test "print \$ymm$r.v16_int16" \
-        ".. = \\{(-?\[0-9\]+, ){15}-?\[0-9\]+\\}.*" \
-        "check int16 contents of %ymm$r"
+       ".. = \\{(-?\[0-9\]+, ){15}-?\[0-9\]+\\}.*" \
+       "check int16 contents of %ymm$r"
     gdb_test "print \$xmm$r.v2_double" \
-        ".. = \\{$r, $r.125\\}.*" \
-        "check float contents of %xmm$r"
+       ".. = \\{$r, $r.125\\}.*" \
+       "check float contents of %xmm$r"
     gdb_test "print \$xmm$r.v8_int16" \
-        ".. = \\{(-?\[0-9\]+, ){7}-?\[0-9\]+\\}.*" \
-        "check int16 contents of %xmm$r"
+       ".. = \\{(-?\[0-9\]+, ){7}-?\[0-9\]+\\}.*" \
+       "check int16 contents of %xmm$r"
 }
 
 for { set r 0 } { $r < $nr_regs } { incr r } {
@@ -134,8 +134,8 @@ gdb_continue_to_breakpoint "continue to fourth breakpoint in main"
 
 for { set r 0 } { $r < $nr_regs } { incr r } {
     gdb_test "print zmm_data\[$r\]" \
-        ".. = \\{f = \\{[expr {$r + 10}], [expr {$r + 10.125}], [expr {$r + 10.25}], [expr {$r + 10.375}], [expr {$r + 10.5}], [expr {$r + 10.625}], [expr {$r +10.75}], [expr {$r + 10.875}]\\}\\}.*" \
-        "check contents of zmm_data\[$r\] after writing ZMM regs"
+       ".. = \\{f = \\{[expr {$r + 10}], [expr {$r + 10.125}], [expr {$r + 10.25}], [expr {$r + 10.375}], [expr {$r + 10.5}], [expr {$r + 10.625}], [expr {$r +10.75}], [expr {$r + 10.875}]\\}\\}.*" \
+       "check contents of zmm_data\[$r\] after writing ZMM regs"
 }
 
 for { set r 0 } { $r < $nr_regs } { incr r } {
@@ -152,8 +152,8 @@ gdb_continue_to_breakpoint "continue to fifth breakpoint in main"
 
 for { set r 0 } { $r < $nr_regs } { incr r } {
     gdb_test "print zmm_data\[$r\]" \
-        ".. = \\{f = \\{[expr {$r + 20}], [expr {$r + 20.125}], [expr {$r + 20.25}], [expr {$r + 20.375}], [expr {$r + 10.5}], [expr {$r + 10.625}], [expr {$r + 10.75}], [expr {$r + 10.875}]\\}\\}.*" \
-        "check contents of zmm_data\[$r\] after writing YMM regs"
+       ".. = \\{f = \\{[expr {$r + 20}], [expr {$r + 20.125}], [expr {$r + 20.25}], [expr {$r + 20.375}], [expr {$r + 10.5}], [expr {$r + 10.625}], [expr {$r + 10.75}], [expr {$r + 10.875}]\\}\\}.*" \
+       "check contents of zmm_data\[$r\] after writing YMM regs"
 }
 
 for { set r 0 } { $r < $nr_regs } { incr r } {
@@ -168,8 +168,8 @@ gdb_continue_to_breakpoint "continue to sixth breakpoint in main"
 
 for { set r 0 } { $r < $nr_regs } { incr r } {
     gdb_test "print zmm_data\[$r\]" \
-        ".. = \\{f = \\{[expr {$r + 30}], [expr {$r + 30.125}], [expr {$r + 20.25}], [expr {$r + 20.375}], [expr {$r + 10.5}], [expr {$r + 10.625}], [expr {$r + 10.75}], [expr {$r + 10.875}]\\}\\}.*" \
-        "check contents of zmm_data\[$r\] after writing XMM regs"
+       ".. = \\{f = \\{[expr {$r + 30}], [expr {$r + 30.125}], [expr {$r + 20.25}], [expr {$r + 20.375}], [expr {$r + 10.5}], [expr {$r + 10.625}], [expr {$r + 10.75}], [expr {$r + 10.875}]\\}\\}.*" \
+       "check contents of zmm_data\[$r\] after writing XMM regs"
 }
 
 gdb_test "break [gdb_get_line_number "seventh breakpoint here"]" \
index 0d66be4bfdd8b0ffeeea0fff686f1417b989c9b2..68ec8b16801a318e0625a5e82fb6fd9054c67e6d 100644 (file)
    using the following source file:
 
 
-       void *gate (void *(*gate) (void *data), void *data)
-       {
-         return 1 + (*gate) (data);
-       }
+       void *gate (void *(*gate) (void *data), void *data)
+       {
+         return 1 + (*gate) (data);
+       }
 
    Changes are marked as `CHANGE' below.  */
 
index c446faec77782e1e8010ccad3613175307d74ca5..d2bc488a815748e299cdf5d889fc8966110a9a48 100644 (file)
@@ -74,8 +74,8 @@ if { $gate_n == "" } {
 # We see there the original CFI-stored filename `gate.c'.
 
 gdb_test "frame $gate_n" \
-         "gate \\(\[^()\]*\\) at .*gate.c.*" \
-         "shift up to the modified frame"
+        "gate \\(\[^()\]*\\) at .*gate.c.*" \
+        "shift up to the modified frame"
 
 gdb_test_multiple "info frame" "existence of the CFI inserted register" {
     -re "Stack level $gate_n, frame at (0x\[0-9a-f\]+):.*Saved registers:.* ecx at (0x\[0-9a-f\]+),.*" {
index e2dae9860a3c10ba03982ce1ceb6ad1a1caba4e6..0d972fdb60640a8882657e95a9f232f90a21d211 100644 (file)
@@ -34,8 +34,8 @@ rdpkru (void)
   unsigned int pkru;
 
   asm volatile (".byte 0x0f,0x01,0xee\n\t"
-               : "=a" (eax), "=d" (edx)
-               : "c" (ecx));
+              : "=a" (eax), "=d" (edx)
+              : "c" (ecx));
   pkru = eax;
   return pkru;
 }
@@ -48,7 +48,7 @@ wrpkru (unsigned int pkru)
   unsigned int edx = 0;
 
   asm volatile (".byte 0x0f,0x01,0xef\n\t"
-               : : "a" (eax), "c" (ecx), "d" (edx));
+              : : "a" (eax), "c" (ecx), "d" (edx));
 }
 
 unsigned int NOINLINE
index 6355c43e528f65ec0fbc71afbfdee8bcac023aa4..ad312285fb5a87d5f04d4af3f59a01c9b3b23d7e 100644 (file)
@@ -42,11 +42,11 @@ set supports_pkru 0
 set test "probe PKRU support"
 gdb_test_multiple "print have_pkru()" $test {
     -re ".. = 1\r\n$gdb_prompt $" {
-        pass $test
-        set supports_pkru 1
+       pass $test
+       set supports_pkru 1
     }
     -re ".. = 0\r\n$gdb_prompt $" {
-        pass $test
+       pass $test
     }
 }
 
index a340259978bb07a66dbff32e13c1f78440b708d0..cc9c9b9fa4269013d436beba5bd11632cf313803 100644 (file)
@@ -166,4 +166,3 @@ asm(".text\n"
     "    popl  %ebp\n"
     "    leal  -4(%eax), %esp\n"
     "    ret\n");
-
index bfab6d1c167c94ad3ef3525f92284c314ce35134..d34f4250c8dcead4c5e3439c1baa701bd2013aaa 100644 (file)
@@ -216,6 +216,6 @@ gdb_test_multiple "break jump_at_beginning" \
                "check jump_at_beginning prologue end"
     }
     default {
-        fail "set breakpoint in jump_at_beginning"
+       fail "set breakpoint in jump_at_beginning"
     }
 }
index dfedf12b097453f8a0d0d16193dbe8a1bd82b2d0..2faabfc4862b866ba35d78981050f0d13988ec38 100644 (file)
@@ -78,57 +78,57 @@ main (int argc, char **argv)
   if (have_sse ())
     {
       asm ("movaps 0(%0), %%xmm0\n\t"
-           "movaps 16(%0), %%xmm1\n\t"
-           "movaps 32(%0), %%xmm2\n\t"
-           "movaps 48(%0), %%xmm3\n\t"
-           "movaps 64(%0), %%xmm4\n\t"
-           "movaps 80(%0), %%xmm5\n\t"
-           "movaps 96(%0), %%xmm6\n\t"
-           "movaps 112(%0), %%xmm7\n\t"
-           : /* no output operands */
-           : "r" (data)
-           : "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7");
+          "movaps 16(%0), %%xmm1\n\t"
+          "movaps 32(%0), %%xmm2\n\t"
+          "movaps 48(%0), %%xmm3\n\t"
+          "movaps 64(%0), %%xmm4\n\t"
+          "movaps 80(%0), %%xmm5\n\t"
+          "movaps 96(%0), %%xmm6\n\t"
+          "movaps 112(%0), %%xmm7\n\t"
+          : /* no output operands */
+          : "r" (data)
+          : "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7");
 #ifdef __x86_64__
       asm ("movaps 128(%0), %%xmm8\n\t"
-           "movaps 144(%0), %%xmm9\n\t"
-           "movaps 160(%0), %%xmm10\n\t"
-           "movaps 176(%0), %%xmm11\n\t"
-           "movaps 192(%0), %%xmm12\n\t"
-           "movaps 208(%0), %%xmm13\n\t"
-           "movaps 224(%0), %%xmm14\n\t"
-           "movaps 240(%0), %%xmm15\n\t"
-           : /* no output operands */
-           : "r" (data)
-           : "xmm8", "xmm9", "xmm10", "xmm11", "xmm12", "xmm13", "xmm14", "xmm15");
+          "movaps 144(%0), %%xmm9\n\t"
+          "movaps 160(%0), %%xmm10\n\t"
+          "movaps 176(%0), %%xmm11\n\t"
+          "movaps 192(%0), %%xmm12\n\t"
+          "movaps 208(%0), %%xmm13\n\t"
+          "movaps 224(%0), %%xmm14\n\t"
+          "movaps 240(%0), %%xmm15\n\t"
+          : /* no output operands */
+          : "r" (data)
+          : "xmm8", "xmm9", "xmm10", "xmm11", "xmm12", "xmm13", "xmm14", "xmm15");
 #endif
 
       asm ("nop"); /* first breakpoint here */
 
       asm (
-           "movaps %%xmm0, 0(%0)\n\t"
-           "movaps %%xmm1, 16(%0)\n\t"
-           "movaps %%xmm2, 32(%0)\n\t"
-           "movaps %%xmm3, 48(%0)\n\t"
-           "movaps %%xmm4, 64(%0)\n\t"
-           "movaps %%xmm5, 80(%0)\n\t"
-           "movaps %%xmm6, 96(%0)\n\t"
-           "movaps %%xmm7, 112(%0)\n\t"
-           : /* no output operands */
-           : "r" (data)
-           : "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7");
+          "movaps %%xmm0, 0(%0)\n\t"
+          "movaps %%xmm1, 16(%0)\n\t"
+          "movaps %%xmm2, 32(%0)\n\t"
+          "movaps %%xmm3, 48(%0)\n\t"
+          "movaps %%xmm4, 64(%0)\n\t"
+          "movaps %%xmm5, 80(%0)\n\t"
+          "movaps %%xmm6, 96(%0)\n\t"
+          "movaps %%xmm7, 112(%0)\n\t"
+          : /* no output operands */
+          : "r" (data)
+          : "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7");
 #ifdef __x86_64__
       asm (
-           "movaps %%xmm8, 128(%0)\n\t"
-           "movaps %%xmm9, 144(%0)\n\t"
-           "movaps %%xmm10, 160(%0)\n\t"
-           "movaps %%xmm11, 176(%0)\n\t"
-           "movaps %%xmm12, 192(%0)\n\t"
-           "movaps %%xmm13, 208(%0)\n\t"
-           "movaps %%xmm14, 224(%0)\n\t"
-           "movaps %%xmm15, 240(%0)\n\t"
-           : /* no output operands */
-           : "r" (data)
-           : "xmm8", "xmm9", "xmm10", "xmm11", "xmm12", "xmm13", "xmm14", "xmm15");
+          "movaps %%xmm8, 128(%0)\n\t"
+          "movaps %%xmm9, 144(%0)\n\t"
+          "movaps %%xmm10, 160(%0)\n\t"
+          "movaps %%xmm11, 176(%0)\n\t"
+          "movaps %%xmm12, 192(%0)\n\t"
+          "movaps %%xmm13, 208(%0)\n\t"
+          "movaps %%xmm14, 224(%0)\n\t"
+          "movaps %%xmm15, 240(%0)\n\t"
+          : /* no output operands */
+          : "r" (data)
+          : "xmm8", "xmm9", "xmm10", "xmm11", "xmm12", "xmm13", "xmm14", "xmm15");
 #endif
 
       puts ("Bye!"); /* second breakpoint here */
index ee22b62de61ce4b64ceb63783da41eb2cf89d3af..74f82e4776e7789b18ec906ee007e29a4a32c6e0 100644 (file)
@@ -49,23 +49,23 @@ if {![runto_main]} {
 send_gdb "print have_sse ()\r"
 gdb_expect {
     -re ".. = 1\r\n$gdb_prompt " {
-        pass "check whether processor supports SSE"
+       pass "check whether processor supports SSE"
     }
     -re ".. = 0\r\n$gdb_prompt " {
-        verbose "processor does not support SSE; skipping SSE tests"
-        return
+       verbose "processor does not support SSE; skipping SSE tests"
+       return
     }
     -re ".*$gdb_prompt $" {
-        fail "check whether processor supports SSE"
+       fail "check whether processor supports SSE"
     }
     timeout {
-        fail "check whether processor supports SSE (timeout)"
+       fail "check whether processor supports SSE (timeout)"
     }
 }
 
 gdb_test "break [gdb_get_line_number "first breakpoint here"]" \
-         "Breakpoint .* at .*i386-sse.c.*" \
-         "set first breakpoint in main"
+        "Breakpoint .* at .*i386-sse.c.*" \
+        "set first breakpoint in main"
 gdb_continue_to_breakpoint "continue to first breakpoint in main"
 
 if {[is_amd64_regs_target]} {
@@ -76,11 +76,11 @@ if {[is_amd64_regs_target]} {
 
 for { set r 0 } { $r < $nr_regs } { incr r } {
     gdb_test "print \$xmm$r.v4_float" \
-        ".. = \\{$r, $r.25, $r.5, $r.75\\}.*" \
-        "check float contents of %xmm$r"
+       ".. = \\{$r, $r.25, $r.5, $r.75\\}.*" \
+       "check float contents of %xmm$r"
     gdb_test "print \$xmm$r.v16_int8" \
-        ".. = \\{(-?\[0-9\]+, ){15}-?\[0-9\]+\\}.*" \
-        "check int8 contents of %xmm$r"
+       ".. = \\{(-?\[0-9\]+, ){15}-?\[0-9\]+\\}.*" \
+       "check int8 contents of %xmm$r"
 }
 
 for { set r 0 } { $r < $nr_regs } { incr r } {
@@ -88,12 +88,12 @@ for { set r 0 } { $r < $nr_regs } { incr r } {
 }
 
 gdb_test "break [gdb_get_line_number "second breakpoint here"]" \
-         "Breakpoint .* at .*i386-sse.c.*" \
-         "set second breakpoint in main"
+        "Breakpoint .* at .*i386-sse.c.*" \
+        "set second breakpoint in main"
 gdb_continue_to_breakpoint "continue to second breakpoint in main"
 
 for { set r 0 } { $r < $nr_regs } { incr r } {
     gdb_test "print data\[$r\]" \
-        ".. = \\{f = \\{[expr {$r + 10}], $r.25, $r.5, $r.75\\}\\}.*" \
-        "check contents of data\[$r\]"
+       ".. = \\{f = \\{[expr {$r + 10}], $r.25, $r.5, $r.75\\}\\}.*" \
+       "check contents of data\[$r\]"
 }
index ed617fc13840dfc7a680559657b2b3d51baafd31..23ceaecd5e20b6103cd004babbf2f4f24d45e265 100644 (file)
@@ -41,7 +41,7 @@ set match "\nDump of assembler code for function main:\r\n(.*)End of assembler d
 set test "disassembly without breakpoints"
 gdb_test_multiple "disass main" $test {
     -re $match {
-       set orig $expect_out(1,string)
+       set orig $expect_out(1,string)
        pass $test
     }
 }
@@ -64,7 +64,7 @@ gdb_test "b *($bpt2address + 2)" "Can't insert breakpoint for non-existing slot
 set test "disassembly with breakpoints"
 gdb_test_multiple "disass main" $test {
     -re $match {
-       set got $expect_out(1,string)
+       set got $expect_out(1,string)
        if {[string equal -nocase $orig $got]} {
            pass $test
        } else {
index 32adcb5a488caf5461acf605cd115be5d5a76fc0..bd60c4c97e6873efaa4cc06c6ddeb4e83fcc6e86 100644 (file)
@@ -529,12 +529,12 @@ can_relocate_br (void)
   int ok = 0;
 
   asm goto ("  adr x0, %l0\n"
-            "set_point12:\n"
-            "  br x0\n"
-            :
-            :
-            : "x0"
-            : madejump);
+           "set_point12:\n"
+           "  br x0\n"
+           :
+           :
+           : "x0"
+           : madejump);
 
   fail ();
   return;
index 09d39f057dafc9906796876d6b49329e85876b40..8a6a74165c29e80d5f87559a6a0a9869f215cdcc 100644 (file)
@@ -25,8 +25,8 @@ main (void)
 
      mips-fpregset-core.f: In function 'main':
      mips-fpregset-core.f:66:3: error: more than 30 operands in 'asm'
-        asm (
-        ^~~
+       asm (
+       ^~~
 
      and still have complete 32 FGR coverage with FP64 ABIs.  Using
      a complex type breaks o32 GCC though, so use plain `double' with
index d67cef2f5905fdb3a5cf035715983ccdb09ad967..575d7f6e1045f714fb082e020ce55bd5e1d01dc2 100644 (file)
@@ -88,15 +88,15 @@ runto break_here
 gdb_test_multiple "show mipsfpu" "check for MIPS floating-point coprocessor" {
     -re "The MIPS floating-point coprocessor\
         .*\(absent\|unknown\).*$gdb_prompt $" {
-        unsupported "no MIPS floating-point coprocessor in the processor"
-        return
+       unsupported "no MIPS floating-point coprocessor in the processor"
+       return
     }
     -re "The MIPS floating-point coprocessor .*$gdb_prompt $" {
-        verbose "MIPS floating-point coprocessor check successful."
+       verbose "MIPS floating-point coprocessor check successful."
     }
     default {
-        fail
-        return
+       fail
+       return
     }
 }
 
index cb8eeeb72789b971f146cd23356ce69a281bb138..eedd802456ee479295417e9533493a5f64204878 100644 (file)
@@ -26,8 +26,8 @@ switch -glob -- [istarget] {
        set testfile "pa64-nullify"
     }
     "*" {
-        unsupported "Skipping hppa nullification tests."
-        return
+       unsupported "Skipping hppa nullification tests."
+       return
     }
 }
 
index 9d88c788908304ab543079924f5d5a3f8708fe3c..5c230d41a53418ebe0a08fae30152c895ac3e058 100644 (file)
@@ -111,4 +111,3 @@ if {$check_r9 - 0x1000000  != $check_r6 + 0xc} {
 gdb_test "info break"
 gdb_test "info register r3 r4 r5 r6 r7 r8 r9"
 gdb_test "disas main"
-
index 4e6ee78b9fb4a4043e429fa1b70131b000f75692..b8c045c228fe8b372d17dc8b70342cce04d8aa80 100644 (file)
@@ -44,12 +44,12 @@ proc insert_breakpoint {function expected_location} {
     # Insert a breakpoint using the given function name, and extract
     # the breakpoint address for the output.
     gdb_test_multiple "break $function" "set breakpoint in $function" {
-        -re "Breakpoint .* at ($hex).*$gdb_prompt $" {
-            set address $expect_out(1,string)
-        }
-        default {
-            fail "set breakpoint in $function"
-        }
+       -re "Breakpoint .* at ($hex).*$gdb_prompt $" {
+           set address $expect_out(1,string)
+       }
+       default {
+           fail "set breakpoint in $function"
+       }
     }
 
     # If we managed to get the breakpoing address, then check that
@@ -59,8 +59,8 @@ proc insert_breakpoint {function expected_location} {
     # the instruction).
     if {$address != ""} {
        gdb_test "x /i $address" \
-                ".*<$function\\+$expected_location>.*" \
-                "check $function breakpoint address"
+               ".*<$function\\+$expected_location>.*" \
+               "check $function breakpoint address"
     } else {
        fail "unable to compute breakpoint address"
     }
@@ -72,4 +72,3 @@ insert_breakpoint "stack_check_probe_1" 16
 insert_breakpoint "stack_check_probe_2" 40
 insert_breakpoint "stack_check_probe_loop_1" 68
 insert_breakpoint "stack_check_probe_loop_2" 60
-
index 4d57c8777b7722ee4a66a0045f2d9b04210a5f6e..b2d8d94f554244b9331852e5f6e2d3d9aba2f642 100644 (file)
@@ -50,4 +50,3 @@ gdb_test "set architecture $arch2" \
 gdb_test "show disassembler-options" \
        "The current disassembler options are '$option'.*" \
        "show disassembler-options $option after set arch $arch2"
-
index 456833e662aa82029d4e4fa4ea1faa20e8f268b3..f6773fdf40ea474670e6939e7562f5cc9e0c5db2 100644 (file)
@@ -323,4 +323,3 @@ with_test_prefix "after transaction failure" {
        test_register_match "vs$i.uint128" "cvs$i" 1
     }
 }
-
index c317465c9ea72dd67203bc63ac0df2ecb0743a89..71f0235aff65a30299ccfffbdb39cda845e444e5 100644 (file)
@@ -107,4 +107,3 @@ gdb_test "disas main"
 
 # Let the inferior store all vector registers in a buffer, then dump
 # the buffer and check it.
-
index ef6e1ff39476071185f5cb6b05a9074990d3a720..5e055138740a79b301aa0f97f0943801cc3f30c8 100644 (file)
@@ -125,4 +125,3 @@ if {$check_vs7 != $vs7_expected} {
 gdb_test "info break"
 gdb_test "info register vs4 vs5 vs6 vs7 "
 gdb_test "disas main #2"
-
index 4682cb9453b5a707f26074bb055fa67db7a54671..f1c137603b7a1afbf9262c34e1259bc8471e1192 100644 (file)
@@ -34,5 +34,5 @@ if {![runto bar]} {
 }
 
 gdb_test "bt" \
-         "#0\[ \t\]*$hex in bar.*\r\n#1\[ \t\]*$hex in foo.*\r\n#2\[ \t\]*$hex in main.*" \
-         "Backtrace to the main frame"
+        "#0\[ \t\]*$hex in bar.*\r\n#1\[ \t\]*$hex in foo.*\r\n#2\[ \t\]*$hex in main.*" \
+        "Backtrace to the main frame"
index 04d76f503782bc57a8d506ed7798c08e3b9d1e63..fb9e743d9b685473eaf98338c83f45880537ccd3 100644 (file)
@@ -58,7 +58,7 @@ while {$keep_going} {
 
            incr count
            if {$count < $expected_traps} {
-               set keep_going 1
+               set keep_going 1
            }
        }
     }
index a5401a3996924a1a20ce199e76234a4909928c6a..da1058464e432aa83b9c30d6d3a507442f6b4ca3 100644 (file)
@@ -75,4 +75,3 @@ gdb_test "backtrace 10" \
 gdb_test "info frame" \
        ".*Saved registers:.*r30 at.*pc at.*lr at.*" \
        "saved registers in optimized"
-
index 739e36f2a2e449141743c4a7c552074390dbf9c8..f5d8743fec9f74f3884ad1d68d055927733355ff 100644 (file)
@@ -25,13 +25,13 @@ proc do_test { name {opts {}} } {
     # We get this warning even with the nowarnings option ...
     regsub -all "(^|\n)\[^\n\]*using \[^\n\]* extended precision long double" $lines "" lines
     if {$lines != ""} {
-        return
+       return
     }
 
     clean_restart ${::testfile}.${name}
 
     if {![runto_main]} {
-        return
+       return
     }
 
     # Run to the breakpoint at return.
@@ -52,4 +52,3 @@ proc do_test { name {opts {}} } {
 do_test default { -mfloat128 }
 do_test ieee128 { -mfloat128 -mabi=ieeelongdouble }
 do_test ibm128 { -mfloat128 -mabi=ibmlongdouble }
-
index 0f19080507ce62f8ab69500e0d3d863dac7549c5..216020a752c12722c3618e3fea7e763f54e09a78 100644 (file)
@@ -33,7 +33,7 @@ main (int argc, char *argv[], char *envp[], auxv_t auxv[])
   for (i = 0; auxv[i].a_type != AT_NULL; i++)
     if (auxv[i].a_type == AT_HWCAP2) {
       if (!(auxv[i].a_un.a_val & PPC_FEATURE2_ARCH_2_07))
-        return 1;
+       return 1;
       break;
     }
 
index 20af541832450aa8d7a8e3abf0ba727baf94812f..90f54fb932cd23992dfacb4048fe970f1e1521da 100644 (file)
@@ -27,4 +27,3 @@ main ()
 {
   return foo ();
 }
-
index 219feafd8f809d0666ab3dd50596091bb7953b84..1a7f60072646f1d76044b71b39d6b7da3acdd60b 100644 (file)
@@ -33,9 +33,9 @@ gdb_breakpoint "bar"
 gdb_continue_to_breakpoint "bar"
 gdb_test "bt" \
     [multi_line \
-         "#0\[ \t\]*$hex in bar \\\(\\\)" \
-         "#1\[ \t\]*$hex in foo \\\(\\\)" \
-         "#2\[ \t\]*$hex in main \\\(\\\)"] \
+        "#0\[ \t\]*$hex in bar \\\(\\\)" \
+        "#1\[ \t\]*$hex in foo \\\(\\\)" \
+        "#2\[ \t\]*$hex in main \\\(\\\)"] \
     "Backtrace to the main frame"
 gdb_test "finish" "foo \\\(\\\)" "finish bar"
 gdb_test "finish" "main \\\(\\\)" "finish foo"
index dd8b67696d29ad995625a634637372488cb0adb6..2299ba0b123e19c1295fe1838d90752fa5c8ad2c 100644 (file)
@@ -26,4 +26,3 @@ main ()
 {
   return foo ();
 }
-
index aa749728945efd9f79c3806356f5417784976255..15d25efe5e5ac5079ff9d1ced1cdceac0ee7e028 100644 (file)
@@ -33,9 +33,9 @@ gdb_breakpoint "bar"
 gdb_continue_to_breakpoint "bar"
 gdb_test "bt" \
     [multi_line \
-         "#0\[ \t\]*$hex in bar \\\(\\\)" \
-         "#1\[ \t\]*$hex in foo \\\(\\\)" \
-         "#2\[ \t\]*$hex in main \\\(\\\)"] \
+        "#0\[ \t\]*$hex in bar \\\(\\\)" \
+        "#1\[ \t\]*$hex in foo \\\(\\\)" \
+        "#2\[ \t\]*$hex in main \\\(\\\)"] \
     "Backtrace to the main frame"
 gdb_test "finish" "foo \\\(\\\)" "finish bar"
 gdb_test "finish" "main \\\(\\\)" "finish foo"
index 44051167778af9fde314da6cb767d6bd366ab853..3c3a195fa1f61c2db4e93e636485bbc6223460bd 100644 (file)
@@ -95,7 +95,7 @@ int main ()
   if (fd < 0)
     exit(1);
   char *maddr = (char *)mmap (NULL, MAPSIZE, PROT_READ|PROT_WRITE,
-                              MAP_PRIVATE, fd, 0);
+                             MAP_PRIVATE, fd, 0);
   if (maddr == (char *)-1)
     exit(1);
   /* Enable ADI. */
index 40a8eab14565592ffa314cc09edf1c26cc2ea9ff..874d8378295e21348aa35a2b895256b46a30c7c9 100644 (file)
@@ -23,7 +23,7 @@ require {istarget "sparc64*-*-linux*"}
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
-          [list debug libs=-ladi]] } {
+         [list debug libs=-ladi]] } {
     return -1
 }
 
@@ -32,8 +32,8 @@ if {![runto_main]} {
 }
 
 gdb_test "break [gdb_get_line_number "line breakpoint here"]" \
-         "Breakpoint .* at .*${srcfile}.*" \
-         "set line breakpoint in main"
+        "Breakpoint .* at .*${srcfile}.*" \
+        "set line breakpoint in main"
 gdb_continue_to_breakpoint "continue to line breakpoint in main"
 
 ##########################################
@@ -41,9 +41,9 @@ set newadi "7"
 gdb_test "adi x shmaddr" "${hex}00:\t0" "examine ADI"
 gdb_test_no_output "adi a/100 shmaddr=${newadi}" "assign ADI"
 gdb_test "adi x/100 shmaddr" "${hex}00:\t${newadi} ${newadi}" \
-         "examine new ADI"
+        "examine new ADI"
 gdb_test_no_output "adi a/100 shmaddr=0x0" "reset ADI"
 gdb_test "continue" \
-         [multi_line "Program received signal SIGSEGV, Segmentation fault.*" \
-                     "ADI precise mismatch while accessing address $hex.*" ] \
+        [multi_line "Program received signal SIGSEGV, Segmentation fault.*" \
+                    "ADI precise mismatch while accessing address $hex.*" ] \
        "continue to sigsegv"
index f5b7309269469591374b41f47a787ae6a1f82f35..9106b908b6927b26b0238deb8804f56d7e4bc513 100644 (file)
@@ -37,8 +37,8 @@ gdb_test "si" "wr .*" "single step to the first %ccr test"
 
 proc test_ccr {exp_value exp_text {exp_insn "wr .*"}} {
     gdb_test "info register ccr" \
-        "ccr            $exp_value     .*$exp_text.*" \
-        "check %ccr register value equal to $exp_text"
+       "ccr            $exp_value      .*$exp_text.*" \
+       "check %ccr register value equal to $exp_text"
 
     gdb_test "si" "$exp_insn" "single step to a next %ccr test after $exp_text"
 }
@@ -85,8 +85,8 @@ gdb_test "continue" "Continuing.*"
 
 proc test_fsr {exp_value exp_text} {
     gdb_test "info register fsr" \
-        "fsr            $exp_value     .*$exp_text.*" \
-        "check %fsr register value equal to $exp_text"
+       "fsr            $exp_value      .*$exp_text.*" \
+       "check %fsr register value equal to $exp_text"
 
     gdb_test "si" "stx .*" "single step to a next %fsr test (I.) after $exp_text"
     gdb_test "si" "ldx .*" "single step to a next %fsr test (II.) after $exp_text"
index 88fe49b46120715ec47848fde23b333d0b0325a8..ffe5440972bed3fdebcd0b028f65f8a4cbce1746 100644 (file)
@@ -33,4 +33,3 @@ if {![runto_main]} {
 # pass instruction "push".
 gdb_test "si" "blx     foo.*" "single step"
 gdb_test "si" "foo \\(\\) at .*${srcfile}.*mov r0,#42.*" "step into foo"
-
index a6ecbfdd67c1be4b48da2e7f272096c8ea59950e..ec352a9de444c48526da3a4cfb852e12ebec178c 100644 (file)
@@ -105,9 +105,9 @@ for {set i 0} {$i < 32} {incr i 1} {
 
 # 2: Set VS0~VS31 registers and check if it reflects on F0~F31.
 for {set i 0} {$i < 32} {incr i 1} {
-        for {set j 0} {$j < 4} {incr j 1} {
-           gdb_test_no_output "set \$vs$i.v4_int32\[$j\] = 0xdeadbeef"
-        }
+       for {set j 0} {$j < 4} {incr j 1} {
+          gdb_test_no_output "set \$vs$i.v4_int32\[$j\] = 0xdeadbeef"
+       }
 }
 
 for {set i 0} {$i < 32} {incr i 1} {
@@ -122,9 +122,9 @@ for {set i 0} {$i < 32} {incr i 1} {
 
 # 1: Set VR0~VR31 registers and check if it reflects on VS32~VS63.
 for {set i 0} {$i < 32} {incr i 1} {
-        for {set j 0} {$j < 4} {incr j 1} {
-           gdb_test_no_output "set \$vr$i.v4_int32\[$j\] = 1"
-        }
+       for {set j 0} {$j < 4} {incr j 1} {
+          gdb_test_no_output "set \$vr$i.v4_int32\[$j\] = 1"
+       }
 }
 
 for {set i 32} {$i < 64} {incr i 1} {
@@ -132,9 +132,9 @@ for {set i 32} {$i < 64} {incr i 1} {
 }
 # 2: Set VS32~VS63 registers and check if it reflects on VR0~VR31.
 for {set i 32} {$i < 64} {incr i 1} {
-        for {set j 0} {$j < 4} {incr j 1} {
-           gdb_test_no_output "set \$vs$i.v4_int32\[$j\] = 1"
-        }
+       for {set j 0} {$j < 4} {incr j 1} {
+          gdb_test_no_output "set \$vs$i.v4_int32\[$j\] = 1"
+       }
 }
 
 for {set i 0} {$i < 32} {incr i 1} {
@@ -164,9 +164,9 @@ for {set i 0} {$i < 32} {incr i 1} {
 
 # 2: Set VR0~VR31 registers and check if it reflects on F32~F63.
 for {set i 0} {$i < 32} {incr i 1} {
-        for {set j 0} {$j < 4} {incr j 1} {
-           gdb_test_no_output "set \$vr$i.v4_int32\[$j\] = 0xdeadbeef"
-        }
+       for {set j 0} {$j < 4} {incr j 1} {
+          gdb_test_no_output "set \$vr$i.v4_int32\[$j\] = 0xdeadbeef"
+       }
 }
 
 for {set i 32} {$i < 64} {incr i 1} {
index 76c38ff2a795b224223b2eb3892c580b84fdba56..b91c14c45eff4bfafc10d962b9ea733dc7599572 100644 (file)
@@ -75,6 +75,3 @@ if {$endianness == "big"} {
 gdb_test "p/f \$vs1" "$vector_field"
 
 gdb_exit
-
-
-
index 0144cdca9db66c66ed6409862ccfae557e38d467..4bd86dbf606e9d03a32efd2203d7f7e40d9a2814 100644 (file)
@@ -31,4 +31,3 @@
        .macro gdbasm_startup
        mov x0, sp
        .endm
-
index 65502277bfdd362de0851e1f9e2e3cbc091785d8..0f49a7b16558bb4b933471d65302380c37d91945 100644 (file)
@@ -32,4 +32,3 @@
        mov fp, #0
        mov r7, #0
        .endm
-
index eb96c19e0632b6c8145a668f0b1e93e959b77c1a..79f8dbd26431227417654b23d4c05946ac82e22d 100644 (file)
@@ -31,53 +31,53 @@ set obj_include -I[host_standard_output_file {}]
 
 switch -glob -- [istarget] {
     "alpha*-*-*" {
-        set asm-arch alpha
+       set asm-arch alpha
        # ??? Won't work with ecoff systems like Tru64, but then we also
        # don't have any other -g flag that creates mdebug output.
-        set asm-flags "-no-mdebug -I${srcdir}/${subdir} $obj_include"
+       set asm-flags "-no-mdebug -I${srcdir}/${subdir} $obj_include"
        set debug-flags "-gdwarf-2"
     }
     "arm*-*-*" {
-        set asm-arch arm
+       set asm-arch arm
     }
     "aarch64*-*-*" {
        set asm-arch aarch64
     }
     "bfin-*-*" {
-        set asm-arch bfin
+       set asm-arch bfin
     }
     "frv-*-*" {
        set asm-arch frv
     }
     "s390-*-*" {
-        set asm-arch s390
+       set asm-arch s390
     }
     "s390x-*-*" {
-        set asm-arch s390x
+       set asm-arch s390x
     }
     "x86_64-*-*" {
-        set asm-arch x86_64
+       set asm-arch x86_64
        set debug-flags "-gdwarf-2"
     }
     "i\[3456\]86-*-*" {
-        set asm-arch i386
+       set asm-arch i386
     }
     "lm32-*" {
-        set asm-arch lm32
+       set asm-arch lm32
     }
     "m32r*-linux*" {
-        set asm-arch m32r-linux
+       set asm-arch m32r-linux
     }
     "m32c-*-*" {
-        set asm-arch m32c
+       set asm-arch m32c
     }
     "m32r*-*" {
-        set asm-arch m32r
-        append link-flags "--whole-archive -lgloss --no-whole-archive"
+       set asm-arch m32r
+       append link-flags "--whole-archive -lgloss --no-whole-archive"
     }
     "m6811-*-*" {
-        set asm-arch m68hc11
-        set asm-flags "-mshort-double -m68hc11 --no-warn -I${srcdir}/${subdir} $obj_include"
+       set asm-arch m68hc11
+       set asm-flags "-mshort-double -m68hc11 --no-warn -I${srcdir}/${subdir} $obj_include"
        set debug-flags "-gdwarf-2"
        # This asm test is specific and uses the linker directly.
        # We must not use the target board linker script defined for other
@@ -87,8 +87,8 @@ switch -glob -- [istarget] {
        unset_board_info "ldscript"
     }
     "m6812-*-*" {
-        set asm-arch m68hc11
-        set asm-flags "-mshort-double -m68hc12 --no-warn -I${srcdir}/${subdir} $obj_include"
+       set asm-arch m68hc11
+       set asm-flags "-mshort-double -m68hc12 --no-warn -I${srcdir}/${subdir} $obj_include"
        set debug-flags "-gdwarf-2"
        # This asm test is specific and uses the linker directly.
        # We must not use the target board linker script defined for other
@@ -98,65 +98,65 @@ switch -glob -- [istarget] {
        set_board_info ldscript ""
     }
     "mips*-*" {
-        set asm-arch mips
+       set asm-arch mips
     }
     "powerpc64le-*" {
-        set asm-arch powerpc64le
-        set asm-flags "-a64 -I${srcdir}/${subdir} $obj_include"
-        append link-flags " -m elf64lppc"
+       set asm-arch powerpc64le
+       set asm-flags "-a64 -I${srcdir}/${subdir} $obj_include"
+       append link-flags " -m elf64lppc"
     }
     "powerpc*-*" {
-        if { [is_lp64_target] } {
-            set asm-arch powerpc64
-            set asm-flags "-a64 -I${srcdir}/${subdir} $obj_include"
-            append link-flags " -m elf64ppc"
-        } else {
-            set asm-arch powerpc
-            set asm-flags "-a32 -I${srcdir}/${subdir} $obj_include"
-            append link-flags " -m elf32ppc"
-        }
+       if { [is_lp64_target] } {
+           set asm-arch powerpc64
+           set asm-flags "-a64 -I${srcdir}/${subdir} $obj_include"
+           append link-flags " -m elf64ppc"
+       } else {
+           set asm-arch powerpc
+           set asm-flags "-a32 -I${srcdir}/${subdir} $obj_include"
+           append link-flags " -m elf32ppc"
+       }
     }
     "sh*-*-*" {
-        set asm-arch sh
+       set asm-arch sh
        set debug-flags "-gdwarf-2"
     }
     "sparc-*-*" {
-        set asm-arch sparc
+       set asm-arch sparc
     }
     "sparc64-*-*" {
-        set asm-arch sparc64
-        set asm-flags "-xarch=v9 -I${srcdir}/${subdir} $obj_include"
+       set asm-arch sparc64
+       set asm-flags "-xarch=v9 -I${srcdir}/${subdir} $obj_include"
        set debug-flags "-gdwarf-2"
     }
     "xstormy16-*-*" {
-        set asm-arch xstormy16
+       set asm-arch xstormy16
        set debug-flags "-gdwarf-2"
     }
     "v850-*-*" {
-        set asm-arch v850
-        set gdb_wrapper_initialized 1
+       set asm-arch v850
+       set gdb_wrapper_initialized 1
     }
     "m68k-*-*" {
-        set asm-arch m68k
+       set asm-arch m68k
     }
     "ia64-*-*" {
-        set asm-arch ia64
+       set asm-arch ia64
        set debug-flags "-gdwarf-2"
     }
     "iq2000-*-*" {
-       set asm-arch iq2000
+       set asm-arch iq2000
     }
     "hppa*-linux-*" {
-        set asm-arch pa
+       set asm-arch pa
        set debug-flags "-gdwarf-2"
     }
     "hppa-*-openbsd*" {
-        set asm-arch pa
+       set asm-arch pa
        set debug-flags "-gdwarf-2"
     }
     "h83*-*" {
        set asm-arch h8300
-        set debug-flags "-gdwarf-2"
+       set debug-flags "-gdwarf-2"
     }
 }
 
@@ -317,17 +317,17 @@ gdb_test_multiple "info target" "info target" {
 set entry_symbol ""
 gdb_test_multiple "info symbol 0x$entry_point" "info symbol" {
     -re "info symbol 0x$entry_point\[\r\n\]+(\[^\r\n\]*) in section .*$gdb_prompt $" {
-        # We match the echoed `info symbol' command here, to help us
-        # reliably identify the beginning of the start symbol in the
-        # command's output.  You might think we could just use '^' to
-        # start matching at the beginning of the line, but
-        # unfortunately, in Expect, '^' matches the beginning of the
-        # input that hasn't been matched by any expect clause yet.  If
-        # every expect clause consumes a complete line, along with its
-        # terminating CR/LF, this is equivalent to the beginning of a
-        # line.  But expect clauses that end with `.*' will consume as
-        # much as happened to arrive from the TTY --- exactly where
-        # they leave you depends on inter-process timing.  :(
+       # We match the echoed `info symbol' command here, to help us
+       # reliably identify the beginning of the start symbol in the
+       # command's output.  You might think we could just use '^' to
+       # start matching at the beginning of the line, but
+       # unfortunately, in Expect, '^' matches the beginning of the
+       # input that hasn't been matched by any expect clause yet.  If
+       # every expect clause consumes a complete line, along with its
+       # terminating CR/LF, this is equivalent to the beginning of a
+       # line.  But expect clauses that end with `.*' will consume as
+       # much as happened to arrive from the TTY --- exactly where
+       # they leave you depends on inter-process timing.  :(
        set entry_symbol $expect_out(1,string)
        pass "info symbol"
     }
@@ -377,11 +377,11 @@ gdb_test "info source" \
 # again as well as the statement after.
 gdb_test_multiple "finish" "finish from foo3" {
     -re "Run till exit from.*\[\r\n\]$line_call_foo3\[ \t\]+gdbasm_call foo3.*$gdb_prompt $" {
-        pass "finish from foo3"
-        gdb_test "s" ".*" "s after finish"
+       pass "finish from foo3"
+       gdb_test "s" ".*" "s after finish"
     }
     -re "Run till exit from.*\[\r\n\]$line_call_foo3_again\[ \t\]+gdbasm_call foo3.*$gdb_prompt $" {
-        pass "finish from foo3"
+       pass "finish from foo3"
     }
 }
 
@@ -398,22 +398,22 @@ set seen_asmsrc_1 0
 set seen_asmsrc_2 0
 gdb_test_multiple "info sources" "info sources" {
     -re "^\[^,\]*asmsrc1.s(, |\[\r\n\]+)" {
-        set seen_asmsrc_1 1
-        exp_continue
+       set seen_asmsrc_1 1
+       exp_continue
     }
     -re "^\[^,\]*asmsrc2.s(, |\[\r\n\]+)" {
-        set seen_asmsrc_2 1
-        exp_continue
+       set seen_asmsrc_2 1
+       exp_continue
     }
     -re ", " {
-        exp_continue
+       exp_continue
     }
     -re "$gdb_prompt $" {
-        if {$seen_asmsrc_1 && $seen_asmsrc_2} {
-            pass "info sources"
-        } else {
-            fail "info sources"
-        }
+       if {$seen_asmsrc_1 && $seen_asmsrc_2} {
+           pass "info sources"
+       } else {
+           fail "info sources"
+       }
     }
 }
 
@@ -430,15 +430,15 @@ gdb_test "next" "$line_foo2_leave\[ \t\]+gdbasm_leave" "next over foo3"
 # line again or the statement after, depending on the architecture.
 gdb_test_multiple "return" "return from foo2" {
     -re "Make (foo2|selected stack frame) return now\\? .y or n. " {
-        send_gdb "y\n"
-        exp_continue
+       send_gdb "y\n"
+       exp_continue
     }
     -re "\#0.*main .*$line_call_foo2\[ \t\]+gdbasm_call foo2.*$gdb_prompt $" {
-        pass "return from foo2"
-        gdb_test "s" ".*" "s after return"
+       pass "return from foo2"
+       gdb_test "s" ".*" "s after return"
     }
     -re "\#0.*main .*$line_main_exit\[ \t\]+gdbasm_exit0.*$gdb_prompt $" {
-        pass "return from foo2"
+       pass "return from foo2"
     }
 }
 
index f421ea0080ac81b6266a68bfdd40cdc2b8117ef1..426f83e9f647ed2405ddbe49e8a1ce42666c0c24 100644 (file)
@@ -38,4 +38,3 @@
        andi %0, %0, 0
        addiu %29, %0, 0xffc
        .endm
-
index 7925e77539cade47e16197b4eb955981c6608e33..6f734bb02b5997d2c64b1f0b538c7be0961550ec 100644 (file)
        comment "exit (0)"
        .macro gdbasm_exit0
        mov.w #0, r1
-               mov.b #1, r0l
+       mov.b #1, r0l
        ste.b r0l,0xe0000
        .endm
 
        comment "crt0 startup"
        .macro gdbasm_startup
-       ldc #0xfc00, sp
+       ldc #0xfc00, sp
        .endm
-
index 39690917c1170a7612ea197425a6d4cde897091d..7c58637d252a884bc26b3092f88cfe3c0c11ae66 100644 (file)
@@ -1,6 +1,6 @@
        comment "openbsd .note"
 
-       .section        ".note.openbsd.ident", "a"
+       .section        ".note.openbsd.ident", "a"
        .p2align        2
 
        .long   8
index a8aafcd472c89528e8badfb8713bb0330dd78b07..41dd2bc7815e65cba9dfd17bb90c2af0cbc7f091 100644 (file)
@@ -43,4 +43,3 @@
 \name:
        .long   \value
        .endm
-
index 16f1a7cc4d020516da6c36e90753376559a62e73..5c6f66236c46ca2210104342de3eb749a7b9c7b9 100644 (file)
@@ -8,7 +8,7 @@
         # Reserve space for the standard stack frame:
         # back chain, and space for the callee to save its registers.
         ahi %r15,-104
-        
+
         # Zero this frame's back chain pointer.
         xc 0(4,%r15),0(%r15)
         .endm
index 1fe3dec6fdf3e22622755b2442262a89b7314ccc..abecf4f0dffdddfb6e564f998a522bd84b376c84 100644 (file)
@@ -8,7 +8,7 @@
         # Reserve space for the standard stack frame:
         # back chain, and space for the callee to save its registers.
         aghi %r15,-168
-        
+
         # Zero this frame's back chain pointer.
         xc 0(8,%r15),0(%r15)
         .endm
index 916a9e0e794edbfc4c9e65127c23769274f8c264..3c23dd50386726a3af57f9a762ef3d46872da7cb 100644 (file)
@@ -31,4 +31,3 @@
        .macro gdbasm_startup
        clr     %fp
        .endm
-
index fb2253e0c39f6b81d63eaa363d122a4e82af0723..b463150687755334e2bb11e6cf65cd40c4a62f55 100644 (file)
@@ -31,4 +31,3 @@
        .macro gdbasm_startup
        clr     %fp
        .endm
-
index 87977919f0c91ed20ad6e06821813f6e931d8b4a..93a85e5b0b1258d9ffb642bfd6c4a99965cdbdb5 100644 (file)
@@ -38,4 +38,3 @@
        ori 65535, r0, r21
        movhi 32, r0, sp
        .endm
-
index 7aea1b9678d83c8d32ca7ba180a386920e2aebcd..7caa35a3a06f62a02a8426a4eb244b223cce4ed3 100644 (file)
@@ -31,4 +31,3 @@
        .macro gdbasm_startup
        mov r15,#8
        .endm
-
index d6b22d71f419c0d9c27061e45ebb5b4689758992..55e181dafb0f09e51e06abdb8036ab46b152121c 100644 (file)
@@ -49,4 +49,3 @@ main ()
   result = bar (b + foo (c));
   return 0; /* advance malformed */
 }
-
index 2051e9fb55c747ed39de523b01fbd8358f91d9e0..3239b66346a1272a9cb4aad529a403c1f6e8201f 100644 (file)
@@ -75,4 +75,3 @@ gdb_test "advance foo" \
 gdb_test "advance" \
        "Argument required \\(a location\\)."\
        "advance with no argument"
-
index d910965f7e90cd593ef8f8528b2afda4230a5fe8..ac2e4984e4d780fffcef2fcbd70977db7a4c286c 100644 (file)
@@ -166,8 +166,3 @@ gdb_test "print v_int && v_float" " = $true" "print value of v_int&&v_float"
 
 gdb_test "print v_int && v_double" " = $false" \
     "print value of v_int&&v_double"
-
-
-
-
-
index 5f77a2f033c23c51d72fad898e790dd1e02a496e..b7cf98eecebd02fed812eb84f26303d4093b21d1 100644 (file)
@@ -31,4 +31,3 @@ main (void)
 
   return 0;  /* after loop */
 }
-
index 0da5a09930a6497bc71e9ee6ec959ebb762125a8..56708c94d753b193a101e3110371df99650ca7a8 100644 (file)
@@ -434,8 +434,8 @@ set y_or_n [string_to_regexp "(y or n)"]
 send_gdb "run\n"
 gdb_expect {
   -re "pre-query.*already.*$y_or_n.*query\r\n" {
-         send_gdb "y\n"
-         gdb_expect {
+        send_gdb "y\n"
+        gdb_expect {
             -re ".*post-query.*$gdb_prompt$" \
                     { pass "re-run" }
             -re ".*$gdb_prompt$"  { fail "re-run" }
index 5f77a2f033c23c51d72fad898e790dd1e02a496e..b7cf98eecebd02fed812eb84f26303d4093b21d1 100644 (file)
@@ -31,4 +31,3 @@ main (void)
 
   return 0;  /* after loop */
 }
-
index 9d94be90affffdfd27ef93220f8855307586ebb3..62f1d4365a4420f0b5ba9db02346ac16f0f5e002 100644 (file)
@@ -78,7 +78,7 @@ gdb_test_multiple "if 1" "start if construct" {
 
 gdb_test_multiple "end" "end if construct" {
     -re "^end\r\n\r\n\032\032post-commands\r\n$gdb_prompt$" {
-       pass "end if construct"
+       pass "end if construct"
     }
 }
 
@@ -264,8 +264,8 @@ if {![is_remote host]} {
 send_gdb "run\n"
 gdb_expect {
   -re "pre-query.*already.*\\(y or n\\).*query\r\n" {
-         send_gdb "y\n"
-         gdb_expect {
+        send_gdb "y\n"
+        gdb_expect {
             -re ".*post-query.*$gdb_prompt$" \
                     { pass "re-run" }
             -re ".*$gdb_prompt$"  { fail "re-run" }
index 757ce9231b285be73a36796f8e459d8478bab882..cd862d8b1cdee36a4155b8559052ca6fb34cfa63 100644 (file)
@@ -34,27 +34,25 @@ if {![runto_main]} {
 # First, print the array without the indexes
 
 gdb_test_no_output "set print array-indexes off" \
-         "set print array-indexes to off"
+        "set print array-indexes to off"
 
 gdb_test "show print array-indexes" \
-         "Printing of array indexes is off\\." \
-         "show print array-indexes is off"
+        "Printing of array indexes is off\\." \
+        "show print array-indexes is off"
 
 gdb_test "print array" \
-         "\\{1, 2, 3, 4\\}" \
-         "print array with array-indexes off"
+        "\\{1, 2, 3, 4\\}" \
+        "print array with array-indexes off"
 
 # Second, print the same array with the indexes
 
 gdb_test_no_output "set print array-indexes on" \
-         "set print array-indexes to on"
+        "set print array-indexes to on"
 
 gdb_test "show print array-indexes" \
-         "Printing of array indexes is on\\." \
-         "show print array-indexes is on"
+        "Printing of array indexes is on\\." \
+        "show print array-indexes is on"
 
 gdb_test "print array" \
-         "\\{\\\[0\\\] = 1, \\\[1\\\] = 2, \\\[2\\\] = 3, \\\[3\\\] = 4\\}" \
-         "print array with array-indexes on"
-
-
+        "\\{\\\[0\\\] = 1, \\\[1\\\] = 2, \\\[2\\\] = 3, \\\[3\\\] = 4\\}" \
+        "print array with array-indexes on"
index 2f3ee9f809e816224c4ca842cf73116f9601645e..5ce8f5097f730d76c530378c7cd2837b959c7b28 100644 (file)
@@ -48,7 +48,7 @@ proc test_background {command before_prompt after_prompt {message ""}} {
     global gdb_prompt
 
     if {$message eq ""} {
-        set message $command
+       set message $command
     }
 
     send_gdb "$command\n"
index d070d933b08b20149ce5499508146a05399a67b8..2da48881269fcfd6307026f2a00be9b8968599de 100644 (file)
@@ -18,7 +18,7 @@ int main ()
   /* Cannot sleep a very long time, as attach.exp assumes the
      process will exit before the standard GDB timeout.  */
   sleep( 10 ); /* System call causes register fetch to fail */
-               /* This is a known HPUX "feature"            */
+              /* This is a known HPUX "feature"            */
   while (! should_exit)
     {
       local_i++;
index 09a6d886df901a2c84f71df7875d471b4a6ab2f1..0882e43d1f304a8fd162037e5237a402d017d847 100644 (file)
@@ -16,7 +16,7 @@ int main ()
   int  local_i = 0;
 
   sleep( 60 ); /* System call causes register fetch to fail */
-               /* This is a known HPUX "feature"            */
+              /* This is a known HPUX "feature"            */
   while (! should_exit)
     {
       local_i++;
index 926ccf1ceb3b9c6b2d258e2dd7ed0499326789a0..23048cb6458dfce6bd874342d2c467c35748734e 100644 (file)
@@ -20,4 +20,3 @@ main ()
 {
   return 0;
 }
-
index 1a8086bd269f380b82916f20ab79b7b159b4f1ae..b99dcf49629e03d229c498e4e634d75a1c2f5c86 100644 (file)
@@ -11,12 +11,12 @@ static int my_list[num] = {3,4,2,0,2,1,8,3,6,7};
 
 void print_average(int *list, int low, int high)
     {
-        int total = 0, num_elements = 0, average = 0;
-        total = sum(list, low, high);
-        num_elements = high - low;  /* note this is an off-by-one bug */
+       int total = 0, num_elements = 0, average = 0;
+       total = sum(list, low, high);
+       num_elements = high - low;  /* note this is an off-by-one bug */
 
-        average = total / num_elements;
-        printf("%10.d\n", average);
+       average = total / num_elements;
+       printf("%10.d\n", average);
     }
 
 int main(void)
index f29824791c38a6771e0ae2eb4510df37da85ea98..2e3847820e95c9a89f1293b860229aac17cbfa27 100644 (file)
@@ -152,7 +152,7 @@ clean_restart
 # Count number of distinct BFD error messages via 'bfd_error_count'
 # array while using add-symbol-file to "load" the shared library.
 gdb_test_multiple "add-symbol-file -readnow $binfile_lib" \
-                  "load library with add-symbol-file" {
+                 "load library with add-symbol-file" {
     -re "add symbol table from file.*\(y or n\)" {
        send_gdb "y\n" answer
        exp_continue
index 124f9c291073336412f74acff29879d16972d2a9..b1a42a67b5e1b0ccc0590281e4f788d3550139f8 100644 (file)
@@ -161,7 +161,7 @@ proc bitfield_signedness {} {
 
     set test "most negative signed bitfield values"
     if {$has_signed_bitfields} {
-        gdb_test "print flags" "u1 = 0, u2 = 0, u3 = 0, s1 = -16384, s2 = -4294967296, s3 = -32768.*" $test
+       gdb_test "print flags" "u1 = 0, u2 = 0, u3 = 0, s1 = -16384, s2 = -4294967296, s3 = -32768.*" $test
     } else {
        unsupported $test
     }
@@ -244,4 +244,3 @@ bitfield_containment
 bitfield_unsignedness
 bitfield_signedness
 bitfield_set
-
index 0bf6b20f30c1a57ac3ceeacdbee9c279ce4d5032..cabde14e32d395695704008cf48227121f538d7b 100644 (file)
@@ -106,4 +106,3 @@ gdb_test "print 0 || 1 && 0 | 0 ^ 0 == 8" ".\[0-9\]* = 0" \
 
 gdb_test "print 0 == 8 > 128 >> 1 + 2 * 2" ".\[0-9\]* = 0" \
     "print value of 0 == 8 > 128 >> 1 + 2 * 2"
-
index df51126964356cc4034c610c5fb40e86744a3f39..71b711d1707eae8ebff3273363474ed7bc65f520 100644 (file)
@@ -132,11 +132,11 @@ proc test {always_inserted sw_watchpoint} {
        set test "permanent breakpoint causes random signal"
        gdb_test_multiple "continue" $test {
            -re "exited normally.*$gdb_prompt $" {
-               unsupported "failed to stop at permanent breakpoint"
+               unsupported "failed to stop at permanent breakpoint"
                return
            }
            -re "received signal SIGTRAP.*$gdb_prompt $" {
-               pass $test
+               pass $test
            }
        }
 
index ba6e32e9df71dd9b5dceb082b06635ef85c5db0e..8f833de37ff552e25cfffbe15e4c5dd3148ff99e 100644 (file)
@@ -50,12 +50,12 @@ gdb_load $binfile1
 with_test_prefix "${testfile1}" {
 
     gdb_test "break *main" \
-        "Breakpoint.*at.* file .*$srcfile1, line .*" \
+       "Breakpoint.*at.* file .*$srcfile1, line .*" \
 
     gdb_run_cmd
     gdb_test "" \
-             "Breakpoint.* main \\(\\) at .*$srcfile1:.*" \
-             "run to breakpoint at *main"
+            "Breakpoint.* main \\(\\) at .*$srcfile1:.*" \
+            "run to breakpoint at *main"
 
     # Verify also that we stopped at the start of the function...
     gdb_test "p \$pc == main" " = 1"
@@ -78,8 +78,8 @@ with_test_prefix "${testfile2}" {
 
     gdb_run_cmd
     gdb_test "" \
-             "Breakpoint.* main \\(\\) at .*$srcfile2:.*" \
-             "run to breakpoint at *main"
+            "Breakpoint.* main \\(\\) at .*$srcfile2:.*" \
+            "run to breakpoint at *main"
 
     gdb_test "p \$pc == main" " = 1"
 }
index 43e97f58c05d027af9a62b75a479be076f69c48c..65885baf292a7b5a549bb17c1a195a37f1187a42 100644 (file)
@@ -29,4 +29,3 @@ main (int argc, char *argv[])
   foo ();
   return g;
 }
-
index 5793c4ebf16b113d3116c30ebbcd66c9a7f83c57..63e9f91d6f730d68b2b4f9907af0d278b89980cb 100644 (file)
@@ -24,4 +24,3 @@ gdb_test "" "Temporary breakpoint.*foo\\(\\).*"
 
 # Now test 'break' with no arguments.
 gdb_test "break" "Breakpoint.*"
-
index f06c15f23bebc40b39147c102f21fa8ed115528b..f5b6633d902fccf89a2f55efc4d82c3fcebca237 100644 (file)
@@ -112,7 +112,7 @@ proc strip_debug {dest} {
        fail $test
        return 0
     } else {
-       pass $test
+       pass $test
        return 1
     }
 }
index 8e74ec24cecab4c444bd9510bae1d72f8a9448c2..6e018f35c6e6e87f1ff0e6f43e687e6a2e52cea4 100644 (file)
@@ -34,7 +34,7 @@ set match "\nDump of assembler code for function main:\r\n(.*)End of assembler d
 set test "disassembly without breakpoints"
 gdb_test_multiple "disass main" $test {
     -re $match {
-       set orig $expect_out(1,string)
+       set orig $expect_out(1,string)
        pass $test
     }
 }
index a37354092969b695d867ce0d2dc1044edaaee8f0..aaf2b086331cff2ca1d72a190028752bcf447c6c 100644 (file)
@@ -55,7 +55,7 @@ if { $readnow } {
 # of the founction also provided by the same using.
 
 gdb_test "break do_something_other_cu" \
-         "Breakpoint $decimal at $hex: file .*$srcfile2, line $decimal\\."
+        "Breakpoint $decimal at $hex: file .*$srcfile2, line $decimal\\."
 
 # Verify that partial symtab expansion has taken place for
 # c-linkage-name-2.c.
@@ -70,5 +70,5 @@ gdb_test "maint flush symbol-cache"
 # symtab expansion.
 
 gdb_test "print symada__cS" \
-         " = {a = 100829103}" \
-         "print symada__cS after partial symtab expansion"
+        " = {a = 100829103}" \
+        "print symada__cS after partial symtab expansion"
index c8992b11b0f36b2e6813ed90b900be6191880eae..3df35b3dacf740ec01ecfdd2f373437fd2c5a728 100644 (file)
@@ -300,7 +300,7 @@ void compute_with_small_structs (int seed)
      int index;
 
      for (index = 0; index < 4; index++) {
-         array[index].value = index*seed;
+        array[index].value = index*seed;
         array[index].head = (index+1)*seed;
      }
 
@@ -481,10 +481,10 @@ void init_small_structs (
 {
 
      init_bit_flags(flags, (unsigned)1, (unsigned)0, (unsigned)1,
-                          (unsigned)0, (unsigned)1, (unsigned)0 );
+                          (unsigned)0, (unsigned)1, (unsigned)0 );
      init_bit_flags_combo(flags_combo, (unsigned)1, (unsigned)0, 'y',
                                       (unsigned)1, (unsigned)0, 'n',
-                                      (unsigned)1, (unsigned)0 );
+                                      (unsigned)1, (unsigned)0 );
      init_three_chars(three_char, 'a', 'b', 'c');
      init_five_chars(five_char, 'l', 'm', 'n', 'o', 'p');
      init_int_char_combo(int_char_combo, 123, 'z');
@@ -840,9 +840,9 @@ void sum_array_print (
 
      for (index = 0; index < 10; index++) {
 
-         sum = seed + linked_list1.values[index] + linked_list2.values[index] +
+        sum = seed + linked_list1.values[index] + linked_list2.values[index] +
               linked_list3.values[index] + linked_list4.values[index];
-         printf("%10d%10d\n", index, sum);
+        printf("%10d%10d\n", index, sum);
      }
 }
 
@@ -1058,8 +1058,3 @@ int main ()  {
 
   return 0;
 }
-
-
-
-
-
index 82bac3d5469aeeb2479f6f8bc6cf4de2a7d5c446..7b686ea9f7200255b8c2bd6cb8bd1bf34d0415bf 100644 (file)
@@ -628,18 +628,3 @@ int main ()  {
 
   return 0;                    /* -finish1- */
 }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
index 4ce686b675971c1574f660fe0953d7b019456170..e71b7c2f7ee7a544a71187186108ecb38c4b9e0f 100644 (file)
@@ -98,10 +98,10 @@ proc print_struct_call { expr inf_result gdb_result } {
                exp_continue
            }
        }
-        -re "Function return value unknown.\[\r\n\]+$gdb_prompt $" {
-            unsupported "$command"
+       -re "Function return value unknown.\[\r\n\]+$gdb_prompt $" {
+           unsupported "$command"
            return
-        }
+       }
     }
 
     verbose -log "inferior_matched=$inferior_matched, gdb_matched=$gdb_matched"
@@ -122,14 +122,14 @@ if {![gdb_skip_stdio_test "print print_one_large_struct(...)"]} {
 }
 
 if {$allow_float_test && \
-        ![gdb_skip_stdio_test "print print_one_double(*d1)"] } {
+       ![gdb_skip_stdio_test "print print_one_double(*d1)"] } {
     print_struct_call "print_one_double(*d1)" \
        ".*Contents of one_double_t:\[ \r\n\]+1\\.111110\[ \r\n\]+" \
        ".\[0-9\]+ = \\{double1 = 1\\.111\[0-9\]*\\}"
 }
 
 if {$allow_float_test && \
-        ![gdb_skip_stdio_test "print print_two_floats(*f3)"] } {
+       ![gdb_skip_stdio_test "print print_two_floats(*f3)"] } {
     print_struct_call "print_two_floats(*f3)" \
        ".*Contents of two_floats_t:\[ \r\n\]+-2\\.345000\[ \t]+1\\.000000\[ \r\n\]+" \
        ".\[0-9\]+ = \\{float1 = -2\\.34500003, float2 = 1\\}"
index ff4e7ac92d8410090361efbf3965208db4556363..5f7cfe00c03b38ac61d652935f209d15e30fff69 100644 (file)
@@ -228,18 +228,18 @@ proc test_scalar_returns { } {
     set test "return foo; synchronize pc to main() for '${testfile}'"
     for {set loop_count 0} {$loop_count < 2} {incr loop_count} {
       gdb_test_multiple "backtrace 1" $test {
-        -re "#0.*main \\(\\).*${gdb_prompt} $" {
-          pass $test
-          set loop_count 2
-        }
-        -re "#0.*fun \\(\\).*${gdb_prompt} $" {
-          if {$loop_count < 1} {
-            gdb_test "finish" ".*" ""
-          } else {
-            fail $test
-            set loop_count 2
-          }
-        }
+       -re "#0.*main \\(\\).*${gdb_prompt} $" {
+         pass $test
+         set loop_count 2
+       }
+       -re "#0.*fun \\(\\).*${gdb_prompt} $" {
+         if {$loop_count < 1} {
+           gdb_test "finish" ".*" ""
+         } else {
+           fail $test
+           set loop_count 2
+         }
+       }
       }
     }
 
index 3a82ddaa5844347b25dec26d79e4e889d865d2a4..e086835fba1a28dc463f495a43288b9577266fd2 100644 (file)
@@ -57,4 +57,3 @@ int main()
   str_func1("abcd");
   return 0;
 }
-
index 02eecb699ac195d9f626458fad872d9cfa65e644..fd24094e9a0ac36ab2e3863db4ebab879f94d83e 100644 (file)
@@ -139,4 +139,3 @@ if {![gdb_skip_stdio_test "call str_func(s,s,s,s,s,s,s,s)"]} {
 gdb_exit
 
 set timeout $prev_timeout
-
index f3cf79638a6c6c2240409d55b41ece610d4e71cc..c69472e399a1f159752b923e9c97e93f60ffe350 100644 (file)
@@ -609,7 +609,7 @@ int (*func_arg2) PARAMS ((int));
 #endif
 {
   return ((*func_arg1) (5,5)  == (*func_val1) (5,5)
-          && (*func_arg2) (6) == (*func_val2) (6));
+         && (*func_arg2) (6) == (*func_val2) (6));
 }
 
 #ifdef PROTOTYPES
index d7640aba4f3bca2d9bc5d10389bd9e41bda15a83..3097c3ae6a51bf807e463c919ab5c46ec00ddb3b 100644 (file)
@@ -244,7 +244,7 @@ proc do_function_calls {prototypes} {
     }
 
     gdb_test "p t_structs_a(struct_val1)" "= (.unsigned char .. )?<.*buf.*> \"foo\"" \
-       "call inferior func with struct - returns char *"
+       "call inferior func with struct - returns char *"
 
     # Restore default value.
     gdb_test_no_output "set unwind-on-signal off"
index 62ec6c0edbd1d88043132518c34b2fdb3f8bd37a..2d365d8817a5acf7a806081589840748ce5cf77c 100644 (file)
@@ -57,4 +57,3 @@ main ()
 
   raise (SIGHUP);              /* third HUP */
 }
-
index 6aeb873643f377256a09de127e85753521addcb7..6eb0d8734fa8b594e79146b29bc11b7aae9d8e68 100644 (file)
@@ -47,4 +47,3 @@ main ()
 
   return 0;
 }
-
index 4ddecd6da4e20af723d1db038d603e6686d00b95..665058d60d9439a7d4cf3ba98e875c1bd060fefe 100644 (file)
@@ -137,10 +137,10 @@ foreach {arg desc} {"" "standard signals" \
        "1st line of save breakpoints for '$arg'"
     # Check the second line.
     gdb_assert {[string match "break main" [lindex $data 1]]} \
-        "2nd line of save breakpoints for '$arg'"
+       "2nd line of save breakpoints for '$arg'"
     # Check the trailing newline.
     gdb_assert {[string match "" [lindex $data 2]]} \
-        "Trailing newline of save breakpoints for '$arg'"
+       "Trailing newline of save breakpoints for '$arg'"
 
     incr i
 }
index c51326434fa035cb51b0659efc448e9dee4be437..9b99431d613042141e6d0dddaa6d3029de53f460 100644 (file)
@@ -142,30 +142,30 @@ int main ()
 
   /* Initialize ascii_string.  */
   init_string (ascii_string,
-               120,
-               7, 8, 12,
-               10, 13, 9,
-               11, 120, 17);
+              120,
+              7, 8, 12,
+              10, 13, 9,
+              11, 120, 17);
   fill_run (ascii_string, 7, 26, 65);
   fill_run (ascii_string, 33, 26, 97);
   fill_run (ascii_string, 59, 10, 48);
 
   /* Initialize iso_8859_1_string.  */
   init_string (iso_8859_1_string,
-               120,
-               7, 8, 12,
-               10, 13, 9,
-               11, 162, 17);
+              120,
+              7, 8, 12,
+              10, 13, 9,
+              11, 162, 17);
   fill_run (iso_8859_1_string, 7, 26, 65);
   fill_run (iso_8859_1_string, 33, 26, 97);
   fill_run (iso_8859_1_string, 59, 10, 48);
 
   /* Initialize ebcdic_us_string.  */
   init_string (ebcdic_us_string,
-               167,
-               47, 22, 12,
-               37, 13, 5,
-               11, 74, 17);
+              167,
+              47, 22, 12,
+              37, 13, 5,
+              11, 74, 17);
   /* In EBCDIC, the upper-case letters are broken into three separate runs.  */
   fill_run (ebcdic_us_string, 7, 9, 193);
   fill_run (ebcdic_us_string, 16, 9, 209);
@@ -179,10 +179,10 @@ int main ()
 
   /* Initialize ibm1047_string.  */
   init_string (ibm1047_string,
-               167,
-               47, 22, 12,
-               37, 13, 5,
-               11, 74, 17);
+              167,
+              47, 22, 12,
+              37, 13, 5,
+              11, 74, 17);
   /* In IBM1047, the upper-case letters are broken into three separate runs.  */
   fill_run (ibm1047_string, 7, 9, 193);
   fill_run (ibm1047_string, 16, 9, 209);
index 80fbf4adfc2af2dd52393171f8db1350e497da81..e2b543e8c7ff64531a95af257cf5ec7d0ccb81df 100644 (file)
@@ -33,28 +33,28 @@ proc parse_show_charset_output {testname} {
     global gdb_prompt
 
     gdb_expect {
-        -re "The host character set is \"(.*)\"\\.\[\r\n\]+The target character set is \"(.*)\"\\.\[\r\n\]+The target wide character set is \"(.*)\"\\.\[\r\n\]+$gdb_prompt $" {
-            set host_charset $expect_out(1,string)
-            set target_charset $expect_out(2,string)
+       -re "The host character set is \"(.*)\"\\.\[\r\n\]+The target character set is \"(.*)\"\\.\[\r\n\]+The target wide character set is \"(.*)\"\\.\[\r\n\]+$gdb_prompt $" {
+           set host_charset $expect_out(1,string)
+           set target_charset $expect_out(2,string)
            set retlist [list $host_charset $target_charset]
-            pass $testname
-        }
-        -re "The host character set is \"(.*)\"\\.\[\r\n\]+$gdb_prompt $" {
-            set host_charset $expect_out(1,string)
+           pass $testname
+       }
+       -re "The host character set is \"(.*)\"\\.\[\r\n\]+$gdb_prompt $" {
+           set host_charset $expect_out(1,string)
            set retlist [list $host_charset]
-            pass $testname
-        }
-        -re "The target character set is \"(.*)\"\\.\[\r\n\]+$gdb_prompt $" {
-            set target_charset $expect_out(1,string)
+           pass $testname
+       }
+       -re "The target character set is \"(.*)\"\\.\[\r\n\]+$gdb_prompt $" {
+           set target_charset $expect_out(1,string)
            set retlist [list $target_charset]
-            pass $testname
-        }
-        -re ".*$gdb_prompt $" {
-            fail $testname
-        }
-        timeout {
-            fail "$testname (timeout)"
-        }
+           pass $testname
+       }
+       -re ".*$gdb_prompt $" {
+           fail $testname
+       }
+       timeout {
+           fail "$testname (timeout)"
+       }
     }
 
     return $retlist
@@ -104,13 +104,13 @@ gdb_test_multiple $cmd "try malformed `set charset'" {
 
 # Try using `set host-charset' on an invalid character set.
 gdb_test "set host-charset my_grandma_bonnie" \
-         "Undefined item: \"my_grandma_bonnie\"." \
-         "try `set host-charset' with invalid charset"
+        "Undefined item: \"my_grandma_bonnie\"." \
+        "try `set host-charset' with invalid charset"
 
 # Try using `set target-charset' on an invalid character set.
 gdb_test "set target-charset my_grandma_bonnie" \
-         "Undefined item: \"my_grandma_bonnie\"." \
-         "try `set target-charset' with invalid charset"
+        "Undefined item: \"my_grandma_bonnie\"." \
+        "try `set target-charset' with invalid charset"
 
 # A Tcl array mapping the names of all the character sets we've seen
 # to "1" if the character set can be used as a host character set, or
@@ -189,140 +189,140 @@ set charset_subset {ASCII ISO-8859-1 EBCDIC-US IBM1047}
 foreach_with_prefix host_charset $charset_subset {
     if {[valid_host_charset $host_charset]} {
 
-        set testname "try `set host-charset $host_charset'"
-        send_gdb "set host-charset $host_charset\n"
-        gdb_expect {
-            -re "GDB doesn't know of any character set named.*\[\r\n]+${gdb_prompt} $" {
-                # How did it get into `charsets' then?
-                fail "$testname (didn't recognize name)"
-            }
-            -re "GDB can't use `.*' as its host character set\\.\[\r\n]+${gdb_prompt} $" {
-                # Well, then why does its `charsets' entry say it can?
-                fail $testname
-            }
-            -re "${gdb_prompt} $" {
-                pass $testname
-            }
-            timeout {
-                fail "$testname (timeout)"
-            }
-        }
-
-        # Check that the command actually had its intended effect:
-        # $host_charset should now be the host character set.
-        send_gdb "show charset\n"
-        set result [parse_show_charset_output "parse `show charset' after `set host-charset $host_charset'"]
-        if {! [string compare [lindex $result 0] $host_charset]} {
-            pass "check effect of `set host-charset $host_charset'"
-        } else {
-            fail "check effect of `set host-charset $host_charset'"
-        }
-
-        # Now try setting every possible target character set,
-        # given that host charset.
-        foreach target_charset $charset_subset {
+       set testname "try `set host-charset $host_charset'"
+       send_gdb "set host-charset $host_charset\n"
+       gdb_expect {
+           -re "GDB doesn't know of any character set named.*\[\r\n]+${gdb_prompt} $" {
+               # How did it get into `charsets' then?
+               fail "$testname (didn't recognize name)"
+           }
+           -re "GDB can't use `.*' as its host character set\\.\[\r\n]+${gdb_prompt} $" {
+               # Well, then why does its `charsets' entry say it can?
+               fail $testname
+           }
+           -re "${gdb_prompt} $" {
+               pass $testname
+           }
+           timeout {
+               fail "$testname (timeout)"
+           }
+       }
+
+       # Check that the command actually had its intended effect:
+       # $host_charset should now be the host character set.
+       send_gdb "show charset\n"
+       set result [parse_show_charset_output "parse `show charset' after `set host-charset $host_charset'"]
+       if {! [string compare [lindex $result 0] $host_charset]} {
+           pass "check effect of `set host-charset $host_charset'"
+       } else {
+           fail "check effect of `set host-charset $host_charset'"
+       }
+
+       # Now try setting every possible target character set,
+       # given that host charset.
+       foreach target_charset $charset_subset {
            if {![valid_target_charset $target_charset]} {
                continue
            }
-            set testname "try `set target-charset $target_charset'"
-            send_gdb "set target-charset $target_charset\n"
-            gdb_expect {
-                -re "GDB doesn't know of any character set named.*\[\r\n]+${gdb_prompt} $" {
-                    fail "$testname (didn't recognize name)"
-                }
-                -re "GDB can't convert from the .* character set to .*\\.\[\r\n\]+${gdb_prompt} $" {
-                    # This is a serious problem.  GDB should be able to convert
-                    # between any arbitrary pair of character sets.
-                    fail "$testname (can't convert)"
-                }
-                -re "${gdb_prompt} $" {
-                    pass $testname
-                }
-                timeout {
-                    fail "$testname (timeout)"
-                }
-            }
-
-            # Check that the command actually had its intended effect:
-            # $target_charset should now be the target charset.
-            send_gdb "show charset\n"
-            set result [parse_show_charset_output "parse `show charset' after `set target-charset $target_charset'"]
-            if {! [string compare $result [list $host_charset $target_charset]]} {
-                pass "check effect of `set target-charset $target_charset'"
-            } else {
-                fail "check effect of `set target-charset $target_charset'"
-            }
-
-            # Test handling of characters in the host charset which
-            # can't be translated into the target charset.  \xA2 is
-            # `cent' in ISO-8859-1, which has no equivalent in ASCII.
-            #
-            # On some systems, the pseudo-tty through which we
-            # communicate with GDB insists on stripping the high bit
-            # from input characters, meaning that `cent' turns into
-            # `"'.  Since ISO-8859-1 and ASCII are identical in the
-            # lower 128 characters, it's tough to see how we can test
-            # this behavior on such systems, so we just xfail it.
+           set testname "try `set target-charset $target_charset'"
+           send_gdb "set target-charset $target_charset\n"
+           gdb_expect {
+               -re "GDB doesn't know of any character set named.*\[\r\n]+${gdb_prompt} $" {
+                   fail "$testname (didn't recognize name)"
+               }
+               -re "GDB can't convert from the .* character set to .*\\.\[\r\n\]+${gdb_prompt} $" {
+                   # This is a serious problem.  GDB should be able to convert
+                   # between any arbitrary pair of character sets.
+                   fail "$testname (can't convert)"
+               }
+               -re "${gdb_prompt} $" {
+                   pass $testname
+               }
+               timeout {
+                   fail "$testname (timeout)"
+               }
+           }
+
+           # Check that the command actually had its intended effect:
+           # $target_charset should now be the target charset.
+           send_gdb "show charset\n"
+           set result [parse_show_charset_output "parse `show charset' after `set target-charset $target_charset'"]
+           if {! [string compare $result [list $host_charset $target_charset]]} {
+               pass "check effect of `set target-charset $target_charset'"
+           } else {
+               fail "check effect of `set target-charset $target_charset'"
+           }
+
+           # Test handling of characters in the host charset which
+           # can't be translated into the target charset.  \xA2 is
+           # `cent' in ISO-8859-1, which has no equivalent in ASCII.
+           #
+           # On some systems, the pseudo-tty through which we
+           # communicate with GDB insists on stripping the high bit
+           # from input characters, meaning that `cent' turns into
+           # `"'.  Since ISO-8859-1 and ASCII are identical in the
+           # lower 128 characters, it's tough to see how we can test
+           # this behavior on such systems, so we just xfail it.
            #
            # Note: the \x16 (Control-V) is an escape to allow \xA2 to
            # get past readline.
-            if {! [string compare $host_charset iso-8859-1] && ! [string compare $target_charset ascii]} {
-
-                set testname "untranslatable character in character literal"
-                send_gdb "print '\x16\xA2'\n"
-                gdb_expect {
-                    -re "There is no character corresponding to .* in the target character set .*\\.\[\r\n\]+$gdb_prompt $" {
-                        pass $testname
-                    }
-                    -re " = 34 '\"'\[\r\n\]+$gdb_prompt $" {
-                        xfail "$testname (DejaGNU's pseudo-tty strips eighth bit)"
-                    }
-                    -re "$gdb_prompt $" {
-                        fail $testname
-                    }
-                    timeout {
-                        fail "$testname (timeout)"
-                    }
-                }
-
-                set testname "untranslatable character in string literal"
-                # If the PTTY zeros bit seven, then this turns into
-                #   print """
-                # which gets us a syntax error.  We don't care.
-                send_gdb "print \"\x16\xA2\"\n"
-                gdb_expect {
-                    -re "There is no character corresponding to .* in the target character set .*\\.\[\r\n\]+$gdb_prompt $" {
-                        pass $testname
-                    }
-                    -re "Unterminated string in expression.\[\r\n\]+$gdb_prompt $" {
-                        xfail "$testname (DejaGNU's pseudo-tty strips eighth bit)"
-                    }
-                    -re "$gdb_prompt $" {
-                        fail $testname
-                    }
-                    timeout {
-                        fail "$testname (timeout)"
-                    }
-                }
-
-                set testname "untranslatable characters in backslash escape"
-                send_gdb "print '\\\x16\xA2'\n"
-                gdb_expect {
-                    -re "The escape sequence .* is equivalent to plain .*, which has no equivalent\[\r\n\]+in the .* character set\\.\[\r\n\]+$gdb_prompt $" {
-                        pass $testname
-                    }
-                    -re " = 34 '\"'\[\r\n\]+$gdb_prompt $" {
-                        xfail "$testname (DejaGNU's pseudo-tty strips eighth bit)"
-                    }
-                    -re "$gdb_prompt $" {
-                        fail $testname
-                    }
-                    timeout {
-                        fail "$testname (timeout)"
-                    }
-                }
-            }
-        }
+           if {! [string compare $host_charset iso-8859-1] && ! [string compare $target_charset ascii]} {
+
+               set testname "untranslatable character in character literal"
+               send_gdb "print '\x16\xA2'\n"
+               gdb_expect {
+                   -re "There is no character corresponding to .* in the target character set .*\\.\[\r\n\]+$gdb_prompt $" {
+                       pass $testname
+                   }
+                   -re " = 34 '\"'\[\r\n\]+$gdb_prompt $" {
+                       xfail "$testname (DejaGNU's pseudo-tty strips eighth bit)"
+                   }
+                   -re "$gdb_prompt $" {
+                       fail $testname
+                   }
+                   timeout {
+                       fail "$testname (timeout)"
+                   }
+               }
+
+               set testname "untranslatable character in string literal"
+               # If the PTTY zeros bit seven, then this turns into
+               #   print """
+               # which gets us a syntax error.  We don't care.
+               send_gdb "print \"\x16\xA2\"\n"
+               gdb_expect {
+                   -re "There is no character corresponding to .* in the target character set .*\\.\[\r\n\]+$gdb_prompt $" {
+                       pass $testname
+                   }
+                   -re "Unterminated string in expression.\[\r\n\]+$gdb_prompt $" {
+                       xfail "$testname (DejaGNU's pseudo-tty strips eighth bit)"
+                   }
+                   -re "$gdb_prompt $" {
+                       fail $testname
+                   }
+                   timeout {
+                       fail "$testname (timeout)"
+                   }
+               }
+
+               set testname "untranslatable characters in backslash escape"
+               send_gdb "print '\\\x16\xA2'\n"
+               gdb_expect {
+                   -re "The escape sequence .* is equivalent to plain .*, which has no equivalent\[\r\n\]+in the .* character set\\.\[\r\n\]+$gdb_prompt $" {
+                       pass $testname
+                   }
+                   -re " = 34 '\"'\[\r\n\]+$gdb_prompt $" {
+                       xfail "$testname (DejaGNU's pseudo-tty strips eighth bit)"
+                   }
+                   -re "$gdb_prompt $" {
+                       fail $testname
+                   }
+                   timeout {
+                       fail "$testname (timeout)"
+                   }
+               }
+           }
+       }
     }
 }
 
@@ -332,8 +332,8 @@ foreach_with_prefix host_charset $charset_subset {
 # test program to the point at which the strings have been
 # initialized.
 gdb_test "break ${srcfile}:[gdb_get_line_number "all strings initialized"]" \
-         ".*Breakpoint.* at .*" \
-         "set breakpoint after all strings have been initialized"
+        ".*Breakpoint.* at .*" \
+        "set breakpoint after all strings have been initialized"
 gdb_run_cmd
 gdb_test "" "Breakpoint.*all strings initialized.*" "run until all strings have been initialized"
 
@@ -368,15 +368,15 @@ foreach target_charset $charset_subset {
     # gdb_test that requires us to use gdb_expect here.
     send_gdb "print $L'\\0'\n"
     gdb_expect {
-        -re "\\\$${decimal} = 0 $L'\\\\000'\[\r\n\]+$gdb_prompt $" {
-            pass "print the null character in ${target_charset}"
-        }
-        -re "$gdb_prompt $" {
-            fail "print the null character in ${target_charset}"
-        }
-        timeout {
-            fail "print the null character in ${target_charset} (timeout)"
-        }
+       -re "\\\$${decimal} = 0 $L'\\\\000'\[\r\n\]+$gdb_prompt $" {
+           pass "print the null character in ${target_charset}"
+       }
+       -re "$gdb_prompt $" {
+           fail "print the null character in ${target_charset}"
+       }
+       timeout {
+           fail "print the null character in ${target_charset} (timeout)"
+       }
     }
 
     # Compute the name of the variable in the test program that holds
@@ -403,101 +403,101 @@ foreach target_charset $charset_subset {
     send_gdb "print $var_name\n"
     # ${escapes}${uppercase}${lowercase}${digits}${octal}${octal}
     gdb_expect {
-        -re ".* = $L\"(\\\\a|x)(\\\\b|x)(\\\\f|x)(\\\\n|x)(\\\\r|x)(\\\\t|x)(\\\\v|x)${uppercase}${lowercase}${digits}(${octal_escape}|x)+\"\[\r\n\]+$gdb_prompt $" {
-            pass "print string in $target_charset"
-        }
-        -re "$gdb_prompt $" {
-            fail "print string in $target_charset"
-        }
-        timeout {
-            fail "print string in $target_charset (timeout)"
-        }
+       -re ".* = $L\"(\\\\a|x)(\\\\b|x)(\\\\f|x)(\\\\n|x)(\\\\r|x)(\\\\t|x)(\\\\v|x)${uppercase}${lowercase}${digits}(${octal_escape}|x)+\"\[\r\n\]+$gdb_prompt $" {
+           pass "print string in $target_charset"
+       }
+       -re "$gdb_prompt $" {
+           fail "print string in $target_charset"
+       }
+       timeout {
+           fail "print string in $target_charset (timeout)"
+       }
     }
 
     # Try entering a character literal, and see if it comes back unchanged.
     gdb_test "print $L'A'" \
-             " = \[0-9-\]+ $L'A'" \
-             "parse character literal in ${target_charset}"
+            " = \[0-9-\]+ $L'A'" \
+            "parse character literal in ${target_charset}"
 
     # Check that the character literal was encoded correctly.
     gdb_test "print /d $L'A' == $var_name\[7\]" \
-             " = 1" \
-             "check value of parsed character literal in ${target_charset}"
+            " = 1" \
+            "check value of parsed character literal in ${target_charset}"
 
     # Try entering a string literal, and see if it comes back unchanged.
     gdb_test "print $L\"abcdefABCDEF012345\"" \
-             " = $L\"abcdefABCDEF012345\"" \
-             "parse string literal in ${target_charset}"
+            " = $L\"abcdefABCDEF012345\"" \
+            "parse string literal in ${target_charset}"
 
     # Check that the string literal was encoded correctly.
     gdb_test "print /d $L\"q\"\[0\] == $var_name\[49\]" \
-             " = 1" \
-             "check value of parsed string literal in ${target_charset}"
+            " = 1" \
+            "check value of parsed string literal in ${target_charset}"
 
     # Test handling of characters in the target charset which
     # can't be translated into the host charset.
     if {! [string compare $target_charset iso-8859-1]} {
-        gdb_test "print iso_8859_1_string\[69\]" \
-                 " = \[0-9-\]+ '\\\\242'" \
-                 "print character with no equivalent in host character set"
-        gdb_test "print iso_8859_1_string + 70" \
-                 " = ${hex} \"\\\\242.*\"" \
-                 "print string with no equivalent in host character set"
+       gdb_test "print iso_8859_1_string\[69\]" \
+                " = \[0-9-\]+ '\\\\242'" \
+                "print character with no equivalent in host character set"
+       gdb_test "print iso_8859_1_string + 70" \
+                " = ${hex} \"\\\\242.*\"" \
+                "print string with no equivalent in host character set"
     }
 
     # Make sure that we don't apply the ISO-8859-1 `print_literally'
     # function to ASCII.
     if {! [string compare $target_charset ascii]} {
-        gdb_test "print iso_8859_1_string\[69\]" \
-                 " = \[0-9-\]+ '\\\\242'" \
-                 "print ASCII unprintable character"
-        gdb_test "print iso_8859_1_string + 70" \
-                 " = ${hex} \"\\\\242.*\"" \
-                 "print ASCII unprintable string"
+       gdb_test "print iso_8859_1_string\[69\]" \
+                " = \[0-9-\]+ '\\\\242'" \
+                "print ASCII unprintable character"
+       gdb_test "print iso_8859_1_string + 70" \
+                " = ${hex} \"\\\\242.*\"" \
+                "print ASCII unprintable string"
     }
 
     # Try printing characters with backslash escape equivalents.
     set escapees {a b f n r t v}
     for {set i 0} {$i < [llength $escapees]} {incr i} {
-        set escape [lindex $escapees $i]
-        send_gdb "print $var_name\[$i\]\n"
-        set have_escape 1
-        gdb_expect {
-            -re "= \[0-9-\]+ $L'\\\\${escape}'\[\r\n\]+$gdb_prompt $" {
-                pass "try printing '\\${escape}' in ${target_charset}"
-            }
-            -re "= \[0-9-\]+ 'x'\[\r\n\]+$gdb_prompt $" {
-                xfail "try printing '\\${escape}' in ${target_charset} (no such escape)"
-                set have_escape 0
-            }
-            -re "$gdb_prompt $" {
-                fail "try printing '\\${escape}' in ${target_charset}"
-            }
-            timeout {
-                fail "try printing '\\${escape}' in ${target_charset} (timeout)"
-            }
-        }
-
-        if {$have_escape} {
-
-            # Try parsing a backslash escape in a character literal.
-            gdb_test "print /d $L'\\${escape}' == $var_name\[$i\]" \
-                     " = 1" \
-                     "check value of '\\${escape}' in ${target_charset}"
-
-            # Try parsing a backslash escape in a string literal.
-            gdb_test "print /d $L\"\\${escape}\"\[0\] == $var_name\[$i\]" \
-                     " = 1" \
-                     "check value of \"\\${escape}\" in ${target_charset}"
-        }
+       set escape [lindex $escapees $i]
+       send_gdb "print $var_name\[$i\]\n"
+       set have_escape 1
+       gdb_expect {
+           -re "= \[0-9-\]+ $L'\\\\${escape}'\[\r\n\]+$gdb_prompt $" {
+               pass "try printing '\\${escape}' in ${target_charset}"
+           }
+           -re "= \[0-9-\]+ 'x'\[\r\n\]+$gdb_prompt $" {
+               xfail "try printing '\\${escape}' in ${target_charset} (no such escape)"
+               set have_escape 0
+           }
+           -re "$gdb_prompt $" {
+               fail "try printing '\\${escape}' in ${target_charset}"
+           }
+           timeout {
+               fail "try printing '\\${escape}' in ${target_charset} (timeout)"
+           }
+       }
+
+       if {$have_escape} {
+
+           # Try parsing a backslash escape in a character literal.
+           gdb_test "print /d $L'\\${escape}' == $var_name\[$i\]" \
+                    " = 1" \
+                    "check value of '\\${escape}' in ${target_charset}"
+
+           # Try parsing a backslash escape in a string literal.
+           gdb_test "print /d $L\"\\${escape}\"\[0\] == $var_name\[$i\]" \
+                    " = 1" \
+                    "check value of \"\\${escape}\" in ${target_charset}"
+       }
     }
 
     # Try printing a character escape that doesn't exist.  We should
     # get the unescaped character, in the target character set.
     gdb_test "print $L'\\q'" " = \[0-9-\]+ $L'q'" \
-             "print escape that doesn't exist in $target_charset"
+            "print escape that doesn't exist in $target_charset"
     gdb_test "print /d $L'\\q' == $var_name\[49\]" " = 1" \
-             "check value of escape that doesn't exist in $target_charset"
+            "check value of escape that doesn't exist in $target_charset"
 }
 
 # Reset the target charset.
index 8811de91493075543ddcf3e3dfd32937aaae9f33..f08294cedbe186d325be88e3b222dd7747042861 100644 (file)
@@ -19,4 +19,3 @@ int main ()
   stop_here ();
   exit (0);
 }
-
index c016d07bc4d2d6085d56d6e8d632b426c4babca0..a39304f7b1525582d3e7e8eb0b09732d5c92091f 100644 (file)
@@ -69,4 +69,3 @@ gdb_test "clear *$bp_addr" \
 gdb_test "maint info break $bp_num" \
     "$bp_num.*$bp_addr.*" \
     "maint info breakpoint \$bp_num after clear"
-
index 38f238cd1f56059fbb55b0d19c63778e88d894b1..4b34e32752d8e5a0381fd73d686576ed3e1f192f 100644 (file)
@@ -375,4 +375,3 @@ gdb_test "whatis (union t_union @code * @code) &v_union" \
 #
 # Function pointers TODO
 #
-
index c21be235491ce70ab8572e9d39f63404f5b1e575..047dab309940b13fdbeeb2fc9d8cc8d74f148b8e 100644 (file)
@@ -580,10 +580,10 @@ proc_with_prefix watchpoint_command_test {} {
     set wp_id -1
 
     gdb_test_multiple "watch local_var" "watch local_var" {
-        -re "\[Ww\]atchpoint (\[0-9\]*): local_var.*$gdb_prompt $" {
-            set wp_id $expect_out(1,string)
-            pass "watch local_var"
-        }
+       -re "\[Ww\]atchpoint (\[0-9\]*): local_var.*$gdb_prompt $" {
+           set wp_id $expect_out(1,string)
+           pass "watch local_var"
+       }
     }
 
     if {$wp_id == -1} {return}
@@ -672,7 +672,7 @@ proc_with_prefix test_command_prompt_position {} {
 
 proc_with_prefix deprecated_command_test {} {
     gdb_test "maintenance deprecate blah" "Can't find command.*" \
-          "tried to deprecate non-existing command"
+         "tried to deprecate non-existing command"
 
     gdb_test_no_output "maintenance deprecate p \"new_p\"" "maintenance deprecate p \"new_p\" /1/"
     gdb_test "p 5" \
@@ -750,31 +750,31 @@ proc_with_prefix bp_deleted_in_command_test {} {
     # Create a breakpoint, and associate a command-list to it, with
     # one command that deletes this breakpoint.
     gdb_test "break factorial" \
-             "Breakpoint \[0-9\]+ at .*: file .*run.c, line \[0-9\]+\."
+            "Breakpoint \[0-9\]+ at .*: file .*run.c, line \[0-9\]+\."
 
     gdb_test_multiple "commands" "begin commands" {
       -re "Type commands for breakpoint.*>$" {
-          pass "begin commands"
+         pass "begin commands"
       }
     }
     gdb_test_multiple "silent" "add silent command" {
-        -re ">$" {
+       -re ">$" {
            pass "add silent command"
        }
     }
     gdb_test_multiple "clear factorial" "add clear command" {
-        -re ">$" {
+       -re ">$" {
            pass "add clear command"
        }
     }
     gdb_test_multiple "printf \"factorial command-list executed\\n\"" \
        "add printf command" {
-        -re ">$" {
+       -re ">$" {
            pass "add printf command"
        }
     }
     gdb_test_multiple "cont" "add cont command" {
-        -re ">$" {
+       -re ">$" {
            pass "add cont command"
        }
     }
index 59a6c57140b4c6b368cf937492965c5f05a80b0a..67906f1a7c42d43d5f11f3bfbe62d573202d4be0 100644 (file)
@@ -210,7 +210,7 @@ gdb_test_multiple "" "$test" {
            -re "Default output radix for printing of values is 10\\..*$gdb_prompt $" {
                pass "$test"
            }
-        }
+       }
     }
 }
 
@@ -223,7 +223,7 @@ gdb_test_multiple "" "$test" {
            -re "The history is empty\\..*$gdb_prompt $" {
                pass "$test"
            }
-        }
+       }
     }
 }
 
@@ -514,12 +514,12 @@ set test "complete 'p no_var_named_this-arg'"
 send_gdb "p no_var_named_this-arg\t"
 gdb_test_multiple "" "$test" {
     -re "^p no_var_named_this-arg\\\x07$" {
-        send_gdb "\n"
+       send_gdb "\n"
        gdb_test_multiple "" "$test" {
-            -re "No symbol \"no_var_named_this\" in current context\\..*$gdb_prompt $" {
+           -re "No symbol \"no_var_named_this\" in current context\\..*$gdb_prompt $" {
                pass "$test"
-            }
-        }
+           }
+       }
     }
 }
 
@@ -556,7 +556,7 @@ gdb_test_multiple "" "$test" {
                    }
                }
            }
-        }
+       }
     }
 }
 
@@ -680,8 +680,8 @@ with_cwd $srcdir {
 # regexp operator. We use string_to_regexp for this purpose.
 
 gdb_test "cd ${fullsrcdir}" \
-         "Working directory [string_to_regexp ${fullsrcdir}].*" \
-         "cd to \${srcdir}"
+        "Working directory [string_to_regexp ${fullsrcdir}].*" \
+        "cd to \${srcdir}"
 
 
 # GDB used to fail adding / on directories, on the first try only.
index d8859c58e3236185218ee1f0f78eb5b9937f2673..18f53cf5e1cdef11e434978e091d6fc83c713b34 100644 (file)
@@ -41,4 +41,3 @@ if {[gdb_file_cmd $ofile] == 0} {
 } else {
     fail $testname
 }
-
index 31c2545b9b7a98534ad2036d7c03ee5dc0db190d..c231f4c733304a993812c6fc32215f758efaaabf 100644 (file)
@@ -67,14 +67,3 @@ gdb_test "print (x ? y : z)" "\[0-9\]* = 3" \
 
 gdb_test "whatis (0 ? 3 : 4)" "type = int" \
     "print whatis of cond expr"
-
-
-
-
-
-
-
-
-
-
-
index fa58a8f02fb650d45f3c93b80f4d9bd879e2810a..007c6a5982eb3a38c22541acb9cbbdbb3ed83b4b 100644 (file)
@@ -72,4 +72,3 @@ gdb_test_multiple "step" "stopped at bp, 2nd instr" {
        }
     }
 }
-
index 8a0652f6bda3a972d3183a06a9aafa3ba039cb18..008c1f9009b10b56d09cbdc836b18fe42b453ff5 100644 (file)
@@ -39,7 +39,7 @@ proc do_save_core { filter_flag core dump_excluded } {
 
     # Enable dumping of excluded mappings (i.e. VM_DONTDUMP).
     if { $dump_excluded == 1 } {
-        gdb_test_no_output "set dump-excluded-mappings on"
+       gdb_test_no_output "set dump-excluded-mappings on"
     }
 
     # Generate a corefile.
@@ -47,7 +47,7 @@ proc do_save_core { filter_flag core dump_excluded } {
 
     # Restore original status.
     if { $dump_excluded == 1 } {
-        gdb_test_no_output "set dump-excluded-mappings off"
+       gdb_test_no_output "set dump-excluded-mappings off"
     }
 }
 
@@ -62,13 +62,13 @@ proc do_load_and_test_core { core var working_var working_value dump_excluded }
 
     # Access the memory the addresses point to.
     if { $dump_excluded == 0 } {
-        gdb_test "print/x *(char *) $coredump_var_addr($var)" "\(\\\$$decimal = <error: \)?Cannot access memory at address $hex\(>\)?" \
+       gdb_test "print/x *(char *) $coredump_var_addr($var)" "\(\\\$$decimal = <error: \)?Cannot access memory at address $hex\(>\)?" \
            "printing $var when core is loaded (should not work)"
-        gdb_test "print/x *(char *) $coredump_var_addr($working_var)" " = $working_value.*" \
+       gdb_test "print/x *(char *) $coredump_var_addr($working_var)" " = $working_value.*" \
            "print/x *$working_var ( = $working_value)"
     } else {
-        # Check if VM_DONTDUMP mappings are present in the core file.
-        gdb_test "print/x *(char *) $coredump_var_addr($var)" " = $working_value.*" \
+       # Check if VM_DONTDUMP mappings are present in the core file.
+       gdb_test "print/x *(char *) $coredump_var_addr($var)" " = $working_value.*" \
            "print/x *$var ( = $working_value)"
     }
 }
index b73e659b4a66076d44128dc232b94b5b1582b4ff..220d2abf481a191cf709a5de01a3e7d86c992ddc 100644 (file)
@@ -118,7 +118,7 @@ mmapdata ()
 
   /* Create yet another region which is allocated, but not written to.  */
   buf3 = mmap (NULL, MAPSIZE, PROT_READ | PROT_WRITE,
-               MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
+              MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
   if (buf3 == (char *) -1)
     {
       perror ("mmap failed");
index ca5f26b4fbec31c10d8a192c1d58e4569f19a493..8a15e6a50e1a13f6ad9cf09eb1ef80766e5e44f5 100644 (file)
@@ -117,7 +117,7 @@ main (int argc, char **argv)
     }
 
   mbuf_ro = mmap ((void *) addr, pagesize, PROT_READ,
-               MAP_ANONYMOUS | MAP_PRIVATE | MAP_FIXED, -1, 0);
+              MAP_ANONYMOUS | MAP_PRIVATE | MAP_FIXED, -1, 0);
 
   if (mbuf_ro == MAP_FAILED)
     {
@@ -141,7 +141,7 @@ main (int argc, char **argv)
     }
 
   mbuf_rw = mmap ((void *) addr, pagesize, PROT_READ,
-               MAP_ANONYMOUS | MAP_PRIVATE | MAP_FIXED, -1, 0);
+              MAP_ANONYMOUS | MAP_PRIVATE | MAP_FIXED, -1, 0);
 
   if (mbuf_rw == MAP_FAILED)
     {
index 1aaa48c9c00ecb3ca42d4fe5b9125e71d41a7d03..8baefdc005eb85db8b8fdb3629a338609fea860e 100644 (file)
@@ -204,8 +204,8 @@ gdb_test "ptype nested_su.inner_union_instance" "type = union inner_union \{.*\[
 # correctly printed (at nesting level 1 and 2).
 
 gdb_test "ptype the_highest" \
-         "type = struct highest \{.*\[\r\n\] *int a;.*\[\r\n\] *struct \{.*\[\r\n\] *int b;.*\[\r\n\] *struct \{\.\.\.\} anonymous_level_2;.*\[\r\n\] *\} anonymous_level_1;.*\[\r\n\]}.*" \
-         "ptype the_highest"
+        "type = struct highest \{.*\[\r\n\] *int a;.*\[\r\n\] *struct \{.*\[\r\n\] *int b;.*\[\r\n\] *struct \{\.\.\.\} anonymous_level_2;.*\[\r\n\] *\} anonymous_level_1;.*\[\r\n\]}.*" \
+        "ptype the_highest"
 
 # Print the type descrption for one of the fields of variable the_highest.
 # The purpose is to verify that the type of a field that was printed above
@@ -213,8 +213,8 @@ gdb_test "ptype the_highest" \
 # nesting level is now one level less).
 
 gdb_test "ptype the_highest.anonymous_level_1" \
-         "type = struct \{.*\[\r\n\] *int b;.*\[\r\n\] *struct \{.*\[\r\n\] *int c;.*\[\r\n\] *\} anonymous_level_2;.*\[\r\n\]}.*" \
-         "ptype the_highest.anonymous_level_1"
+        "type = struct \{.*\[\r\n\] *int b;.*\[\r\n\] *struct \{.*\[\r\n\] *int c;.*\[\r\n\] *\} anonymous_level_2;.*\[\r\n\]}.*" \
+        "ptype the_highest.anonymous_level_1"
 
 # Print the type of the identifier ID, and check the response:
 # - Expect to see PROTOTYPED as the type.  PROTOTYPED is not a regular
@@ -241,37 +241,37 @@ proc ptype_maybe_prototyped { id prototyped plain { overprototyped "NO-MATCH" }
     }
 
     gdb_test_multiple "ptype $id" "ptype $id" {
-        -re "type = $prototyped\[\r\n\]+$gdb_prompt $" {
-            pass "ptype $id"
-        }
-        -re "type = $plain\[\r\n\]+$gdb_prompt $" {
-            if {$gcc_compiled} { setup_xfail_format "stabs" }
-            fail "ptype $id (compiler doesn't emit prototyped types)"
-        }
-        -re "type = $overprototyped\[\r\n\]+$gdb_prompt $" {
-            if { [test_compiler_info "armcc-*"] } {
+       -re "type = $prototyped\[\r\n\]+$gdb_prompt $" {
+           pass "ptype $id"
+       }
+       -re "type = $plain\[\r\n\]+$gdb_prompt $" {
+           if {$gcc_compiled} { setup_xfail_format "stabs" }
+           fail "ptype $id (compiler doesn't emit prototyped types)"
+       }
+       -re "type = $overprototyped\[\r\n\]+$gdb_prompt $" {
+           if { [test_compiler_info "armcc-*"] } {
                setup_xfail "*-*-*"
            }
-            fail "ptype $id (compiler doesn't emit unprototyped types)"
-        }
+           fail "ptype $id (compiler doesn't emit unprototyped types)"
+       }
     }
 }
 
 ptype_maybe_prototyped "func_type" "int (*)(int (*)(int, float), float)" \
-                                   "int (*)()"
+                                  "int (*)()"
 ptype_maybe_prototyped "old_fptr" "double (*)()" "double (*)()" \
-                                  "double (*)(void)"
+                                 "double (*)(void)"
 ptype_maybe_prototyped "new_fptr" "double (*)()" "double (*)()"
 ptype_maybe_prototyped "fptr" "int (*)(int, float)" "int (*)()"
 ptype_maybe_prototyped "fptr2" "int *(*)(int (*)(int, float), float)" \
-                               "int *(*)()"
+                              "int *(*)()"
 ptype_maybe_prototyped "xptr" "int (*)(int (*)(), int (*)(), int)" \
-                              "int (*)()" \
-                              "int (*)(int (*)(void), int (*)(void), int)"
+                             "int (*)()" \
+                             "int (*)(int (*)(void), int (*)(void), int)"
 ptype_maybe_prototyped "ffptr" "int (*(*)(char))(short int)" \
-                               "int (*(*)())()"
+                              "int (*(*)())()"
 ptype_maybe_prototyped "fffptr" "int (*(*(*)(char))(short int))(long int)" \
-                                "int (*(*(*)())())()"
+                               "int (*(*(*)())())()"
 
 # Test printing type of string constants and array constants, but
 # requires a running process.  These call malloc, and can take a long
index 10475e10f59a50bb3179149bb7fb8cfe1d0c4192..a883875a62cd15583a196324602458d6ddfec3b0 100644 (file)
@@ -34,4 +34,3 @@ main (void)
 
   return 0;
 }
-
index 4a50ab6359bf303d395be2abf200612428ffcbb9..545465d2e6985802b0656f46ed5ddb61a4efd023 100644 (file)
@@ -26,17 +26,17 @@ set executable ctxobj-m
 # in that SO while the variable's associated symtab has not been created
 # yet.
 set libsrc [list "${srcdir}/${subdir}/ctxobj-v.c" \
-                 "${srcdir}/${subdir}/ctxobj-f.c"]
+                "${srcdir}/${subdir}/ctxobj-f.c"]
 
 set libobj1 [standard_output_file libctxobj1.so]
 set libobj2 [standard_output_file libctxobj2.so]
 
 set libobj1_opts { debug
-                   additional_flags=-DVERSION=104
-                   additional_flags=-DGET_VERSION=get_version_1 }
+                  additional_flags=-DVERSION=104
+                  additional_flags=-DGET_VERSION=get_version_1 }
 set libobj2_opts { debug
-                   additional_flags=-DVERSION=203
-                   additional_flags=-DGET_VERSION=get_version_2 }
+                  additional_flags=-DVERSION=203
+                  additional_flags=-DGET_VERSION=get_version_2 }
 
 if { [gdb_compile_shlib $libsrc $libobj1 $libobj1_opts ] != "" } {
     return -1
@@ -45,9 +45,9 @@ if { [gdb_compile_shlib $libsrc $libobj2 $libobj2_opts ] != "" } {
     return -1
 }
 if { [gdb_compile "${srcdir}/${subdir}/${executable}.c" \
-                  [standard_output_file ${executable}] \
-                  executable \
-                  [list debug shlib=${libobj1} shlib=${libobj2}]]
+                 [standard_output_file ${executable}] \
+                 executable \
+                 [list debug shlib=${libobj1} shlib=${libobj2}]]
      != ""} {
     return -1
 }
@@ -62,8 +62,8 @@ if {![runto_main]} {
 
 set bp_location [gdb_get_line_number "STOP" "ctxobj-f.c"]
 gdb_test "break ctxobj-f.c:$bp_location" \
-         "Breakpoint \[0-9\]+ at 0x\[0-9a-fA-F\]+: .*" \
-         "break in get_version functions"
+        "Breakpoint \[0-9\]+ at 0x\[0-9a-fA-F\]+: .*" \
+        "break in get_version functions"
 
 global expect_out
 set test "continue to get_version_1"
@@ -98,12 +98,12 @@ gdb_test "printf \"%d.%d\\n\", \$_hit_bpnum, \$_hit_locno" "$bpno" \
 # seen by the program itself.
 
 gdb_test "print this_version_num == v" \
-         " = 1" \
-        "print libctxobj1's this_version_num from partial symtab"
+        " = 1" \
+       "print libctxobj1's this_version_num from partial symtab"
 
 gdb_test "print this_version_num == v" \
-         " = 1" \
-        "print libctxobj1's this_version_num from symtab"
+        " = 1" \
+       "print libctxobj1's this_version_num from symtab"
 
 # Do the same, but from get_version_2.
 set test "continue to get_version_2"
@@ -118,9 +118,9 @@ gdb_test "printf \"%d.%d\\n\", \$_hit_bpnum, \$_hit_locno" "$bpno" \
     "$test \$_hit_bpnum.\$_hit_locno is $bpno"
 
 gdb_test "print this_version_num == v" \
-         " = 1" \
-        "print libctxobj2's this_version_num from partial symtab"
+        " = 1" \
+       "print libctxobj2's this_version_num from partial symtab"
 
 gdb_test "print this_version_num == v" \
-         " = 1" \
-        "print libctxobj2's this_version_num from symtab"
+        " = 1" \
+       "print libctxobj2's this_version_num from symtab"
index d47b9d64583158838d415139374f1b796ceed319..25f9026d42fe883bf6232206be05d467376a621d 100644 (file)
@@ -55,18 +55,18 @@ main (void)
       '---'---'---'---'---'---.
       |       |       |       |  <- line alignment
        ^^^^^^^         ^^^^^^^
-          |               |
-          + line1         + line2
+         |               |
+         + line1         + line2
 
      Or:
 
       .---.---.---.---.---.---.
       | U | M | U | U | M | U |
       '---'---'---'---'---'---.
-          |       |       |      <- line alignment
-           ^^^^^^^ ^^^^^^^
-              |       |
-        line1 +       + line2
+         |       |       |      <- line alignment
+          ^^^^^^^ ^^^^^^^
+             |       |
+       line1 +       + line2
 
     Note we really want to test that dcache behaves correctly when
     reading a cache line fails.  We're just using unmapped memory as
index 91f22112ed71fe26e99f0532177b56a462ee0e17..818d7fac5718750384b68bad985febd15a24d75b 100644 (file)
@@ -161,4 +161,3 @@ gdb_test "define-prefix something-not-existing something-else" \
 
 gdb_test "define-prefix abc-prefix something-not-existing something-else" \
     "Undefined abc-prefix command: \"something-not-existing\".*"
-
index 7dd600687c8aa7123a368100b96e2216b0e1240d..10a0644a2e5e4af677d2c47e0668b591a20db0c0 100644 (file)
@@ -71,21 +71,21 @@ gdb_test "define nextwhere" \
 send_gdb "define nextwhere\n"
 gdb_expect {
   -re "Redefine command \"nextwhere\".*y or n. $"\
-          {send_gdb "y\n"
-           gdb_expect {
-             -re "Type commands for definition of \"nextwhere\".\r\nEnd with a line saying just \"end\".\r\n>$"\
-                     {send_gdb "bt\nnext\nend\n"
-                      gdb_expect {
-                        -re "$gdb_prompt $"\
-                                {pass "redefine user command: nextwhere"}
-                        timeout {fail "(timeout) redefine user command: nextwhere"}
-                      }
-                     }
-             timeout {fail "(timeout) redefine user command: nextwhere"}
-           }
-          }
+         {send_gdb "y\n"
+          gdb_expect {
+            -re "Type commands for definition of \"nextwhere\".\r\nEnd with a line saying just \"end\".\r\n>$"\
+                    {send_gdb "bt\nnext\nend\n"
+                     gdb_expect {
+                       -re "$gdb_prompt $"\
+                               {pass "redefine user command: nextwhere"}
+                       timeout {fail "(timeout) redefine user command: nextwhere"}
+                     }
+                    }
+            timeout {fail "(timeout) redefine user command: nextwhere"}
+          }
+         }
   -re "$gdb_prompt $"\
-          {fail "redefine user command: nextwhere"}
+         {fail "redefine user command: nextwhere"}
   timeout {fail "(timeout) redefine user command: nextwhere"}
 }
 
@@ -165,10 +165,10 @@ gdb_test_multiple "define ifnospace" "define user command: ifnospace" \
   -re "Type commands for definition of \"ifnospace\".\r\nEnd with a line saying just \"end\".\r\n>$" \
     {
       gdb_test_multiple "if(3<4)\nprint \"hi there\\n\"\nend\nend" "send body of ifnospace"  \
-        {
-         -re "$gdb_prompt $"\
-                 {pass "define user command: ifnospace"}
-        }
+       {
+        -re "$gdb_prompt $"\
+                {pass "define user command: ifnospace"}
+       }
     }
 }
 
@@ -214,10 +214,10 @@ gdb_test_multiple "define whilenospace" "define user command: whilenospace" \
   -re "Type commands for definition of \"whilenospace\".\r\nEnd with a line saying just \"end\".\r\n>$" \
     {
       gdb_test_multiple "set \$i=1\nwhile(\$i<2)\nset \$i=2\nprint \"hi there\\n\"\nend\nend" "send body of whilenospace" \
-         {
-           -re "$gdb_prompt $" \
-                   {pass "define user command: whilenospace"}
-         }
+        {
+          -re "$gdb_prompt $" \
+                  {pass "define user command: whilenospace"}
+        }
     }
 }
 
@@ -259,23 +259,23 @@ gdb_test "define hook-bar" \
 send_gdb "define hook-bar\n"
 gdb_expect {
   -re "warning: Your new `hook-bar' command does not hook any existing command.\r\nProceed.*y or n. $"\
-          {send_gdb "y\n"
-           gdb_expect {
-             -re "Type commands for definition of \"hook-bar\".\r\nEnd with a line saying just \"end\".\r\n>$"\
-                     {send_gdb "nextwhere\nend\n"
-                      gdb_expect {
-                        -re "$gdb_prompt $"\
-                                {pass "define hook undefined command: bar"}
-                        timeout {fail "(timeout) define hook undefined command: bar"}
-                      }
-                     }
-             -re "$gdb_prompt $"\
-                     {fail "define hook undefined command: bar"}
-             timeout {fail "(timeout) define hook undefined command: bar"}
-           }
-          }
+         {send_gdb "y\n"
+          gdb_expect {
+            -re "Type commands for definition of \"hook-bar\".\r\nEnd with a line saying just \"end\".\r\n>$"\
+                    {send_gdb "nextwhere\nend\n"
+                     gdb_expect {
+                       -re "$gdb_prompt $"\
+                               {pass "define hook undefined command: bar"}
+                       timeout {fail "(timeout) define hook undefined command: bar"}
+                     }
+                    }
+            -re "$gdb_prompt $"\
+                    {fail "define hook undefined command: bar"}
+            timeout {fail "(timeout) define hook undefined command: bar"}
+          }
+         }
   -re "$gdb_prompt $"\
-          {fail "define hook undefined command: bar"}
+         {fail "define hook undefined command: bar"}
   timeout {fail "(timeout) define hook undefined command: bar"}
 }
 
index 441e677e24c5a19bf252b6e616184d1613102921..90a1656b800ddbf5be23df828273f3ae4ce20139 100644 (file)
@@ -32,26 +32,26 @@ proc test_delete_alias { alias } {
     # First of all, remove all previous breakpoints if there were any,
     # and then verify that we do not have any breakpoint lying around.
     gdb_test_no_output "delete" \
-             "remove all breakpoints"
+            "remove all breakpoints"
 
     gdb_test "info break" \
             "No breakpoints, watchpoints, tracepoints, or catchpoints." \
-             "info break after clearing breakpoints"
+            "info break after clearing breakpoints"
 
 
     # Now, insert a breakpoint at an easy location, and then remove it
     # using $alias. We verified that the removal worked by checking
     # the list of breakpoints.
     gdb_test "break -q main" \
-             "Breakpoint.*at.* file .*$srcfile, line.*" \
-             "breakpoint insertion"
+            "Breakpoint.*at.* file .*$srcfile, line.*" \
+            "breakpoint insertion"
 
     gdb_test_no_output "$alias \$bpnum" \
-             "Remove last breakpoint"
+            "Remove last breakpoint"
 
     gdb_test "info break" \
             "No breakpoints, watchpoints, tracepoints, or catchpoints." \
-             "info break after removing break on main"
+            "info break after removing break on main"
 }
 
 # Test various shortcut forms of the "delete" command.
index 0a20cadb998c23d3940e3c0492627c91e05ae7c8..adeddfb552042c77df5dc607a8e6a0350df1614f 100644 (file)
@@ -126,7 +126,7 @@ proc test_dfp_arithmetic_expressions {} {
     set dsuffix {"dd" "df" "dl"}
 
     foreach l $dsuffix {
-        foreach r $dsuffix {
+       foreach r $dsuffix {
            gdb_test "p 1.2${l} == 1.2${r}" " = 1"
            gdb_test "p 1.2${l} == 1.3${r}" " = 0"
 
index aeb1f6b428249fd469a0ef5239638b0e40e0dd48..7084ddd7bc7e92b163497c6c72ef6edfdbc5bcb6 100644 (file)
@@ -121,21 +121,21 @@ struct decstruct
 
 static _Decimal32
 arg0_32 (_Decimal32 arg0, _Decimal32 arg1, _Decimal32 arg2,
-         _Decimal32 arg3, _Decimal32 arg4, _Decimal32 arg5)
+        _Decimal32 arg3, _Decimal32 arg4, _Decimal32 arg5)
 {
   return arg0;
 }
 
 static _Decimal64
 arg0_64 (_Decimal64 arg0, _Decimal64 arg1, _Decimal64 arg2,
-         _Decimal64 arg3, _Decimal64 arg4, _Decimal64 arg5)
+        _Decimal64 arg3, _Decimal64 arg4, _Decimal64 arg5)
 {
   return arg0;
 }
 
 static _Decimal128
 arg0_128 (_Decimal128 arg0, _Decimal128 arg1, _Decimal128 arg2,
-         _Decimal128 arg3, _Decimal128 arg4, _Decimal128 arg5)
+        _Decimal128 arg3, _Decimal128 arg4, _Decimal128 arg5)
 {
   return arg0;
 }
index 34f25bea6e66ece2a3c29bdaee9ff1c3b2812d43..d23876a8a45fd50d3299a9e5b1d5e0dfb7c8f2db 100644 (file)
@@ -35,15 +35,15 @@ if {$main_addr == 0 || $dummy_3_addr == 0 || $dummy_3_addr <= $main_addr} {
 
 gdb_test_multiple "disassemble /m ${main_addr},${dummy_3_addr}" "disassemble address range with source" {
     -re "Dump of assembler code from ${main_addr} to ${dummy_3_addr}:\r\nEnd of assembler dump\." {
-        fail "no output from the disassemble command"
+       fail "no output from the disassemble command"
     }
     -re "Line number 0 out of range;.* has $decimal lines\." {
-        fail "the disassemble command failed"
+       fail "the disassemble command failed"
     }
     -re "Dump of assembler code from ${main_addr} to ${dummy_3_addr}:\r\n.*main.*End of assembler dump\." {
-        pass "disassemble command returned some output"
+       pass "disassemble command returned some output"
     }
     -re ".*$gdb_prompt $" {
-        fail "unexpected output from disassemble command"
+       fail "unexpected output from disassemble command"
     }
 }
index c711048ca4137c997c996bcedea1cc7455404fb5..c62d250d9cfda6d7e3a287bb98a10636f5631a23 100644 (file)
@@ -17,11 +17,11 @@ int do_loops()
     int *p_i = &i;
 
     for( i = 0; i < LOOP; i++ ) { /* set breakpoint 1 here */
-        for( j = 0; j < LOOP; j++ ) {
-            for( k = 0; k < LOOP; k++ ) {
-                sum++; f++; force_mem (&k);
-            }
-        }
+       for( j = 0; j < LOOP; j++ ) {
+           for( k = 0; k < LOOP; k++ ) {
+               sum++; f++; force_mem (&k);
+           }
+       }
     }
     return i; /* set breakpoint 2 here */
 }
@@ -39,12 +39,12 @@ int do_vars()
     /* Need some code here to set breaks on.
      */
     for( j = 0; j < LOOP; j++ ) {
-        if( p_c[j] == c ) { /* set breakpoint 3 here */
-            j++;
-        }
-        else {
-            i++;
-        }
+       if( p_c[j] == c ) { /* set breakpoint 3 here */
+           j++;
+       }
+       else {
+           i++;
+       }
     }
 
     return *p_i;
index f3bdfb054d988d78d58082c7f20099fe9c142ac7..683d33e6cc7f16c55089a0edffc54cebaf42ed36 100644 (file)
@@ -65,7 +65,7 @@ proc get_info_shared {} {
            set ns $expect_out(3,string)
            set name $expect_out(4,string)
 
-           lappend libs [list $from $to $ns $name]
+           lappend libs [list $from $to $ns $name]
            exp_continue
        }
 
index 3506ca733e5be226c1b9f917bdf63ef1b127623a..ceef7242c0b1b8973adaa99bbb17be69e7d4cfab 100644 (file)
@@ -24,8 +24,8 @@ set testfile dmsym_main
 set dmsym_o [standard_output_file dmsym.o]
 
 if {[gdb_compile "${srcdir}/${subdir}/dmsym.c" \
-                 $dmsym_o \
-                 object {}] != ""} {
+                $dmsym_o \
+                object {}] != ""} {
   untested "failed to compile object file"
   return -1
 }
@@ -51,13 +51,13 @@ set addr "0x\[0-9a-zA-Z\]+"
 # should not be used for breakpoint purposes.
 
 gdb_test "break test_minsym" \
-         "Breakpoint $num at $addr.: file .*dmsym_main\\.c, line $num\\."
+        "Breakpoint $num at $addr.: file .*dmsym_main\\.c, line $num\\."
 
 # However, verify that the `info line' command, on the other hand,
 # finds both locations.
 
 gdb_test "info line test_minsym" \
-         "Line $num of \".*dmsym_main\\.c\" .*\r\nNo line number information available for address $addr <test_minsym>"
+        "Line $num of \".*dmsym_main\\.c\" .*\r\nNo line number information available for address $addr <test_minsym>"
 
 # Now, run the program until we get past the call to test_minsym.
 # Except when using hardware breakpoints, inferior behavior is going
@@ -68,11 +68,11 @@ gdb_breakpoint dmsym_main.c:[gdb_get_line_number "BREAK" dmsym_main.c]
 
 gdb_run_cmd
 gdb_test "" \
-         "Breakpoint $num, test_minsym \\(\\) at.*" \
-         "run until breakpoint at BREAK"
+        "Breakpoint $num, test_minsym \\(\\) at.*" \
+        "run until breakpoint at BREAK"
 
 gdb_test "continue" \
-         "Breakpoint $num, main \\(\\) at.*"
+        "Breakpoint $num, main \\(\\) at.*"
 
 gdb_test "print val" \
-         " = 124"
+        " = 124"
index 34235996e62996cd76396fb2497db77c9dc18738..f2f67c05b51ba782d1c1c10a0cd0a7868df29ff5 100644 (file)
@@ -32,5 +32,3 @@ main (void)
     return 1;
   return 0;
 }
-
-
index f28e9696ccb0dcc223f1bd8336fc18a5f90cc46c..8bb705dfe4f118ceaada8b45f3e6977a6c95f505 100644 (file)
@@ -48,7 +48,7 @@ with_test_prefix "without symbols" {
        "y"
 
     gdb_test "info break" \
-        "Num     Type\[ \]+Disp Enb Address\[ \]+What.*
+       "Num     Type\[ \]+Disp Enb Address\[ \]+What.*
 \[0-9\]+\[\t \]+dprintf.*keep y.*PENDING.*pendfunc1.*" \
        "single pending dprintf info"
 
index a91e31fd873e6f2081d5270d4b5c8c25be123d85..8a73378328f58eb8dff38cf19dce425936ddb1e0 100644 (file)
@@ -23,24 +23,24 @@ proc dtrace_test {} {
     standard_testfile
 
     if {[dtrace_build_usdt_test_program] == -1} {
-        untested "failed to compile"
-        return -1
+       untested "failed to compile"
+       return -1
     }
 
     clean_restart
     gdb_load $binfile
 
     if {![runto_main]} {
-        return -1
+       return -1
     }
 
     gdb_test "print \$_probe_argc" "No probe at PC $hex" \
-        "check argument not at probe point"
+       "check argument not at probe point"
 
     # Test the 'info probes' command.
     gdb_test "info probes dtrace" \
-        "test *progress-counter *$hex +no.*test *two-locations *$hex +always.*test *two-locations *$hex +always.*" \
-        "info probes dtrace"
+       "test *progress-counter *$hex +no.*test *two-locations *$hex +always.*test *two-locations *$hex +always.*" \
+       "info probes dtrace"
 
     # Disabling the probe test:two-locations shall have no effect,
     # since no is-enabled probes are defined for it in the object
@@ -85,17 +85,17 @@ proc dtrace_test {} {
 
     # Test probe arguments.
     gdb_test "print \$_probe_argc" " = 2" \
-        "print \$_probe_argc for probe progress-counter"
+       "print \$_probe_argc for probe progress-counter"
     gdb_test "print \$_probe_arg0" \
-        " = $hex \"application\"" \
-        "print \$_probe_arg0 for probe progress-counter"
+       " = $hex \"application\"" \
+       "print \$_probe_arg0 for probe progress-counter"
     gdb_test "print \$_probe_arg1" " = 1" \
-        "print \$_probe_arg1 for probe progress-counter"
+       "print \$_probe_arg1 for probe progress-counter"
 
     # Set a breakpoint with multiple probe locations.
     gdb_test "break -pdtrace test:two-locations" \
-        "Breakpoint \[0-9\]+ at $hex.*2 locations.*" \
-        "set multi-location probe breakpoint (probe two-locations)"
+       "Breakpoint \[0-9\]+ at $hex.*2 locations.*" \
+       "set multi-location probe breakpoint (probe two-locations)"
 
     return 0
 }
index bc6bd397ff341e3ee16627cba7940c55698f4eef..dedf902b0284cef02d5f609d58eb29d0f90bba9f 100644 (file)
@@ -19,7 +19,7 @@ gdb_start
 # Make sure that the "file" command rejects an empty filename,
 # rather than crash.
 gdb_test "file ''" \
-         ": No such file or directory\\."
+        ": No such file or directory\\."
 
 # And to make extra sure that GDB is still alive, do a quick
 # sanity check.
index 92815a7428175b5f5407b810ab5e8ae32fcdcaae..ca762fc0a7efc8eb3fbed4efdba89f6ea68ee78e 100644 (file)
@@ -410,10 +410,10 @@ proc test_ena_dis_br { what } {
     # Now $b1.1 and $b2.1 should be enabled(disabled).
     gdb_test_multiple "info break" "$test1" {
        -re "(${b1})(\[^\n\r\]*)( n.*)(${b2})(\[^\n\r\]*)( n.*)$gdb_prompt $" {
-           $p1 "$test1"
+          $p1 "$test1"
        }
        -re ".*$gdb_prompt $" {
-           $p2 "$test1"
+          $p2 "$test1"
        }
     }
 
@@ -448,11 +448,11 @@ proc test_ena_dis_br { what } {
 
     # $b4.1 should be enabled(disabled).
     gdb_test_multiple "info break" "$test1" {
-        -re "(${b4})(\[^\n\r\]*)( n.*)$gdb_prompt $" {
-           $p1 "$test1"
+       -re "(${b4})(\[^\n\r\]*)( n.*)$gdb_prompt $" {
+          $p1 "$test1"
        }
        -re ".*$gdb_prompt $" {
-           $p2 "$test1"
+          $p2 "$test1"
        }
     }
 }
index a499f37a052593186f15d63023f530f92b05bcea..fd149cc6a2e4a49e0895aeacecf1cf63bbe9d23f 100644 (file)
@@ -23,10 +23,10 @@ int main()
     p = (int *) malloc( 4 );
 
     for (i = 1; i < 10; i++)
-        {
-            printf( "%d ", callee( i ));
-            fflush (stdout);
-        }
+       {
+           printf( "%d ", callee( i ));
+           fflush (stdout);
+       }
     printf( " Goodbye!\n" ); fflush (stdout); /* -break2- */
     return 0;
 }
index 8c542efb00430cbab039317600d07b2143531104..b0313d50925703f2a439f04d4c86fb06dd740a46 100644 (file)
@@ -66,25 +66,25 @@ gdb_test "cle ending-run.c:$break1_line" \
 
 gdb_test_multiple "info line ending-run.c:$break1_line" "" {
     -re ".*address (0x\[0-9a-fA-F]*).*$gdb_prompt $" {
-        set line_nine $expect_out(1,string)
+       set line_nine $expect_out(1,string)
        gdb_test "b ending-run.c:$break1_line" ".*Breakpoint 4.*ending-run.c, line $break1_line.*"
        gdb_test "b *$line_nine" ".*Note.*also.*Breakpoint 5.*" "breakpoint 7 at *ending-run.c:$break1_line"
        gdb_test "cle" "Deleted breakpoints 4 5 " "clear 2 by default"
     }
     -re ".*$gdb_prompt $" {
-        fail "need to fix test for new compile outcome"
+       fail "need to fix test for new compile outcome"
     }
 }
 
 gdb_test_multiple "i b" "all set to continue" {
     -re ".* breakpoint .* breakpoint .*$gdb_prompt $" {
-        fail "all set to continue (didn't clear bps)"
+       fail "all set to continue (didn't clear bps)"
     }
     -re ".*2.*main.*$break2_line.*$gdb_prompt $" {
-        pass "all set to continue"
+       pass "all set to continue"
     }
     -re ".*$gdb_prompt $" {
-        fail "all set to continue (missing bp at end)"
+       fail "all set to continue (missing bp at end)"
     }
 }
 
@@ -184,13 +184,13 @@ gdb_test_multiple "next" "step out of main" {
        gdb_test "next" ".*in start_l ().*" "step out of main"
     }
     -re ".*in.*currently asm.*$gdb_prompt $" {
-        pass "step out of main"
+       pass "step out of main"
     }
     -re "_*start\[0-9\]* \\(\[^)\]*\\).*$gdb_prompt $" {
-        pass "step out of main"
+       pass "step out of main"
     }
     -re ".*Program received signal SIGTRAP.*$gdb_prompt $" {
-        pass "step out of main"
+       pass "step out of main"
     }
     -re ".*in.*__uClibc_main.*$gdb_prompt $" {
        # This is what happens on system using uClibc.
@@ -249,7 +249,7 @@ if {!$use_gdb_stub
                set program_in_exit 1
            }
            -re ".*Single.*_int_reset.*$gdb_prompt $" {
-               pass "step to end of run"
+               pass "step to end of run"
                if {![istarget "xstormy16-*-*"]} {
                    set program_exited_normally 1
                }
@@ -266,7 +266,7 @@ if {!$use_gdb_stub
     }
 
     if {$program_exited_normally} {
-        gdb_test "n" ".*The program is not being run.*" "don't step after run"
+       gdb_test "n" ".*The program is not being run.*" "don't step after run"
     } elseif {$program_not_exited} {
        unresolved "don't step after run"
     } else {
@@ -290,8 +290,3 @@ if {!$use_gdb_stub
 set timeout $old_timeout
 
 #remote_exec build "rm -f ${binfile}"
-
-
-
-
-
index 5c78ec90fae69aad5160e5c9c9bff2c63ef69b66..9317fd0b890b7bf3d15c12fe72f2a5af94fdd2db 100644 (file)
@@ -45,10 +45,9 @@ if {![runto_main]} {
 }
 
 gdb_test "break call_me if param.e == 1" \
-         "Breakpoint $decimal at $hex: file .*$srcfile, line $decimal\\."
+        "Breakpoint $decimal at $hex: file .*$srcfile, line $decimal\\."
 
 # Continue.  We should hit our breakpoint...
 gdb_test "continue" \
-         "Breakpoint $decimal, call_me \\(param=\\.\\.\\.\\) at .*" \
-         "continue to conditional breakpoint in call_me"
-
+        "Breakpoint $decimal, call_me \\(param=\\.\\.\\.\\) at .*" \
+        "continue to conditional breakpoint in call_me"
index b986a6cb25d45240052fe9be963a0d8d38c48a51..dbeda41f1483f40054298f44ee330e988d6aa88d 100644 (file)
@@ -117,14 +117,14 @@ main (void)
   for (i = 0; i < len - 1; ++i)
     {
       for (j = i; j < len; ++j)
-        {
-          if (n[j] < n[i])
-            {
-              int tmp = n[i];
-              n[i] = n[j];
-              n[j] = tmp;
-            }
-        }
+       {
+         if (n[j] < n[i])
+           {
+             int tmp = n[i];
+             n[i] = n[j];
+             n[j] = tmp;
+           }
+       }
     }
   return 42;
 }
index 0eef3270cc7c9e2bc01fbf5ce6fa951d7812db0c..d2cf3ffdf6da23819060e801afd21f2e485f5972 100644 (file)
@@ -18,7 +18,7 @@
 
 standard_testfile
 if { [prepare_for_testing "failed to prepare for examine-backward" \
-        ${testfile} ${srcfile}] } {
+       ${testfile} ${srcfile}] } {
     return -1
 }
 
@@ -31,23 +31,23 @@ proc get_first_mapped_address {} {
 
     set addr "0"
     gdb_test_multiple "info proc mappings" "info proc mappings" {
-        -re "objfile\[\r\n\t \]+(0x\[0-9a-fA-F\]+).*\[\r\n\]*$gdb_prompt $" {
-            set addr $expect_out(1,string)
-        }
-        -re "$gdb_prompt $" {
-            unsupported "current target does not support 'info proc mappings'"
-        }
+       -re "objfile\[\r\n\t \]+(0x\[0-9a-fA-F\]+).*\[\r\n\]*$gdb_prompt $" {
+           set addr $expect_out(1,string)
+       }
+       -re "$gdb_prompt $" {
+           unsupported "current target does not support 'info proc mappings'"
+       }
     }
     return ${addr}
 }
 
 with_test_prefix "invalid format" {
     gdb_test "x/- 10xb main" "Invalid number \"10xb\"\." \
-        "a whitespace after a leading hyphen"
+       "a whitespace after a leading hyphen"
     gdb_test "x/--10xb main" "Invalid number \"10xb\"\." \
-        "double hyphen"
+       "double hyphen"
     gdb_test "x/-a10xb main" "Invalid number \"10xb\"\." \
-        "an alphabet after a leading hyphen"
+       "an alphabet after a leading hyphen"
     gdb_test_no_output "x/-0i main" "zero with backward disassemble"
     gdb_test_no_output "x/-0sh main" "zero with backward examine string"
 }
@@ -55,29 +55,29 @@ with_test_prefix "invalid format" {
 with_test_prefix "memory page boundary" {
     set boundary [get_first_mapped_address]
     if {![is_address_zero_readable] && $boundary != 0} {
-        gdb_test_no_output "set print elements 0"
-        gdb_test_sequence "x/3s ${boundary}" "take 3 strings forward" {
-            "0x"
-            "0x"
-            "0x"
-        }
-        gdb_test_sequence "x/-4s" "take 4 strings backward" {
-            "Cannot access memory at address 0x"
-            "0x"
-            "0x"
-            "0x"
-        }
-        gdb_test_sequence "x/3s ${boundary}" "take 3 strings forward again" {
-            "0x"
-            "0x"
-            "0x"
-        }
-        gdb_test_sequence "x/-3s" "take 3 strings backward" {
-            "Cannot access memory at address 0x"
-            "0x"
-            "0x"
-            "0x"
-        }
+       gdb_test_no_output "set print elements 0"
+       gdb_test_sequence "x/3s ${boundary}" "take 3 strings forward" {
+           "0x"
+           "0x"
+           "0x"
+       }
+       gdb_test_sequence "x/-4s" "take 4 strings backward" {
+           "Cannot access memory at address 0x"
+           "0x"
+           "0x"
+           "0x"
+       }
+       gdb_test_sequence "x/3s ${boundary}" "take 3 strings forward again" {
+           "0x"
+           "0x"
+           "0x"
+       }
+       gdb_test_sequence "x/-3s" "take 3 strings backward" {
+           "Cannot access memory at address 0x"
+           "0x"
+           "0x"
+           "0x"
+       }
     }
 }
 
@@ -146,29 +146,29 @@ gdb_test_no_output "set charset ASCII"
 with_test_prefix "char-width=1, print-max=20" {
     gdb_test_no_output "set print elements 20"
     gdb_test_sequence "x/6s TestStrings" "take 6 strings forward" {
-        "\"ABCDEFGHIJKLMNOPQRST\"\.\.\."
-        "\"UVWXYZ\""
-        "\"\""
-        "\"\""
-        "\"[^\"]+\""
-        "\"01234567890123456789\"\.\.\."
+       "\"ABCDEFGHIJKLMNOPQRST\"\.\.\."
+       "\"UVWXYZ\""
+       "\"\""
+       "\"\""
+       "\"[^\"]+\""
+       "\"01234567890123456789\"\.\.\."
     }
     gdb_test "x/-1xb" "0x39" "take 1 char backward"
     gdb_test_sequence "x/-6s" "take 6 strings backward" {
-        "\"ABCDEFGHIJKLMNOPQRST\"\.\.\."
-        "\"UVWXYZ\""
-        "\"\""
-        "\"\""
-        "\"[^\"]+\""
-        "\"01234567890123456789\"\.\.\."
+       "\"ABCDEFGHIJKLMNOPQRST\"\.\.\."
+       "\"UVWXYZ\""
+       "\"\""
+       "\"\""
+       "\"[^\"]+\""
+       "\"01234567890123456789\"\.\.\."
     }
     gdb_test_sequence "x/6s TestStrings" "take 6 strings forward again" {
-        "\"ABCDEFGHIJKLMNOPQRST\"\.\.\."
-        "\"UVWXYZ\""
-        "\"\""
-        "\"\""
-        "\"[^\"]+\""
-        "\"01234567890123456789\"\.\.\."
+       "\"ABCDEFGHIJKLMNOPQRST\"\.\.\."
+       "\"UVWXYZ\""
+       "\"\""
+       "\"\""
+       "\"[^\"]+\""
+       "\"01234567890123456789\"\.\.\."
     }
     gdb_test "x/-xb" "0x39" "take 1 char backward again"
     gdb_test "x/-s" "\"01234567890123456789\"\.\.\." \
@@ -188,29 +188,29 @@ with_test_prefix "char-width=1, print-max=20" {
 with_test_prefix "char-width=2, print-max=20" {
     gdb_test_no_output "set print elements 20"
     gdb_test_sequence "x/6sh TestStringsH" "take 6 strings forward" {
-        "u\"ABCDEFGHIJKLMNOPQRST\"\.\.\."
-        "u\"UVWXYZ\""
-        "u\"\""
-        "u\"\""
-        "u\"[^\"]+\""
-        "u\"01234567890123456789\"\.\.\."
+       "u\"ABCDEFGHIJKLMNOPQRST\"\.\.\."
+       "u\"UVWXYZ\""
+       "u\"\""
+       "u\"\""
+       "u\"[^\"]+\""
+       "u\"01234567890123456789\"\.\.\."
     }
     gdb_test "x/-1xh" "0x0039" "take 1 char backward"
     gdb_test_sequence "x/-6sh" "take 6 strings backward" {
-        "u\"ABCDEFGHIJKLMNOPQRST\"\.\.\."
-        "u\"UVWXYZ\""
-        "u\"\""
-        "u\"\""
-        "u\"[^\"]+\""
-        "u\"01234567890123456789\"\.\.\."
+       "u\"ABCDEFGHIJKLMNOPQRST\"\.\.\."
+       "u\"UVWXYZ\""
+       "u\"\""
+       "u\"\""
+       "u\"[^\"]+\""
+       "u\"01234567890123456789\"\.\.\."
     }
     gdb_test_sequence "x/6sh TestStringsH" "take 6 strings forward again" {
-        "u\"ABCDEFGHIJKLMNOPQRST\"\.\.\."
-        "u\"UVWXYZ\""
-        "u\"\""
-        "u\"\""
-        "u\"[^\"]+\""
-        "u\"01234567890123456789\"\.\.\."
+       "u\"ABCDEFGHIJKLMNOPQRST\"\.\.\."
+       "u\"UVWXYZ\""
+       "u\"\""
+       "u\"\""
+       "u\"[^\"]+\""
+       "u\"01234567890123456789\"\.\.\."
     }
     gdb_test "x/-xh" "0x0039" "take 1 char backward again"
     gdb_test "x/-sh" "u\"01234567890123456789\"\.\.\." \
@@ -230,29 +230,29 @@ with_test_prefix "char-width=2, print-max=20" {
 with_test_prefix "char-width=4, print-max=20" {
     gdb_test_no_output "set print elements 20"
     gdb_test_sequence "x/6sw TestStringsW" "take 6 strings forward" {
-        "U\"ABCDEFGHIJKLMNOPQRST\"\.\.\."
-        "U\"UVWXYZ\""
-        "U\"\""
-        "U\"\""
-        "U\"[^\"]+\""
-        "U\"01234567890123456789\"\.\.\."
+       "U\"ABCDEFGHIJKLMNOPQRST\"\.\.\."
+       "U\"UVWXYZ\""
+       "U\"\""
+       "U\"\""
+       "U\"[^\"]+\""
+       "U\"01234567890123456789\"\.\.\."
     }
     gdb_test "x/-1xw" "0x00000039" "take 1 char backward"
     gdb_test_sequence "x/-6sw" "take 6 strings backward" {
-        "U\"ABCDEFGHIJKLMNOPQRST\"\.\.\."
-        "U\"UVWXYZ\""
-        "U\"\""
-        "U\"\""
-        "U\"[^\"]+\""
-        "U\"01234567890123456789\"\.\.\."
+       "U\"ABCDEFGHIJKLMNOPQRST\"\.\.\."
+       "U\"UVWXYZ\""
+       "U\"\""
+       "U\"\""
+       "U\"[^\"]+\""
+       "U\"01234567890123456789\"\.\.\."
     }
     gdb_test_sequence "x/6sw TestStringsW" "take 6 strings forward again" {
-        "U\"ABCDEFGHIJKLMNOPQRST\"\.\.\."
-        "U\"UVWXYZ\""
-        "U\"\""
-        "U\"\""
-        "U\"[^\"]+\""
-        "U\"01234567890123456789\"\.\.\."
+       "U\"ABCDEFGHIJKLMNOPQRST\"\.\.\."
+       "U\"UVWXYZ\""
+       "U\"\""
+       "U\"\""
+       "U\"[^\"]+\""
+       "U\"01234567890123456789\"\.\.\."
     }
     gdb_test "x/-xw" "0x00000039" "take 1 char backward again"
     gdb_test "x/-sw" "U\"01234567890123456789\"\.\.\." \
@@ -272,30 +272,30 @@ with_test_prefix "char-width=4, print-max=20" {
 with_test_prefix "char-width=2, print-max=0" {
     gdb_test_no_output "set print elements 0"
     gdb_test_sequence "x/6sh TestStringsH" "take 6 strings forward" {
-        "u\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\""
-        "u\"\""
-        "u\"\""
-        "u\"\\\\x307b\\\\x3052\\\\x307b\\\\x3052\""
-        "u\"012345678901234567890123456789\""
-        "u\"!!!!!!\""
+       "u\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\""
+       "u\"\""
+       "u\"\""
+       "u\"\\\\x307b\\\\x3052\\\\x307b\\\\x3052\""
+       "u\"012345678901234567890123456789\""
+       "u\"!!!!!!\""
     }
     gdb_test "x/-4xh" "0x0021\[\t \]+0x0021\[\t \]+0x0021\[\t \]+0x0000" \
-        "take 4 characters backward"
+       "take 4 characters backward"
     gdb_test_sequence "x/-6sh" "take 6 strings backward" {
-        "u\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\""
-        "u\"\""
-        "u\"\""
-        "u\"[^\"]+\""
-        "u\"012345678901234567890123456789\""
-        "u\"!!!!!!\""
+       "u\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\""
+       "u\"\""
+       "u\"\""
+       "u\"[^\"]+\""
+       "u\"012345678901234567890123456789\""
+       "u\"!!!!!!\""
     }
     gdb_test_sequence "x/6sh TestStringsH" "take 6 strings forward again" {
-        "u\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\""
-        "u\"\""
-        "u\"\""
-        "u\"\\\\x307b\\\\x3052\\\\x307b\\\\x3052\""
-        "u\"012345678901234567890123456789\""
-        "u\"!!!!!!\""
+       "u\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\""
+       "u\"\""
+       "u\"\""
+       "u\"\\\\x307b\\\\x3052\\\\x307b\\\\x3052\""
+       "u\"012345678901234567890123456789\""
+       "u\"!!!!!!\""
     }
     gdb_test "x/-xh" "0x0000" "take 1 char backward"
     gdb_test "x/-sh" "u\"!!!!!!\"" \
@@ -315,28 +315,28 @@ with_test_prefix "char-width=2, print-max=0" {
 with_test_prefix "char-width=1, print-max=4" {
     gdb_test_no_output "set print elements 4"
     gdb_test_sequence "x/9s TestStrings" "take 9 strings forward" {
-        "\"ABCD\"\.\.\."
-        "\"EFGH\"\.\.\."
-        "\"IJKL\"\.\.\."
-        "\"MNOP\"\.\.\."
-        "\"QRST\"\.\.\."
-        "\"UVWX\"\.\.\."
-        "\"YZ\""
-        "\"\""
-        "\"\""
+       "\"ABCD\"\.\.\."
+       "\"EFGH\"\.\.\."
+       "\"IJKL\"\.\.\."
+       "\"MNOP\"\.\.\."
+       "\"QRST\"\.\.\."
+       "\"UVWX\"\.\.\."
+       "\"YZ\""
+       "\"\""
+       "\"\""
     }
     gdb_test "x/-xb" "0x00" "take 1 byte backward"
     gdb_test_sequence "x/-4s" "take 4 strings backward, 1/2" {
-        "\"TUVW\"\.\.\."
-        "\"XYZ\""
-        "\"\""
-        "\"\""
+       "\"TUVW\"\.\.\."
+       "\"XYZ\""
+       "\"\""
+       "\"\""
     }
     gdb_test_sequence "x/-4s" "take 4 strings backward, 2/2" {
-        "\"CDEF\"\.\.\."
-        "\"GHIJ\"\.\.\."
-        "\"KLMN\"\.\.\."
-        "\"OPQR\"\.\.\."
+       "\"CDEF\"\.\.\."
+       "\"GHIJ\"\.\.\."
+       "\"KLMN\"\.\.\."
+       "\"OPQR\"\.\.\."
     }
 }
 
@@ -352,19 +352,19 @@ with_test_prefix "backward disassemble general" {
     gdb_test "x/-i" "0x\[0-9a-fA-F\]+ <$main_re>:\t.*" \
        "move the current position to main, x/-i"
     for {set i 0} {$i < [llength $length_to_examine]} {incr i} {
-        set len [lindex $length_to_examine $i]
-        set instructions [capture_command_output "x/${len}i" ""]
-        lappend disassmbly $instructions
+       set len [lindex $length_to_examine $i]
+       set instructions [capture_command_output "x/${len}i" ""]
+       lappend disassmbly $instructions
     }
     for {set i 0} {$i < [llength $length_to_examine]} {incr i} {
-        set idx [expr {[llength $length_to_examine] - $i - 1}]
-        set len [lindex $length_to_examine $idx]
-        set actual [capture_command_output "x/-${len}i" ""]
-        set expected [lindex $disassmbly $idx]
-        if {$actual == $expected} {
-            pass "inst:$idx"
-        } else {
-            fail "inst:$idx"
-        }
+       set idx [expr {[llength $length_to_examine] - $i - 1}]
+       set len [lindex $length_to_examine $idx]
+       set actual [capture_command_output "x/-${len}i" ""]
+       set expected [lindex $disassmbly $idx]
+       if {$actual == $expected} {
+           pass "inst:$idx"
+       } else {
+           fail "inst:$idx"
+       }
     }
 }
index 2e375b4ed712471fa9b0267f7f7463156da10e8d..fe4af579253f4a875e4c97968b023aec6d3489b4 100644 (file)
@@ -52,5 +52,3 @@ file delete $binfile
 if { [file exists $binfile] } {
     fail "executable still exists (${binfile})"
     }
-
-
index 981a06d3664f61b9595636d4a457e2850eed21a1..bdbc678129154d826ab6b3ee445199eb71fee228 100644 (file)
@@ -39,4 +39,3 @@ if {[prepare_for_testing_full "failed to prepare" \
 
 set foo_bp [gdb_get_line_number "Break here"]
 gdb_test "break $foo_bp" "Breakpoint.*" "expand psymtabs"
-
index 4557cc55f7d8a13a1c24270f5fa88deb74ec9170..37337ef41e77426c11e188f65099a000bde8e09f 100644 (file)
@@ -156,7 +156,7 @@ test_write (void)
       errno = 0;
       ret = write (fd, STRING, strlen (STRING));
       printf ("write 1: ret = %d, errno = %d %s\n", ret, errno,
-              ret == strlen (STRING) ? "OK" : "");
+             ret == strlen (STRING) ? "OK" : "");
       close (fd);
     }
   else
@@ -200,7 +200,7 @@ test_read (void)
       ret = read (fd, buf, 16);
       buf[15] = '\0'; /* Don't trust anybody... */
       if (ret == strlen (STRING))
-        printf ("read 1: %s %s\n", buf, !strcmp (buf, STRING) ? "OK" : "");
+       printf ("read 1: %s %s\n", buf, !strcmp (buf, STRING) ? "OK" : "");
       else
        printf ("read 1: ret = %d, errno = %d\n", ret, errno);
       close (fd);
@@ -230,17 +230,17 @@ test_lseek (void)
       errno = 0;
       ret = lseek (fd, 0, SEEK_CUR);
       printf ("lseek 1: ret = %ld, errno = %d, %s\n", (long) ret, errno,
-              ret == 0 ? "OK" : "");
+             ret == 0 ? "OK" : "");
       stop ();
       errno = 0;
       ret = lseek (fd, 0, SEEK_END);
       printf ("lseek 2: ret = %ld, errno = %d, %s\n", (long) ret, errno,
-              ret == 11 ? "OK" : "");
+             ret == 11 ? "OK" : "");
       stop ();
       errno = 0;
       ret = lseek (fd, 3, SEEK_SET);
       printf ("lseek 3: ret = %ld, errno = %d, %s\n", (long) ret, errno,
-              ret == 3 ? "OK" : "");
+             ret == 3 ? "OK" : "");
       close (fd);
     }
   else
@@ -271,7 +271,7 @@ test_close (void)
       errno = 0;
       ret = close (fd);
       printf ("close 1: ret = %d, errno = %d, %s\n", ret, errno,
-              ret == 0 ? "OK" : "");
+             ret == 0 ? "OK" : "");
     }
   else
     printf ("close 1: errno = %d\n", errno);
@@ -280,7 +280,7 @@ test_close (void)
   errno = 0;
   ret = close (999);
   printf ("close 2: ret = %d, errno = %d, %s\n", ret, errno,
-         strerrno (errno));
+         strerrno (errno));
   stop ();
 }
 
@@ -303,19 +303,19 @@ test_stat (void)
   errno = 0;
   ret = stat (null_str, &st);
   printf ("stat 2: ret = %d, errno = %d %s\n", ret, errno,
-         strerrno (errno));
+         strerrno (errno));
   stop ();
   /* Empty pathname */
   errno = 0;
   ret = stat ("", &st);
   printf ("stat 3: ret = %d, errno = %d %s\n", ret, errno,
-         strerrno (errno));
+         strerrno (errno));
   stop ();
   /* Nonexistant file */
   errno = 0;
   ret = stat (NONEXISTANT, &st);
   printf ("stat 4: ret = %d, errno = %d %s\n", ret, errno,
-         strerrno (errno));
+         strerrno (errno));
   stop ();
 }
 
@@ -346,7 +346,7 @@ test_fstat (void)
   errno = 0;
   ret = fstat (999, &st);
   printf ("fstat 2: ret = %d, errno = %d %s\n", ret, errno,
-         strerrno (errno));
+         strerrno (errno));
   stop ();
 }
 
@@ -426,7 +426,7 @@ test_rename (void)
       errno = 0;
       ret = stat (FILENAME, &st);
       if (ret && errno == ENOENT)
-        {
+       {
          errno = 0;
          ret = stat (OUTDIR RENAMED, &st);
          printf ("rename 1: ret = %d, errno = %d %s\n", ret, errno,
@@ -449,7 +449,7 @@ test_rename (void)
   errno = 0;
   ret = rename (OUTDIR TESTDIR2, OUTDIR TESTDIR1);
   printf ("rename 3: ret = %d, errno = %d %s\n", ret, errno,
-          strerrno (errno));
+         strerrno (errno));
   stop ();
   /* newpath is a subdirectory of old path */
   errno = 0;
@@ -487,12 +487,12 @@ test_unlink (void)
       sprintf (sys, "chmod -w %s/%s", OUTDIR, TESTDIR2);
       ret = system (sys);
       if (!ret)
-        {
+       {
          errno = 0;
          ret = unlink (name);
          printf ("unlink 2: ret = %d, errno = %d %s\n", ret, errno,
                  strerrno (errno));
-        }
+       }
       else
        printf ("unlink 2: ret = %d chmod failed, errno= %d\n", ret, errno);
     }
@@ -503,7 +503,7 @@ test_unlink (void)
   errno = 0;
   ret = unlink (OUTDIR NONEXISTANT);
   printf ("unlink 3: ret = %d, errno = %d %s\n", ret, errno,
-          strerrno (errno));
+         strerrno (errno));
   stop ();
 }
 
index d68863b1ff6d0ecf14f2ecfc43d0c9635634d65a..af1d79b256321ab25a7db7d09708ec25e956e1dd 100644 (file)
@@ -77,12 +77,12 @@ proc finish_void { } {
 proc finish_abbreviation { abbrev } {
 
     if {![runto "int_func"]} {
-        return -1
+       return -1
     }
 
     gdb_test "$abbrev" \
-             "Value returned is .* = 1" \
-             "Testing the \"$abbrev\" abbreviation for \"finish\""
+            "Value returned is .* = 1" \
+            "Testing the \"$abbrev\" abbreviation for \"finish\""
 }
 
 # Test "set print finish off".
index 278b3f554745c882c8e0bcc0e7e2bcb70b70b771..bb350ed1f4beb0322d953ee20a1c11d7b55e54fd 100644 (file)
@@ -49,8 +49,8 @@ if {[is_aarch64_target]} {
            # if we have NEON.
            pass "info float (VFP)"
        }
-        -re "No floating.point info available for this processor.*$gdb_prompt $" {
-            pass "info float (without FPU)"
+       -re "No floating.point info available for this processor.*$gdb_prompt $" {
+           pass "info float (without FPU)"
        }
     }
 } elseif {[istarget "i?86-*-*"] || [istarget "x86_64-*-*"]} {
@@ -59,11 +59,11 @@ if {[is_aarch64_target]} {
     gdb_test "info float" "f0.*f1.*f127.*"
 } elseif {[istarget "m68k-*-*"]} {
     gdb_test_multiple "info float" "info_float" {
-        -re "fp0.*fp1.*fp7.*$gdb_prompt $" {
-            pass "info float (with FPU)"
+       -re "fp0.*fp1.*fp7.*$gdb_prompt $" {
+           pass "info float (with FPU)"
        }
-        -re "No floating.point info available for this processor.*$gdb_prompt $" {
-            pass "info float (without FPU)"
+       -re "No floating.point info available for this processor.*$gdb_prompt $" {
+           pass "info float (without FPU)"
        }
     }
 } elseif {[istarget "mips*-*-*"]} {
@@ -77,20 +77,20 @@ if {[is_aarch64_target]} {
     }
 } elseif {[istarget "nds32*-*-*"]} {
     gdb_test_multiple "info float" "info_float" {
-        -re "fd0.*fd3.*$gdb_prompt $" {
-            pass "info float (with FPU)"
+       -re "fd0.*fd3.*$gdb_prompt $" {
+           pass "info float (with FPU)"
        }
-        -re "No floating.point info available for this processor.*$gdb_prompt $" {
-            pass "info float (without FPU)"
+       -re "No floating.point info available for this processor.*$gdb_prompt $" {
+           pass "info float (without FPU)"
        }
     }
 } elseif {[istarget "powerpc*-*-*"]} {
     gdb_test_multiple "info float" "info_float" {
-        -re "f0.*f1.*f31.*fpscr.*$gdb_prompt $" {
-            pass "info float (with FPU)"
+       -re "f0.*f1.*f31.*fpscr.*$gdb_prompt $" {
+           pass "info float (with FPU)"
        }
-        -re "No floating.point info available for this processor.*$gdb_prompt $" {
-            pass "info float (without FPU)"
+       -re "No floating.point info available for this processor.*$gdb_prompt $" {
+           pass "info float (without FPU)"
        }
     }
 } elseif {[istarget "s390*-*-*"]} {
index 64bcea857f8733cfa51da0894f1845eef46724a2..dc65d956506e7407a65fc9b6c7292210eaf72200 100644 (file)
@@ -119,21 +119,21 @@ proc do_exec_tests { execer_lang execee_lang } {
    send_gdb "print global_i\n"
    gdb_expect {
      -re ".* = 100.*$gdb_prompt $"\
-                     {pass "print follow-exec/global_i"}
+                    {pass "print follow-exec/global_i"}
      -re "$gdb_prompt $" {fail "print follow-exec/global_i"}
      timeout         {fail "(timeout) print follow-exec/global_i"}
    }
    send_gdb "print local_j\n"
    gdb_expect {
      -re ".* = 101.*$gdb_prompt $"\
-                     {pass "print follow-exec/local_j"}
+                    {pass "print follow-exec/local_j"}
      -re "$gdb_prompt $" {fail "print follow-exec/local_j"}
      timeout         {fail "(timeout) print follow-exec/local_j"}
    }
    send_gdb "print local_k\n"
    gdb_expect {
      -re ".* = 102.*$gdb_prompt $"\
-                     {pass "print follow-exec/local_k"}
+                    {pass "print follow-exec/local_k"}
      -re "$gdb_prompt $" {fail "print follow-exec/local_k"}
      timeout         {fail "(timeout) print follow-exec/local_k"}
    }
@@ -145,7 +145,7 @@ proc do_exec_tests { execer_lang execee_lang } {
    send_gdb "next\n"
    gdb_expect {
      -re ".*xecuting new program: .*${execee_testfile_re}.*${srcfile2}:${execd_line}.*int  local_j = argc;.*$gdb_prompt $"\
-                     {pass "step through execlp call"}
+                    {pass "step through execlp call"}
      -re "$gdb_prompt $" {fail "step through execlp call"}
      timeout         {fail "(timeout) step through execlp call"}
    }
@@ -156,7 +156,7 @@ proc do_exec_tests { execer_lang execee_lang } {
    send_gdb "next\n"
    gdb_expect {
      -re "printf \\(.Hello .*$gdb_prompt $"\
-                     {pass "step after execlp call"}
+                    {pass "step after execlp call"}
      -re "$gdb_prompt $" {fail "step after execlp call"}
      timeout         {fail "(timeout) step after execlp call"}
    }
@@ -201,7 +201,7 @@ proc do_exec_tests { execer_lang execee_lang } {
    send_gdb "catch exec\n"
    gdb_expect {
      -re "Catchpoint .*(exec).*$gdb_prompt $"\
-                     {pass "set catch exec"}
+                    {pass "set catch exec"}
      -re "$gdb_prompt $" {fail "set catch exec"}
      timeout         {fail "(timeout) set catch exec"}
    }
@@ -212,14 +212,14 @@ proc do_exec_tests { execer_lang execee_lang } {
    set msg "info shows catchpoint without exec pathname"
    gdb_test_multiple "info breakpoints" $msg {
        -re ".*catchpoint.*keep y.*exec\[\n\r\]+$gdb_prompt $" {
-           pass $msg
+          pass $msg
        }
    }
 
    send_gdb "continue\n"
    gdb_expect {
      -re ".*xecuting new program:.*${execee_testfile_re}.*Catchpoint .*(exec\'d .*${execee_testfile_re}).*$gdb_prompt $"\
-                     {pass "hit catch exec"}
+                    {pass "hit catch exec"}
      -re "$gdb_prompt $" {fail "hit catch exec"}
      timeout         {fail "(timeout) hit catch exec"}
    }
@@ -236,7 +236,7 @@ proc do_exec_tests { execer_lang execee_lang } {
    set msg "info shows catchpoint exec pathname"
    gdb_test_multiple "info breakpoints" $msg {
        -re ".*catchpoint.*keep y.*exec, program \".*${execee_testfile_re}\".*$gdb_prompt $" {
-           pass $msg
+          pass $msg
        }
    }
 
@@ -246,7 +246,7 @@ proc do_exec_tests { execer_lang execee_lang } {
    send_gdb "continue\n"
    gdb_expect {
      -re ".*${srcfile2}:${execd_line}.*$gdb_prompt $"\
-                     {pass "continue after hit catch exec"}
+                    {pass "continue after hit catch exec"}
      -re "$gdb_prompt $" {fail "continue after hit catch exec"}
      timeout         {fail "(timeout) continue after hit catch exec"}
    }
@@ -276,14 +276,14 @@ proc do_exec_tests { execer_lang execee_lang } {
    send_gdb "tbreak ${tbreak_line}\n"
    gdb_expect {
      -re "Temporary breakpoint .*file .*${srcfile}, line ${tbreak_line}.*$gdb_prompt $"\
-                     {pass "prepare to jump to execl call"}
+                    {pass "prepare to jump to execl call"}
      -re "$gdb_prompt $" {fail "prepare to jump to execl call"}
      timeout         {fail "(timeout) prepare to jump to execl call"}
    }
    send_gdb "jump ${tbreak_line}\n"
    gdb_expect {
      -re "main.* at .*${srcfile}:${tbreak_line}.*$gdb_prompt $"\
-                     {pass "jump to execl call"}
+                    {pass "jump to execl call"}
      -re "$gdb_prompt $" {fail "jump to execl call"}
      timeout         {fail "(timeout) jump to execl call"}
    }
@@ -296,14 +296,14 @@ proc do_exec_tests { execer_lang execee_lang } {
    send_gdb "next 2\n"
    gdb_expect {
      -re ".*xecuting new program: .*${execee_testfile_re}.*${srcfile2}:${execd_line}.*int  local_j = argc;.*$gdb_prompt $"\
-                     {pass "step through execl call"}
+                    {pass "step through execl call"}
      -re "$gdb_prompt $" {fail "step through execl call"}
      timeout         {fail "(timeout) step through execl call"}
    }
    send_gdb "next\n"
    gdb_expect {
      -re "printf \\(.Hello .*$gdb_prompt $"\
-                     {pass "step after execl call"}
+                    {pass "step after execl call"}
      -re "$gdb_prompt $" {fail "step after execl call"}
      timeout         {fail "(timeout) step after execl call"}
    }
@@ -344,28 +344,28 @@ proc do_exec_tests { execer_lang execee_lang } {
    send_gdb "tbreak ${tbreak_line}\n"
    gdb_expect {
      -re "Temporary breakpoint .*file .*${srcfile}, line ${tbreak_line}.*$gdb_prompt $"\
-                     {pass "prepare to jump to execv call"}
+                    {pass "prepare to jump to execv call"}
      -re "$gdb_prompt $" {fail "prepare to jump to execv call"}
      timeout         {fail "(timeout) prepare to jump to execv call"}
    }
    send_gdb "jump ${tbreak_line}\n"
    gdb_expect {
      -re "main.* at .*${srcfile}:${tbreak_line}.*$gdb_prompt $"\
-                     {pass "jump to execv call"}
+                    {pass "jump to execv call"}
      -re "$gdb_prompt $" {fail "jump to execv call"}
      timeout         {fail "(timeout) jump to execv call"}
    }
    send_gdb "next\n"
    gdb_expect {
      -re ".*xecuting new program: .*${execee_testfile_re}.*${srcfile2}:${execd_line}.*int  local_j = argc;.*$gdb_prompt $"\
-                     {pass "step through execv call"}
+                    {pass "step through execv call"}
      -re "$gdb_prompt $" {fail "step through execv call"}
      timeout         {fail "(timeout) step through execv call"}
    }
    send_gdb "next\n"
    gdb_expect {
      -re "printf \\(.Hello .*$gdb_prompt $"\
-                     {pass "step after execv call"}
+                    {pass "step after execv call"}
      -re "$gdb_prompt $" {fail "step after execv call"}
      timeout         {fail "(timeout) step after execv call"}
    }
@@ -399,7 +399,7 @@ proc do_exec_tests { execer_lang execee_lang } {
    send_gdb "continue\n"
    gdb_expect {
      -re ".*xecuting new program: .*${execee_testfile_re}.*${srcfile2}:${execd_line}.*int  local_j = argc;.*$gdb_prompt $"\
-                     {pass "continue through exec"}
+                    {pass "continue through exec"}
      -re "$gdb_prompt $" {fail "continue through exec"}
      timeout         {fail "(timeout) continue through exec"}
    }
index 0daa3aa3ef15b69f972a3edd72db808c58c330b3..602c8e9e99dcf0d2d063cdc7526c6c356d5f6455 100644 (file)
@@ -29,37 +29,37 @@ if {![runto break_me]} {
 # Test with "print frame-arguments" set to "all"
 
 gdb_test_no_output "set print frame-arguments all" \
-         "set print frame-arguments all"
+        "set print frame-arguments all"
 gdb_test "frame 1" \
-         ".*in call_me \\(i=3, f=5, s=({a = 3, b = 5}|<optimized out>), ss=0x\[0-9a-f\]\+, u=({.*}|<optimized out>), e=green\\) at .*frame-args\\.c:.*" \
-         "frame 1 with print frame-arguments set to all"
+        ".*in call_me \\(i=3, f=5, s=({a = 3, b = 5}|<optimized out>), ss=0x\[0-9a-f\]\+, u=({.*}|<optimized out>), e=green\\) at .*frame-args\\.c:.*" \
+        "frame 1 with print frame-arguments set to all"
 
 # Test with "print frame-arguments" set to "scalars"
 
 gdb_test_no_output "set print frame-arguments scalars" \
-         "set print frame-arguments scalars"
+        "set print frame-arguments scalars"
 gdb_test "frame 1" \
-         ".*in call_me \\(i=3, f=5, s=\\.\\.\\., ss=0x\[0-9a-f\]\+, u=\\.\\.\\., e=green\\) at .*frame-args\\.c:.*" \
-         "frame 1 with print frame-arguments set to scalars"
+        ".*in call_me \\(i=3, f=5, s=\\.\\.\\., ss=0x\[0-9a-f\]\+, u=\\.\\.\\., e=green\\) at .*frame-args\\.c:.*" \
+        "frame 1 with print frame-arguments set to scalars"
 
 # Test with "print frame-arguments" set to "none"
 
 gdb_test_no_output "set print frame-arguments none" \
-         "set print frame-arguments none"
+        "set print frame-arguments none"
 gdb_test "frame 1" \
-         ".*in call_me \\(i=\\.\\.\\., f=\\.\\.\\., s=\\.\\.\\., ss=\\.\\.\\., u=\\.\\.\\., e=\\.\\.\\.\\) at .*frame-args\\.c:.*" \
-         "frame 1 with print frame-arguments set to none"
+        ".*in call_me \\(i=\\.\\.\\., f=\\.\\.\\., s=\\.\\.\\., ss=\\.\\.\\., u=\\.\\.\\., e=\\.\\.\\.\\) at .*frame-args\\.c:.*" \
+        "frame 1 with print frame-arguments set to none"
 
 # Test with "print frame-arguments" set to "presence"
 
 gdb_test_no_output "set print frame-arguments presence" \
-         "set print frame-arguments presence"
+        "set print frame-arguments presence"
 gdb_test "frame 1" \
-         ".*in call_me \\(\\.\\.\\.\\) at .*frame-args\\.c:.*" \
-         "frame 1 with print frame-arguments set to presence"
+        ".*in call_me \\(\\.\\.\\.\\) at .*frame-args\\.c:.*" \
+        "frame 1 with print frame-arguments set to presence"
 gdb_test "frame 2" \
-         ".*in main \\(\\) at .*frame-args\\.c:.*" \
-         "frame 2 (no args) with print frame-arguments set to presence"
+        ".*in main \\(\\) at .*frame-args\\.c:.*" \
+        "frame 2 (no args) with print frame-arguments set to presence"
 
 
 # Test with "print frame-info" set to "location-and-address"
index 9806a593686534f4dc3970ad93b0deafd2493ecd..f3fbd366359956a92a9acee8d0598f71891029e7 100644 (file)
@@ -173,7 +173,7 @@ with_test_prefix "second frame_2 breakpoint" {
     gdb_continue_to_breakpoint frame_2
     gdb_test "bt" \
        "#0  frame_2.*#1  $hex in recursive.*#2  $hex in recursive.*#3  $hex in recursive.*#4  $hex in main.*" \
-       "backtrace at breakpoint with recursive frames"
+       "backtrace at breakpoint with recursive frames"
 
     # Check "frame function" when a function name occurs multiple times in
     # the stack.  The inner most (lowest level) should always be selected.
index 90333f964ded6130611c0f84e2c3efb8f112150a..4d14fadd6261b9641c9b30a229d24f50f690560c 100644 (file)
@@ -59,39 +59,39 @@ set lines {{if i<0 || i > 100}
           {echo Invalid i value\n}
           {else}
           {if (i%2) == 0}
-           {echo "even "}
-           {print i}
-           {else}
-           {echo "odd "}
-           {print i}
-           {end}
-           {set variable $foo = 0}
-           {set variable $j = 0}
-           {while $j < i}
-           {set variable $foo += $j}
-           {set variable $j++}
-           {end}
-           {print $foo}
-           {if i != 40}
-           {c}
-           {end}
+          {echo "even "}
+          {print i}
+          {else}
+          {echo "odd "}
+          {print i}
+          {end}
+          {set variable $foo = 0}
+          {set variable $j = 0}
+          {while $j < i}
+          {set variable $foo += $j}
+          {set variable $j++}
+          {end}
+          {print $foo}
+          {if i != 40}
+          {c}
+          {end}
           {end}
-           {end}}
+          {end}}
 
 send_gdb "commands\n"
 for {set i 0} {$i < [llength $lines]} {incr i} {
     gdb_expect {
-        -re ".*>" {
-            send_gdb "[lindex $lines $i]\n"
-        }
-        -re "$gdb_prompt $" {
-            set reason "got top-level prompt early"
-            break
-        }
-        timeout {
-            set reason "timeout"
-            break
-        }
+       -re ".*>" {
+           send_gdb "[lindex $lines $i]\n"
+       }
+       -re "$gdb_prompt $" {
+           set reason "got top-level prompt early"
+           break
+       }
+       timeout {
+           set reason "timeout"
+           break
+       }
     }
 }
 if {$i >= [llength $lines]} {
index 5198248454b8d44359666a808990e2bbec650535..add98b9c8ea836bf2b46a912e88f9e9d765e1eed 100644 (file)
@@ -15,9 +15,9 @@
 #      include <alloca.h>
 #      define HAVE_STACK_ALLOCA 1
 #      ifdef __STDC__
-         void *alloca ();
+        void *alloca ();
 #      else
-         char *alloca ();
+        char *alloca ();
 #      endif /* __STDC__ */
 #    endif /* sparc */
 #  endif /* Not AIX */
index fd9f06ed685b0e1e71d46daa6e99082b4bfd3a5e..5d8b85f67a00d8e835bb8259d9340874ac6c47f7 100644 (file)
@@ -56,7 +56,7 @@ proc test_body { detached } {
     set res [remote_spawn target "$binfile $detached \"$gcore_cmd\" $corefile"]
     if { ![gdb_assert { ![expr {$res < 0 || $res == ""}] } \
        "spawned gcore"] } {
-            return
+           return
        }
 
     set saw_corefile_created false
index 0e0e4a0807a03b827395cf7dad85fe0a26858246..411e61338fb7654cbca9e908f7b99eefb2f16e27 100644 (file)
@@ -40,4 +40,3 @@ gdb_test_multiple "print 1/0" "" {
     }
 }
 gdb_test "print 1U/0" ".*Division by zero.*" "test unsigned division by zero"
-
index 4d6137362315875380ee7c045162e86c5af02883..24b4dd0d7d24b78069386279083c1773b6a88c14 100644 (file)
@@ -23,7 +23,7 @@ struct a
   {
     union
       {
-        int i;
+       int i;
       };
   } a;
 
@@ -32,4 +32,3 @@ main (void)
 {
   return sizeof (a.i);
 }
-
index 4b910cab634c6c167fd5113a4b6977585d33d7fa..be7d4766cc529ad69daf450b5880738c454d571b 100644 (file)
@@ -38,4 +38,3 @@ if {![runto_main]} {
 gdb_test "print a.i" " = 0"
 gdb_test "print sizeof (a.i)" " = \[0-9\]+"
 gdb_test "print sizeof (a.i) == sizeof (int)" " = 1"
-
index 137e3f21ed584255ea7ef4d99d2618a8a54fc8c9..97f5928d33be083243ae1b440d6df9d8b98bfd37 100644 (file)
@@ -37,4 +37,3 @@ main ()
   myrec.x = 78;
   return myrec.x;
 }
-
index c6c5e7b905dd6b4115eefef09b22f2c17ad1c67e..82d399f2ef0155da6336fd5ecc0d36e26e93f823 100644 (file)
@@ -65,4 +65,3 @@ gdb_test "next" \
 gdb_test "continue" \
     ".*${nl}.*atchpoint \[0-9\]+: myrec\.x${nl}Old value = 5${nl}New value = 78${nl}.*" \
     "watchpoint variable triggers at continue"
-
index 355dee87f57027dad492fd53bcbbc32128b05f6f..9f6f08c79c813005a8fec9d3573a483797ed55fb 100644 (file)
@@ -23,4 +23,3 @@ int hithere2()
   a = 21;
   return a;
 }
-
index 174c8f790c29b1bc6a6b9999a33bb2643d170d19..a3e0a3d4de8f5e254cc641e0e763b48d98c7eba8 100644 (file)
@@ -65,4 +65,3 @@ gdb_test_multiple "n" $name \
        kfail "gdb/1555" $name
     }
 }
-
index cd9c542b4215ab1338ff3ef381dcf46c2e1311e0..f84fc9c9585fa6d22bf88841723575123a4ab413 100644 (file)
@@ -32,4 +32,3 @@ if {![runto_main]} {
     return
 }
 gdb_test "print /x bar" "{x__0 = 0x0, y__0 = 0x0, z__1 = 0x0}"
-
index d73996d7d4fd94ac535864166360a2e8a831ebbc..5173b72e00facbe8039f74cecb99ec88b94353a1 100644 (file)
@@ -51,9 +51,9 @@ proc test_histsize_history_setting { histsize size { env_var "GDBHISTSIZE" } } {
                gdb_test_no_output "show commands"
            } elseif { $size != "1" } {
                gdb_test "show commands" \
-                        "    .  show history size\r\n    .  show commands"
+                        "    .  show history size\r\n    .  show commands"
            }
-        }
+       }
     }
 }
 
index 11a4a23c5289c69fc8ff692fd009a62775f736be..28309995846b36559934e583de902d048a993a3f 100644 (file)
@@ -118,7 +118,7 @@ proc test_no_truncation_of_unlimited_history_file { } {
                gdb_start
                gdb_test "server show commands" "    .  print 1.*"
            }
-        }
+       }
     }
 }
 
index 58034bbbaaedc30c9978d3900c33000f79d120ad..b4b754ba3e4742c48673bb615edcab0b963850a3 100644 (file)
@@ -7,4 +7,3 @@ int grbx (int x)
   else
     return 0;
 }
-
index 4717cfd3d880e8e7ea0bf6e30eca4ef743ce6cc9..7c22825f64e91d6146188b16741e9ead3bf31b52 100644 (file)
@@ -22,4 +22,3 @@ main (void)
 {
   return foo ();
 }
-
index c7dbc469beaff5eea88cffd0ab01e3ad7b99e93b..b862e0ccbb26f0408032e9120d5579d3620fa600 100644 (file)
@@ -117,12 +117,12 @@ proc_with_prefix test_basic_stuff { } {
        "index-cache is now enabled"
 
     with_test_prefix "deprecated commands" {
-        gdb_test "set index-cache off" ".*is deprecated.*" "disable index cache"
+       gdb_test "set index-cache off" ".*is deprecated.*" "disable index cache"
        gdb_test \
            "show index-cache enabled" \
            "The index cache is off." \
            "index-cache is now disabled"
-        gdb_test "set index-cache on" ".*is deprecated.*" "enable index cache"
+       gdb_test "set index-cache on" ".*is deprecated.*" "enable index cache"
        gdb_test \
            "show index-cache enabled" \
            "The index cache is on." \
index b633cf2751979135e2fa07038f8d926a9ed57e84..eddbcb3ef8756bfe576f83e02795d70bb3366789 100644 (file)
@@ -113,12 +113,12 @@ proc run_tests { lang types } {
     global gdb_prompt
 
     foreach {name} {struct_01_01 struct_01_02 struct_01_03 struct_01_04
-                    struct_02_01 struct_02_02 struct_02_03 struct_02_04
-                    struct_04_01 struct_04_02 struct_04_03 struct_04_04
-                    struct_05_01 struct_05_02 struct_05_03 struct_05_04
-                    struct_static_02_01 struct_static_02_02 struct_static_02_03 struct_static_02_04
-                    struct_static_04_01 struct_static_04_02 struct_static_04_03 struct_static_04_04
-                    struct_static_06_01 struct_static_06_02 struct_static_06_03 struct_static_06_04} {
+                   struct_02_01 struct_02_02 struct_02_03 struct_02_04
+                   struct_04_01 struct_04_02 struct_04_03 struct_04_04
+                   struct_05_01 struct_05_02 struct_05_03 struct_05_04
+                   struct_static_02_01 struct_static_02_02 struct_static_02_03 struct_static_02_04
+                   struct_static_04_01 struct_static_04_02 struct_static_04_03 struct_static_04_04
+                   struct_static_06_01 struct_static_06_02 struct_static_06_03 struct_static_06_04} {
 
        # Only run static member tests on C++
        if { $lang == "c" && [regexp "static" $name match] } {
index 4a6c96073b95a16e3d1394013d934fc1a898aa73..8fc1373796186cabb91521998f5ec5f7288ada93 100644 (file)
@@ -68,4 +68,3 @@ int main (int argc, const char **argv)
   return 0;
 }
 #endif
-
index f3541088686dafaa52087628b3998efc04298373..6e743202810ba0324f3e063e5723d25a2fa7c6d5 100644 (file)
@@ -27,4 +27,4 @@ set eol "\r\n"
 # it is formatted properly.  For instance, make sure that no '\n' is
 # missing at the end some lines.
 gdb_test "info target" \
-         "Symbols from \".*${testfile}.*\"\\..*${eol}Local exec file:${eol}.*Entry point: 0x\[0-9a-zA-Z\]+${eol}.*"
+        "Symbols from \".*${testfile}.*\"\\..*${eol}Local exec file:${eol}.*Entry point: 0x\[0-9a-zA-Z\]+${eol}.*"
index 9183a20eab0cbeb4aed6bea3ea9c20b442fee64b..fa955b9f2aff4a80c29e18ce77b81e677947658c 100644 (file)
@@ -19,4 +19,3 @@ void some_other_func (void)
 {
   return;
 }
-
index 48b8e32b31cb65af28a6091d8e16ac7cfed2df8c..fb19febcd5a1684faefd1371de56a1045f04bb85 100644 (file)
@@ -24,4 +24,4 @@ if { [prepare_for_testing "failed to prepare" ${testfile}] } {
 # at <twice+N> where N is different from zero.
 set fun_decl_line [gdb_get_line_number "THIS LINE"]
 gdb_test "info line ${srcfile}:${fun_decl_line}" \
-         "Line ${fun_decl_line} of \".*${testfile}\.c\" starts at address 0x\[0-9a-f\]+ <twice> and ends at .*"
+        "Line ${fun_decl_line} of \".*${testfile}\.c\" starts at address 0x\[0-9a-f\]+ <twice> and ends at .*"
index 8331d9656f7dfe6edc51a4d349b02939fbc76a6e..ccf32d7865b370be410d345c16b22af3c794b9a8 100644 (file)
@@ -17,4 +17,3 @@ int main ()
     return 0;
 
 }
-
index 6cf8e1811cd848482b9398119b593275aadbc8ca..748e535057c9c41d2d5686ccb5114b9e4088472b 100644 (file)
@@ -34,10 +34,10 @@ gdb_start
 # change of the interactive-mode setting.
 gdb_test_no_output "set interactive-mode auto"
 gdb_test "source $script" "$script_output" \
-         "source script with interactive-mode auto"
+        "source script with interactive-mode auto"
 gdb_test "print 3" "= 3" "sanity check with interactive-mode auto"
 gdb_test "show interactive-mode" \
-         "Debugger's interactive mode is auto \\(currently .*\\)\\." \
+        "Debugger's interactive mode is auto \\(currently .*\\)\\." \
         "show interactive-mode, auto"
 
 # Test sourcing of the script with interactive mode `on'.
@@ -45,10 +45,10 @@ gdb_test "show interactive-mode" \
 # change of the interactive-mode setting.
 gdb_test_no_output "set interactive-mode on"
 gdb_test "source $script" "$script_output" \
-         "source script with interactive-mode on"
+        "source script with interactive-mode on"
 gdb_test "print 4" "= 4" "sanity check with interactive-mode on"
 gdb_test "show interactive-mode" \
-         "Debugger's interactive mode is on\\." \
+        "Debugger's interactive mode is on\\." \
         "show interactive-mode, on"
 
 # Test sourcing of the script with interactive mode `off'.
@@ -56,9 +56,8 @@ gdb_test "show interactive-mode" \
 # change of the interactive-mode setting.
 gdb_test_no_output "set interactive-mode off"
 gdb_test "source $script" "$script_output" \
-         "source script with interactive-mode off"
+        "source script with interactive-mode off"
 gdb_test "print 5" "= 5" "sanity check with interactive-mode off"
 gdb_test "show interactive-mode" \
-         "Debugger's interactive mode is off\\." \
+        "Debugger's interactive mode is off\\." \
         "show interactive-mode, off"
-
index fef0bd9496c5eeef0e731d3f3380cdf8c64e9297..dd790fd6242861d98d949e2b68c34636e1df56e5 100644 (file)
@@ -154,7 +154,7 @@ if {![file exists $binfile]} {
            }
        }
 
-       if { ! [target_info exists gdb,nosignals] } {
+       if { ! [target_info exists gdb,nosignals] } {
            # Wait until the program is in the read system call again.
            sleep 2
 
index bde24498fb9e34cd2a972ecb9ac9ec64d51b9dbd..8bede15ca25d857eae0e7ec00460511289353870 100644 (file)
@@ -70,7 +70,7 @@ load_symbol (void *addr, const char *sym_name)
            {
              const char *s = strtab + p->st_name;
              if (strcmp (s, sym_name) == 0)
-               return (void *) p->st_value;
+               return (void *) p->st_value;
            }
        }
     }
@@ -101,7 +101,7 @@ load_elf (const char *libname, size_t *size, void *load_addr)
     }
 
   void *addr = mmap (load_addr, st.st_size,
-                    PROT_READ | PROT_WRITE | PROT_EXEC,
+                    PROT_READ | PROT_WRITE | PROT_EXEC,
                     load_addr != NULL ? MAP_PRIVATE | MAP_FIXED : MAP_PRIVATE,
                     fd, 0);
   close (fd);
index fc538241c1ca99efb08dc382a45d77d5384621d3..99bb72cf06d222b10497b27341d6c0e8b604ce43 100644 (file)
@@ -17,8 +17,8 @@
 
 #ifdef JIT_H
 #error "We don't include jit.h directly since we'd like the jit-reader unit  \
-        tests to break if we make ABI incompatible changes to the structures \
-        re-declared here."
+       tests to break if we make ABI incompatible changes to the structures \
+       re-declared here."
 #endif
 
 #ifndef JIT_PROTOCOL_H
index d3d007d3cb4334d920b9c0f5101994187d96a8cb..e5868f655f5b024954bf7b2770174e4154410732 100644 (file)
@@ -43,7 +43,7 @@ struct reader_state
 static enum gdb_status
 read_debug_info (struct gdb_reader_funcs *self,
                 struct gdb_symbol_callbacks *cbs,
-                 void *memory, long memory_sz)
+                void *memory, long memory_sz)
 {
   struct jithost_abi *symfile = memory;
   struct gdb_object *object = cbs->object_open (cbs);
@@ -92,7 +92,7 @@ free_reg_value (struct gdb_reg_value *value)
 
 static void
 write_register (struct gdb_unwind_callbacks *callbacks, int dw_reg,
-                uintptr_t value)
+               uintptr_t value)
 {
   const int size = sizeof (uintptr_t);
   struct gdb_reg_value *reg_val =
index 6cdbdb4eaeca014b4eeb07bebf22403b27ecaf8a..7ddf5df13398a21d156673df36ea1bf7fafec263 100644 (file)
@@ -31,7 +31,7 @@ proc get_value {var msg} {
        -re ".*= ($decimal).*\r\n$gdb_prompt $" {
            set value $expect_out(1,string)
            pass "$msg"
-        }
+       }
     }
     return ${value}
 }
index c8921981b2e4337f39854e647343eead37c611c2..98e78f45eec0b32c4d70b94981846a0a793e1f80 100644 (file)
@@ -18,4 +18,3 @@ there:
 done:
   return 0;
 }
-
index 7b6b229afe615cf93de3a169b79d6d2069397983..80f9d0ddea92bc616a64fd843024e18c76136a6a 100644 (file)
@@ -30,4 +30,3 @@ static integer c__10000 = 10000;
     return cppsub_(&c__10000);
 #line 7 "langs1.f"
 } /* fsub_ */
-
index f0d7af6c8b219a3d5bd8ff3fe34848b5bb94531e..553afea7c44cd1ece65a4fc70e81e6b78fe86824 100644 (file)
@@ -57,4 +57,3 @@ foreach opt { O0 O1 O2 } {
        run_test $opt
     }
 }
-
index cb997cb04e11bf468c8eb546b6559b553e2d3fbd..1a4e9fc815ab661387209d086c6d79a611fc1753 100644 (file)
@@ -26,5 +26,4 @@ if {![runto_main]} {
 gdb_test_no_output "set variable ldbl_308 = 1.6e+308l"
 
 gdb_test "print ldbl_308" \
-         "= 1\..*e\\+308"
-
+        "= 1\..*e\\+308"
index a9cb739ccc912b3659b857c80b15cce5d1b39675..1e6a6bed5ec27723fde30f0f0054b897521cbf2b 100644 (file)
@@ -24,5 +24,5 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
 }
 
 gdb_test "break $srcfile:65535" \
-         ".*Breakpoint 1 at .*: file .*$srcfile, line 65535\\..*" \
+        ".*Breakpoint 1 at .*: file .*$srcfile, line 65535\\..*" \
         "break at line 65535"
index 61983cc33955c2bf657fedcf43fa29a86060fedd..c83bce03241c3699cc6b7915c5c3e31b22ec5272 100644 (file)
@@ -94,21 +94,21 @@ gdb_load $binfile
 set test_name "tolerate macro info with multiple #inclusions per line"
 gdb_test_multiple "break -q main" $test_name {
     -re "Breakpoint 1 at 0x.*: file .*lineinc.c.*\\.\r\n${gdb_prompt}" {
-        pass $test_name
+       pass $test_name
     }
     -re ".*internal-error:.*.y or n. " {
-        fail $test_name
-        send_gdb "y\n"
-        gdb_expect {
-            -re ".*.y or n. " {
-                send_gdb "n\n"
-                exp_continue
-            }
-            -re "$gdb_prompt" {
-            }
-            timeout {
-                fail "$test_name (timeout)"
-            }
-        }
+       fail $test_name
+       send_gdb "y\n"
+       gdb_expect {
+           -re ".*.y or n. " {
+               send_gdb "n\n"
+               exp_continue
+           }
+           -re "$gdb_prompt" {
+           }
+           timeout {
+               fail "$test_name (timeout)"
+           }
+       }
     }
 }
index 196a1f209dc166a32ddd3a1fdfa3c58e61425aec..9a1b53722606a7d6a83ce89b508e73f27bd7f14a 100644 (file)
@@ -61,4 +61,3 @@ gdb_test "info source" \
         "Producer is \[^\n\r\]+" \
         "Compiled with DWARF $decimal debugging format." \
         "Does not include preprocessor macro info." ]
-
index 90369f8f8241bd96ec7c83f36789e406c62bb75b..df4861942523e375d9ae29f8fe9c3f4f5c595b6e 100644 (file)
@@ -54,7 +54,7 @@ while {$more} {
        -i $inferior_spawn_id
        -ex "this is line number $i" {
            incr i
-           if {$i != $expected_lines} {
+          if {$i != $expected_lines} {
                set more 1
            }
        }
index 3358f4ce7fa427d791a1c98b37d2d28d9fa1b74d..1e917c8db28125b70bfa39ff50de4f82711e0bb4 100644 (file)
@@ -85,7 +85,7 @@ SECTIONS
   {
     *(.data)
     *(.gnu.linkonce.d*)
-    _ovly_table = .; 
+    _ovly_table = .;
       _ovly0_entry = .;
        LONG(ABSOLUTE(ADDR(.ovly0)));
        LONG(SIZEOF(.ovly0));
index c275d74eed3043f013baae6947d93496aa38a658..a63bd950026fabaacbf9aa969b64df0674d4f029 100644 (file)
@@ -67,87 +67,87 @@ proc info_macro {macro} {
 
     if {$debug_me} {exp_internal 1}
     gdb_expect {
-        -re "Defined at \[^\r\n\]*(${filepat}):${nonzero}\[\r\n\]" {
-            # `location' and `definition' should be empty when we see
-            # this message.
-            if {[llength $location] == 0 && [llength $definition] == 0} {
-                set location $expect_out(1,string)
-                exp_continue
-            } else {
-                # Exit this expect loop, with a result indicating failure.
-                set definition {}
-            }
-        }
-        -re "The symbol `${macro}' has no definition as a C/C\\+\\+ preprocessor macro\[^\r\n\]*\[\r\n\]" {
-            # `location' and `definition' should be empty when we see
-            # this message.
-            if {[llength $location] == 0 && [llength $definition] == 0} {
-                set definition undefined
-                exp_continue
-            } else {
-                # Exit this expect loop, with a result indicating failure.
-                set definition {}
-            }
-        }
-        -re "^\[\r\n\]*  included at \[^\r\n\]*(${filepat}):${nonzero}\[\r\n\]" {
-            # `location' should *not* be empty when we see this
-            # message.  It should have recorded at least the initial
-            # `Defined at ' message (for definitions) or ` at' message
-            # (for undefined symbols).
-            if {[llength $location] != 0} {
-                lappend location $expect_out(1,string)
-                exp_continue
-            } else {
-                # Exit this expect loop, with a result indicating failure.
-                set definition {}
-            }
-        }
-        -re "^\[\r\n\]*at \[^\r\n\]*(${filepat}):${nonzero}\[\r\n\]" {
-            # This appears after a `has no definition' message.
-            # `location' should be empty when we see it.
-            if {[string compare $definition undefined] == 0 \
-                    && [llength $location] == 0} {
-                set location $expect_out(1,string)
-                exp_continue
-            } else {
-                # Exit this expect loop, with a result indicating failure.
-                set definition {}
-            }
-        }
-        -re "#define ${macro} (\[^\r\n\]*)\[\r\n\]" {
-            # `definition' should be empty when we see this message.
-            if {[string compare $definition ""] == 0} {
-                set definition $expect_out(1,string)
-                exp_continue
-            } else {
-                # Exit this expect loop, with a result indicating failure.
-                set definition {}
-            }
-        }
-        -re "has no preprocessor macro information.*$gdb_prompt $" {
-            set definition no-macro-info
-        }
-        -re "$gdb_prompt $" {
-            # Exit the expect loop; let the existing value of `definition'
-            # indicate failure or success.
-        }
-        timeout {
-            set definition timeout
-        }
+       -re "Defined at \[^\r\n\]*(${filepat}):${nonzero}\[\r\n\]" {
+           # `location' and `definition' should be empty when we see
+           # this message.
+           if {[llength $location] == 0 && [llength $definition] == 0} {
+               set location $expect_out(1,string)
+               exp_continue
+           } else {
+               # Exit this expect loop, with a result indicating failure.
+               set definition {}
+           }
+       }
+       -re "The symbol `${macro}' has no definition as a C/C\\+\\+ preprocessor macro\[^\r\n\]*\[\r\n\]" {
+           # `location' and `definition' should be empty when we see
+           # this message.
+           if {[llength $location] == 0 && [llength $definition] == 0} {
+               set definition undefined
+               exp_continue
+           } else {
+               # Exit this expect loop, with a result indicating failure.
+               set definition {}
+           }
+       }
+       -re "^\[\r\n\]*  included at \[^\r\n\]*(${filepat}):${nonzero}\[\r\n\]" {
+           # `location' should *not* be empty when we see this
+           # message.  It should have recorded at least the initial
+           # `Defined at ' message (for definitions) or ` at' message
+           # (for undefined symbols).
+           if {[llength $location] != 0} {
+               lappend location $expect_out(1,string)
+               exp_continue
+           } else {
+               # Exit this expect loop, with a result indicating failure.
+               set definition {}
+           }
+       }
+       -re "^\[\r\n\]*at \[^\r\n\]*(${filepat}):${nonzero}\[\r\n\]" {
+           # This appears after a `has no definition' message.
+           # `location' should be empty when we see it.
+           if {[string compare $definition undefined] == 0 \
+                   && [llength $location] == 0} {
+               set location $expect_out(1,string)
+               exp_continue
+           } else {
+               # Exit this expect loop, with a result indicating failure.
+               set definition {}
+           }
+       }
+       -re "#define ${macro} (\[^\r\n\]*)\[\r\n\]" {
+           # `definition' should be empty when we see this message.
+           if {[string compare $definition ""] == 0} {
+               set definition $expect_out(1,string)
+               exp_continue
+           } else {
+               # Exit this expect loop, with a result indicating failure.
+               set definition {}
+           }
+       }
+       -re "has no preprocessor macro information.*$gdb_prompt $" {
+           set definition no-macro-info
+       }
+       -re "$gdb_prompt $" {
+           # Exit the expect loop; let the existing value of `definition'
+           # indicate failure or success.
+       }
+       timeout {
+           set definition timeout
+       }
     }
     if {$debug_me} {exp_internal 0}
 
     switch -exact -- $definition {
-        no-macro-info { return no-macro-info }
-        timeout { return timeout }
-        undefined { return undefined }
-        default {
-            if {[llength $location] >= 1} {
-                return [concat $location [list $definition]]
-            } else {
-                return {}
-            }
-        }
+       no-macro-info { return no-macro-info }
+       timeout { return timeout }
+       undefined { return undefined }
+       default {
+           if {[llength $location] >= 1} {
+               return [concat $location [list $definition]]
+           } else {
+               return {}
+           }
+       }
     }
 }
 
@@ -159,24 +159,24 @@ proc info_macro {macro} {
 proc check_macro {macro expected where} {
     set func_def [info_macro $macro]
     if {[string compare $func_def $expected] == 0} {
-        pass "info macro $macro $where"
+       pass "info macro $macro $where"
     } else {
-        switch -exact -- $func_def {
-            no-macro-info {
-                xfail "executable includes no macro debugging information"
-                return 1
-            }
+       switch -exact -- $func_def {
+           no-macro-info {
+               xfail "executable includes no macro debugging information"
+               return 1
+           }
            undefined {
                fail "info macro $macro $where (undefined)"
                return 1
            }
-            timeout {
-                fail "info macro $macro $where (timeout)"
-            }
-            default {
-                fail "info macro $macro $where"
-            }
-        }
+           timeout {
+               fail "info macro $macro $where (timeout)"
+           }
+           default {
+               fail "info macro $macro $where"
+           }
+       }
     }
     return 0
 }
@@ -231,14 +231,14 @@ gdb_test "info macro __LINE__" "#define __LINE__ 26" \
 gdb_test "list macscp4_2_from_macscp2" ".*macscp4_2_, MACSCP4_INCLUSION.*"
 switch -exact -- [info_macro WHERE] {
     {macscp4.h macscp2.h macscp1.c {before macscp4_2_..., from macscp2.h}} {
-        pass "info macro WHERE after `list macscp_4_2_from_macscp2'"
+       pass "info macro WHERE after `list macscp_4_2_from_macscp2'"
     }
     {macscp4.h macscp3.h macscp1.c {before macscp4_2_..., from macscp3.h}} {
-        setup_kfail "gdb/7660" *-*-*
-        fail "info macro WHERE after `list macscp_4_2_from_macscp2' (gdb/7660)"
+       setup_kfail "gdb/7660" *-*-*
+       fail "info macro WHERE after `list macscp_4_2_from_macscp2' (gdb/7660)"
     }
     timeout {
-        fail "info macro WHERE after `list macscp_4_2_from_macscp2' (timeout)"
+       fail "info macro WHERE after `list macscp_4_2_from_macscp2' (timeout)"
     }
     default { fail "info macro WHERE after `list macscp_4_2_from_macscp2'" }
 }
@@ -246,14 +246,14 @@ switch -exact -- [info_macro WHERE] {
 gdb_test "list macscp4_2_from_macscp3" ".*macscp4_2_, MACSCP4_INCLUSION.*"
 switch -exact -- [info_macro WHERE] {
     {macscp4.h macscp3.h macscp1.c {before macscp4_2_..., from macscp3.h}} {
-        pass "info macro WHERE after `list macscp_4_2_from_macscp3'"
+       pass "info macro WHERE after `list macscp_4_2_from_macscp3'"
     }
     {macscp4.h macscp2.h macscp1.c {before macscp4_2_..., from macscp2.h}} {
-        setup_kfail "gdb/7660" *-*-*
-        fail "info macro WHERE after `list macscp_4_2_from_macscp3' (gdb/7660)"
+       setup_kfail "gdb/7660" *-*-*
+       fail "info macro WHERE after `list macscp_4_2_from_macscp3' (gdb/7660)"
     }
     timeout {
-        fail "info macro WHERE after `list macscp_4_2_from_macscp3' (timeout)"
+       fail "info macro WHERE after `list macscp_4_2_from_macscp3' (timeout)"
     }
     default { fail "info macro WHERE after `list macscp_4_2_from_macscp3'" }
 }
@@ -274,52 +274,52 @@ switch -exact -- [info_macro WHERE] {
 
 set funcs {
     {
-        macscp1_1
-        {macscp1.c {before macscp1_1}}
+       macscp1_1
+       {macscp1.c {before macscp1_1}}
     }
     {
-        macscp2_1
-        {macscp2.h macscp1.c {before macscp2_1}}
+       macscp2_1
+       {macscp2.h macscp1.c {before macscp2_1}}
     }
     {
-        macscp4_1_from_macscp2
-        {macscp4.h macscp2.h macscp1.c {before macscp4_1_..., from macscp2.h}}
-        {macscp4.h macscp3.h macscp1.c {before macscp4_1_..., from macscp3.h}}
+       macscp4_1_from_macscp2
+       {macscp4.h macscp2.h macscp1.c {before macscp4_1_..., from macscp2.h}}
+       {macscp4.h macscp3.h macscp1.c {before macscp4_1_..., from macscp3.h}}
     }
     {
-        macscp4_2_from_macscp2
-        {macscp4.h macscp2.h macscp1.c {before macscp4_2_..., from macscp2.h}}
-        {macscp4.h macscp3.h macscp1.c {before macscp4_2_..., from macscp3.h}}
+       macscp4_2_from_macscp2
+       {macscp4.h macscp2.h macscp1.c {before macscp4_2_..., from macscp2.h}}
+       {macscp4.h macscp3.h macscp1.c {before macscp4_2_..., from macscp3.h}}
     }
     {
-        macscp2_2
-        {macscp2.h macscp1.c {before macscp2_2}}
+       macscp2_2
+       {macscp2.h macscp1.c {before macscp2_2}}
     }
     {
-        macscp1_2
-        {macscp1.c {before macscp1_2}}
+       macscp1_2
+       {macscp1.c {before macscp1_2}}
     }
     {
-        macscp3_1
-        {macscp3.h macscp1.c {before macscp3_1}}
+       macscp3_1
+       {macscp3.h macscp1.c {before macscp3_1}}
     }
     {
-        macscp4_1_from_macscp3
-        {macscp4.h macscp3.h macscp1.c {before macscp4_1_..., from macscp3.h}}
-        {macscp4.h macscp2.h macscp1.c {before macscp4_1_..., from macscp2.h}}
+       macscp4_1_from_macscp3
+       {macscp4.h macscp3.h macscp1.c {before macscp4_1_..., from macscp3.h}}
+       {macscp4.h macscp2.h macscp1.c {before macscp4_1_..., from macscp2.h}}
     }
     {
-        macscp4_2_from_macscp3
-        {macscp4.h macscp3.h macscp1.c {before macscp4_2_..., from macscp3.h}}
-        {macscp4.h macscp2.h macscp1.c {before macscp4_2_..., from macscp2.h}}
+       macscp4_2_from_macscp3
+       {macscp4.h macscp3.h macscp1.c {before macscp4_2_..., from macscp3.h}}
+       {macscp4.h macscp2.h macscp1.c {before macscp4_2_..., from macscp2.h}}
     }
     {
-        macscp3_2
-        {macscp3.h macscp1.c {before macscp3_2}}
+       macscp3_2
+       {macscp3.h macscp1.c {before macscp3_2}}
     }
     {
-        macscp1_3
-        {macscp1.c {before macscp1_3}}
+       macscp1_3
+       {macscp1.c {before macscp1_3}}
     }
 }
 
@@ -358,71 +358,71 @@ for {set i 0} {$i < [llength $funcs]} {incr i} {
     # Check the macro WHERE.
     set result [info_macro WHERE]
     if {[string compare $result $expected] == 0} {
-        pass "info macro WHERE stopped in $func"
+       pass "info macro WHERE stopped in $func"
     } elseif {[string compare $result $kfail_expected] == 0} {
-        setup_kfail "gdb/7660" *-*-*
-        fail "info macro WHERE stopped in $func (gdb/7660)"
+       setup_kfail "gdb/7660" *-*-*
+       fail "info macro WHERE stopped in $func (gdb/7660)"
     } elseif {[string compare $result timeout] == 0} {
-        fail "info macro WHERE stopped in $func (timeout)"
+       fail "info macro WHERE stopped in $func (timeout)"
     } else {
-        fail "info macro WHERE stopped in $func"
+       fail "info macro WHERE stopped in $func"
     }
 
     # Check that the BEFORE_<func> macros for all prior functions are
     # #defined, and that those for all subsequent functions are not.
     for {set j 0} {$j < [llength $funcs]} {incr j} {
-        if {$j != $i} {
-            set func_j_entry [lindex $funcs $j]
-            set func_j [lindex $func_j_entry 0]
-
-            set before_macro "BEFORE_[string toupper $func_j]"
-            set test_name \
-                    "$before_macro defined/undefined when stopped at $func"
-            set result [info_macro $before_macro]
-
-            if {$j < $i} {
-                if {[llength $result] >= 2 && \
-                        [string compare [lindex $result end] {}] == 0} {
-                    pass $test_name
-                } elseif {[string compare $result timeout] == 0} {
-                    fail "$test_name (timeout)"
-                } else {
-                    maybe_kfail $func "$test_name"
-                }
-            } elseif {$j > $i} {
-                switch -- [lindex $result end] {
-                    undefined { pass $test_name }
-                    timeout { fail "$test_name (timeout)" }
-                    default {
-                        maybe_kfail $func "$test_name"
-                    }
-                }
-            }
-
-            set until_macro "UNTIL_[string toupper $func_j]"
-            set test_name \
-                    "$until_macro defined/undefined when stopped at $func"
-            set result [info_macro $until_macro]
-
-            if {$j <= $i} {
-                switch -- [lindex $result end] {
-                    undefined { pass $test_name }
-                    timeout { fail "$test_name (timeout)" }
-                    default {
-                        maybe_kfail $func "$test_name"
-                    }
-                }
-            } elseif {$j > $i} {
-                if {[llength $result] >= 2 && \
-                        [string compare [lindex $result end] {}] == 0} {
-                    pass $test_name
-                } elseif {[string compare $result timeout] == 0} {
-                    fail "$test_name (timeout)"
-                } else {
-                    maybe_kfail $func "$test_name"
-                }
-            }
-        }
+       if {$j != $i} {
+           set func_j_entry [lindex $funcs $j]
+           set func_j [lindex $func_j_entry 0]
+
+           set before_macro "BEFORE_[string toupper $func_j]"
+           set test_name \
+                   "$before_macro defined/undefined when stopped at $func"
+           set result [info_macro $before_macro]
+
+           if {$j < $i} {
+               if {[llength $result] >= 2 && \
+                       [string compare [lindex $result end] {}] == 0} {
+                   pass $test_name
+               } elseif {[string compare $result timeout] == 0} {
+                   fail "$test_name (timeout)"
+               } else {
+                   maybe_kfail $func "$test_name"
+               }
+           } elseif {$j > $i} {
+               switch -- [lindex $result end] {
+                   undefined { pass $test_name }
+                   timeout { fail "$test_name (timeout)" }
+                   default {
+                       maybe_kfail $func "$test_name"
+                   }
+               }
+           }
+
+           set until_macro "UNTIL_[string toupper $func_j]"
+           set test_name \
+                   "$until_macro defined/undefined when stopped at $func"
+           set result [info_macro $until_macro]
+
+           if {$j <= $i} {
+               switch -- [lindex $result end] {
+                   undefined { pass $test_name }
+                   timeout { fail "$test_name (timeout)" }
+                   default {
+                       maybe_kfail $func "$test_name"
+                   }
+               }
+           } elseif {$j > $i} {
+               if {[llength $result] >= 2 && \
+                       [string compare [lindex $result end] {}] == 0} {
+                   pass $test_name
+               } elseif {[string compare $result timeout] == 0} {
+                   fail "$test_name (timeout)"
+               } else {
+                   maybe_kfail $func "$test_name"
+               }
+           }
+       }
     }
 }
 
index fd366d61f7d9de65fd6a44f82e489db702b24f53..7f6d9f6a98173853c4e3222f638ee4794dccdcb1 100644 (file)
@@ -110,14 +110,14 @@ gdb_test_multiple $test $test {
        exp_continue
     }
     -re "\[0-9\]+\[^\r\n\]+\[0-9\]+\[^\r\n\]+\[0-9\]+\[^\r\n\]+\[0-9\]+\[^\r\n\]+\r\n" {
-        set saw_registers 1
-        exp_continue
+       set saw_registers 1
+       exp_continue
     }
     -re "^\\*\[0-9\]+\[^\r\n\]+\r\n" {
-        exp_continue
+       exp_continue
     }
     -re "$gdb_prompt $" {
-        gdb_assert { $saw_registers && $saw_headers } $test
+       gdb_assert { $saw_registers && $saw_headers } $test
     }
 }
 
@@ -374,17 +374,17 @@ foreach { test_name command } $test_list {
 set msg "maint print type"
 gdb_test_multiple "maint print type argc" $msg {
     -re "type node $hex\r\nname .int. \\($hex\\)\r\ncode $hex \\(TYPE_CODE_INT\\)\r\nlength \[24\]\r\nobjfile $hex\r\ntarget_type $hex\r\npointer_type $hex\r\nreference_type $hex\r\ntype_chain $hex\r\ninstance_flags $hex\r\nflags\r\nnfields 0 $hex\r\n$gdb_prompt $" {
-        pass $msg
+       pass $msg
     }
 }
 
 if {[istarget "hppa*-*-11*"]} {
     setup_xfail hppa*-*-*11* CLLbs14860
     gdb_test_multiple "maint print unwind &main" "maint print unwind" {
-        -re ".*unwind_table_entry \\($hex\\):\r\n\tregion_start = $hex <main>\r\n\tregion_end = $hex <main\\+\[0-9\]*>\r\n\tflags = Args_stored Save_RP\r\n\tRegion_description = $hex\r\n\tEntry_FR = $hex\r\n\tEntry_GR = $hex\r\n\tTotal_frame_size = $hex\r\n$gdb_prompt $" {
+       -re ".*unwind_table_entry \\($hex\\):\r\n\tregion_start = $hex <main>\r\n\tregion_end = $hex <main\\+\[0-9\]*>\r\n\tflags = Args_stored Save_RP\r\n\tRegion_description = $hex\r\n\tEntry_FR = $hex\r\n\tEntry_GR = $hex\r\n\tTotal_frame_size = $hex\r\n$gdb_prompt $" {
            pass "maint print unwind"
        }
-        -re ".*unwind_table_entry \\($hex\\):\r\n\tregion_start = $hex <main>\r\n\tregion_end = $hex <main\\+\[0-9\]*>\r\n\tflags = Args_stored Save_RP\r\n\tFLD = $hex\r\n\tFLD = $hex\r\n\tFLD = $hex\r\n\tFLD = $hex\r\n$gdb_prompt $" {
+       -re ".*unwind_table_entry \\($hex\\):\r\n\tregion_start = $hex <main>\r\n\tregion_end = $hex <main\\+\[0-9\]*>\r\n\tflags = Args_stored Save_RP\r\n\tFLD = $hex\r\n\tFLD = $hex\r\n\tFLD = $hex\r\n\tFLD = $hex\r\n$gdb_prompt $" {
            xfail "maint print unwind"
        }
     }
index 4811af9c200cba3a83f5d7be759ab533cb26d3db..38fc305809ebc51e3f0139cd24457615bc677485 100644 (file)
@@ -143,8 +143,8 @@ struct s9
       int a;
       struct
       {
-        int b;
-        int c;
+       int b;
+       int c;
       };
     } d1;
   };
@@ -174,8 +174,8 @@ struct s10
       int a;
       struct
       {
-        int b[10];
-        int c;
+       int b[10];
+       int c;
       };
     } d1;
   };
index 9d2d1d29233633e63961bd24a22383b144d67199..00b7df4d324a4c46bdf7b222b666cb061453d0c9 100644 (file)
@@ -72,10 +72,10 @@ gdb_test "print &ibig.i\[0\]" " = \\(int \\*\\) $hex"
 
 gdb_test_multiple "print &cbig.c\[0\]" "" {
     -re ".\[0-9\]* = $hex \"\".*$gdb_prompt $" {
-        pass $gdb_test_name
+       pass $gdb_test_name
     }
     -re ".\[0-9\]* = $hex \"*\".*$gdb_prompt $" {
-        pass $gdb_test_name
+       pass $gdb_test_name
     }
 }
 
@@ -85,19 +85,19 @@ gdb_test "print &dbig.d\[0\]" " = \\(double \\*\\) $hex"
 
 gdb_test_multiple "print &sbig.s\[0\]" "" {
     -re ".\[0-9\]* = \\(short \\*\\) $hex.*$gdb_prompt $" {
-        pass $gdb_test_name
+       pass $gdb_test_name
     }
     -re ".\[0-9\]* = \\(short int \\*\\) $hex.*$gdb_prompt $" {
-        pass $gdb_test_name
+       pass $gdb_test_name
     }
 }
 
 gdb_test_multiple "print &lbig.l\[0\]" "" {
     -re ".\[0-9\]* = \\(long \\*\\) $hex.*$gdb_prompt $" {
-        pass $gdb_test_name
+       pass $gdb_test_name
     }
     -re ".\[0-9\]* = \\(long int \\*\\) $hex.*$gdb_prompt $" {
-        pass $gdb_test_name
+       pass $gdb_test_name
     }
 }
 
@@ -132,4 +132,3 @@ gdb_test "print ibig.i\[100\] << 2" " = 20"
 gdb_test "print sbig.s\[90\] >> 4" " = 15"
 
 gdb_test "print lbig.l\[333\] >> 6" " = 15624999"
-
index fc7bf81abdb36ee25a9dd87f379145d843524d9a..45856a7d1499c17106c8ad987debb9fe79478ad9 100644 (file)
@@ -68,7 +68,7 @@ down (int i)
   if (i == 500)
     {
       if (munmap (reserved, RESERVED_SIZE) != 0)
-        abort ();
+       abort ();
       reserved = NULL;
     }
 
index 9d0e873ad7ca4d3dd745c0454e21ac455f603c27..f1f29e82f4e9006695b59e1ee60eb95ac8f256e5 100644 (file)
@@ -30,9 +30,9 @@ if {![support_nested_function_tests]} {
 }
 
 if { [gdb_compile "${srcdir}/${subdir}/${testcase}.c" \
-                  [standard_output_file "${testcase}"] \
-                  executable \
-                  [list debug "additional_flags=-std=gnu99"]] != "" } {
+                 [standard_output_file "${testcase}"] \
+                 executable \
+                 [list debug "additional_flags=-std=gnu99"]] != "" } {
     return -1
 }
 
@@ -46,11 +46,11 @@ if {![runto_main]} {
 
 set bp_location [gdb_get_line_number "STOP" "${testcase}.c"]
 gdb_test "break ${testcase}.c:${bp_location}" \
-         "Breakpoint \[0-9\]+ at 0x\[0-9a-fA-F\]+: .*" \
-         "breakpoint to the STOP marker"
+        "Breakpoint \[0-9\]+ at 0x\[0-9a-fA-F\]+: .*" \
+        "breakpoint to the STOP marker"
 gdb_test "continue" \
-         "Breakpoint \[0-9\]+, nested .*" \
-         "continue to the STOP marker"
+        "Breakpoint \[0-9\]+, nested .*" \
+        "continue to the STOP marker"
 
 
 # Check we get correct values for both local and non-local variable references.
index 1846685a5d17037b0f10a6d0d8f9fef4229a1349..35b7865c8d10fc16e03cc7e8173d2d647f13dd09 100644 (file)
@@ -55,8 +55,8 @@ if {![runto_main]} {
 
 set bp_location [gdb_get_line_number "STOP" "${testcase}.c"]
 gdb_test "break ${testcase}.c:${bp_location}" \
-         "Breakpoint \[0-9\]+ at 0x\[0-9a-fA-F\]+: .*" \
-         "breakpoint to the STOP marker"
+        "Breakpoint \[0-9\]+ at 0x\[0-9a-fA-F\]+: .*" \
+        "breakpoint to the STOP marker"
 
 with_test_prefix "stop at first iteration" {
     gdb_test "continue" \
index 4099667fdacfbde853bcbf0552fb1c4b6309c581..3898b24591fdc20b49082d3a4cc0f884adf060e2 100644 (file)
@@ -55,11 +55,11 @@ if {![runto_main]} {
 
 set bp_location [gdb_get_line_number "STOP" "${testcase}.c"]
 gdb_test "break ${testcase}.c:${bp_location}" \
-         "Breakpoint \[0-9\]+ at 0x\[0-9a-fA-F\]+: .*" \
-         "breakpoint to the STOP marker"
+        "Breakpoint \[0-9\]+ at 0x\[0-9a-fA-F\]+: .*" \
+        "breakpoint to the STOP marker"
 gdb_test "continue" \
-         "Breakpoint \[0-9\]+, child .*" \
-         "continue to the STOP marker"
+        "Breakpoint \[0-9\]+, child .*" \
+        "continue to the STOP marker"
 
 
 # Check we get correct values for both local and non-local variable references.
index 4ff1cccd68d75c1c8b1fdd3eea285368cff4a792..a949f381445f0536c8961365ef1144d557711d19 100644 (file)
@@ -36,4 +36,3 @@ main (void)
 
   return 0;
 }
-
index 31d0234c91f3338210c7e1cfab82ea7243c4e079..d7d555ed2e9b84dfed3a25be6429529acfa75035 100644 (file)
@@ -27,10 +27,10 @@ clean_restart
 gdb_load $binfile
 
 gdb_test "ptype struct not_empty" \
-         "type = struct not_empty {$eol${sp}void \\*e;$eol${sp}void \\*u;$eol}"
+        "type = struct not_empty {$eol${sp}void \\*e;$eol${sp}void \\*u;$eol}"
 
 gdb_test "ptype struct empty" \
-         "type = struct empty {$eol$sp<no data fields>$eol}"
+        "type = struct empty {$eol$sp<no data fields>$eol}"
 
 gdb_test "ptype union empty_union" \
-         "type = union empty_union {$eol$sp<no data fields>$eol}"
+        "type = union empty_union {$eol$sp<no data fields>$eol}"
index c010fb899b832e5a2ca5b8580338de71626f919c..49d505c3472fdc114a2802a6aa914065562853b6 100644 (file)
@@ -52,7 +52,7 @@ proc setup_xfail_on_opaque_pointer {} {
 
        setup_xfail "vax-*-*" "i*86-sequent-bsd*"
        if {!$gcc_compiled} {
-               setup_xfail "alpha-*-*"
+              setup_xfail "alpha-*-*"
        }
 }
 
index e9dc9a0b586c0687aea3f986abb03e9bb0352013..cc967ef8d75817ba7ccebb8fa4b94e928da9421a 100644 (file)
@@ -31,4 +31,3 @@ int main ()
                + 'g' + 'r' + 'b' + 'x'));
 
 }
-
index 8e7e0c0ab70d72dbf957c4fc64148b0f194b0c61..1ab1cdc46b8a490ed4f363bd8ba344e36dfcf827 100644 (file)
@@ -175,16 +175,16 @@ proc simultaneous_pair { sec1 sec2 } {
 
     send_gdb "overlay list\n"
     gdb_expect {
-        -re ".*[string_to_regexp $sec1], " { set seen_sec1 1; exp_continue }
-        -re ".*[string_to_regexp $sec2], " { set seen_sec2 1; exp_continue }
-        -re ".*$gdb_prompt $" {
-            if {$seen_sec1 && $seen_sec2} {
-                pass "$pairname"
-            } else {
-                fail "$pairname"
-            }
-        }
-        timeout { fail "(timeout) $pairname" }
+       -re ".*[string_to_regexp $sec1], " { set seen_sec1 1; exp_continue }
+       -re ".*[string_to_regexp $sec2], " { set seen_sec2 1; exp_continue }
+       -re ".*$gdb_prompt $" {
+           if {$seen_sec1 && $seen_sec2} {
+               pass "$pairname"
+           } else {
+               fail "$pairname"
+           }
+       }
+       timeout { fail "(timeout) $pairname" }
     }
 }
 
@@ -265,4 +265,3 @@ gdb_expect {
     -re ".*$gdb_prompt $"                           { fail   "BT grbx" }
     timeout                                 { fail "(timeout) BT grbx" }
 }
-
index 0400a9909f8e99d8cfc204b6561b4aef0d3c841c..aa4f2c36acb414362a53410d7b48c09b950b5091 100644 (file)
@@ -80,7 +80,7 @@ gdb_test_multiple $test $test {
     }
     -i "$inferior_spawn_id" -re "pie-execl: re-exec" {
        # output from inferior
-        incr matches_found
+       incr matches_found
        if { $matches_found == 2 } {
            pass $test
        } else {
@@ -90,7 +90,7 @@ gdb_test_multiple $test $test {
     -i "$gdb_spawn_id"
     -re "executing new program.*\r\nBreakpoint \[0-9\]+,\[^\r\n\]* pie_execl_marker .*\r\n$gdb_prompt $" {
        # output from gdb
-        incr matches_found
+       incr matches_found
        if { $matches_found == 2 } {
            pass $test
        } else {
index 73380bb45bc553740199c35b738cbf83a5779ab5..adb9261bb4399f47e798de70471313a6bc94f793 100644 (file)
@@ -69,9 +69,9 @@ foreach i "${coredir}/core ${coredir}/core.coremaker.c ${binfile}.core" {
 if { $found == 0 } {
     set names [glob -nocomplain -directory $coredir core.*]
     if {[llength $names] == 1} {
-        set corefile [file join $coredir [lindex $names 0]]
-        remote_exec build "mv $corefile [standard_output_file prelink.core]"
-        set found 1
+       set corefile [file join $coredir [lindex $names 0]]
+       remote_exec build "mv $corefile [standard_output_file prelink.core]"
+       set found 1
     }
 }
 
index 0165791e3d90bf3cd86cfaca8e828a8e1fb36120..2baa3399c75bb25d61d901d6d5839d93c072c110 100644 (file)
@@ -711,7 +711,7 @@ proc test_artificial_arrays {} {
        "({{0, 1}, {2, 3}, {4, 5}}|\[Cc\]annot.*)" \
        {p int1dim[0]@2@3}
     gdb_test_escape_braces "p int1dim\[0\]${ctrlv}@FE_TWO" " = {0, 1}" \
-        {p int1dim[0]@TWO}
+       {p int1dim[0]@TWO}
     gdb_test_escape_braces "p int1dim\[0\]${ctrlv}@FE_TWO${ctrlv}@three" \
        "({{0, 1}, {2, 3}, {4, 5}}|\[Cc\]annot.*)" \
        {p int1dim[0]@TWO@three}
index 3efc0ba2be88fcbc6aa9473f330e83c3b19d70d0..8ca40f879f8dfdf6526c80e3ec20c1ee48706030 100644 (file)
@@ -22,4 +22,3 @@ main (void)
 #include "prologue-include.h"
   return 0;
 }
-
index fe67dae497580673197acf9b0b310a80032dbf59..e8d3b4a3ddea9b9acd82a8fb53656f1113e1c37f 100644 (file)
@@ -22,4 +22,3 @@ main (void)
 {
   return aaa;
 }
-
index ff20ef549a2027f93ca3c5ca2bf515a0ca955f9f..a8e9cd7eec407109eae5647470ba2db69855da20 100644 (file)
@@ -411,7 +411,7 @@ with_test_prefix "with_hex_default" {
   # Test setting default display to hex
   gdb_test_no_output "set print type hex on"
   gdb_test "show print type hex" \
-           "Display of struct members offsets and sizes in hexadecimal is on"
+          "Display of struct members offsets and sizes in hexadecimal is on"
 
   # test "ptype /o" is now equivalent to "ptype /ox"
   gdb_test "ptype /o struct abc" \
index 25dd4c912e44b978cc0e7ba849b2ba931ddc35ee..cf28aea2f51e729656154f8d0b8c9b4ffe9f3e05 100644 (file)
@@ -497,7 +497,7 @@ gdb_test "ptype nested_su.inner_union_instance" "type = union inner_union \{.*\[
 # correctly printed (at nesting level 1 and 2).
 
 gdb_test "ptype the_highest" \
-         "type = struct highest \{.*\[\r\n\] *int a;.*\[\r\n\] *struct \{.*\[\r\n\] *int b;.*\[\r\n\] *struct \{\.\.\.\} anonymous_level_2;.*\[\r\n\] *\} anonymous_level_1;.*\[\r\n\]}.*"
+        "type = struct highest \{.*\[\r\n\] *int a;.*\[\r\n\] *struct \{.*\[\r\n\] *int b;.*\[\r\n\] *struct \{\.\.\.\} anonymous_level_2;.*\[\r\n\] *\} anonymous_level_1;.*\[\r\n\]}.*"
 
 # Print the type descrption for one of the fields of variable the_highest.
 # The purpose is to verify that the type of a field that was printed above
@@ -505,8 +505,8 @@ gdb_test "ptype the_highest" \
 # nesting level is now one level less).
 
 gdb_test "ptype the_highest.anonymous_level_1" \
-         "type = struct \{.*\[\r\n\] *int b;.*\[\r\n\] *struct \{.*\[\r\n\] *int c;.*\[\r\n\] *\} anonymous_level_2;.*\[\r\n\]}.*" \
-         "ptype the_highest.anonymous_level_1"
+        "type = struct \{.*\[\r\n\] *int b;.*\[\r\n\] *struct \{.*\[\r\n\] *int c;.*\[\r\n\] *\} anonymous_level_2;.*\[\r\n\]}.*" \
+        "ptype the_highest.anonymous_level_1"
 
 get_debug_format
 
@@ -535,37 +535,37 @@ proc ptype_maybe_prototyped { id prototyped plain { overprototyped "NO-MATCH" }
     }
 
     gdb_test_multiple "ptype $id" "ptype $id" {
-        -re "type = $prototyped\[\r\n\]+$gdb_prompt $" {
-            pass "ptype $id"
-        }
-        -re "type = $plain\[\r\n\]+$gdb_prompt $" {
-            if {$gcc_compiled} { setup_xfail_format "stabs" }
-            fail "ptype $id (compiler doesn't emit prototyped types)"
-        }
-        -re "type = $overprototyped\[\r\n\]+$gdb_prompt $" {
+       -re "type = $prototyped\[\r\n\]+$gdb_prompt $" {
+           pass "ptype $id"
+       }
+       -re "type = $plain\[\r\n\]+$gdb_prompt $" {
+           if {$gcc_compiled} { setup_xfail_format "stabs" }
+           fail "ptype $id (compiler doesn't emit prototyped types)"
+       }
+       -re "type = $overprototyped\[\r\n\]+$gdb_prompt $" {
            # C23 no longer supports non-prototype function declaration, in which
            # case the overprototyped regexp is the expected one.  Simply pass
            # in all cases.
            pass "ptype $id (overprototyped)"
-        }
+       }
     }
 }
 
 ptype_maybe_prototyped "func_type" "int (*)(int (*)(int, float), float)" \
-                                   "int (*)()"
+                                  "int (*)()"
 ptype_maybe_prototyped "old_fptr" "double (*)()" "double (*)()" \
-                                  "double (*)(void)"
+                                 "double (*)(void)"
 ptype_maybe_prototyped "new_fptr" "double (*)(void)" "double (*)()"
 ptype_maybe_prototyped "fptr" "int (*)(int, float)" "int (*)()"
 ptype_maybe_prototyped "fptr2" "int *(*)(int (*)(int, float), float)" \
-                               "int *(*)()"
+                              "int *(*)()"
 ptype_maybe_prototyped "xptr" "int (*)(int (*)(), int (*)(void), int)" \
-                              "int (*)()" \
-                              "int (*)(int (*)(void), int (*)(void), int)"
+                             "int (*)()" \
+                             "int (*)(int (*)(void), int (*)(void), int)"
 ptype_maybe_prototyped "ffptr" "int (*(*)(char))(short int)" \
-                               "int (*(*)())()"
+                              "int (*(*)())()"
 ptype_maybe_prototyped "fffptr" "int (*(*(*)(char))(short int))(long int)" \
-                                "int (*(*(*)())())()"
+                               "int (*(*(*)())())()"
 
 # Test printing type of typedefs in different scopes, with same name
 # but different type.
index 5a7b08915964705c63c4686701efdfae0c5cca09..f8202679c671bfa01b2983d3320cbdec76bff99e 100644 (file)
@@ -54,8 +54,8 @@ gdb_test_multiple "${test}" "${test}" {
     }
 }
 gdb_test "show disable-randomization"        \
-         "Disabling randomization .* is off." \
-         "show disable-randomization off"
+        "Disabling randomization .* is off." \
+        "show disable-randomization off"
 
 set addr1 [address_get "randomized first address"]
 set addr2 [address_get "randomized second address"]
@@ -69,8 +69,8 @@ if {[string equal $addr1 $addr2]} {
 
 gdb_test_no_output "set disable-randomization on"
 gdb_test "show disable-randomization"        \
-         "Disabling randomization .* is on." \
-         "show disable-randomization on"
+        "Disabling randomization .* is on." \
+        "show disable-randomization on"
 
 set addr1 [address_get "fixed first address"]
 set addr2 [address_get "fixed second address"]
index d55dd1d1f568a1fd32b3377217cb6fcfc3ec85e1..7d78829574e26dc3577a56c75bc8ff17372c61e5 100644 (file)
@@ -126,4 +126,3 @@ save_vars { env(TERM) } {
        }
     }
 }
-
index 891adf53a540859496d7f2dd33a343dbbe2379a3..1db5831e3d4b01399b64821cb8e22774cd23c26a 100644 (file)
@@ -36,16 +36,16 @@ if {![runto_main]} {
 }
 
 gdb_test "break fun_three" \
-         "Breakpoint $decimal at $hex"
+        "Breakpoint $decimal at $hex"
 
 gdb_test "continue" \
-         "Breakpoint $decimal, $hex in fun_three \\(\\)"
+        "Breakpoint $decimal, $hex in fun_three \\(\\)"
 
 gdb_test "backtrace" \
-         [multi_line "#0  $hex in fun_three \\(\\)" \
-                     "#1  $hex in fun_two \\(\\)" \
-                     "#2  $hex in fun_one \\(\\)" \
-                     "#3  $hex in main \\(\\)" ]
+        [multi_line "#0  $hex in fun_three \\(\\)" \
+                    "#1  $hex in fun_two \\(\\)" \
+                    "#2  $hex in fun_one \\(\\)" \
+                    "#3  $hex in main \\(\\)" ]
 
 gdb_test_no_output "maint info symtabs" \
     "maint info symtabs no output for --readnever"
index 5676067c31db3272429bd9217fcac62c646dac3d..59935c20bdff99591441e9ba0d76eb1694aa9bec 100644 (file)
@@ -24,18 +24,18 @@ if {![runto_main]} {
 }
 
 gdb_test "break $srcfile:[gdb_get_line_number BREAK $srcfile] if n == 3" \
-         "Breakpoint $decimal at $hex: file .*recpar\\.c, line $decimal\\."
+        "Breakpoint $decimal at $hex: file .*recpar\\.c, line $decimal\\."
 
 gdb_test "continue" \
-         "Breakpoint .* foo \\(n=3\\) at .*$srcfile:$decimal.*"
+        "Breakpoint .* foo \\(n=3\\) at .*$srcfile:$decimal.*"
 
 gdb_test "backtrace" \
-         "#0 +foo \\(n=3\\).*\r\n#1.* foo \\(n=4\\).*\r\n#2.* foo \\(n=5\\).*#3.* main \\(\\).*"
+        "#0 +foo \\(n=3\\).*\r\n#1.* foo \\(n=4\\).*\r\n#2.* foo \\(n=5\\).*#3.* main \\(\\).*"
 
 gdb_test "frame 2" \
-         "#2 .* foo \\(n=5\\) .*"
+        "#2 .* foo \\(n=5\\) .*"
 
 # In the currently selected frame, n=5, and thus foo::val should be 5
 # as well.
 gdb_test "print foo::val" \
-         " = 5"
+        " = 5"
index e05f7e072a5edf78290f698f8de0fd2c2e8ddf0a..a8ad98a03a7f9fb1ca51b447d910846258aa4222 100644 (file)
@@ -142,4 +142,3 @@ recurse_tests
 # Restore the preserved old timeout value.
 set timeout $oldtimeout
 verbose "Timeout is now $timeout seconds" 2
-
index d79e205bd5956c32e5f2d98284673e5394331bdf..864e3e68e93ef5becddf2c514b84a0834bfc3316 100644 (file)
@@ -203,4 +203,3 @@ with_test_prefix "with parenthesis" {
     # 1 3 4
     gdb_test "print (x == y) < z" "$true" "print value of (x==y)<z"
 }
-
index 2465ffdc503513b3f9925fd8be100e7cfe7351f3..06c9aea57391d48d7f595b4c0df7bfc62529d0d8 100644 (file)
@@ -61,5 +61,5 @@ gdb_test "continue" "Program received signal SIGABRT.*"
 # (gdb)
 
 gdb_test "bt" \
-         ".*\[^a-zA-Z\]pause\[^a-zA-Z\].*" \
-         "pause found in backtrace"
+        ".*\[^a-zA-Z\]pause\[^a-zA-Z\].*" \
+        "pause found in backtrace"
index f02bb2343b5f4ac31e61c90e5fab3e492e8ee747..72259378de91c0cc02c214350d910ea69c528a63 100644 (file)
    (defun local-sum (n)
      (if (zerop n) (insert "0")
        (let ((j 1))
-         (while (<= j n)
-           (insert (local j))
-           (if (< j n) (insert "+"))
-           (setq j (1+ j))))))
+        (while (<= j n)
+          (insert (local j))
+          (if (< j n) (insert "+"))
+          (setq j (1+ j))))))
    (defun local-chain (n previous first-end)
      (let ((j 1))
        (while (<= j n)
         (insert "  register int " (local j)
-                 " = increment (" previous  ");")
+                " = increment (" previous  ");")
         (if first-end
           (progn
-             (insert "  /" "* " first-end " prologue *" "/")
-             (setq first-end nil)))
+            (insert "  /" "* " first-end " prologue *" "/")
+            (setq first-end nil)))
         (insert "\n")
         (setq previous (local j))
         (setq j (1+ j))))
@@ -64,8 +64,8 @@
        ;; Generate callee functions.
        (let ((i 0))
         (while (<= i limit)
-           (insert (format "/%s Returns n * %d + %d %s/\n"
-                           "*" i (/ (+ i (* i i)) 2) "*"))
+          (insert (format "/%s Returns n * %d + %d %s/\n"
+                          "*" i (/ (+ i (* i i)) 2) "*"))
           (insert "int\n")
           (insert (callee i) " (int n)\n")
           (insert "{\n")
             (insert "  register int n;\n")
             (let ((j 0))
               (while (<= j limit)
-                (insert "  n = " (callee j) " ("
-                         (if (> j 0) "n + " "")
-                        last ");\n")
-                (setq j (1+ j)))))
+                (insert "  n = " (callee j) " ("
+                        (if (> j 0) "n + " "")
+                        last ");\n")
+                (setq j (1+ j)))))
           (insert "  return n+")
           (local-sum i)
-           (insert ";\n")
+          (insert ";\n")
           (insert "}\n\n")
           (setq i (1+ i))))
 
index a19c956645bc6ba1091affe352b412963fbb45c1..b2e58088da87eabd7903b9f541b5dfa550e37e78 100644 (file)
@@ -44,22 +44,22 @@ proc restore_tests { } {
 
     for {set c 1} {$c <= $limit} {incr c} {
 
-        # Set a breakpoint at the next caller function.
-        gdb_test "tbreak caller$c" "Temporary breakpoint.*\[0-9\]*\\."
+       # Set a breakpoint at the next caller function.
+       gdb_test "tbreak caller$c" "Temporary breakpoint.*\[0-9\]*\\."
 
        # Continue to the next caller function.
        gdb_test "continue" " caller$c prologue .*" "run to caller$c"
 
        # Do each callee function.
-        for {set e 1} {$e <= $limit} {incr e} {
+       for {set e 1} {$e <= $limit} {incr e} {
 
-            gdb_test "tbreak callee$e" "Temporary breakpoint.*\[0-9\]*\\." \
+           gdb_test "tbreak callee$e" "Temporary breakpoint.*\[0-9\]*\\." \
                "caller$c calls callee$e; tbreak callee"
 
-           gdb_test "continue" " callee$e prologue .*/" \
+           gdb_test "continue" " callee$e prologue .*/" \
                "caller$c calls callee$e; continue to callee"
 
-            # Do a forced return from the callee.
+           # Do a forced return from the callee.
            set test "caller$c calls callee$e; return callee now"
 
            gdb_test "return 0" \
@@ -68,14 +68,14 @@ proc restore_tests { } {
                "Make .* return now.*y or n. $" \
                "y"
 
-            # Check that the values of the local variables are what
+           # Check that the values of the local variables are what
            # they should be.
-            for {set var 1} {$var <= $c} {incr var} {
-                set expected [expr {0x7eeb + $var}]
+           for {set var 1} {$var <= $c} {incr var} {
+               set expected [expr {0x7eeb + $var}]
                set test "caller$c calls callee$e; return restored l$var to $expected"
                set pass_pattern " = $expected"
                set unsupported_pattern " = <optimized out>"
-               gdb_test_multiple "print l$var" $test {
+               gdb_test_multiple "print l$var" $test {
                    -re "\[\r\n\]*(?:$pass_pattern)\[\r\n\]+$gdb_prompt $" {
                        pass $test
                    }
@@ -83,8 +83,8 @@ proc restore_tests { } {
                        unsupported $test
                    }
                }
-            }
-        }
+           }
+       }
     }
 
     gdb_continue_to_end "" continue 1
index e90a60b1da768dd578fdf3d0aec23c14dadef7f8..5a4fcae59f1bfc0d6983b62d6823bd0a8a0c40ba 100644 (file)
@@ -91,7 +91,7 @@ proc return2_tests { } {
     return_1 "int"
     return_1 "long"
     if {![istarget "m6811-*-*"] && ![istarget "h8300*-*"]} {
-        return_1 "long_long"
+       return_1 "long_long"
     }
     if {$allow_float_test} {
        return_1 "float"
index 103b0924b9c6a22a7045f2d49c97411842157512..177741feaf7472427a60a9f8588c956f5f35552a 100644 (file)
@@ -33,4 +33,3 @@ main (void)
   break_me (); /* Finally, try a breakpoint with commands.  */
   return 0; /* Return line. */
 }
-
index 5cd422306be38f9a5137d52ed864a68cb3aa0997..cce3441a495b383daa455d530b3e3bdd0e917500 100644 (file)
@@ -28,4 +28,3 @@ main (void)
   say_hello ();
   return 0;
 }
-
index 6abf35649616786e4879800320a7559c690b8b13..a07b4670c01d25ebd1a01a95bb373c9c8a85d099 100644 (file)
@@ -40,8 +40,8 @@ gdb_load $binfile
 # decides later to reformat sep-proc.c.
 
 gdb_test "list sep-proc.c:$location" \
-         "void.*say_hello.*" \
-         "list using location inside included file"
+        "void.*say_hello.*" \
+        "list using location inside included file"
 
 # Try the same, but this time with a breakpoint.  We need to exit
 # GDB to make sure that we havn't loaded the full symbols yet when
@@ -52,10 +52,9 @@ gdb_load $binfile
 set test "breakpoint inside included file"
 gdb_test_multiple "break sep-proc.c:$location" "$test" {
     -re "Breakpoint.*at.* file .*sep-proc.c, line .*" {
-        pass "$test"
+       pass "$test"
     }
     -re "No source file named sep-proc.c.*" {
-        fail "$test"
+       fail "$test"
     }
 }
-
index adf503509eda4175256bbee7234f2041990b5b44..9cd1d5b0ab43040e27847bfc7dd6479e9de2ff45 100644 (file)
@@ -25,7 +25,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
 }
 
 gdb_test "break -q main" \
-         "Breakpoint.*at.* file .*$srcfile, line .*"
+        "Breakpoint.*at.* file .*$srcfile, line .*"
 
 # Try deleting all breakpoints, using the "server" command prefix.
 # Prefixing the "delete breakpoints" with "server" should turn
index e6f961bae825912eebd36b91e8d43a950b51e311..947762cb15fea163e214e0cbe8c10a9e06d04aa3 100644 (file)
@@ -26,28 +26,26 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
 # Check the language after the binary has been loaded.  It should be
 # "auto; currently c".
 gdb_test "show lang" \
-         "The current source language is \"auto; currently c\"\\." \
-         "show lang after loading binary"
+        "The current source language is \"auto; currently c\"\\." \
+        "show lang after loading binary"
 
 # Now, switch the language to a specific language, instead of leaving it
 # on auto.
 gdb_test_no_output "set lang ada" \
-         "forcing the language to ada"
+        "forcing the language to ada"
 
 # Verify that the language is now "ada".
 gdb_test "show lang" \
-         "The current source language is \"ada\"\\." \
-         "show lang after switching language to ada"
+        "The current source language is \"ada\"\\." \
+        "show lang after switching language to ada"
 
 # Then, switch back to auto...
 gdb_test_no_output "set lang auto" \
-         "switching the language back to auto"
+        "switching the language back to auto"
 
 # ... And verify that the language mode is back to auto *and* that
 # the selected language is C.
 
 gdb_test "show lang" \
-         "The current source language is \"auto; currently c\"\\." \
-         "show lang after having switched back to auto"
-
-
+        "The current source language is \"auto; currently c\"\\." \
+        "show lang after having switched back to auto"
index d83023b6816a055c1a8d4e54d0c0a11b39c8254c..cd0e903351859ceb44e5abf58483474837b2cfa2 100644 (file)
@@ -114,7 +114,7 @@ proc check_type {setting expected} {
        #   "No type information for GDB functions"
        # Test 'type int', so as to make it fail if ptype is changed.
        gdb_test "ptype \$_gdb_maint_setting(\"$setting\")" \
-            "type = int"
+           "type = int"
     }
 }
 
index 62c8dc5b29cbe44c0e0e20a9607b791480060518..3f8b8db30c1e8e6e8515bd9e249f9dd98164030b 100644 (file)
@@ -28,7 +28,7 @@
 standard_testfile .c share-psymtabs-bt-2.c
 
 if { [prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" \
-         {debug}] } {
+        {debug}] } {
     untested "failed to compile"
     return -1
 }
index da7bffa2efd421f272e62280d6dafa2c76d3750f..9d428c665f7d767eeb1743c2d97590852a53f1f6 100644 (file)
@@ -38,6 +38,3 @@ int pstructarg(struct s *x)
 {
   return x->a;
 }
-
-
-
index 461a92b57f2a09814fd8d86f2b18487dc1d85e65..500ccd9f6a890814eab358c28257364717814f45 100644 (file)
@@ -56,7 +56,7 @@ proc test_one_sig {nextsig} {
        if { $thissig == "URG" } {
            setup_xfail "i*86-pc-linuxoldld-gnu" "i*86-pc-linuxaout-gnu"
        }
-        # Either Lynx or GDB screws up on SIGPRIO
+       # Either Lynx or GDB screws up on SIGPRIO
        if { $thissig == "PRIO" } {
            setup_xfail "*-*-*lynx*"
        }
@@ -74,14 +74,14 @@ proc test_one_sig {nextsig} {
     if {$missed_handler == "0"} {
        gdb_test_multiple "signal 0" "advance to $nextsig" {
            -re "Breakpoint.*gen_$nextsig.*\r\n\[0-9\]+\[ \t\]+kill \\(.*\r\n$gdb_prompt $" {
-               pass "advance to $nextsig"
-               set sig_supported 1
+               pass "advance to $nextsig"
+               set sig_supported 1
            }
            -re "Breakpoint.*gen_$nextsig.*\r\n\[0-9\]+\[ \t\]+handle_.*\r\n$gdb_prompt $" {
-               pass "advance to $nextsig"
-               set sig_supported 0
+               pass "advance to $nextsig"
+               set sig_supported 0
            }
-        }
+       }
     }
     set thissig $nextsig
 }
index 40112417460f2a5c2008700f5067a54576156bf7..fe9f2d647efc1d896a8bf00711dbdeaa27bac205 100644 (file)
@@ -30,9 +30,9 @@ gdb_load $binfile
 runto_main
 
 gdb_test "b [gdb_get_line_number "good, not blocked"]" \
-         ".*Breakpoint .*sigchld.*" "set breakpoint at success exit"
+        ".*Breakpoint .*sigchld.*" "set breakpoint at success exit"
 
 gdb_test "b [gdb_get_line_number "bad, blocked"]" \
-         ".*Breakpoint .*sigchld.*" "set breakpoint at failure exit"
+        ".*Breakpoint .*sigchld.*" "set breakpoint at failure exit"
 
 gdb_test "continue" ".*good, not blocked.*" "SIGCHLD blocked in inferior"
index c0aaa0a3ed27deb23657770aff8f528b96f38125..7cd9298ef9d7653b49c54c8d0cb17470ebdcb3b6 100644 (file)
@@ -38,8 +38,8 @@ proc test_handle_all_print {} {
     set timeout [expr {$timeout + 60}]
     verbose "Timeout is now $timeout seconds" 2
     if { ![istarget "*-*-linux*"]
-         && ( [istarget "*-*-gnu*"]
-              || [istarget "*-*-mach*"] ) } {
+        && ( [istarget "*-*-gnu*"]
+             || [istarget "*-*-mach*"] ) } {
        gdb_test_sequence "handle all print" "" \
            {
                "Signal\[       \]+Stop\[       \]+Print\[      \]+Pass to program\[    \]+Description\r\nSIGHUP\[      \]+Yes\[        \]+Yes\[        \]+Yes\[        \]+Hangup"
index c55db4aec7ecd1f1b70955793a1ec15fb41a8f33..67f2f0cc3d4db3214be7e32792f837c43c5cc5ec 100644 (file)
@@ -41,7 +41,7 @@ if { [is_address_zero_readable] } {
 # Run until we hit the SIGSEGV (or SIGBUS on some platforms).
 gdb_test "continue" \
         ".*Program received signal (SIGBUS|SIGSEGV).*bowler.*" \
-         "continue to fault"
+        "continue to fault"
 
 # Insert conditional breakpoint at faulting instruction
 gdb_test "break if 0" ".*" "set conditional breakpoint"
@@ -52,6 +52,5 @@ gdb_test "handle SIGBUS nostop print pass" ".*" "pass SIGBUS"
 
 # Step off the faulting instruction into the handler, triggering nested faults
 gdb_test "continue" \
-         ".*Program received signal (SIGBUS|SIGSEGV).*Program received signal (SIGBUS|SIGSEGV).*exited normally.*" \
+        ".*Program received signal (SIGBUS|SIGSEGV).*Program received signal (SIGBUS|SIGSEGV).*exited normally.*" \
         "run through nested faults"
-
index 3e2f162730b71e298f9d901d8277862d8129cc2d..0eef01c9e6be92117514881062f3c967ea97f83e 100644 (file)
@@ -337,4 +337,3 @@ with_test_prefix "skip delete completion" {
     test_gdb_complete_none "skip delete a1"
     test_gdb_complete_none "skip delete 2-33"
 }
-
index 5148ffb78e40bb6c6b22a1f797f46d44dcd55434..7b09561a4a7b77fd183ab8a59317e8fa947aadc9 100644 (file)
@@ -22,4 +22,3 @@ main ()
   callee ();
   return 0;
 }
-
index 35b0314d8105d95564981cfbaefa2328848a82fc..48b0267bd83ff5231d02ee3e03ac3e49008a3371 100644 (file)
@@ -180,4 +180,3 @@ gdb_test "set solib-search-path [standard_output_file ${right_lib_subdir}]" \
 test_backtrace 0
 gdb_test "p lib1_size" " = 8192"
 gdb_test "p lib2_size" " = 8192"
-
index 34c099bdbb5f1349256ebb0de5b4da26185b967a..61af4af745d6af0627391abab2b658b9f7569b5f 100644 (file)
@@ -39,4 +39,3 @@ void foo2()
   printf ("foo2 in main\n");
   return;
 }
-
index d85e06a71549577a1da83431fe602e3c9419e6eb..f594873766e651d0f9d5e2b776ebafedab23026c 100644 (file)
@@ -114,4 +114,3 @@ gdb_continue_to_breakpoint "bar" \
 gdb_test "next" \
     "" \
     "next succeeds"
-
index 96f5a7c685d1a85c8bcdae48fb9af3cbce0fa114..1a82c1875ddc61995e8ef526d5be4d1c2664e428 100644 (file)
@@ -84,7 +84,7 @@ proc test_truncated_comp_dir {} {
     # All of these pathname and directory manipulations assume
     # host == build, so do not attempt this set of tests on remote host.
     if {[is_remote host]} {
-        return
+       return
     }
 
     set working_dir [build_standard_output_file ""]
@@ -123,7 +123,7 @@ proc test_truncated_comp_dir {} {
     gdb_load $binfile
 
     if { [ishost *-*-mingw*] } {
-        gdb_test_no_output "set directories \$cdir;\$cwd"
+       gdb_test_no_output "set directories \$cdir;\$cwd"
     } else {
        gdb_test_no_output "set directories \$cdir:\$cwd"
     }
index d8b814f7fdff18ba5278842c4c67f962fe73ac71..60b0ebd36648735994e9e71aec961b32ac04066f 100644 (file)
@@ -57,10 +57,10 @@ gdb_test "source -v -s ./source-test.gdb" \
 # comes from the a command entered at the GDB prompt, and when
 # it comes from a script being sourced.
 gdb_test "source for-sure-nonexistant-file" \
-         "for-sure-nonexistant-file: No such file or directory\."
+        "for-sure-nonexistant-file: No such file or directory\."
 
 gdb_test "source source-nofile.gdb" \
-         "warning: for-sure-nonexistant-file: No such file or directory\.\[\r\n\]*source error not fatal"
+        "warning: for-sure-nonexistant-file: No such file or directory\.\[\r\n\]*source error not fatal"
 
 
 # Test commands that error out in sourced files, including in nested sourced
index c56c5f57bfc2427f05e693ba66699112277f1f0d..8fe63a8d4eb1820909b72ebb8fdb2b86e9786476 100644 (file)
@@ -52,7 +52,7 @@ proc simple_func_break_test { protection } {
     gdb_breakpoint "foo"
 
     if { $protection == "-fstack-protector-all"
-         && [test_compiler_info "gcc-*"] } {
+        && [test_compiler_info "gcc-*"] } {
        setup_xfail "gcc/88432" "*-*-linux*"
     }
     gdb_continue_to_breakpoint "foo" ".*break here.*"
index 4d8efc184f3f47a7d9cfe0af7b838bb24bb3d606..540daf3970b9e0abfec11a8adb32b57e92894759 100644 (file)
@@ -177,8 +177,8 @@ proc stap_test {exec_name {args ""}} {
     gdb_test "print \$_probe_arg0 == x" " = 1" \
     "check \$_probe_arg0 for probe user"
     gdb_test "print \$_probe_arg1" \
-       "Invalid probe argument 1 -- probe has 1 arguments available" \
-       "check \$_probe_arg1 for probe user"
+       "Invalid probe argument 1 -- probe has 1 arguments available" \
+       "check \$_probe_arg1 for probe user"
 
     # Set a breakpoint with multiple probe locations.
     gdb_test "break -pstap test:two" \
@@ -267,8 +267,8 @@ proc stap_test_no_debuginfo {exec_name {args ""}} {
     gdb_test "print \$_probe_arg0 == 23" " = 1" \
     "check \$_probe_arg0 for probe user"
     gdb_test "print \$_probe_arg1" \
-       "Invalid probe argument 1 -- probe has 1 arguments available" \
-       "check \$_probe_arg1 for probe user"
+       "Invalid probe argument 1 -- probe has 1 arguments available" \
+       "check \$_probe_arg1 for probe user"
 
     # Set a breakpoint with multiple probe locations.
     # In this scenario, we may expect more than 2 locations because of
index ea8972fae638c29003be8a02be263bf8f328a78a..59a1a59842cb7a7ef04963d27e133b3b99e40e3b 100644 (file)
@@ -39,5 +39,5 @@ if { [gdb_start_cmd] < 0 } {
 }
 
 gdb_test "" \
-         "Temporary breakpoint $decimal at $hex: file.*main \\(\\) at .*start-cpp.cc:.*" \
-         "start"
+        "Temporary breakpoint $decimal at $hex: file.*main \\(\\) at .*start-cpp.cc:.*" \
+        "start"
index 02e238a7dadce15f21425496b9ccd586ed3fa404..97be64da1b0ea852251582a5e14d32e2ef6c2be4 100644 (file)
@@ -31,5 +31,5 @@ if { [gdb_start_cmd] < 0 } {
 }
 
 gdb_test "" \
-         "main \\(\\) at .*start.c.*" \
-         "start"
+        "main \\(\\) at .*start.c.*" \
+        "start"
index f213a2fb844a6a816e6ec25b2368555a30162110..56b082cdad65deb016892bdcf7a73fdb6e793ba1 100644 (file)
@@ -24,25 +24,24 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
 }
 
 gdb_test "break *hello" \
-         "Breakpoint.*at.* file .*$srcfile, line .*" \
-         "breakpoint at first instruction of hello()"
+        "Breakpoint.*at.* file .*$srcfile, line .*" \
+        "breakpoint at first instruction of hello()"
 
 gdb_run_cmd
 gdb_test "" "Breakpoint.* hello .* at .*$srcfile:.*" "run to hello()"
 
 gdb_test "stepi" \
-         ".*" \
-         "step first instruction"
+        ".*" \
+        "step first instruction"
 
 gdb_test "bt" \
-         "#0 +(0x\[0-9a-z\]+ in )?hello .*#1 +(0x\[0-9a-z\]* in )?main.*" \
-         "backtrace after first instruction step"
+        "#0 +(0x\[0-9a-z\]+ in )?hello .*#1 +(0x\[0-9a-z\]* in )?main.*" \
+        "backtrace after first instruction step"
 
 gdb_test "stepi" \
-         ".*" \
-         "step second instruction"
+        ".*" \
+        "step second instruction"
 
 gdb_test "bt" \
-         "#0 +(0x\[0-9a-z\]+ in )?hello .*#1 +(0x\[0-9a-z\]* in )?main.*" \
-         "backtrace after second instruction step"
-
+        "#0 +(0x\[0-9a-z\]+ in )?hello .*#1 +(0x\[0-9a-z\]* in )?main.*" \
+        "backtrace after second instruction step"
index 146a0e061dbf1c058ec476eff4b299f57d77e516..3a5700a64e34ee409af88c83965d25b845950aae 100644 (file)
@@ -23,7 +23,7 @@ if { [gcc_major_version] >= 8 } {
     append cflags " -fcf-protection=none"
 }
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
-        [list debug "additional_flags=$cflags"]] } {
+       [list debug "additional_flags=$cflags"]] } {
     return -1
 }
 
@@ -48,18 +48,18 @@ proc stepi_until { current target test } {
 
     set count 0
     gdb_test_multiple "stepi" "$test" {
-        -re "$current.*$gdb_prompt $" {
-            incr count
-            if { $count < 100 } {
-                send_gdb "stepi\n"
-                exp_continue
-            } else {
-                fail "$test"
-            }
-        }
-        -re "$target.*$gdb_prompt $" {
-            pass "$test"
-        }
+       -re "$current.*$gdb_prompt $" {
+           incr count
+           if { $count < 100 } {
+               send_gdb "stepi\n"
+               exp_continue
+           } else {
+               fail "$test"
+           }
+       }
+       -re "$target.*$gdb_prompt $" {
+           pass "$test"
+       }
     }
 }
 
index 068adf52616ba9525bc466da8e20c28411762836..96071d093af6c653f815e823dd0a2d5bf00ee884 100644 (file)
@@ -35,47 +35,47 @@ set remote_linefile [gdb_remote_download host ${srcdir}/${subdir}/${linefile}]
 
 gdb_test "break f1" ".*Breakpoint 2 at .* file .*step-line.c.*"
 gdb_test "continue" \
-         "Continuing.*Breakpoint 2, f1 \\(i=4\\).*dummy \\(1, i\\);" \
+        "Continuing.*Breakpoint 2, f1 \\(i=4\\).*dummy \\(1, i\\);" \
         "continue to f1"
 gdb_test "next" \
-         ".*i = f2 \\(i\\);.*" \
+        ".*i = f2 \\(i\\);.*" \
         "next over dummy 1"
 gdb_test "next" \
-         ".*dummy \\(2, i\\);.*" \
+        ".*dummy \\(2, i\\);.*" \
         "next to dummy 2"
 gdb_test "next" \
-         ".*i = f2 \\(i\\);.*" \
+        ".*i = f2 \\(i\\);.*" \
         "next over dummy 2"
 gdb_test "step" \
-         ".*f2 \\(i=4\\).*dummy \\(4, i\\);.*" \
+        ".*f2 \\(i=4\\).*dummy \\(4, i\\);.*" \
         "step into f2"
 gdb_test "next" \
-         ".*j = i;.*" \
+        ".*j = i;.*" \
         "next over dummy 4"
 gdb_test "next" \
-         ".*dummy \\(5, i\\);.*" \
+        ".*dummy \\(5, i\\);.*" \
         "next to dummy 5"
 gdb_test "next" \
-         ".*dummy \\(6, j\\);.*" \
+        ".*dummy \\(6, j\\);.*" \
         "next to dummy 6"
 gdb_test "next" \
-         ".*j = SUCC \\(j\\);.*" \
+        ".*j = SUCC \\(j\\);.*" \
         "next over dummy 6"
 gdb_test "next" \
-         ".*dummy \\(7, i\\);.*" \
+        ".*dummy \\(7, i\\);.*" \
         "next to dummy 7"
 gdb_test "next" \
-         ".*dummy \\(8, j\\);.*" \
+        ".*dummy \\(8, j\\);.*" \
         "next to dummy 8"
 gdb_test "next" \
-         ".*j = j - i;.*" \
+        ".*j = j - i;.*" \
         "next over dummy 8"
 gdb_test "next" \
-         ".*dummy \\(9, i\\);.*" \
+        ".*dummy \\(9, i\\);.*" \
         "next to dummy 9"
 gdb_test "next" \
-         ".*dummy \\(10, j\\);.*" \
+        ".*dummy \\(10, j\\);.*" \
         "next to dummy 10"
 gdb_test "next" \
-         ".*RETURN \\(j\\);.*" \
+        ".*RETURN \\(j\\);.*" \
         "next over dummy 10"
index 7f49e9731c5e82bb4b53aa5739dac1f1498359c7..5bf49c6f32ff778b84983ec3ea62a0cf9e8a85a9 100644 (file)
@@ -6,12 +6,12 @@
 # it under the terms of the GNU General Public License as published by
 # the Free Software Foundation; either version 3 of the License, or
 # (at your option) any later version.
-# 
+#
 # This program is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU General Public License for more details.
-# 
+#
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
index c10fb8246c68e05b0a936103c97a9dac9be84b52..a3a5c43a5bc5af6482c23cfaa61a0e9b24c53965 100644 (file)
@@ -58,4 +58,3 @@ int main () {
 
    exit (0);
 }
-
index cfcf5118151bd57b8c37e6391784fb621a2ac16d..372d52ccd83b60872af0be1b1a59e1bc0db0601c 100644 (file)
@@ -67,10 +67,10 @@ gdb_test "step" ".*${decimal}.*myglob.*"   "step into"
 set test "step out"
 if { [istarget "ia64-*-*"] || [istarget "mips*-*-*"]} {
     gdb_test_multiple "finish" "$test" {
-        -re ".*${decimal}.*a.*5.*= a.*3.*$gdb_prompt $" {
+       -re ".*${decimal}.*a.*5.*= a.*3.*$gdb_prompt $" {
            pass "$test"
        }
-        -re ".*${decimal}.*callee.*INTO.*$gdb_prompt $" {
+       -re ".*${decimal}.*callee.*INTO.*$gdb_prompt $" {
            pass "$test"
        }
     }
@@ -188,7 +188,7 @@ gdb_test \
   ".*Breakpoint.* at .*" \
   "set breakpoint at call to large_struct_by_value"
 gdb_test "continue" \
-         ".*Breakpoint ${decimal},.*large_struct_by_value.*" \
+        ".*Breakpoint ${decimal},.*large_struct_by_value.*" \
         "run to pass large struct"
 set test "large struct by value"
 gdb_test_multiple "step" "$test" {
index 21f442219c42225da4e7b6bfdb7764e0d7dc9045..e91ebf4380c78afde4d2a5112e6b8f7ed2ccbbff 100644 (file)
@@ -234,4 +234,3 @@ check_field 4
 
 # WANTED: A fairly portable way of convincing the compiler to split a
 # value across memory and registers.
-
index 4850a59c872518368000f5cb53fcd59fc31d7a81..5f0fae8e093508455aeac46da25db22cfa94afb6 100644 (file)
@@ -358,10 +358,10 @@ proc test_struct_returns { n } {
     set test "value foo<n> returned; ${tests}"
     gdb_test_multiple "p/c L${n}" "${test}" {
        -re " = [foo ${n}].*${gdb_prompt} $" {
-            # This answer is okay regardless of whether GDB claims to
-            # have set the return value: if it did, then this is what
-            # we expected; and if it didn't, then any answer is okay.
-            pass "${test}"
+           # This answer is okay regardless of whether GDB claims to
+           # have set the return value: if it did, then this is what
+           # we expected; and if it didn't, then any answer is okay.
+           pass "${test}"
        }
        -re " = [any $n].*${gdb_prompt} $" {
            if {$return_value_known} {
@@ -369,8 +369,8 @@ proc test_struct_returns { n } {
                # the location of the return value.
                fail "${test}"
            } else {
-                # We expected L${n} to be set to garbage, so any
-                # answer is acceptable.
+               # We expected L${n} to be set to garbage, so any
+               # answer is acceptable.
                pass "${test}"
            }
        }
index 27c82c0457d8b24ebec481ce90fe1b00f6dd504b..556eef1d0aa1d24f3795cf34151544f69ec68421 100644 (file)
@@ -19,126 +19,124 @@ clean_restart
 # commands that do not require the presence of an executable.
 
 gdb_test_no_output "set confirm off" \
-         "deactivate GDB's confirmation interface"
+        "deactivate GDB's confirmation interface"
 
 # Clear any substitution rules that are available by default due
 # to GDB being configured with --with-relocated-sources.
 
 gdb_test_no_output "unset substitute-path" \
-         "remove default substitution rules"
+        "remove default substitution rules"
 
 gdb_test "show substitute-path" \
-         "List of all source path substitution rules:" \
-         "show substitute-path, no rule entered yet"
+        "List of all source path substitution rules:" \
+        "show substitute-path, no rule entered yet"
 
 gdb_test "show substitute-path from" \
-         "Source path substitution rule matching `from':" \
-         "show substitute-path from, no rule entered yet"
+        "Source path substitution rule matching `from':" \
+        "show substitute-path from, no rule entered yet"
 
 gdb_test "show substitute-path too many" \
-         "Too many arguments in command" \
-         "show substitute-path, too many arguments"
+        "Too many arguments in command" \
+        "show substitute-path, too many arguments"
 
 gdb_test "unset substitute-path from" \
-         "No substitution rule defined for `from'" \
-         "unset substitute-path from, no rule entered yet"
+        "No substitution rule defined for `from'" \
+        "unset substitute-path from, no rule entered yet"
 
 gdb_test_no_output "unset substitute-path" \
-         "unset substitute-path, no rule entered yet"
+        "unset substitute-path, no rule entered yet"
 
 gdb_test "unset substitute-path from" \
-         "No substitution rule defined for `from'" \
-         "unset substitute-path from, after unset substitute-path"
+        "No substitution rule defined for `from'" \
+        "unset substitute-path from, after unset substitute-path"
 
 gdb_test "unset substitute-path from to" \
-         "Incorrect usage, too many arguments in command" \
-         "unset substitute-path, too many arguments"
+        "Incorrect usage, too many arguments in command" \
+        "unset substitute-path, too many arguments"
 
 gdb_test "set substitute-path too many arguments" \
-         "Incorrect usage, too many arguments in command" \
-         "set substitute-path, too many arguments"
+        "Incorrect usage, too many arguments in command" \
+        "set substitute-path, too many arguments"
 
 gdb_test "set substitute-path missing" \
-         "Incorrect usage, too few arguments in command" \
-         "set substitute-path, too few arguments"
+        "Incorrect usage, too few arguments in command" \
+        "set substitute-path, too few arguments"
 
 gdb_test "set substitute-path '' to" \
-         "First argument must be at least one character long" \
-         "set substitute-path, first argument is empty string"
+        "First argument must be at least one character long" \
+        "set substitute-path, first argument is empty string"
 
 gdb_test_no_output "set substitute-path from to" \
-         "add from -> to substitution rule"
+        "add from -> to substitution rule"
 
 gdb_test_no_output "set substitute-path from1 to1/" \
-         "add from1 -> to1 substitution rule"
+        "add from1 -> to1 substitution rule"
 
 gdb_test_no_output "set substitute-path source destination" \
-         "add source -> destination substitution rule"
+        "add source -> destination substitution rule"
 
 gdb_test_no_output "set substitute-path depuis/ vers" \
-         "add depuis -> vers substitution rule"
+        "add depuis -> vers substitution rule"
 
 gdb_test_no_output "set substitute-path empty ''" \
-         "add substitution rule to empty string"
+        "add substitution rule to empty string"
 
 gdb_test "show substitute-path" \
-         "List of all source path substitution rules:\r\n +`from' -> `to'.\r\n +`from1' -> `to1'.\r\n +`source' -> `destination'.\r\n\ +`depuis' -> `vers'.\r\n +`empty' -> `'." \
-         "show substitute-path after all paths added"
+        "List of all source path substitution rules:\r\n +`from' -> `to'.\r\n +`from1' -> `to1'.\r\n +`source' -> `destination'.\r\n\ +`depuis' -> `vers'.\r\n +`empty' -> `'." \
+        "show substitute-path after all paths added"
 
 gdb_test "show substitute-path from" \
-         "Source path substitution rule matching `from':\r\n +`from' -> `to'." \
-         "show substitute-path from, after all paths added"
+        "Source path substitution rule matching `from':\r\n +`from' -> `to'." \
+        "show substitute-path from, after all paths added"
 
 gdb_test "show substitute-path depuis" \
-         "Source path substitution rule matching `depuis':\r\n +`depuis' -> `vers'." \
-         "show substitute-path depuis, after all paths added"
+        "Source path substitution rule matching `depuis':\r\n +`depuis' -> `vers'." \
+        "show substitute-path depuis, after all paths added"
 
 gdb_test "show substitute-path from/path" \
-         "Source path substitution rule matching `from/path':\r\n +`from' -> `to'." \
-         "show substitute-path from/path, after all paths added"
+        "Source path substitution rule matching `from/path':\r\n +`from' -> `to'." \
+        "show substitute-path from/path, after all paths added"
 
 gdb_test "show substitute-path from_a_bad_path" \
-         "Source path substitution rule matching `from_a_bad_path':" \
-         "show substitute-path from_a_bad_path, after all paths added"
+        "Source path substitution rule matching `from_a_bad_path':" \
+        "show substitute-path from_a_bad_path, after all paths added"
 
 gdb_test "show substitute-path garbage" \
-         "Source path substitution rule matching `garbage':" \
-         "show substitute-path garbage, after all paths added"
+        "Source path substitution rule matching `garbage':" \
+        "show substitute-path garbage, after all paths added"
 
 gdb_test_no_output "unset substitute-path from" \
-         "unset substitute-path from"
+        "unset substitute-path from"
 
 gdb_test "show substitute-path from" \
-         "Source path substitution rule matching `from':" \
-         "show substitute-path from, after unsetting it"
+        "Source path substitution rule matching `from':" \
+        "show substitute-path from, after unsetting it"
 
 gdb_test "show substitute-path" \
-         "List of all source path substitution rules:\r\n +`from1' -> `to1'.\r\n +`source' -> `destination'.\r\n\ +`depuis' -> `vers'.\r\n +`empty' -> `'." \
-         "show substitute-path after from rule removed"
+        "List of all source path substitution rules:\r\n +`from1' -> `to1'.\r\n +`source' -> `destination'.\r\n\ +`depuis' -> `vers'.\r\n +`empty' -> `'." \
+        "show substitute-path after from rule removed"
 
 gdb_test "unset substitute-path from" \
-         "No substitution rule defined for `from'" \
-         "unset substitute-path from after the rule was removed"
+        "No substitution rule defined for `from'" \
+        "unset substitute-path from after the rule was removed"
 
 gdb_test_no_output "unset substitute-path depuis" \
-         "unset substitute-path depuis (middle of list)"
+        "unset substitute-path depuis (middle of list)"
 
 gdb_test "show substitute-path" \
-         "List of all source path substitution rules:\r\n +`from1' -> `to1'.\r\n +`source' -> `destination'.\r\n\ +`empty' -> `'." \
-         "show substitute-path after depuis rule removed"
+        "List of all source path substitution rules:\r\n +`from1' -> `to1'.\r\n +`source' -> `destination'.\r\n\ +`empty' -> `'." \
+        "show substitute-path after depuis rule removed"
 
 gdb_test_no_output "unset substitute-path empty" \
-         "unset substitute-path empty (end of list)"
+        "unset substitute-path empty (end of list)"
 
 gdb_test "show substitute-path" \
-         "List of all source path substitution rules:\r\n +`from1' -> `to1'.\r\n +`source' -> `destination'." \
-         "show substitute-path after empty rule removed"
+        "List of all source path substitution rules:\r\n +`from1' -> `to1'.\r\n +`source' -> `destination'." \
+        "show substitute-path after empty rule removed"
 
 gdb_test_no_output "unset substitute-path" \
-         "remove all remaining substitution rules"
+        "remove all remaining substitution rules"
 
 gdb_test "show substitute-path" \
-         "List of all source path substitution rules:" \
-         "show substitute-path after all remaining rules removed"
-
-
+        "List of all source path substitution rules:" \
+        "show substitute-path after all remaining rules removed"
index 3e27fa1a41a19eba2d960078710ea482029da9a6..d3e745b6d54815554752aef9c8d24f0398920ee2 100644 (file)
@@ -3,8 +3,8 @@
 
 int sum(int *list, int low, int high)
     {
-        int i = 0, s = 0;      /* stop-in-sum */
-        for (i = low; i <= high; i++)
-            s += list[i];
-        return(s);
+       int i = 0, s = 0;       /* stop-in-sum */
+       for (i = low; i <= high; i++)
+           s += list[i];
+       return(s);
     }
index 76bc004471ec623f63f8a3da5ad9f4c6fc495768..545d4bc58923f835537585e598be381fed3ab67b 100644 (file)
@@ -49,18 +49,18 @@ proc compare_gdb_and_inferior_settings { t } {
 
     gdb_test "info terminal" \
     [multi_line "Inferior's terminal status .currently saved by GDB.:" \
-                "File descriptor flags = .*" \
-                "Process group = $decimal" \
-                "c_iflag = ${termios(c_iflag)}, c_oflag = ${termios(c_oflag)}," \
-                "c_cflag = ${termios(c_cflag)}, c_lflag = ${termios(c_lflag)}.*" ]
+               "File descriptor flags = .*" \
+               "Process group = $decimal" \
+               "c_iflag = ${termios(c_iflag)}, c_oflag = ${termios(c_oflag)}," \
+               "c_cflag = ${termios(c_cflag)}, c_lflag = ${termios(c_lflag)}.*" ]
 }
 
 if {[target_info gdb_protocol] == ""} {
     # Record the initial terminal settings.  Verify that GDB's version of the
     # inferior's terminal settings is right.
     with_test_prefix "initial" {
-        array set termios1 [read_term_settings_from_inferior]
-        compare_gdb_and_inferior_settings [array get termios1]
+       array set termios1 [read_term_settings_from_inferior]
+       compare_gdb_and_inferior_settings [array get termios1]
     }
 
     # Continue until after the inferior removes ECHO from its terminal settings.
@@ -69,12 +69,12 @@ if {[target_info gdb_protocol] == ""} {
     # After the inferior has changed its terminal settings, check that GDB's
     # saved version reflects the new settings correctly.
     with_test_prefix "post tcsetattr" {
-        array set termios2 [read_term_settings_from_inferior]
-        compare_gdb_and_inferior_settings [array get termios2]
+       array set termios2 [read_term_settings_from_inferior]
+       compare_gdb_and_inferior_settings [array get termios2]
 
-        # Make sure that the current settings are different than the initial
-        # settings... otherwise this test is meaningless.
-        gdb_assert {${termios1(c_lflag)} != ${termios2(c_lflag)}}
+       # Make sure that the current settings are different than the initial
+       # settings... otherwise this test is meaningless.
+       gdb_assert {${termios1(c_lflag)} != ${termios2(c_lflag)}}
     }
 
     # Continue again...
@@ -83,12 +83,12 @@ if {[target_info gdb_protocol] == ""} {
     # ... and verify again, to validate that when resuming, GDB restored the
     # inferior's terminal settings correctly.
     with_test_prefix "after last resume" {
-        array set termios3 [read_term_settings_from_inferior]
-        compare_gdb_and_inferior_settings [array get termios3]
-        gdb_assert {${termios2(c_iflag)} == ${termios3(c_iflag)}}
-        gdb_assert {${termios2(c_oflag)} == ${termios3(c_oflag)}}
-        gdb_assert {${termios2(c_cflag)} == ${termios3(c_cflag)}}
-        gdb_assert {${termios2(c_lflag)} == ${termios3(c_lflag)}}
+       array set termios3 [read_term_settings_from_inferior]
+       compare_gdb_and_inferior_settings [array get termios3]
+       gdb_assert {${termios2(c_iflag)} == ${termios3(c_iflag)}}
+       gdb_assert {${termios2(c_oflag)} == ${termios3(c_oflag)}}
+       gdb_assert {${termios2(c_cflag)} == ${termios3(c_cflag)}}
+       gdb_assert {${termios2(c_lflag)} == ${termios3(c_lflag)}}
     }
 } else {
     # While only native targets save terminal status, we still test
index 7dc35fc4409444aef4d0a465892068287afa5ecd..8e5707068bcb645b562923748373a6045274b5d5 100644 (file)
@@ -41,4 +41,3 @@ int main (int argc, char **argv, char **envp)
     printf ("Program found %d variables starting with TEST_GDB\n", j);
     return 0; /* set breakpoint here.  */
 }
-
index a4e626e56f1876ad37743701c1d8af87506e2703..1768c5aab4be5ae1f57594211c61cf21da5ffe7b 100644 (file)
@@ -72,4 +72,3 @@ delete_breakpoints
 gdb_test "until marker3" \
        "($hex in |)main.*argc.*argv.*envp.*at.*${srcfile}:($bp_location20.*marker2 \\(43\\)|$bp_location21.*marker3 \\(.stack., .trace.\\)).*" \
        "until func, not called by current frame"
-
index a11612398ee0afa5a2b750d359caad3a2b5f4457..e3413adf9c86b4c5a4468bacd0a3aa8c196baeb3 100644 (file)
@@ -38,9 +38,9 @@ gdb_test "print short_vla" " = \\\{0, 2, 4, 6, 8\\\}"
 gdb_test "print unsigned_short_vla" " = \\\{0, 2, 4, 6, 8\\\}"
 gdb_test "print unsigned_char_vla" " = \"AAAAA\""
 gdb_test "print foo_vla" \
-         "\\\{\\\{a = 0\\\}, \\\{a = 2\\\}, \\\{a = 4\\\}, \\\{a = 6\\\}, \\\{a = 8\\\}\\\}"
+        "\\\{\\\{a = 0\\\}, \\\{a = 2\\\}, \\\{a = 4\\\}, \\\{a = 6\\\}, \\\{a = 8\\\}\\\}"
 gdb_test "print bar_vla" \
-         "\\\{\\\{x = 0, y = \\\{a = 0\\\}\\\}, \\\{x = 2, y = \\\{a = 2\\\}\\\}, \\\{x = 4, y = \\\{a = 4\\\}\\\}, \\\{x = 6, y = \\\{a = 6\\\}\\\}, \\\{x = 8, y = \\\{a = 8\\\}\\\}\\\}"
+        "\\\{\\\{x = 0, y = \\\{a = 0\\\}\\\}, \\\{x = 2, y = \\\{a = 2\\\}\\\}, \\\{x = 4, y = \\\{a = 4\\\}\\\}, \\\{x = 6, y = \\\{a = 6\\\}\\\}, \\\{x = 8, y = \\\{a = 8\\\}\\\}\\\}"
 
 # Check whatis of VLA's.
 gdb_test "whatis int_vla" "type = int \\\[5\\\]"
@@ -49,11 +49,11 @@ gdb_test "whatis double_vla" "type = double \\\[5\\\]"
 gdb_test "whatis float_vla" "type = float \\\[5\\\]"
 gdb_test "whatis long_vla" "type = long( int)? \\\[5\\\]"
 gdb_test "whatis unsigned_long_vla" \
-         "type = (long unsigned int|unsigned long) \\\[5\\\]"
+        "type = (long unsigned int|unsigned long) \\\[5\\\]"
 gdb_test "whatis char_vla" "type = char \\\[5\\\]"
 gdb_test "whatis short_vla" "type = short( int)? \\\[5\\\]"
 gdb_test "whatis unsigned_short_vla" \
-         "type = (short unsigned int|unsigned short) \\\[5\\\]"
+        "type = (short unsigned int|unsigned short) \\\[5\\\]"
 gdb_test "whatis unsigned_char_vla" "type = unsigned char \\\[5\\\]"
 gdb_test "whatis foo_vla" "type = struct foo \\\[5\\\]"
 gdb_test "whatis bar_vla" "type = BAR \\\[5\\\]"
@@ -71,44 +71,44 @@ gdb_test "ptype unsigned_short_vla" "type = unsigned short \\\[5\\\]"
 gdb_test "ptype unsigned_char_vla" "type = unsigned char \\\[5\\\]"
 gdb_test "ptype foo_vla" "type = struct foo {\r\n\\s+int a;\r\n} \\\[5\\\]"
 gdb_test "ptype bar_vla" \
-         "type = struct bar {\r\n\\s+int x;\r\n\\s+struct foo y;\r\n} \\\[5\\\]"
+        "type = struct bar {\r\n\\s+int x;\r\n\\s+struct foo y;\r\n} \\\[5\\\]"
 
 # Check the size of the VLA's.
 gdb_breakpoint [gdb_get_line_number "break_end_of_vla_factory"]
 gdb_continue_to_breakpoint "break_end_of_vla_factory"
 gdb_test "print int_size == sizeof(int_vla)" " = 1" "size of int_vla"
 gdb_test "print uint_size == sizeof(unsigned_int_vla)" " = 1" \
-         "size of unsigned_int_vla"
+        "size of unsigned_int_vla"
 gdb_test "print double_size == sizeof(double_vla)" " = 1" \
-         "size of double_vla"
+        "size of double_vla"
 gdb_test "print float_size == sizeof(float_vla)" " = 1" \
-         "size of float_vla"
+        "size of float_vla"
 gdb_test "print long_size == sizeof(long_vla)" " = 1" \
-         "size of long_vla"
+        "size of long_vla"
 gdb_test "print char_size == sizeof(char_vla)" " = 1" \
-         "size of char_vla"
+        "size of char_vla"
 gdb_test "print short_size == sizeof(short_vla)" " = 1" \
-         "size of short_vla"
+        "size of short_vla"
 gdb_test "print ushort_size == sizeof(unsigned_short_vla)" " = 1" \
-         "size of unsigned_short_vla"
+        "size of unsigned_short_vla"
 gdb_test "print uchar_size == sizeof(unsigned_char_vla)" " = 1" \
-         "size of unsigned_char_vla"
+        "size of unsigned_char_vla"
 gdb_test "print foo_size == sizeof(foo_vla)" " = 1" "size of foo_vla"
 gdb_test "print bar_size == sizeof(bar_vla)" " = 1" "size of bar_vla"
 
 # Check side effects for sizeof argument.
 set sizeof_int [get_sizeof "int" 4]
 gdb_test_no_output  "set variable int_vla\[0\] = 42" \
-                    "set variable int_vla\[0\] = 42"
+                   "set variable int_vla\[0\] = 42"
 
 gdb_test "print sizeof (++int_vla\[0\])" " = ${sizeof_int}"
 gdb_test "print int_vla\[0\]" " = 42" \
-         "print int_vla\[0\] - sizeof no side effects"
+        "print int_vla\[0\] - sizeof no side effects"
 
 gdb_test "ptype ++int_vla\[0\]" "type = int"
 gdb_test "print int_vla\[0\]" " = 42" \
-         "print int_vla\[0\] - ptype no side effects"
+        "print int_vla\[0\] - ptype no side effects"
 
 gdb_test "whatis ++int_vla\[0\]" "type = int"
 gdb_test "print int_vla\[0\]" " = 42" \
-         "print int_vla\[0\] - whatis no side effects"
+        "print int_vla\[0\] - whatis no side effects"
index 316043d55f64960727f7128afb25db5ce30b056d..2393ab7733c950d989ebcc10f2f2471109359c1e 100644 (file)
@@ -89,4 +89,3 @@ foreach {test_prefix options} $test_matrix {
        vla_optimized_out $test_prefix $options
     }
 }
-
index 158ae356a2c15260983f5083017836cd17a43ccc..aff9ac00f2d2ffb6fdfc9509e26e591842934db8 100644 (file)
@@ -36,19 +36,19 @@ set sizeof_vla [expr {10 * $sizeof_int}]
 
 gdb_test "print sizeof (vla1\[i++\])" " = ${sizeof_int}"
 gdb_test "print i" " = 0" \
-         "print i - sizeof no side effects"
+        "print i - sizeof no side effects"
 
 gdb_test "print sizeof (++vla1\[0\])" " = ${sizeof_int}"
 gdb_test "print vla1\[0\]" " = 10" \
-         "print vla1\[0\] - sizeof no side effects"
+        "print vla1\[0\] - sizeof no side effects"
 
 gdb_test "ptype ++vla1\[0\]" "type = int"
 gdb_test "print vla1\[0\]" " = 10" \
-         "print vla1\[0\] - ptype no side effects"
+        "print vla1\[0\] - ptype no side effects"
 
 gdb_test "whatis ++vla1\[0\]" "type = int"
 gdb_test "print vla1\[0\]" " = 10" \
-         "print vla1\[0\] - whatis no side effects"
+        "print vla1\[0\] - whatis no side effects"
 
 
 gdb_test "print sizeof (vla2\[i++\])" " = ${sizeof_vla}"
@@ -59,7 +59,7 @@ gdb_test "print sizeof (vla2\[i++ + sizeof(j++)\])" " = ${sizeof_vla}"
 gdb_test "print i" " = 2" \
         "print i - sizeof with side effects, 2"
 gdb_test "print j" " = 0" \
-         "print j - sizeof with no side effects"
+        "print j - sizeof with no side effects"
 
 gdb_test "ptype vla2\[i++\]" "type = int \\\[10\\\]"
 gdb_test "print i" " = 2" \
@@ -69,7 +69,7 @@ gdb_test "ptype vla2\[i++ + sizeof(j++)\]" "type = int \\\[10\\\]"
 gdb_test "print i" " = 2" \
         "print i - ptype with side effects, 2"
 gdb_test "print j" " = 0" \
-         "print j - ptype with no side effects"
+        "print j - ptype with no side effects"
 
 gdb_test "whatis vla2\[i++\]" "type = int \\\[10\\\]"
 gdb_test "print i" " = 2" \
@@ -79,4 +79,4 @@ gdb_test "whatis vla2\[i++ + sizeof(j++)\]" "type = int \\\[10\\\]"
 gdb_test "print i" " = 2" \
         "print i - whatis with side effects, 2"
 gdb_test "print j" " = 0" \
-         "print j - whatis with no side effects"
+        "print j - whatis with no side effects"
index 87230cf0f98393dfeacd545957382337a57fb236..f58f2085326c9d3071b66abee59b6dcaf7068ca4 100644 (file)
@@ -51,9 +51,9 @@ int main () {
 
     for (i = 0; i < NUM; i++)
       {
-        res = pthread_create (&threads[i],
-                             NULL,
-                             thread_function,
+       res = pthread_create (&threads[i],
+                            NULL,
+                            thread_function,
                             (void *) i);
       }
 
@@ -96,4 +96,3 @@ void *thread_function (void *arg) {
 
     pthread_exit (NULL);
 }
-
index e1b54c0e4fbc87aa6b28c8e3456be60de1ac2bb1..0c6d828e5d4622d79babd7ffeef8cdabb0e3a361 100644 (file)
@@ -101,4 +101,3 @@ for {set i 1} {$i <= 5} {incr i} {
     }
     gdb_test "thread" ".*Current thread is $thread_num .*" $check
 }
-
index 7a5a96aac586adc8b9059ef659b104a14ad12098..fec74dc9ff7fc326d8042ddaf5baea411b65d735 100644 (file)
@@ -457,28 +457,28 @@ proc test_complex_watchpoint {} {
        gdb_test "cont" "Continuing.*Breakpoint.*marker5 \\(\\).*" \
            "did not trigger wrong watchpoint"
 
-        # Test watches of things declared locally in a function.
-        # In particular, test that a watch of stack-based things
-        # is deleted when the stack-based things go out of scope.
-        #
+       # Test watches of things declared locally in a function.
+       # In particular, test that a watch of stack-based things
+       # is deleted when the stack-based things go out of scope.
+       #
        gdb_test_no_output "disable" "disable in test_complex_watchpoint, first time"
-        gdb_test "break marker6" ".*Breakpoint.*"
-        gdb_test "cont" "Continuing.*Breakpoint.*marker6 \\(\\).*" \
-            "continue to marker6"
+       gdb_test "break marker6" ".*Breakpoint.*"
+       gdb_test "cont" "Continuing.*Breakpoint.*marker6 \\(\\).*" \
+           "continue to marker6"
        gdb_breakpoint [gdb_get_line_number "func2 breakpoint here"]
        gdb_continue_to_breakpoint "func2 breakpoint here, first time"
 
-        # Test a watch of a single stack-based variable, whose scope
-        # is the function we're now in.  This should auto-delete when
-        # execution exits the scope of the watchpoint.
-        #
+       # Test a watch of a single stack-based variable, whose scope
+       # is the function we're now in.  This should auto-delete when
+       # execution exits the scope of the watchpoint.
+       #
        gdb_test "watch local_a" \
            "^(?:Hardware w|W)atchpoint $::decimal: local_a" \
            "set local watch"
-        gdb_test "cont" "\[Ww\]atchpoint.*local_a.*" "trigger local watch"
+       gdb_test "cont" "\[Ww\]atchpoint.*local_a.*" "trigger local watch"
 
        set test "self-delete local watch"
-        gdb_test_multiple "cont" $test {
+       gdb_test_multiple "cont" $test {
            -re "Continuing.*\[Ww\]atchpoint .* deleted because the program has left the block in.*which its expression is valid.*\r\n$gdb_prompt $" {
                pass $test
            }
@@ -498,43 +498,43 @@ proc test_complex_watchpoint {} {
        }
 
        gdb_continue_to_breakpoint "func2 breakpoint here, second time"
-        # We should be in "func2" again now.  Test a watch of an
-        # expression which includes both a stack-based local and
-        # something whose scope is larger than this invocation
-        # of "func2".  This should also auto-delete.
-        #
+       # We should be in "func2" again now.  Test a watch of an
+       # expression which includes both a stack-based local and
+       # something whose scope is larger than this invocation
+       # of "func2".  This should also auto-delete.
+       #
        gdb_test "watch local_a + ival5" \
            "^(?:Hardware w|W)atchpoint $::decimal: local_a . ival5" \
            "set partially local watch"
-        gdb_test "cont" "Continuing.*\[Ww\]atchpoint .*: local_a . ival5.*" \
-                 "trigger1 partially local watch"
-        gdb_test "cont" "Continuing.*\[Ww\]atchpoint .*: local_a . ival5.*" \
-                 "trigger2 partially local watch"
-        gdb_test "cont" "Continuing.*\[Ww\]atchpoint .* deleted because the program has left the block in.*which its expression is valid.*" \
-                 "self-delete partially local watch"
-
-        # We should be in "func2" again now.  Test a watch of a
-        # static (non-stack-based) local.  Since this has scope
-        # across any invocations of "func2", it should not auto-
-        # delete.
-        #
+       gdb_test "cont" "Continuing.*\[Ww\]atchpoint .*: local_a . ival5.*" \
+                "trigger1 partially local watch"
+       gdb_test "cont" "Continuing.*\[Ww\]atchpoint .*: local_a . ival5.*" \
+                "trigger2 partially local watch"
+       gdb_test "cont" "Continuing.*\[Ww\]atchpoint .* deleted because the program has left the block in.*which its expression is valid.*" \
+                "self-delete partially local watch"
+
+       # We should be in "func2" again now.  Test a watch of a
+       # static (non-stack-based) local.  Since this has scope
+       # across any invocations of "func2", it should not auto-
+       # delete.
+       #
        gdb_continue_to_breakpoint "func2 breakpoint here, third time"
        gdb_test "watch static_b" \
            "^(?:Hardware w|W)atchpoint $::decimal: static_b" \
-                 "set static local watch"
-        gdb_test "cont" "Continuing.*\[Ww\]atchpoint .*: static_b.*" \
-                 "trigger static local watch"
-        gdb_test "cont" "Continuing.*marker6 \\(\\).*" \
-                 "continue after trigger static local watch"
-        gdb_test "info break" ".*watchpoint.*static_b.*" \
-                 "static local watch did not self-delete"
-
-        # We should be in "recurser" now.  Test a watch of a stack-
-        # based local.  Symbols mentioned in a watchpoint are bound
-        # at watchpoint-creation.  Thus, a watch of a stack-based
-        # local to a recursing function should be bound only to that
-        # one invocation, and should not trigger for other invocations.
-        #
+                "set static local watch"
+       gdb_test "cont" "Continuing.*\[Ww\]atchpoint .*: static_b.*" \
+                "trigger static local watch"
+       gdb_test "cont" "Continuing.*marker6 \\(\\).*" \
+                "continue after trigger static local watch"
+       gdb_test "info break" ".*watchpoint.*static_b.*" \
+                "static local watch did not self-delete"
+
+       # We should be in "recurser" now.  Test a watch of a stack-
+       # based local.  Symbols mentioned in a watchpoint are bound
+       # at watchpoint-creation.  Thus, a watch of a stack-based
+       # local to a recursing function should be bound only to that
+       # one invocation, and should not trigger for other invocations.
+       #
        with_test_prefix "local_x" {
            gdb_test "tbreak recurser" ".*breakpoint.*"
            gdb_test "cont" "Continuing.*recurser.*"
@@ -548,8 +548,8 @@ proc test_complex_watchpoint {} {
                "self-delete local watch in recursive call"
        }
 
-        # Repeat the preceding test, but this time use "recurser::local_x" as
-        # the variable to track.
+       # Repeat the preceding test, but this time use "recurser::local_x" as
+       # the variable to track.
        with_test_prefix "recurser::local_x" {
            gdb_test "cont" "Continuing.*marker6.*" "continue to marker6"
            gdb_test "tbreak recurser" ".*breakpoint.*"
@@ -661,8 +661,8 @@ proc test_wide_location_1 {} {
     # Platforms where the target can't watch such a large region
     # should clear hw_expected below.
     if { $no_hw || !$allow_hw_watchpoint_tests_p
-         || [istarget arm*-*-*]
-         || ([istarget powerpc*-*-*] && ![is_lp64_target])} {
+        || [istarget arm*-*-*]
+        || ([istarget powerpc*-*-*] && ![is_lp64_target])} {
        set hw_expected 0
     } else {
        set hw_expected 1
@@ -709,8 +709,8 @@ proc test_wide_location_2 {} {
     # Platforms where the target can't watch such a large region
     # should clear hw_expected below.
     if { $no_hw || !$allow_hw_watchpoint_tests_p
-         || [istarget arm*-*-*]
-         || [istarget powerpc*-*-*]} {
+        || [istarget arm*-*-*]
+        || [istarget powerpc*-*-*]} {
        set hw_expected 0
     } else {
        set hw_expected 1
@@ -855,7 +855,7 @@ proc test_no_hw_watchpoints {} {
 
     gdb_test "watch ival3 if  count > 1  thread 1 " \
        "watch ival3 if  count > 1  thread 1 \r\nWatchpoint \[0-9\]*: ival3.*" \
-         "set slow condition watch w/thread"
+        "set slow condition watch w/thread"
 
     gdb_test_no_output "delete \$bpnum" "delete watch w/condition and thread"
 
@@ -872,7 +872,7 @@ proc test_no_hw_watchpoints {} {
 
     # Re-enable hardware watchpoints if necessary.
     if {$allow_hw_watchpoint_tests_p} {
-        gdb_test_no_output "set can-use-hw-watchpoints 1" ""
+       gdb_test_no_output "set can-use-hw-watchpoints 1" ""
     }
 }
 
index 0d213151bb75881843bc0db1e9068c366675b472..41f2b5c46a2db140ca8b7f19bc237b3a1bc93344 100644 (file)
@@ -38,17 +38,17 @@ with_test_prefix "before inferior start" {
     # hardware watchpoint.
     gdb_test_no_output "set can-use-hw-watchpoints 0" ""
     gdb_test "watch ival1" "Watchpoint \[0-9\]+: ival1" \
-        "create watchpoint"
+       "create watchpoint"
 
     # The next tests are written to match the current state of gdb: access
     # and read watchpoints require hardware watchpoint support, with this
     # turned off these can't be created.
     gdb_test "awatch ival1" \
-        "Can't set read/access watchpoint when hardware watchpoints are disabled." \
-        "create access watchpoint"
+       "Can't set read/access watchpoint when hardware watchpoints are disabled." \
+       "create access watchpoint"
     gdb_test "rwatch ival1" \
-        "Can't set read/access watchpoint when hardware watchpoints are disabled." \
-        "create read watchpoint"
+       "Can't set read/access watchpoint when hardware watchpoints are disabled." \
+       "create read watchpoint"
 }
 
     # This will turn hardware watchpoints back on and delete the watchpoint
@@ -58,7 +58,7 @@ with_test_prefix "before inferior start" {
 
     # Disable hardware watchpoints if necessary.
     if {!$allow_hw_watchpoint_tests_p} {
-        gdb_test_no_output "set can-use-hw-watchpoints 0" ""
+       gdb_test_no_output "set can-use-hw-watchpoints 0" ""
     }
 
     runto_main
index 3863614eecd4f53cc7e6c2a4b3af508432e469f4..6fee56b107cdaf64b902d61a27896640eb3a3a42 100644 (file)
@@ -47,4 +47,3 @@ main (void)
   do_nothing (difficile);
   do_nothing (mixed);
 }
-
index 56efd291bd9c6edf41b72bcd9523fa6a6b654b75..035cb8eeca09cf3f421ae8c097f2aa9e78c47ef8 100644 (file)
@@ -26,8 +26,8 @@ set opaque_testfile wrong_frame_bt_full-opaque
 set opaque_objfile [standard_output_file "$opaque_testfile.o"]
 
 if {[gdb_compile "${srcdir}/${subdir}/$opaque_testfile.c" \
-                 $opaque_objfile \
-                 object {}] != ""} {
+                $opaque_objfile \
+                object {}] != ""} {
   untested "failed to compile"
   return -1
 }
index b93882fafc9e3a88d302e7ba006005cb398dcff8..93a7c62567631bf2c30db9f100644d0f22516a9a 100644 (file)
@@ -20,23 +20,23 @@ gdb_start
 proc test_good { arg } {
     gdb_test_no_output "set record btrace cpu $arg" "set cpu $arg"
     gdb_test "show record btrace cpu" "btrace cpu is '$arg'\." \
-        "show cpu $arg"
+       "show cpu $arg"
 }
 
 proc test_bad { arg current } {
     gdb_test "set record btrace cpu $arg" \
-        "Bad format\.  See \"help set record btrace cpu\"\." \
-        "set cpu $arg"
+       "Bad format\.  See \"help set record btrace cpu\"\." \
+       "set cpu $arg"
     gdb_test "show record btrace cpu" "btrace cpu is '$current'\." \
-        "show cpu $arg"
+       "show cpu $arg"
 }
 
 proc test_junk { arg junk current } {
     gdb_test "set record btrace cpu $arg" \
-        "Trailing junk: '$junk'\." \
-        "set cpu $arg"
+       "Trailing junk: '$junk'\." \
+       "set cpu $arg"
     gdb_test "show record btrace cpu" "btrace cpu is '$current'\." \
-        "show cpu $arg"
+       "show cpu $arg"
 }
 
 gdb_test "show record btrace cpu" "btrace cpu is 'auto'\." "default cpu"
index c2e64864b281798fb4a088b76b959a3912f1438e..1e620ae8dbfebed2414d62b603647fc27d206ca1 100644 (file)
@@ -46,44 +46,44 @@ proc check_tracing_enabled { thread } {
     global gdb_prompt
 
     with_test_prefix "thread $thread" {
-        gdb_test "thread $thread" "(running).*" "is running"
-
-        # We can't read the trace while the thread is running.
-        gdb_test "info record" "Selected thread is running\." \
-            "info record while running"
-
-        # Try various commands that try to read trace.
-        gdb_test "record instruction-history" "Selected thread is running\."
-        gdb_test "record function-call-history" "Selected thread is running\."
-
-        # Including reverse-stepping commands.
-        gdb_test "reverse-continue" "\[Ss\]elected thread is running\."
-        gdb_test "reverse-step" "\[Ss\]elected thread is running\."
-        gdb_test "reverse-next" "\[Ss\]elected thread is running\."
-        gdb_test "reverse-finish" "\[Ss\]elected thread is running\."
-
-        # Stop the thread before reading the trace.
-        gdb_test_multiple "interrupt" "interrupt" {
-            -re "interrupt\r\n$gdb_prompt " {
-                pass "interrupt"
-            }
-        }
-        # Wait until the thread actually stopped.
-        gdb_test_multiple "" "stopped" {
-            -re "Thread $thread.*stopped\." {
-                pass "stopped"
-            }
-        }
-        # We will consume the thread's current location as part of the
-        # "info record" output.
-        gdb_test "info record" [multi_line \
-            "Active record target: record-btrace" \
-            "Recording format: .*" \
-            "Recorded \[0-9\]+ instructions \[^\\\r\\\n\]*" \
-        ]
-
-        # Continue the thread again.
-        gdb_test "cont&" "Continuing\."
+       gdb_test "thread $thread" "(running).*" "is running"
+
+       # We can't read the trace while the thread is running.
+       gdb_test "info record" "Selected thread is running\." \
+           "info record while running"
+
+       # Try various commands that try to read trace.
+       gdb_test "record instruction-history" "Selected thread is running\."
+       gdb_test "record function-call-history" "Selected thread is running\."
+
+       # Including reverse-stepping commands.
+       gdb_test "reverse-continue" "\[Ss\]elected thread is running\."
+       gdb_test "reverse-step" "\[Ss\]elected thread is running\."
+       gdb_test "reverse-next" "\[Ss\]elected thread is running\."
+       gdb_test "reverse-finish" "\[Ss\]elected thread is running\."
+
+       # Stop the thread before reading the trace.
+       gdb_test_multiple "interrupt" "interrupt" {
+           -re "interrupt\r\n$gdb_prompt " {
+               pass "interrupt"
+           }
+       }
+       # Wait until the thread actually stopped.
+       gdb_test_multiple "" "stopped" {
+           -re "Thread $thread.*stopped\." {
+               pass "stopped"
+           }
+       }
+       # We will consume the thread's current location as part of the
+       # "info record" output.
+       gdb_test "info record" [multi_line \
+           "Active record target: record-btrace" \
+           "Recording format: .*" \
+           "Recorded \[0-9\]+ instructions \[^\\\r\\\n\]*" \
+       ]
+
+       # Continue the thread again.
+       gdb_test "cont&" "Continuing\."
     }
 }
 
index fb68b3322717bf57ec0b077da6f6ea61c14e5171..bc7bf5903ef19f89930a1b7176f5728fef3232dd 100644 (file)
@@ -50,8 +50,8 @@ set traced {}
 set testname "determine number of recorded instructions"
 gdb_test_multiple "info record" $testname {
     -re "Active record target: record-btrace\r\n.*\r\nRecorded \(\[0-9\]*\) instructions in \(\[0-9\]*\) functions \\\(0 gaps\\\) for thread 1 .*\\.\r\n$gdb_prompt $" {
-        set traced $expect_out(1,string)
-        pass $testname
+       set traced $expect_out(1,string)
+       pass $testname
     }
 }
 
@@ -107,9 +107,9 @@ proc test_lines_output { command message } {
     global gdb_prompt
     set message "test_lines_output: $message"
     gdb_test_multiple $command $message {
-        -re "\n\(.*\)\r\n$gdb_prompt $" {
-            return [split [string trim $expect_out(1,string)] "\n"]
-        }
+       -re "\n\(.*\)\r\n$gdb_prompt $" {
+           return [split [string trim $expect_out(1,string)] "\n"]
+       }
     }
 }
 
index 7a769b55af9d2165d71994ffb3645a99ebd40492..4afb4b27fa382dba7866d5c82777770712208735 100644 (file)
@@ -43,7 +43,7 @@ proc gdb_cont_to_line { line } {
 
 proc check_replay_insn { thread insn } {
     gdb_test "thread apply $thread info record" \
-        "Replay in progress\.  At instruction $insn\."
+       "Replay in progress\.  At instruction $insn\."
 }
 
 proc check_not_replaying { thread } {
@@ -52,12 +52,12 @@ proc check_not_replaying { thread } {
     set test "thread $thread not replaying"
 
     gdb_test_multiple "thread apply $thread info record" $test {
-        -re "Replay in progress" {
-            fail $test
-        }
-        -re "$gdb_prompt $" {
-            pass $test
-        }
+       -re "Replay in progress" {
+           fail $test
+       }
+       -re "$gdb_prompt $" {
+           pass $test
+       }
     }
 }
 
@@ -71,116 +71,116 @@ gdb_cont_to_line $srcfile:$bp_2
 
 proc test_navigate {} {
     with_test_prefix "navigate" {
-        gdb_test "thread 1" ".*"
-        with_test_prefix "thread 1" {
-            gdb_test "record goto begin" ".*"
-
-            check_replay_insn 1 1
-            check_not_replaying 2
-        }
-        gdb_test "thread 2" ".*"
-        with_test_prefix "thread 2" {
-            gdb_test "record goto begin" ".*"
-
-            check_replay_insn 1 1
-            check_replay_insn 2 1
-        }
+       gdb_test "thread 1" ".*"
+       with_test_prefix "thread 1" {
+           gdb_test "record goto begin" ".*"
+
+           check_replay_insn 1 1
+           check_not_replaying 2
+       }
+       gdb_test "thread 2" ".*"
+       with_test_prefix "thread 2" {
+           gdb_test "record goto begin" ".*"
+
+           check_replay_insn 1 1
+           check_replay_insn 2 1
+       }
     }
 }
 
 proc test_step {} {
     with_test_prefix "step" {
-        gdb_test "thread 1" ".*"
-        with_test_prefix "thread 1" {
-            gdb_test "stepi" ".*"
-
-            check_replay_insn 1 2
-            check_replay_insn 2 1
-        }
-        gdb_test "thread 2" ".*"
-        with_test_prefix "thread 2" {
-            gdb_test "stepi" ".*"
-
-            check_replay_insn 1 2
-            check_replay_insn 2 2
-        }
+       gdb_test "thread 1" ".*"
+       with_test_prefix "thread 1" {
+           gdb_test "stepi" ".*"
+
+           check_replay_insn 1 2
+           check_replay_insn 2 1
+       }
+       gdb_test "thread 2" ".*"
+       with_test_prefix "thread 2" {
+           gdb_test "stepi" ".*"
+
+           check_replay_insn 1 2
+           check_replay_insn 2 2
+       }
     }
 }
 
 proc test_cont {} {
     with_test_prefix "cont" {
-        gdb_test "thread 1" ".*"
-        with_test_prefix "thread 1" {
-            gdb_test "continue" "Reached end of recorded history.*"
-
-            check_not_replaying 1
-            check_replay_insn 2 2
-        }
-        gdb_test "thread 2" ".*"
-        with_test_prefix "thread 2" {
-            gdb_test "continue" "Reached end of recorded history.*"
-
-            check_not_replaying 1
-            check_not_replaying 2
-        }
+       gdb_test "thread 1" ".*"
+       with_test_prefix "thread 1" {
+           gdb_test "continue" "Reached end of recorded history.*"
+
+           check_not_replaying 1
+           check_replay_insn 2 2
+       }
+       gdb_test "thread 2" ".*"
+       with_test_prefix "thread 2" {
+           gdb_test "continue" "Reached end of recorded history.*"
+
+           check_not_replaying 1
+           check_not_replaying 2
+       }
     }
 }
 
 proc test_cont_all {} {
     with_test_prefix "cont-all" {
-        gdb_test "continue" "Reached end of recorded history.*"
+       gdb_test "continue" "Reached end of recorded history.*"
 
-        # this works because we're lock-stepping threads that executed exactly
-        # the same code starting from the same instruction.
+       # this works because we're lock-stepping threads that executed exactly
+       # the same code starting from the same instruction.
 
-        check_not_replaying 1
-        check_not_replaying 2
+       check_not_replaying 1
+       check_not_replaying 2
     }
 }
 
 proc test_rstep {} {
     with_test_prefix "reverse-step" {
-        gdb_test "thread apply all record goto 3"
-
-        gdb_test "thread 1" ".*"
-        with_test_prefix "thread 1" {
-            gdb_test "reverse-stepi" ".*"
-
-            check_replay_insn 1 2
-            check_replay_insn 2 3
-        }
-        gdb_test "thread 2" ".*"
-        with_test_prefix "thread 2" {
-            gdb_test "reverse-stepi" ".*"
-
-            check_replay_insn 1 2
-            check_replay_insn 2 2
-        }
+       gdb_test "thread apply all record goto 3"
+
+       gdb_test "thread 1" ".*"
+       with_test_prefix "thread 1" {
+           gdb_test "reverse-stepi" ".*"
+
+           check_replay_insn 1 2
+           check_replay_insn 2 3
+       }
+       gdb_test "thread 2" ".*"
+       with_test_prefix "thread 2" {
+           gdb_test "reverse-stepi" ".*"
+
+           check_replay_insn 1 2
+           check_replay_insn 2 2
+       }
     }
 }
 
 proc test_goto_end {} {
     with_test_prefix "goto-end" {
-        gdb_test "thread apply all record goto end"
+       gdb_test "thread apply all record goto end"
 
-        check_not_replaying 1
-        check_not_replaying 2
+       check_not_replaying 1
+       check_not_replaying 2
     }
 }
 
 foreach schedlock { "replay" "on" "step" } {
     with_test_prefix "schedlock-$schedlock" {
-        gdb_test_no_output "set scheduler-locking $schedlock"
-
-        test_navigate
-        test_step
-        if { $schedlock == "step" } {
-            test_cont_all
-        } else {
-            test_cont
-        }
-        test_rstep
-        test_goto_end
+       gdb_test_no_output "set scheduler-locking $schedlock"
+
+       test_navigate
+       test_step
+       if { $schedlock == "step" } {
+           test_cont_all
+       } else {
+           test_cont
+       }
+       test_rstep
+       test_goto_end
     }
 }
 
@@ -194,20 +194,20 @@ with_test_prefix "cont-to-end" {
 
     gdb_test "thread 1" ".*"
     with_test_prefix "thread 1" {
-        gdb_test "record goto begin" ".*"
+       gdb_test "record goto begin" ".*"
 
-        check_replay_insn 1 1
+       check_replay_insn 1 1
     }
     gdb_test "thread 2" ".*"
     with_test_prefix "thread 2" {
-        gdb_test "record goto end" ".*"
+       gdb_test "record goto end" ".*"
 
-        check_not_replaying 2
+       check_not_replaying 2
 
-        # if we reach the breakpoint, thread 2 terminated...
-        gdb_cont_to_line $srcfile:$bp_3
+       # if we reach the breakpoint, thread 2 terminated...
+       gdb_cont_to_line $srcfile:$bp_3
 
-        # and thread 1 stopped replaying
-        check_not_replaying 1
+       # and thread 1 stopped replaying
+       check_not_replaying 1
     }
 }
index bc5ebdbcb0e9e7dc028ed863ee23116ffdc30400..81ea0096f1e30dc26912b547cdfea06acae50f89 100644 (file)
@@ -55,28 +55,28 @@ proc gdb_cont_to { threads cmd line nthreads } {
     # consume the prompt.  since we started the command in the background,
     # the prompt precedes any further output except some errors.
     gdb_test_multiple "$full_cmd &" "$full_cmd: prompt" {
-        -re "$gdb_prompt " {
-            pass $gdb_test_name
-        }
+       -re "$gdb_prompt " {
+           pass $gdb_test_name
+       }
     }
 
     # now check for the expected line - one per thread.
     for {set i 0} {$i < $nthreads} {incr i} {
-        gdb_test_multiple "" "$full_cmd: thread $i" {
-            -re "$line\[^\\\r\\\n\]*\r\n" {
-                pass $gdb_test_name
-            }
-        }
+       gdb_test_multiple "" "$full_cmd: thread $i" {
+           -re "$line\[^\\\r\\\n\]*\r\n" {
+               pass $gdb_test_name
+           }
+       }
     }
 }
 
 proc gdb_cont_to_bp_line { line threads nthreads } {
     gdb_cont_to $threads "continue" \
-        [multi_line \
-             "Breakpoint\[^\\\r\\\n\]*$line" \
-             "\[^\\\r\\\n\]*" \
-            ] \
-        $nthreads
+       [multi_line \
+            "Breakpoint\[^\\\r\\\n\]*$line" \
+            "\[^\\\r\\\n\]*" \
+           ] \
+       $nthreads
 }
 
 proc gdb_cont_to_no_history_backward { threads cmd nthreads } {
@@ -122,66 +122,66 @@ with_test_prefix "navigate" {
     gdb_test "thread apply 1 record goto 3" "$loop_line"
     gdb_test "thread apply 2 record goto 4" "$loop_line"
     gdb_test "thread apply 1 info record" \
-        ".*Replay in progress\.  At instruction 3\." "thread 1 at insn 3"
+       ".*Replay in progress\.  At instruction 3\." "thread 1 at insn 3"
     gdb_test "thread apply 2 info record" \
-        ".*Replay in progress\.  At instruction 4\." "thread 2 at insn 4"
+       ".*Replay in progress\.  At instruction 4\." "thread 2 at insn 4"
 
     gdb_test "thread apply all record goto 5" "$loop_line"
     gdb_test "thread apply 1 info record" \
-        ".*Replay in progress\.  At instruction 5\." "thread 1 at insn 5"
+       ".*Replay in progress\.  At instruction 5\." "thread 1 at insn 5"
     gdb_test "thread apply 2 info record" \
-        ".*Replay in progress\.  At instruction 5\." "thread 2 at insn 5"
+       ".*Replay in progress\.  At instruction 5\." "thread 2 at insn 5"
 }
 
 with_test_prefix "step" {
     with_test_prefix "thread 1" {
-        gdb_test "thread apply 1 stepi 2" "$loop_line"
-        gdb_test "thread apply 1 info record" \
-            ".*Replay in progress\.  At instruction 7\."
-        gdb_test "thread apply 2 info record" \
-            ".*Replay in progress\.  At instruction 5\."
+       gdb_test "thread apply 1 stepi 2" "$loop_line"
+       gdb_test "thread apply 1 info record" \
+           ".*Replay in progress\.  At instruction 7\."
+       gdb_test "thread apply 2 info record" \
+           ".*Replay in progress\.  At instruction 5\."
     }
 
     with_test_prefix "thread 2" {
-        gdb_test "thread apply 2 stepi 3" "$loop_line"
-        gdb_test "thread apply 1 info record" \
-            ".*Replay in progress\.  At instruction 7\."
-        gdb_test "thread apply 2 info record" \
-            ".*Replay in progress\.  At instruction 8\."
+       gdb_test "thread apply 2 stepi 3" "$loop_line"
+       gdb_test "thread apply 1 info record" \
+           ".*Replay in progress\.  At instruction 7\."
+       gdb_test "thread apply 2 info record" \
+           ".*Replay in progress\.  At instruction 8\."
     }
 
     with_test_prefix "all" {
-        gdb_cont_to all "stepi 4" "$loop_line" 2
-        gdb_test "thread apply 1 info record" \
-            ".*Replay in progress\.  At instruction 11\."
-        gdb_test "thread apply 2 info record" \
-            ".*Replay in progress\.  At instruction 12\."
+       gdb_cont_to all "stepi 4" "$loop_line" 2
+       gdb_test "thread apply 1 info record" \
+           ".*Replay in progress\.  At instruction 11\."
+       gdb_test "thread apply 2 info record" \
+           ".*Replay in progress\.  At instruction 12\."
     }
 }
 
 with_test_prefix "reverse-step" {
     with_test_prefix "thread 1" {
-        gdb_test "thread apply 1 reverse-stepi 2" "$loop_line"
-        gdb_test "thread apply 1 info record" \
-            ".*Replay in progress\.  At instruction 9\."
-        gdb_test "thread apply 2 info record" \
-            ".*Replay in progress\.  At instruction 12\."
+       gdb_test "thread apply 1 reverse-stepi 2" "$loop_line"
+       gdb_test "thread apply 1 info record" \
+           ".*Replay in progress\.  At instruction 9\."
+       gdb_test "thread apply 2 info record" \
+           ".*Replay in progress\.  At instruction 12\."
     }
 
     with_test_prefix "thread 2" {
-        gdb_test "thread apply 2 reverse-stepi 3" "$loop_line"
-        gdb_test "thread apply 1 info record" \
-            ".*Replay in progress\.  At instruction 9\."
-        gdb_test "thread apply 2 info record" \
-            ".*Replay in progress\.  At instruction 9\."
+       gdb_test "thread apply 2 reverse-stepi 3" "$loop_line"
+       gdb_test "thread apply 1 info record" \
+           ".*Replay in progress\.  At instruction 9\."
+       gdb_test "thread apply 2 info record" \
+           ".*Replay in progress\.  At instruction 9\."
     }
 
     with_test_prefix "all" {
-        gdb_cont_to all "reverse-stepi 4" "$loop_line" 2
-        gdb_test "thread apply 1 info record" \
-            ".*Replay in progress\.  At instruction 5\."
-        gdb_test "thread apply 2 info record" \
-            ".*Replay in progress\.  At instruction 5\."
+       gdb_cont_to all "reverse-stepi 4" "$loop_line" 2
+       gdb_test "thread apply 1 info record" \
+           ".*Replay in progress\.  At instruction 5\."
+       gdb_test "thread apply 2 info record" \
+           ".*Replay in progress\.  At instruction 5\."
     }
 }
 
@@ -224,37 +224,37 @@ with_test_prefix "continue" {
 # a thread may only resume if no thread is still replaying
 with_test_prefix "no progress" {
     with_test_prefix "thread 1" {
-        gdb_test "thread apply 1 record goto end" ".*"
-        gdb_test "thread apply 2 record goto begin" ".*"
-
-        gdb_cont_to_no_history_forward 1 "continue" 1
-        gdb_cont_to_no_history_forward 1 "step" 1
-        gdb_test "thread apply 1 info record" \
-            ".*Recorded \[0-9\]+ instructions \[^\\\r\\\n\]*"
-        gdb_test "thread apply 2 info record" \
-            ".*Replay in progress\.  At instruction 1\."
+       gdb_test "thread apply 1 record goto end" ".*"
+       gdb_test "thread apply 2 record goto begin" ".*"
+
+       gdb_cont_to_no_history_forward 1 "continue" 1
+       gdb_cont_to_no_history_forward 1 "step" 1
+       gdb_test "thread apply 1 info record" \
+           ".*Recorded \[0-9\]+ instructions \[^\\\r\\\n\]*"
+       gdb_test "thread apply 2 info record" \
+           ".*Replay in progress\.  At instruction 1\."
     }
 
     with_test_prefix "thread 2" {
-        gdb_test "thread apply 1 record goto begin" ".*"
-        gdb_test "thread apply 2 record goto end" ".*"
-
-        gdb_cont_to_no_history_forward 2 "continue" 1
-        gdb_cont_to_no_history_forward 2 "step" 1
-        gdb_test "thread apply 1 info record" \
-            ".*Replay in progress\.  At instruction 1\."
-        gdb_test "thread apply 2 info record" \
-            ".*Recorded \[0-9\]+ instructions \[^\\\r\\\n\]*"
+       gdb_test "thread apply 1 record goto begin" ".*"
+       gdb_test "thread apply 2 record goto end" ".*"
+
+       gdb_cont_to_no_history_forward 2 "continue" 1
+       gdb_cont_to_no_history_forward 2 "step" 1
+       gdb_test "thread apply 1 info record" \
+           ".*Replay in progress\.  At instruction 1\."
+       gdb_test "thread apply 2 info record" \
+           ".*Recorded \[0-9\]+ instructions \[^\\\r\\\n\]*"
     }
 
     with_test_prefix "all" {
-        gdb_test "thread apply all record goto begin" ".*"
+       gdb_test "thread apply all record goto begin" ".*"
 
-        gdb_cont_to_no_history_forward all "continue" 2
-        gdb_test "thread apply 1 info record" \
-            ".*Recorded \[0-9\]+ instructions \[^\\\r\\\n\]*"
-        gdb_test "thread apply 2 info record" \
-            ".*Recorded \[0-9\]+ instructions \[^\\\r\\\n\]*"
+       gdb_cont_to_no_history_forward all "continue" 2
+       gdb_test "thread apply 1 info record" \
+           ".*Recorded \[0-9\]+ instructions \[^\\\r\\\n\]*"
+       gdb_test "thread apply 2 info record" \
+           ".*Recorded \[0-9\]+ instructions \[^\\\r\\\n\]*"
     }
 }
 
index 6da3fa7510d55c54724f4e54ddb58543ec0a4588..edbf9b50325c5a7873ba7bf9b8c9f9bcec4d3ee7 100644 (file)
@@ -59,15 +59,15 @@ set abort_3 \
 set test "speculation indication"
 gdb_test_multiple "record instruction-history" $test {
     -re "$abort_1.*$gdb_prompt $" {
-        pass $test
+       pass $test
     }
     -re "$abort_2.*$gdb_prompt $" {
-        pass $test
+       pass $test
     }
     -re -wrap "$abort_3.*" {
-        pass $gdb_test_name
+       pass $gdb_test_name
     }
     -re  "$begin_to_end.*$gdb_prompt $" {
-        pass $test
+       pass $test
     }
 }
index abfd07aa6868d440c81dc31b1c111cba580aa5cb..7741d53eacdfd267a914bfea8de03d3d32a942f7 100644 (file)
@@ -21,19 +21,19 @@ namespace N1
     {
       namespace N4
       {
-        static int n4static = 400;
-
-        struct S4
-        {
-          static int s4static;
-          int s4int_;
-          S4 () : s4int_ (4) {};
-          ~S4 () { --s4static; }
-
-         int get_var () { return s4int_; }
-         static int get_svar () { return s4static; }
-        };
-        int S4::s4static = 40;
+       static int n4static = 400;
+
+       struct S4
+       {
+         static int s4static;
+         int s4int_;
+         S4 () : s4int_ (4) {};
+         ~S4 () { --s4static; }
+
+        int get_var () { return s4int_; }
+        static int get_svar () { return s4static; }
+       };
+       int S4::s4static = 40;
       }
     }
   }
index 234752e49af20230f41aee10ab4a37bf03e78cde..b0b4badd06f4223360c2a8cae3dfdc021a20a3bf 100644 (file)
@@ -25,4 +25,3 @@ int main()
   printf ("a.x is %d\n", a.x);
   return 0;
 }
-
index 16344bd7474d6e33f6bd065fd4c79d4c74420f49..1dc8c2dbd973eb88da0b898fce931ce515fa9393 100644 (file)
@@ -163,8 +163,8 @@ gdb_test_multiple "continue" "continue until exit" {
 send_gdb "delete\n"
 gdb_expect {
   -re ".*Delete all breakpoints, watchpoints, tracepoints, and catchpoints. \\(y or n\\) \r\n\032\032query.*$" {
-           send_gdb "y\n"
-           gdb_expect {
+          send_gdb "y\n"
+          gdb_expect {
             -re "\r\n\032\032post-query\r\n${breakpoints_invalid}$gdb_prompt$" { pass "delete bps" }
             -re ".*$gdb_prompt$" { fail "delete bps" }
             timeout  { fail "delete bps (timeout)" }
@@ -291,4 +291,3 @@ if {![target_info exists gdb,nointerrupts]} {
 # reinstall the old prompt for the rest of the testsuite.
 
 set gdb_prompt $old_gdb_prompt
-
index 234752e49af20230f41aee10ab4a37bf03e78cde..b0b4badd06f4223360c2a8cae3dfdc021a20a3bf 100644 (file)
@@ -25,4 +25,3 @@ int main()
   printf ("a.x is %d\n", a.x);
   return 0;
 }
-
index db3f69648a46f5f48b4afa7fc31ba2d045b801f4..56bdbdd06015042eb10cc33426df9c74ccbd5cab 100644 (file)
@@ -119,8 +119,8 @@ gdb_expect_list "continue to exit" "$gdb_prompt$" $el
 send_gdb "delete\n"
 gdb_expect {
   -re ".*Delete all breakpoints, watchpoints, tracepoints, and catchpoints. \\(y or n\\) \r\n\032\032query.*$" {
-           send_gdb "y\n"
-           gdb_expect {
+          send_gdb "y\n"
+          gdb_expect {
             -re "\r\n\032\032post-query\r\n$gdb_prompt$" { pass "delete bps" }
             -re ".*$gdb_prompt$" { fail "delete bps" }
             timeout  { fail "delete bps (timeout)" }
@@ -201,4 +201,3 @@ if {![target_info exists gdb,nointerrupts]} {
 # reinstall the old prompt for the rest of the testsuite.
 
 set gdb_prompt $old_gdb_prompt
-
index aef8a7ec00a823afab3c146dbd3b3027a77679d8..a7167c7a1e7d68fceef162312900ec313617097a 100644 (file)
@@ -77,4 +77,3 @@ int main()
   nc.test (N::A::X);
   return 0;
 }
-
index 0e0112245d10abb85c3eb74f79430b511c84a6f7..7088183693f38535cc74ba258d0e78f326bb5ea3 100644 (file)
@@ -32,4 +32,4 @@ gdb_test "print X" "= A::X" "print enum constant X of class A"
 gdb_breakpoint [gdb_get_line_number "breakpoint 2" $srcfile]
 gdb_continue_to_breakpoint "breakpoint 2"
 gdb_test "print X" "= N::A::X" \
-         "Print enum constant X of class A in namespace N"
+        "Print enum constant X of class A in namespace N"
index ad637496088310a915814cc55182e33003f65df9..64689c701e2d77f95336060b93fa19b458662ceb 100644 (file)
@@ -511,9 +511,9 @@ proc test_enums {} {
     # ptype on the enum member
 
     gdb_test_multiple "ptype obj_with_enum.priv_enum" "ptype obj_with_enum.priv_enum" {
-        -re "type = enum ClassWithEnum::PrivEnum (: unsigned (int|short|char) )?\{ ?(ClassWithEnum::)?red, (ClassWithEnum::)?green, (ClassWithEnum::)?blue, (ClassWithEnum::)?yellow = 42 ?\}$nl$gdb_prompt $" {
+       -re "type = enum ClassWithEnum::PrivEnum (: unsigned (int|short|char) )?\{ ?(ClassWithEnum::)?red, (ClassWithEnum::)?green, (ClassWithEnum::)?blue, (ClassWithEnum::)?yellow = 42 ?\}$nl$gdb_prompt $" {
            pass "ptype obj_with_enum.priv_enum"
-        }
+       }
        -re "type = enum PrivEnum \{ ?(ClassWithEnum::)?red, (ClassWithEnum::)?green, (ClassWithEnum::)?blue, (ClassWithEnum::)?yellow = 42 ?\}$nl$gdb_prompt $" {
            # gcc 2.95.3 -gdwarf-2
            # gcc 3.3.2 -gdwarf-2
index b21bb2023504f3b2f96f9f254a0a77db3198a2ff..ae06036429a959d4f0d8d3b5dc02b1ed0b1ce1a0 100644 (file)
@@ -77,4 +77,3 @@ main (void)
   foo f;
   return f.baz (foo::bar () + 3);
 }
-
index d1b4ecb4de2cd6e2df0df68a8eb0e9c4c01c2a64..c0f2c111d3b7e2d82b3a2f4ae1414f1217497f1f 100644 (file)
@@ -401,7 +401,7 @@ proc test_lookup_operator_functions {} {
     info_func "operator>>=("   "void foo::operator>>=($dm_type_foo_ref);"
     info_func "operator|=("    "void foo::operator|=($dm_type_foo_ref);"
     info_func "operator$dm_operator_comma\("   \
-                               "void foo::operator$dm_operator_comma\($dm_type_foo_ref);"
+                               "void foo::operator$dm_operator_comma\($dm_type_foo_ref);"
     info_func "operator/("     "void foo::operator/($dm_type_foo_ref);"
     info_func "operator+("     "void foo::operator+($dm_type_foo_ref);"
     info_func "operator<<("    "void foo::operator<<($dm_type_foo_ref);"
index b2746d17d51eb17850aaf054c7a60433b02627f6..9be1049bcee03187275544f33c513e560ea4647b 100644 (file)
@@ -25,7 +25,7 @@ namespace N {
        int i = 3;
 
        while (i > 0)
-         --i;
+        --i;
      }
   };
 }
@@ -38,8 +38,8 @@ public:
 
     A()
     {
-        a=1;
-        aa=2;
+       a=1;
+       aa=2;
     }
     value_type afoo();
     value_type foo();
@@ -54,8 +54,8 @@ public:
 
     B()
     {
-        b=3;
-        bb=4;
+       b=3;
+       bb=4;
     }
     A::value_type bfoo();
     A::value_type foo();
@@ -71,8 +71,8 @@ public:
 
     C()
     {
-        c=5;
-        cc=6;
+       c=5;
+       cc=6;
     }
     int cfoo();
     int foo();
@@ -88,8 +88,8 @@ public:
 
     D()
     {
-        d =7;
-        dd=8;
+       d =7;
+       dd=8;
     }
     value_type dfoo();
     value_type foo();
@@ -104,8 +104,8 @@ public:
 
     E()
     {
-        e =9;
-        ee=10;
+       e =9;
+       ee=10;
     }
     value_type efoo();
     value_type foo();
@@ -120,8 +120,8 @@ public:
 
     F()
     {
-        f =11;
-        ff=12;
+       f =11;
+       ff=12;
     }
     value_type ffoo();
     value_type foo();
@@ -138,11 +138,11 @@ public:
 
     G()
     {
-        g =13;
-        gg =14;
-        a=15;
-        b=16;
-        c=17;
+       g =13;
+       gg =14;
+       a=15;
+       b=16;
+       c=17;
 
     }
     int gfoo();
index bb3dccea774ac960e78ff8eb9d45d8b769068dc7..8a0a331ffed0a2d95ca6ebd69996465373849954 100644 (file)
@@ -208,13 +208,13 @@ gdb_test "print g_instance.afoo()" "\\$\[0-9\]+ = 1" "print value of g_instance.
 
 gdb_test_multiple "frame" "re-selected 'main' frame after inferior call" {
     -re "#0  marker1.*$gdb_prompt $" {
-        setup_kfail "gdb/1155" s390-*-linux-gnu
-        fail "re-selected 'main' frame after inferior call"
-        gdb_test "finish" ".*main.*at .*derivation.cc:.*// marker1-returns-here.*" \
-            "finish call to marker1"
+       setup_kfail "gdb/1155" s390-*-linux-gnu
+       fail "re-selected 'main' frame after inferior call"
+       gdb_test "finish" ".*main.*at .*derivation.cc:.*// marker1-returns-here.*" \
+           "finish call to marker1"
     }
     -re "#1  ($hex in )?main.*$gdb_prompt $" {
-        pass "re-selected 'main' frame after inferior call"
+       pass "re-selected 'main' frame after inferior call"
     }
 }
 
index 233580a3407825f0e12e0026996592ac9f68ab75..0fdbac3974cc0d0f27f3919b1423d2276027d024 100644 (file)
@@ -25,7 +25,7 @@ public:
 
     A2()
     {
-        a=1;
+       a=1;
     }
 };
 
@@ -35,7 +35,7 @@ public:
 
     D2()
     {
-        d=7;
+       d=7;
     }
 };
 
index 07b5dfbf139821197f14419f93a652fcf1f068ca..018e9e7916a693127778b4908e16c024d9bf0fbd 100644 (file)
@@ -35,4 +35,3 @@ int main() {
   k.method();
   return k.m2();
 }
-
index bf0aae3861be82cd8cf06d2030da6c2ed04fbefb..1aaf9725a5c0edb9cc429bb17404e8b60a0170a0 100644 (file)
@@ -42,12 +42,12 @@ proc get_address { var } {
 
     gdb_test_multiple "print &$var" "find address of $var" {
        -re "\\$\[0-9\]+ = \\(.*\\) (0x\[0-9a-f\]+).*$gdb_prompt $" {
-            return $expect_out(1,string)
-       }
-        timeout {
+           return $expect_out(1,string)
+       }
+       timeout {
            perror "couldn't find address of $var"
            return ""
-        }
+       }
     }
     return ""
 }
@@ -57,15 +57,15 @@ proc test_p_x { var type val addr } {
 
     set test "print/x $var"
     gdb_test_multiple $test $test {
-        -re "\\$\[0-9\]+ = \\([string_to_regexp $type]\\) @0x\[a-f0-9\]+: [string_to_regexp $val].*$gdb_prompt $" {
+       -re "\\$\[0-9\]+ = \\([string_to_regexp $type]\\) @0x\[a-f0-9\]+: [string_to_regexp $val].*$gdb_prompt $" {
            pass $test
        }
        -re "\\$\[0-9\]+ = $addr.*$gdb_prompt $" {
-            fail "$test (prints just address)"
-        }
+           fail "$test (prints just address)"
+       }
        -re "\\$\[0-9\]+ = 0x\[a-f0-9\]+.*$gdb_prompt $" {
-            fail "$test (prints unexpected address)"
-        }
+           fail "$test (prints unexpected address)"
+       }
     }
     return 0
 }
@@ -75,12 +75,12 @@ proc test_p_x_addr { var addr } {
 
     set test "print/x &$var"
     gdb_test_multiple $test $test {
-        -re "\\$\[0-9\]+ = $addr.*$gdb_prompt $" {
+       -re "\\$\[0-9\]+ = $addr.*$gdb_prompt $" {
            pass $test
        }
        -re "\\$\[0-9\]+ = 0x\[a-f0-9+\]+.*$gdb_prompt $" {
-            fail "$test (prints unexpected address)"
-        }
+           fail "$test (prints unexpected address)"
+       }
     }
     return 0
 }
@@ -90,7 +90,7 @@ proc test_p_x_ref_addr { var addr } {
 
     set test "print/x *(&(&$var))"
     gdb_test_multiple $test $test {
-        -re "\\$\[0-9\]+ = $addr.*$gdb_prompt $" {
+       -re "\\$\[0-9\]+ = $addr.*$gdb_prompt $" {
            pass $test
        }
        -re "Attempt to take address of value not located in memory.*$gdb_prompt $" {
@@ -99,8 +99,8 @@ proc test_p_x_ref_addr { var addr } {
            pass $test
        }
        -re "\\$\[0-9\]+ = 0x\[a-f0-9+\]+.*$gdb_prompt $" {
-            fail "$test (prints unexpected address)"
-        }
+           fail "$test (prints unexpected address)"
+       }
     }
     return 0
 }
index a53ec3a8cccf9a7138c6b7cbe580f478cb115cdb..4f4f7c8913248aa40acd4121f6d2f0df15c8e591 100644 (file)
@@ -73,4 +73,3 @@ gdb_continue_to_breakpoint "run to 'Second breakpoint', second time"
 gdb_test "print d2.meth ()" \
     ".*24.*" \
     "gdb2384 at 'Second breakpoint'"
-
index 49feeab0269f6b8305176345b50cd714bec9586a..d2d89ed5bf9c663a2da781f8b976679815e067e0 100644 (file)
@@ -193,17 +193,17 @@ namespace P {
   public:
     int operator== (int)
       {
-        return 24;
+       return 24;
       }
 
     int operator== (float)
       {
-        return 25;
+       return 25;
       }
 
     int operator+ (float)
       {
-        return 26;
+       return 26;
       }
 
   };
@@ -322,7 +322,7 @@ main ()
   r.rfoo();
 
   return first (0, c) + foo (eo) +
-         foo (eo, eo) + foo (eo, eo, 1)  +
-         foo (fo, eo) + foo (1  ,fo, eo) +
-         foo (go, fo, eo);
+        foo (eo, eo) + foo (eo, eo, 1)  +
+        foo (fo, eo) + foo (1  ,fo, eo) +
+        foo (go, fo, eo);
 }
index 35a04b981fd8638899ec5c843973f21ed171276c..183d47cdf3743ba967b4678324ac2f133eba55b9 100644 (file)
@@ -51,7 +51,7 @@ int main()
        int nil;
        int nil_foo (int i)
        {
-         return i * 27;
+        return i * 27;
        }
      };
      NestedInnerLocal nest1;
index 7c13de01243237f30cd4856fe1951ecc152a58b8..96e736906cce260b52352d6fc8477080a24326d6 100644 (file)
@@ -160,18 +160,18 @@ gdb_test "up" ".*main.*" "up from marker2"
 set eol "\[\t \]*\r\n\[\t \]*"
 gdb_test_multiple "ptype Local" "local out of scope" {
     -re "No symbol \"Local\" in current context.*${gdb_prompt} $" {
-        pass "local out of scope"
+       pass "local out of scope"
     }
     -re "ptype Local${eol}type = class Local {${eol}  public:${eol}    int loc1;${eol}.*${eol}    char loc_foo\\(char\\);${eol}}${eol}${gdb_prompt} " {
-        # GCC emits STABS debugging information in a way that doesn't
-        # properly preserve the scoping of local classes.  I think
-        # we'd need to start using Sun's extensions to stabs to get
-        # this right.
-        kfail gdb/825 "Local out of scope"
+       # GCC emits STABS debugging information in a way that doesn't
+       # properly preserve the scoping of local classes.  I think
+       # we'd need to start using Sun's extensions to stabs to get
+       # this right.
+       kfail gdb/825 "Local out of scope"
     }
     -re "ptype Local${eol}type = class Local {${eol}  public:${eol}    int loc1;${eol}    char loc_foo\\(char\\);${eol}.*${eol}}${eol}${gdb_prompt} " {
        # gcc 3.X abi-2 -gstabs+
-        kfail gdb/825 "Local out of scope"
+       kfail gdb/825 "Local out of scope"
     }
 }
 
index 29924638112119e11136c4b9f2b6433d1e60c5d8..e9c577c72ae6eb89a5ed40d6e8a773c18b6c5b8f 100644 (file)
@@ -14,4 +14,3 @@ class gnu_obj_4
   // try to ensure test4 is actually allocated
   int dummy;
 };
-
index 68576d55e4d060d4192b47d1edd1a45b17194ef5..5b4fb449c68081ad8c5f8a2ed13821ced70846ee 100644 (file)
@@ -25,11 +25,11 @@ proc test_help {} {
     set namespace_help "Deprecated placeholder for removed functionality\\."
 
     test_prefix_command_help {"maintenance cplus"} {
-        "C\\+\\+ maintenance commands\.\[\r\n\]+"
+       "C\\+\\+ maintenance commands\.\[\r\n\]+"
     }
 
     test_prefix_command_help {"maint cp" "maintenance cplus"} {
-        "C\\+\\+ maintenance commands.\r\n\r\n"
+       "C\\+\\+ maintenance commands.\r\n\r\n"
     }
 
     set multiple_help_body "List of \"maintenance cplus\" subcommands:.*Command name abbreviations are allowed if unambiguous."
index bf249acde2692b818f168c5dbd055a0d57362eff..6885fadccb7cc8f1396275378dd82d86752a1e28 100644 (file)
@@ -30,7 +30,7 @@ struct ss
   {
     return (memcmp (&this->static_field, &rhs.static_field,
                    sizeof (this->static_field)) == 0
-            && this->aa == rhs.aa);
+           && this->aa == rhs.aa);
   }
 };
 
@@ -40,25 +40,25 @@ ss ref_val = { 'a' };
 
 bool
 check_val (ss v1, ss v2, ss v3, ss v4, ss v5, ss v6, ss v7, ss v8,
-           ss v9, ss v10, ss v11, ss v12, ss v13, ss v14, ss v15,
-           ss v16, ss v17, ss v18, ss v19, ss v20, ss v21, ss v22,
-           ss v23, ss v24, ss v25, ss v26, ss v27, ss v28, ss v29,
-           ss v30, ss v31, ss v32, ss v33, ss v34, ss v35, ss v36,
-           ss v37, ss v38, ss v39, ss v40)
+          ss v9, ss v10, ss v11, ss v12, ss v13, ss v14, ss v15,
+          ss v16, ss v17, ss v18, ss v19, ss v20, ss v21, ss v22,
+          ss v23, ss v24, ss v25, ss v26, ss v27, ss v28, ss v29,
+          ss v30, ss v31, ss v32, ss v33, ss v34, ss v35, ss v36,
+          ss v37, ss v38, ss v39, ss v40)
 {
   return (v1 == ref_val && v2 == ref_val && v3 == ref_val && v4 == ref_val
-          && v5 == ref_val && v6 == ref_val && v7 == ref_val
-          && v8 == ref_val && v9 == ref_val && v10 == ref_val
-          && v11 == ref_val && v12 == ref_val && v13 == ref_val
-          && v14 == ref_val && v15 == ref_val && v16 == ref_val
-          && v17 == ref_val && v18 == ref_val && v19 == ref_val
-          && v20 == ref_val && v21 == ref_val && v22 == ref_val
-          && v23 == ref_val && v24 == ref_val && v25 == ref_val
-          && v26 == ref_val && v27 == ref_val && v28 == ref_val
-          && v29 == ref_val && v30 == ref_val && v31 == ref_val
-          && v32 == ref_val && v33 == ref_val && v34 == ref_val
-          && v35 == ref_val && v36 == ref_val && v37 == ref_val
-          && v38 == ref_val && v39 == ref_val && v40 == ref_val);
+         && v5 == ref_val && v6 == ref_val && v7 == ref_val
+         && v8 == ref_val && v9 == ref_val && v10 == ref_val
+         && v11 == ref_val && v12 == ref_val && v13 == ref_val
+         && v14 == ref_val && v15 == ref_val && v16 == ref_val
+         && v17 == ref_val && v18 == ref_val && v19 == ref_val
+         && v20 == ref_val && v21 == ref_val && v22 == ref_val
+         && v23 == ref_val && v24 == ref_val && v25 == ref_val
+         && v26 == ref_val && v27 == ref_val && v28 == ref_val
+         && v29 == ref_val && v30 == ref_val && v31 == ref_val
+         && v32 == ref_val && v33 == ref_val && v34 == ref_val
+         && v35 == ref_val && v36 == ref_val && v37 == ref_val
+         && v38 == ref_val && v39 == ref_val && v40 == ref_val);
 }
 
 int
index db1da6947ec257b2b9cc07562edc0181cdaeeff3..38971d5897608b04c542bbe123aa1dcb7571cf4a 100644 (file)
@@ -101,6 +101,3 @@ if {$using_clang} {
 gdb_test "continue" \
     ".*exited normally.*" \
     "run to exit"
-
-
-
index b067cb073c11403cc249ed274b9b3e08e3a53f2a..a10993a42c66a1cd008e45a36b169e745deed9e8 100644 (file)
@@ -53,7 +53,7 @@ gdb_test "continue" \
 
 delete_breakpoints
 gdb_test "kill" "" "kill" \
-         {Kill the program being debugged\? \(y or n\) } "y"
+        {Kill the program being debugged\? \(y or n\) } "y"
 
 gdb_test "break $srcfile:$bp_location" \
     "Breakpoint.*at.*: $srcfile:$bp_location. \\(2 locations\\).*" \
index 9fea5fbf1d0e2f3a2746d627a69e968ad51c07e5..60a25b72a9622aaa6d445511291dccc954d00efb 100644 (file)
@@ -75,6 +75,3 @@ int main()
   f.getFunky(1, 2);
   return 0;
 }
-
-
-
index 410647a6f413ba764fa3b3816b605347ce893504..d7a0d347ceed264c2f09ac67e156e1f1c1ce3caa 100644 (file)
@@ -160,4 +160,3 @@ gdb_test_multiple "cont" "finish program" {
        pass "finish program (exit wrapper)"
     }
 }
-
index 71cf0f01c897b7b74143d8730cece6628a290ec5..e3db8f1ca046005886af9b13ee4f5cc276e092b2 100644 (file)
@@ -41,17 +41,17 @@ proc test_break { lang } {
     set ovlds [lsort {"" "int" "A*"}]
     set items {"cancel" "all"}
     foreach ovld $ovlds {
-        lappend items "A::method($ovld)"
+       lappend items "A::method($ovld)"
     }
     set menu_items {}
     set idx 0
     foreach item $items {
-        lappend menu_items ".$idx. .*[string_to_regexp $item]"
-        incr idx
+       lappend menu_items ".$idx. .*[string_to_regexp $item]"
+       incr idx
     }
     set expect [join $menu_items {.*[\r\n]*}]
     gdb_test_multiple "break A::method" "breaking in method, $lang" {
-        -re $expect {
+       -re $expect {
            gdb_test "0" \
                "canceled" \
                $gdb_test_name
index 575ad3a56185ff7f9c56a99add225c3a11a820d9..6db4498e84471df9da5a31bf9fefb99ed0b000e0 100644 (file)
@@ -23,4 +23,3 @@ if {[prepare_for_testing "failed to prepare" $testfile \
 gdb_test "print foo::B::B_B" "`foo::B' is not defined as an aggregate type."
 gdb_test "print foo::B_B" "foo::B_B"
 gdb_test "print A_A" "A_A"
-
index 9db0deeefdd04aea10246ad31aa0977890bffd84..0cd55b28b9f79994cb77438fb0d3fdb220adc6d7 100644 (file)
@@ -43,8 +43,8 @@ struct S10 {
     struct S12 {
       enum E12 {A12, B12, C12};
       union U12 {
-        int a;
-        char c;
+       int a;
+       char c;
       };
 
       int i12;
@@ -52,88 +52,88 @@ struct S10 {
       U12 u12;
 
       struct S13 {
-        enum E13 {A13, B13, C13};
-        union U13 {
-          int a;
-          char c;
-        };
-
-        int i13;
-        E13 e13;
-        U13 u13;
-
-        struct S14 {
-          enum E14 {A14, B14, C14};
-          union U14 {
-            int a;
-            char c;
-          };
-
-          int i14;
-          E14 e14;
-          U14 u14;
-
-          struct S15 {
-            enum E15 {A15, B15, C15};
-            union U15 {
-              int a;
-              char c;
-            };
-
-            int i15;
-            E15 e15;
-            U15 u15;
-
-            struct S16 {
-              enum E16 {A16, B16, C16};
-              union U16 {
-                int a;
-                char c;
-              };
-
-              int i16;
-              E16 e16;
-              U16 u16;
-
-              struct S17 {
-                enum E17 {A17, B17, C17};
-                union U17 {
-                  int a;
-                  char c;
-                };
-
-                int i17;
-                E17 e17;
-                U17 u17;
-
-                struct S18 {
-                  enum E18 {A18, B18, C18};
-                  union U18 {
-                    int a;
-                    char c;
-                  };
-
-                  int i18;
-                  E18 e18;
-                  U18 u18;
-
-                  struct S19 {
-                    enum E19 {A19, B19, C19};
-                    union U19 {
-                      int a;
-                      char c;
-                    };
-
-                    int i19;
-                    E19 e19;
-                    U19 u19;
-
-                  };
-                };
-              };
-            };
-          };
-        };
+       enum E13 {A13, B13, C13};
+       union U13 {
+         int a;
+         char c;
+       };
+
+       int i13;
+       E13 e13;
+       U13 u13;
+
+       struct S14 {
+         enum E14 {A14, B14, C14};
+         union U14 {
+           int a;
+           char c;
+         };
+
+         int i14;
+         E14 e14;
+         U14 u14;
+
+         struct S15 {
+           enum E15 {A15, B15, C15};
+           union U15 {
+             int a;
+             char c;
+           };
+
+           int i15;
+           E15 e15;
+           U15 u15;
+
+           struct S16 {
+             enum E16 {A16, B16, C16};
+             union U16 {
+               int a;
+               char c;
+             };
+
+             int i16;
+             E16 e16;
+             U16 u16;
+
+             struct S17 {
+               enum E17 {A17, B17, C17};
+               union U17 {
+                 int a;
+                 char c;
+               };
+
+               int i17;
+               E17 e17;
+               U17 u17;
+
+               struct S18 {
+                 enum E18 {A18, B18, C18};
+                 union U18 {
+                   int a;
+                   char c;
+                 };
+
+                 int i18;
+                 E18 e18;
+                 U18 u18;
+
+                 struct S19 {
+                   enum E19 {A19, B19, C19};
+                   union U19 {
+                     int a;
+                     char c;
+                   };
+
+                   int i19;
+                   E19 e19;
+                   U19 u19;
+
+                 };
+               };
+             };
+           };
+         };
+       };
       };
     };
   };
@@ -151,8 +151,8 @@ struct S10 {
     struct S22 {
       enum E22 {A22, B22, C22};
       union U22 {
-        int a;
-        char c;
+       int a;
+       char c;
       };
 
       int i22;
@@ -160,88 +160,88 @@ struct S10 {
       U22 u22;
 
       struct S23 {
-        enum E23 {A23, B23, C23};
-        union U23 {
-          int a;
-          char c;
-        };
-
-        int i23;
-        E23 e23;
-        U23 u23;
-
-        struct S24 {
-          enum E24 {A24, B24, C24};
-          union U24 {
-            int a;
-            char c;
-          };
-
-          int i24;
-          E24 e24;
-          U24 u24;
-
-          struct S25 {
-            enum E25 {A25, B25, C25};
-            union U25 {
-              int a;
-              char c;
-            };
-
-            int i25;
-            E25 e25;
-            U25 u25;
-
-            struct S26 {
-              enum E26 {A26, B26, C26};
-              union U26 {
-                int a;
-                char c;
-              };
-
-              int i26;
-              E26 e26;
-              U26 u26;
-
-              struct S27 {
-                enum E27 {A27, B27, C27};
-                union U27 {
-                  int a;
-                  char c;
-                };
-
-                int i27;
-                E27 e27;
-                U27 u27;
-
-                struct S28 {
-                  enum E28 {A28, B28, C28};
-                  union U28 {
-                    int a;
-                    char c;
-                  };
-
-                  int i28;
-                  E28 e28;
-                  U28 u28;
-
-                  struct S29 {
-                    enum E29 {A29, B29, C29};
-                    union U29 {
-                      int a;
-                      char c;
-                    };
-
-                    int i29;
-                    E29 e29;
-                    U29 u29;
-
-                  };
-                };
-              };
-            };
-          };
-        };
+       enum E23 {A23, B23, C23};
+       union U23 {
+         int a;
+         char c;
+       };
+
+       int i23;
+       E23 e23;
+       U23 u23;
+
+       struct S24 {
+         enum E24 {A24, B24, C24};
+         union U24 {
+           int a;
+           char c;
+         };
+
+         int i24;
+         E24 e24;
+         U24 u24;
+
+         struct S25 {
+           enum E25 {A25, B25, C25};
+           union U25 {
+             int a;
+             char c;
+           };
+
+           int i25;
+           E25 e25;
+           U25 u25;
+
+           struct S26 {
+             enum E26 {A26, B26, C26};
+             union U26 {
+               int a;
+               char c;
+             };
+
+             int i26;
+             E26 e26;
+             U26 u26;
+
+             struct S27 {
+               enum E27 {A27, B27, C27};
+               union U27 {
+                 int a;
+                 char c;
+               };
+
+               int i27;
+               E27 e27;
+               U27 u27;
+
+               struct S28 {
+                 enum E28 {A28, B28, C28};
+                 union U28 {
+                   int a;
+                   char c;
+                 };
+
+                 int i28;
+                 E28 e28;
+                 U28 u28;
+
+                 struct S29 {
+                   enum E29 {A29, B29, C29};
+                   union U29 {
+                     int a;
+                     char c;
+                   };
+
+                   int i29;
+                   E29 e29;
+                   U29 u29;
+
+                 };
+               };
+             };
+           };
+         };
+       };
       };
     };
   };
@@ -259,8 +259,8 @@ struct S10 {
     struct S32 {
       enum E32 {A32, B32, C32};
       union U32 {
-        int a;
-        char c;
+       int a;
+       char c;
       };
 
       int i32;
@@ -268,88 +268,88 @@ struct S10 {
       U32 u32;
 
       struct S33 {
-        enum E33 {A33, B33, C33};
-        union U33 {
-          int a;
-          char c;
-        };
-
-        int i33;
-        E33 e33;
-        U33 u33;
-
-        struct S34 {
-          enum E34 {A34, B34, C34};
-          union U34 {
-            int a;
-            char c;
-          };
-
-          int i34;
-          E34 e34;
-          U34 u34;
-
-          struct S35 {
-            enum E35 {A35, B35, C35};
-            union U35 {
-              int a;
-              char c;
-            };
-
-            int i35;
-            E35 e35;
-            U35 u35;
-
-            struct S36 {
-              enum E36 {A36, B36, C36};
-              union U36 {
-                int a;
-                char c;
-              };
-
-              int i36;
-              E36 e36;
-              U36 u36;
-
-              struct S37 {
-                enum E37 {A37, B37, C37};
-                union U37 {
-                  int a;
-                  char c;
-                };
-
-                int i37;
-                E37 e37;
-                U37 u37;
-
-                struct S38 {
-                  enum E38 {A38, B38, C38};
-                  union U38 {
-                    int a;
-                    char c;
-                  };
-
-                  int i38;
-                  E38 e38;
-                  U38 u38;
-
-                  struct S39 {
-                    enum E39 {A39, B39, C39};
-                    union U39 {
-                      int a;
-                      char c;
-                    };
-
-                    int i39;
-                    E39 e39;
-                    U39 u39;
-
-                  };
-                };
-              };
-            };
-          };
-        };
+       enum E33 {A33, B33, C33};
+       union U33 {
+         int a;
+         char c;
+       };
+
+       int i33;
+       E33 e33;
+       U33 u33;
+
+       struct S34 {
+         enum E34 {A34, B34, C34};
+         union U34 {
+           int a;
+           char c;
+         };
+
+         int i34;
+         E34 e34;
+         U34 u34;
+
+         struct S35 {
+           enum E35 {A35, B35, C35};
+           union U35 {
+             int a;
+             char c;
+           };
+
+           int i35;
+           E35 e35;
+           U35 u35;
+
+           struct S36 {
+             enum E36 {A36, B36, C36};
+             union U36 {
+               int a;
+               char c;
+             };
+
+             int i36;
+             E36 e36;
+             U36 u36;
+
+             struct S37 {
+               enum E37 {A37, B37, C37};
+               union U37 {
+                 int a;
+                 char c;
+               };
+
+               int i37;
+               E37 e37;
+               U37 u37;
+
+               struct S38 {
+                 enum E38 {A38, B38, C38};
+                 union U38 {
+                   int a;
+                   char c;
+                 };
+
+                 int i38;
+                 E38 e38;
+                 U38 u38;
+
+                 struct S39 {
+                   enum E39 {A39, B39, C39};
+                   union U39 {
+                     int a;
+                     char c;
+                   };
+
+                   int i39;
+                   E39 e39;
+                   U39 u39;
+
+                 };
+               };
+             };
+           };
+         };
+       };
       };
     };
   };
@@ -367,8 +367,8 @@ struct S10 {
     struct S42 {
       enum E42 {A42, B42, C42};
       union U42 {
-        int a;
-        char c;
+       int a;
+       char c;
       };
 
       int i42;
@@ -376,88 +376,88 @@ struct S10 {
       U42 u42;
 
       struct S43 {
-        enum E43 {A43, B43, C43};
-        union U43 {
-          int a;
-          char c;
-        };
-
-        int i43;
-        E43 e43;
-        U43 u43;
-
-        struct S44 {
-          enum E44 {A44, B44, C44};
-          union U44 {
-            int a;
-            char c;
-          };
-
-          int i44;
-          E44 e44;
-          U44 u44;
-
-          struct S45 {
-            enum E45 {A45, B45, C45};
-            union U45 {
-              int a;
-              char c;
-            };
-
-            int i45;
-            E45 e45;
-            U45 u45;
-
-            struct S46 {
-              enum E46 {A46, B46, C46};
-              union U46 {
-                int a;
-                char c;
-              };
-
-              int i46;
-              E46 e46;
-              U46 u46;
-
-              struct S47 {
-                enum E47 {A47, B47, C47};
-                union U47 {
-                  int a;
-                  char c;
-                };
-
-                int i47;
-                E47 e47;
-                U47 u47;
-
-                struct S48 {
-                  enum E48 {A48, B48, C48};
-                  union U48 {
-                    int a;
-                    char c;
-                  };
-
-                  int i48;
-                  E48 e48;
-                  U48 u48;
-
-                  struct S49 {
-                    enum E49 {A49, B49, C49};
-                    union U49 {
-                      int a;
-                      char c;
-                    };
-
-                    int i49;
-                    E49 e49;
-                    U49 u49;
-
-                  };
-                };
-              };
-            };
-          };
-        };
+       enum E43 {A43, B43, C43};
+       union U43 {
+         int a;
+         char c;
+       };
+
+       int i43;
+       E43 e43;
+       U43 u43;
+
+       struct S44 {
+         enum E44 {A44, B44, C44};
+         union U44 {
+           int a;
+           char c;
+         };
+
+         int i44;
+         E44 e44;
+         U44 u44;
+
+         struct S45 {
+           enum E45 {A45, B45, C45};
+           union U45 {
+             int a;
+             char c;
+           };
+
+           int i45;
+           E45 e45;
+           U45 u45;
+
+           struct S46 {
+             enum E46 {A46, B46, C46};
+             union U46 {
+               int a;
+               char c;
+             };
+
+             int i46;
+             E46 e46;
+             U46 u46;
+
+             struct S47 {
+               enum E47 {A47, B47, C47};
+               union U47 {
+                 int a;
+                 char c;
+               };
+
+               int i47;
+               E47 e47;
+               U47 u47;
+
+               struct S48 {
+                 enum E48 {A48, B48, C48};
+                 union U48 {
+                   int a;
+                   char c;
+                 };
+
+                 int i48;
+                 E48 e48;
+                 U48 u48;
+
+                 struct S49 {
+                   enum E49 {A49, B49, C49};
+                   union U49 {
+                     int a;
+                     char c;
+                   };
+
+                   int i49;
+                   E49 e49;
+                   U49 u49;
+
+                 };
+               };
+             };
+           };
+         };
+       };
       };
     };
   };
@@ -475,8 +475,8 @@ struct S10 {
     struct S52 {
       enum E52 {A52, B52, C52};
       union U52 {
-        int a;
-        char c;
+       int a;
+       char c;
       };
 
       int i52;
@@ -484,88 +484,88 @@ struct S10 {
       U52 u52;
 
       struct S53 {
-        enum E53 {A53, B53, C53};
-        union U53 {
-          int a;
-          char c;
-        };
-
-        int i53;
-        E53 e53;
-        U53 u53;
-
-        struct S54 {
-          enum E54 {A54, B54, C54};
-          union U54 {
-            int a;
-            char c;
-          };
-
-          int i54;
-          E54 e54;
-          U54 u54;
-
-          struct S55 {
-            enum E55 {A55, B55, C55};
-            union U55 {
-              int a;
-              char c;
-            };
-
-            int i55;
-            E55 e55;
-            U55 u55;
-
-            struct S56 {
-              enum E56 {A56, B56, C56};
-              union U56 {
-                int a;
-                char c;
-              };
-
-              int i56;
-              E56 e56;
-              U56 u56;
-
-              struct S57 {
-                enum E57 {A57, B57, C57};
-                union U57 {
-                  int a;
-                  char c;
-                };
-
-                int i57;
-                E57 e57;
-                U57 u57;
-
-                struct S58 {
-                  enum E58 {A58, B58, C58};
-                  union U58 {
-                    int a;
-                    char c;
-                  };
-
-                  int i58;
-                  E58 e58;
-                  U58 u58;
-
-                  struct S59 {
-                    enum E59 {A59, B59, C59};
-                    union U59 {
-                      int a;
-                      char c;
-                    };
-
-                    int i59;
-                    E59 e59;
-                    U59 u59;
-
-                  };
-                };
-              };
-            };
-          };
-        };
+       enum E53 {A53, B53, C53};
+       union U53 {
+         int a;
+         char c;
+       };
+
+       int i53;
+       E53 e53;
+       U53 u53;
+
+       struct S54 {
+         enum E54 {A54, B54, C54};
+         union U54 {
+           int a;
+           char c;
+         };
+
+         int i54;
+         E54 e54;
+         U54 u54;
+
+         struct S55 {
+           enum E55 {A55, B55, C55};
+           union U55 {
+             int a;
+             char c;
+           };
+
+           int i55;
+           E55 e55;
+           U55 u55;
+
+           struct S56 {
+             enum E56 {A56, B56, C56};
+             union U56 {
+               int a;
+               char c;
+             };
+
+             int i56;
+             E56 e56;
+             U56 u56;
+
+             struct S57 {
+               enum E57 {A57, B57, C57};
+               union U57 {
+                 int a;
+                 char c;
+               };
+
+               int i57;
+               E57 e57;
+               U57 u57;
+
+               struct S58 {
+                 enum E58 {A58, B58, C58};
+                 union U58 {
+                   int a;
+                   char c;
+                 };
+
+                 int i58;
+                 E58 e58;
+                 U58 u58;
+
+                 struct S59 {
+                   enum E59 {A59, B59, C59};
+                   union U59 {
+                     int a;
+                     char c;
+                   };
+
+                   int i59;
+                   E59 e59;
+                   U59 u59;
+
+                 };
+               };
+             };
+           };
+         };
+       };
       };
     };
   };
index c1ed9bfebffc0bb37943ede510ba60aee66cea89..e9a25fcaf65c26bce0a2763de6d5fca9a52bcaa2 100644 (file)
@@ -20,4 +20,3 @@ main ()
 {
   return 0;
 }
-
index e3ea8744fd7f73870b234205ee9caa5fd73460b1..e80c83ccb112310f0ca3cc5050ffeeaca8c40d4e 100644 (file)
@@ -12,7 +12,7 @@ namespace A
       int abc = 33;
 
       int second(){
-        return 0;
+       return 0;
       }
 
     }
index 39a3480ef57d843d07395c248bc85cb5b9e2fd7f..152da4045612bbf0efaedd598690c0a3959b50d6 100644 (file)
@@ -63,4 +63,3 @@ with_test_prefix "A::B::C::second scope" {
     gdb_test "print ab" "= 22"
     gdb_test "print abc" "= 33"
 }
-
index dcf0ba99e225c52fae20987a53812b422cee435d..ec98b3166c64bf66c4815a55b5d35150a4ac6475 100644 (file)
@@ -120,14 +120,14 @@ int marker1 ()
   int total = 0;
     {
       int b = 1;
-        {
-          using namespace A;
-          int c = 2;
-            {
-              int d = 3;
-              total = _a + b + c + d + marker2 (); // marker1 stop
-            }
-        }
+       {
+         using namespace A;
+         int c = 2;
+           {
+             int d = 3;
+             total = _a + b + c + d + marker2 (); // marker1 stop
+           }
+       }
     }
   return marker2 () + total;
 }
index c3f185b810a4b1ba2890fd0dfbaf7c290c6f779b..d9b31f1dd5cb2fd5645fce73b21e77e20ccfcfcf 100644 (file)
@@ -113,7 +113,7 @@ int test10 () {
 
 //      - S1 is a subsequence of S2
 int foo101 (volatile const char*) { return 217; } // array-to-pointer conversion
-                                                 // plus qualification conversion
+                                                // plus qualification conversion
 int foo101 (         const char*) { return 218; } // array-to-pointer conversion
 
 int test101 () {
@@ -136,7 +136,7 @@ int test11 () {
       Function F1 is better than function F2 if: */
 //    - F1 is a non-template function and F2 is a template function
 template<class T> int foo12(T)   { return 41; }
-                  int foo12(int) { return 42; }
+                 int foo12(int) { return 42; }
 int test12 (){
   return foo12(1); //42
 }
index 3fe2011b9b782e749648a3649ea7cb84c3898403..f403e8b3a89803f848977981f4f3f8f642b85f6a 100644 (file)
@@ -41,9 +41,9 @@ int overloadargs (int a1, int a2, int a3, int a4, int a5, int a6, int a7);
 int overloadargs (int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8);
 int overloadargs (int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9);
 int overloadargs (int a1, int a2, int a3, int a4, int a5, int a6, int a7,
-                   int a8, int a9, int a10);
+                  int a8, int a9, int a10);
 int overloadargs (int a1, int a2, int a3, int a4, int a5, int a6, int a7,
-                   int a8, int a9, int a10, int a11);
+                  int a8, int a9, int a10, int a11);
 
 };
 
@@ -221,26 +221,26 @@ int foo::overloadargs (int a1, int a2, int a3, int a4, int a5, int a6, int a7)
 return 7;}
 
 int foo::overloadargs (int a1, int a2, int a3, int a4, int a5, int a6, int a7,
-                   int a8)
+                  int a8)
 { a1 = a2 = a3 = a4 = a5 = a6 = a7 = a8 = 0;
 return 8;}
 
 int foo::overloadargs (int a1, int a2, int a3, int a4, int a5, int a6, int a7,
-                   int a8, int a9)
+                  int a8, int a9)
 {
   a1 = a2 = a3 = a4 = a5 = a6 = a7 = a8 = a9 = 0;
   return 9;
 }
 
 int foo::overloadargs (int a1, int a2, int a3, int a4, int a5, int a6, int a7,
-                   int a8, int a9, int a10)
-                        { a1 = a2 = a3 = a4 = a5 = a6 = a7 = a8 = a9 =
-                          a10 = 0; return 10;}
+                  int a8, int a9, int a10)
+                       { a1 = a2 = a3 = a4 = a5 = a6 = a7 = a8 = a9 =
+                         a10 = 0; return 10;}
 
 int foo::overloadargs (int a1, int a2, int a3, int a4, int a5, int a6, int a7,
-                   int a8, int a9, int a10, int a11)
-                        { a1 = a2 = a3 = a4 = a5 = a6 = a7 = a8 = a9 =
-                          a10 = a11 = 0; return 11;}
+                  int a8, int a9, int a10, int a11)
+                       { a1 = a2 = a3 = a4 = a5 = a6 = a7 = a8 = a9 =
+                         a10 = a11 = 0; return 11;}
 
 
 
index aa1daa496fbf811a0ada17c09e212707727d9ef3..a1c6cc0e809bf6dea05ac66623da945793126a8d 100644 (file)
@@ -144,13 +144,13 @@ gdb_test "print foo_instance1.overloadfnarg(23, intintfunc)" " = 23"
 
 gdb_test_multiple "frame" "re-selected 'main' frame after inferior call" {
     -re "#0  marker1.*$gdb_prompt $" {
-        setup_kfail "gdb/1155" s390-*-linux-gnu
-        fail "re-selected 'main' frame after inferior call"
-        gdb_test "finish" ".*main.*at .*overload.cc:.*// marker1-returns-here.*" \
-            "finish call to marker1"
+       setup_kfail "gdb/1155" s390-*-linux-gnu
+       fail "re-selected 'main' frame after inferior call"
+       gdb_test "finish" ".*main.*at .*overload.cc:.*// marker1-returns-here.*" \
+           "finish call to marker1"
     }
     -re "#1  ($hex in )?main.*$gdb_prompt $" {
-        pass "re-selected 'main' frame after inferior call"
+       pass "re-selected 'main' frame after inferior call"
     }
 }
 
index adbaa16d2397786d5c8b1fdc8e1e366857ff5561..b8020f4454608029208d7c0ccc4070219a2b5ca6 100644 (file)
@@ -34,9 +34,9 @@ int overloadargs (int a1, int a2, int a3, int a4, int a5, int a6, int a7);
 int overloadargs (int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8);
 int overloadargs (int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9);
 int overloadargs (int a1, int a2, int a3, int a4, int a5, int a6, int a7,
-                   int a8, int a9, int a10);
+                  int a8, int a9, int a10);
 int overloadargs (int a1, int a2, int a3, int a4, int a5, int a6, int a7,
-                   int a8, int a9, int a10, int a11);
+                  int a8, int a9, int a10, int a11);
 
 
 };
@@ -171,26 +171,26 @@ int foo::overloadargs (int a1, int a2, int a3, int a4, int a5, int a6, int a7)
 return 7;}
 
 int foo::overloadargs (int a1, int a2, int a3, int a4, int a5, int a6, int a7,
-                   int a8)
+                  int a8)
 { a1 = a2 = a3 = a4 = a5 = a6 = a7 = a8 = 0;
 return 8;}
 
 int foo::overloadargs (int a1, int a2, int a3, int a4, int a5, int a6, int a7,
-                   int a8, int a9)
+                  int a8, int a9)
 {
   a1 = a2 = a3 = a4 = a5 = a6 = a7 = a8 = a9 = 0;
   return 9;
 }
 
 int foo::overloadargs (int a1, int a2, int a3, int a4, int a5, int a6, int a7,
-                   int a8, int a9, int a10)
-                        { a1 = a2 = a3 = a4 = a5 = a6 = a7 = a8 = a9 =
-                          a10 = 0; return 10;}
+                  int a8, int a9, int a10)
+                       { a1 = a2 = a3 = a4 = a5 = a6 = a7 = a8 = a9 =
+                         a10 = 0; return 10;}
 
 int foo::overloadargs (int a1, int a2, int a3, int a4, int a5, int a6, int a7,
-                   int a8, int a9, int a10, int a11)
-                        { a1 = a2 = a3 = a4 = a5 = a6 = a7 = a8 = a9 =
-                          a10 = a11 = 0; return 11;}
+                  int a8, int a9, int a10, int a11)
+                       { a1 = a2 = a3 = a4 = a5 = a6 = a7 = a8 = a9 =
+                         a10 = a11 = 0; return 11;}
 
 
 void foo::foofunc (int a)
@@ -200,4 +200,3 @@ void foo::foofunc (int a)
 void foo::foofunc (int b, signed char *c)
 {
 }
-
index 9b8c6d19fa820e0132e3e40870ba30c2b20e4df7..9165ca7f35589a50c93618431533bd9786b37ea4 100644 (file)
@@ -55,8 +55,8 @@ if {![runto_main]} {
 proc take_gdb_out_of_choice_menu {} {
     global gdb_prompt
     gdb_test_multiple " " " " {
-        -re ".*$gdb_prompt $" {
-        }
+       -re ".*$gdb_prompt $" {
+       }
        timeout {
            perror "could not resynchronize to command prompt (timeout)"
            continue
@@ -119,24 +119,24 @@ proc set_bp_overloaded {name expectedmenu mychoice bpnumber linenumbers} {
                -re "$gdb_prompt $" {
                    gdb_assert {!$bad_bp && $seen_bps == $expected_bps} \
                        $gdb_test_name
-                }
-                timeout {
-                    fail "$gdb_test_name (timeout)"
-                    take_gdb_out_of_choice_menu
-                }
-            }
-        }
-        -re ".*\r\n> " {
-            fail "$gdb_test_name (bad menu)"
-            take_gdb_out_of_choice_menu
-        }
-        -re ".*$gdb_prompt $" {
-            fail "$gdb_test_name (no menu)"
-        }
-        timeout {
-            fail "$gdb_test_name (timeout)"
-            take_gdb_out_of_choice_menu
-        }
+               }
+               timeout {
+                   fail "$gdb_test_name (timeout)"
+                   take_gdb_out_of_choice_menu
+               }
+           }
+       }
+       -re ".*\r\n> " {
+           fail "$gdb_test_name (bad menu)"
+           take_gdb_out_of_choice_menu
+       }
+       -re ".*$gdb_prompt $" {
+           fail "$gdb_test_name (no menu)"
+       }
+       timeout {
+           fail "$gdb_test_name (timeout)"
+           take_gdb_out_of_choice_menu
+       }
     }
 }
 
@@ -186,18 +186,18 @@ foreach type $all_types {
 
     # Probe for the actual type.
     gdb_test_multiple "print &foo::overload1arg($types($type))" \
-        "probe $types($type)" {
-            -re ".*\<foo::.*\>.*$gdb_prompt $" {
-               regexp {<.*>} $expect_out(0,string) func
-               regexp {\(.*\)} $func real_type
-
-               # Store the real type into TYPES.
-               set types($type) [string trim $real_type {()}]
-
-               # Create an inverse mapping of the actual type to
-               # the synthetic type.
-               set type_map("$types($type)") $type
-               pass "detect $type"
+       "probe $types($type)" {
+           -re ".*\<foo::.*\>.*$gdb_prompt $" {
+               regexp {<.*>} $expect_out(0,string) func
+               regexp {\(.*\)} $func real_type
+
+               # Store the real type into TYPES.
+               set types($type) [string trim $real_type {()}]
+
+               # Create an inverse mapping of the actual type to
+               # the synthetic type.
+               set type_map("$types($type)") $type
+               pass "detect $type"
            }
     }
 }
@@ -256,35 +256,35 @@ gdb_test "info break" $bptable "breakpoint info, after setting one-by-one"
 send_gdb "break foo::overload1arg\n"
 gdb_expect {
     -re "$menu_overload1arg" {
-        pass "bp menu for foo::overload1arg choice cancel"
-        # Choose cancel.
-        send_gdb "0\n"
-        gdb_expect {
-            -re "canceled\r\n$gdb_prompt $" {
-                pass "set bp on overload1arg canceled"
-            }
+       pass "bp menu for foo::overload1arg choice cancel"
+       # Choose cancel.
+       send_gdb "0\n"
+       gdb_expect {
+           -re "canceled\r\n$gdb_prompt $" {
+               pass "set bp on overload1arg canceled"
+           }
            -re "cancelled\r\n$gdb_prompt $" {
                pass "set bp on overload1arg canceled"
            }
-            -re ".*$gdb_prompt $" {
-                fail "set bp on overload1arg canceled (bad message)"
-            }
-            timeout {
-                fail "set bp on overload1arg canceled (timeout)"
-                take_gdb_out_of_choice_menu
-            }
-        }
+           -re ".*$gdb_prompt $" {
+               fail "set bp on overload1arg canceled (bad message)"
+           }
+           timeout {
+               fail "set bp on overload1arg canceled (timeout)"
+               take_gdb_out_of_choice_menu
+           }
+       }
     }
     -re ".*\r\n> " {
-        fail "bp menu for foo::overload1arg choice cancel (bad menu)"
-        take_gdb_out_of_choice_menu
+       fail "bp menu for foo::overload1arg choice cancel (bad menu)"
+       take_gdb_out_of_choice_menu
     }
     -re ".*$gdb_prompt $" {
-        fail "bp menu for foo::overload1arg choice cancel (no menu)"
+       fail "bp menu for foo::overload1arg choice cancel (no menu)"
     }
     timeout {
-        fail "bp menu for foo::overload1arg choice cancel (timeout)"
-        take_gdb_out_of_choice_menu
+       fail "bp menu for foo::overload1arg choice cancel (timeout)"
+       take_gdb_out_of_choice_menu
     }
 }
 
@@ -310,15 +310,15 @@ with_test_prefix "multiple breakpoints" {
 send_gdb "delete breakpoints\n"
 gdb_expect {
     -re "Delete all breakpoints, watchpoints, tracepoints, and catchpoints.* $" {
-        send_gdb "y\n"
-        gdb_expect {
-            -re ".*$gdb_prompt $" {
+       send_gdb "y\n"
+       gdb_expect {
+           -re ".*$gdb_prompt $" {
                pass "delete all breakpoints, watchpoints, tracepoints, and catchpoints"
-            }
-            timeout {
+           }
+           timeout {
                fail "delete all breakpoints, watchpoints, tracepoints, and catchpoints (timeout)"
-            }
-        }
+           }
+       }
     }
     timeout {
        fail "delete all breakpoints, watchpoints, tracepoints, and catchpoints (timeout)"
@@ -336,32 +336,32 @@ incr bpnum
 send_gdb "break foo::overload1arg\n"
 gdb_expect {
     -re "$menu_overload1arg" {
-        pass "bp menu for foo::overload1arg choice all"
-        # Choose all.
-        send_gdb "1\n"
-        gdb_expect {
+       pass "bp menu for foo::overload1arg choice all"
+       # Choose all.
+       send_gdb "1\n"
+       gdb_expect {
            -re "Breakpoint $bpnum at $hex: foo::overload1arg. .12 locations.\r\n.*$gdb_prompt $" {
-                pass "set bp on overload1arg all"
-            }
-            -re ".*$gdb_prompt $" {
-                fail "set bp on overload1arg all (bad message)"
-            }
-            timeout {
-                fail "set bp on overload1arg all (timeout)"
-                take_gdb_out_of_choice_menu
-            }
-        }
+               pass "set bp on overload1arg all"
+           }
+           -re ".*$gdb_prompt $" {
+               fail "set bp on overload1arg all (bad message)"
+           }
+           timeout {
+               fail "set bp on overload1arg all (timeout)"
+               take_gdb_out_of_choice_menu
+           }
+       }
     }
     -re ".*\r\n> " {
-        fail "bp menu for foo::overload1arg choice all (bad menu)"
-        take_gdb_out_of_choice_menu
+       fail "bp menu for foo::overload1arg choice all (bad menu)"
+       take_gdb_out_of_choice_menu
     }
     -re ".*$gdb_prompt $" {
-        fail "bp menu for foo::overload1arg choice all (no menu)"
+       fail "bp menu for foo::overload1arg choice all (no menu)"
     }
     timeout {
-        fail "bp menu for foo::overload1arg choice all (timeout)"
-        take_gdb_out_of_choice_menu
+       fail "bp menu for foo::overload1arg choice all (timeout)"
+       take_gdb_out_of_choice_menu
     }
 }
 
@@ -382,32 +382,32 @@ proc continue_to_bp_overloaded {bpnumber might_fail line argtype argument} {
     global gdb_prompt hex decimal srcfile bkptno_num_re
 
     if {$argument == ""} {
-        set actuals ""
+       set actuals ""
     } else {
-        set actuals "arg=$argument"
-        if {[regexp {char} $argtype]} {
+       set actuals "arg=$argument"
+       if {[regexp {char} $argtype]} {
            append actuals " \\'\\\\00$argument\\'"
       }
     }
 
     if {[string match $argtype "void"]} {
-        set body "return $decimal;"
+       set body "return $decimal;"
     } else {
-        set body "arg = 0; return $decimal;"
+       set body "arg = 0; return $decimal;"
     }
 
     gdb_test_multiple "continue" "continue to bp overloaded : $argtype" {
-        -re "Continuing.\r\n\r\nBreakpoint $bkptno_num_re, foo::overload1arg \\(this=${hex}(, )?$actuals\\) at .*$srcfile:$line\r\n$decimal\[\t \]+{ $body }.*$gdb_prompt $" {
-            pass "continue to bp overloaded : $argtype"
-        }
-
-        -re "Continuing.\r\n\r\nBreakpoint $bkptno_num_re, foo::overload1arg \\(this=${hex}, arg=.*\\) at .*$srcfile:$line\r\n$decimal\[\t \]+{ $body }.*$gdb_prompt $" {
-            if {$might_kfail} {
-                kfail "c++/8130" "continue to bp overloaded : $argtype"
-            } else {
-                fail "continue to bp overloaded : $argtype"
-            }
-        }
+       -re "Continuing.\r\n\r\nBreakpoint $bkptno_num_re, foo::overload1arg \\(this=${hex}(, )?$actuals\\) at .*$srcfile:$line\r\n$decimal\[\t \]+{ $body }.*$gdb_prompt $" {
+           pass "continue to bp overloaded : $argtype"
+       }
+
+       -re "Continuing.\r\n\r\nBreakpoint $bkptno_num_re, foo::overload1arg \\(this=${hex}, arg=.*\\) at .*$srcfile:$line\r\n$decimal\[\t \]+{ $body }.*$gdb_prompt $" {
+           if {$might_kfail} {
+               kfail "c++/8130" "continue to bp overloaded : $argtype"
+           } else {
+               fail "continue to bp overloaded : $argtype"
+           }
+       }
     }
 }
 
index 6ed17587ecfb4e628e4213b16c48432d6bf0aff9..92664a9d1e1f275386ae4af87c2261f6e4c249c2 100644 (file)
@@ -38,4 +38,3 @@ main ()
   p->foo ();
   return 0;
 }
-
index 4c1266663fbf93f79fba6561f425cceac6992740..70cb692ca5d49b86cde17f4af9695ee58f2e0221 100644 (file)
@@ -113,11 +113,11 @@ proc generate_member_function { classname signature length state } {
        explicit {
            set declaration "$signature;\n"
            set definition "$classname\:\:$signature
-                            {
-                              data\[0\] = $CUSTOM;
-                              data\[[expr {$length - 1}]\] = $CUSTOM;
-                              tracer = $TRACE;
-                            }\n"
+                           {
+                             data\[0\] = $CUSTOM;
+                             data\[[expr {$length - 1}]\] = $CUSTOM;
+                             tracer = $TRACE;
+                           }\n"
        }
        defaultedIn {
            set declaration "$signature = default;\n"
@@ -168,16 +168,16 @@ proc generate_class { classname length states } {
     /*** C++ class $classname ***/
     class ${classname} {
     public:
-        $classname (void);
-        $declarations
+       $classname (void);
+       $declarations
 
-        int data\[$length\];
+       int data\[$length\];
     };
 
     $classname\:\:$classname (void)
     {
-        data\[0\] = $ORIGINAL;
-        data\[[expr {$length - 1}]\] = $ORIGINAL;
+       data\[0\] = $ORIGINAL;
+       data\[[expr {$length - 1}]\] = $ORIGINAL;
     }
 
     $definitions
@@ -228,7 +228,7 @@ proc generate_container_class { states } {
     /*** Class that contains $contained ***/
     class $classname {
     public:
-        $contained item;
+       $contained item;
     };
 
     $classname ${classname}_var; /* global var */
index 5747e5da58d7966c0cf92cb68e621a3e3d4e43dc..19f9626544d6c8d40b88dd279cd2154d9dc3378c 100644 (file)
@@ -9,7 +9,7 @@ class B : virtual public A
 class C : public A
 {
      protected:
-         B myB;
+        B myB;
 };
 
 int main()
index 9ae840af8c45e46c92705aa9d45583ae9086981c..26fa2eb60eb5c0d8febf727bce601531fa17ea1f 100644 (file)
@@ -27,4 +27,3 @@ gdb_breakpoint [gdb_get_line_number "marker"]
 gdb_continue_to_breakpoint "marker"
 
 gdb_test "p a" "{static axis = {{static axis = <same as static member of an already.*"
-
index 0ba58bb3b540e5cfd3316deee90030c5c253e9d9..90ab234acc479f0b6a908c1094187ff0b106e96f 100644 (file)
@@ -6,4 +6,3 @@ struct X
 };
 
 X y();
-
index 4fec91e9b62c68f26f368d1d1acc532399b8f8d4..3adc7bb50075ded37493eac441454238f561eea0 100644 (file)
@@ -32,5 +32,3 @@ int main()
 
     return 0;          // marker
 }
-
-
index 09312669bc70d74668b19589a187e87828c801e8..2a0f1a0b96268b8e7db3d0538990e5fa2d573731 100644 (file)
@@ -40,4 +40,3 @@ if {[test_compiler_info {gcc-[0-3]-*}]
     setup_xfail *-*-*
 }
 gdb_test "p b" "{<A<int, B>> = {<ATB<int>> = {data = 0}, static DEFAULT_INSTANCE = <optimized out>}, <No data fields>}"
-
index c7bad49555268533bce5dbbce8cd358038e01cb6..5ca0425c43aebec81f908196539218aa9a2b0ce0 100644 (file)
@@ -85,10 +85,10 @@ gdb_test "print as\[3\]" ".\[0-9\]* = 3" "print value of as\[3\]"
 
 gdb_test_multiple "print rs" "print value of rs" {
     -re ".\[0-9\]* = \\(short &\\) @$hex: -1.*$gdb_prompt $" {
-        pass "print value of rs"
+       pass "print value of rs"
     }
     -re ".\[0-9\]* = \\(short int &\\) @$hex: -1.*$gdb_prompt $" {
-        pass "print value of rs"
+       pass "print value of rs"
     }
     eof { fail "print rs ($GDB dumped core) (FIXME)" ; gdb_start_again ; }
 }
@@ -216,19 +216,19 @@ gdb_test "print rUC" \
 
 gdb_test_multiple "print rS" "print value of rS" {
     -re ".\[0-9\]* = \\(short &\\) @$hex: -14.*$gdb_prompt $" {
-        pass "print value of rS"
+       pass "print value of rS"
     }
     -re ".\[0-9\]* = \\(short int &\\) @$hex: -14.*$gdb_prompt $" {
-        pass "print value of rS"
+       pass "print value of rS"
     }
 }
 
 gdb_test_multiple "print rUS" "print value of rUS" {
     -re ".\[0-9\]* = \\(unsigned short &\\) @$hex: 7.*$gdb_prompt $" {
-        pass "print value of rUS"
+       pass "print value of rUS"
     }
     -re ".\[0-9\]* = \\(short unsigned int &\\) @$hex: 7.*$gdb_prompt $" {
-        pass "print value of rUS"
+       pass "print value of rUS"
     }
 }
 
@@ -237,23 +237,23 @@ gdb_test "print rI" ".\[0-9\]* = \\(int &\\) @$hex: 102" \
 
 gdb_test "print rUI" \
     ".\[0-9\]* = \\(unsigned int &\\) @$hex: 1002" \
-        "print value of rUI"
+       "print value of rUI"
 
 gdb_test_multiple "print rL" "print value of rL" {
     -re ".\[0-9\]* = \\(long &\\) @$hex: -234.*$gdb_prompt $" {
-        pass "print value of rL"
+       pass "print value of rL"
     }
     -re ".\[0-9\]* = \\(long int &\\) @$hex: -234.*$gdb_prompt $" {
-        pass "print value of rL"
+       pass "print value of rL"
     }
 }
 
 gdb_test_multiple "print rUL" "print value of rUL" {
     -re ".\[0-9\]* = \\(unsigned long &\\) @$hex: 234.*$gdb_prompt $" {
-        pass "print value of rUL"
+       pass "print value of rUL"
     }
     -re ".\[0-9\]* = \\(long unsigned int &\\) @$hex: 234.*$gdb_prompt $" {
-        pass "print value of rUL"
+       pass "print value of rUL"
     }
 }
 
@@ -264,4 +264,3 @@ gdb_test "print rF" \
 gdb_test "print rD" \
     ".\[0-9\]* = \\(double &\\) @$hex: -1.375e-123.*" \
     "print value of rD"
-
index 596abe7136222f417041ee89280dcce887aa2d3f..90b91063352d5252d0dc0ee25fce59bcb400fc0d 100644 (file)
@@ -95,22 +95,22 @@ gdb_test "print rrUC" \
     "print value of rrUC"
 
 gdb_test "print rrS" "$decimal = \\(short( int)? &&\\) @$hex: -14" \
-                  "print value of rrS"
+                 "print value of rrS"
 
 gdb_test "print rrUS" \
-         "$decimal = \\(unsigned short( int)? &&\\) @$hex: 7" \
-         "print value of rrUS"
+        "$decimal = \\(unsigned short( int)? &&\\) @$hex: 7" \
+        "print value of rrUS"
 
 gdb_test "print rrI" "$decimal = \\(int &&\\) @$hex: 102" \
        "print value of rrI"
 
 gdb_test "print rrUI" \
     "$decimal = \\(unsigned int &&\\) @$hex: 1002" \
-        "print value of rrUI"
+       "print value of rrUI"
 
 gdb_test "print rrL" \
        "$decimal = \\(long( int)? &&\\) @$hex: -234" \
-         "print value of rrL"
+        "print value of rrL"
 
 gdb_test "print rrUL" \
     "$decimal = \\((unsigned long|long unsigned int)? &&\\) @$hex: 234" \
index 4c9fb12a7bbe95a89c3b7df2cb2782fabeec462a..5ffbed98a3db13d75d5e59f41e6525f7936385be 100644 (file)
@@ -18,23 +18,23 @@ public:
     y++; // marker1
 
       {
-        int x = 44;
-        y++; // marker2
-
-          {
-            int x = 55;
-            y++; // marker3
-
-              {
-                using namespace A;
-                y++; // marker4
-
-                {
-                  using A::x;
-                  y++; // marker5
-                }
-              }
-          }
+       int x = 44;
+       y++; // marker2
+
+         {
+           int x = 55;
+           y++; // marker3
+
+             {
+               using namespace A;
+               y++; // marker4
+
+               {
+                 using A::x;
+                 y++; // marker5
+               }
+             }
+         }
       }
     return 0;
   }
index 7141089fc15f010fb3b5f7e94d227263b462bc61..c51177524ff045141369d15acca34453674ab0a8 100644 (file)
@@ -158,4 +158,3 @@ int main(){
 
   return 0; // end of main
 }
-
index cc60aedc37633ab1394bdb3abc00fe8f72b731a0..6a7a0b06be203585b9ee6401552c6fdeda6a3cdb 100644 (file)
@@ -72,4 +72,3 @@ gdb_test "p c->foo()"         "= 66"
 gdb_test "p c->inta"          "= 77"
 
 gdb_test "p c2->inta"          "= 77"
-
index b58bf71bdf4a66a02b6db14110187a7acd155342..10e18d03bdc52f1d7fe44c861c25a8c5eafa0b37 100644 (file)
@@ -25,15 +25,15 @@ proc test_breakpoint {func result} {
     # Return to the top of the test function every time.
     delete_breakpoints
     if {![gdb_breakpoint test_function]} {
-        fail "set test_function breakpoint for $func"
+       fail "set test_function breakpoint for $func"
     } elseif {[gdb_test "continue" \
                   "Continuing.\r\n\r\nBreakpoint $DEC+,.*test_function.*" \
                   "continue to test_function for $func"] != 0} {
     } else {
-        gdb_breakpoint "$func"
-        gdb_test "continue" \
-            "Continuing.\r\n\r\nBreakpoint $DEC+,.*$result.*" \
-            "continue to $func"
+       gdb_breakpoint "$func"
+       gdb_test "continue" \
+           "Continuing.\r\n\r\nBreakpoint $DEC+,.*$result.*" \
+           "continue to $func"
     }
 }
 
index d0500d142e36477943df17491f2781f5c574b605..5dc00e837b1b33c3d9f8def230c155eeb29f4629 100644 (file)
@@ -28,7 +28,7 @@ const A A::INSTANCE = {};
 int main() {
     A a;
     if (a == A::INSTANCE) {
-        return -1;
+       return -1;
     }
     return 0;
 }
index 1f06dee61b6a37b51803e9265534e36fe7076920..11653cf80295de807db5194d30edbf1df55c9da6 100644 (file)
@@ -26,5 +26,5 @@ if {![runto_main]} {
 }
 
 gdb_test "print a" \
-         "static INSTANCE = <same as static member of an already seen type>}}.*" \
-         "print static member"
+        "static INSTANCE = <same as static member of an already seen type>}}.*" \
+        "print static member"
index 6dd4e660434285df0dc9e8b7d5d67a629394b707..9aeb6a774c739f1e68490dd8ac263c59d512a586 100644 (file)
@@ -76,18 +76,18 @@ proc test_ptype_of_templates {} {
     }
 
     gdb_test_multiple "ptype/r t5i" "ptype t5i" {
-        -re "type = class T5<int> \\{${ws}public:${ws}static int X;${ws}int x;${ws}int val;\r\n${ws}T5\\(int\\);${ws}T5\\(T5<int> const ?&\\);${ws}~T5\\((void|)\\);${ws}static void \\* operator new\\(unsigned( int| long)?\\);${ws}static void operator delete\\(void ?\\*\\);${ws}int value\\((void|)\\);${ws}\\}\r\n$gdb_prompt $" {
+       -re "type = class T5<int> \\{${ws}public:${ws}static int X;${ws}int x;${ws}int val;\r\n${ws}T5\\(int\\);${ws}T5\\(T5<int> const ?&\\);${ws}~T5\\((void|)\\);${ws}static void \\* operator new\\(unsigned( int| long)?\\);${ws}static void operator delete\\(void ?\\*\\);${ws}int value\\((void|)\\);${ws}\\}\r\n$gdb_prompt $" {
            xfail "ptype T5<int> -- with several fixes from 4.17 -- without size_t"
        }
-        -re "type = class T5<int> \\{${ws}public:${ws}static int X;${ws}int x;${ws}int val;\r\n${ws}T5 \\(int\\);${ws}T5 \\(const class T5<int> &\\);${ws}void ~T5 \\(\\);${ws}static void \\* new \\(unsigned int\\);${ws}static void delete \\(void ?\\*\\);${ws}int value \\((void|)\\);${ws}\\}\r\n$gdb_prompt $" {
+       -re "type = class T5<int> \\{${ws}public:${ws}static int X;${ws}int x;${ws}int val;\r\n${ws}T5 \\(int\\);${ws}T5 \\(const class T5<int> &\\);${ws}void ~T5 \\(\\);${ws}static void \\* new \\(unsigned int\\);${ws}static void delete \\(void ?\\*\\);${ws}int value \\((void|)\\);${ws}\\}\r\n$gdb_prompt $" {
            xfail "ptype t5i<int> -- new with unsigned int -- without size_t"
        }
-        -re "type = class T5<int> \\{${ws}public:${ws}static int X;${ws}int x;${ws}int val;\r\n${ws}T5 \\(int\\);${ws}T5 \\(const class T5<int> &\\);${ws}void ~T5 \\(\\);${ws}static void \\* new \\(unsigned long\\);${ws}static void delete \\(void ?\\*\\);${ws}int value \\((void|)\\);${ws}\\}\r\n$gdb_prompt $" {
+       -re "type = class T5<int> \\{${ws}public:${ws}static int X;${ws}int x;${ws}int val;\r\n${ws}T5 \\(int\\);${ws}T5 \\(const class T5<int> &\\);${ws}void ~T5 \\(\\);${ws}static void \\* new \\(unsigned long\\);${ws}static void delete \\(void ?\\*\\);${ws}int value \\((void|)\\);${ws}\\}\r\n$gdb_prompt $" {
            xfail "ptype t5i<int> -- new with unsigned long -- without size_t"
        }
-        -re "type = class T5<int> \{.*public:.*static int X;.*int x;.*int val;.*.*T5 \\(int\\);.*.*void ~T5 \\(\\).*.*.*int value \\((void|)\\);.*\}.*$gdb_prompt $" {
-            xfail "ptype t5i -- without size_t"
-        }
+       -re "type = class T5<int> \{.*public:.*static int X;.*int x;.*int val;.*.*T5 \\(int\\);.*.*void ~T5 \\(\\).*.*.*int value \\((void|)\\);.*\}.*$gdb_prompt $" {
+           xfail "ptype t5i -- without size_t"
+       }
        -re "type = class T5<int> \{${ws}public:${ws}static int X;${ws}int x;${ws}int val;${ws}T5<int> & operator=\\(T5<int> const ?&\\);${ws}T5\\(int\\);${ws}T5\\((T5<int> const|const T5<int>) ?&\\);${ws}~T5\\((void|)\\);${ws}static void \\* operator new\\(unsigned( int| long)?\\);${ws}static void operator delete\\(void ?\\*\\);${ws}int value\\((void|)\\);${ws}\}\r\n$gdb_prompt $" {
            xfail "ptype t5i -- without size_t"
        }
@@ -137,7 +137,7 @@ proc test_template_breakpoints {} {
                "nonsense intended to insure that this test fails" \
                "constructor breakpoint"
        }
-        -re ".*\n> $" {
+       -re ".*\n> $" {
            gdb_test "0" \
                    "nonsense intended to insure that this test fails" \
                    "constructor breakpoint (bad menu choices)"
@@ -160,7 +160,7 @@ proc test_template_breakpoints {} {
        "value method breakpoint"
 
     set bp_location [gdb_get_line_number \
-                         "set breakpoint on a line with no real code"]
+                        "set breakpoint on a line with no real code"]
 
     gdb_test_multiple "break ${testfile}.cc:${bp_location}" \
        "breakpoint on a line with no real code" {
@@ -204,9 +204,9 @@ proc test_template_calls {} {
        -re "Cannot invoke functions on this machine.*$gdb_prompt $" {
            fail "print t5i.value()"
        }
-        -re "Cannot resolve .* to any overloaded instance.*$gdb_prompt $" {
+       -re "Cannot resolve .* to any overloaded instance.*$gdb_prompt $" {
            setup_xfail hppa*-*-* CLLbs16899
-            xfail "print t5i.value"
+           xfail "print t5i.value"
        }
     }
 }
index a6780da7e06f62d236a92941385bd16c1db01fc2..2a2164d314a745de30a161f91550ab56f5bd6383 100644 (file)
@@ -28,5 +28,5 @@ if {![runto_main]} {
 }
 
 gdb_test "ptype C::x" \
-         "type = int" \
-         "ptype typedef base struct member"
+        "type = int" \
+        "ptype typedef base struct member"
index 05ff8b710a5e8ffed14b35120175255ad0534689..2a89b706c31a52c0376022f4ece1f2b92934387d 100644 (file)
@@ -49,13 +49,13 @@ gdb_test "print one + two" "\\\$\[0-9\]* = {x = 6, y = 8}"
 # that the rest of the tests can run undisturbed.
 gdb_test_multiple "frame" "re-selected 'main' frame after inferior call" {
     -re "#0  marker1.*$gdb_prompt $" {
-        setup_kfail "gdb/1155" s390-*-linux-gnu
-        fail "re-selected 'main' frame after inferior call"
-        gdb_test "finish" ".*main.*at .*userdef.cc:.*// marker1-returns-here.*" \
-                "finish call to marker1"
+       setup_kfail "gdb/1155" s390-*-linux-gnu
+       fail "re-selected 'main' frame after inferior call"
+       gdb_test "finish" ".*main.*at .*userdef.cc:.*// marker1-returns-here.*" \
+               "finish call to marker1"
     }
     -re "#1  ($hex in )?main.*$gdb_prompt $" {
-        pass "re-selected 'main' frame after inferior call"
+       pass "re-selected 'main' frame after inferior call"
     }
 }
 
index 4b6abd071d2695e1d3a95f61f42ca5e581cc690b..d18312be002d8ebce4be1328c275d1c34b4d4f2e 100644 (file)
@@ -41,7 +41,7 @@ if {![runto_main]} {
 
 proc make_scope_list { scopes } {
     if { [llength $scopes] == 1 } {
-        return [list "" "${scopes}::"]
+       return [list "" "${scopes}::"]
     }
 
     # Pop the first element, save the first scope.
@@ -55,7 +55,7 @@ proc make_scope_list { scopes } {
 
     # ... and a copy of the child's result with this scope.
     foreach r $child_result {
-        lappend result "${this_scope}::$r"
+       lappend result "${this_scope}::$r"
     }
 
     return $result
index e83e9c908c5db32361032a972d921b78ff43da2e..e458809c8bc63613216baf7f0de566af049153cf 100644 (file)
@@ -175,10 +175,10 @@ void test_calls()
        TEST(pBe->vvb(), 411);
        TEST(pDe->vvb(), 411);
 
-        TEST(pEe->vd(), 282);
-        TEST(pEe->fvb(), 311);
+       TEST(pEe->vd(), 282);
+       TEST(pEe->fvb(), 311);
 
-        TEST(pEe->D::vg(), 102);
+       TEST(pEe->D::vg(), 102);
        printf("Did %d tests, of which %d failed.\n", all_count, failed_count);
 }
 
index 9bb65562a029af02c34c53d8f8a733b4883e707e..d4c8eabc429b72f52119c8d190add1b1fccb2f90 100644 (file)
@@ -19,4 +19,3 @@ struct A {
   struct B *b;
   struct A *next;
 };
-
index 59f7315bdc77bdc1eee3fa1ad99d1f1db70d1962..bdbcdab6fb33dbe666c27e47c59e20db97910496 100644 (file)
@@ -19,4 +19,3 @@ struct B {
   struct C *c;
   int wombat;
 };
-
index 35bb401f55e5f56a72902b43b86ea577fba4124c..7a0cfda627c3c415095e0c0b4c282254fc245766 100644 (file)
@@ -153,4 +153,3 @@ with_debuginfod_env $cache {
 stop_debuginfod
 # Spare debug files may confuse testsuite runs in the future.
 remote_exec build "rm -f $debugfile"
-
index fc591a743ff89d15760ecedbdede6f2f4e7a13d4..7db70a25df4c57da2ae0eaf68b256ccef47c4e38 100644 (file)
@@ -105,4 +105,3 @@ clean_restart $::testfile
 all_fp_move_and_load_tests
 all_fp_arithmetic_tests
 all_fp_misc_tests
-
index d0ca68521fc7e169f9bcea412514bf2d0683b0f3..47379e07e1994fa5d15bb8f37a7696cc0ac9a748 100644 (file)
@@ -27,4 +27,3 @@ main (void)
   found ();
   return 0;
 }
-
index cc79062ea6d189f8a3371a283affb07c7d8252d4..06fc0bca9ff63c9be9a303671d6d11af9edf5ac8 100644 (file)
@@ -126,7 +126,7 @@ Dwarf::assemble $asm_file {
 }
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
-          [list $srcfile $asm_file] {nodebug}] } {
+         [list $srcfile $asm_file] {nodebug}] } {
     return -1
 }
 
index d16b779b57c593484d89d238c77a12377dc29111..8484b84f22f6e850228617854c58750bce7e717b 100644 (file)
@@ -68,7 +68,7 @@ Dwarf::assemble $asm_file {
 }
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
-          [list $srcfile $asm_file] {nodebug}] } {
+         [list $srcfile $asm_file] {nodebug}] } {
     return -1
 }
 
index 35203199147cb39b0df189ad7d0044f2834c8d62..7ee25c0e9d6f75fb3fa4bd25a9d25359d52d3b3d 100644 (file)
@@ -33,7 +33,7 @@ Dwarf::assemble $asm_file {
            DW_AT_language @DW_LANG_Ada95
            DW_AT_name     $srcfile
            DW_AT_comp_dir /tmp
-        } {
+       } {
            declare_labels b_l
 
            b_l: DW_TAG_base_type {
@@ -42,13 +42,13 @@ Dwarf::assemble $asm_file {
                DW_AT_name      bool
            }
 
-            DW_TAG_subprogram {
+           DW_TAG_subprogram {
                DW_AT_name pck__xtra__function.cold
                MACRO_AT_range {first}
                DW_AT_type :$b_l
            }
 
-            DW_TAG_subprogram {
+           DW_TAG_subprogram {
                DW_AT_name pck__xtra__function
                MACRO_AT_range {second}
                DW_AT_type :$b_l
index 915f47ebaaf7a918a69a05e667d2d548e3e7ea31..7ce13b8620fefc88d3cb0e1d081b4be4c285b3c1 100644 (file)
@@ -35,7 +35,7 @@ Dwarf::assemble $asm_file {
            DW_AT_name     $srcfile
            DW_AT_comp_dir /tmp
 
-        } {
+       } {
            declare_labels b_l
 
            b_l: DW_TAG_base_type {
@@ -44,14 +44,14 @@ Dwarf::assemble $asm_file {
                DW_AT_name      bool
            }
            # Here the name comes first and the linkage name second.
-            DW_TAG_subprogram {
+           DW_TAG_subprogram {
                DW_AT_name system__namefirst
                DW_AT_linkage_name __gnat_namefirst
                MACRO_AT_range {first}
                DW_AT_type :$b_l
            }
            # Here the linkage name comes first and the name second.
-            DW_TAG_subprogram {
+           DW_TAG_subprogram {
                DW_AT_linkage_name __gnat_namesecond
                DW_AT_name system__namesecond
                MACRO_AT_range {second}
index 0efb8cbf233b4bfb161ccf634d463b5f048961e8..aa18d36780b3ae4978a7dbcc0189a6928d8eec7c 100644 (file)
@@ -33,14 +33,14 @@ Dwarf::assemble $asm_file {
        DW_TAG_compile_unit {
            DW_AT_language @DW_LANG_Ada95
            DW_AT_name     $srcfile
-        } {
+       } {
            declare_labels integer array array_pointer bounds_pointer
 
-            integer: DW_TAG_base_type {
+           integer: DW_TAG_base_type {
                DW_AT_byte_size 8 DW_FORM_sdata
                DW_AT_encoding  @DW_ATE_signed
                DW_AT_name      integer
-            }
+           }
 
            array: DW_TAG_array_type {
                DW_AT_name array_type
index a4b6a9562984fcfb78d1eac44a3c69b748bea380..1bc9fbde643dd0b0bde20b6e941d5a26c08dcb45 100644 (file)
@@ -39,35 +39,35 @@ Dwarf::assemble $asm_file {
            DW_AT_language @DW_LANG_Ada95
            DW_AT_name     fd.adb
            DW_AT_comp_dir /tmp
-        } {
+       } {
            declare_labels array_elt_label integer_label array_label \
-                typedef_label ref_type_label
-            set ptr_size [get_sizeof "void *" 96]
-            set int_size [get_sizeof "int" 4]
+               typedef_label ref_type_label
+           set ptr_size [get_sizeof "void *" 96]
+           set int_size [get_sizeof "int" 4]
 
-            # A structure with no size attribute, to mimick structures
-            # in Ada that have a dynamic size...
-            array_elt_label: structure_type {
+           # A structure with no size attribute, to mimick structures
+           # in Ada that have a dynamic size...
+           array_elt_label: structure_type {
                DW_AT_name fd__Tints_doubledC
                DW_AT_artificial 1 DW_FORM_flag_present
-            }
-
-            # ... and a corresponding XVZ variable, supposed to be there
-            # to provide the actual size.  Except that, in this case,
-            # the variable has no address, to simulate the fact that
-            # it has been optimized out (which the compiler can do,
-            # even if it at the expense of debuggability).
-            DW_TAG_variable {
+           }
+
+           # ... and a corresponding XVZ variable, supposed to be there
+           # to provide the actual size.  Except that, in this case,
+           # the variable has no address, to simulate the fact that
+           # it has been optimized out (which the compiler can do,
+           # even if it at the expense of debuggability).
+           DW_TAG_variable {
                DW_AT_name fd__Tints_doubledC___XVZ
                DW_AT_type :$integer_label
                DW_AT_artificial 1 DW_FORM_flag_present
-            }
+           }
 
-            integer_label: DW_TAG_base_type {
+           integer_label: DW_TAG_base_type {
                DW_AT_byte_size $int_size DW_FORM_sdata
                DW_AT_encoding  @DW_ATE_signed
                DW_AT_name      integer
-            }
+           }
 
            array_label: DW_TAG_array_type {
                DW_AT_name fd__ints_doubled
@@ -79,24 +79,24 @@ Dwarf::assemble $asm_file {
                }
            }
 
-            typedef_label: DW_TAG_typedef {
+           typedef_label: DW_TAG_typedef {
                DW_AT_name fd__ints_doubled
                DW_AT_type :$array_label
-            }
+           }
 
-            ref_type_label: DW_TAG_reference_type {
+           ref_type_label: DW_TAG_reference_type {
                DW_AT_byte_size $ptr_size DW_FORM_sdata
                DW_AT_type :$typedef_label
-            }
+           }
 
-            DW_TAG_variable {
+           DW_TAG_variable {
                DW_AT_name fd__global
                DW_AT_type :$ref_type_label
                DW_AT_location {
                    DW_OP_addr [gdb_target_symbol fd__global]
                } SPECIAL_expr
                DW_AT_external 1 flag
-            }
+           }
 
        }
     }
@@ -110,4 +110,4 @@ if { [prepare_for_testing ${testfile}.exp ${testfile} \
 gdb_test_no_output "set language ada"
 
 gdb_test "print fd.global" \
-         " = <error reading variable: unable to read value of fd__Tints_doubledC___XVZ \\(value has been optimized out\\)>"
+        " = <error reading variable: unable to read value of fd__Tints_doubledC___XVZ \\(value has been optimized out\\)>"
index bad1ffe4e9b169e95a38541e121bfb9029b5b805..fefd703c1b7a5a806dbd5a4e9169ed2d5bb5e23b 100644 (file)
@@ -23,31 +23,31 @@ standard_testfile main.c -dw.S
 set asm_file [standard_output_file $srcfile2]
 Dwarf::assemble $asm_file {
     cu {} {
-       DW_TAG_compile_unit {
+       DW_TAG_compile_unit {
            DW_AT_language @DW_LANG_Ada95
            DW_AT_name     foo.adb
            DW_AT_comp_dir /tmp
-        } {
+       } {
            declare_labels integer_label array_elt_label array_label \
-                big_array_label struct_label
+               big_array_label struct_label
 
-            integer_label: DW_TAG_base_type {
+           integer_label: DW_TAG_base_type {
                DW_AT_byte_size 4 DW_FORM_sdata
                DW_AT_encoding  @DW_ATE_signed
                DW_AT_name      integer
-            }
+           }
 
-            array_elt_label: DW_TAG_subrange_type {
+           array_elt_label: DW_TAG_subrange_type {
                DW_AT_lower_bound 0xe0 DW_FORM_data1
                DW_AT_upper_bound 0x1f DW_FORM_data1
                DW_AT_name        pck__item
                DW_AT_type        :$integer_label
-            }
+           }
 
-            DW_TAG_typedef {
+           DW_TAG_typedef {
                DW_AT_name pck__table
                DW_AT_type :$array_label
-            }
+           }
 
            array_label: DW_TAG_array_type {
                DW_AT_name pck__table
@@ -61,10 +61,10 @@ Dwarf::assemble $asm_file {
                }
            }
 
-            DW_TAG_typedef {
+           DW_TAG_typedef {
                DW_AT_name pck__big_table
                DW_AT_type :$big_array_label
-            }
+           }
 
            big_array_label: DW_TAG_array_type {
                DW_AT_name pck__big_table
@@ -117,10 +117,10 @@ if { [prepare_for_testing "failed to prepare" ${testfile} \
 gdb_test_no_output "set language ada"
 
 gdb_test "ptype pck.table" \
-         "type = array \\(0 \\.\\. 4\\) of pck\\.item <packed: 6-bit elements>"
+        "type = array \\(0 \\.\\. 4\\) of pck\\.item <packed: 6-bit elements>"
 
 gdb_test "ptype pck.big_table" \
-         "type = array \\(0 \\.\\. 4\\) of pck\\.item <packed: 8-bit elements>"
+        "type = array \\(0 \\.\\. 4\\) of pck\\.item <packed: 8-bit elements>"
 
 gdb_test "print the_struct" \
     "\\(intfield => 1, arrayfield => \\(0 => <optimized out>\\)\\)"
index 24d4600488deb76776d60dc96d6eddf2f1d6bbc4..34ef4a0cce8be35e1dbdd1ad1d53a0542f602591 100644 (file)
@@ -82,4 +82,4 @@ if { [prepare_for_testing "failed to prepare" ${testfile} \
 gdb_test_no_output "set language ada"
 
 gdb_test "ptype pck.table" \
-         "type = array \\(enum_000 \\.\\. enum_128\\) of boolean"
+        "type = array \\(enum_000 \\.\\. enum_128\\) of boolean"
index d3426b9c5f6eff312318449354688fec38fa7d13..108e8405d3952b94636ede16fdd116bdde96e555 100644 (file)
@@ -85,9 +85,9 @@ gdb_test "return 35" \
        "Not confirmed" \
        "return 35" \
        [multi_line \
-           "Function 'foo' does not follow the target calling convention\\." \
-           "If you continue, setting the return value will probably lead to unpredictable behaviors\\." \
-           "Make foo return now\\? \\(y or n\\) $"] \
+          "Function 'foo' does not follow the target calling convention\\." \
+          "If you continue, setting the return value will probably lead to unpredictable behaviors\\." \
+          "Make foo return now\\? \\(y or n\\) $"] \
        "n"
 
 gdb_test "finish" [multi_line \
index 7630dcc20a1eb425550fe80d42bc46a3ee52d1de..32dbb4db5b6118f76908be6f22c6e1f778d6d312 100644 (file)
@@ -133,118 +133,118 @@ gdb_test_no_output "set language ada"
 # foo.three
 
 gdb_test "print foo.three" \
-         " = \\(1, 2, 3\\)"
+        " = \\(1, 2, 3\\)"
 
 gdb_test "ptype foo.three" \
-         "type = array \\(<>\\) of integer"
+        "type = array \\(<>\\) of integer"
 
 gdb_test "print foo.three(1)" \
-         " = 1"
+        " = 1"
 
 gdb_test "print foo.three(2)" \
-         " = 2"
+        " = 2"
 
 gdb_test "print foo.three(3)" \
-         " = 3"
+        " = 3"
 
 gdb_test "print foo.three'first" \
-         " = 1"
+        " = 1"
 
 gdb_test "print foo.three'last" \
-         " = 3"
+        " = 3"
 
 gdb_test "print foo.three'length" \
-         " = 3"
+        " = 3"
 
 # foo.three_tdef
 
 gdb_test "print foo.three_tdef.all" \
-         " = \\(1, 2, 3\\)"
+        " = \\(1, 2, 3\\)"
 
 gdb_test "ptype foo.three_tdef" \
-         "type = access array \\(<>\\) of integer"
+        "type = access array \\(<>\\) of integer"
 
 gdb_test "print foo.three_tdef(1)" \
-         " = 1"
+        " = 1"
 
 gdb_test "print foo.three_tdef(2)" \
-         " = 2"
+        " = 2"
 
 gdb_test "print foo.three_tdef(3)" \
-         " = 3"
+        " = 3"
 
 gdb_test "print foo.three_tdef'first" \
-         " = 1"
+        " = 1"
 
 gdb_test "print foo.three_tdef'last" \
-         " = 3"
+        " = 3"
 
 gdb_test "print foo.three_tdef'length" \
-         " = 3"
+        " = 3"
 
 gdb_test "print foo.five" \
-         " = \\(2 => 5, 8, 13, 21, 34\\)"
+        " = \\(2 => 5, 8, 13, 21, 34\\)"
 
 gdb_test "ptype foo.five" \
-         "type = array \\(<>\\) of integer"
+        "type = array \\(<>\\) of integer"
 
 gdb_test "ptype foo.array_type" \
-         "type = array \\(<>\\) of integer"
+        "type = array \\(<>\\) of integer"
 
 # foo.five
 
 gdb_test "print foo.five(2)" \
-         " = 5"
+        " = 5"
 
 gdb_test "print foo.five(3)" \
-         " = 8"
+        " = 8"
 
 gdb_test "print foo.five(4)" \
-         " = 13"
+        " = 13"
 
 gdb_test "print foo.five(5)" \
-         " = 21"
+        " = 21"
 
 gdb_test "print foo.five(6)" \
-         " = 34"
+        " = 34"
 
 gdb_test "print foo.five'first" \
-         " = 2"
+        " = 2"
 
 gdb_test "print foo.five'last" \
-         " = 6"
+        " = 6"
 
 gdb_test "print foo.five'length" \
-         " = 5"
+        " = 5"
 
 # foo.five_tdef
 
 gdb_test "print foo.five_tdef.all" \
-         " = \\(2 => 5, 8, 13, 21, 34\\)"
+        " = \\(2 => 5, 8, 13, 21, 34\\)"
 
 gdb_test "ptype foo.five_tdef" \
-         "type = access array \\(<>\\) of integer"
+        "type = access array \\(<>\\) of integer"
 
 gdb_test "print foo.five_tdef(2)" \
-         " = 5"
+        " = 5"
 
 gdb_test "print foo.five_tdef(3)" \
-         " = 8"
+        " = 8"
 
 gdb_test "print foo.five_tdef(4)" \
-         " = 13"
+        " = 13"
 
 gdb_test "print foo.five_tdef(5)" \
-         " = 21"
+        " = 21"
 
 gdb_test "print foo.five_tdef(6)" \
-         " = 34"
+        " = 34"
 
 gdb_test "print foo.five_tdef'first" \
-         " = 2"
+        " = 2"
 
 gdb_test "print foo.five_tdef'last" \
-         " = 6"
+        " = 6"
 
 gdb_test "print foo.five_tdef'length" \
-         " = 5"
+        " = 5"
index 9a08edaedaf278ee6bbaf4140932da6761a81d05..73520ba8cf9f2751caf57db8d30147c96c6f060e 100644 (file)
@@ -142,7 +142,7 @@ func_cu1:
        .byte           1                       /* Minimum insn length */
        .byte           1                       /* default_is_stmt */
        .byte           1                       /* line_base */
-       .byte           1                       /* line_range */
+       .byte           1                       /* line_range */
        .byte           0x10                    /* opcode_base */
 
        /* Standard lengths */
index e8ae42d60cce483c93c62bf341a107f2a7d16574..11e5493eb11073081dbfe8e0af0202cd709602c5 100644 (file)
@@ -143,7 +143,7 @@ func_cu1:
        .byte           1                       /* Minimum insn length */
        .byte           1                       /* default_is_stmt */
        .byte           1                       /* line_base */
-       .byte           1                       /* line_range */
+       .byte           1                       /* line_range */
        .byte           0x10                    /* opcode_base */
 
        /* Standard lengths */
index 598190fd9a1df12781bf02d389afee3a1e15d42f..a650fe1660e28414193b928320be05bf7c528fe3 100644 (file)
@@ -151,7 +151,7 @@ gcc43:      .globl gcc43
        .byte           1                       /* Minimum insn length */
        .byte           1                       /* default_is_stmt */
        .byte           1                       /* line_base */
-       .byte           1                       /* line_range */
+       .byte           1                       /* line_range */
        .byte           4                       /* opcode_base */
 
        /* Standard lengths */
@@ -200,7 +200,7 @@ gcc43:      .globl gcc43
        .byte           1                       /* Minimum insn length */
        .byte           1                       /* default_is_stmt */
        .byte           1                       /* line_base */
-       .byte           1                       /* line_range */
+       .byte           1                       /* line_range */
        .byte           4                       /* opcode_base */
 
        /* Standard lengths */
index e14ffc7dce55df8fcae04d6bd6ec858610367780..4e0e551f8275b619da5079510038a392f8a34fc8 100644 (file)
@@ -90,7 +90,7 @@ func_cu1:
        .byte           1                       /* Minimum insn length */
        .byte           1                       /* default_is_stmt */
        .byte           1                       /* line_base */
-       .byte           1                       /* line_range */
+       .byte           1                       /* line_range */
        .byte           0x10                    /* opcode_base */
 
        /* Standard lengths */
index f9d96aa316184145ea10fd58384dfd63ab0c03eb..44143ae2b08049daeccb5f9a7ede00ce8361d0f5 100644 (file)
@@ -195,7 +195,7 @@ func_cu1:
        .byte           1                       /* Minimum insn length */
        .byte           1                       /* default_is_stmt */
        .byte           1                       /* line_base */
-       .byte           1                       /* line_range */
+       .byte           1                       /* line_range */
        .byte           0x10                    /* opcode_base */
 
        /* Standard lengths */
index 66adcc8c7ac383db91d0b508d651bf408723e787..cbffbba01dac3498276531812a11055e4462f316 100644 (file)
@@ -127,141 +127,141 @@ if {![runto_main]} {
 gdb_test_no_output "set lang ada"
 
 gdb_test "print pck.fp1_var" \
-         " = 0.25"
+        " = 0.25"
 
 gdb_test "print /x pck.fp1_var" \
-         " = 0x0"
+        " = 0x0"
 
 gdb_test "print pck.fp2_var" \
-         " = -0.01"
+        " = -0.01"
 
 gdb_test "print /x pck.fp2_var" \
-         " = 0x0"
+        " = 0x0"
 
 gdb_test "print pck.fp3_var" \
-         " = 0.1"
+        " = 0.1"
 
 gdb_test "print /x pck.fp3_var" \
-         " = 0x0"
+        " = 0x0"
 
 gdb_test "print pck.fp1_range_var" \
-         " = 1"
+        " = 1"
 
 gdb_test "print /x pck.fp1_range_var" \
-         " = 0x1"
+        " = 0x1"
 
 gdb_test "print pck.fp1_var + 0.25" \
-         " = 0.5"
+        " = 0.5"
 
 gdb_test "print pck.fp2_var - pck.fp2_var" \
-         " = 0"
+        " = 0"
 
 gdb_test "print pck.fp3_var * 1" \
-         " = 0.1"
+        " = 0.1"
 
 gdb_test "print pck.fp3_var / pck.fp3_var" \
-         " = 1"
+        " = 1"
 
 gdb_test "print pck.fp3_var / 0" \
-         "Division by zero"
+        "Division by zero"
 
 gdb_test "print pck.fp1_range_var - 0.5" \
-         " = 0.5"
+        " = 0.5"
 
 gdb_test "print -pck.fp1_var" \
-         " = -0.25"
+        " = -0.25"
 
 gdb_test "print pck.fp1_var = pck.fp1_var" \
-         " = true"
+        " = true"
 
 gdb_test "print pck.fp1_var = pck.fp1_var2" \
-         " = false"
+        " = false"
 
 gdb_test "print pck.fp1_var /= pck.fp1_var" \
-         " = false"
+        " = false"
 
 gdb_test "print pck.fp1_var /= pck.fp1_var2" \
-         " = true"
+        " = true"
 
 gdb_test "print pck.fp1_var < pck.fp1_var" \
-         " = false"
+        " = false"
 
 gdb_test "print pck.fp1_var < pck.fp1_var2" \
-         " = true"
+        " = true"
 
 gdb_test "print pck.fp1_var <= pck.fp1_var2" \
-         " = true"
+        " = true"
 
 gdb_test "print pck.fp1_var <= pck.fp1_var" \
-         " = true"
+        " = true"
 
 gdb_test "print pck.fp1_var > pck.fp1_var2" \
-         " = false"
+        " = false"
 
 gdb_test "print pck.fp1_var2 > pck.fp1_var" \
-         " = true"
+        " = true"
 
 gdb_test "print pck.fp1_var >= pck.fp1_var" \
-         " = true"
+        " = true"
 
 gdb_test "print pck.fp1_var >= pck.fp1_var2" \
-         " = false"
+        " = false"
 
 # Same as above, but with litterals...
 
 gdb_test "print pck.fp1_var = 0.25" \
-         " = true"
+        " = true"
 
 gdb_test "print pck.fp1_var = 0.5" \
-         " = false"
+        " = false"
 
 gdb_test "print pck.fp1_var = 1" \
-         " = false"
+        " = false"
 
 gdb_test "print pck.fp1_var /= 0.25" \
-         " = false"
+        " = false"
 
 gdb_test "print pck.fp1_var /= 0.5" \
-         " = true"
+        " = true"
 
 gdb_test "print pck.fp1_var /= 1" \
-         " = true"
+        " = true"
 
 gdb_test "print pck.fp1_var < 0.25" \
-         " = false"
+        " = false"
 
 gdb_test "print pck.fp1_var <  0.5" \
-         " = true"
+        " = true"
 
 gdb_test "print pck.fp1_var <  1" \
-         " = true"
+        " = true"
 
 gdb_test "print pck.fp1_var <= 0.25" \
-         " = true"
+        " = true"
 
 gdb_test "print pck.fp1_var <= 0.5" \
-         " = true"
+        " = true"
 
 gdb_test "print pck.fp1_var <= 1" \
-         " = true"
+        " = true"
 
 gdb_test "print pck.fp1_var > 0.25" \
-         " = false"
+        " = false"
 
 gdb_test "print pck.fp1_var > 0.5" \
-         " = false"
+        " = false"
 
 gdb_test "print pck.fp1_var > 1" \
-         " = false"
+        " = false"
 
 gdb_test "print pck.fp1_var >= 0.25" \
-         " = true"
+        " = true"
 
 gdb_test "print pck.fp1_var >= 0.5" \
-         " = false"
+        " = false"
 
 gdb_test "print pck.fp1_var >= 1" \
-         " = false"
+        " = false"
 
 
 # Set the language to LANG and do a ptype test on pck__fp1_var,
@@ -270,48 +270,47 @@ gdb_test "print pck.fp1_var >= 1" \
 
 proc do_ptype_test {lang fp1_re fp2_re fp3_re fp1_range_re} {
     with_test_prefix "lang=$lang" {
-        gdb_test_no_output "set language $lang" \
-            "set language to $lang for ptype test"
+       gdb_test_no_output "set language $lang" \
+           "set language to $lang for ptype test"
 
-        gdb_test "ptype pck__fp1_var" $fp1_re
+       gdb_test "ptype pck__fp1_var" $fp1_re
 
-        gdb_test "ptype pck__fp2_var" $fp2_re
+       gdb_test "ptype pck__fp2_var" $fp2_re
 
-        gdb_test "ptype pck__fp3_var" $fp3_re
+       gdb_test "ptype pck__fp3_var" $fp3_re
 
-        gdb_test "ptype pck__fp1_range_var" $fp1_range_re
+       gdb_test "ptype pck__fp1_range_var" $fp1_range_re
     }
 }
 
 do_ptype_test "ada" \
-              " = <1-byte fixed point \\(small = 1/16\\)>" \
-              " = <1-byte fixed point \\(small = 1/100\\)>" \
-              " = <1-byte fixed point \\(small = 1/30\\)>" \
-              " = <1-byte fixed point \\(small = 1/16\\)>"
+             " = <1-byte fixed point \\(small = 1/16\\)>" \
+             " = <1-byte fixed point \\(small = 1/100\\)>" \
+             " = <1-byte fixed point \\(small = 1/30\\)>" \
+             " = <1-byte fixed point \\(small = 1/16\\)>"
 
 foreach lang [list "c" "d" "go" "objective-c" "opencl" ] {
     do_ptype_test $lang \
-                  " = 1-byte fixed point \\(small = 1/16\\)" \
-                  " = 1-byte fixed point \\(small = 1/100\\)" \
-                  " = 1-byte fixed point \\(small = 1/30\\)" \
-                  " = <range type>"
+                 " = 1-byte fixed point \\(small = 1/16\\)" \
+                 " = 1-byte fixed point \\(small = 1/100\\)" \
+                 " = 1-byte fixed point \\(small = 1/30\\)" \
+                 " = <range type>"
 }
 
 do_ptype_test "fortran" \
-          " = pck__fp1_type" \
-          " = pck__fp2_type" \
-          " = pck__fp3_type" \
-          " = <range type>"
+         " = pck__fp1_type" \
+         " = pck__fp2_type" \
+         " = pck__fp3_type" \
+         " = <range type>"
 
 do_ptype_test "modula-2" \
-          " = pck__fp1_type" \
-          " = pck__fp2_type" \
-          " = pck__fp3_type" \
-          " = \\\[1-byte fixed point \\(small = 1/16\\)\\.\\.1-byte fixed point \\(small = 1/16\\)\\\]"
+         " = pck__fp1_type" \
+         " = pck__fp2_type" \
+         " = pck__fp3_type" \
+         " = \\\[1-byte fixed point \\(small = 1/16\\)\\.\\.1-byte fixed point \\(small = 1/16\\)\\\]"
 
 do_ptype_test "pascal" \
-          " = pck__fp1_type" \
-          " = pck__fp2_type" \
-          " = pck__fp3_type" \
-          " = 1-byte fixed point \\(small = 1/16\\)\\.\\.1-byte fixed point \\(small = 1/16\\)"
-
+         " = pck__fp1_type" \
+         " = pck__fp2_type" \
+         " = pck__fp3_type" \
+         " = 1-byte fixed point \\(small = 1/16\\)\\.\\.1-byte fixed point \\(small = 1/16\\)"
index 879b4b07ea2a69baf84ea1f445550de00efbbbd4..93e8fa49c5a3071e6ec625d2ebea82489ca8c900 100644 (file)
@@ -260,7 +260,7 @@ func_cu1:
        .byte           1                       /* Minimum insn length */
        .byte           1                       /* default_is_stmt */
        .byte           1                       /* line_base */
-       .byte           1                       /* line_range */
+       .byte           1                       /* line_range */
        .byte           0x10                    /* opcode_base */
 
        /* Standard lengths */
index 04be4b6851b7539068e733141ca4155772a9bc25..1e27c26218a3eebca1a70669d4ac2a9e8abe253b 100644 (file)
@@ -144,7 +144,7 @@ func_cu1:
        .byte           1                       /* Minimum insn length */
        .byte           1                       /* default_is_stmt */
        .byte           1                       /* line_base */
-       .byte           1                       /* line_range */
+       .byte           1                       /* line_range */
        .byte           0x10                    /* opcode_base */
 
        /* Standard lengths */
index 2a260ecccb67b3429eeb8feab6465541b198eecc..a6e04248de8e1b8611fe4e3ff9616c6d4585013a 100644 (file)
@@ -59,4 +59,3 @@ main (void)
 
   return 0;
 }
-
index 653568187ec502972bbe5105976196e639eb22f5..dcd15ce4b253c50093b872d32ac494d522cc05f0 100644 (file)
@@ -125,7 +125,7 @@ inner:
        .byte           1                       /* Minimum insn length */
        .byte           1                       /* default_is_stmt */
        .byte           1                       /* line_base */
-       .byte           1                       /* line_range */
+       .byte           1                       /* line_range */
        .byte           0x10                    /* opcode_base */
 
        /* Standard lengths */
index 6ae68f9166187aa92bded5e42781bdc1956911c6..aba2e2bd9bcdeb7d523bd6d1ddead736b43ef052 100644 (file)
@@ -149,7 +149,7 @@ outer_after:
        .byte           1                       /* Minimum insn length */
        .byte           1                       /* default_is_stmt */
        .byte           1                       /* line_base */
-       .byte           1                       /* line_range */
+       .byte           1                       /* line_range */
        .byte           0x10                    /* opcode_base */
 
        /* Standard lengths */
index 90941b29238f2b2d7dd22ab650cf12d127d046e0..25b3c0ee2e34bf195c628dc56a17ad501e6c78f8 100644 (file)
@@ -37,7 +37,7 @@ clean_restart $executable_outer
 set host_binfile_inner [gdb_remote_download host $binfile_inner]
 
 gdb_test "add-symbol-file $host_binfile_inner outer_inner" \
-         {Reading symbols from .*\.\.\.} "add-symbol-file" \
+        {Reading symbols from .*\.\.\.} "add-symbol-file" \
         "\r\n\t\\.text_addr = 0x\[0-9a-f\]+\r\n\\(y or n\\) \$" "y"
 
 # Expand symtab for ${binfile_outer}.
index d054fc5660add78f8f6b33de64f69d95073040ce..f51d7f30a201ca25bb489346d244e0793ef947dc 100644 (file)
@@ -267,7 +267,7 @@ int_param_two_reg_pieces:
        .quad   .Ltext5b                /* start */
        .quad   .Ltext7-.Ltext5b        /* length */
         /* Instructions */
-       .byte   0x4
+       .byte   0x4
        .long   .Ltext6-.Ltext5b
        .byte   0xe
        .uleb128 0x10
@@ -282,7 +282,7 @@ int_param_two_reg_pieces:
        .quad   .Ltext8                 /* start */
        .quad   .Ltext10-.Ltext8        /* length */
         /* Instructions */
-       .byte   0x4
+       .byte   0x4
        .long   .Ltext9-.Ltext8
        .byte   0xe
        .uleb128 0x10
@@ -297,7 +297,7 @@ int_param_two_reg_pieces:
        .quad   .Ltext11                /* start */
        .quad   .Ltext13-.Ltext11       /* length */
         /* Instructions */
-       .byte   0x4
+       .byte   0x4
        .long   .Ltext12-.Ltext11
        .byte   0xe
        .uleb128 0x10
@@ -312,7 +312,7 @@ int_param_two_reg_pieces:
        .quad   .Ltext14                /* start */
        .quad   .Ltext16-.Ltext14       /* length */
         /* Instructions */
-       .byte   0x4
+       .byte   0x4
        .long   .Ltext15-.Ltext14
        .byte   0xe
        .uleb128 0x10
@@ -327,7 +327,7 @@ int_param_two_reg_pieces:
        .quad   .Ltext1                 /* start */
        .quad   .Ltext3-.Ltext1         /* length */
         /* Instructions */
-       .byte   0x4
+       .byte   0x4
        .long   .Ltext2-.Ltext1
        .byte   0xe
        .uleb128 0x10
index fd3d1a5d64fbdd14bfa132b515873c405f0209f8..6fc98c77617eb703f05b3ec064fe6212bcf0d67f 100644 (file)
@@ -144,7 +144,7 @@ func_cu1:
        .byte           1                       /* Minimum insn length */
        .byte           1                       /* default_is_stmt */
        .byte           1                       /* line_base */
-       .byte           1                       /* line_range */
+       .byte           1                       /* line_range */
        .byte           0x10                    /* opcode_base */
 
        /* Standard lengths */
index 0f3a83eda38a8653e6a9e29fd58516c6085eb181..6164c7abb0c07aab80c2895ac1b4dac1ec7ba474 100644 (file)
@@ -33,4 +33,3 @@ main (void)
   asm ("main_label: .globl main_label");
   frame2 ();
 }
-
index e0afaed14464d50e4e5debde3bd3038def7f5800..b0ca422cebfe0dc34fb44a81c6d8d2b4164ffe42 100644 (file)
@@ -79,4 +79,3 @@ main (void)
   asm ("main_label2: .globl main_label2");
   return 0;                                    /* main return */
 }                                              /* main end */
-
index 8b9eff1a7bd5fed608775bfe428fc3b8e303a666..d5acc2b36ed54e6e151e23b1470ddbd0e800dd97 100644 (file)
@@ -79,4 +79,3 @@ main (void)
   asm ("main_label2: .globl main_label2");
   return 0;                                    /* main return */
 }                                              /* main end */
-
index 5e452555a76c2f070cfa57a12d5553682b17371a..c5155f2d311f854eaf81eea4c6efe6681565934c 100644 (file)
@@ -170,7 +170,7 @@ proc do_test {suffix} {
                DW_LNE_end_sequence
 
                DW_LNE_set_address $foo_cold_start
-               line [gdb_get_line_number "foo_cold prologue"]
+               line [gdb_get_line_number "foo_cold prologue"]
                DW_LNS_copy
                DW_LNE_set_address foo_cold_label
                line [gdb_get_line_number "foo_cold baz call"]
@@ -351,7 +351,7 @@ proc do_test {suffix} {
        set test "x/2i foo_cold"
        gdb_test_multiple $test $test {
            -re "   (?:$hex) <foo_cold>.*?\n   (?:$hex) <foo\[+-\](\[0-9\]+)>.*${gdb_prompt}" {
-               set foo_cold_offset $expect_out(1,string)
+               set foo_cold_offset $expect_out(1,string)
                pass $test
            }
        }
index 154023e84499918da6c4924a12f38c146001a5e4..f51e695a66469cf56c1a414217b6bae680d8ff65 100644 (file)
@@ -19,10 +19,10 @@ require dwarf2_support
 
 standard_testfile .S -func.c -main.c
 lassign [function_range func_nofb \
-             "${srcdir}/${subdir}/${srcfile2} ${srcdir}/${subdir}/${srcfile3}"] \
+            "${srcdir}/${subdir}/${srcfile2} ${srcdir}/${subdir}/${srcfile3}"] \
     func_nofb_start func_nofb_len
 lassign [function_range func_loopfb \
-             "${srcdir}/${subdir}/${srcfile2} ${srcdir}/${subdir}/${srcfile3}"] \
+            "${srcdir}/${subdir}/${srcfile2} ${srcdir}/${subdir}/${srcfile3}"] \
     func_loopfb_start func_loopfb_len
 
 set flags {}
index fbaf193ee7e216bec4fede7d9fd563b2c025060c..753936ae29e1712c6d907cde692183821c55ea07 100644 (file)
@@ -41,4 +41,3 @@ main (void)
 
   return 0;
 }
-
index e9c405ebf7d4d28aeb137f6c397c573d57d1208e..e4eaf43ecbfc3822d5fad6da7c956d57fc1549e3 100644 (file)
@@ -114,4 +114,3 @@ gdb_continue_to_breakpoint "bar"
 gdb_test "step" [multi_line \
                     "main \\(\\) at \[^\r\n\]*$srcfile:36" \
                     "36\t\[^\r\n\]*"]
-
index cb62f95da78242f5c7811e9183e53ff8054445b6..eda7b9a2c03f8acb49d748c8e99cbe2d31b1d3d0 100644 (file)
@@ -29,4 +29,3 @@ main (void)
 {
   return obj.field;
 }
-
index 11c63292ca0241c8db3118d3f922c2938236c946..5349cc4b00d36ef2f3f0e1c811125819397b3304 100644 (file)
@@ -149,24 +149,24 @@ set dwarf_error "DWARF Error: DW_FORM_strp used without required section"
 # behavior).
 set pattern1 \
     [multi_line \
-         $line1 \
-         $dwarf_error \
-        "\\(No debugging symbols \[^\r\n\]+\\)"]
+        $line1 \
+        $dwarf_error \
+       "\\(No debugging symbols \[^\r\n\]+\\)"]
 
 # This pattern is hit when GDB does use -readnow (e.g. running with
 # --target_board=readnow).
 set pattern2 \
     [multi_line \
-        $line1 \
-        "Expanding full symbols from \[^\r\n\]+" \
-        $dwarf_error]
+       $line1 \
+       "Expanding full symbols from \[^\r\n\]+" \
+       $dwarf_error]
 
 # This pattern is hit when gcc adds an index (e.g. running with
 # --target_board=cc-with-gdb-index).
 set pattern3 \
     [multi_line \
-        $line1 \
-        $dwarf_error]
+       $line1 \
+       $dwarf_error]
 
 # Load the executable, we expect an error from the DWARF parser.
 gdb_test "file $binfile_no_debug_str" "($pattern1|$pattern2|$pattern3)" \
index 1df0da2424ccc986b958edf23db7274cbc07f8d9..a9c9e0a6f3a10f0a2a743fd950f9e05f18238f37 100644 (file)
@@ -46,16 +46,16 @@ tree_insert (node *root, int val)
   if (val < root->id)
     {
       if (root->left)
-        tree_insert (root->left, val);
+       tree_insert (root->left, val);
       else
-        root->left = make_node(val);
+       root->left = make_node(val);
     }
   else if (val > root->id)
     {
       if (root->right)
-        tree_insert (root->right, val);
+       tree_insert (root->right, val);
       else
-        root->right = make_node(val);
+       root->right = make_node(val);
     }
 }
 
@@ -69,16 +69,16 @@ inorder (node *root)
       node *curr = todo.back();
       todo.pop_back(); /* break-here */
       if (curr->visited)
-        std::cout << curr->id << " ";
+       std::cout << curr->id << " ";
       else
-        {
-          curr->visited = true;
-          if (curr->right)
-            todo.push_back (curr->right);
-          todo.push_back (curr);
-          if (curr->left)
-            todo.push_back (curr->left);
-        }
+       {
+         curr->visited = true;
+         if (curr->right)
+           todo.push_back (curr->right);
+         todo.push_back (curr);
+         if (curr->left)
+           todo.push_back (curr->left);
+       }
     }
 }
 
index 9a34157e649540be1bbaad8dd76d1245f67cd531..108042cca4b61d5920d3b2cd22749a72a6df1928 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile .cc
 # we let that be the test of whether the target supports it.
 
 if { [prepare_for_testing "failed to prepare" "${testfile}" \
-          $srcfile {debug c++ dwarf5 additional_flags=-O0}] } {
+         $srcfile {debug c++ dwarf5 additional_flags=-O0}] } {
     return -1
 }
 
index 84f13b9a11d8b988c3397970a5a5f6dc620fd44f..54e331e36cfcbb0880ce1385befae0da4d1aa45a 100644 (file)
@@ -37,4 +37,3 @@ main ()
 
   return 0;
 }
-
index 96d821163671d8d6fecdf8c6db2413f6bb82d6ff..49a334ffc71c17b2444857b4e6172d495f07bce8 100644 (file)
@@ -46,7 +46,7 @@ Dwarf::assemble $asm_file {
     global pair pair2 negative
 
     cu { addr_size 4 } {
-       compile_unit {} {
+       compile_unit {} {
            declare_labels int_label sint_label
 
            int_label: DW_TAG_base_type {
index 3b0187682cfd0afa8794efc20f77cea36ebae908..87571efdedd199d22edf323fe0a923f2103baac3 100644 (file)
@@ -28,7 +28,7 @@ Dwarf::assemble $asm_file {
     # Creating a CU with 4-byte addresses lets this test link on both
     # 32- and 64-bit machines.
     cu { addr_size 4 } {
-       compile_unit {} {
+       compile_unit {} {
            declare_labels byte_label size_type_label array_label
            declare_labels var_label ptr_label
 
index 18d3a348600867844e48ed9514b0f6135beab9c3..c588a73346d9220e863024ed7db38a4cf02f4d09 100644 (file)
@@ -30,7 +30,7 @@ Dwarf::assemble $asm_file {
     # also check for a sign-extension bug in the
     # DW_OP_GNU_implicit_pointer code.
     cu { addr_size 2 } {
-       compile_unit {} {
+       compile_unit {} {
            declare_labels struct_label short_type_label
            declare_labels char_type_label ptr_label
            declare_labels var_label
index b0ea0a1d722f49d6c8b233ef231e56daaf14e1d1..1ae9587e673dba8e7b25b483d0c2fb71606f80c1 100644 (file)
@@ -117,7 +117,7 @@ Dwarf::assemble ${asm_file} {
                DW_AT_type :${int_label}
                DW_AT_external 1 DW_FORM_flag
            } {
-               DW_TAG_variable {
+               DW_TAG_variable {
                    DW_AT_name "ref"
                    DW_AT_type :${ref_label}
                    DW_AT_location {
index b51c07aeb06dd275901af18e6e9bce87506ff987..07841d7aeb887c6aa75a997429b18cd544e4de69 100644 (file)
@@ -70,7 +70,7 @@ Dwarf::assemble $asm_file {
                        DW_AT_abstract_origin %$doit_self_label
                    }
                }
-               DW_TAG_variable {
+               DW_TAG_variable {
                    DW_AT_abstract_origin %$foo_label
                    DW_AT_location 4 data1
                }
index 1664e68a4fb6fce315c7aec43a06d50e3f80a8c7..919840da9e39e17a2f3505232f9d5937ce3dd879 100644 (file)
@@ -77,7 +77,7 @@ set asm_file [standard_output_file ${::srcfile3}]
 # symbols will be present for this compilation, because we want to print some
 # type information.
 if {[gdb_compile_shlib $libsrc $lib_so \
-                       {debug}] != ""} {
+                      {debug}] != ""} {
     untested "failed to compile shared library"
     return
 }
@@ -157,9 +157,9 @@ Dwarf::assemble ${asm_file} {
            DW_AT_language @DW_LANG_C_plus_plus
            DW_AT_name ${::srcfile}
            DW_AT_stmt_list $L DW_FORM_sec_offset
-        } {
+       } {
            declare_labels int_label class_A_label class_B_label \
-                          B_ptr_label
+                          B_ptr_label
 
            int_label: DW_TAG_base_type {
                DW_AT_byte_size ${::long_size} DW_FORM_udata
@@ -325,7 +325,7 @@ Dwarf::assemble ${asm_file} {
 # Any debugging information that we need will be provided by the DWARF info
 # created above.
 if {[gdb_compile_shlib [list $libsrc $asm_file] $lib_so \
-                       {nodebug}] != ""} {
+                      {nodebug}] != ""} {
     untested "failed to compile shared library"
     return
 }
index 1a66895b5fd2e6960a971640d9a0d2d393abbed8..aabf67ee1d5de91e5e568f52f22243e915e6cfbe 100644 (file)
@@ -145,7 +145,7 @@ func_cu1:
        .byte           1                       /* Minimum insn length */
        .byte           1                       /* default_is_stmt */
        .byte           1                       /* line_base */
-       .byte           1                       /* line_range */
+       .byte           1                       /* line_range */
        .byte           0x10                    /* opcode_base */
 
        /* Standard lengths */
index a3eaae90af1e876a3c436c2226b924fe03b5fcf0..aec18c27fcb415bae892271b110d3c2635a0ad8e 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile main.c -dw4.S
 set asm_file [standard_output_file $srcfile2]
 Dwarf::assemble $asm_file {
     cu {} {
-       compile_unit {} {
+       compile_unit {} {
            declare_labels typedef_label
 
            # This signature is intentionally wrong.
index 4fdf98572e7c010972f053ab0217ca56d7f3dfb5..1ea031503c87d75e9dc7c817f194a265d3083f6f 100644 (file)
@@ -155,4 +155,3 @@ gdb_load $binfile
 # multidictionaries, it will either crash, assert, or throw an
 # internal_error.
 gdb_test "p 1" "= 1" "GDB is alive"
-
index 0d5943c5818188d60e25d4487909999bd883b28a..7c8b1e2e8114792cb233a712e7050964fff0f362 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile main.c .S
 set asm_file [standard_output_file $srcfile2]
 Dwarf::assemble $asm_file {
     cu {} {
-       compile_unit {
+       compile_unit {
            DW_AT_low_pc 0x104320 DW_FORM_addr
            DW_AT_high_pc 0x1045ed DW_FORM_addr
        } {
index 5f608be38d91fcc7801252f629ee41f61c1e971f..0877ec7966ca5af260d104c9d1a22f70aba0f90b 100644 (file)
@@ -44,4 +44,3 @@ main ( void )
   v += foo (v);
   return v + 5 + s.a;
 }
-
index 259e7e9e2e856c12191907d444e836efa25cf8f6..fa1f395c4a8be02c76e7d29b1bc6bc3370318afc 100644 (file)
@@ -46,4 +46,3 @@ gdb_test "p s.b" " = <optimized out>" "print s.b"
 gdb_test "p s.c" " = <optimized out>" "print s.c"
 gdb_test "p s.d" " = <optimized out>" "print s.d"
 gdb_test "p s.d + 1" "value has been optimized out" "print s.d + 1"
-
index 2826ba790ef5076aab80baf0092231ba0fbac435..cf21a02f4c52a3e48e7c3e60cdb18fee41bb69c6 100644 (file)
@@ -30,7 +30,7 @@ Dwarf::assemble $asm_file {
            DW_AT_language @DW_LANG_C
            DW_AT_name symtab-producer-dw.c
            DW_AT_comp_dir /tmp
-        } {
+       } {
            declare_labels integer_label
 
            integer_label: DW_TAG_base_type {
@@ -52,7 +52,7 @@ Dwarf::assemble $asm_file {
            DW_AT_language @DW_LANG_C
            DW_AT_name symtab-producer2-dw.c
            DW_AT_comp_dir /tmp
-        } {
+       } {
            declare_labels integer_label
 
            integer_label: DW_TAG_base_type {
index 507c344aeabbe18b276d7311c0fcb665642c7bfc..010be287289a699e06ac8791cd97b3f86bf6f052 100644 (file)
@@ -36,7 +36,7 @@ Dwarf::assemble $asm_file {
     cu { label cu_start } {
        DW_TAG_compile_unit {
            DW_AT_language @DW_LANG_C_plus_plus
-        } {
+       } {
            declare_labels templated_subprogram int
 
            int: DW_TAG_base_type {
index b8f532b2e657d00d97b0ce5f980c4d16f0899794..e81eb5dd9835e089b8b8c36d0c1d8bfe553d2043 100644 (file)
@@ -347,10 +347,10 @@ gdb_test "print *pointerval" "= 3"
 # referring to integral/pointer typed variables)."
 
 gdb_test "print structval" \
-         "Type of DW_OP_GNU_variable_value DIE must be an integer or pointer\\."
+        "Type of DW_OP_GNU_variable_value DIE must be an integer or pointer\\."
 
 gdb_test "print untypedval" \
-         "Type of DW_OP_GNU_variable_value DIE must be an integer or pointer\\."
+        "Type of DW_OP_GNU_variable_value DIE must be an integer or pointer\\."
 
 if { [setup_exec 1] == -1 } {
     return -1
@@ -364,4 +364,4 @@ gdb_test "print badval" "value has been optimized out"
 gdb_test "print bad_die_val1" \
         {DWARF Error: could not find unit containing offset 0xabcdef11 \[in module .*/varval\]}
 gdb_test "print bad_die_val2" \
-         "Bad DW_OP_GNU_variable_value DIE\\."
+        "Bad DW_OP_GNU_variable_value DIE\\."
index ad389987e7b8e814d4202bb8136c20483284c099..9d2541ce386c2a8383d94aa063609d2b1306ca79 100644 (file)
@@ -23,4 +23,3 @@
       print *, 'bounds of foo - ', lb, ':', ub
       stop
       end
-
index 7a579554b17b251ca5be964ddd88f80415c5bf69..2c6889179c2800505722abea64a0be979a1c6df2 100644 (file)
@@ -35,4 +35,3 @@ gdb_continue_to_breakpoint "return"
 
 gdb_test "print a(1)" ".*1 = 1.*" "print the first element of array a"
 gdb_test "print a(2)" ".*2 = 2.*" "print the second element of array a"
-
index bb19975cbc38ac0b87b147c4b88c9179b9513122..34e0dfa4e5d4a4873a62cc15734079c71dd4d885 100644 (file)
@@ -25,7 +25,7 @@ c by Wu Zhou. (woodzltc@cn.ibm.com)
 
         subroutine sub(a,n)
         dimension a(n)
-        do 100 i = 1, n 
+        do 100 i = 1, n
           a(i) = i
 100     continue
         return
index d5c8d29d4dce989d5e233357a96d33a3da119e62..a576126bc02a177067d6b2ff1566ab075c68f1d5 100644 (file)
@@ -59,4 +59,3 @@ program rectangle_Test
   call aRec%print_area
 
 end program rectangle_Test
-
index 619c0e4636dad2d936bf6f14ebcdc912def47073..882b601736d447029a4b8655c17456afd30ce9e5 100644 (file)
@@ -96,21 +96,21 @@ gdb_test "print this%a" " = 3\\.125"
 set test "print this%b"
 gdb_test_multiple $test $test {
     -re " = 'abcdefg'\r\n$gdb_prompt $" {
-        pass $test
+       pass $test
     }
     -re $result_line_2 {
-        setup_xfail "*-*-*"
-        fail $test
+       setup_xfail "*-*-*"
+       fail $test
     }
 }
 
 set test "print this"
 gdb_test_multiple $test $test {
     -re $result_line {
-        pass $test
+       pass $test
     }
     -re $result_line_2 {
-         setup_xfail "*-*-*"
-         fail $test
+        setup_xfail "*-*-*"
+        fail $test
     }
 }
index 83f47f1293cc1d8cfe64d231592065224dc3e410..10247354d7a22a5c242b125a9462849d38e7b5ff 100644 (file)
@@ -158,4 +158,3 @@ if {[set_lang_fortran]} {
 } else {
     warning "$test_name tests suppressed." 0
 }
-
index 405a1a1b953b4536769deade9db7e5edc4f25e1a..dda948739b02bea7338df3bb86dc3a769002ee16 100644 (file)
@@ -33,7 +33,7 @@ with_complaints 5 {
        -re -wrap "$re_kfail.*" {
            kfail symtab/27388 $gdb_test_name
        }
-        -re "^$cmd_regexp\r\n$gdb_prompt $" {
+       -re "^$cmd_regexp\r\n$gdb_prompt $" {
            pass $gdb_test_name
        }
     }
index 5fc86b9d97d8c25481a90e365d29bc4ed7b1edf5..dcfe9b7d1d361d8ac24e128c737bf24011054552 100644 (file)
@@ -168,4 +168,3 @@ GDBInfoModuleSymbols::check_entry "${srcfile}" "mod1" "21" \
     "${real4} mod1::mod1_var_1;"
 GDBInfoModuleSymbols::check_no_entry "${srcfile}" ".*"
 GDBInfoModuleSymbols::check_no_entry "${srcfile2}" ".*"
-
index fce631425581a861e0575bc76e3abb47fd35756d..c045298a5a4860273a79c2c14c45af96c8cc0ef8 100644 (file)
@@ -42,12 +42,12 @@ set supported [expr \
                       && [gcc_major_version {gfortran-*} f90] >= 4.9}]
 if { $supported } {
     gdb_test "ptype nml" \
-        "type = Type nml\r\n *$int :: a\r\n *$int :: b\r\n *End Type nml"
+       "type = Type nml\r\n *$int :: a\r\n *$int :: b\r\n *End Type nml"
     gdb_test "print nml" \
-        "\\$\[0-9\]+ = \\( a = 10, b = 20 \\)"
+       "\\$\[0-9\]+ = \\( a = 10, b = 20 \\)"
 } else {
     gdb_test "ptype nml" \
-        "No symbol \"nml\" in current context\\."
+       "No symbol \"nml\" in current context\\."
     gdb_test "print nml" \
-        "No symbol \"nml\" in current context\\."
+       "No symbol \"nml\" in current context\\."
 }
index 0d170413457b10ae0cffce39e0a46ec31f22997c..d1d25d7beb41a9428218ea201db6072d421057a2 100755 (executable)
-! Copyright 2016-2025 Free Software Foundation, Inc.\r
-!\r
-! This program is free software; you can redistribute it and/or modify\r
-! it under the terms of the GNU General Public License as published by\r
-! the Free Software Foundation; either version 3 of the License, or\r
-! (at your option) any later version.\r
-!\r
-! This program is distributed in the hope that it will be useful,\r
-! but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
-! GNU General Public License for more details.\r
-!\r
-! You should have received a copy of the GNU General Public License\r
-! along with this program.  If not, see <http://www.gnu.org/licenses/>.\r
-\r
-module mod1\r
-  integer :: var_i = 1\r
-  integer :: var_const\r
-  parameter (var_const = 20)\r
-\r
-CONTAINS\r
-\r
-  SUBROUTINE sub_nested_outer\r
-    integer :: local_int\r
-    character (len=20) :: name\r
-\r
-    name = 'sub_nested_outer_mod1'\r
-    local_int = 11\r
-\r
-  END SUBROUTINE sub_nested_outer\r
-end module mod1\r
-\r
-! Public sub_nested_outer\r
-SUBROUTINE sub_nested_outer\r
-  integer :: local_int\r
-  character (len=16) :: name\r
-\r
-  name = 'sub_nested_outer external'\r
-  local_int = 11\r
-END SUBROUTINE sub_nested_outer\r
-\r
-! Needed indirection to call public sub_nested_outer from main\r
-SUBROUTINE sub_nested_outer_ind\r
-  character (len=20) :: name\r
-\r
-  name = 'sub_nested_outer_ind'\r
-  CALL sub_nested_outer\r
-END SUBROUTINE sub_nested_outer_ind\r
-\r
-! public routine with internal subroutine\r
-SUBROUTINE sub_with_sub_nested_outer()\r
-  integer :: local_int\r
-  character (len=16) :: name\r
-\r
-  name = 'subroutine_with_int_sub'\r
-  local_int = 1\r
-\r
-  CALL sub_nested_outer  ! Should call the internal fct\r
-\r
-CONTAINS\r
-\r
-  SUBROUTINE sub_nested_outer\r
-    integer :: local_int\r
-    local_int = 11\r
-  END SUBROUTINE sub_nested_outer\r
-\r
-END SUBROUTINE sub_with_sub_nested_outer\r
-\r
-! Main\r
-program TestNestedFuncs\r
-  USE mod1, sub_nested_outer_use_mod1 => sub_nested_outer\r
-  IMPLICIT NONE\r
-\r
-  TYPE :: t_State\r
-    integer :: code\r
-  END TYPE t_State\r
-\r
-  TYPE (t_State) :: v_state\r
-  integer index, local_int\r
-\r
-  index = 13\r
-  CALL sub_nested_outer            ! Call internal sub_nested_outer\r
-  CALL sub_nested_outer_ind        ! Call external sub_nested_outer via sub_nested_outer_ind\r
-  CALL sub_with_sub_nested_outer   ! Call external routine with nested sub_nested_outer\r
-  CALL sub_nested_outer_use_mod1   ! Call sub_nested_outer imported via module\r
-  index = 11              ! BP_main\r
-  v_state%code = 27\r
-\r
-CONTAINS\r
-\r
-  SUBROUTINE sub_nested_outer\r
-    integer local_int\r
-    local_int = 19\r
-    v_state%code = index + local_int   ! BP_outer\r
-    call sub_nested_inner\r
-    local_int = 22                     ! BP_outer_2\r
-    RETURN\r
-  END SUBROUTINE sub_nested_outer\r
-\r
-  SUBROUTINE sub_nested_inner\r
-    integer local_int\r
-    local_int = 17\r
-    v_state%code = index + local_int   ! BP_inner\r
-    RETURN\r
-  END SUBROUTINE sub_nested_inner\r
-\r
-end program TestNestedFuncs\r
+! Copyright 2016-2025 Free Software Foundation, Inc.
+!
+! This program is free software; you can redistribute it and/or modify
+! it under the terms of the GNU General Public License as published by
+! the Free Software Foundation; either version 3 of the License, or
+! (at your option) any later version.
+!
+! This program is distributed in the hope that it will be useful,
+! but WITHOUT ANY WARRANTY; without even the implied warranty of
+! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+! GNU General Public License for more details.
+!
+! You should have received a copy of the GNU General Public License
+! along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+module mod1
+  integer :: var_i = 1
+  integer :: var_const
+  parameter (var_const = 20)
+
+CONTAINS
+
+  SUBROUTINE sub_nested_outer
+    integer :: local_int
+    character (len=20) :: name
+
+    name = 'sub_nested_outer_mod1'
+    local_int = 11
+
+  END SUBROUTINE sub_nested_outer
+end module mod1
+
+! Public sub_nested_outer
+SUBROUTINE sub_nested_outer
+  integer :: local_int
+  character (len=16) :: name
+
+  name = 'sub_nested_outer external'
+  local_int = 11
+END SUBROUTINE sub_nested_outer
+
+! Needed indirection to call public sub_nested_outer from main
+SUBROUTINE sub_nested_outer_ind
+  character (len=20) :: name
+
+  name = 'sub_nested_outer_ind'
+  CALL sub_nested_outer
+END SUBROUTINE sub_nested_outer_ind
+
+! public routine with internal subroutine
+SUBROUTINE sub_with_sub_nested_outer()
+  integer :: local_int
+  character (len=16) :: name
+
+  name = 'subroutine_with_int_sub'
+  local_int = 1
+
+  CALL sub_nested_outer  ! Should call the internal fct
+
+CONTAINS
+
+  SUBROUTINE sub_nested_outer
+    integer :: local_int
+    local_int = 11
+  END SUBROUTINE sub_nested_outer
+
+END SUBROUTINE sub_with_sub_nested_outer
+
+! Main
+program TestNestedFuncs
+  USE mod1, sub_nested_outer_use_mod1 => sub_nested_outer
+  IMPLICIT NONE
+
+  TYPE :: t_State
+    integer :: code
+  END TYPE t_State
+
+  TYPE (t_State) :: v_state
+  integer index, local_int
+
+  index = 13
+  CALL sub_nested_outer            ! Call internal sub_nested_outer
+  CALL sub_nested_outer_ind        ! Call external sub_nested_outer via sub_nested_outer_ind
+  CALL sub_with_sub_nested_outer   ! Call external routine with nested sub_nested_outer
+  CALL sub_nested_outer_use_mod1   ! Call sub_nested_outer imported via module
+  index = 11              ! BP_main
+  v_state%code = 27
+
+CONTAINS
+
+  SUBROUTINE sub_nested_outer
+    integer local_int
+    local_int = 19
+    v_state%code = index + local_int   ! BP_outer
+    call sub_nested_inner
+    local_int = 22                     ! BP_outer_2
+    RETURN
+  END SUBROUTINE sub_nested_outer
+
+  SUBROUTINE sub_nested_inner
+    integer local_int
+    local_int = 17
+    v_state%code = index + local_int   ! BP_inner
+    RETURN
+  END SUBROUTINE sub_nested_inner
+
+end program TestNestedFuncs
index 9f443d9fe2dc57609f8f38bafabba78a298ce148..f4f1aeb47c10c95b6aad161692a9897a3cbf033a 100755 (executable)
@@ -63,9 +63,9 @@ set output_pass_wp [multi_line "type = Type, extends\\(point\\) :: waypoint" \
                               "    $real :: angle" \
                               "End Type waypoint(, allocatable)?"]
 set output_kfail_wp [multi_line "type = Type waypoint" \
-                               "    Type point :: point" \
-                               "    $real :: angle" \
-                               "End Type waypoint(, allocatable)?"]
+                               "    Type point :: point" \
+                               "    $real :: angle" \
+                               "End Type waypoint(, allocatable)?"]
 
 set test "ptype wp"
 gdb_test_multiple "$test" "$test" {
index 6d2457f13ee0b3936e6eb425fba7241d88ba8e6e..9996e3eeb02af294aabc2741080caacef43693a1 100755 (executable)
@@ -84,9 +84,9 @@ gdb_breakpoint [gdb_get_line_number "Before value assignment"]
 gdb_continue_to_breakpoint "Before value assignment"
 gdb_test "ptype twop" \
     [multi_line "type = PTR TO -> \\( Type two" \
-                "    $int, allocatable :: ivla1\\(:\\)" \
-                "    $int, allocatable :: ivla2\\(:,:\\)" \
-                "End Type two \\)"]
+               "    $int, allocatable :: ivla1\\(:\\)" \
+               "    $int, allocatable :: ivla2\\(:,:\\)" \
+               "End Type two \\)"]
 
 gdb_breakpoint [gdb_get_line_number "After value assignment"]
 gdb_continue_to_breakpoint "After value assignment"
@@ -106,10 +106,10 @@ gdb_test "ptype intp" "type = PTR TO -> \\( $int \\)"
 set test "ptype intap"
 gdb_test_multiple $test $test {
     -re "type = $int \\(10,2\\)\r\n$gdb_prompt $" {
-        pass $test
+       pass $test
     }
     -re "type = PTR TO -> \\( $int \\(10,2\\)\\)\r\n$gdb_prompt $" {
-        pass $test
+       pass $test
     }
 }
 gdb_test "ptype realp" "type = PTR TO -> \\( $real \\)"
index 1671627bd03f1b161de5906f10b02c41c2494f0a..8f336fe09f622a81766a8f49426d060482c30522 100644 (file)
@@ -35,6 +35,6 @@ gdb_continue_to_breakpoint "BP1"
 # Check the indentation when using ptype on pointers in user-defined types.
 gdb_test "ptype tinsta" \
   [multi_line "type = Type tuserdef" \
-              "    $int :: i" \
-              "    PTR TO -> \\( $real :: ptr \\)" \
-              "End Type tuserdef"]
+             "    $int :: i" \
+             "    PTR TO -> \\( $real :: ptr \\)" \
+             "End Type tuserdef"]
index 2ced37c319012c8d8e428074dbaf42e9e4e846ca..3b475d68a1e1740a9b0ef126eb56a1c1e6ec5274 100644 (file)
@@ -21,7 +21,7 @@ c by Wu Zhou. (woodzltc@cn.ibm.com)
         character *7 str
         integer array(7)
 
-c Initialize character array "str" and integer array "array". 
+c Initialize character array "str" and integer array "array".
         str = 'abcdefg'
         do i = 1, 7
           array(i) = i
index b560d46b2c3ef540f7bcda43c076caf9d232cf4e..1f7b1c52851d7a2da2fa3eea66fbb3b810b504cc 100755 (executable)
@@ -45,9 +45,9 @@ gdb_test "print onev%ivla(5, 11, 23)" " = 1"
 gdb_test "print onev%ivla(1, 2, 3)" " = 123"
 gdb_test "print onev%ivla(3, 2, 1)" " = 321"
 gdb_test "ptype onev" \
-         [multi_line "type = Type one" \
-                     "\\s+$int, allocatable :: ivla\\\(11,22,33\\\)" \
-                     "End Type one" ]
+        [multi_line "type = Type one" \
+                    "\\s+$int, allocatable :: ivla\\\(11,22,33\\\)" \
+                    "End Type one" ]
 
 # Check type with two VLA's inside
 gdb_breakpoint [gdb_get_line_number "twov-filled"]
@@ -56,10 +56,10 @@ gdb_test "print twov%ivla1(5, 11, 23)" " = 1"
 gdb_test "print twov%ivla1(1, 2, 3)" " = 123"
 gdb_test "print twov%ivla1(3, 2, 1)" " = 321"
 gdb_test "ptype twov" \
-         [multi_line "type = Type two" \
-                     "\\s+$int, allocatable :: ivla1\\\(5,12,99\\\)" \
-                     "\\s+$int, allocatable :: ivla2\\\(9,12\\\)" \
-                     "End Type two" ]
+        [multi_line "type = Type two" \
+                    "\\s+$int, allocatable :: ivla1\\\(5,12,99\\\)" \
+                    "\\s+$int, allocatable :: ivla2\\\(9,12\\\)" \
+                    "End Type two" ]
 gdb_test "print twov" " = \\\( ivla1 = \\\(\\\(\\\(1, 1, 1, 1, 1\\\)\
  \\\(1, 1, 321, 1, 1\\\)\
  \\\(1, 1, 1, 1, 1\\\) .*"
@@ -72,10 +72,10 @@ gdb_test "print threev%ivla(5)" " = 42"
 gdb_test "print threev%ivla(14)" " = 24"
 gdb_test "print threev%ivar" " = 3"
 gdb_test "ptype threev" \
-         [multi_line "type = Type three" \
-                     "\\s+$int :: ivar" \
-                     "\\s+$int, allocatable :: ivla\\\(20\\\)" \
-                     "End Type three" ]
+        [multi_line "type = Type three" \
+                    "\\s+$int :: ivar" \
+                    "\\s+$int, allocatable :: ivla\\\(20\\\)" \
+                    "End Type three" ]
 
 # Check type with attribute at end of type
 gdb_breakpoint [gdb_get_line_number "fourv-filled"]
@@ -86,10 +86,10 @@ gdb_test "print fourv%ivla(7)" " = 7"
 gdb_test "print fourv%ivla(12)" "no such vector element"
 gdb_test "print fourv%ivar" " = 3"
 gdb_test "ptype fourv" \
-         [multi_line "type = Type four" \
-                     "\\s+$int, allocatable :: ivla\\\(10\\\)" \
-                     "\\s+$int :: ivar" \
-                     "End Type four" ]
+        [multi_line "type = Type four" \
+                    "\\s+$int, allocatable :: ivla\\\(10\\\)" \
+                    "\\s+$int :: ivar" \
+                    "End Type four" ]
 
 # Check nested types containing a VLA
 gdb_breakpoint [gdb_get_line_number "fivev-filled"]
@@ -98,13 +98,13 @@ gdb_test "print fivev%tone%ivla(5, 5, 1)" " = 1"
 gdb_test "print fivev%tone%ivla(1, 2, 3)" " = 123"
 gdb_test "print fivev%tone%ivla(3, 2, 1)" " = 321"
 gdb_test "ptype fivev" \
-         [multi_line "type = Type five" \
-                     "\\s+Type one :: tone" \
-                     "End Type five" ]
+        [multi_line "type = Type five" \
+                    "\\s+Type one :: tone" \
+                    "End Type five" ]
 gdb_test "ptype fivev%tone" \
-         [multi_line "type = Type one" \
-                     "    $int, allocatable :: ivla\\(10,10,10\\)" \
-                     "End Type one" ]
+        [multi_line "type = Type one" \
+                    "    $int, allocatable :: ivla\\(10,10,10\\)" \
+                    "End Type one" ]
 
 # Check array of types containing a VLA
 gdb_breakpoint [gdb_get_line_number "fivearr-filled"]
@@ -115,38 +115,38 @@ gdb_test "print fivearr(1)%tone%ivla(2, 2, 3)" " = 223"
 gdb_test "print fivearr(2)%tone%ivla(12, 14, 16)" " = 2"
 gdb_test "print fivearr(2)%tone%ivla(6, 7, 8)" " = 678"
 gdb_test "ptype fivearr(1)" \
-         [multi_line "type = Type five" \
-                     "\\s+Type one :: tone" \
-                     "End Type five" ]
+        [multi_line "type = Type five" \
+                    "\\s+Type one :: tone" \
+                    "End Type five" ]
 gdb_test "ptype fivearr(1)%tone" \
-         [multi_line "type = Type one" \
-                     "    $int, allocatable :: ivla\\(2,4,6\\)" \
-                     "End Type one" ]
+        [multi_line "type = Type one" \
+                    "    $int, allocatable :: ivla\\(2,4,6\\)" \
+                    "End Type one" ]
 gdb_test "ptype fivearr(2)" \
-         [multi_line "type = Type five" \
-                     "\\s+Type one :: tone" \
-                     "End Type five" ]
+        [multi_line "type = Type five" \
+                    "\\s+Type one :: tone" \
+                    "End Type five" ]
 gdb_test "ptype fivearr(2)%tone" \
-         [multi_line "type = Type one" \
-                     "    $int, allocatable :: ivla\\(12,14,16\\)" \
-                     "End Type one" ]
+        [multi_line "type = Type one" \
+                    "    $int, allocatable :: ivla\\(12,14,16\\)" \
+                    "End Type one" ]
 
 # Check allocation status of dynamic array and it's dynamic members
 gdb_test "ptype fivedynarr" \
-         [multi_line "type = Type five" \
-                     "    Type one :: tone" \
-                     "End Type five, allocatable \\(:\\)" ]
+        [multi_line "type = Type five" \
+                    "    Type one :: tone" \
+                    "End Type five, allocatable \\(:\\)" ]
 gdb_test "next" ""
 gdb_test "ptype fivedynarr(2)" \
-         [multi_line "type = Type five" \
-                     "\\s+Type one :: tone" \
-                     "End Type five" ] \
-         "ptype fivedynarr(2), tone is not allocated"
+        [multi_line "type = Type five" \
+                    "\\s+Type one :: tone" \
+                    "End Type five" ] \
+        "ptype fivedynarr(2), tone is not allocated"
 gdb_test "ptype fivedynarr(2)%tone" \
-         [multi_line "type = Type one" \
-                     "    $int, allocatable :: ivla\\(:,:,:\\)" \
-                     "End Type one" ] \
-         "ptype fivedynarr(2)%tone, not allocated"
+        [multi_line "type = Type one" \
+                    "    $int, allocatable :: ivla\\(:,:,:\\)" \
+                    "End Type one" ] \
+        "ptype fivedynarr(2)%tone, not allocated"
 
 # Check dynamic array of types containing a VLA
 gdb_breakpoint [gdb_get_line_number "fivedynarr-filled"]
@@ -157,18 +157,18 @@ gdb_test "print fivedynarr(1)%tone%ivla(2, 2, 3)" " = 223"
 gdb_test "print fivedynarr(2)%tone%ivla(12, 14, 16)" " = 2"
 gdb_test "print fivedynarr(2)%tone%ivla(6, 7, 8)" " = 678"
 gdb_test "ptype fivedynarr(1)" \
-         [multi_line "type = Type five" \
-                     "\\s+Type one :: tone" \
-                     "End Type five" ]
+        [multi_line "type = Type five" \
+                    "\\s+Type one :: tone" \
+                    "End Type five" ]
 gdb_test "ptype fivedynarr(1)%tone" \
-         [multi_line "type = Type one" \
-                     "    $int, allocatable :: ivla\\(2,4,6\\)" \
-                     "End Type one" ]
+        [multi_line "type = Type one" \
+                    "    $int, allocatable :: ivla\\(2,4,6\\)" \
+                    "End Type one" ]
 gdb_test "ptype fivedynarr(2)" \
-         [multi_line "type = Type five" \
-                     "\\s+Type one :: tone" \
-                     "End Type five" ]
+        [multi_line "type = Type five" \
+                    "\\s+Type one :: tone" \
+                    "End Type five" ]
 gdb_test "ptype fivedynarr(2)%tone" \
-         [multi_line "type = Type one" \
-                     "    $int, allocatable :: ivla\\(12,14,16\\)" \
-                     "End Type one" ]
+        [multi_line "type = Type one" \
+                    "    $int, allocatable :: ivla\\(12,14,16\\)" \
+                    "End Type one" ]
index ef40dffc5a3cecfcbcc9bf64813bc4be521c67a5..7bf544dd36137e88dae3cabe9c6ef54cd32dc61e 100644 (file)
@@ -52,4 +52,3 @@ gdb_test "p sub_arr1(5, 7)" " = 5" "sub_arr1(5, 7) after finish"
 gdb_test "p sub_arr1(1, 1)" " = 30" "sub_arr1(1, 1) after finish"
 gdb_test "p sub_arr2(1, 1, 1)" " = 30" "sub_arr2(1, 1, 1) after finish"
 gdb_test "p sub_arr2(2, 1, 1)" " = 20" "sub_arr2(2, 1, 1) after finish"
-
index 8891eac3959342eb278f92b43de07f08d66df77f..e36409354431252ac15147fabec56143518aabd9 100644 (file)
@@ -19,7 +19,7 @@ standard_testfile type.f90
 load_lib "fortran.exp"
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
-                          ${srcfile} {debug f90}] } {
+                         ${srcfile} {debug f90}] } {
     return -1
 }
 
@@ -47,29 +47,29 @@ gdb_test "whatis t3p" "type = PTR TO -> \\( Type t3 \\)"
 
 gdb_test "ptype t1" \
   [multi_line "type = Type t1" \
-                 "    $t1_i" \
-                 "    $t1_r" \
-                 "End Type t1"]
+                 "    $t1_i" \
+                 "    $t1_r" \
+                 "End Type t1"]
 gdb_test "ptype t1v" \
   [multi_line "type = Type t1" \
-                 "    $t1_i" \
-                 "    $t1_r" \
-                 "End Type t1"]
+                 "    $t1_i" \
+                 "    $t1_r" \
+                 "End Type t1"]
 
 gdb_test "ptype t2v" \
   [multi_line "type = Type t2" \
-              "    $int :: t2_i" \
-              "    Type t1 :: t1_n" \
-              "End Type t2"]
+             "    $int :: t2_i" \
+             "    Type t1 :: t1_n" \
+             "End Type t2"]
 
 gdb_test "ptype t3v" \
   [multi_line "type = Type t3" \
-              "    $int :: t3_i" \
-              "    Type t2 :: t2_n" \
-              "End Type t3"]
+             "    $int :: t3_i" \
+             "    Type t2 :: t2_n" \
+             "End Type t3"]
 
 gdb_test "ptype t3p" \
   [multi_line "type = PTR TO -> \\( Type t3" \
-              "    $int :: t3_i" \
-              "    Type t2 :: t2_n" \
-              "End Type t3 \\)"]
+             "    $int :: t3_i" \
+             "    Type t2 :: t2_n" \
+             "End Type t3 \\)"]
index 9388bcaff0ab57d62eda9af5217fd508714649b0..399321ca40b9ce3bbc5f5ed91de38e59e4a56ce2 100644 (file)
     (hash-set! dict "ss" make-pp_ss-printer)
     (hash-set! dict "const S &" make-pp_s-printer)
     (hash-set! dict "SSS" make-pp_sss-printer)
-    
+
     (hash-set! dict "VirtualTest" make-pp_multiple_virtual-printer)
     (hash-set! dict "Vbase1" make-pp_vbase1-printer)
 
     (hash-set! dict "struct nullstr" make-pp_nullstr-printer)
     (hash-set! dict "nullstr" make-pp_nullstr-printer)
-    
+
     ;; Note that we purposely omit the typedef names here.
     ;; Printer lookup is based on canonical name.
     ;; However, we do need both tagged and untagged variants, to handle
index ea77d8fca544c97d77d92a529f19e9512801a42d..98a4196e4d87c7197a7241c1de8a5c8ab3726f34 100644 (file)
@@ -409,7 +409,7 @@ proc test_value_hash {} {
        "(define one (make-value 1))" "" \
        "(define two (make-value 2))" "" \
        "(define three (make-value 3))" "" \
-        "(define vdict (make-hash-table 5))" "" \
+       "(define vdict (make-hash-table 5))" "" \
        "(hash-set! vdict one \"one str\")" "" \
        "(hash-set! vdict two \"two str\")" "" \
        "(hash-set! vdict three \"three str\")" "" \
index 989b1a560435aeadc430bf7e4e148df63ac9709c..cfda6b0fc5f04020cf993bf93dff24eaad03b439 100644 (file)
@@ -63,4 +63,3 @@ gdb_test "delete 2"
 gdb_test "break $asm_file0:func" \
     "Breakpoint 3 at 0x\[0-9a-fA-F\]+: .*$asm_file0.*(2 locations).*" \
     "set a break-point at function in all instances for a selected ASM file."
-
index 86b55bb949732c3dae5e4fddef6e3f98cc8c06c0..531986fed86d114f4adb46d321947f255bc34b7e 100644 (file)
@@ -49,12 +49,12 @@ if { [is_remote host] } {
     untested "breakpoints using dir/file:line"
 } else {
     gdb_test "break one/thefile.cc:$l1" \
-        "Breakpoint $decimal at $hex: file .*thefile.cc, line $l1." \
-        "single-location break using dir/file:line"
+       "Breakpoint $decimal at $hex: file .*thefile.cc, line $l1." \
+       "single-location break using dir/file:line"
 
     gdb_test "clear one/thefile.cc:$l1" \
-        "Deleted breakpoint $decimal *" \
-        "clear breakpoint using dir/file:line"
+       "Deleted breakpoint $decimal *" \
+       "clear breakpoint using dir/file:line"
 
     if { [readline_is_used] } {
        # There are functions named 'twodup' in both source files.
index 56f946720bbc8f8a2a19e77c91b832cea390ca10..f8be32f9a8bffab8a592431f64d074b0c5d19958 100644 (file)
@@ -25,7 +25,7 @@ proc do_test {lang} {
     if {[info exists compiler_info]} {
        # Unsetting compiler_info allows us to switch compilers
        # used by prepare_for_testing.
-        unset compiler_info
+       unset compiler_info
     }
     set options {debug}
 
index 6f263c33056934ee69252daba52dbd60adb5539f..6170b85d698e3329c57a3e81da93037bf782fdc3 100644 (file)
 
        * mi-stack.exp: Update.  Output for args=... and
        locals=... changed to a list.
-       
+
 2001-06-26  Andrew Cagney  <ac131313@redhat.com>
 
        * mi-stack.exp: Update. Output for stack=..., args=... and
        * mi0-var-cmd.exp: Copy mi-var-cmd.exp.
        * mi0-var-display.exp: Copy mi-var-display.exp.
        * mi0-watch.exp: Copy mi-watch.exp.
-       
+
 2001-05-11  Fernando Nasser  <fnasser@redhat.com>
 
        * mi-var-child.exp: Adjust for the fact that now (char *) can be
@@ -341,7 +341,7 @@ Tue Apr 18 15:36:07 2000  Andrew Cagney  <cagney@b1.cygnus.com>
 Tue Mar 14 15:54:57 2000  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * basics.c: Add EMACS local variable pointing change-log at this
-       file.
+       file.
        * Makefile.in: Ditto
 
 2000-03-13  James Ingham  <jingham@leda.cygnus.com>
@@ -355,50 +355,50 @@ Tue Mar 14 15:54:57 2000  Andrew Cagney  <cagney@b1.cygnus.com>
 2000-03-06  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
 
        * mi-disassemble.exp: Don't assume numbers for the offset
-       values. They can be different depending on the architecture.
+       values. They can be different depending on the architecture.
 
        * mi-watch.exp (test_watchpoint_triggering): In same cases the
-       type can be 'hw wathcpoint' not just 'watchpoint'. Adjust for that.
+       type can be 'hw wathcpoint' not just 'watchpoint'. Adjust for that.
 
        * basics.c (callee4): Make the function return something,
-       otherwise the return value is undefined.
+       otherwise the return value is undefined.
 
 2000-03-06  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
 
        * mi-basics.exp: Comment out test for a still unimplemented operation.
 
        * mi-disassemble.exp: Rewrite most of the tests to conform to new
-       disassemble interface.
+       disassemble interface.
 
 Sat Mar  4 13:55:08 2000  Andrew Cagney  <cagney@b1.cygnus.com>
 
        From Fri 3 Mar 2000 Peter Schauer:
        * mi-support.exp (mi_gdb_start): When GDB doesn't recongize -i=mi
-       option, assume no MI support present.
+       option, assume no MI support present.
 
 2000-02-01  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
 
        * mi-support.exp (mi_gdb_start): Update to recognize start up
-       message with 'UI_OUT' instead of 'HEADLESS'.
+       message with 'UI_OUT' instead of 'HEADLESS'.
 
 2000-01-27  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
 
        * mi-regs.exp (test_running_the_program): Add global var 'hex'.
 
        * mi-stack.exp, mi-stepi.exp, mi-until.exp, mi-watch.exp,
-       mi-var-display.exp, mi-var-cmd.exp, mi-var-child.exp,
-       mi-var-block.exp: Update all stopped messages.
+       mi-var-display.exp, mi-var-cmd.exp, mi-var-child.exp,
+       mi-var-block.exp: Update all stopped messages.
 
 2000-01-17  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
 
        * mi-console.exp, mi-disassemble.exp, mi-eval.exp,
-       mi-read-memory.exp, mi-regs.exp, mi-return.exp, mi-simplerun.exp:
-       Update stopped messages, update copyright.
-       
+       mi-read-memory.exp, mi-regs.exp, mi-return.exp, mi-simplerun.exp:
+       Update stopped messages, update copyright.
+
        * mi-disassemble.exp: Update error messages output.
-       
+
        * mi-support.exp (proc mi_step): Make gdb do a 'step' command, not
-       a 'next'. Update stopped message.
+       a 'next'. Update stopped message.
        (proc mi_next): Update stop message.
        (proc mi_run_to_main): Update stopped message.
        Update copyright.
@@ -410,27 +410,27 @@ Sat Mar  4 13:55:08 2000  Andrew Cagney  <cagney@b1.cygnus.com>
        * mi-stack.exp: New file, tests for stack commands.
 
        * mi-support.exp (mi_run_to_main, mi_next, mi_step) : Update to
-       include thread-id in stopped message.
+       include thread-id in stopped message.
 
        * mi-regs.exp: Update break-insert output.
 
        * (mi-console.exp, mi-disassemble.exp, mi-eval.exp,
-       mi-read-memory.exp, mi-regs.exp, mi-return.exp, mi-simplerun.exp,
-       mi-stepi.exp, mi-until.exp, mi-var-block.exp, mi-var-child.exp,
-       mi-var-cmd.exp, mi-var-display.exp, mi-watch.exp): Update stopped
-       message to include thread-id.
+       mi-read-memory.exp, mi-regs.exp, mi-return.exp, mi-simplerun.exp,
+       mi-stepi.exp, mi-until.exp, mi-var-block.exp, mi-var-child.exp,
+       mi-var-cmd.exp, mi-var-display.exp, mi-watch.exp): Update stopped
+       message to include thread-id.
 
 Wed Dec 29 22:06:05 1999  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * mi-watch.exp, mi-var-display.exp, mi-var-cmd.exp,
-       mi-var-child.exp, mi-var-block.exp, mi-until.exp, mi-stepi.exp,
-       mi-simplerun.exp, mi-return.exp, mi-support.exp, mi-eval.exp,
-       mi-console.exp, mi-disassemble.exp, mi-break.exp: Update to
-       reflect extended output from -break-insert command.
-       
+       mi-var-child.exp, mi-var-block.exp, mi-until.exp, mi-stepi.exp,
+       mi-simplerun.exp, mi-return.exp, mi-support.exp, mi-eval.exp,
+       mi-console.exp, mi-disassemble.exp, mi-break.exp: Update to
+       reflect extended output from -break-insert command.
+
        * mi-break.exp (test_rbreak_creation_and_listing): XFAIL regexp
-       tests.  -r flag broken by above.
-       
+       tests.  -r flag broken by above.
+
 Sun Dec 19 19:28:13 1999  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * cpp_variable.cc, cpp_variable.h, c_variable.c: Delete.
@@ -454,7 +454,7 @@ Fri Dec 17 20:59:55 1999  Andrew Cagney  <cagney@b1.cygnus.com>
        * mi-var-block.exp: Set up xfails fro known problems.
 
        * mi-var-display.exp: Set up printing of values of 'e' and 'anone'
-       as xfails.
+       as xfails.
 
        * mi-var-child.exp: Fix typos.
 
@@ -465,41 +465,41 @@ Fri Dec 17 20:59:55 1999  Andrew Cagney  <cagney@b1.cygnus.com>
 Wed Dec 15 19:23:38 1999  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * mi-read-memory.exp: Add test for ``-o <offset>''.  Update checks
-       and match next-row et.al.
+       and match next-row et.al.
 
 1999-12-14  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
 
        * mi-var-display.exp : New file. Tests for format and type, with
-       unions, structs and enums.
-       
+       unions, structs and enums.
+
        * mi-var-cmd.exp: Add some var-assign tests.
 
-1999-12-14 Elena Zannoni <ezannoni@kwikemart.cygnus.com> 
+1999-12-14 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
 
        * mi-var-cmd.exp, mi-var-block.exp, mi-var-child.exp: New files
-       some tests for -var* commands.
+       some tests for -var* commands.
 
        * var-cmd.c: New source file for var-* commands tests.
        * gdb.mi/Makefile.in (PROGS): Add var-cmd.
-       
+
 Mon Dec 13 18:06:09 1999  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * mi-break.exp: Fix quoting.  Changed "srcfile.c":6 to
-       "\"srcfile.c\":6".
+       "\"srcfile.c\":6".
        * mi-simplerun.exp: Fix quoting.
 
 Sat Dec 11 21:33:37 1999  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * mi-simplerun.exp (exec-finish): Fix return value was zero,
-       should have been three.
+       should have been three.
 
        * mi-disassemble.exp: Reduce number of wild card matches in
-       * patterns.  Remove all numeric constants.
+       * patterns.  Remove all numeric constants.
 
 1999-12-09  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
 
        * mi-eval.exp: New file. Some initial tests for
-       -data-evaluate-expression.
+       -data-evaluate-expression.
 
 1999-12-09  Fernando Nasser  <fnasser@totem.to.cygnus.com>
 
@@ -510,20 +510,20 @@ Sat Dec 11 21:33:37 1999  Andrew Cagney  <cagney@b1.cygnus.com>
 1999-12-08  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
 
        * mi-regs.exp: Fix test for format 'N' for
-       data-list-register-values.
+       data-list-register-values.
 
 1999-12-07  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
 
        * mi-disassemble.exp: Update expected output. Break test of
-       disassembly in mixed mode into 2 functions.
+       disassembly in mixed mode into 2 functions.
 
        * mi-regs.exp: Initial register tests. Works only on sparc right
-       now.
+       now.
 
 1999-12-02  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
 
        * mi-stepi.exp: New file. Tests exec-step-instruction and
-       exec-next-instruction.
+       exec-next-instruction.
        * mi-until.exp: New file. Tests exec-until.
        * until.c: New file.
        * mi-return.exp: New file. Tests exec-return.
@@ -531,52 +531,52 @@ Sat Dec 11 21:33:37 1999  Andrew Cagney  <cagney@b1.cygnus.com>
 Thu Dec  2 09:38:23 1999  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * mi-hack-cli.exp: New test.  Check the hacked up access to the
-       CLI.
+       CLI.
 
 Wed Dec  1 16:47:40 1999  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * mi-basics.exp: Delete calls to mi_delete_breakpoints,
-       mi_gdb_reinitialize_dir and mi_gdb_load.  This test is checking
-       that these can work.
+       mi_gdb_reinitialize_dir and mi_gdb_load.  This test is checking
+       that these can work.
 
        * mi-support.exp (mi_step, mi_next, mi_run_to_main): New
        procedures.
 
        * mi-read-memory.exp, mi-read-memory.c: New files.  Test
-       data-read-memory command.
-       
+       data-read-memory command.
+
 Tue Nov 30 23:54:16 1999  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * mi-support.exp: Don't start SID until after GDB has been started
-       and verified.
-       
+       and verified.
+
 Tue Nov 30 22:21:33 1999  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * mi-support.exp (mi_uncatched_gdb_exit): When SID, call sid_exit.
        (mi_gdb_start): When SID, call sid_start.
        (mi_gdb_start): Add MIFLAGS to spawn-GDB command.  Check for
-       HEADLESS gdb.  Return non-zero when GDB fails to start.
+       HEADLESS gdb.  Return non-zero when GDB fails to start.
        (mi_gdb_load): When SID or SIM, download program.
        (mi_run_cmd): Don't do download here.  Assume target supports the
-       00-exec-run command.
+       00-exec-run command.
        (skip_mi_tests, setup_gdbmi, unset_gdbmi): Delete.  Merged into
-       mi_gdb_start.
+       mi_gdb_start.
 
        * mi-basics.exp, mi-break.exp, mi-console.exp, mi-disassemble.exp,
-       mi-simplerun.exp, mi-watch.exp: Update.  Check status from
-       mi_gdb_start indicating that GDB started correctly.
+       mi-simplerun.exp, mi-watch.exp: Update.  Check status from
+       mi_gdb_start indicating that GDB started correctly.
 
 Tue Nov 30 15:22:08 1999  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * mi-support.exp (setup_gdbmi, unset_gdbmi): New
-       procedures.  Setup/unset dejagnu for mi tests.
+       procedures.  Setup/unset dejagnu for mi tests.
        * mi-basics.exp, mi-console.exp, mi-simplerun.exp, mi-break.exp,
-       mi-disassemble.exp, mi-watch.exp: Update.
+       mi-disassemble.exp, mi-watch.exp: Update.
 
 1999-11-29  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
 
        * mi-simplerun.exp (test_running_the_program): Remove XFAIL. The
-       output is fixed now.
+       output is fixed now.
        (test_program_termination): Update output pattern.
 
 Tue Nov 30 00:19:10 1999  Andrew Cagney  <cagney@b1.cygnus.com>
@@ -586,26 +586,26 @@ Tue Nov 30 00:19:10 1999  Andrew Cagney  <cagney@b1.cygnus.com>
 Mon Nov 29 17:59:13 1999  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * mi-support.exp (mi_run_command): Check for exec-run command
-       failure due to MI not having an active target.
+       failure due to MI not having an active target.
        (mi_run_command): Check for and handle a builtin simulator target.
        (mi_run_command): Don't check/handle for ``The program has been
-       started already'', not a valid MI response.
-       
+       started already'', not a valid MI response.
+
        * mi-simplerun.exp (test_running_the_program): Update all patterns
-       to match async output.
+       to match async output.
        (test_running_the_program): Mark ``step to callee4'' as XFAIL.  MI
-       output contains {,reason="end-stepping-range"}+.
+       output contains {,reason="end-stepping-range"}+.
 
        * mi-simplerun.exp: Limit the timeout for ``step to callee4'' to
-       30 seconds.
+       30 seconds.
 
 Mon Nov 29 17:30:00 1999  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * mi-support.exp (skip_mi_tests): Print UNTESTED when MI interface
-       isn't available.  Start/stop instead of assuming GDB is running.
+       isn't available.  Start/stop instead of assuming GDB is running.
        (MIFLAGS): Define.
        * mi-simplerun.exp, mi-disassemble.exp, mi-break.exp,
-       mi-basics.exp, mi-watch.exp: Update.
+       mi-basics.exp, mi-watch.exp: Update.
 
 1999-11-26  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
 
@@ -620,8 +620,8 @@ Wed Nov 24 17:42:07 1999  Andrew Cagney  <cagney@b1.cygnus.com>
 Wed Nov 24 17:31:04 1999  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * gdb.mi/mi-basics.exp, gdb.mi/mi-disassemble.exp,
-       gdb.mi/mi-simplerun.exp: Print warning message when test isn't
-       run.
+       gdb.mi/mi-simplerun.exp: Print warning message when test isn't
+       run.
 
 1999-11-23  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
 
@@ -637,18 +637,18 @@ Wed Nov 24 17:31:04 1999  Andrew Cagney  <cagney@b1.cygnus.com>
 1999-11-04  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
 
        * gdb.mi/mi-disassemble.exp: Update output of execution commands
-       to reflect new 'reason' field.
+       to reflect new 'reason' field.
        * gdb.mi/mi-simplerun.exp: Ditto.
 
 1999-10-25  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
 
        * gdb.mi/mi-simplerun.exp: Add more stack-list-frames tests.
 
-       * gdb.mi/mi-disassemble.exp: Update 'run to main' output.  
+       * gdb.mi/mi-disassemble.exp: Update 'run to main' output.
 
        * gdb.mi/mi-simplerun.exp: Update execution commands
-       output. Update backtrace output.
-       
+       output. Update backtrace output.
+
 1999-10-18  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
 
        * gdb.mi/mi-disassemble.exp: Add new tests for the new
@@ -657,9 +657,9 @@ Wed Nov 24 17:31:04 1999  Andrew Cagney  <cagney@b1.cygnus.com>
 Mon Oct 11 13:57:21 1999  Andrew Cagney  <cagney@amy.cygnus.com>
 
        * lib/mi-support.exp: Break complicated gdb_expect containing
-       exp_continue into a while within an expect.  Don't attempt a start
-       more than three times.  Check return value from gdb_load.
-       
+       exp_continue into a while within an expect.  Don't attempt a start
+       more than three times.  Check return value from gdb_load.
+
 1999-10-06  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
 
        * gdb.mi/mi-disassemble.exp: New file.
@@ -667,7 +667,7 @@ Mon Oct 11 13:57:21 1999  Andrew Cagney  <cagney@amy.cygnus.com>
 Wed Oct  6 12:05:58 1999  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * lib/mi-support.exp (mi_run_cmd): Give up after two restart
-       attempts.
+       attempts.
 
 1999-09290  Fernando Nasser  <fnasser@totem.to.cygnus.com>
 
@@ -707,7 +707,7 @@ Wed Oct  6 12:05:58 1999  Andrew Cagney  <cagney@b1.cygnus.com>
 1999-06-24  Fernando Nasser  <fnasser@totem.to.cygnus.com>
 
        * lib/mi-support.exp (mi_run_cmd): Fix pattern and add a timeout
-       clause.
+       clause.
 
 1999-06-24  Fernando Nasser  <fnasser@totem.to.cygnus.com>
 
@@ -742,7 +742,7 @@ Wed Oct  6 12:05:58 1999  Andrew Cagney  <cagney@b1.cygnus.com>
 
 1999-06-22  Fernando Nasser  <fnasser@totem.to.cygnus.com>
 
-        * gdb.mi/mi-simplerun.exp: New file. Tests simple debugging tasks. 
+        * gdb.mi/mi-simplerun.exp: New file. Tests simple debugging tasks.
         * gdb.mi/mi-basics.exp: Remove tests moved to above new file.
         * lib/mi-support.exp: New file.  Support procedures for mi tests.
 
index da1db6403461be4978944e28f17d09f1281a1af2..eae0b59197bc1177087a6d902895ed01d7dc1d5a 100644 (file)
@@ -40,4 +40,3 @@ for {set i 0} {$i < 4} {incr i} {
 }
 
 mi_gdb_exit
-
index a8392c70b4d7e5fdb83983f253f7feeb3a712788..18b8527f52dee62c78590bd80b208dc81a0e7035 100644 (file)
@@ -62,4 +62,3 @@ main (void)
 
   return 0;
 }
-
index 867eb26a51a005b2ebab5c28634e37ab51887593..cdc8d3c5230d0152e5bf53916c32d7b308881444 100644 (file)
@@ -32,15 +32,15 @@ if {[mi_clean_restart]} {
 set test "-list-thread-groups --available"
 gdb_test_multiple $test $test {
     -re "\}" {
-        exp_continue
+       exp_continue
     }
     -re "\r\n$gdb_prompt " {
-        pass $test
+       pass $test
     }
 }
 
 # Verify that GDB is still alive.
 
 mi_gdb_test "-data-evaluate-expression 1" \
-            ".*\\^done,value=\"1\"" \
-            "GDB is still alive"
+           ".*\\^done,value=\"1\"" \
+           "GDB is still alive"
index 3038a2cbadf2762b4d14c3a2d7d5d4a2abb92279..c813e99803e55300ff87b78edd970f158f8921ff 100644 (file)
@@ -106,12 +106,12 @@ proc test_exec_and_symbol_mi_operatons {} {
 #            "file-clear operation"
 
     mi_gdb_test "-file-exec-file ${filename}" \
-             "\\\^done" \
-             "file-exec-file operation"
+            "\\\^done" \
+            "file-exec-file operation"
 
     mi_gdb_test "-file-symbol-file ${filename}" \
-             "\\\^done" \
-             "file-symbol-file operation"
+            "\\\^done" \
+            "file-symbol-file operation"
 
     # We need to return != 0.
     return 1
@@ -128,12 +128,12 @@ proc test_breakpoints_deletion {} {
 
     # The all parameter is actually no parameter.
     mi_gdb_test "200-break-delete" \
-             "200\\\^done" \
-             "break-delete (all) operation"
+            "200\\\^done" \
+            "break-delete (all) operation"
 
     mi_gdb_test "201-break-list" \
-             ".*\\\^done,BreakpointTable=\\\{.*,body=\\\[\\\]\\\}" \
-             "all breakpoints removed"
+            ".*\\\^done,BreakpointTable=\\\{.*,body=\\\[\\\]\\\}" \
+            "all breakpoints removed"
 }
 
 proc test_dir_specification {} {
@@ -148,16 +148,16 @@ proc test_dir_specification {} {
     # -environment-directory -r
 
     mi_gdb_test "202-environment-directory ${testsubdir}" \
-             "202\\\^done,source-path=\"${envirodir}.\\\$cdir.\\\$cwd\"" \
-             "environment-directory arg operation"
+            "202\\\^done,source-path=\"${envirodir}.\\\$cdir.\\\$cwd\"" \
+            "environment-directory arg operation"
 
     mi_gdb_test "203-environment-directory" \
-             "203\\\^done,source-path=\"${envirodir}.\\\$cdir.\\\$cwd\"" \
-             "environment-directory empty-string operation"
+            "203\\\^done,source-path=\"${envirodir}.\\\$cdir.\\\$cwd\"" \
+            "environment-directory empty-string operation"
 
     mi_gdb_test "204-environment-directory -r" \
-             "204\\\^done,source-path=\"\\\$cdir.\\\$cwd\"" \
-             "environment-directory operation"
+            "204\\\^done,source-path=\"\\\$cdir.\\\$cwd\"" \
+            "environment-directory operation"
 }
 
 proc test_cwd_specification {} {
@@ -171,15 +171,15 @@ proc test_cwd_specification {} {
     # -environment-pwd
 
     mi_gdb_test "205-environment-cd ${objdir}" \
-             "205\\\^done" \
-             "environment-cd arg operation"
+            "205\\\^done" \
+            "environment-cd arg operation"
 
     # The canonical name of the working directory may differ on a
     # remote host from that on the build system.
     if {![is_remote host]} {
        mi_gdb_test "206-environment-pwd" \
-             "206\\\^done,cwd=\"${escapedobjdir}\"" \
-             "environment-pwd operation"
+            "206\\\^done,cwd=\"${escapedobjdir}\"" \
+            "environment-pwd operation"
     }
 }
 
@@ -205,20 +205,20 @@ proc test_path_specification {} {
     set orig_path [string_to_regexp ${orig_path}]
 
     mi_gdb_test "207-environment-path" \
-             "207\\\^done,path=\"$orig_path\"" \
-             "environment-path no-args operation"
+            "207\\\^done,path=\"$orig_path\"" \
+            "environment-path no-args operation"
 
     mi_gdb_test "208-environment-path $objdir ${testsubdir}" \
-             "208\\\^done,path=\"$escapedobjdir.${envirodir}.$orig_path\"" \
-             "environment-path dir1 dir2 operation"
+            "208\\\^done,path=\"$escapedobjdir.${envirodir}.$orig_path\"" \
+            "environment-path dir1 dir2 operation"
 
     mi_gdb_test "209-environment-path -r $objdir" \
-             "209\\\^done,path=\"$escapedobjdir.$orig_path\"" \
-             "environment-path -r dir operation"
+            "209\\\^done,path=\"$escapedobjdir.$orig_path\"" \
+            "environment-path -r dir operation"
 
     mi_gdb_test "210-environment-path -r" \
-             "210\\\^done,path=\"$orig_path\"" \
-             "environment-path -r operation"
+            "210\\\^done,path=\"$orig_path\"" \
+            "environment-path -r operation"
 
 }
 
index e4242a3f1b6c9c60d63cb9198896b7d00e728b41..698a3ea1b7ec5c1feb7379e7faf7ca9458246d70 100644 (file)
@@ -59,14 +59,14 @@ proc do_test { mi_version use_fix_flag expect_fixed_output } {
                    "send -fix-multi-location-breakpoint-output"
            }
 
-            # Create a breakpoint.
+           # Create a breakpoint.
            mi_gdb_test "-break-insert main" ".*" "add breakpoint on main"
 
-            set pattern [make_pattern $expect_fixed_output]
+           set pattern [make_pattern $expect_fixed_output]
 
-            # Add commands.  Use the CLI command, so we can verify the
-            # =breakpoint-modified output.
-            mi_gdb_test "commands\nabc\ndef\nend" ".*=breakpoint-modified,$pattern\r\n\\^done" "add breakpoint commands"
+           # Add commands.  Use the CLI command, so we can verify the
+           # =breakpoint-modified output.
+           mi_gdb_test "commands\nabc\ndef\nend" ".*=breakpoint-modified,$pattern\r\n\\^done" "add breakpoint commands"
 
            # Check the -break-info output.
            mi_gdb_test "-break-info" \
index 7fefcfc2eaf86cd1d9b0567d4c495e8765cdddb5..7d6c1fd4d0dd782eee73ad19e65473ddc4a017bf 100644 (file)
@@ -68,4 +68,3 @@ main ()
 
   return 0;
 }
-
index ad29b3f80b26662705c70be2c3c017d522d7dbe0..c2e50449308f94749599edb17a25c2561cdc47d9 100644 (file)
@@ -32,27 +32,27 @@ mi_clean_restart $::testfile
 # debug info of shared libraries like glibc, libgcc, etc.
 
 mi_gdb_test "1-complete br" \
-            "1\\^done,completion=\"break\",matches=\\\[.*\"break\",.*\"break-range\".*\\\],max_completions_reached=\"0\"" \
-            "-complete br"
+           "1\\^done,completion=\"break\",matches=\\\[.*\"break\",.*\"break-range\".*\\\],max_completions_reached=\"0\"" \
+           "-complete br"
 
 # Check empty completion list.
 mi_gdb_test "5-complete bogus" \
-            "5\\^done,matches=\\\[\\\],max_completions_reached=\"0\"" \
-            "-complete bogus"
+           "5\\^done,matches=\\\[\\\],max_completions_reached=\"0\"" \
+           "-complete bogus"
 
 # Check completions for commands with space.
 mi_gdb_test "4-complete \"b mai\"" \
-            "4\\^done,completion=\"b main\",matches=\\\[.*\"b main\".*\\\],max_completions_reached=\"0\"" \
-            "-complete \"b mai\""
+           "4\\^done,completion=\"b main\",matches=\\\[.*\"b main\".*\\\],max_completions_reached=\"0\"" \
+           "-complete \"b mai\""
 
 # Check wildmatching.
 mi_gdb_test "5-complete \"b push_ba\"" \
-            "5\\^done,completion=\"b push_back\\(\",matches=\\\[.*\"b A::push_back\\(void\\*\\)\".*\\\],max_completions_reached=\"0\"" \
-            "-complete \"b push_ba\", wildmatching"
+           "5\\^done,completion=\"b push_back\\(\",matches=\\\[.*\"b A::push_back\\(void\\*\\)\".*\\\],max_completions_reached=\"0\"" \
+           "-complete \"b push_ba\", wildmatching"
 
 mi_gdb_test "-info-gdb-mi-command complete" \
-            "\\^done,command=\{exists=\"true\"\}" \
-            "-info-gdb-mi-command complete"
+           "\\^done,command=\{exists=\"true\"\}" \
+           "-info-gdb-mi-command complete"
 
 # Limit max completions and check that max_completions_reached=\"0\" is set
 # to 1.
@@ -60,13 +60,13 @@ mi_gdb_test "set max-completions 1" ".*=cmd-param-changed.*\\^done" \
     "set max-completions 1"
 
 mi_gdb_test "2-complete br" \
-            ".*2\\^done,completion=\"br\[A-Za-z0-9-\]+\",matches=\\\[\"br\[A-Za-z0-9-\]+\"\\\],max_completions_reached=\"1\"" \
-            "-complete br, max-completions 1"
+           ".*2\\^done,completion=\"br\[A-Za-z0-9-\]+\",matches=\\\[\"br\[A-Za-z0-9-\]+\"\\\],max_completions_reached=\"1\"" \
+           "-complete br, max-completions 1"
 
 # Disable completions and check an error is returned
 mi_gdb_test "set max-completions 0" ".*=cmd-param-changed.*\\^done" \
     "set max-completions 0"
 
 mi_gdb_test "3-complete br" \
-            ".*3\\^error,msg=\".*" \
-            "-complete br, max-completions 0"
+           ".*3\\^error,msg=\".*" \
+           "-complete br, max-completions 0"
index 6c6d05dbda6c90c599357ef31f6f0fcfc5bee691..49951e52342041f4e2f55634bf72476f1818d6a8 100644 (file)
@@ -117,15 +117,15 @@ proc test_disassembly_lines_limit {} {
     mi_gdb_test "print/x \$pc" "" ""
     mi_gdb_test "222-data-disassemble  -f basics.c -l $line_main_body -n 20 -- 0" \
            "222\\^done,asm_insns=\\\[\{address=\"$hex\",func-name=\"main\",offset=\"0\",inst=\".*\"\},.*,\{address=\"$hex\",func-name=\"main\",offset=\"$decimal\",inst=\".*\"\}\\\]" \
-              "data-disassemble file, line, number assembly only"
+             "data-disassemble file, line, number assembly only"
 
     mi_gdb_test "222-data-disassemble  -f basics.c -l $line_main_body -n 0 -- 0" \
            "222\\^done,asm_insns=\\\[\\\]" \
-              "data-disassemble file, line, number (zero lines) assembly only"
+             "data-disassemble file, line, number (zero lines) assembly only"
 
     mi_gdb_test "222-data-disassemble  -f basics.c -l $line_main_body -n 50 -- 0" \
            "222\\^done,asm_insns=\\\[\{address=\"$hex\",func-name=\"main\",offset=\"0\",inst=\".*\"\},.*,\{address=\"$hex\",func-name=\"main\",offset=\"$decimal\",inst=\".*\"\}\\\]" \
-              "data-disassemble file, line, number (more than main lines) assembly only"
+             "data-disassemble file, line, number (more than main lines) assembly only"
 }
 
 
@@ -145,7 +145,7 @@ proc test_disassembly_mixed {} {
 
     mi_gdb_test "002-data-disassemble -f basics.c -l $line_callee2_open_brace -- 1" \
            "002\\^done,asm_insns=\\\[src_and_asm_line=\{line=\"$line_callee2_open_brace\",file=\".*basics.c\",fullname=\"${fullname_syntax}basics.c\",line_asm_insn=\\\[\{address=\"$hex\",func-name=\"callee2\",offset=\"0\",inst=\".*\"\}.*\\\]\}.*,src_and_asm_line=\{line=\"$decimal\",file=\".*basics.c\",fullname=\"${fullname_syntax}basics.c\",line_asm_insn=\\\[.*\{address=\"$hex\",func-name=\"callee2\",offset=\"$decimal\",inst=\".*\"\}\\\]\}\\\]" \
-             "data-disassemble file, line assembly mixed"
+            "data-disassemble file, line assembly mixed"
 
     #
     # In mixed mode, the lowest level of granularity is the source line.
@@ -154,7 +154,7 @@ proc test_disassembly_mixed {} {
     #
     mi_gdb_test "003-data-disassemble -s \$pc -e \"\$pc+4\" -- 1" \
            "003\\^done,asm_insns=\\\[src_and_asm_line=\{line=\"$decimal\",file=\".*basics.c\",fullname=\"${fullname_syntax}basics.c\",line_asm_insn=\\\[\{address=\"$hex\",func-name=\"main\",offset=\"$decimal\",inst=\".*\"\}.*\{address=\"$hex\",func-name=\"main\",offset=\"$decimal\",inst=\".*\"\}\\\]\}\\\]" \
-             "data-disassemble range assembly mixed"
+            "data-disassemble range assembly mixed"
 }
 
 proc test_disassembly_mixed_with_opcodes {} {
@@ -172,8 +172,8 @@ proc test_disassembly_mixed_with_opcodes {} {
     # -data-disassembly -s $pc -e "$pc+8" -- 3
 
     mi_gdb_test "002-data-disassemble -f basics.c -l $line_callee2_open_brace -- 3" \
-           "002\\^done,asm_insns=\\\[src_and_asm_line=\{line=\"$line_callee2_open_brace\",file=\".*basics.c\",fullname=\"${fullname_syntax}basics.c\",line_asm_insn=\\\[\{address=\"$hex\",func-name=\"callee2\",offset=\"0\",opcodes=\".*\",inst=\".*\"\}.*\\\]\}.*,src_and_asm_line=\{line=\"$decimal\",file=\".*basics.c\",fullname=\"${fullname_syntax}basics.c\",line_asm_insn=\\\[.*\{address=\"$hex\",func-name=\"callee2\",offset=\"$decimal\",opcodes=\".*\",inst=\".*\"\}\\\]\}\\\]" \
-             "data-disassemble file, line assembly mixed with opcodes"
+          "002\\^done,asm_insns=\\\[src_and_asm_line=\{line=\"$line_callee2_open_brace\",file=\".*basics.c\",fullname=\"${fullname_syntax}basics.c\",line_asm_insn=\\\[\{address=\"$hex\",func-name=\"callee2\",offset=\"0\",opcodes=\".*\",inst=\".*\"\}.*\\\]\}.*,src_and_asm_line=\{line=\"$decimal\",file=\".*basics.c\",fullname=\"${fullname_syntax}basics.c\",line_asm_insn=\\\[.*\{address=\"$hex\",func-name=\"callee2\",offset=\"$decimal\",opcodes=\".*\",inst=\".*\"\}\\\]\}\\\]" \
+            "data-disassemble file, line assembly mixed with opcodes"
 
     #
     # In mixed mode, the lowest level of granularity is the source line.
@@ -181,8 +181,8 @@ proc test_disassembly_mixed_with_opcodes {} {
     # which we are now, even if we have specified that the range is only 2 insns.
     #
     mi_gdb_test "003-data-disassemble -s \$pc -e \"\$pc+4\" -- 3" \
-           "003\\^done,asm_insns=\\\[src_and_asm_line=\{line=\"$decimal\",file=\".*basics.c\",fullname=\"${fullname_syntax}basics.c\",line_asm_insn=\\\[\{address=\"$hex\",func-name=\"main\",offset=\"$decimal\",opcodes=\".*\",inst=\".*\"\}.*\{address=\"$hex\",func-name=\"main\",offset=\"$decimal\",opcodes=\".*\",inst=\".*\"\}\\\]\}\\\]" \
-             "data-disassemble range assembly mixed with opcodes"
+          "003\\^done,asm_insns=\\\[src_and_asm_line=\{line=\"$decimal\",file=\".*basics.c\",fullname=\"${fullname_syntax}basics.c\",line_asm_insn=\\\[\{address=\"$hex\",func-name=\"main\",offset=\"$decimal\",opcodes=\".*\",inst=\".*\"\}.*\{address=\"$hex\",func-name=\"main\",offset=\"$decimal\",opcodes=\".*\",inst=\".*\"\}\\\]\}\\\]" \
+            "data-disassemble range assembly mixed with opcodes"
 }
 
 proc test_disassembly_mixed_lines_limit {} {
@@ -204,15 +204,15 @@ proc test_disassembly_mixed_lines_limit {} {
     mi_gdb_test "print/x \$pc" "" ""
     mi_gdb_test "222-data-disassemble  -f basics.c -l $line_main_body -n 20 -- 1" \
            "222\\^done,asm_insns=\\\[src_and_asm_line=\{line=\"$decimal\",file=\".*basics.c\",fullname=\"${fullname_syntax}basics.c\",line_asm_insn=\\\[\{address=\"$hex\",func-name=\"main\",offset=\"0\",inst=\".*\"\},.*,\{address=\"$hex\",func-name=\"main\",offset=\"$decimal\",inst=\".*\"\}\\\]\}\]" \
-              "data-disassemble file, line, number assembly mixed"
+             "data-disassemble file, line, number assembly mixed"
 
     mi_gdb_test "222-data-disassemble  -f basics.c -l $line_main_body -n 0 -- 1" \
            "222\\^done,asm_insns=\\\[src_and_asm_line=\{line=\"$line_main_open_brace\",file=\".*basics.c\",fullname=\"${fullname_syntax}basics.c\",line_asm_insn=\\\[\\\]\}\\\]" \
-              "data-disassemble file, line, number (zero lines) assembly mixed"
+             "data-disassemble file, line, number (zero lines) assembly mixed"
 
     mi_gdb_test "222-data-disassemble  -f basics.c -l $line_main_body -n 50 -- 1" \
            "222\\^done,asm_insns=\\\[src_and_asm_line=\{line=\"$decimal\",file=\".*basics.c\",fullname=\"${fullname_syntax}basics.c\",line_asm_insn=\\\[\{address=\"$hex\",func-name=\"main\",offset=\"0\",inst=\".*\"\}.*,\{address=\"$hex\",func-name=\"main\",offset=\"$decimal\",inst=\".*\"\}\\\]\}\]" \
-              "data-disassemble file, line, number (more than main lines) assembly mixed"
+             "data-disassemble file, line, number (more than main lines) assembly mixed"
 }
 
 proc test_disassembly_bogus_args {} {
@@ -231,23 +231,23 @@ proc test_disassembly_bogus_args {} {
     # -data-disassembly -f basics.c -l 32 -- 9
 
     mi_gdb_test "123-data-disassemble -f foo -l abc -n 0 -- 0" \
-             "123\\^error,msg=\"-data-disassemble: Invalid filename.\"" \
-             "data-disassemble bogus filename"
+            "123\\^error,msg=\"-data-disassemble: Invalid filename.\"" \
+            "data-disassemble bogus filename"
 
     mi_gdb_test "321-data-disassemble -s foo -e bar -- 0" \
-             "321\\^error,msg=\"No symbol \\\\\"foo\\\\\" in current context.\"" \
-             "data-disassemble bogus address, -s -e"
+            "321\\^error,msg=\"No symbol \\\\\"foo\\\\\" in current context.\"" \
+            "data-disassemble bogus address, -s -e"
 
     mi_gdb_test "322-data-disassemble -a foo -- 0" \
-             "322\\^error,msg=\"No symbol \\\\\"foo\\\\\" in current context.\"" \
-             "data-disassemble bogus address, -a"
+            "322\\^error,msg=\"No symbol \\\\\"foo\\\\\" in current context.\"" \
+            "data-disassemble bogus address, -a"
 
     mi_gdb_test "456-data-disassemble -s \$pc -f basics.c -- 0" \
        "456\\^error,msg=\"-data-disassemble: Usage: \\( -f filename -l linenum .-n howmany. \\| -s startaddr -e endaddr \\| -a addr \\) . --opcodes mode . . --source . . .--. mode .\\.\"" \
        "data-disassemble mix different args"
 
     mi_gdb_test "789-data-disassemble -f basics.c -l $line_main_body -- 9" \
-             "789\\^error,msg=\"-data-disassemble: Mode argument must be in the range 0-5.\"" \
+            "789\\^error,msg=\"-data-disassemble: Mode argument must be in the range 0-5.\"" \
        "data-disassemble wrong mode arg"
 
     foreach mode { 1 2 3 4 5 } {
index 9b039365d95ba364cdfdf6adb9f79225019ca7d6..d881c4b3744f5c57fa79faae022ca234a9c86472 100644 (file)
@@ -49,7 +49,7 @@ proc test_file_list_exec_source_file {} {
 
     mi_gdb_test "111-file-list-exec-source-file" \
            "111\\\^done,line=\"$line_default\",file=\"${srcfilepath}\",fullname=\"$fullname_syntax${srcfile}\",macro-info=\"0\"" \
-               "request path info of current source file (${srcfile})"
+              "request path info of current source file (${srcfile})"
 }
 
 proc test_file_list_exec_source_files {} {
@@ -59,7 +59,7 @@ proc test_file_list_exec_source_files {} {
     # get the path and absolute path to the current executable
     mi_gdb_test "222-file-list-exec-source-files" \
            "222\\\^done,files=\\\[\{file=\".*${srcfile}\",fullname=\"$fullname_syntax${srcfile}\",debug-fully-read=\"\[^\"\]+\"\}.*]" \
-              "Getting a list of source files."
+             "Getting a list of source files."
 }
 
 test_file_list_exec_source_file
index be7d1848796d6410b94c08166535e0a9ff1032ab..bba75f0c226de83d435fbc8038f6575d6f4101b0 100644 (file)
@@ -23,23 +23,23 @@ if {[mi_clean_restart]} {
 # First, verify that the debugger correctly advertises support
 # for the -info-gdb-mi-command command.
 mi_gdb_test "-list-features" \
-            "\\^done,features=\\\[.*\"info-gdb-mi-command\".*\\\]" \
-            "-list-features includes \"info-gdb-mi-command\""
+           "\\^done,features=\\\[.*\"info-gdb-mi-command\".*\\\]" \
+           "-list-features includes \"info-gdb-mi-command\""
 
 mi_gdb_test "-info-gdb-mi-command unsupported-command" \
-            "\\^done,command=\\\{exists=\"false\"\\\}" \
-            "-info-gdb-mi-command unsupported-command"
+           "\\^done,command=\\\{exists=\"false\"\\\}" \
+           "-info-gdb-mi-command unsupported-command"
 
 # Same test as above, but including the leading '-' in the command name.
 mi_gdb_test "-info-gdb-mi-command -unsupported-command" \
-            "\\^done,command=\\\{exists=\"false\"\\\}" \
-            "-info-gdb-mi-command -unsupported-command"
+           "\\^done,command=\\\{exists=\"false\"\\\}" \
+           "-info-gdb-mi-command -unsupported-command"
 
 mi_gdb_test "-info-gdb-mi-command symbol-list-lines" \
-            "\\^done,command=\\\{exists=\"true\"\\\}" \
-            "-info-gdb-mi-command symbol-list-lines"
+           "\\^done,command=\\\{exists=\"true\"\\\}" \
+           "-info-gdb-mi-command symbol-list-lines"
 
 # Same test as above, but including the leading '-' in the command name.
 mi_gdb_test "-info-gdb-mi-command -symbol-list-lines" \
-            "\\^done,command=\\\{exists=\"true\"\\\}" \
-            "-info-gdb-mi-command -symbol-list-lines"
+           "\\^done,command=\\\{exists=\"true\"\\\}" \
+           "-info-gdb-mi-command -symbol-list-lines"
index 2d64fa408b4662e3743c57c78859b20b5c4752b2..c6f8f01e31c4eb72ff76ec121c32b84a5645eecd 100644 (file)
@@ -23,43 +23,43 @@ if {[mi_clean_restart]} {
 # First, verify that the debugger correctly advertises support
 # for the --language option.
 mi_gdb_test "-list-features" \
-            "\\^done,features=\\\[.*\"language-option\".*\\\]" \
-            "-list-features should include \"language-option\""
+           "\\^done,features=\\\[.*\"language-option\".*\\\]" \
+           "-list-features should include \"language-option\""
 
 mi_gdb_test "set lang ada" \
-            ".*=cmd-param-changed,param=\"language\",value=\"ada\".*"
+           ".*=cmd-param-changed,param=\"language\",value=\"ada\".*"
 
 # Evaluate an expression that the Ada language is unable to parse.
 mi_gdb_test "-data-evaluate-expression \"sizeof (void*)\"" \
-            "\\^error,.*" \
-            "sizeof expression using current language"
+           "\\^error,.*" \
+           "sizeof expression using current language"
 
 # Now, ask for the same expression to be parsed, but using the C
 # language.
 mi_gdb_test "-data-evaluate-expression --language c \"sizeof (void*)\"" \
-            "\\^done,value=\"$decimal\"" \
-            "sizeof expression using C language"
+           "\\^done,value=\"$decimal\"" \
+           "sizeof expression using C language"
 
 # Double-check that the current language has not changed.
 mi_gdb_test "show lang ada" \
-            ".*The current source language is \\\\\"ada\\\\\".*"
+           ".*The current source language is \\\\\"ada\\\\\".*"
 
 # Test what happens when specifying an invalid language name...
 mi_gdb_test "-data-evaluate-expression --language invlang \"sizeof (void*)\"" \
-            "\\^error,msg=\"Invalid --language argument: invlang\"" \
-            "data-evaluate-expression with invalid language name"
+           "\\^error,msg=\"Invalid --language argument: invlang\"" \
+           "data-evaluate-expression with invalid language name"
 
 # Make sure that "--language auto" is also rejected.
 mi_gdb_test "-data-evaluate-expression --language auto \"sizeof (void*)\"" \
-            "\\^error,msg=\"Invalid --language argument: auto\"" \
-            "data-evaluate-expression with language auto"
+           "\\^error,msg=\"Invalid --language argument: auto\"" \
+           "data-evaluate-expression with language auto"
 
 # Make sure that "--language local" is also rejected.
 mi_gdb_test "-data-evaluate-expression --language local \"sizeof (void*)\"" \
-            "\\^error,msg=\"Invalid --language argument: local\"" \
-            "data-evaluate-expression with language local"
+           "\\^error,msg=\"Invalid --language argument: local\"" \
+           "data-evaluate-expression with language local"
 
 # Make sure that "--language unknown" is also rejected.
 mi_gdb_test "-data-evaluate-expression --language unknown \"sizeof (void*)\"" \
-            "\\^error,msg=\"Invalid --language argument: unknown\"" \
-            "data-evaluate-expression with language unknown"
+           "\\^error,msg=\"Invalid --language argument: unknown\"" \
+           "data-evaluate-expression with language unknown"
index 4729033347ac559d634257cdf6c081c7a12c74e6..741af8fa63fce13e80a0e8168038771ae8543f42 100644 (file)
@@ -39,7 +39,7 @@ mi_detect_async
 foreach_with_prefix iteration {1 2} {
     mi_delete_breakpoints
     if { [mi_runto_main] < 0 } {
-        continue
+       continue
     }
 
     mi_send_resuming_command "exec-continue" "continue"
index 13ea6ba58a55218c248c461f4e771db1836abf6a..79904ed136e52dce5387f2ccd2c033ecec3b7e93 100644 (file)
@@ -70,4 +70,3 @@ if {[mi_clean_restart $::testfile]} {
 check_mi_thread_command_set
 
 mi_gdb_exit
-
index 5f6eb3fbf72de5229b718a3dcdca08fe3dfc141f..5ddb386e1f4f47f13f22842b915f43a21388c771 100644 (file)
@@ -98,46 +98,46 @@ proc test_controlled_execution_reverse {} {
     # Test exec-reverse-next
 
     mi_execute_to "exec-next --reverse" \
-       "end-stepping-range" "main" "" \
-       "basics.c" $line_main_hello "" \
-       "reverse next to get over the call to do_nothing"
+       "end-stepping-range" "main" "" \
+       "basics.c" $line_main_hello "" \
+       "reverse next to get over the call to do_nothing"
 
     # Test exec-reverse-step
 
     mi_execute_to "exec-step --reverse" \
-       "end-stepping-range" "callee1" \
+       "end-stepping-range" "callee1" \
        "\{name=\"intarg\",value=\"2\"\},\{name=\"strarg\",value=\"$hex \\\\\"A string argument\.\\\\\"\"\},\{name=\"fltarg\",value=\"3.5\[0-9\]*\"\}" \
-       "basics.c" $line_callee1_close "" \
-       "reverse step to callee1"
+       "basics.c" $line_callee1_close "" \
+       "reverse step to callee1"
 
     mi_execute_to "exec-step --reverse" \
-       "end-stepping-range" "callee2" \
+       "end-stepping-range" "callee2" \
        "\{name=\"intarg\",value=\"2\"\},\{name=\"strarg\",value=\"$hex \\\\\"A string argument\.\\\\\"\"\}" \
-       "basics.c" $line_callee2_close "" \
-       "reverse step to callee2"
+       "basics.c" $line_callee2_close "" \
+       "reverse step to callee2"
 
     mi_execute_to "exec-step --reverse" \
-       "end-stepping-range" "callee3" \
+       "end-stepping-range" "callee3" \
        "\{name=\"strarg\",value=\"$hex \\\\\"A string argument\.\\\\\"\"\}" \
-       "basics.c" $line_callee3_close "" \
-       "reverse step to callee3"
+       "basics.c" $line_callee3_close "" \
+       "reverse step to callee3"
 
     mi_execute_to "exec-step --reverse" \
-       "end-stepping-range" "callee4" "" \
-       "basics.c" "\[0-9\]+" "" \
-       "reverse step to callee4"
+       "end-stepping-range" "callee4" "" \
+       "basics.c" "\[0-9\]+" "" \
+       "reverse step to callee4"
 
     # Test exec-reverse-[step|next]-instruction
 
     mi_execute_to "exec-step-instruction --reverse" \
-        "end-stepping-range" "callee4" "" \
-        "basics.c" "\[0-9\]+" "" \
-        "reverse-step-instruction at callee4"
+       "end-stepping-range" "callee4" "" \
+       "basics.c" "\[0-9\]+" "" \
+       "reverse-step-instruction at callee4"
 
     mi_execute_to "exec-next-instruction --reverse" \
-        "end-stepping-range" "callee4" "" \
-        "basics.c" "\[0-9\]+" "" \
-        "reverse-next-instruction at callee4"
+       "end-stepping-range" "callee4" "" \
+       "basics.c" "\[0-9\]+" "" \
+       "reverse-next-instruction at callee4"
 
     # Test exec-reverse-continue
 
@@ -147,16 +147,16 @@ proc test_controlled_execution_reverse {} {
        -line $line_callee3_body
 
     mi_execute_to "exec-continue --reverse" \
-        "breakpoint-hit" "callee3" \
+       "breakpoint-hit" "callee3" \
        "\{name=\"strarg\",value=\"$hex \\\\\"A string argument\.\\\\\"\"\}" \
-        "basics.c" "\[0-9\]+" \
+       "basics.c" "\[0-9\]+" \
        { "" "disp=\"del\""} \
-        "reverse-continue at callee3"
+       "reverse-continue at callee3"
 
     mi_execute_to "exec-continue --reverse" \
-        "no-history" "main" "" \
-        "basics.c" $line_main_body "" \
-        "reverse-continue at main"
+       "no-history" "main" "" \
+       "basics.c" $line_main_body "" \
+       "reverse-continue at main"
 }
 
 test_controlled_execution_reverse
index b34097ef66979b392be5ef5bf42cd9f1be401ce9..3b0d4af0186a4863c2e6d121c560bb57fe03a12b 100644 (file)
@@ -85,8 +85,8 @@ proc test_breakpoints_creation_and_listing {} {
        "list of breakpoints"
 
     mi_gdb_test "205-break-disable 2 3 4" \
-                "205\\^done.*" \
-                "disabling of breakpoints"
+               "205\\^done.*" \
+               "disabling of breakpoints"
 
     set bp2 [mi_make_breakpoint -number 2 -enabled n]
     mi_gdb_test "206-break-info 2" \
index d384230bf06c21eea9aefedeabbece337fdd894a..0ab5bee07303c083476f58471e51f4c7cb5cba75 100644 (file)
@@ -35,10 +35,9 @@ if {[mi_clean_restart $::testfile]} {
 # First, verify that the debugger correctly advertises support
 # for the --start option of the -exec-run command.
 mi_gdb_test "-list-features" \
-            "\\^done,features=\\\[.*\"exec-run-start-option\".*\\\]" \
-            "-list-features includes \"exec-run-start-option\""
+           "\\^done,features=\\\[.*\"exec-run-start-option\".*\\\]" \
+           "-list-features includes \"exec-run-start-option\""
 
 mi_run_cmd "--start"
 mi_expect_stop "breakpoint-hit" "main" "" ".*mi-start.c" "$decimal" \
 { "" "disp=\"del\"" } "run to main"
-
index f2871dca2564e479ce1edfa991b449326fd2b8b3..5dffabac0b7af7c4f87d9648801b7465137d5989 100644 (file)
@@ -39,7 +39,7 @@ proc test_stepi_nexti {} {
     set line_main_hello [gdb_get_line_number "Hello, World!"]
 
     set line [mi_execute_to "exec-step-instruction" "end-stepping-range" "main" "" \
-                  ".*basics.c" "\[0-9\]+" "" "step-instruction at main"]
+                 ".*basics.c" "\[0-9\]+" "" "step-instruction at main"]
     if { $line >= $line_main_body && $line <= $line_main_hello } {
                pass "step-instruction at main, line check"
     } else {
@@ -47,7 +47,7 @@ proc test_stepi_nexti {} {
     }
 
     set line [mi_execute_to "exec-next-instruction" "end-stepping-range" "main" "" \
-                  ".*basics.c" "\[0-9\]+" "" "next-instruction at main"]
+                 ".*basics.c" "\[0-9\]+" "" "next-instruction at main"]
     if { $line >= $line_main_body && $line <= $line_main_hello } {
        pass "next-instruction at main, line check"
     } else {
@@ -55,7 +55,7 @@ proc test_stepi_nexti {} {
     }
 
     set line [mi_execute_to "exec-next-instruction" "end-stepping-range" "main" "" \
-                  ".*basics.c" "\[0-9\]+" "" "next-instruction at main 2"]
+                 ".*basics.c" "\[0-9\]+" "" "next-instruction at main 2"]
     if { $line >= $line_main_body && $line <= $line_main_hello } {
        pass "next-instruction at main 2, line check"
     } else {
index e3c9b743f715b66ba2fb94913cbc3e6bb195d1c7..6af0cc29098ac5dcf26a5f1abb1443aa1719b56f 100644 (file)
@@ -66,4 +66,3 @@ have_a_very_merry_interrupt (void)
   alarm (1);
   sleep (2);  /* We'll receive that signal while sleeping */
 }
-
index be90e36590948855ee4b4bc2f9860a4251b7e1ac..6c0d43cdecc1ffdbc973236ea9c890031108970a 100644 (file)
@@ -23,9 +23,9 @@ if {[mi_clean_restart]} {
 # First, verify that the debugger correctly advertises support
 # for the "undefined-command" error code...
 mi_gdb_test "-list-features" \
-            "\\^done,features=\\\[.*\"undefined-command-error-code\".*\\\]" \
-            "-list-features should include \"undefined-command-error-code\""
+           "\\^done,features=\\\[.*\"undefined-command-error-code\".*\\\]" \
+           "-list-features should include \"undefined-command-error-code\""
 
 mi_gdb_test "-undefined-command" \
-            "\\^error,.*,code=\"undefined-command\"" \
-            "error code when executing undefined command"
+           "\\^error,.*,code=\"undefined-command\"" \
+           "error code when executing undefined command"
index b027c769a6bcf9abc6e54f9cf598102b274c6c0f..bf670db2cef6fc3d99e937373ff23ba7c85abf58 100644 (file)
@@ -53,22 +53,22 @@ proc test_until {} {
     setup_kfail gdb/2104 "*-*-*"
     set line [gdb_get_line_number "after-loop"]
     mi_execute_to "exec-until" "end-stepping-range" "foo" "" ".*until.c" $line "" \
-        "until after while loop"
+       "until after while loop"
 
     set line [gdb_get_line_number "until-here"]
     mi_execute_to "exec-until $line" "location-reached" "foo" "" ".*until.c" $line ""\
-        "until line number"
+       "until line number"
 
     set line [gdb_get_line_number "until-there"]
     mi_execute_to "exec-until until.c:$line" "location-reached" "foo" "" ".*until.c" $line ""\
-        "until line number:file"
+       "until line number:file"
 
     # This is supposed to NOT stop at the return statement, but right
     # after foo is over.
     set line [gdb_get_line_number "at-return"]
     mi_execute_to "exec-until until.c:$line" "location-reached" "main" ""\
        ".*until.c" "([expr {$line-2}]|[expr {$line-1}])" ""\
-        "until after current function"
+       "until after current function"
 }
 
 test_running_to_foo
index 6d173d16686168602116ee26ce49f060aa7d3b43..09167aa5db0e53f1f0436c2b75f9273f9444985c 100644 (file)
@@ -65,16 +65,16 @@ typedef struct _struct_decl {
   struct {
     union {
       struct {
-        int d;
-        char e[10];
-        int *(*func) (void);
-        efoo foo;
+       int d;
+       char e[10];
+       int *(*func) (void);
+       efoo foo;
       } u1s1;
 
       long f;
       struct {
-        char array_ptr[2];
-        int (*func) (int, char *);
+       char array_ptr[2];
+       int (*func) (int, char *);
       } u1s2;
     } u2;
 
@@ -194,8 +194,8 @@ do_block_tests ()
       int foo2;
       foo2 = 123;
       {
-        int foo;
-        foo = 321;
+       int foo;
+       foo = 321;
       }
       foo2 = 0;
     }
@@ -359,5 +359,3 @@ main (int argc, char *argv [])
   do_child_deletion ();
   exit (0);
 }
-
-
index c69b72a374ecff89003e2b09272a39b7f39dc8bb..1483e7313369b10b963fd6c0de87d3769208fade 100644 (file)
@@ -63,9 +63,9 @@ mi_list_varobj_children "struct_declarations" {
     {struct_declarations.long_array long_array 12 "long \\[12\\]"}
     {struct_declarations.func_ptr func_ptr 0 "void \\(\\*\\)\\((void)?\\)"}
     {struct_declarations.func_ptr_struct func_ptr_struct 0 \
-         "struct _struct_decl \\(\\*\\)(\\(int, char \\*, long\\))?"}
+        "struct _struct_decl \\(\\*\\)(\\(int, char \\*, long\\))?"}
     {struct_declarations.func_ptr_ptr func_ptr_ptr 0 \
-        "struct _struct_decl \\*\\(\\*\\)\\((int, char \\*, long)?\\)"}
+       "struct _struct_decl \\*\\(\\*\\)\\((int, char \\*, long)?\\)"}
     {struct_declarations.u1 u1 4 "union \\{\\.\\.\\.\\}"}
     {struct_declarations.s2 s2 4 "struct \\{\\.\\.\\.\\}"}
 } "get children of struct_declarations"
@@ -451,7 +451,7 @@ mi_gdb_test "-var-info-num-children struct_declarations.s2.u2.u1s2.func" \
 # Desc: children of struct_declarations.int_ptr_ptr.*int_ptr_ptr
 mi_list_varobj_children "struct_declarations.int_ptr_ptr.*int_ptr_ptr" {
     {{struct_declarations.int_ptr_ptr.\*int_ptr_ptr.\*\*int_ptr_ptr} \
-         {\*\*int_ptr_ptr} 0 int}
+        {\*\*int_ptr_ptr} 0 int}
 } "get children of struct_declarations.int_ptr_ptr.*int_ptr_ptr"
 
 # Test: c_variable-4.80
@@ -481,9 +481,9 @@ mi_list_varobj_children "weird" {
     {weird.long_array long_array 12 "long \\[12\\]"}
     {weird.func_ptr func_ptr 0 "void \\(\\*\\)\\((void)?\\)"}
     {weird.func_ptr_struct func_ptr_struct 0 \
-         "struct _struct_decl \\(\\*\\)(\\(int, char \\*, long\\))?"}
+        "struct _struct_decl \\(\\*\\)(\\(int, char \\*, long\\))?"}
     {weird.func_ptr_ptr func_ptr_ptr 0 \
-        "struct _struct_decl \\*\\(\\*\\)\\((int, char \\*, long)?\\)"}
+       "struct _struct_decl \\*\\(\\*\\)\\((int, char \\*, long)?\\)"}
     {weird.u1 u1 4 "union \\{\\.\\.\\.\\}"}
     {weird.s2 s2 4 "struct \\{\\.\\.\\.\\}"}
 } "get children of weird"
@@ -560,7 +560,7 @@ mi_gdb_test "-var-info-num-children weird->int_ptr_ptr" \
 # Desc: children of *(weird->int_ptr_ptr)
 mi_list_varobj_children "weird->int_ptr_ptr.*weird->int_ptr_ptr" {
     {{weird->int_ptr_ptr.\*weird->int_ptr_ptr.\*\*weird->int_ptr_ptr} \
-         {\*\*weird->int_ptr_ptr} 0 int}
+        {\*\*weird->int_ptr_ptr} 0 int}
 } "get children of weird->int_ptr_ptr.*weird->int_ptr_ptr"
 
 # Test: c_variable-4.94
@@ -807,19 +807,19 @@ mi_list_varobj_children {struct_declarations.long_array --all-values} {
 
 mi_list_varobj_children {struct_declarations --simple-values} \
     [list \
-         {struct_declarations.integer integer 0 int 123} \
-         {struct_declarations.character character 0 char {0 '\\\\000'}} \
-         [list struct_declarations.char_ptr char_ptr 1 "char \\*" "$hex \\\\\"hello\\\\\""] \
-         {struct_declarations.long_int long_int 0 "long" 0} \
-         [list struct_declarations.int_ptr_ptr int_ptr_ptr 1 "int \\*\\*" "$hex"] \
-         {struct_declarations.long_array long_array 12 "long \\[12\\]"} \
-         [list struct_declarations.func_ptr func_ptr 0 "void \\(\\*\\)\\((void)?\\)" "(@$hex: |)$hex <nothing>"] \
-         [list struct_declarations.func_ptr_struct func_ptr_struct 0 \
-              "struct _struct_decl \\(\\*\\)(\\(int, char \\*, long\\))?" "$hex <nothing1>"] \
-         [list struct_declarations.func_ptr_ptr func_ptr_ptr 0 \
-              "struct _struct_decl \\*\\(\\*\\)\\((int, char \\*, long)?\\)" "$hex <nothing2>"] \
-         {struct_declarations.u1 u1 4 "union \\{\\.\\.\\.\\}"} \
-         {struct_declarations.s2 s2 4 "struct \\{\\.\\.\\.\\}"} \
+        {struct_declarations.integer integer 0 int 123} \
+        {struct_declarations.character character 0 char {0 '\\\\000'}} \
+        [list struct_declarations.char_ptr char_ptr 1 "char \\*" "$hex \\\\\"hello\\\\\""] \
+        {struct_declarations.long_int long_int 0 "long" 0} \
+        [list struct_declarations.int_ptr_ptr int_ptr_ptr 1 "int \\*\\*" "$hex"] \
+        {struct_declarations.long_array long_array 12 "long \\[12\\]"} \
+        [list struct_declarations.func_ptr func_ptr 0 "void \\(\\*\\)\\((void)?\\)" "(@$hex: |)$hex <nothing>"] \
+        [list struct_declarations.func_ptr_struct func_ptr_struct 0 \
+             "struct _struct_decl \\(\\*\\)(\\(int, char \\*, long\\))?" "$hex <nothing1>"] \
+        [list struct_declarations.func_ptr_ptr func_ptr_ptr 0 \
+             "struct _struct_decl \\*\\(\\*\\)\\((int, char \\*, long)?\\)" "$hex <nothing2>"] \
+        {struct_declarations.u1 u1 4 "union \\{\\.\\.\\.\\}"} \
+        {struct_declarations.s2 s2 4 "struct \\{\\.\\.\\.\\}"} \
 ] "listing of children, simple types: names, type and values, complex types: names and types"
 
 # Delete all variables
@@ -860,7 +860,7 @@ mi_gdb_test "-var-info-num-children psnp->char_ptr" \
 # Desc: children of *(psnp->char_ptr)
 mi_list_varobj_children "psnp->char_ptr.*psnp->char_ptr" {
     {{psnp->char_ptr.\*psnp->char_ptr.\*\*psnp->char_ptr} \
-         {\*\*psnp->char_ptr} 1 {char \*\*}}
+        {\*\*psnp->char_ptr} 1 {char \*\*}}
 } "get children of psnp->char_ptr.*psnp->char_ptr"
 
 # Test: c_variable-5.14
@@ -873,14 +873,14 @@ mi_gdb_test "-var-info-num-children psnp->char_ptr.*psnp->char_ptr" \
 # Desc: children of *(*(psnp->char_ptr))
 mi_list_varobj_children "psnp->char_ptr.*psnp->char_ptr.**psnp->char_ptr" {
     {{psnp->char_ptr.\*psnp->char_ptr.\*\*psnp->char_ptr.\*\*\*psnp->char_ptr} \
-         {\*\*\*psnp->char_ptr} 1 {char \*}}
+        {\*\*\*psnp->char_ptr} 1 {char \*}}
 } "get children of psnp->char_ptr.*psnp->char_ptr.**psnp->char_ptr"
 
 # Test: c_variable-5.15B
 # Desc: children of *(*(*(psnp->char_ptr)))
 mi_list_varobj_children "psnp->char_ptr.*psnp->char_ptr.**psnp->char_ptr.***psnp->char_ptr" {
     {{psnp->char_ptr.\*psnp->char_ptr.\*\*psnp->char_ptr.\*\*\*psnp->char_ptr.\*\*\*\*psnp->char_ptr} \
-         {\*\*\*\*psnp->char_ptr} 0 char}
+        {\*\*\*\*psnp->char_ptr} 0 char}
 } "get children of psnp->char_ptr.*psnp->char_ptr.**psnp->char_ptr.***psnp->char_ptr"
 
 # Test: c_variable-5.16
@@ -893,7 +893,7 @@ mi_gdb_test "-var-info-num-children psnp->char_ptr.*psnp->char_ptr.**psnp->char_
 # Desc: children of *(*(*(psnp->char_ptr)))
 mi_list_varobj_children "psnp->char_ptr.*psnp->char_ptr.**psnp->char_ptr.***psnp->char_ptr" {
     {{psnp->char_ptr.\*psnp->char_ptr.\*\*psnp->char_ptr.\*\*\*psnp->char_ptr.\*\*\*\*psnp->char_ptr} \
-         {\*\*\*\*psnp->char_ptr} 0 char}
+        {\*\*\*\*psnp->char_ptr} 0 char}
 } "get children of psnp->char_ptr.*psnp->char_ptr.**psnp->char_ptr.***psnp->char_ptr after counting children"
 
 # Test: c_variable-5.18
@@ -947,7 +947,7 @@ mi_gdb_test "-var-info-num-children psnp->long_ptr.*psnp->long_ptr" \
 # Desc: children of *(*(psnp->long_ptr))
 mi_list_varobj_children "psnp->long_ptr.*psnp->long_ptr.**psnp->long_ptr" {
     {{psnp->long_ptr.\*psnp->long_ptr.\*\*psnp->long_ptr.\*\*\*psnp->long_ptr} \
-         {\*\*\*psnp->long_ptr} 1 {long \*}}
+        {\*\*\*psnp->long_ptr} 1 {long \*}}
 } "get children of psnp->long_ptr.*psnp->long_ptr.**psnp->long_ptr"
 
 # Test: c_variable-5.25
@@ -960,7 +960,7 @@ mi_gdb_test "-var-info-num-children psnp->long_ptr.*psnp->long_ptr.**psnp->long_
 # Desc: children of *(*(*(psnp->long_ptr)))
 mi_list_varobj_children "psnp->long_ptr.*psnp->long_ptr.**psnp->long_ptr.***psnp->long_ptr" {
     {{psnp->long_ptr.\*psnp->long_ptr.\*\*psnp->long_ptr.\*\*\*psnp->long_ptr.\*\*\*\*psnp->long_ptr}
-        {\*\*\*\*psnp->long_ptr} 0 {long}}
+       {\*\*\*\*psnp->long_ptr} 0 {long}}
 } "get children of psnp->long_ptr.*psnp->long_ptr.**psnp->long_ptr.***psnp->long_ptr"
 
 # Test: c_variable-5.27
@@ -1064,14 +1064,14 @@ mi_gdb_test "-var-info-num-children psnp->ptrs.0.next.char_ptr.*char_ptr" \
 # Desc: children of **psnp->ptrs[0]->next->char_ptr
 mi_list_varobj_children "psnp->ptrs.0.next.char_ptr.*char_ptr.**char_ptr" {
     {{psnp->ptrs.0.next.char_ptr.\*char_ptr.\*\*char_ptr.\*\*\*char_ptr} \
-         {\*\*\*char_ptr} 1 {char \*}}
+        {\*\*\*char_ptr} 1 {char \*}}
 } "get children of psnp->ptrs.0.next.char_ptr.*char_ptr.**char_ptr"
 
 # Test: c_variable-5.41B
 # Desc: children of ***psnp->ptrs[0]->next->char_ptr
 mi_list_varobj_children "psnp->ptrs.0.next.char_ptr.*char_ptr.**char_ptr.***char_ptr" {
     {{psnp->ptrs.0.next.char_ptr.\*char_ptr.\*\*char_ptr.\*\*\*char_ptr.\*\*\*\*char_ptr} \
-         {\*\*\*\*char_ptr} 0 char}
+        {\*\*\*\*char_ptr} 0 char}
 } "get children of psnp->ptrs.0.next.char_ptr.*char_ptr.**char_ptr.***char_ptr"
 
 # Test: c_variable-5.42
@@ -1084,7 +1084,7 @@ mi_gdb_test "-var-info-num-children psnp->ptrs.0.next.char_ptr.*char_ptr.**char_
 # Desc: children of ***psnp->ptrs[0]->next->char_ptr
 mi_list_varobj_children "psnp->ptrs.0.next.char_ptr.*char_ptr.**char_ptr.***char_ptr" {
     {{psnp->ptrs.0.next.char_ptr.\*char_ptr.\*\*char_ptr.\*\*\*char_ptr.\*\*\*\*char_ptr} \
-         {\*\*\*\*char_ptr} 0 char}
+        {\*\*\*\*char_ptr} 0 char}
 } "get children of psnp->ptrs.0.next.char_ptr.*char_ptr.**char_ptr.***char_ptr after counting children"
 
 # Test: c_variable-5.44
index 850cb995cdb8c5aa94676e690227b2f2b55479f9..a7fc9554684a527036f4c38d67597a798f3cc87a 100644 (file)
@@ -574,9 +574,9 @@ mi_delete_varobj array_ptr "delete array_ptr"
 
 proc set_frozen {varobjs flag} {
     foreach v $varobjs {
-        mi_gdb_test "-var-set-frozen $v $flag" \
-            "\\^done" \
-            "-var-set-frozen $v $flag"
+       mi_gdb_test "-var-set-frozen $v $flag" \
+           "\\^done" \
+           "-var-set-frozen $v $flag"
     }
 }
 
index 3f99e1e3ff294c60d5ce082862c2d507ba40ea37..357b7537ebd503372651b3e69cfac9c0ff2931b0 100644 (file)
@@ -146,7 +146,7 @@ int path_expression ()
   /*: mi_create_varobj IP ip "create varobj for ip"
       mi_list_varobj_children IP {{IP.\\*ip \\*ip 0 int}} "list children of IP"
       mi_gdb_test "-var-info-path-expression IP.*ip" \
-          "\\^done,path_expr=\"\\*\\(ip\\)\"" \
+         "\\^done,path_expr=\"\\*\\(ip\\)\"" \
          "-var-info-path-expression IP.*ip"
     :*/
   Derived d;
@@ -157,26 +157,26 @@ int path_expression ()
        {DP.Base2 Base2 1 Base2}                         \
        {DP.public public 1}} "list children of DP"
       mi_gdb_test "-var-info-path-expression DP.Base1" \
-          "\\^done,path_expr=\"\\(\\*\\(class Base1\\*\\) dp\\)\"" \
+         "\\^done,path_expr=\"\\(\\*\\(class Base1\\*\\) dp\\)\"" \
          "-var-info-path-expression DP.Base1"
       mi_list_varobj_children DP.public {               \
-        {DP.public.i i 0 int}                           \
+       {DP.public.i i 0 int}                           \
       } "list children of DP.public"
       mi_gdb_test "-var-info-path-expression DP.public.i" \
-          "\\^done,path_expr=\"\\(\\(dp\\)->i\\)\"" \
+         "\\^done,path_expr=\"\\(\\(dp\\)->i\\)\"" \
          "-var-info-path-expression DP.public.i"
       mi_list_varobj_children DP.Base1 {                 \
-        {DP.Base1.public public 1}                             \
+       {DP.Base1.public public 1}                             \
       } "list children of DP.Base1"
       mi_list_varobj_children DP.Base1.public {               \
-        {DP.Base1.public.i i 0 int}                           \
+       {DP.Base1.public.i i 0 int}                           \
       } "list children of DP.Base1.public"
       mi_gdb_test "-var-info-path-expression DP.Base1.public.i" \
-          "\\^done,path_expr=\"\\(\\(\\(\\*\\(class Base1\\*\\) dp\\)\\).i\\)\"" \
+         "\\^done,path_expr=\"\\(\\(\\(\\*\\(class Base1\\*\\) dp\\)\\).i\\)\"" \
          "-var-info-path-expression DP.Base1.public.i"
 
       mi_gdb_test "-var-info-path-expression DP.public" \
-          "\\^done,path_expr=\"\"" \
+         "\\^done,path_expr=\"\"" \
          "-var-info-path-expression DP.public"
 
       mi_create_varobj D d "create varobj for d"
@@ -185,19 +185,19 @@ int path_expression ()
        {D.Base2 Base2 1 Base2}                         \
        {D.public public 1}} "list children of D"
       mi_gdb_test "-var-info-path-expression D.Base1" \
-          "\\^done,path_expr=\"\\(\\(class Base1\\) d\\)\"" \
+         "\\^done,path_expr=\"\\(\\(class Base1\\) d\\)\"" \
          "-var-info-path-expression D.Base1"
   :*/
   int array[4] = {1,2,3};
   array[3] = 10;
   /*: mi_create_varobj A array "create varobj for array"
       mi_list_varobj_children A { \
-          {A.0 0 0 int}
-          {A.1 1 0 int}
-          {A.2 2 0 int}
-          {A.3 3 0 int}} "list children of A"
+         {A.0 0 0 int}
+         {A.1 1 0 int}
+         {A.2 2 0 int}
+         {A.3 3 0 int}} "list children of A"
       mi_gdb_test "-var-info-path-expression A.2" \
-          "\\^done,path_expr=\"\\(array\\)\\\[2\\\]\"" \
+         "\\^done,path_expr=\"\\(array\\)\\\[2\\\]\"" \
          "-var-info-path-expression A.2"
     :*/
 
@@ -219,15 +219,15 @@ public:
     struct { /* index: 1 */
       int e;
       struct { /* index: 0 */
-        int f;
-        union { /* index: 0 */
-          int g;
-          char h;
-        };
+       int f;
+       union { /* index: 0 */
+         int g;
+         char h;
+       };
       };
       union { /* index: 0 */
-        int i;
-        char j;
+       int i;
+       char j;
       };
     };
   };
index eee10078ebd2016ef7e4847e5e2cdaf41361edec..c1a31b2fe6b5e71dc36570b205e094bacf71a9ec 100644 (file)
@@ -58,32 +58,32 @@ set tree {
   Anonymous a {
     {} public {
       anonymous struct {
-        {} public {
-          int b {}
-        }
+       {} public {
+         int b {}
+       }
       }
       anonymous struct {
-        {} public {
-          int c {}
-        }
+       {} public {
+         int c {}
+       }
       }
       anonymous struct {
-        {} public {
-          int d {}
-          anonymous struct {
-            {} public {
-              int e {}
-              anonymous struct {
-                {} public {
-                  int f {}
-                  anonymous union {
-                    {} public {
-                      int g {}
-                      char h {}
-                    }
-                  }
-                }
-              }
+       {} public {
+         int d {}
+         anonymous struct {
+           {} public {
+             int e {}
+             anonymous struct {
+               {} public {
+                 int f {}
+                 anonymous union {
+                   {} public {
+                     int g {}
+                     char h {}
+                   }
+                 }
+               }
+             }
              anonymous union {
                {} public {
                  int i {}
index 52a527634451a3ddc5aa0bc7cf29096a0e8d7b32..4dc3b0ccf29c64885890748af28b88640b6d39f0 100644 (file)
@@ -217,19 +217,19 @@ mi_gdb_test "-var-delete foo" \
 mi_create_varobj weird weird "create local variable weird"
 
 mi_list_varobj_children weird {
-        {weird.integer integer 0 int}
-        {weird.character character 0 char}
-        {weird.char_ptr char_ptr 1 "char \\*"}
-        {weird.long_int long_int 0 "long"}
-        {weird.int_ptr_ptr int_ptr_ptr 1 "int \\*\\*"}
-        {weird.long_array long_array 10 "long \\[10\\]"}
-        {weird.func_ptr func_ptr 0 "void \\(\\*\\)\\((void)?\\)"}
-        {weird.func_ptr_struct func_ptr_struct 0 \
-                 "struct _struct_decl \\(\\*\\)(\\(int, char \\*, long\\))?"}
-        {weird.func_ptr_ptr func_ptr_ptr 0 \
-                 "struct _struct_decl \\*\\(\\*\\)\\((int, char \\*, long)?\\)"}
-        {weird.u1 u1 4 "union \\{\\.\\.\\.\\}"}
-        {weird.s2 s2 4 "struct \\{\\.\\.\\.\\}"}
+       {weird.integer integer 0 int}
+       {weird.character character 0 char}
+       {weird.char_ptr char_ptr 1 "char \\*"}
+       {weird.long_int long_int 0 "long"}
+       {weird.int_ptr_ptr int_ptr_ptr 1 "int \\*\\*"}
+       {weird.long_array long_array 10 "long \\[10\\]"}
+       {weird.func_ptr func_ptr 0 "void \\(\\*\\)\\((void)?\\)"}
+       {weird.func_ptr_struct func_ptr_struct 0 \
+                "struct _struct_decl \\(\\*\\)(\\(int, char \\*, long\\))?"}
+       {weird.func_ptr_ptr func_ptr_ptr 0 \
+                "struct _struct_decl \\*\\(\\*\\)\\((int, char \\*, long)?\\)"}
+       {weird.u1 u1 4 "union \\{\\.\\.\\.\\}"}
+       {weird.s2 s2 4 "struct \\{\\.\\.\\.\\}"}
 } "get children local variable weird"
 
 
@@ -429,8 +429,8 @@ mi_gdb_test "-var-info-num-children u" \
 # Test: c_variable-7.15
 # Desc: children of u
 mi_list_varobj_children u {
-        {u.integer integer 0 int}
-        {u.char_ptr char_ptr 1 {char \*}}
+       {u.integer integer 0 int}
+       {u.char_ptr char_ptr 1 {char \*}}
 } "get children of u"
 
 # Test: c_variable-7.20
@@ -464,9 +464,9 @@ mi_gdb_test "-var-info-num-children anonu" \
 # Test: c_variable-7.25
 # Desc: children of anonu
 mi_list_varobj_children "anonu" {
-        {anonu.a a 0 int}
-        {anonu.b b 0 char}
-        {anonu.c c 0 "long"}
+       {anonu.a a 0 int}
+       {anonu.b b 0 char}
+       {anonu.c c 0 "long"}
 } "get children of anonu"
 
 # Test: c_variable-7.30
@@ -501,12 +501,12 @@ mi_gdb_test "-var-info-num-children s" \
 # Test: c_variable-7.35
 # Desc: children of s
 mi_list_varobj_children s {
-        {s.integer integer 0 int}
-        {s.unsigned_integer unsigned_integer 0 "unsigned int"}
-        {s.character character 0 char}
-        {s.signed_character signed_character 0 "signed char"}
-        {s.char_ptr char_ptr 1 {char \*}}
-        {s.array_of_10 array_of_10 10 {int \[10\]}}
+       {s.integer integer 0 int}
+       {s.unsigned_integer unsigned_integer 0 "unsigned int"}
+       {s.character character 0 char}
+       {s.signed_character signed_character 0 "signed char"}
+       {s.char_ptr char_ptr 1 {char \*}}
+       {s.array_of_10 array_of_10 10 {int \[10\]}}
 } "get children of s"
 #} {integer unsigned_integer character signed_character char_ptr array_of_10}
 
@@ -541,9 +541,9 @@ mi_gdb_test "-var-info-num-children anons" \
 # Test: c_variable-7.45
 # Desc: children of anons
 mi_list_varobj_children anons {
-        {anons.a a 0 int}
-        {anons.b b 0 char}
-        {anons.c c 0 "long"}
+       {anons.a a 0 int}
+       {anons.b b 0 char}
+       {anons.c c 0 "long"}
 } "get children of anons"
 
 # Test: c_variable-7.50
index 597e2e0369dc524cfcd68ad0e200eb523843c695..2d09c462e5ee34d02b419278a5c5965a72e6cfc8 100644 (file)
@@ -55,4 +55,3 @@ mi_continue_to_line $line_valid_pointer_value "continue to valid pointer value"
 mi_gdb_test "-var-update var1" "\\^done,changelist=\\\[{name=\"var1\",in_scope=\"true\",type_changed=\"false\",has_more=\"0\"},{name=\"var1.inner\",in_scope=\"true\",type_changed=\"false\",has_more=\"0\"}\\\]" "update variable object"
 
 mi_gdb_test "-var-list-children var1" "\\^done,numchild=\"1\",children=\\\[child={name=\"var1.inner\",exp=\"inner\",numchild=\"1\",type=\"struct inner \\*\",thread-id=\"1\"}\\\],has_more=\"0\"" "list children #2"
-
index c0c3973bcead38a99fc54fc712a1d36603704082..f8470f4d2d91a0ec4f40528c81f40d9f61fe7f4f 100644 (file)
@@ -327,7 +327,7 @@ void skip_type_update_when_not_use_rtti_test ()
        ptr = &d;
        s.ptr = &d;
   /*:
-        with_test_prefix "ptr points at d" {
+       with_test_prefix "ptr points at d" {
          mi_varobj_update PTR {PTR PTR.public.A} \
                "update ptr to derived type in $testname"
          check_derived_without_rtti PTR ptr $testname
@@ -341,7 +341,7 @@ void skip_type_update_when_not_use_rtti_test ()
        ptr = 0;
        s.ptr = 0;
   /*:
-        with_test_prefix "ptr is nullptr again" {
+       with_test_prefix "ptr is nullptr again" {
          mi_varobj_update PTR {PTR  PTR.public.A} \
                "update ptr back to base type in $testname"
          mi_delete_varobj PTR "delete varobj for ptr in $testname"
index 2482df7c403bf077bfb1106406973d2d97cf3587..f25d20134964c66bfedfc461e8d9ffbe413ab2e0 100644 (file)
@@ -35,21 +35,21 @@ mi_prepare_inline_tests $srcfile
 proc set_print_object {state testname} {
     mi_gdb_test "-interpreter-exec console \"set print object ${state}\"" \
        "(.*=cmd-param-changed,param=\"print object\",value=\"${state}\".*|)\\^done" \
-        "-interpreter-exec console \"set print object ${state}\" in $testname"
+       "-interpreter-exec console \"set print object ${state}\" in $testname"
 }
 
 proc check_derived_children_without_rtti {varobj_name var_name testname} {
     mi_list_varobj_children ${varobj_name} "
-        { ${varobj_name}.public public 1 }
+       { ${varobj_name}.public public 1 }
     " "list children of ${var_name} (without RTTI) in $testname"
     mi_list_varobj_children "${varobj_name}.public" "
-        { ${varobj_name}.public.A A 0 int }
+       { ${varobj_name}.public.A A 0 int }
     " "list children of ${var_name}.public (without RTTI) in $testname"
 }
 
 proc check_derived_content_without_rtti {varobj_name var_name testname} {
     mi_check_varobj_value ${varobj_name}.public.A 1 \
-        "check ${var_name}->A (without RTTI) in $testname"
+       "check ${var_name}->A (without RTTI) in $testname"
 }
 
 proc check_derived_without_rtti {varobj_name var_name testname} {
@@ -60,36 +60,36 @@ proc check_derived_without_rtti {varobj_name var_name testname} {
 proc check_new_derived_without_rtti {var_name var_type testname} {
     set varobj_name VAR
     mi_create_varobj_checked ${varobj_name} ${var_name} ${var_type} \
-        "create varobj for ${var_name} (without RTTI) in ${testname}"
+       "create varobj for ${var_name} (without RTTI) in ${testname}"
     check_derived_without_rtti ${varobj_name} ${var_name} ${testname}
     mi_delete_varobj ${varobj_name} \
-        "delete varobj for ${var_name} (without RTTI) in ${testname}"
+       "delete varobj for ${var_name} (without RTTI) in ${testname}"
 }
 
 proc check_derived_children_with_rtti {varobj_name var_name testname} {
     mi_list_varobj_children ${varobj_name} "
-        { ${varobj_name}.Base Base 1 Base }
-        { ${varobj_name}.public public 2 }
+       { ${varobj_name}.Base Base 1 Base }
+       { ${varobj_name}.public public 2 }
     " "list children of ${var_name} (with RTTI) in $testname"
     mi_list_varobj_children "${varobj_name}.Base" "
-        { ${varobj_name}.Base.public public 1 }
+       { ${varobj_name}.Base.public public 1 }
     " "list children of ${var_name}.Base (with RTTI) in $testname"
     mi_list_varobj_children "${varobj_name}.Base.public" "
-        { ${varobj_name}.Base.public.A A 0 int }
+       { ${varobj_name}.Base.public.A A 0 int }
     " "list children of ${var_name}.Base.public (with RTTI) in $testname"
     mi_list_varobj_children "${varobj_name}.public" "
-        { ${varobj_name}.public.B B 0 int }
-        { ${varobj_name}.public.C C 0 int }
+       { ${varobj_name}.public.B B 0 int }
+       { ${varobj_name}.public.C C 0 int }
     " "list children of ${var_name}.public (with RTTI) in $testname"
 }
 
 proc check_derived_content_with_rtti {varobj_name var_name testname} {
     mi_check_varobj_value ${varobj_name}.Base.public.A 1 \
-        "check ${var_name}->A (with RTTI) in $testname"
+       "check ${var_name}->A (with RTTI) in $testname"
     mi_check_varobj_value ${varobj_name}.public.B 2 \
-        "check ${var_name}->B (with RTTI) in $testname"
+       "check ${var_name}->B (with RTTI) in $testname"
     mi_check_varobj_value ${varobj_name}.public.C 3 \
-        "check ${var_name}->C (with RTTI) in $testname"
+       "check ${var_name}->C (with RTTI) in $testname"
 }
 
 proc check_derived_with_rtti {varobj_name var_name testname} {
@@ -100,10 +100,10 @@ proc check_derived_with_rtti {varobj_name var_name testname} {
 proc check_new_derived_with_rtti {var_name var_type testname} {
     set varobj_name VAR
     mi_create_varobj_checked ${varobj_name} ${var_name} ${var_type} \
-        "create varobj for ${var_name} (with RTTI) in $testname"
+       "create varobj for ${var_name} (with RTTI) in $testname"
     check_derived_with_rtti ${varobj_name} ${var_name} $testname
     mi_delete_varobj ${varobj_name} \
-        "delete varobj for ${var_name} (with RTTI) in $testname"
+       "delete varobj for ${var_name} (with RTTI) in $testname"
 }
 
 set inline_tests {
index 5f23d059d888df0959397ef1db30d74a649ac324..5c81620d4def8966e31eabe20c38fdbd3018ef60 100644 (file)
@@ -24,7 +24,7 @@ set MIFLAGS "-i=mi"
 standard_testfile vla.c
 
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" \
-                  "${binfile}" executable {debug}] != "" } {
+                 "${binfile}" executable {debug}] != "" } {
      untested "failed to compile"
      return -1
 }
@@ -41,8 +41,8 @@ mi_create_breakpoint "-t vla.c:$bp_lineno" \
 
 mi_run_cmd
 mi_expect_stop "breakpoint-hit" "func" "\{name=\"n\",value=\"5\"\}" \
-               ".*vla.c" "$bp_lineno" { "" "disp=\"del\"" } \
-               "run to breakpoint at line $bp_lineno"
+              ".*vla.c" "$bp_lineno" { "" "disp=\"del\"" } \
+              "run to breakpoint at line $bp_lineno"
 
 mi_gdb_test "500-data-evaluate-expression vla" \
     "500\\^done,value=\"\\{0, 1, 2, 3, 4\\}\"" "evaluate complete vla"
@@ -57,7 +57,7 @@ mi_gdb_test "503-data-evaluate-expression vla\[4\]" \
     "503\\^done,value=\"4\"" "evaluate vla\[4\]"
 
 mi_create_varobj_checked vla vla "int \\\[5\\\]" \
-                                 "create local variable vla"
+                                "create local variable vla"
 
 mi_gdb_test "504-var-info-type vla" \
     "504\\^done,type=\"int \\\[5\\\]\"" \
index 1ddd94eff2053679ee950f6156705d5522055b4a..2973208e59de7beac2c686a3323e25a696db90a5 100644 (file)
@@ -52,12 +52,12 @@ proc test_watchpoint_creation_and_listing {} {
     # -break-list
 
     mi_gdb_test "111-break-watch C" \
-             "111\\^done,wpt=\{number=\"2\",exp=\"C\"\}" \
-             "break-watch operation"
+            "111\\^done,wpt=\{number=\"2\",exp=\"C\"\}" \
+            "break-watch operation"
 
     mi_gdb_test "222-break-list" \
            "222\\\^done,BreakpointTable=\{nr_rows=\".\",nr_cols=\".\",hdr=\\\[\{width=\".*\",alignment=\".*\",col_name=\"number\",colhdr=\"Num\"\}.*colhdr=\"Type\".*colhdr=\"Disp\".*colhdr=\"Enb\".*colhdr=\"Address\".*colhdr=\"What\".*\\\],body=\\\[bkpt=\{number=\"2\",type=\".*watchpoint\",disp=\"keep\",enabled=\"y\",what=\"C\",thread-groups=\\\[\"i1\"\\\],times=\"0\",original-location=\"C\"\}\\\]\}" \
-                "list of watchpoints"
+               "list of watchpoints"
 
 }
 
@@ -76,12 +76,12 @@ proc test_awatch_creation_and_listing {} {
     # -break-list
 
     mi_gdb_test "333-break-watch -a A" \
-             "333\\^done,bkpt=\{number=\"1\",addr=\"$hex\",file=\".*basics.c\",line=\"$line_main_body\"\}" \
-             "break-watch -a operation"
+            "333\\^done,bkpt=\{number=\"1\",addr=\"$hex\",file=\".*basics.c\",line=\"$line_main_body\"\}" \
+            "break-watch -a operation"
 
     mi_gdb_test "444-break-list" \
            "444\\^done,BreakpointTable=\{.*,hdr=\\\[.*\\\],body=\\\[bkpt=\{number=\"3\",type=\"watchpoint\",disp=\"del\",enabled=\"y\",addr=\"$hex\",func=\"main\",file=\".*basics.c\",line=\"$line_main_body\",thread-groups=\\\[\"i1\"\\\],times=\"0\"\},.*\}\\\]\}" \
-                "list of watchpoints awatch"
+               "list of watchpoints awatch"
 
     mi_gdb_test "777-break-delete 3" \
            "777\\^done" \
@@ -103,12 +103,12 @@ proc test_rwatch_creation_and_listing {} {
     # -break-list
 
     mi_gdb_test "200-break-watch -r C" \
-             "200\\^done,bkpt=\{number=\"5\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"$hex\",func=\"callee4\",file=\".*basics.c\",line=\"$line_main_body\",times=\"0\"\}" \
-             "break-watch -r operation"
+            "200\\^done,bkpt=\{number=\"5\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"$hex\",func=\"callee4\",file=\".*basics.c\",line=\"$line_main_body\",times=\"0\"\}" \
+            "break-watch -r operation"
 
     mi_gdb_test "300-break-list" \
            "300\\^done,BreakpointTable=\{.*,hdr=\\\[.*\\\],body=\\\[bkpt=\{number=\"5\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"$hex\",func=\"main\",file=\".*basics.c\",line=\"$line_main_body\",thread-groups=\\\[\"i1\"\\\],times=\"0\"\},.*\}\\\}\}" \
-                "list of breakpoints"
+               "list of breakpoints"
 
     mi_gdb_test "177-break-delete 4" \
            "177\\^done" \
@@ -130,14 +130,14 @@ proc test_watchpoint_triggering {} {
     # -exec-continue (Here wp goes out of scope)
 
     mi_execute_to "exec-continue" "watchpoint-trigger" "callee4" "" \
-        ".*basics.c" $line_callee4_return_0 \
-        {"" "wpt=\{number=\"2\",exp=\"C\"\},value=\{old=\".*\",new=\"3\"\}"} \
-        "watchpoint trigger"
+       ".*basics.c" $line_callee4_return_0 \
+       {"" "wpt=\{number=\"2\",exp=\"C\"\},value=\{old=\".*\",new=\"3\"\}"} \
+       "watchpoint trigger"
 
     mi_execute_to "exec-continue" "watchpoint-scope" "callee3" ".*" \
-        ".*basics.c" $line_callee3_close_brace \
-        {"" "wpnum=\"2\""} \
-        "watchpoint scope"
+       ".*basics.c" $line_callee3_close_brace \
+       {"" "wpnum=\"2\""} \
+       "watchpoint scope"
 }
 
 proc test_watchpoint_all {mi_mode type} {
index 4ee19f04641b7c2ea64b2997447ec9fd30b7af70..5473359439488ab7ed32696ce05e9bf000bb0edc 100644 (file)
@@ -63,9 +63,9 @@ mi_list_varobj_children "struct_declarations" {
     {struct_declarations.long_array long_array 10 "long \\[10\\]"}
     {struct_declarations.func_ptr func_ptr 0 "void \\(\\*\\)\\((void)?\\)"}
     {struct_declarations.func_ptr_struct func_ptr_struct 0 \
-         "struct _struct_decl \\(\\*\\)(\\(int, char \\*, long\\))?"}
+        "struct _struct_decl \\(\\*\\)(\\(int, char \\*, long\\))?"}
     {struct_declarations.func_ptr_ptr func_ptr_ptr 0 \
-        "struct _struct_decl \\*\\(\\*\\)\\((int, char \\*, long)?\\)"}
+       "struct _struct_decl \\*\\(\\*\\)\\((int, char \\*, long)?\\)"}
     {struct_declarations.u1 u1 4 "union \\{\\.\\.\\.\\}"}
     {struct_declarations.s2 s2 4 "struct \\{\\.\\.\\.\\}"}
 } "get children of struct_declarations"
@@ -451,7 +451,7 @@ mi_gdb_test "-var-info-num-children struct_declarations.s2.u2.u1s2.func" \
 # Desc: children of struct_declarations.int_ptr_ptr.*int_ptr_ptr
 mi_list_varobj_children "struct_declarations.int_ptr_ptr.*int_ptr_ptr" {
     {{struct_declarations.int_ptr_ptr.\*int_ptr_ptr.\*\*int_ptr_ptr} \
-         {\*\*int_ptr_ptr} 0 int}
+        {\*\*int_ptr_ptr} 0 int}
 } "get children of struct_declarations.int_ptr_ptr.*int_ptr_ptr"
 
 # Test: c_variable-4.80
@@ -481,9 +481,9 @@ mi_list_varobj_children "weird" {
     {weird.long_array long_array 10 "long \\[10\\]"}
     {weird.func_ptr func_ptr 0 "void \\(\\*\\)\\((void)?\\)"}
     {weird.func_ptr_struct func_ptr_struct 0 \
-         "struct _struct_decl \\(\\*\\)(\\(int, char \\*, long\\))?"}
+        "struct _struct_decl \\(\\*\\)(\\(int, char \\*, long\\))?"}
     {weird.func_ptr_ptr func_ptr_ptr 0 \
-        "struct _struct_decl \\*\\(\\*\\)\\((int, char \\*, long)?\\)"}
+       "struct _struct_decl \\*\\(\\*\\)\\((int, char \\*, long)?\\)"}
     {weird.u1 u1 4 "union \\{\\.\\.\\.\\}"}
     {weird.s2 s2 4 "struct \\{\\.\\.\\.\\}"}
 } "get children of weird"
@@ -560,7 +560,7 @@ mi_gdb_test "-var-info-num-children weird->int_ptr_ptr" \
 # Desc: children of *(weird->int_ptr_ptr)
 mi_list_varobj_children "weird->int_ptr_ptr.*weird->int_ptr_ptr" {
     {{weird->int_ptr_ptr.\*weird->int_ptr_ptr.\*\*weird->int_ptr_ptr} \
-         {\*\*weird->int_ptr_ptr} 0 int}
+        {\*\*weird->int_ptr_ptr} 0 int}
 } "get children of weird->int_ptr_ptr.*weird->int_ptr_ptr"
 
 # Test: c_variable-4.94
@@ -800,7 +800,7 @@ mi_gdb_test "-var-info-num-children psnp->char_ptr" \
 # Desc: children of *(psnp->char_ptr)
 mi_list_varobj_children "psnp->char_ptr.*psnp->char_ptr" {
     {{psnp->char_ptr.\*psnp->char_ptr.\*\*psnp->char_ptr} \
-         {\*\*psnp->char_ptr} 1 {char \*\*}}
+        {\*\*psnp->char_ptr} 1 {char \*\*}}
 } "get children of psnp->char_ptr.*psnp->char_ptr"
 
 # Test: c_variable-5.14
@@ -813,14 +813,14 @@ mi_gdb_test "-var-info-num-children psnp->char_ptr.*psnp->char_ptr" \
 # Desc: children of *(*(psnp->char_ptr))
 mi_list_varobj_children "psnp->char_ptr.*psnp->char_ptr.**psnp->char_ptr" {
     {{psnp->char_ptr.\*psnp->char_ptr.\*\*psnp->char_ptr.\*\*\*psnp->char_ptr} \
-         {\*\*\*psnp->char_ptr} 1 {char \*}}
+        {\*\*\*psnp->char_ptr} 1 {char \*}}
 } "get children of psnp->char_ptr.*psnp->char_ptr.**psnp->char_ptr"
 
 # Test: c_variable-5.15B
 # Desc: children of *(*(*(psnp->char_ptr)))
 mi_list_varobj_children "psnp->char_ptr.*psnp->char_ptr.**psnp->char_ptr.***psnp->char_ptr" {
     {{psnp->char_ptr.\*psnp->char_ptr.\*\*psnp->char_ptr.\*\*\*psnp->char_ptr.\*\*\*\*psnp->char_ptr} \
-         {\*\*\*\*psnp->char_ptr} 0 char}
+        {\*\*\*\*psnp->char_ptr} 0 char}
 } "get children of psnp->char_ptr.*psnp->char_ptr.**psnp->char_ptr.***psnp->char_ptr"
 
 # Test: c_variable-5.16
@@ -833,7 +833,7 @@ mi_gdb_test "-var-info-num-children psnp->char_ptr.*psnp->char_ptr.**psnp->char_
 # Desc: children of *(*(*(psnp->char_ptr)))
 mi_list_varobj_children "psnp->char_ptr.*psnp->char_ptr.**psnp->char_ptr.***psnp->char_ptr" {
     {{psnp->char_ptr.\*psnp->char_ptr.\*\*psnp->char_ptr.\*\*\*psnp->char_ptr.\*\*\*\*psnp->char_ptr} \
-         {\*\*\*\*psnp->char_ptr} 0 char}
+        {\*\*\*\*psnp->char_ptr} 0 char}
 } "get children of psnp->char_ptr.*psnp->char_ptr.**psnp->char_ptr.***psnp->char_ptr after counting children"
 
 # Test: c_variable-5.18
@@ -887,7 +887,7 @@ mi_gdb_test "-var-info-num-children psnp->long_ptr.*psnp->long_ptr" \
 # Desc: children of *(*(psnp->long_ptr))
 mi_list_varobj_children "psnp->long_ptr.*psnp->long_ptr.**psnp->long_ptr" {
     {{psnp->long_ptr.\*psnp->long_ptr.\*\*psnp->long_ptr.\*\*\*psnp->long_ptr} \
-         {\*\*\*psnp->long_ptr} 1 {long \*}}
+        {\*\*\*psnp->long_ptr} 1 {long \*}}
 } "get children of psnp->long_ptr.*psnp->long_ptr.**psnp->long_ptr"
 
 # Test: c_variable-5.25
@@ -900,7 +900,7 @@ mi_gdb_test "-var-info-num-children psnp->long_ptr.*psnp->long_ptr.**psnp->long_
 # Desc: children of *(*(*(psnp->long_ptr)))
 mi_list_varobj_children "psnp->long_ptr.*psnp->long_ptr.**psnp->long_ptr.***psnp->long_ptr" {
     {{psnp->long_ptr.\*psnp->long_ptr.\*\*psnp->long_ptr.\*\*\*psnp->long_ptr.\*\*\*\*psnp->long_ptr}
-        {\*\*\*\*psnp->long_ptr} 0 {long}}
+       {\*\*\*\*psnp->long_ptr} 0 {long}}
 } "get children of psnp->long_ptr.*psnp->long_ptr.**psnp->long_ptr.***psnp->long_ptr"
 
 # Test: c_variable-5.27
@@ -1005,14 +1005,14 @@ mi_gdb_test "-var-info-num-children psnp->ptrs.0.next.char_ptr.*char_ptr" \
 # Desc: children of **psnp->ptrs[0]->next->char_ptr
 mi_list_varobj_children "psnp->ptrs.0.next.char_ptr.*char_ptr.**char_ptr" {
     {{psnp->ptrs.0.next.char_ptr.\*char_ptr.\*\*char_ptr.\*\*\*char_ptr} \
-         {\*\*\*char_ptr} 1 {char \*}}
+        {\*\*\*char_ptr} 1 {char \*}}
 } "get children of psnp->ptrs.0.next.char_ptr.*char_ptr.**char_ptr"
 
 # Test: c_variable-5.41B
 # Desc: children of ***psnp->ptrs[0]->next->char_ptr
 mi_list_varobj_children "psnp->ptrs.0.next.char_ptr.*char_ptr.**char_ptr.***char_ptr" {
     {{psnp->ptrs.0.next.char_ptr.\*char_ptr.\*\*char_ptr.\*\*\*char_ptr.\*\*\*\*char_ptr} \
-         {\*\*\*\*char_ptr} 0 char}
+        {\*\*\*\*char_ptr} 0 char}
 } "get children of psnp->ptrs.0.next.char_ptr.*char_ptr.**char_ptr.***char_ptr"
 
 # Test: c_variable-5.42
@@ -1025,7 +1025,7 @@ mi_gdb_test "-var-info-num-children psnp->ptrs.0.next.char_ptr.*char_ptr.**char_
 # Desc: children of ***psnp->ptrs[0]->next->char_ptr
 mi_list_varobj_children "psnp->ptrs.0.next.char_ptr.*char_ptr.**char_ptr.***char_ptr" {
     {{psnp->ptrs.0.next.char_ptr.\*char_ptr.\*\*char_ptr.\*\*\*char_ptr.\*\*\*\*char_ptr} \
-         {\*\*\*\*char_ptr} 0 char}
+        {\*\*\*\*char_ptr} 0 char}
 } "get children of psnp->ptrs.0.next.char_ptr.*char_ptr.**char_ptr.***char_ptr after counting children"
 
 # Test: c_variable-5.44
@@ -1260,26 +1260,26 @@ set struct_ss_tree {
     }
     {union u_ab} u1 {
       {struct s_a} a {
-        int a {}
+       int a {}
       }
       {struct s_b} b {
-        int b {}
+       int b {}
       }
     }
     anonymous union {
       {struct s_a} a2 {
-        int a {}
+       int a {}
       }
       {struct s_b} b2 {
-        int b {}
+       int b {}
       }
     }
     {union {...}} u2 {
       {struct s_a} a3 {
-        int a {}
+       int a {}
       }
       {struct s_b} b3 {
-        int b {}
+       int b {}
       }
     }
   }
index 0f31dad9cca7e8476fb995e303c9bab01b8c8b7b..83df09131e6afc88b32b5237681393a52c10730b 100644 (file)
@@ -77,4 +77,3 @@ main (int argc, char *argv[])
 
   return 0;
 }
-
index 36bef7e18450c4b6b539261e4a6077724d6b20f6..760ed673900a54b8880de3ad2257c8521f27023f 100644 (file)
@@ -36,7 +36,7 @@ int main() {
       {
        args[i] = 1;
        res = pthread_create(&threads[i - 1],
-                            NULL,
+                            NULL,
                             thread_function,
                             (void *) i);
       }
index 8a6c5e8a5a39398ad9facf45c786a25328dfd574..2ba86984ed10f2b9d0480ccbd45d3a43f6580458 100644 (file)
@@ -72,4 +72,3 @@ main (int argc, char *argv[])
   printf ("hello\n");
   return 0;
 }
-
index c9e352df40ac83b1b224885e19a1a93b762f913b..7ce7115611c15058ef9fe61399f6f644e555e033 100644 (file)
@@ -68,4 +68,3 @@ proc do_test { ui_to_run } {
 foreach_with_prefix ui_to_run {first second} {
     do_test $ui_to_run
 }
-
index 8a4827fd4a80c92c94eb4f412d417e7bb73fdc6d..618bed48ea8e00a2a6fd132e584a86fdc129f0a3 100644 (file)
@@ -208,7 +208,7 @@ proc make_mi_re { mode thread frame type } {
 #   details.
 
 proc make_cli_in_mi_re { command cli_in_mi_mode mode event inf cli_thread
-                        mi_thread frame  } {
+                        mi_thread frame  } {
     global srcfile
     global thread_loop_line
     global main_break_line
index fa17f69b0d28adc91bf7b582024629f98f4eae19..dc7caddde2f2f51014bad5d7f022704e1dfa4606 100644 (file)
@@ -65,16 +65,16 @@ typedef struct _struct_decl {
   struct {
     union {
       struct {
-        int d;
-        char e[10];
-        int *(*func) (void);
-        efoo foo;
+       int d;
+       char e[10];
+       int *(*func) (void);
+       efoo foo;
       } u1s1;
 
       long f;
       struct {
-        char array_ptr[2];
-        int (*func) (int, char *);
+       char array_ptr[2];
+       int (*func) (int, char *);
       } u1s2;
     } u2;
 
@@ -217,8 +217,8 @@ do_block_tests ()
       int foo2;
       foo2 = 123;
       {
-        int foo;
-        foo = 321;
+       int foo;
+       foo = 321;
       }
       foo2 = 0;
     }
@@ -529,7 +529,7 @@ struct Data {
 /* Accessing a value of a bitfield whose type is a typed used to
    result in division by zero.  See:
 
-         http://sourceware.org/bugzilla/show_bug.cgi?id=10884
+        http://sourceware.org/bugzilla/show_bug.cgi?id=10884
 
    This tests for this bug.  */
 
@@ -540,8 +540,8 @@ void do_bitfield_tests ()
   /*:
     mi_create_varobj V d "create varobj for Data"
     mi_list_varobj_children "V" {
-        {"V.alloc" "alloc" "0" "int"}
-        {"V.sharable" "sharable" "0" "uint_for_mi_testing"}
+       {"V.alloc" "alloc" "0" "int"}
+       {"V.sharable" "sharable" "0" "uint_for_mi_testing"}
     } "list children of Data"
     mi_check_varobj_value V.sharable 3 "access bitfield"
     :*/
@@ -662,5 +662,3 @@ main (int argc, char *argv [])
   do_nested_struct_union_tests ();
   exit (0);
 }
-
-
index 4268149b586e1537603fdbd4a3e35e35826cbabd..de47b99b60f25dd42ab537f90820e51643a8252a 100644 (file)
@@ -190,4 +190,3 @@ gdb_test_multiple "info inferiors" "check remove-inferiors" {
        }
     }
 }
-
index eb002fb2545b5a8c02ebcf4644e39cff3c03521f..db94367654425647a72ebeab9155dfdec9fef793 100644 (file)
@@ -18,6 +18,6 @@ int main (int argc, char ** argv)
   printf ("foll-exec is about to execl(crashme)...\n");
 
   execl (prog,
-         prog,
-         (char *)0);
+        prog,
+        (char *)0);
 }
index 98f6b15089040c0eaea32bd69552c05e64461d4a..50a061c087dd11bd1a86de64953eec377babb6c3 100644 (file)
@@ -68,8 +68,8 @@ main (int argc, char ** argv)
   pthread_barrier_wait (&barrier);
 
   execl (prog,
-         prog,
-         (char *) NULL);
+        prog,
+        (char *) NULL);
   perror ("execl failed");
   exit (1);
 }
index 435efc59e5d5c2013aa3957e404e8d7ce183180e..3096c7ae5c5161c53611855162ac2d4e61de9784 100644 (file)
@@ -146,7 +146,7 @@ proc build_executables { first_arch } {
 }
 
 proc do_test { first_arch mode selected_thread } {
-        global bkptno_numopt_re
+       global bkptno_numopt_re
        set from_exec "$first_arch-multi-arch-exec"
 
        clean_restart ${from_exec}
index 4c037df9cb8ac52f6aae093b69c8b77d2d3cc738..6d906ec306c9a5a64de0fe9f9c1a819d93004d97 100644 (file)
@@ -20,4 +20,3 @@ main (void)
 {
   return 0;
 }
-
index 9e40c7138dcc3798aab144b030dbac2762eb9de7..b5fb4d7030274518d8aebecafbdefb56644f3596 100644 (file)
@@ -170,5 +170,3 @@ gdb_test "print-object object" \
 gdb_test "po self" \
     "BasicClass gdb test object" \
     "use of the po (print-object) command"
-
-
index 9ca86ff8189d1d3ffa579e705ebe2265b108e1b8..2cd25b19315f6cb05b6aa7341cbd62c94b191df3 100644 (file)
@@ -55,4 +55,3 @@ gdb_test_multiple "break someMethod" $name \
     -re "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+.*$gdb_prompt $" { pass $name }
     -re ".*$gdb_prompt $"   { kfail "gdb/1236" $name }
 }
-
index c6457c7325350512683f3d45c564e29a80be07b8..c00edb5d88fd51a6e1a94e5701bef3dbcb29b5cc 100644 (file)
@@ -41,4 +41,3 @@ gdb_test_multiple "print operand1" "print operand1" {
     -re "\\\$$decimal = <optimized out>\r\n$gdb_prompt $" { pass "print operand1"}
     -re "$hex\r\n$gdb_prompt $" { gdb_test "print *operand1" "14" "print operand1" }
 }
-
index 0805f693e69f466685893bc2fd2fd0b7078fd13b..672d7e1f72b754fa7a2b1521a0abfc2bd4ee84b1 100644 (file)
@@ -20,7 +20,7 @@
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
-          {debug additional_flags=-Winline}] } {
+         {debug additional_flags=-Winline}] } {
     return -1
 }
 
index cb6755d38e24160cea3361d2829c8d333d50b926..b71356aee17a94cedad8938148b4d3d9bb3911f4 100644 (file)
@@ -60,4 +60,3 @@ begin
   else
     writeln('check OK');
 end.
-
index 67764c5f465b7608fe3491c948696075c73cd918..d1a52af633163ecb249132fe264adc6b74e5a3e6 100644 (file)
@@ -51,4 +51,3 @@ with_test_prefix "after assignment" {
     gdb_test "print char_array" " = '2345X789'"
 }
 gdb_exit
-
index ffaa52e9922fb4971e59274d56ce6b28d50154ff..2579fdd837b17d07f473ec63ca99c41d8a1c7958 100644 (file)
@@ -37,4 +37,3 @@ begin
   Writeln('integer array, index 5 is ',integer_array[5]);
   Writeln('char array, index 5 is ',char_array[5]);
 end.
-
index ac102805a18dde944ee4258decfa438c5b5c969b..bb28e2b529f022bb93e8d22cb51b90ec88f52a5a 100644 (file)
@@ -38,8 +38,8 @@ if { [gdb_breakpoint ${srcfile}:${bp_location2}] } {
 }
 
 gdb_test "cont" \
-         "Breakpoint .*:${bp_location1}.*" \
-         "Going to first breakpoint"
+        "Breakpoint .*:${bp_location1}.*" \
+        "Going to first breakpoint"
 gdb_test "print st" \
         ".* = ''.*" \
         "empty string check"
index e43a1a408cc7196b10d35f28c149215f057ea9e9..33f01b4caea987e7bc6a0e6732273f5b8224c085 100644 (file)
@@ -6,10 +6,10 @@ var
 procedure print_hello;
 begin
  Writeln('Before assignment'); { set breakpoint 1 here }
- st:='Hello, world!'; 
+ st:='Hello, world!';
  writeln(st); {set breakpoint 2 here }
 end;
 
 begin
   print_hello;
-end. 
+end.
index 74ec04fa94b32d358dc6ac7c0a469ff98d566387..1b6508ce73a9cec835cc5b269927381ca328f4c2 100644 (file)
@@ -33,7 +33,7 @@ allocate_page (void)
   void *addr;
   int pgsize = sysconf(_SC_PAGE_SIZE);
   addr = mmap (NULL, pgsize, PROT_EXEC | PROT_READ | PROT_WRITE,
-               MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
+              MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
   if (addr == MAP_FAILED)
     perror ("mmap");
 }
index ce3f7ce04c4b4c807437b86d1854157688f30bcf..5d0d40854b2cdfb75d2cb3cc65065dca0f2e3992 100644 (file)
@@ -45,9 +45,9 @@ gdb_test "python print (block.start)" "${decimal}" "check start not None"
 gdb_test "python print (block.end)" "${decimal}" "check end not None"
 gdb_test "python print (block\['f'\].name == 'f')" "True" "check variable access"
 gdb_test "python print (block\['nonexistent'\])" ".*KeyError.*: 'nonexistent'.*" \
-         "check nonexistent variable"
+        "check nonexistent variable"
 gdb_test "python print (block\[42\])" ".*TypeError.*: Expected a string.*" \
-         "check non-string key"
+        "check non-string key"
 
 # Test global/static blocks
 gdb_py_test_silent_cmd "python frame = gdb.selected_frame()" "Get Frame" 0
@@ -71,7 +71,7 @@ gdb_test_no_output "python block = block.superblock" "get superblock"
 gdb_test "python print (block.function)" "None" "second anonymous block"
 gdb_test_no_output "python block = block.superblock" "get superblock 2"
 gdb_test "python print (block.function)" "block_func" \
-         "Print superblock 2 function"
+        "Print superblock 2 function"
 
 # Switch frames, then test block for no_locals_func.
 gdb_test "continue" ".*" "continue to no_locals_func breakpoint"
@@ -110,7 +110,7 @@ gdb_test "up" ".*"
 gdb_py_test_silent_cmd "python frame = gdb.selected_frame()" "Get Frame 2" 0
 gdb_py_test_silent_cmd "python block = frame.block()" "Get Frame 2's block" 0
 gdb_test "python print (repr (block))" "<gdb.Block main \{.*\}>" \
-         "Check Frame 2's block not None"
+        "Check Frame 2's block not None"
 gdb_test "python print (block.function)" "main" "main block"
 
 # Test Block is_valid.  This must always be the last test in this
@@ -120,15 +120,15 @@ gdb_py_test_silent_cmd "python frame = gdb.selected_frame()" "Get Frame" 0
 gdb_py_test_silent_cmd "python block = frame.block()" "Get Frame block" 0
 gdb_py_test_silent_cmd "python block_iter = iter (block)" "Get Frame block" 0
 gdb_test "python print (block.is_valid())" "True" \
-         "Check block validity"
+        "Check block validity"
 gdb_test "python print (block_iter.is_valid())" "True" \
-         "Check block_iter validity"
+        "Check block_iter validity"
 gdb_test_no_output "python x = hash(block)" "block is hashable"
 gdb_test "python print (type (x))" "<class 'int'>" "block hash is integer"
 gdb_unload
 gdb_test "python print (block.is_valid())" "False" \
-         "Check block validity after unload"
+        "Check block validity after unload"
 gdb_test "python print (block_iter.is_valid())" "False" \
-         "Check block_iter validity after unload"
+        "Check block_iter validity after unload"
 gdb_test "python print (hash (block) == x)" "True" \
     "block hash did not change"
index 4098a7a824dbbdf15612ef3e6ca32acb720caeac..03056049bd761815a2530747c81f0d1281414073 100644 (file)
@@ -46,9 +46,9 @@ gdb_test "break foo"
 set test "continuing to foo"
 gdb_test_multiple "continue" "$test" {
     -re "MyBP\.stop was invoked\!.*$gdb_prompt $" {
-        fail "$test"
+       fail "$test"
     }
     -re "Continuing.*Breakpoint 2, foo.*$gdb_prompt $" {
-        pass "$test"
+       pass "$test"
     }
 }
index 5f4574702e70e205eddd5947a82e5aad4be8554f..c936f0d7a04e84d9d598df58e956cc23c88804dc 100644 (file)
@@ -51,7 +51,7 @@ if { $kind == "obj" } {
 set pyfile [gdb_remote_download host ${srcdir}/${subdir}/py-disasm.py]
 
 gdb_test "source ${pyfile}" "Python script imported" \
-         "import python scripts"
+        "import python scripts"
 
 set line [gdb_get_line_number "Break here."]
 
index d77517a79a8e813e628d6b66b654b6cf2801e247..d480da2efd73a492d34cf152d282d1274b6cbde1 100644 (file)
@@ -17,4 +17,3 @@
 
 
 void do_nothing (void) {}
-
index 22b13afea270a4501dbdc6934694814a9c0eeda1..86444d714aacac592ba9667d97849c13d9c2f507 100644 (file)
@@ -39,9 +39,9 @@ gdb_test_no_output "set non-stop on"
 gdb_run_cmd
 gdb_test_multiple "" "signal Thread 3"  {
     -re "event type: stop\r\nstop reason: signal\r\nstop signal: SIGUSR1\r\nthread num: 3\r\nevent type: stop\r\n.*$gdb_prompt $" {
-        pass "thread 3 was signaled"
+       pass "thread 3 was signaled"
     }
     -re "The target does not support running in non-stop mode"  {
-        unsupported "non-stop mode is unsupported"
+       unsupported "non-stop mode is unsupported"
     }
 }
index 0e9cd978c12d234700a1ff860a33e305717e7f1d..c0c17b3f4dbf7c6dd47cefd7e73a4828e099adbc 100644 (file)
@@ -41,11 +41,11 @@ gdb_run_cmd
 set test "run to breakpoint 1"
 gdb_test_multiple "" $test {
     -re "event type: stop\r\nstop reason: breakpoint\r\nfirst breakpoint number: 1\r\nbreakpoint number: 1\r\nthread num: 1\r\n.*$gdb_prompt $" {
-        pass $test
+       pass $test
     }
     -re "The target does not support running in non-stop mode" {
-        unsupported "non-stop mode is unsupported"
-        return
+       unsupported "non-stop mode is unsupported"
+       return
     }
 }
 
@@ -61,13 +61,13 @@ set test "continue thread 1"
 gdb_test_multiple "continue&" $test {
     -re "event type: continue\r\nthread num: 3\r\n$gdb_prompt " {
        # This expect string must not expect the end-of-buffer '$'.
-        pass $test
+       pass $test
     }
 }
 
 set test "thread 3 was signaled"
 gdb_test_multiple "" $test {
     -re "event type: stop\r\nstop reason: signal\r\nstop signal: SIGUSR1\r\nthread num: 3\r\nevent type: stop\r\n" {
-        pass $test
+       pass $test
     }
 }
index 8c28d874e5556f84b0fd12954fa593b471b56927..c3b130914b4f0f08d7f05098d94b4ea7e63d5988 100644 (file)
@@ -49,93 +49,93 @@ gdb_test "explore int_ref" "'int_ref' is a scalar value of type 'int'.*int_ref =
 
 gdb_test_multiple "explore int_ptr_ref" "" {
     -re "$int_ptr_ref_desc.*Continue exploring it as a pointer to a single value \\\[y/n\\\]:.*" {
-        pass "explore int_ptr_ref"
-        gdb_test_multiple "y" "explore_int_ptr_ref_as_single_value_pointer" {
-            -re "'\[*\]int_ptr_ref' is a scalar value of type 'int'.*\[*\]int_ptr_ref = 10.*$gdb_prompt" {
-                pass "explore_int_ptr_ref_as_single_value_pointer"
-            }
-        }
+       pass "explore int_ptr_ref"
+       gdb_test_multiple "y" "explore_int_ptr_ref_as_single_value_pointer" {
+           -re "'\[*\]int_ptr_ref' is a scalar value of type 'int'.*\[*\]int_ptr_ref = 10.*$gdb_prompt" {
+               pass "explore_int_ptr_ref_as_single_value_pointer"
+           }
+       }
     }
 }
 
 gdb_test_multiple "explore b" "" {
     -re "$b_desc.*Enter the field number of choice:.*" {
-        pass "explore b"
-        gdb_test_multiple "0" "explore_base_class_A" {
-            -re "The value of 'b\.A' is a struct/class of type 'A' with no fields\." {
-                pass "explore_base_class_A, exploring b"
-                gdb_test_multiple "\0" "return_to_b_from_A" {
-                    -re ".*$b_desc.*Enter the field number of choice:.*" {
-                        pass "return_to_b_from_A"
-                        gdb_test_multiple "1" "explore_field_i_of_b" {
-                            -re "'b\.i' is a scalar value of type 'int'.*b\.i = 10.*" {
-                                pass "explore_field_i_of_b"
-                                gdb_test_multiple "\0" "return_to_b_from_i" {
-                                    -re "$b_desc.*Enter the field number of choice:.*" {
-                                        pass "return_to_b_from_i"
-                                    }
-                                }
-                            }
-                        }
-                        gdb_test_multiple "2" "explore_field_c_of_b" {
-                            -re "'b\.c' is a scalar value of type 'char'.*b\.c = .*'a'.*" {
-                                pass "explore_field_c_of_b"
-                                gdb_test_multiple "\0" "return_to_b_from_c" {
-                                    -re "$b_desc.*Enter the field number of choice:.*" {
-                                        pass "return_to_b_from_c"
-                                    }
-                                }
-                            }
-                        }
-                        gdb_test_multiple "\0" "return_to_gdb_prompt" {
-                            -re "$gdb_prompt" {
-                                pass "return_to_gdb_prompt_from_b"
-                            }
-                        }
-                    }
-                }
-            }
-        }
+       pass "explore b"
+       gdb_test_multiple "0" "explore_base_class_A" {
+           -re "The value of 'b\.A' is a struct/class of type 'A' with no fields\." {
+               pass "explore_base_class_A, exploring b"
+               gdb_test_multiple "\0" "return_to_b_from_A" {
+                   -re ".*$b_desc.*Enter the field number of choice:.*" {
+                       pass "return_to_b_from_A"
+                       gdb_test_multiple "1" "explore_field_i_of_b" {
+                           -re "'b\.i' is a scalar value of type 'int'.*b\.i = 10.*" {
+                               pass "explore_field_i_of_b"
+                               gdb_test_multiple "\0" "return_to_b_from_i" {
+                                   -re "$b_desc.*Enter the field number of choice:.*" {
+                                       pass "return_to_b_from_i"
+                                   }
+                               }
+                           }
+                       }
+                       gdb_test_multiple "2" "explore_field_c_of_b" {
+                           -re "'b\.c' is a scalar value of type 'char'.*b\.c = .*'a'.*" {
+                               pass "explore_field_c_of_b"
+                               gdb_test_multiple "\0" "return_to_b_from_c" {
+                                   -re "$b_desc.*Enter the field number of choice:.*" {
+                                       pass "return_to_b_from_c"
+                                   }
+                               }
+                           }
+                       }
+                       gdb_test_multiple "\0" "return_to_gdb_prompt" {
+                           -re "$gdb_prompt" {
+                               pass "return_to_gdb_prompt_from_b"
+                           }
+                       }
+                   }
+               }
+           }
+       }
     }
 }
 
 gdb_test_multiple "explore B" "" {
     -re "$B_desc.*Enter the field number of choice:.*" {
-        pass "explore B"
-        gdb_test_multiple "0" "explore_base_class_A" {
-            -re "base class 'A' of 'B' is a struct/class of type 'A' with no fields\." {
-                pass "explore_base_class_A, exploring B"
-                gdb_test_multiple "\0" "return_to_B" {
-                    -re "$B_desc.*Enter the field number of choice:.*" {
-                        pass "return_to_B"
-                        gdb_test_multiple "1" "explore_field_i_of_B" {
-                            -re "field 'i' of 'B' is of a scalar type 'int'.*" {
-                                pass "explore_field_i_of_B"
-                                gdb_test_multiple "\0" "return_to_B_from_i" {
-                                    -re "$B_desc.*Enter the field number of choice:.*" {
-                                        pass "return_to_B_from_i, exploring B"
-                                    }
-                                }
-                            }
-                        }
-                        gdb_test_multiple "2" "explore_field_c_of_B" {
-                            -re "field 'c' of 'B' is of a scalar type 'char'.*" {
-                                pass "explore_field_c_of_B"
-                                gdb_test_multiple "\0" "return_to_B_from_c" {
-                                    -re "$B_desc.*Enter the field number of choice:.*" {
-                                        pass "return_to_B_from_c"
-                                    }
-                                }
-                            }
-                        }
-                        gdb_test_multiple "\0" "return_to_gdb_prompt" {
-                            -re "$gdb_prompt" {
-                                pass "return_to_gdb_prompt_from_B"
-                            }
-                        }
-                    }
-                }
-            }
-        }
+       pass "explore B"
+       gdb_test_multiple "0" "explore_base_class_A" {
+           -re "base class 'A' of 'B' is a struct/class of type 'A' with no fields\." {
+               pass "explore_base_class_A, exploring B"
+               gdb_test_multiple "\0" "return_to_B" {
+                   -re "$B_desc.*Enter the field number of choice:.*" {
+                       pass "return_to_B"
+                       gdb_test_multiple "1" "explore_field_i_of_B" {
+                           -re "field 'i' of 'B' is of a scalar type 'int'.*" {
+                               pass "explore_field_i_of_B"
+                               gdb_test_multiple "\0" "return_to_B_from_i" {
+                                   -re "$B_desc.*Enter the field number of choice:.*" {
+                                       pass "return_to_B_from_i, exploring B"
+                                   }
+                               }
+                           }
+                       }
+                       gdb_test_multiple "2" "explore_field_c_of_B" {
+                           -re "field 'c' of 'B' is of a scalar type 'char'.*" {
+                               pass "explore_field_c_of_B"
+                               gdb_test_multiple "\0" "return_to_B_from_c" {
+                                   -re "$B_desc.*Enter the field number of choice:.*" {
+                                       pass "return_to_B_from_c"
+                                   }
+                               }
+                           }
+                       }
+                       gdb_test_multiple "\0" "return_to_gdb_prompt" {
+                           -re "$gdb_prompt" {
+                               pass "return_to_gdb_prompt_from_B"
+                           }
+                       }
+                   }
+               }
+           }
+       }
     }
 }
index df0f4654593abeb84fc3dfa591e3cf6b2742506c..3d948d64bbc70b2eaec01b362b0e73d4c0c42930 100644 (file)
@@ -54,7 +54,7 @@ proc pointer_description { value_name type_name } {
 proc field_values { args } {
     set result ""
     foreach field $args {
-        set result "$result\[ \]*$field \[\.\]\[\.\] \[\(\]Value of type .*\[\)\]\[\r\n\]+"
+       set result "$result\[ \]*$field \[\.\]\[\.\] \[\(\]Value of type .*\[\)\]\[\r\n\]+"
     }
     return $result
 }
@@ -63,8 +63,8 @@ proc field_choices { args } {
     set result ""
     set field_num 0
     foreach field $args {
-        set result "$result$field\[ \]+=\[ \]+<Enter $field_num to explore this field of type .*"
-        incr field_num
+       set result "$result$field\[ \]+=\[ \]+<Enter $field_num to explore this field of type .*"
+       incr field_num
     }
     return $result
 }
@@ -93,126 +93,126 @@ gdb_test "explore ss_t" "[typedef_description {ss_t} {SS} $SS].*[compound_descri
 
 gdb_test_multiple "explore ss_ptr" "" {
     -re "[pointer_description {ss_ptr} $SS].*" {
-        pass "explore ss_ptr"
-        gdb_test_multiple "y" "explore_as_single_value_pointer" {
-            -re "$SS_fields.*$gdb_prompt" {
-                pass "explore ss_ptr as single value pointer"
-            }
-        }
+       pass "explore ss_ptr"
+       gdb_test_multiple "y" "explore_as_single_value_pointer" {
+           -re "$SS_fields.*$gdb_prompt" {
+               pass "explore ss_ptr as single value pointer"
+           }
+       }
     }
 }
 
 gdb_test_multiple "explore darray_ref" "" {
     -re "[pointer_description {darray_ref} {double}].*" {
-        pass "explore darray_ref"
-        gdb_test_multiple "n" "no_to_explore_as_pointer" {
-            -re "Continue exploring it as a pointer to an array \[\[\]y/n\[\]\]: " {
-                pass "no_to_explore_as_pointer"
-                gdb_test_multiple "y" "explore_as_array" {
-                    -re ".*Enter the index of the element you want to explore in 'darray_ref':.*"  {
-                        pass "explore_as_array"
-                        gdb_test_multiple "2" "explore_as_array_index_2" {
-                            -re ".*'darray_ref\\\[2\\\]' is a scalar value of type 'double'\..*darray_ref\\\[2\\\] = 0.*" {
-                                pass "explore_as_array_index_2"
-                                gdb_test_multiple "\0" "end explore_as_array_index_2" {
-                                    -re ".*Returning to parent value.*Enter the index of the element you want to explore in 'darray_ref':.*" {
-                                        pass "end explore_as_array_index_2"
-                                        gdb_test_multiple "\0" "end explore_as_array" {
-                                            -re "\[\n\r\]+$gdb_prompt" {
-                                                pass "end explore_as_array"
-                                            }
-                                        }
-                                    }
-                                }
-                            }
-                        }
-                    }
-                }
-            }
-        }
+       pass "explore darray_ref"
+       gdb_test_multiple "n" "no_to_explore_as_pointer" {
+           -re "Continue exploring it as a pointer to an array \[\[\]y/n\[\]\]: " {
+               pass "no_to_explore_as_pointer"
+               gdb_test_multiple "y" "explore_as_array" {
+                   -re ".*Enter the index of the element you want to explore in 'darray_ref':.*"  {
+                       pass "explore_as_array"
+                       gdb_test_multiple "2" "explore_as_array_index_2" {
+                           -re ".*'darray_ref\\\[2\\\]' is a scalar value of type 'double'\..*darray_ref\\\[2\\\] = 0.*" {
+                               pass "explore_as_array_index_2"
+                               gdb_test_multiple "\0" "end explore_as_array_index_2" {
+                                   -re ".*Returning to parent value.*Enter the index of the element you want to explore in 'darray_ref':.*" {
+                                       pass "end explore_as_array_index_2"
+                                       gdb_test_multiple "\0" "end explore_as_array" {
+                                           -re "\[\n\r\]+$gdb_prompt" {
+                                               pass "end explore_as_array"
+                                           }
+                                       }
+                                   }
+                               }
+                           }
+                       }
+                   }
+               }
+           }
+       }
     }
 }
 
 gdb_test_multiple "explore su" "" {
     -re "[compound_description {su} {union} {union SimpleUnion}].*[field_choices {i} {c} {f} {d}].*$enter_field_number_prompt" {
-        pass "explore su"
-        gdb_test_multiple "3" "explore su.d" {
-            -re "[scalar_description {su.d} {double}].*[scalar_value {su.d} {100[.].*}].*$return_to_parent_prompt" {
-                pass "explore su.d"
-                gdb_test_multiple " " "end su.d exploration" {
-                    -re ".*[compound_description {su} {union} {union SimpleUnion}].*[field_choices {i} {c} {f} {d}].*$enter_field_number_prompt" {
-                        pass "end su.d exploration"
-                        gdb_test_multiple "\0" "end su exploration" {
-                            -re "$gdb_prompt" {
-                                pass "end su exploration"
-                            }
-                        }
-                    }
-                }
-            }
-        }
+       pass "explore su"
+       gdb_test_multiple "3" "explore su.d" {
+           -re "[scalar_description {su.d} {double}].*[scalar_value {su.d} {100[.].*}].*$return_to_parent_prompt" {
+               pass "explore su.d"
+               gdb_test_multiple " " "end su.d exploration" {
+                   -re ".*[compound_description {su} {union} {union SimpleUnion}].*[field_choices {i} {c} {f} {d}].*$enter_field_number_prompt" {
+                       pass "end su.d exploration"
+                       gdb_test_multiple "\0" "end su exploration" {
+                           -re "$gdb_prompt" {
+                               pass "end su exploration"
+                           }
+                       }
+                   }
+               }
+           }
+       }
     }
 }
 
 gdb_test_multiple "explore cs" "" {
     -re "[compound_description {cs} {struct/class} {struct ComplexStruct}].*[field_choices {s} {u} {sa}].*$enter_field_number_prompt" {
-        pass "explore cs"
-        gdb_test_multiple "0" "explore cs.s" {
-            -re "[compound_description {cs.s} {struct/class} {struct SimpleStruct}].*[field_values {a = 10} {d = 100[.].*}].*$return_to_parent_prompt" {
-                pass "explore cs.s"
-                gdb_test_multiple " " "end cs.s exploration" {
-                    -re ".*$enter_field_number_prompt" {
-                        pass "end cs.s exploration"
-                    }
-                }
-            }
-        }
-        gdb_test_multiple "1" "explore cs.u" {
-            -re "[compound_description {cs.u} {union} {union SimpleUnion}].*.*[field_choices {i} {c} {f} {d}].*$enter_field_number_prompt" {
-                pass "explore cs.u"
-                gdb_test_multiple " " "end cs.u exploration" {
-                    -re ".*$enter_field_number_prompt" {
-                        pass "end cs.u exploration"
-                    }
-                }
-            }
-        }
-        gdb_test_multiple "\0" "explore cs.u" {
-            -re "$gdb_prompt" {
-                pass "end cs exploration"
-            }
-        }
+       pass "explore cs"
+       gdb_test_multiple "0" "explore cs.s" {
+           -re "[compound_description {cs.s} {struct/class} {struct SimpleStruct}].*[field_values {a = 10} {d = 100[.].*}].*$return_to_parent_prompt" {
+               pass "explore cs.s"
+               gdb_test_multiple " " "end cs.s exploration" {
+                   -re ".*$enter_field_number_prompt" {
+                       pass "end cs.s exploration"
+                   }
+               }
+           }
+       }
+       gdb_test_multiple "1" "explore cs.u" {
+           -re "[compound_description {cs.u} {union} {union SimpleUnion}].*.*[field_choices {i} {c} {f} {d}].*$enter_field_number_prompt" {
+               pass "explore cs.u"
+               gdb_test_multiple " " "end cs.u exploration" {
+                   -re ".*$enter_field_number_prompt" {
+                       pass "end cs.u exploration"
+                   }
+               }
+           }
+       }
+       gdb_test_multiple "\0" "explore cs.u" {
+           -re "$gdb_prompt" {
+               pass "end cs exploration"
+           }
+       }
     }
 }
 
 gdb_test_multiple "explore cu" "" {
     -re "[compound_description {cu} {union} {union ComplexUnion}].*[field_choices {s} {sa}].*$enter_field_number_prompt" {
-        pass "explore cu"
-        gdb_test_multiple "1" "explore cu.sa" {
-            -re ".*[array_description {cu.sa} $SS].*$array_index_prompt" {
-                pass "explore cu.sa"
-                gdb_test_multiple "0" "explore cu.sa\[0\]" {
-                    -re "[compound_description {\(cu.sa\)\[0\]} {struct/class} {struct SimpleStruct}].*[field_values {a = 0} {d = 100[.].*}].*$return_to_parent_prompt" {
-                        pass "explore cu.sa\[0\]"
-                        gdb_test_multiple "\0" "end cu.sa\[0\] exploration" {
-                            -re "[array_description {cu.sa} $SS]$array_index_prompt" {
-                                pass "end cu.sa\[0\] exploration"
-                            }
-                        }
-                    }
-                }
-                gdb_test_multiple "\0" "end cu.sa exploration" {
-                    -re ".*$enter_field_number_prompt" {
-                        pass "end cu.sa exploration"
-                        gdb_test_multiple "\0" "end cu exploration" {
-                            -re "$gdb_prompt" {
-                                pass "end cu exploration"
-                            }
-                        }
-                    }
-                }
-            }
-        }
+       pass "explore cu"
+       gdb_test_multiple "1" "explore cu.sa" {
+           -re ".*[array_description {cu.sa} $SS].*$array_index_prompt" {
+               pass "explore cu.sa"
+               gdb_test_multiple "0" "explore cu.sa\[0\]" {
+                   -re "[compound_description {\(cu.sa\)\[0\]} {struct/class} {struct SimpleStruct}].*[field_values {a = 0} {d = 100[.].*}].*$return_to_parent_prompt" {
+                       pass "explore cu.sa\[0\]"
+                       gdb_test_multiple "\0" "end cu.sa\[0\] exploration" {
+                           -re "[array_description {cu.sa} $SS]$array_index_prompt" {
+                               pass "end cu.sa\[0\] exploration"
+                           }
+                       }
+                   }
+               }
+               gdb_test_multiple "\0" "end cu.sa exploration" {
+                   -re ".*$enter_field_number_prompt" {
+                       pass "end cu.sa exploration"
+                       gdb_test_multiple "\0" "end cu exploration" {
+                           -re "$gdb_prompt" {
+                               pass "end cu exploration"
+                           }
+                       }
+                   }
+               }
+           }
+       }
     }
 }
 
@@ -262,186 +262,186 @@ gdb_test "explore int" ".*[scalar_type_decsription {int}].*"
 
 gdb_test_multiple "explore struct SimpleStruct" "" {
     -re ".*[compound_type_description $SS {struct/class}].*$SS_fields_types.*" {
-        pass "explore struct SimpleStruct"
-        gdb_test_multiple "0" "explore type struct SimpleStruct feild 0" {
-            -re ".*[child_scalar_type_description {field 'a' of 'struct SimpleStruct'} {int}].*" {
-                pass "explore type struct SimpleStruct feild 0"
-                gdb_test_multiple "\0" "return to struct SimpleStruct from field 0" {
-                    -re ".*[compound_type_description $SS {struct/class}].*$SS_fields_types.*" {
-                        pass "return to struct SimpleStruct from field 0"
-                    }
-                }
-            }
-        }
-        gdb_test_multiple "1" "explore type struct SimpleStruct feild 1" {
-            -re ".*[child_scalar_type_description {field 'd' of 'struct SimpleStruct'} {double}].*" {
-                pass "explore type struct SimpleStruct feild 1"
-                gdb_test_multiple "\0" "return to struct SimpleStruct from field 1" {
-                    -re ".*[compound_type_description $SS {struct/class}].*$SS_fields_types.*" {
-                        pass "return to struct SimpleStruct from field 1"
-                    }
-                }
-            }
-        }
-        gdb_test_multiple "\0" "return to GDB prompt from struct SimpleStruct" {
-            -re "$gdb_prompt" {
-                pass "return to GDB prompt from struct SimpleStruct"
-            }
-        }
+       pass "explore struct SimpleStruct"
+       gdb_test_multiple "0" "explore type struct SimpleStruct feild 0" {
+           -re ".*[child_scalar_type_description {field 'a' of 'struct SimpleStruct'} {int}].*" {
+               pass "explore type struct SimpleStruct feild 0"
+               gdb_test_multiple "\0" "return to struct SimpleStruct from field 0" {
+                   -re ".*[compound_type_description $SS {struct/class}].*$SS_fields_types.*" {
+                       pass "return to struct SimpleStruct from field 0"
+                   }
+               }
+           }
+       }
+       gdb_test_multiple "1" "explore type struct SimpleStruct feild 1" {
+           -re ".*[child_scalar_type_description {field 'd' of 'struct SimpleStruct'} {double}].*" {
+               pass "explore type struct SimpleStruct feild 1"
+               gdb_test_multiple "\0" "return to struct SimpleStruct from field 1" {
+                   -re ".*[compound_type_description $SS {struct/class}].*$SS_fields_types.*" {
+                       pass "return to struct SimpleStruct from field 1"
+                   }
+               }
+           }
+       }
+       gdb_test_multiple "\0" "return to GDB prompt from struct SimpleStruct" {
+           -re "$gdb_prompt" {
+               pass "return to GDB prompt from struct SimpleStruct"
+           }
+       }
     }
 }
 
 gdb_test_multiple "explore union SimpleUnion" "" {
   -re ".*[compound_type_description $SU {union}].*$SU_fields_types.*" {
       pass "explore union SimpleUnion"
-        gdb_test_multiple "0" "explore type union SimpleUnion feild 0" {
-            -re ".*[child_scalar_type_description {field 'i' of 'union SimpleUnion'} {int}].*" {
-                pass "explore type union SimpleUnion feild 0"
-                gdb_test_multiple "\0" "return to union SimpleUnion from field 0" {
-                    -re ".*[compound_type_description $SU {union}].*$SU_fields_types.*" {
-                        pass "return to union SimpleUnion from field 0"
-                    }
-                }
-            }
-        }
-        gdb_test_multiple "1" "explore type union SimpleUnion feild 1" {
-            -re ".*[child_scalar_type_description {field 'c' of 'union SimpleUnion'} {char}].*" {
-                pass "explore type union SimpleUnion feild 1"
-                gdb_test_multiple "\0" "return to union SimpleUnion from field 1" {
-                    -re ".*[compound_type_description $SU {union}].*$SU_fields_types.*" {
-                        pass "return to union SimpleUnion from field 1"
-                    }
-                }
-            }
-        }
-        gdb_test_multiple "2" "explore type union SimpleUnion feild 2" {
-            -re ".*[child_scalar_type_description {field 'f' of 'union SimpleUnion'} {float}].*" {
-                pass "explore type union SimpleUnion feild 2"
-                gdb_test_multiple "\0" "return to union SimpleUnion from field 2" {
-                    -re ".*[compound_type_description $SU {union}].*$SU_fields_types.*" {
-                        pass "return to union SimpleUnion from field 2"
-                    }
-                }
-            }
-        }
-        gdb_test_multiple "3" "explore type union SimpleUnion feild 3" {
-            -re ".*[child_scalar_type_description {field 'd' of 'union SimpleUnion'} {double}].*" {
-                pass "explore type union SimpleUnion feild 3"
-                gdb_test_multiple "\0" "return to union SimpleUnion from field 3" {
-                    -re ".*[compound_type_description $SU {union}].*$SU_fields_types.*" {
-                        pass "return to union SimpleUnion from field 3"
-                    }
-                }
-            }
-        }
-        gdb_test_multiple "\0" "return to GDB prompt from union SimpleUnion" {
-            -re "$gdb_prompt" {
-                pass "return to GDB prompt from union SimpleUnion"
-            }
-        }
+       gdb_test_multiple "0" "explore type union SimpleUnion feild 0" {
+           -re ".*[child_scalar_type_description {field 'i' of 'union SimpleUnion'} {int}].*" {
+               pass "explore type union SimpleUnion feild 0"
+               gdb_test_multiple "\0" "return to union SimpleUnion from field 0" {
+                   -re ".*[compound_type_description $SU {union}].*$SU_fields_types.*" {
+                       pass "return to union SimpleUnion from field 0"
+                   }
+               }
+           }
+       }
+       gdb_test_multiple "1" "explore type union SimpleUnion feild 1" {
+           -re ".*[child_scalar_type_description {field 'c' of 'union SimpleUnion'} {char}].*" {
+               pass "explore type union SimpleUnion feild 1"
+               gdb_test_multiple "\0" "return to union SimpleUnion from field 1" {
+                   -re ".*[compound_type_description $SU {union}].*$SU_fields_types.*" {
+                       pass "return to union SimpleUnion from field 1"
+                   }
+               }
+           }
+       }
+       gdb_test_multiple "2" "explore type union SimpleUnion feild 2" {
+           -re ".*[child_scalar_type_description {field 'f' of 'union SimpleUnion'} {float}].*" {
+               pass "explore type union SimpleUnion feild 2"
+               gdb_test_multiple "\0" "return to union SimpleUnion from field 2" {
+                   -re ".*[compound_type_description $SU {union}].*$SU_fields_types.*" {
+                       pass "return to union SimpleUnion from field 2"
+                   }
+               }
+           }
+       }
+       gdb_test_multiple "3" "explore type union SimpleUnion feild 3" {
+           -re ".*[child_scalar_type_description {field 'd' of 'union SimpleUnion'} {double}].*" {
+               pass "explore type union SimpleUnion feild 3"
+               gdb_test_multiple "\0" "return to union SimpleUnion from field 3" {
+                   -re ".*[compound_type_description $SU {union}].*$SU_fields_types.*" {
+                       pass "return to union SimpleUnion from field 3"
+                   }
+               }
+           }
+       }
+       gdb_test_multiple "\0" "return to GDB prompt from union SimpleUnion" {
+           -re "$gdb_prompt" {
+               pass "return to GDB prompt from union SimpleUnion"
+           }
+       }
   }
 }
 
 gdb_test_multiple "explore SS" "" {
     -re ".*[typedef_type_description {SS} $SS].*[compound_type_description {SS} {struct/class}].*$SS_fields_types.*" {
-        pass "explore SS"
-        gdb_test_multiple "0" "explore type SS feild 0" {
-            -re ".*[child_scalar_type_description {field 'a' of 'SS'} {int}].*" {
-                pass "explore type SS feild 0"
-                gdb_test_multiple "\0" "return to SS from field 0" {
-                    -re ".*[compound_type_description {SS} {struct/class}].*$SS_fields_types.*" {
-                        pass "return to SS from field 0"
-                    }
-                }
-            }
-        }
-        gdb_test_multiple "1" "explore type SS feild 1" {
-            -re ".*[child_scalar_type_description {field 'd' of 'SS'} {double}].*" {
-                pass "explore type SS feild 1"
-                gdb_test_multiple "\0" "return to struct SimpleStruct from field 1" {
-                    -re ".*[compound_type_description {SS} {struct/class}].*$SS_fields_types.*" {
-                        pass "return to SS field 1"
-                    }
-                }
-            }
-        }
-        gdb_test_multiple "\0" "return to GDB prompt from SS" {
-            -re "$gdb_prompt" {
-                pass "return to GDB prompt from SS"
-            }
-        }
+       pass "explore SS"
+       gdb_test_multiple "0" "explore type SS feild 0" {
+           -re ".*[child_scalar_type_description {field 'a' of 'SS'} {int}].*" {
+               pass "explore type SS feild 0"
+               gdb_test_multiple "\0" "return to SS from field 0" {
+                   -re ".*[compound_type_description {SS} {struct/class}].*$SS_fields_types.*" {
+                       pass "return to SS from field 0"
+                   }
+               }
+           }
+       }
+       gdb_test_multiple "1" "explore type SS feild 1" {
+           -re ".*[child_scalar_type_description {field 'd' of 'SS'} {double}].*" {
+               pass "explore type SS feild 1"
+               gdb_test_multiple "\0" "return to struct SimpleStruct from field 1" {
+                   -re ".*[compound_type_description {SS} {struct/class}].*$SS_fields_types.*" {
+                       pass "return to SS field 1"
+                   }
+               }
+           }
+       }
+       gdb_test_multiple "\0" "return to GDB prompt from SS" {
+           -re "$gdb_prompt" {
+               pass "return to GDB prompt from SS"
+           }
+       }
     }
 }
 
 gdb_test_multiple "explore type struct ComplexStruct" "" {
     -re ".*[compound_type_description $CS {struct/class}].*$CS_fields_types.*" {
-        pass "explore type struct ComplexStruct"
-        gdb_test_multiple "0" "explore type struct ComplexStruct field 0" {
-            -re ".*[child_compound_type_description $CS_field_0 $SS {struct/class}].*$SS_fields_types.*" {
-                pass "explore type struct ComplexStruct field 0"
-                gdb_test_multiple "\0" "return to ComplexStruct from field 0" {
-                    -re ".*[compound_type_description $CS {struct/class}].*$CS_fields_types.*" {
-                        pass "return to ComplexStruct from field 0"
-                    }
-                }
-            }
-        }
-        gdb_test_multiple "1" "explore type struct ComplexStruct field 1" {
-            -re ".*[child_compound_type_description $CS_field_1 $SU {union}].*$SU_fields_types.*" {
-                pass "explore type struct ComplexStruct field 1"
-                gdb_test_multiple "\0" "return to ComplexStruct from field 1" {
-                    -re ".*[compound_type_description $CS {struct/class}].*$CS_fields_types.*" {
-                        pass "return to ComplexStruct from field 1"
-                    }
-                }
-            }
-        }
-        gdb_test_multiple "2" "explore type struct ComplexStruct field 2" {
-            -re ".*[child_array_type_description $CS_field_2 {SS}].*" {
-                pass "explore type struct ComplexStruct field 2"
-                gdb_test_multiple "\0" "return to ComplexStruct from field 2" {
-                    -re ".*[compound_type_description $CS {struct/class}].*$CS_fields_types.*" {
-                        pass "return to ComplexStruct from field 2"
-                    }
-                }
-            }
-        }
-        gdb_test_multiple "\0" "return to GDB prompt from ComplexStruct type exploration" {
-            -re "$gdb_prompt" {
-                pass "return to GDB prompt from ComplexStruct type exploration"
-            }
-        }
+       pass "explore type struct ComplexStruct"
+       gdb_test_multiple "0" "explore type struct ComplexStruct field 0" {
+           -re ".*[child_compound_type_description $CS_field_0 $SS {struct/class}].*$SS_fields_types.*" {
+               pass "explore type struct ComplexStruct field 0"
+               gdb_test_multiple "\0" "return to ComplexStruct from field 0" {
+                   -re ".*[compound_type_description $CS {struct/class}].*$CS_fields_types.*" {
+                       pass "return to ComplexStruct from field 0"
+                   }
+               }
+           }
+       }
+       gdb_test_multiple "1" "explore type struct ComplexStruct field 1" {
+           -re ".*[child_compound_type_description $CS_field_1 $SU {union}].*$SU_fields_types.*" {
+               pass "explore type struct ComplexStruct field 1"
+               gdb_test_multiple "\0" "return to ComplexStruct from field 1" {
+                   -re ".*[compound_type_description $CS {struct/class}].*$CS_fields_types.*" {
+                       pass "return to ComplexStruct from field 1"
+                   }
+               }
+           }
+       }
+       gdb_test_multiple "2" "explore type struct ComplexStruct field 2" {
+           -re ".*[child_array_type_description $CS_field_2 {SS}].*" {
+               pass "explore type struct ComplexStruct field 2"
+               gdb_test_multiple "\0" "return to ComplexStruct from field 2" {
+                   -re ".*[compound_type_description $CS {struct/class}].*$CS_fields_types.*" {
+                       pass "return to ComplexStruct from field 2"
+                   }
+               }
+           }
+       }
+       gdb_test_multiple "\0" "return to GDB prompt from ComplexStruct type exploration" {
+           -re "$gdb_prompt" {
+               pass "return to GDB prompt from ComplexStruct type exploration"
+           }
+       }
     }
 }
 
 gdb_test_multiple "explore type union ComplexUnion" "" {
     -re ".*[compound_type_description $CU {union}].*$CU_fields_types.*" {
-        pass "explore type union ComplexUnion"
-        gdb_test_multiple "0" "explore type union ComplexStruct field 0" {
-            -re ".*[child_compound_type_description $CU_field_0 $SS {struct/class}].*$SS_fields_types.*" {
-                pass "explore type union ComplexUnion field 0"
-                gdb_test_multiple "\0" "return to ComplexUnion from field 0" {
-                    -re ".*[compound_type_description $CU {union}].*$CU_fields_types.*" {
-                        pass "return to ComplexUnion from field 0"
-                    }
-                }
-            }
-        }
-        gdb_test_multiple "1" "explore type union ComplexUnion field 1" {
-            -re ".*[child_array_type_description $CU_field_1 $SS].*" {
-                pass "explore type union ComplexUnion field 1"
-                gdb_test_multiple "\0" "return to ComplexUnion array" {
-                    -re ".*[compound_type_description $CU {union}].*$CU_fields_types.*" {
-                        pass "return to ComplexUnion from field 1"
-                    }
-                }
-            }
-        }
-        gdb_test_multiple "\0" "return to GDB prompt from ComplexUnion type exploration" {
-            -re "$gdb_prompt" {
-                pass "return to GDB prompt from ComplexUnion type exploration"
-            }
-        }
+       pass "explore type union ComplexUnion"
+       gdb_test_multiple "0" "explore type union ComplexStruct field 0" {
+           -re ".*[child_compound_type_description $CU_field_0 $SS {struct/class}].*$SS_fields_types.*" {
+               pass "explore type union ComplexUnion field 0"
+               gdb_test_multiple "\0" "return to ComplexUnion from field 0" {
+                   -re ".*[compound_type_description $CU {union}].*$CU_fields_types.*" {
+                       pass "return to ComplexUnion from field 0"
+                   }
+               }
+           }
+       }
+       gdb_test_multiple "1" "explore type union ComplexUnion field 1" {
+           -re ".*[child_array_type_description $CU_field_1 $SS].*" {
+               pass "explore type union ComplexUnion field 1"
+               gdb_test_multiple "\0" "return to ComplexUnion array" {
+                   -re ".*[compound_type_description $CU {union}].*$CU_fields_types.*" {
+                       pass "return to ComplexUnion from field 1"
+                   }
+               }
+           }
+       }
+       gdb_test_multiple "\0" "return to GDB prompt from ComplexUnion type exploration" {
+           -re "$gdb_prompt" {
+               pass "return to GDB prompt from ComplexUnion type exploration"
+           }
+       }
     }
 }
 
index af8801f0d9da2a81392455d5219c9feb1da9b3e0..d190143a5f653cd18cd75aad7839318e8c105c1c 100644 (file)
@@ -42,7 +42,7 @@ main (void)
     }
   catch (const int *e)
     {
-        std::cerr << "Exception #" << *e << std::endl;
+       std::cerr << "Exception #" << *e << std::endl;
     }
   i += 1; /* Break after exception 1.  */
 
@@ -52,7 +52,7 @@ main (void)
     }
   catch (const int *e)
     {
-        std::cerr << "Exception #" << *e << std::endl;
+       std::cerr << "Exception #" << *e << std::endl;
     }
   i += 1; /* Break after exception 2.  */
 
index be81576ed8d50a878bf77420d397f7e9843ae203..fe3ef4e69290afb23d4290e5a1524a1d146de2da 100644 (file)
@@ -41,7 +41,7 @@ gdb_breakpoint [gdb_get_line_number "Break before exception"]
 gdb_breakpoint [gdb_get_line_number "Break after exception 2"]
 
 gdb_test "source $pyfile" ".*Python script imported.*" \
-         "import python scripts"
+        "import python scripts"
 
 gdb_breakpoint "throw_exception_1"
 
index f34108d9998d39fdc87e9f07fc0f1faacc2d2845..53fa5535099563a21ddd32dfa92c37638c083dbf 100644 (file)
@@ -776,7 +776,7 @@ proc test_max_string_one { setting unlimited } {
       check_format_string "a_binary_string" $opts
       check_format_string "a_binary_string_array" $opts
       check_format_string "a_big_string" $opts \
-        [get_cut_big_string 1000]
+       [get_cut_big_string 1000]
       if { $setting == "elements"} {
        check_format_string "an_array" $opts
        check_format_string "an_array_with_repetition" $opts
@@ -784,8 +784,8 @@ proc test_max_string_one { setting unlimited } {
       check_format_string "a_symbol_pointer" $opts
 
       if { $current_lang == "c++" } {
-        check_format_string "a_point_t_ref" $opts
-        check_format_string "a_base_ref" $opts
+       check_format_string "a_point_t_ref" $opts
+       check_format_string "a_base_ref" $opts
       }
     }
   }
@@ -929,12 +929,12 @@ proc_with_prefix test_repeat_threshold {} {
       check_format_string "a_big_string" $opts
       check_format_string "an_array" $opts
       check_format_string "an_array_with_repetition" $opts \
-        "\\{1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 5, 5\\}"
+       "\\{1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 5, 5\\}"
       check_format_string "a_symbol_pointer" $opts
 
       if { $current_lang == "c++" } {
-        check_format_string "a_point_t_ref" $opts
-        check_format_string "a_base_ref" $opts
+       check_format_string "a_point_t_ref" $opts
+       check_format_string "a_base_ref" $opts
       }
     }
   }
index 7cc8b018e75e1c86e8245fb663b8b96170700964..5a7a72bc994c561428eeec9ca24ee47180ce3b87 100644 (file)
@@ -112,8 +112,8 @@ gdb_test "show frame-filter priority global Elider" \
 gdb_test_no_output  "set frame-filter priority global Elider 1000" \
     "set frame-filter priotiy global Elider 1000"
 gdb_test "show frame-filter priority global Elider" \
-        "Priority of filter 'Elider' in list 'global' is: 1000" \
-        "show frame-filter priority global Elider after setting"
+       "Priority of filter 'Elider' in list 'global' is: 1000" \
+       "show frame-filter priority global Elider after setting"
 gdb_test "info frame-filter" \
     ".*1000.*Yes.*Elider.*100.*Yes.*Reverse.*10.*.*No.*Object.*1.*" \
     "info frame filter after setting priority"
index 8673d56c68ad97a33caa82dbb638c170e3dd58ba..ef04e21d6d8192927e7d4c1e46383ce823ec41ff 100644 (file)
@@ -30,8 +30,8 @@ clean_restart
 proc test_lookup_type { lang type_name } {
     gdb_test_no_output "set language ${lang}"
     gdb_test "python print(gdb.lookup_type('${type_name}').name)" \
-        "${type_name}" \
-        "lookup type ${type_name} using language ${lang}"
+       "${type_name}" \
+       "lookup type ${type_name} using language ${lang}"
 }
 
 test_lookup_type "ada" "character"
index 2cc7dc8792667e7e2f153dcb05729c377cf2e09b..9f1f9eb377ce661e1a31bca9a4d5f4e692adbfd4 100644 (file)
@@ -241,7 +241,7 @@ with_test_prefix "handler installs lib objfile" {
     remote_exec host \
        "mkdir -p $debugdir_no_lib/[file dirname $build_id_filename]"
     gdb_test_no_output "python handler_obj.set_mode(Mode.RETURN_TRUE, \
-       \"$hidden_libfile\", \"$debugdir_no_lib/$build_id_filename\")" \
+       \"$hidden_libfile\", \"$debugdir_no_lib/$build_id_filename\")" \
        "configure handler"
 
     load_core_file
index be2cecdab67482c3e43529803627100bc40bdc84..e450edcec5994586c8df009d25cee5c717c6f743 100644 (file)
@@ -243,5 +243,3 @@ gdb_test "print /r ss" " = {a = {a = 1, b = $hex}, b = {a = 2, b = $hex}}"
 gdb_test "with print raw-values off -- print /r ss" " = {a = {a = 1, b = $hex}, b = {a = 2, b = $hex}}"
 
 gdb_test "print -raw-values off -- /r ss" " = {a = {a = 1, b = $hex}, b = {a = 2, b = $hex}}"
-
-
index a1d1462d20512abe1ad944fe769e453deb639b0c..fbcb959c421dae6eb1971b45ef0e94a36ae9a58b 100644 (file)
@@ -35,7 +35,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
 set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py]
 
 gdb_test "source ${pyfile}" "Python script imported" \
-         "import python scripts"
+        "import python scripts"
 
 # The following tests require execution.
 
index a0f9d802f5ba2e9bb4130a19056acb68ee4592bb..251b478fe960224caf3d1e614b526a05e42de51c 100644 (file)
@@ -31,7 +31,7 @@ proc test_template_arg {exefile type} {
     global testfile srcdir subdir srcfile
     if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${exefile}" \
                executable \
-               [list debug c++ additional_flags="-DTYPE=$type"]] != "" } {
+               [list debug c++ additional_flags="-DTYPE=$type"]] != "" } {
        untested $type
        return -1
     }
index a9590443dca79e01faedfbc3f08dea9ed7d214bb..599473c609d52005110256bfb2d936a566e53f2c 100644 (file)
@@ -35,11 +35,11 @@ runto_main
 
 gdb_test "break after_mc_barrier" \
     "Breakpoint 2 at .*: file .*${srcfile}, line .*" \
-         "breakpoint on after_mc_barrier"
+        "breakpoint on after_mc_barrier"
 
 gdb_test "break do_something" \
     "Breakpoint 3 at .*: file .*${srcfile}, line .*" \
-         "breakpoint on do_something"
+        "breakpoint on do_something"
 
 gdb_test "continue" \
        "Breakpoint 2, after_mc_barrier .*" \
@@ -90,19 +90,19 @@ gdb_test "python print(gdb.selected_inferior().thread_from_handle(gdb.parse_and_
 # We should see an exception when passing an object of the wrong type.
 
 gdb_test "python print(gdb.selected_inferior().thread_from_handle(gdb.lookup_symbol('main')))" \
-         ".*TypeError.*: Argument 'handle' must be a thread handle object.*" \
+        ".*TypeError.*: Argument 'handle' must be a thread handle object.*" \
         "TypeError when passing a symbol object to thread_from_handle"
 
 # We should see an exception when passing too large of an object.
 
 gdb_test "python print(gdb.selected_inferior().thread_from_handle(gdb.parse_and_eval('thrs')))" \
-         ".*Thread handle size mismatch.*" \
+        ".*Thread handle size mismatch.*" \
         "Pass overly large object to thread_from_handle"
 
 # We should see an exception when passing too small of an object.
 
 gdb_test "python print(gdb.selected_inferior().thread_from_handle(gdb.parse_and_eval('\"S\"')))" \
-         ".*Thread handle size mismatch.*" \
+        ".*Thread handle size mismatch.*" \
         "Pass too small of an object to thread_from_handle"
 
 # Test the thread_handle method
@@ -134,8 +134,8 @@ foreach thrN {0 1 2} {
        # object into a gdb.value by calling the two argument form of
        # its constructor.
 
-        gdb_test "python print(gdb.Value(hand_bytes, tp) == hand)" \
-                "True" \
-                "verify that handles are the same"
+       gdb_test "python print(gdb.Value(hand_bytes, tp) == hand)" \
+                "True" \
+                "verify that handles are the same"
     }
 }
index 7a64ed3b0566029f9e47431812e99a2a14bf8c2b..4cef1501a5a9bf6216530caa5a0b0c9b93feba2b 100644 (file)
@@ -54,7 +54,7 @@ proc test_fields {lang} {
 
     # .fields() of a typedef should still return the underlying field list
     gdb_test "python print (len(gdb.parse_and_eval('ts').type.fields()))" "2" \
-        "$lang typedef field list"
+       "$lang typedef field list"
 
     if {$lang == "c++"} {
       # Test usage with a class
@@ -145,9 +145,9 @@ proc test_fields {lang} {
 
     # Test gdb.Type.array.
     gdb_test "python print (ar\[0\].cast(ar\[0\].type.array(1)))" \
-        ".1, 2." "cast to array with one argument"
+       ".1, 2." "cast to array with one argument"
     gdb_test "python print (ar\[0\].cast(ar\[0\].type.array(0, 1)))" \
-        ".1, 2." "cast to array with two arguments"
+       ".1, 2." "cast to array with two arguments"
 
     gdb_test "python print (ar\[0\].type == ar\[0\].type)" "True"
 
index 74d4ead83c6103b7cd66bbb046f8b4c2921da431..b0b06b2eb9f463122322df87a886efb33fc5367b 100644 (file)
@@ -37,7 +37,7 @@ set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py]
 gdb_breakpoint "foo"
 
 gdb_test "source ${pyfile}" "Python script imported" \
-        "import python scripts"
+       "import python scripts"
 
 gdb_continue_to_breakpoint "foo"
 
index f785c5e942e715e59f861767b07f8a6250b22358..318458f0b2018af8b7defe9bf36d4fa02ce1d7ce 100644 (file)
@@ -33,8 +33,8 @@ static void
 bad_layout(void **variable_ptr, void *fp)
 {
   fprintf (stderr, "First variable should be allocated one word below "
-           "the frame.  Got variable's address %p, frame at %p instead.\n",
-           variable_ptr, fp);
+          "the frame.  Got variable's address %p, frame at %p instead.\n",
+          variable_ptr, fp);
   abort();
 }
 
index 087c8c2c5bd40b05bbb1ce48c33bda8c0066166d..ffc4b7cfa8e2e6b10f00432271dd874bdbb0165c 100644 (file)
@@ -544,13 +544,13 @@ proc test_float_conversion {} {
 proc prepare_type_and_buffer {} {
   gdb_py_test_silent_cmd "python tp=gdb.lookup_type('int')" "look up int type" 0
   gdb_py_test_silent_cmd "python size_a=gdb.parse_and_eval('sizeof(a)')" \
-                         "find size of a" 0
+                        "find size of a" 0
   gdb_py_test_silent_cmd "python size_a0=gdb.parse_and_eval('sizeof(a\[0\])')" \
-                         "find size of element of a" 0
+                        "find size of element of a" 0
   gdb_py_test_silent_cmd "python addr=gdb.parse_and_eval('&a')" \
-                         "find address of a" 0
+                        "find address of a" 0
   gdb_py_test_silent_cmd "python b=gdb.selected_inferior().read_memory(addr,size_a)" \
-                         "read buffer from memory" 0
+                        "read buffer from memory" 0
 }
 
 proc test_value_from_buffer {} {
@@ -570,23 +570,23 @@ proc test_value_from_buffer {} {
 
   prepare_type_and_buffer
   gdb_test "python v=gdb.Value(b,tp); print(v)" "1" \
-            "construct value from buffer"
+           "construct value from buffer"
   gdb_test_no_output { python compare_value_bytes_to_mem(v, addr, size_a0) }
   gdb_test "python v=gdb.Value(b\[size_a0:\],tp); print(v)" "2" \
-            "convert 2nd elem of buffer to value"
+           "convert 2nd elem of buffer to value"
   gdb_test_no_output \
       { python compare_value_bytes_to_mem(v, (int(addr) + size_a0), size_a0) }
   gdb_test "python v=gdb.Value(b\[2*size_a0:\],tp); print(v)" "3" \
-           "convert 3rd elem of buffer to value"
+          "convert 3rd elem of buffer to value"
   gdb_test_no_output \
       { python compare_value_bytes_to_mem(v, (int(addr) + (2 * size_a0)), size_a0) }
   gdb_test "python v=gdb.Value(b\[2*size_a0+1:\],tp); print(v)" \
-           "ValueError.*: Size of type is larger than that of buffer object\..*" \
+          "ValueError.*: Size of type is larger than that of buffer object\..*" \
           "attempt to convert smaller buffer than size of type"
   gdb_py_test_silent_cmd "python atp=tp.array(2) ; print(atp)" \
-                         "make array type" 0
+                        "make array type" 0
   gdb_py_test_silent_cmd "python va=gdb.Value(b,atp)" \
-                         "construct array value from buffer" 0
+                        "construct array value from buffer" 0
   gdb_test_no_output \
       { python compare_value_bytes_to_mem(va, addr, size_a0 * 3) }
   gdb_test "python print(va)" "\\{1, 2, 3\\}" "print array value"
@@ -594,16 +594,16 @@ proc test_value_from_buffer {} {
   gdb_test "python print(va\[1\])" "2" "print second array element"
   gdb_test "python print(va\[2\])" "3" "print third array element"
   gdb_test "python print(va\[3\])" "gdb\.error.*: no such vector element.*" \
-           "print out of bounds array element"
+          "print out of bounds array element"
   gdb_py_test_silent_cmd "python atpbig=tp.array(3)" "make bigger array type" 0
   gdb_test "python vabig=gdb.Value(b,atpbig)" \
-           "ValueError.*: Size of type is larger than that of buffer object\..*" \
+          "ValueError.*: Size of type is larger than that of buffer object\..*" \
           "attempt to construct large value with small buffer"
   gdb_test "python v=gdb.Value(2048,tp)" \
-           "TypeError.*: Object must support the python buffer protocol\..*" \
-           "attempt to construct value from buffer with non-buffer object"
+          "TypeError.*: Object must support the python buffer protocol\..*" \
+          "attempt to construct value from buffer with non-buffer object"
   gdb_test "python v=gdb.Value(b,'int'); print(v)" \
-           "TypeError.*: type argument must be a gdb\.Type\..*" \
+          "TypeError.*: type argument must be a gdb\.Type\..*" \
           "attempt to construct value with string as type"
 }
 
index 3ccff48296bca16b132cfb45ff99b8c4d9b1ad2b..5c1836d98fe19c38a57c58cf7e3be9e58c81beca 100644 (file)
@@ -89,11 +89,11 @@ gdb_test_multiple "step" $testmsg {
        set stop_addr [get_valueof "/x" "\$pc" "" "value of pc"]
        set stop_addr_is_stmt [hex_in_list $stop_addr $is_stmt]
        if { ! $stop_addr_is_stmt } {
-           fail "stopped at bp, 2nd instr (missing hex prefix)"
+          fail "stopped at bp, 2nd instr (missing hex prefix)"
        } elseif {$foo2_addr == $stop_addr} {
-           pass "stopped at bp, 2nd instr"
+          pass "stopped at bp, 2nd instr"
        } else {
-           fail "stopped at bp, 2nd instr (wrong address)"
+          fail "stopped at bp, 2nd instr (wrong address)"
        }
     }
 }
index c8054a81ea3b4345fe6020618bc05182759a9345..b7ce9861fca8e51fcda5887bc310ef739d28dc60 100644 (file)
@@ -32,4 +32,3 @@ main()
 {
   foo ();
 } /* end of main */
-
index 7434efb44e7386d6b71dd5c748e5e1112c50dff5..b1a408e06f644482d920ab42863e56ca9e590305 100644 (file)
@@ -71,11 +71,11 @@ gdb_test_multiple "step" $testmsg {
        set stop_addr [get_valueof "/x" "\$pc" "" "value of pc"]
        set stop_addr_is_stmt [hex_in_list $stop_addr $is_stmt]
        if { ! $stop_addr_is_stmt } {
-           fail "stopped at bp, 2nd instr (missing hex prefix)"
+          fail "stopped at bp, 2nd instr (missing hex prefix)"
        } elseif {$foo2_addr == $stop_addr} {
-           pass "stopped at bp, 2nd instr"
+          pass "stopped at bp, 2nd instr"
        } else {
-           fail "stopped at bp, 2nd instr (wrong address)"
+          fail "stopped at bp, 2nd instr (wrong address)"
        }
     }
 }
index 1bcf834271e22137e6f52498754309e9b9418c6b..8e42a213c713280ea5d2c19cbce5112463a81e10 100644 (file)
@@ -125,4 +125,3 @@ int main (int argc, char **argv)
   main_test = 1;                               /* double_checkpoint */
   return 0;                                    /* end of main */
 }
-
index c9a3a7e00199800141168dc8f3c83bfa73117973..bda47897ba4bad3bf39f378321d1d6ee21f73a26 100644 (file)
@@ -274,5 +274,3 @@ gdb_test "info reg ecx" "ecx *$preinc_ecx\[ \t\]+.*" "ecx after reverse-inc"
 gdb_test "info reg eax" "eax *$predec_eax\[ \t\]+.*" "eax before reverse-inc"
 gdb_test "reverse-step" "inc .eax.*" "reverse-step to inc eax"
 gdb_test "info reg eax" "eax *$preinc_eax\[ \t\]+.*" "eax after reverse-inc"
-
-
index 9aee9a4f70e41b45401323ccff83a4abeda5e26e..f81e738129b130ecf1a950183c271b004fa2a395 100644 (file)
@@ -257,5 +257,3 @@ gdb_test "info reg ecx" "ecx *$preinc_ecx\[ \t\]+.*" "ecx after reverse-inc"
 gdb_test "info reg eax" "eax *$predec_eax\[ \t\]+.*" "eax before reverse-inc"
 gdb_test "reverse-step" "inc .eax.*" "reverse-step to inc eax"
 gdb_test "info reg eax" "eax *$preinc_eax\[ \t\]+.*" "eax after reverse-inc"
-
-
index 86219eb8be37a1dc30e4efa82ba9326a9b816602..fde23c126f4c43ae436dbef99f6eea61b2a40b77 100644 (file)
@@ -21,11 +21,11 @@ void
 sse_test (void)
 {
   char buf0[] = {0, 1, 2, 3, 4, 5, 6, 7, 8,
-                  9, 10, 11, 12, 13, 14, 15};
+                 9, 10, 11, 12, 13, 14, 15};
   char buf1[] = {16, 17, 18, 19, 20, 21, 22, 23,
-                  24, 25, 26, 27, 28, 29, 30, 31};
+                 24, 25, 26, 27, 28, 29, 30, 31};
   char buf2[] = {32, 33, 34, 35, 36, 37, 38, 39,
-                  40, 41, 42, 43, 44, 45, 46, 47};
+                 40, 41, 42, 43, 44, 45, 46, 47};
 
   asm ("movupd %0, %%xmm0":"=m"(buf0));
   asm ("movupd %0, %%xmm1":"=m"(buf1));
@@ -73,11 +73,11 @@ void
 ssse3_test (void)
 {
   char buf0[] = {0, 1, 2, 3, 4, 5, 6, 7, 8,
-                  9, 10, 11, 12, 13, 14, 15};
+                 9, 10, 11, 12, 13, 14, 15};
   char buf1[] = {16, 17, 18, 19, 20, 21, 22, 23,
-                  24, 25, 26, 27, 28, 29, 30, 31};
+                 24, 25, 26, 27, 28, 29, 30, 31};
   char buf2[] = {32, 33, 34, 35, 36, 37, 38, 39,
-                  40, 41, 42, 43, 44, 45, 46, 47};
+                 40, 41, 42, 43, 44, 45, 46, 47};
 
   asm ("movupd %0, %%xmm0":"=m"(buf0));
   asm ("movupd %0, %%xmm1":"=m"(buf1));
@@ -92,11 +92,11 @@ void
 sse4_test (void)
 {
   char buf0[] = {0, 1, 2, 3, 4, 5, 6, 7, 8,
-                  9, 10, 11, 12, 13, 14, 15};
+                 9, 10, 11, 12, 13, 14, 15};
   char buf1[] = {16, 17, 18, 19, 20, 21, 22, 23,
-                  24, 25, 26, 27, 28, 29, 30, 31};
+                 24, 25, 26, 27, 28, 29, 30, 31};
   char buf2[] = {32, 33, 34, 35, 36, 37, 38, 39,
-                  40, 41, 42, 43, 44, 45, 46, 47};
+                 40, 41, 42, 43, 44, 45, 46, 47};
 
   asm ("movupd %0, %%xmm0":"=m"(buf0));
   asm ("movupd %0, %%xmm1":"=m"(buf1));
index aa4cfce5d7f08c664b6f0692411d0824ceb3662c..13cdec7ebc1f39d7108cc411ae81617737896dc5 100644 (file)
@@ -666,7 +666,7 @@ gdb_test_multiple "continue" $test {
     }
     -re " Illegal instruction.*\r\n$gdb_prompt $" {
        untested i386-sse4-reverse
-        return -1
+       return -1
     }
 }
 
index 94d97235602816070bc31b40fa3a9a7599d300ae..babc6e0961b2ef704edbe7e7d9e6223e30930297 100644 (file)
@@ -261,4 +261,3 @@ with_test_prefix "module global variable, forward" {
     gdb_test "step"          " module global post-change .*" "step, 2"
     gdb_test "print aglobal" " = 1"  "module global step post-change"
 }
-
index 41baaf48d17fed6d865bd817c7546c90c6c5af1d..3683632b21c0dbb8c8f0f3ca0b3c37cb673b5040 100644 (file)
@@ -36,4 +36,3 @@ main ()
   __asm__ __volatile__ ("xvsqrtsp 0, 1");
   ra = 0;                               /* stop 2 */
 }
-
index 773388d204327a4981a6ab25271ed56af0176677..be529691d09f137cfa69bbbaecb6d22c2ee15ef7 100644 (file)
@@ -99,4 +99,3 @@ gdb_assert ![string compare $vs0_initial $vs0_final] \
 # Check initial and final are the same.
 gdb_assert ![string compare $vs1_initial $vs1_final] \
     "check vs1 initial versus vs1 final"
-
index 511bc41af57880485f0094cb5d051d9ee74d5b3a..e5d97d24f1a33a4eee6119147b1a2a5922a54477 100644 (file)
@@ -96,8 +96,8 @@ main ()
                        "wa" (vec_xb) );
   /* Use the older instruction name for backward compatibility */
   __asm__ __volatile__ ("pmxvi8ger4spp  6, %x0, %x1, 11, 13, 5"
-                                :: "wa" (vec_xa), "wa" (vec_xb) );
+                               :: "wa" (vec_xa), "wa" (vec_xb) );
   __asm__ __volatile__ ("pmxvf32gerpp  7, %x0, %x1, 11, 13"
-                                :: "wa" (vec_xa), "wa" (vec_xb) );
+                               :: "wa" (vec_xa), "wa" (vec_xb) );
   ra = 0;                               /* stop 4 */
 }
index 21dba82f3b1b870e0fe82e5b08164d08d120390c..a3dbed6e1104c3ebbb74001a644fe83450e1ce21 100644 (file)
@@ -339,5 +339,3 @@ gdb_assert ![string compare $acc_7_3_initial $acc_7_3_final] \
 
 gdb_assert ![string compare $fpscr_initial $fpscr_final] \
     "check fpscr initial versus final"
-
-
index 1c087b5db683584827d66c13ab662810107e0874..dd9389ba7857f992cf4e37648ecbc76a8e4dfe34 100644 (file)
@@ -39,9 +39,9 @@ mvcle (void)
   register size_t nsrc asm("r5") = sizeof src;
   asm volatile ("0: mvcle 2, 4, 0x69\n"
                "jo 0b\n"
-                : "=r" (pdst), "=r" (ndst), "=r" (psrc), "=r" (nsrc)
-                : "0" (pdst), "1" (ndst), "2" (psrc), "3" (nsrc)
-                : "cc", "memory");
+               : "=r" (pdst), "=r" (ndst), "=r" (psrc), "=r" (nsrc)
+               : "0" (pdst), "1" (ndst), "2" (psrc), "3" (nsrc)
+               : "cc", "memory");
 }
 
 int
index 642be8fde9bde77f4d89b714c485d4a6dcbd207a..8794a39d7f9e83f8c1dca724d3b0adc1a9760531 100644 (file)
@@ -53,4 +53,3 @@ gdb_test "reverse-continue" ".*$srcfile:$decimal.*" "reverse to marker1"
 gdb_test "print (int)dst\[0]" ".* = 0" "check MVCLE record 1"
 gdb_test "print (int)dst\[0x100000]" ".* = 0" "check MVCLE record 2"
 gdb_test "print (int)dst\[0xffffff]" ".* = 0" "check MVCLE record 3"
-
index 552be4b1666ec524bbcbd8b7371a684b8c38be0c..b3ffc6d8faa7877242a44f10f5513c418e7a2d12 100644 (file)
@@ -60,7 +60,7 @@ proc test_one_sig {nextsig} {
        if { $thissig == "URG" } {
            setup_xfail "i*86-pc-linuxoldld-gnu" "i*86-pc-linuxaout-gnu"
        }
-        # Either Lynx or GDB screws up on SIGPRIO
+       # Either Lynx or GDB screws up on SIGPRIO
        if { $thissig == "PRIO" } {
            setup_xfail "*-*-*lynx*"
        }
@@ -78,16 +78,16 @@ proc test_one_sig {nextsig} {
 
     if {$missed_handler == "0"} {
        set testmsg "advance to $nextsig"
-        gdb_test_multiple "signal 0" $testmsg {
+       gdb_test_multiple "signal 0" $testmsg {
            -re "Breakpoint.*gen_$nextsig.*kill.*$gdb_prompt $" {
-               pass $testmsg
-               set sig_supported 1
+               pass $testmsg
+               set sig_supported 1
            }
            -re "Breakpoint.*gen_$nextsig.*handle.*$gdb_prompt $" {
-               pass $testmsg
-               set sig_supported 0
+               pass $testmsg
+               set sig_supported 0
            }
-        }
+       }
     }
     set thissig $nextsig
 }
index f9259a1747c4a6c506e9d2f592eca6ebb5833279..8fb07514b53a990f3c44a89f6968fe4fccb5d191 100644 (file)
@@ -66,7 +66,7 @@ proc test_one_sig {nextsig} {
        if { $thissig == "URG" } {
            setup_xfail "i*86-pc-linuxoldld-gnu" "i*86-pc-linuxaout-gnu"
        }
-        # Either Lynx or GDB screws up on SIGPRIO
+       # Either Lynx or GDB screws up on SIGPRIO
        if { $thissig == "PRIO" } {
            setup_xfail "*-*-*lynx*"
        }
@@ -84,16 +84,16 @@ proc test_one_sig {nextsig} {
 
     if {$missed_handler == "0"} {
        set testmsg "advance to $nextsig"
-        gdb_test_multiple "signal 0" $testmsg {
+       gdb_test_multiple "signal 0" $testmsg {
            -re "Breakpoint.*gen_$nextsig.*kill.*$gdb_prompt $" {
-               pass $testmsg
-               set sig_supported 1
+               pass $testmsg
+               set sig_supported 1
            }
            -re "Breakpoint.*gen_$nextsig.*handle.*$gdb_prompt $" {
-               pass $testmsg
-               set sig_supported 0
+               pass $testmsg
+               set sig_supported 0
            }
-        }
+       }
     }
     set thissig $nextsig
 }
index a8fce2a859138f9f830cab351f8aa55c771146be..3b3b59ea4279035b798b779eca5e966bd06fa60a 100644 (file)
@@ -46,4 +46,3 @@ int main ()
   b[0] = 0;                    /* end part one */
   return 0; /* end of main */
 }
-
index d152454442b1bcaa5d45295ca82a3d2186e6d09c..960a5f2b0553250cfa287d9ea41db4d12eb59916 100644 (file)
@@ -311,4 +311,3 @@ gdb_test "next" ".*NEXT TEST 1.*" "reverse next test 2"
 # FIXME return to this later...
 # gdb_test_no_output "set exec-dir forward" "set forward execution"
 # gdb_continue_to_end "step-reverse.exp"
-
index 980fe4aa72a5e30903a1270ce0a4bd255856e553..6ac96e28aeeb00a743ce588ab76a737c4f45b5ae 100644 (file)
@@ -92,4 +92,3 @@ int main () {
 
    exit (0); /* end of main */
 }
-
index 78a11bf25a4d0a2dfb48bf6a2131e793770a6def..0ba5fbc9c6cc0dea8b7c44fe2e83cac01e2b6b12 100644 (file)
@@ -340,4 +340,3 @@ gdb_test "next" ".*NEXT TEST 1.*" "reverse next test 2"
 # FIXME return to this later...
 # gdb_test_no_output "set exec-dir forward" "set forward execution"
 # gdb_continue_to_end "step-reverse.exp"
-
index 75ab4b1e2fd3718a3bed7164e96ff1941b2c095c..5e844968499b895bfdbecfd9816fe7fb507f4216 100644 (file)
@@ -210,4 +210,3 @@ gdb_test "continue" \
 gdb_test "continue" \
     ".*\[Ww\]atchpoint.*ival3.*Old value = 0.*New value = -1.*ival3 = count; ival4 = count;.*" \
     "watchpoint hit in reverse, HW, fifth time"
-
index b178a8b8d31c0b54ec3957acd816e63ac9d7f4d5..6b42a9b990ce827090686109bd6fd83699bf400c 100644 (file)
@@ -208,4 +208,3 @@ int main ()
 
   return 0; /* end of main */
 }
-
index 567ae4a63a97f063fffd61d6fc89e7849e17f522..9f6acdf062c15ffc422fc564985a1046de82d6ba 100644 (file)
@@ -197,4 +197,3 @@ gdb_test "continue" \
 gdb_test "continue" \
     ".*\[Ww\]atchpoint.*ival3.*Old value = 0.*New value = -1.*ival3 = count; ival4 = count;.*" \
     "watchpoint hit in reverse, HW, fifth time"
-
index 2719f0d8b1380b538881c0d929a05d33d01edf00..c497d74e348f482ff3950efbf4c78a21b36b1b12 100644 (file)
@@ -66,4 +66,3 @@ with_rocm_gpu_lock {
 
     gdb_continue_to_end "" continue 1
 }
-
index 441d460146a1f7df05f666abf3540b6e7f100cd1..2f2d4854b9bf5b666bcb52a02a5c24b64d61a4af 100644 (file)
@@ -35,4 +35,3 @@ main ()
   kern<<<1, 1>>> ();
   return hipDeviceSynchronize () != hipSuccess;
 }
-
index 24e7e1abbcb7cc8ad4214ff18f4613953e41e01d..18952b456a4921854905f3891256bb678998656f 100644 (file)
@@ -149,7 +149,7 @@ proc do_test { clear_sysroot set_remote_exec fetch_exec_and_args } {
 
     gdb_load $::binfile
     gdb_test "monitor help" "The following monitor commands.*" \
-        "load new file without any gdbserver inferior"
+       "load new file without any gdbserver inferior"
 
     gdb_test_no_output "monitor exit"
 }
index 9244efe0dac9f4550f1126a2eb5346a3ed10ce08..9ec54c1a4e92899788aa630ad278fb83aef0613b 100644 (file)
@@ -70,4 +70,3 @@ main (void)
 
   return 0;
 }
-
index 5180c18dbec7210f026bfbe81a338b652d730b6f..b02e489e54d62d35ebcd65720eeb17e0d16bfaf9 100644 (file)
@@ -29,13 +29,12 @@ clean_restart $::testfile
 runto_main
 
 gdb_test "break noreturn" \
-         "Breakpoint 2 at .*: file .*${srcfile}, line .*" \
-         "breakpoint on noreturn"
+        "Breakpoint 2 at .*: file .*${srcfile}, line .*" \
+        "breakpoint on noreturn"
 
 # Run the program and make sure GDB reports that we stopped after
 # hitting breakpoint 1 in noreturn().
 
 gdb_test "continue" \
-         ".*Breakpoint 2, noreturn ().*" \
-         "run to noreturn"
-
+        ".*Breakpoint 2, noreturn ().*" \
+        "run to noreturn"
index 85b3db5b923b544ceeea359b1cc6a75a5c107f10..26bd7888267d866110dc8c8d317aee59ac908f07 100644 (file)
@@ -82,4 +82,3 @@ main (void)
 
   return 0;
 }
-
index a42dce95eed323017130024a891f877be9acdb15..4595b2d05fe5b6037178452877177e93d0e7a119 100644 (file)
@@ -39,7 +39,7 @@ if { [is_remote target] } {
 runto_main
 
 gdb_test "b [gdb_get_line_number "breakpoint here"]" \
-         ".*Breakpoint .*execl.*" "set breakpoint at execl"
+        ".*Breakpoint .*execl.*" "set breakpoint at execl"
 
 gdb_test "continue" ".*breakpoint here.*" "continue to exec"
 
index d65fe83d60683435275041edda8fcfbf173da6b8..71b54a233a7714facff72be3d6057961fff9e3b1 100644 (file)
@@ -116,19 +116,19 @@ proc do_test { cond_bp_target detach_on_fork displaced } {
     set ok 0
 
     with_timeout_factor 10 {
-        set test "inferior 1 exited"
-        gdb_test_multiple "" $test {
+       set test "inferior 1 exited"
+       gdb_test_multiple "" $test {
            -re "Inferior 1 \(\[^\r\n\]+\) exited normally" {
-               set ok 1
-               pass $test
+               set ok 1
+               pass $test
            }
            -re "Inferior $decimal \(\[^\r\n\]+\) exited normally" {
-               incr fork_count
-               if {$fork_count <= 100} {
+               incr fork_count
+               if {$fork_count <= 100} {
                    exp_continue
-               } else {
+               } else {
                    fail "$test (too many forks)"
-               }
+               }
            }
        }
     }
index 396ea296231d60c4e1eaee02ab5524f5aa54eb80..b7e0b3121503aef0099d99db8e66ad0975bc95a1 100644 (file)
@@ -53,5 +53,5 @@ gdb_gcore_cmd "$corefile" "save a corefile"
 # Do not run "info threads" before "gcore" as it could workaround the bug
 # by discarding non-current exited threads.
 gdb_test "info threads" \
-         {The current thread <Thread ID 1> has terminated\.  See `help thread'\.} \
+        {The current thread <Thread ID 1> has terminated\.  See `help thread'\.} \
         "exited thread is current due to non-stop"
index 4b9a1543e8d99381128c707404c13f8f2e15bcfc..f1e1a364e7c08232bd2e9d3d5be7bf4874e13253 100644 (file)
@@ -36,7 +36,7 @@ if {[istarget "*-*-linux"]} {
 set opts [list debug]
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${objfile}" object $opts] != ""
     || ([gdb_compile_pthreads "${objfile}" "${binfile}" executable [concat $opts {ldflags=-Wl,-z,norelro}] ] != ""
-        && [gdb_compile_pthreads "${objfile}" "${binfile}" executable $opts] != "") } {
+       && [gdb_compile_pthreads "${objfile}" "${binfile}" executable $opts] != "") } {
     return -1
 }
 
index 2b98964c7effdfee004f9dabf8d12ab0e6588f6b..a3918749273a3daea4c48612cc73a49e2aabe23e 100644 (file)
@@ -124,4 +124,3 @@ main (void)
 
   return 0;
 }
-
index f9c9e87efb0478d967f7598ea22e2254f2f9f3a7..5194bf85a66f8b136fb799768f987563e27664f9 100644 (file)
@@ -51,19 +51,19 @@ if { ![runto_main] } {
 }
 
 gdb_test "break all_threads_running" \
-         "Breakpoint 2 at .*: file .*${srcfile}, line .*" \
-         "breakpoint on all_threads_running"
+        "Breakpoint 2 at .*: file .*${srcfile}, line .*" \
+        "breakpoint on all_threads_running"
 
 gdb_test "break hand_call" \
-         "Breakpoint 3 at .*: file .*${srcfile}, line .*" \
-         "breakpoint on hand_call"
+        "Breakpoint 3 at .*: file .*${srcfile}, line .*" \
+        "breakpoint on hand_call"
 
 # Run the program and make sure GDB reports that we stopped after
 # hitting breakpoint 2 in all_threads_running().
 
 gdb_test "continue" \
-         ".*Breakpoint 2, all_threads_running ().*" \
-         "run to all_threads_running"
+        ".*Breakpoint 2, all_threads_running ().*" \
+        "run to all_threads_running"
 
 # Before we start making hand function calls, turn on scheduler locking.
 
index e3abea3810ed7dca2a03c26715eaba12b8440c36..c482224b4f4583cf9e1ff179b225fea48b978c80 100644 (file)
@@ -77,4 +77,3 @@ main ()
 
   return 0;
 }
-
index fb6d140efbfa4c6ef33f53c8d266988ecfe727b3..b1d8cda65c0b5debffe7f1d596731eb5c7622f94 100644 (file)
@@ -146,4 +146,3 @@ main (void)
 
   return 0;
 }
-
index 15c48b175e529c358ac12bf1332177c2ad88f96d..f18f30241ea1463cc6ca4e22a608a6cf5b595490 100644 (file)
@@ -35,15 +35,15 @@ if { ![runto_main] } {
 }
 
 gdb_test "break all_threads_running" \
-         "Breakpoint 2 at .*: file .*${srcfile}, line .*" \
-         "breakpoint on all_threads_running"
+        "Breakpoint 2 at .*: file .*${srcfile}, line .*" \
+        "breakpoint on all_threads_running"
 
 # Run the program and make sure GDB reports that we stopped after
 # hitting breakpoint 2 in all_threads_running().
 
 gdb_test "continue" \
-         ".*Breakpoint 2, all_threads_running ().*" \
-         "run to all_threads_running"
+        ".*Breakpoint 2, all_threads_running ().*" \
+        "run to all_threads_running"
 
 # NOTE: Don't turn on scheduler-locking here.
 # We want the main thread (hand_call_with_signal) and
index 635ffc83a80f43d1d6c23600c381a52b4dad7ca4..91cd04ff12d9e30645befd0c4b24a4b7f4bc39b8 100644 (file)
@@ -71,16 +71,16 @@ gdb_test "" "" "run program to completion"
 send_gdb "quit\n"
 gdb_expect {
     -re "Quit anyway\\? \\(y or n\\) $" {
-        send_gdb "y\n"
-        exp_continue
+       send_gdb "y\n"
+       exp_continue
     }
     eof {
-        pass "GDB exits after multi-threaded program exits messily"
+       pass "GDB exits after multi-threaded program exits messily"
     }
     -re "Cannot find thread ${decimal}: generic error\[\r\n\]*$gdb_prompt $" {
-        kfail "gdb/568" "GDB exits after multi-threaded program exits messily"
+       kfail "gdb/568" "GDB exits after multi-threaded program exits messily"
     }
     timeout {
-        fail "GDB exits after multi-threaded program exits messily (timeout)"
+       fail "GDB exits after multi-threaded program exits messily (timeout)"
     }
 }
index 0a09897f22b5876d8678a101f8da5e478fa74bcb..135475b5201c858f9f9f7e0b1ae8564e3e5d8bdd 100644 (file)
@@ -176,10 +176,9 @@ gdb_test_multiple "quit" "GDB exits after stopping multithreaded program" {
        exp_continue
     }
     eof {
-        pass "GDB exits after stopping multithreaded program"
+       pass "GDB exits after stopping multithreaded program"
     }
     timeout {
-        fail "GDB exits after stopping multithreaded program (timeout)"
+       fail "GDB exits after stopping multithreaded program (timeout)"
     }
 }
-
index 788a7e8c1723de3120f0f4184432d67c1ab521e6..ade68263171532147fdaf7dd3b1d762d118652a9 100644 (file)
@@ -49,7 +49,7 @@ proc get_value {var test} {
        -re ".*= ($decimal).*\r\n$gdb_prompt $" {
            set value $expect_out(1,string)
            pass "$test"
-        }
+       }
     }
     return ${value}
 }
index 626ca162297d873704a3c395d2e59ab8542fb717..75a2e65f70c5ff8b3c909005616a7d99653901fb 100644 (file)
@@ -210,4 +210,3 @@ main (int argc, char **argv)
 
   return 0;
 }
-
index 3bd091ce5449f7e613ce0a5e7f481c353b99eb92..047125e259d78de8a193cce885f20bf8e3b492f7 100644 (file)
@@ -35,7 +35,7 @@ int main() {
       {
        args[i] = 1;
        res = pthread_create(&threads[i - 1],
-                            NULL,
+                            NULL,
                             thread_function,
                             (void *) i);
       }
index 341ee0aa35ab63a0a03f454a245703bf32624d45..4bc94e6f5425d3ca0bd35b42eed07698a67b57f6 100644 (file)
@@ -55,4 +55,3 @@ void *thread_function(void *arg) {
     printf("Bye from %d\n", my_number);
     pthread_exit(NULL);
 }
-
index e1e513ecfa67dd904a028f99dd7c5aec1842d368..a7f84a05f97b8dca77f8dea46ca197d9ff14ece8 100644 (file)
@@ -70,4 +70,3 @@ main (void)
 
   return 0;
 }
-
index e11b9043a2e6fd0c3a9dfcd16c8290a8f6b50c2d..c5d425fcd58dc26024d6d8c148de7dada4709605 100644 (file)
@@ -30,11 +30,11 @@ runto_main
 
 gdb_test "break break_me" \
     "Breakpoint 2 at .*: file .*${srcfile}, line .*" \
-         "breakpoint on break_me"
+        "breakpoint on break_me"
 
 gdb_test "continue" \
-         ".*Breakpoint 2, break_me ().*" \
-         "run to break_me"
+        ".*Breakpoint 2, break_me ().*" \
+        "run to break_me"
 
 #
 # Backtrace all threads, find the one running noreturn, and
@@ -61,4 +61,3 @@ set btb "\[^\r\n\]+\[\r\n\]+\#${decimal}\[ \t\]+${hex} (\\\[PAC\\\] )?in "
 gdb_test "thread apply all backtrace" \
     "pthread_cond_wait${btb}cond_wait${btb}noreturn${btb}forever_pthread.*" \
     "backtrace in blocked thread"
-
index 2a25558d5bf41b45353e9af06f10310d6d149adc..1c0330dddbce07fa4ee3c810fe36bc3dce5f2b9c 100644 (file)
@@ -38,7 +38,7 @@ int main() {
       {
        args[i] = 1;
        res = pthread_create(&threads[i - 1],
-                            NULL,
+                            NULL,
                             thread_function,
                             (void *) i);
       }
@@ -85,4 +85,3 @@ void *thread_function(void *arg) {
 
     pthread_exit(NULL);
 }
-
index b7a110d5799926addcad5e338a109bb14bb7e81c..ae7fed0cb631dfb90c7f3bceb64e30a50ba06b7b 100644 (file)
@@ -42,7 +42,7 @@ proc get_value {var test} {
        -re ".*= ($decimal).*\r\n$gdb_prompt $" {
            set value $expect_out(1,string)
            pass "$test"
-        }
+       }
     }
     return ${value}
 }
index 44cc6865ae0c937a0d9df9b265d8463bc1bd72d0..42be57c789133f2db98873f330817477244d9fa4 100644 (file)
@@ -91,7 +91,7 @@ gdb_test_multiple "quit" "$test" {
        exp_continue
     }
     eof {
-        pass "$test"
+       pass "$test"
     }
 }
 clean_restart ${::testfile}
index 1f67a450a82f7b645584e08bcc455d851093856a..25884b4e38e30da3d1b9d783ff357045030fed3c 100644 (file)
@@ -36,4 +36,3 @@ runto_main
 gdb_breakpoint thread_func
 gdb_continue_to_breakpoint "continue to thread_func"
 gdb_test "next" ".*foo \\(\\);"
-
index dc74714d45e8af9937b621c4a7a3ad75e8f32857..e290ddfff1129a8d52e1d4ae81818daf39f08415 100644 (file)
@@ -35,15 +35,15 @@ if { ![runto_main] } {
 }
 
 gdb_test "break all_threads_running" \
-         "Breakpoint 2 at .*: file .*${srcfile}, line .*" \
-         "breakpoint on all_threads_running"
+        "Breakpoint 2 at .*: file .*${srcfile}, line .*" \
+        "breakpoint on all_threads_running"
 
 # Run the program and make sure GDB reports that we stopped after
 # hitting breakpoint 2 in all_threads_running().
 
 gdb_test "continue" \
-         ".*Breakpoint 2, all_threads_running ().*" \
-         "run to all_threads_running"
+        ".*Breakpoint 2, all_threads_running ().*" \
+        "run to all_threads_running"
 
 # NOTE: Don't turn on scheduler-locking here.
 # We want the main thread (hand_call_with_signal) and
index 2863f0a5de4a0037218dfc111087c9c4ccf6a538..bc8584344bcb78e6a904ff0500fccf157d4b7883 100644 (file)
@@ -37,7 +37,7 @@ tf (void *arg)
     puts (number);
 
     while (unslept > 0)
-        unslept = sleep(unslept);
+       unslept = sleep(unslept);
 
     sprintf(number, "tf(%ld): end", (long)arg);
     puts (number);
@@ -53,10 +53,10 @@ int main (int argc, char *argv[])
     for (n = 0; n < N; ++n)
     if (pthread_create (&th[n], NULL, tf, (void *) (long int) n) != 0)
     {
-        while (unslept > 0)
-           unslept = sleep(2);
-        puts ("create failed");
-        exit (1);
+       while (unslept > 0)
+          unslept = sleep(2);
+       puts ("create failed");
+       exit (1);
     }
 
     puts("after create");
@@ -64,8 +64,8 @@ int main (int argc, char *argv[])
     for (n = 0; n < N; ++n)
     if (pthread_join (th[n], NULL) != 0)
     {
-        puts ("join failed");
-        exit (1);
+       puts ("join failed");
+       exit (1);
     }
 
     puts("after join");
index 91539e09a040f270cde2b9a802538adc5e864840..355bf07444b701ccb6a8ef27216284d1f7321849 100644 (file)
@@ -56,9 +56,9 @@ proc gdb_test_thread_start {messages_enabled command pattern message} {
     }
     -re "\[\r\n\]*($pattern)\[\r\n\]+$gdb_prompt $" {
       if { $events_seen != $events_expected } {
-        fail "$message (saw $events_seen, expected $events_expected)"
+       fail "$message (saw $events_seen, expected $events_expected)"
       } else {
-        pass "$message"
+       pass "$message"
       }
     }
   }]
@@ -81,9 +81,9 @@ proc gdb_test_thread_exit {messages_enabled command pattern message} {
     }
     -re "\[\r\n\]*($pattern)\[\r\n\]+$gdb_prompt $" {
       if { $events_seen != $events_expected } {
-        fail "$message (saw $events_seen, expected $events_expected)"
+       fail "$message (saw $events_seen, expected $events_expected)"
       } else {
-        pass "$message"
+       pass "$message"
       }
     }
   }]
index 62c7639c4c91862ac56c8b536c7e264ce60d4ecd..8ba7be2a776bca8226ab88b07f4b4bfd40861949 100644 (file)
@@ -42,7 +42,7 @@ int main() {
       {
        args[i] = 1; /* Init value.  */
        res = pthread_create(&threads[i],
-                            NULL,
+                            NULL,
                             thread_function,
                             (void *) i);
       }
@@ -51,14 +51,14 @@ int main() {
     while (!all_started)
       {
        all_started = 1;
-        for (i = 0; i < NUM; i++)
-          {
-            if (args[i] == 1)
+       for (i = 0; i < NUM; i++)
+         {
+           if (args[i] == 1)
              {
-               all_started = 0;
-               break;
+               all_started = 0;
+               break;
              }
-          }
+         }
       }
 
     args[i] = 1;
@@ -75,4 +75,3 @@ void *thread_function(void *arg) {
     (*myp) ++;  /* Increment so parent knows child started.  */
     pthread_barrier_wait(&mybarrier);
 }
-
index de264b66276ab7d1ec4ad92358c7aae9fd3473cc..d19740ac4ddb8a41408770c377def9dc44595747 100644 (file)
@@ -44,7 +44,7 @@ gdb_test_multiple "define backthread" "defining macro" {
   -re "Type commands for definition of \"backthread\".\r\nEnd with a line saying just \"end\".\r\n>$" {
     gdb_test_multiple "bt\np/x 20\nend" "macro details" {
       -re "$gdb_prompt $" {
-        pass "macro details"
+       pass "macro details"
       }
     }
     pass "defining macro"
index 56675e9cd45e3d3fa664bde4af0c859210a44f92..3cce5963c15b5f31d8a910291bf2a9177a78186d 100644 (file)
@@ -7,4 +7,3 @@ int main ()
   result ++;
   return 0; /* break here to check result */
 }
-
index 02b13083ab9331aa44ab03cd3a2dee6d171bffb7..e359191f4e5eb406a44c1fd54f8f68984260b711 100644 (file)
@@ -8,4 +8,3 @@ int foo ()
   pthread_testcancel();
   return i_tls;
 }
-
index 66dd52fe5142ca13c14ef964bc8a4e3fda1c8ce3..afd41ebe1806907ec032e873d778798b4ba9e398 100644 (file)
@@ -51,7 +51,7 @@ gdb_test "break $line_number" \
        "break at and of main"
 gdb_test "continue" \
        "main .* at .*:.*return 0.*break here to check result.*" \
-        "continue to break"
+       "continue to break"
 # This is more of a gcc/glibc test, really.
 #
 gdb_test "print result" "3"
index a0aa5f86bf236353d92b1c4f1c9e75592aa272fa..36ddd7f3b4b69aa463ddf8005720652041a520e5 100644 (file)
@@ -50,25 +50,25 @@ gdb_test "break $line_number" \
        "break in thread function"
 gdb_test "continue" \
        "tls_ptr .* at .*:.*break here to check result.*" \
-        "continue to break in tls_ptr called by main"
+       "continue to break in tls_ptr called by main"
 gdb_test "print so_extern == &so_extern" \
-         " = 1" \
-        "check so_extern address in main"
+        " = 1" \
+       "check so_extern address in main"
 gdb_test "continue" \
        "tls_ptr .* at .*:.*break here to check result.*" \
-        "continue to break in a thread"
+       "continue to break in a thread"
 gdb_test "print so_extern == &so_extern" \
-         " = 1" \
-        "check so_extern address"
+        " = 1" \
+       "check so_extern address"
 gdb_test "continue" \
        "tls_ptr .* at .*:.*break here to check result.*" \
-        "continue to break in the other thread"
+       "continue to break in the other thread"
 gdb_test "print so_extern == &so_extern" \
-         " = 1" \
-        "check so_extern address in other thread"
+        " = 1" \
+       "check so_extern address in other thread"
 gdb_test "continue" \
        "tls_ptr .* at .*:.*break here to check result.*" \
-        "continue to break in tls_ptr called at end of main"
+       "continue to break in tls_ptr called at end of main"
 gdb_test "print so_extern == &so_extern" \
-         " = 1" \
-        "check so_extern address at end of main"
+        " = 1" \
+       "check so_extern address at end of main"
index 9829d7a2c149f61d6eda95a1ae503f87e8107aac..898f1646a587ba3d8c516d482bf28f273c1601ee 100644 (file)
@@ -46,4 +46,3 @@ main (void)
 
    return 0;
 }
-
index ee333cb16c35f18af43ee46089bf5cfd722ad623..473f5d32b0b53d0c0789aa3f8f6085ea0335c06e 100644 (file)
@@ -81,7 +81,7 @@ void *spin( void *vp )
     a_thread_local = 0;
     K::another_thread_local = me;
     for( i = 0; i <= me; i++ ) {
-        a_thread_local += i;
+       a_thread_local += i;
     }
 
     another_thread_local_val[me] = K::another_thread_local;
@@ -89,9 +89,9 @@ void *spin( void *vp )
 
     if (sem_post (&tell_main) == -1)
      {
-        fprintf (stderr, "th %d post on sem tell_main failed\n", me);
-        print_error ();
-        return NULL;
+       fprintf (stderr, "th %d post on sem tell_main failed\n", me);
+       print_error ();
+       return NULL;
      }
 #ifdef START_DEBUG
     fprintf (stderr, "th %d post on tell main\n", me);
@@ -100,24 +100,24 @@ void *spin( void *vp )
     while (1)
       {
 #ifdef START_DEBUG
-        fprintf (stderr, "th %d start wait on tell_thread\n", me);
+       fprintf (stderr, "th %d start wait on tell_thread\n", me);
 #endif
-        if (sem_wait (&tell_thread) == 0)
-          break;
+       if (sem_wait (&tell_thread) == 0)
+         break;
 
-        if (errno == EINTR)
-          {
+       if (errno == EINTR)
+         {
 #ifdef START_DEBUG
-            fprintf (stderr, "th %d wait tell_thread got EINTR, rewaiting\n", me);
+           fprintf (stderr, "th %d wait tell_thread got EINTR, rewaiting\n", me);
 #endif
-            continue;
-          }
-        else
-          {
-            fprintf (stderr, "th %d wait on sem tell_thread failed\n", me);
-            print_error ();
-            return NULL;
-         }
+           continue;
+         }
+       else
+         {
+           fprintf (stderr, "th %d wait on sem tell_thread failed\n", me);
+           print_error ();
+           return NULL;
+        }
       }
 
 #ifdef START_DEBUG
@@ -142,8 +142,8 @@ do_pass()
 
     for( i = 0; i < N_THREADS; i++)
     {
-        thread_local_val[i] = 0;
-        another_thread_local_val[i] = 0;
+       thread_local_val[i] = 0;
+       another_thread_local_val[i] = 0;
     }
 
     if (sem_init (&tell_main, 0, 0) == -1)
@@ -161,36 +161,36 @@ do_pass()
     /* Start N_THREADS threads, then join them so that they are terminated.  */
     for( i = 0; i < N_THREADS; i++ )
      {
-        err = pthread_create( &t[i], NULL, spin, (void *) (long) i );
-        if( err != 0 ) {
-            fprintf(stderr, "Error in thread %d create\n", i );
-        }
+       err = pthread_create( &t[i], NULL, spin, (void *) (long) i );
+       if( err != 0 ) {
+           fprintf(stderr, "Error in thread %d create\n", i );
+       }
      }
 
     for( i = 0; i < N_THREADS; i++ )
       {
-        while (1)
-          {
+       while (1)
+         {
 #ifdef START_DEBUG
-            fprintf (stderr, "main %d start wait on tell_main\n", i);
+           fprintf (stderr, "main %d start wait on tell_main\n", i);
 #endif
-            if (sem_wait (&tell_main) == 0)
-              break;
+           if (sem_wait (&tell_main) == 0)
+             break;
 
-            if (errno == EINTR)
-              {
+           if (errno == EINTR)
+             {
 #ifdef START_DEBUG
-                fprintf (stderr, "main %d wait tell_main got EINTR, rewaiting\n", i);
+               fprintf (stderr, "main %d wait tell_main got EINTR, rewaiting\n", i);
 #endif
-                continue;
-              }
-            else
-              {
-                fprintf (stderr, "main %d wait on sem tell_main failed\n", i);
-                print_error ();
-                return;
-              }
-            }
+               continue;
+             }
+           else
+             {
+               fprintf (stderr, "main %d wait on sem tell_main failed\n", i);
+               print_error ();
+               return;
+             }
+           }
        }
 
 #ifdef START_DEBUG
@@ -202,11 +202,11 @@ do_pass()
     for( i = 0; i < N_THREADS; i++ )
      {
        if (sem_post (&tell_thread) == -1)
-        {
-           fprintf (stderr, "main %d post on sem tell_thread failed\n", i);
-           print_error ();
-           return;
-        }
+       {
+          fprintf (stderr, "main %d post on sem tell_thread failed\n", i);
+          print_error ();
+          return;
+       }
 #ifdef START_DEBUG
       fprintf (stderr, "main %d post on tell_thread\n", i);
 #endif
@@ -214,11 +214,11 @@ do_pass()
 
     for( i = 0; i < N_THREADS; i++ )
      {
-        err = pthread_join(t[i], NULL );
-        if( err != 0 )
-         {
-           fprintf (stderr, "error in thread %d join\n", i );
-         }
+       err = pthread_join(t[i], NULL );
+       if( err != 0 )
+        {
+          fprintf (stderr, "error in thread %d join\n", i );
+        }
     }
 
     i = 10;  /* Null line for setting bpts on. */
index 3dbc802d82d7801a01905ada8b09a57574770b8c..587cae603fc529feb1c8ac964f3fec60e2eb1e55 100644 (file)
@@ -33,8 +33,8 @@ proc compute_expected_value {value} {
     set expected_value 0
     set i 0
     while { $i <= $value} {
-        incr expected_value $i
-        incr i
+       incr expected_value $i
+       incr i
     }
     return $expected_value
 }
@@ -51,7 +51,7 @@ proc get_me_variable {tnum} {
        -re ".*= ($decimal).*\r\n$gdb_prompt $" {
            set value_of_me $expect_out(1,string)
            pass "$tnum thread print me"
-        }
+       }
        -re "$gdb_prompt $" {
            fail "$tnum thread print me"
        }
@@ -92,7 +92,7 @@ proc check_thread_local {number} {
            "${number} info address a_thread_local"
 
     gdb_test "info address K::another_thread_local" \
-           ".*another_thread_local.*a thread-local variable at offset.*" \
+           ".*another_thread_local.*a thread-local variable at offset.*" \
            "${number} info address another_thread_local"
 }
 
@@ -137,7 +137,7 @@ proc check_thread_stack {number spin_threads spin_threads_level} {
                fail "backtrace of thread number $number in spin"
            } else {
                pass "backtrace of thread number $number in spin"
-                set level $expect_out(1,string)
+               set level $expect_out(1,string)
                set tarrl($number) $level
                set tarr($number) 1
            }
@@ -172,37 +172,37 @@ if {![runto_main]} {
 # test the thread local's value.
 #
 gdb_test "b [gdb_get_line_number "here we know tls value"]" \
-         ".*Breakpoint 2.*tls.*"   "set breakpoint at all threads"
+        ".*Breakpoint 2.*tls.*"   "set breakpoint at all threads"
 
 # Set a bp at a point where we know all threads are alive.
 #
 gdb_test "b [gdb_get_line_number "still alive"]" \
-         ".*Breakpoint 3.*tls.*" "set breakpoint at synch point"
+        ".*Breakpoint 3.*tls.*" "set breakpoint at synch point"
 
 # Set a bp at the end to see if all threads are finished.
 #
 gdb_test "b [gdb_get_line_number "before exit"]" \
-         ".*Breakpoint 4.*tls.*" "set breakpoint at exit"
+        ".*Breakpoint 4.*tls.*" "set breakpoint at exit"
 
 send_gdb "continue\n"
 gdb_expect {
     -re ".* received signal SIGSEGV.*a_thread_local = 0;.*$gdb_prompt $" {
-        # This is the first symptom if the gcc and binutils versions
-        # in use support TLS, but the system glibc does not.
-        unsupported "continue to first thread: system does not support TLS"
-        return -1
+       # This is the first symptom if the gcc and binutils versions
+       # in use support TLS, but the system glibc does not.
+       unsupported "continue to first thread: system does not support TLS"
+       return -1
     }
     -re ".*$inferior_exited_re normally.*$gdb_prompt $" {
-        fail "continue to first thread: program runaway"
+       fail "continue to first thread: program runaway"
     }
     -re ".*Pass 0 done.*Pass 1 done.*$gdb_prompt $" {
-        fail "continue to first thread: program runaway 2"
+       fail "continue to first thread: program runaway 2"
     }
     -re ".*Breakpoint 2.*tls value.*$gdb_prompt $" {
-        pass "continue to first thread: get to thread"
+       pass "continue to first thread: get to thread"
     }
     -re ".*$gdb_prompt $" {
-        fail "continue to first thread: no progress?"
+       fail "continue to first thread: no progress?"
     }
     timeout { fail "continue to first thread (timeout)" }
 }
@@ -232,7 +232,7 @@ gdb_expect {
     -re "^info thread\[ \t\r\n\]+ *Id .*Frame\[ \t\r\n\]+.*(\[0-9\]+) *${tdlabel_re}\[^\r\n\]+\r\n$gdb_prompt $" {
           set no_of_threads $expect_out(1,string)
           pass "get number of threads"
-        }
+       }
        -re "$gdb_prompt $" {
            fail "get number of threads"
        }
@@ -281,16 +281,16 @@ gdb_test "continue" ".*Breakpoint 4.*before exit.*" "threads exited"
 send_gdb "info thread\n"
 gdb_expect {
     -re ".* 1 *${tdlabel_re}.*2 *${tdlabel_re}.*$gdb_prompt $" {
-        fail "too many threads left at end"
+       fail "too many threads left at end"
     }
     -re ".*\\\* 1 *${tdlabel_re}.*main.*$gdb_prompt $" {
-        pass "expect only base thread at end"
+       pass "expect only base thread at end"
     }
     -re ".*No stack.*$gdb_prompt $" {
-        fail "runaway at end"
+       fail "runaway at end"
     }
     -re ".*$gdb_prompt $" {
-        fail "mess at end"
+       fail "mess at end"
     }
     timeout { fail "at end (timeout)" }
 }
index 067986abb61b51fd13fca1c66c19c438caa485a4..64a6a3f2457efd3b276469705363a3c7073ea4cf 100644 (file)
@@ -91,7 +91,7 @@ foreach reorder {0 1} { with_test_prefix "reorder$reorder" {
 
     set prompt "$gdb_prompt \\\[infrun\\\] fetch_inferior_event: exit\r\n$"
     gdb_test_multiple "continue" "continue to breakpoint: break-at-exit" -prompt $prompt {
-        -re ".*break-at-exit.*$prompt$" {
+       -re ".*break-at-exit.*$prompt$" {
            pass $gdb_test_name
        }
     }
index d9e18891885b8360a5972b6335505542f6058d8b..9644a5affef60277d699f68884b6d9d6f729e802 100644 (file)
@@ -76,4 +76,3 @@ thread_function (void *arg)
 
     pthread_exit (NULL);
 }
-
index a31c1a74f0a40fde7e4e7ef87141f07b868e6e91..47a69715d50026438ad98afa1da4772028264005 100644 (file)
@@ -44,8 +44,8 @@ if {![runto_main]} {
 }
 
 gdb_test "break thread_started" \
-         "Breakpoint 2 at .*: file .*${srcfile}, line .*" \
-         "breakpoint on thread_started"
+        "Breakpoint 2 at .*: file .*${srcfile}, line .*" \
+        "breakpoint on thread_started"
 
 # Run the program until all threads have hit thread_started.
 # We use this as the vehicle to determine when gdb is aware
index d37d3e0358727b1be7591497ae4ba57adab2a5e6..a7811231c690e95fb42a6aa31eb6145724a43f40 100644 (file)
@@ -122,8 +122,8 @@ thread_function (void *arg)
        {
          /* For debugging.  */
          printf ("Thread %ld changing watch_thread[%d] data"
-                 " from %d -> %d\n", thread_number, j,
-                 watched_data[j], watched_data[j] + 1);
+                 " from %d -> %d\n", thread_number, j,
+                 watched_data[j], watched_data[j] + 1);
          /* Increment the watched data field.  */
          watched_data[j]++;
        }
index 19baeaff5b696075f9a96e425073e7c848ec5079..d5f51bf045aba3ea6265d835992672445fa5d5e2 100644 (file)
@@ -152,4 +152,3 @@ main (int argc, char *argv[], char **envp)
   end ();
   return 0;
 }
-
index cc40853dd8718845112c0643c1eb1c30526960ee..3867a3917d9a3a9042873ea98d65a3207465cdd6 100644 (file)
@@ -128,4 +128,3 @@ gdb_test "maint agent-eval gdb_long_test >= gdb_short_test" ""
 gdb_test "maint agent-eval &gdb_long_test == &gdb_short_test" ".*equal.*end.*"
 
 gdb_test "maint agent-eval &gdb_long_test < &gdb_short_test" ""
-
index 1b6c97c69285029e23a24a9365a41517f76f6bee..8c39745070ebab1096b4dccfd0518e9360e8b8f7 100644 (file)
@@ -62,11 +62,11 @@ struct global_pieces {
  */
 
 signed char  c0,  c1,  c2,  c3,  c4,  c5,  c6,  c7,
-             c8,  c9,  c10, c11, c12, c13, c14, c15, cminus;
+            c8,  c9,  c10, c11, c12, c13, c14, c15, cminus;
 signed short s0,  s1,  s2,  s3,  s4,  s5,  s6,  s7,
-             s8,  s9,  s10, s11, s12, s13, s14, s15, sminus;
+            s8,  s9,  s10, s11, s12, s13, s14, s15, sminus;
 signed long  l0,  l1,  l2,  l3,  l4,  l5,  l6,  l7,
-             l8,  l9,  l10, l11, l12, l13, l14, l15, lminus;
+            l8,  l9,  l10, l11, l12, l13, l14, l15, lminus;
 
 
 /*
@@ -102,7 +102,7 @@ int argstruct_test_func (argstruct)
      test_struct argstruct;
 {
   return (int) argstruct.memberc + argstruct.memberi +
-                 argstruct.memberf + argstruct.memberd;
+                argstruct.memberf + argstruct.memberd;
 }
 
 /* Test collecting array args. */
index 3192bdde19b138dbca013e0fba1378f2215691a9..bf0373880cb9dc0a9f33c4eefddb1bc17789c7cf 100644 (file)
@@ -114,75 +114,75 @@ proc test_fast_tracepoints {} {
     gdb_test "print gdb_agent_gdb_trampoline_buffer_error" ".*" ""
 
     gdb_test "ftrace set_point" "Fast tracepoint .*" \
-        "fast tracepoint at a long insn"
+       "fast tracepoint at a long insn"
 
     gdb_trace_setactions "collect at set_point: define actions" \
-        "" \
-        "collect globvar, anarg" "^$"
+       "" \
+       "collect globvar, anarg" "^$"
 
     # Make a test of shorter fast tracepoints, 32-bit x86 only
 
     if { [istarget "i?86-*-*"] } {
 
-        # A Linux target needs to be able to allocate trampolines in the
-        # 16-bit range, check mmap_min_addr so we can warn testers.
-        if { [istarget "i?86-*-linux*"] } {
-
-            set minaddr [exec sh -c "cat /proc/sys/vm/mmap_min_addr"]
-
-            if {$minaddr > 64512} {
-                warning "mmap_min_addr > 64512, fast tracepoint will fail"
-                warning "do \"sudo sysctl -w vm.mmap_min_addr=32768\" to adjust"
-            }
-        }
-
-        gdb_test_multiple "ftrace four_byter" "set 4-byte fast tracepoint" {
-            -re "May not have a fast tracepoint at .*\r\n$gdb_prompt $" {
-                pass "4-byte fast tracepoint could not be set"
-            }
-            -re "Fast tracepoint .*\r\n$gdb_prompt $" {
-                pass "4-byte fast tracepoint is set"
-                set fourgood 1
-            }
-        }
-
-        if { $fourgood } {
-
-            gdb_trace_setactions "collect at four_byter: define actions" \
-            "" \
-            "collect globvar, anarg" "^$"
-        }
+       # A Linux target needs to be able to allocate trampolines in the
+       # 16-bit range, check mmap_min_addr so we can warn testers.
+       if { [istarget "i?86-*-linux*"] } {
+
+           set minaddr [exec sh -c "cat /proc/sys/vm/mmap_min_addr"]
+
+           if {$minaddr > 64512} {
+               warning "mmap_min_addr > 64512, fast tracepoint will fail"
+               warning "do \"sudo sysctl -w vm.mmap_min_addr=32768\" to adjust"
+           }
+       }
+
+       gdb_test_multiple "ftrace four_byter" "set 4-byte fast tracepoint" {
+           -re "May not have a fast tracepoint at .*\r\n$gdb_prompt $" {
+               pass "4-byte fast tracepoint could not be set"
+           }
+           -re "Fast tracepoint .*\r\n$gdb_prompt $" {
+               pass "4-byte fast tracepoint is set"
+               set fourgood 1
+           }
+       }
+
+       if { $fourgood } {
+
+           gdb_trace_setactions "collect at four_byter: define actions" \
+           "" \
+           "collect globvar, anarg" "^$"
+       }
     }
 
     run_trace_experiment
 
     gdb_test "tfind pc *set_point" "Found trace frame .*" \
-        "tfind set_point frame, first time"
+       "tfind set_point frame, first time"
 
     gdb_test "print globvar" " = 1"
 
     gdb_test "tfind pc *set_point" "Found trace frame .*" \
-        "tfind set_point frame, second time"
+       "tfind set_point frame, second time"
 
     setup_kfail "gdb/13808" "x86_64-*-linux*"
     gdb_test "print anarg" " = 200"
 
     gdb_test "tfind start" "Found trace frame .*" \
-        "reset tfinding"
+       "reset tfinding"
 
     if { $fourgood } {
 
-        gdb_test "tfind pc *four_byter" "Found trace frame .*" \
-            "tfind four_byter frame, first time"
+       gdb_test "tfind pc *four_byter" "Found trace frame .*" \
+           "tfind four_byter frame, first time"
 
-        gdb_test "print anarg" " = 101" \
-            "look at collected local, first time"
+       gdb_test "print anarg" " = 101" \
+           "look at collected local, first time"
 
-        gdb_test "tfind pc *four_byter" "Found trace frame .*" \
-            "tfind four_byter frame, second time"
+       gdb_test "tfind pc *four_byter" "Found trace frame .*" \
+           "tfind four_byter frame, second time"
 
-        gdb_test "print anarg" " = 201" \
-            "look at collected local, second time"
+       gdb_test "print anarg" " = 201" \
+           "look at collected local, second time"
 
     }
 
@@ -191,15 +191,15 @@ proc test_fast_tracepoints {} {
     # can no longer be downloaded.
     set test "fast tracepoint could not be downloaded with the feature disabled"
     if {[gdb_protocol_is_remote]} {
-        gdb_test "set remote fast-tracepoints-packet off"
+       gdb_test "set remote fast-tracepoints-packet off"
 
-        gdb_test_multiple "tstart" $test {
-            -re "warning: Target does not support fast tracepoints, downloading .* as regular tracepoint.*\r\n$gdb_prompt $" {
-                pass $test
-            }
-        }
+       gdb_test_multiple "tstart" $test {
+           -re "warning: Target does not support fast tracepoints, downloading .* as regular tracepoint.*\r\n$gdb_prompt $" {
+               pass $test
+           }
+       }
     } else {
-        unsupported $test
+       unsupported $test
     }
 }
 
index 52a34b9cf322babac512e5b3ce61b6ae85effb85..6af64ded7370f408403fb4256e77e925f1145e3b 100644 (file)
@@ -64,4 +64,3 @@ gdb_test "continue" \
     "run trace experiment"
 
 gdb_test_no_output "tstop" "confirm: survived the long packet send"
-
index 2c7698a6eebca9ff0498b7253996edba39391df3..2f8de40434a111747d59840caba6717b10ddf213 100644 (file)
@@ -132,4 +132,3 @@ gdb_test "tfind" "failed to find.*" "4.5: dynamic passcount test"
 
 # Finished!
 gdb_test "tfind none" ".*"
-
index fdf321bbc5bd422ce7991b506f7486237a48f624..5a266f05a40734e3545941ce663b0c16f0b5ea89 100644 (file)
@@ -290,7 +290,7 @@ proc pending_tracepoint_installed_during_trace { trace_type } \
            }
        }
        -re "Continuing.\r\n(Reading .* from remote target...\r\n)?\r\n(Thread .* hit )?Breakpoint.*marker.*at.*$srcfile.*$gdb_prompt $" {
-           pass $test
+          pass $test
        }
     }
 
@@ -342,10 +342,10 @@ proc pending_tracepoint_disconnect_during_trace { trace_type } \
     set test "disconnect with pending tracepoint"
     gdb_test_multiple "disconnect" $test {
        -re "warning: Pending tracepoints will not be resolved while GDB is disconnected.*Trace is running but will stop on detach; detach anyway\\? \\(y or n\\) $" {
-           pass $test
+          pass $test
 
-           set test "disconnected"
-           gdb_test_multiple "y" $test {
+          set test "disconnected"
+          gdb_test_multiple "y" $test {
               -re "$gdb_prompt $" {
                   pass "$test"
               }
@@ -449,16 +449,16 @@ proc pending_tracepoint_with_action_resolved { trace_type } \
     set test "continue to marker 2"
     gdb_test_multiple "continue" $test {
            -re "Target returns error code .* too far .*$gdb_prompt $" {
-            if {[string equal $trace_type "ftrace"]} {
+           if {[string equal $trace_type "ftrace"]} {
                # Expected if the target was unable to install the
                # fast tracepoint (e.g., jump pad too far from
                # tracepoint).
                pass "$test (too far)"
                # Skip the rest of the tests.
                return
-            } else {
+           } else {
                fail $test
-            }
+           }
        }
        -re "Continuing.\r\n(Reading .* from remote target...\r\n)?\r\n(Thread .* hit )?Breakpoint.*marker.*at.*$srcfile.*$gdb_prompt $" {
            pass "continue to marker 2"
index 76ed462f26e25d899391b7ef94cd21d2f280682b..77b1950107a19281a081ab20478aa2adcab79179 100644 (file)
@@ -290,4 +290,3 @@ main (void)
 
   return 0;
 }
-
index a2a79d848a0574d380a99bf2420a5960fa5b804a..c459fa96904a2befed8de4e6e9dc7349b542513d 100644 (file)
@@ -287,7 +287,7 @@ proc break_trace_same_addr_6 { trace1 enable1 trace2 enable2 } \
     gdb_trace_setactions "set action for tracepoint 1" "" \
        "collect \$$pcreg" "^$"
     gdb_test "${trace2} set_point" "\(Fast t|T\)racepoint \[0-9\] at $hex: file.*" \
-       "${trace2} set_point 2"
+       "${trace2} set_point 2"
     gdb_trace_setactions "set action for tracepoint 2" "" \
        "collect \$$spreg" "^$"
 
index 153439fffe44ba2c9265c6371a0b343b97d4dcb8..819dcc9685bcc228635f5e0e31bc373a212f0891 100644 (file)
@@ -38,8 +38,8 @@ set test "get default buffer size"
 # Save default trace buffer size in 'default_size'.
 gdb_test_multiple "tstatus" $test {
     -re ".*Trace buffer has ($decimal) bytes of ($decimal) bytes free.*$gdb_prompt $" {
-        set default_size $expect_out(2,string)
-        pass $test
+       set default_size $expect_out(2,string)
+       pass $test
     }
 }
 
index e62a539df5b1c47c8dd76d98c9e2344cd0587b9a..592f60298d7c8aaec70c117476aa576755bc3145 100644 (file)
@@ -329,13 +329,13 @@ with_test_prefix "tracing bar" {
 
     gdb_test "tfind 0" "Found trace frame 0, tracepoint .*"
     if { $endian == "little" } {
-        gdb_test "p/d x" "\\\$${decimal} = {a = 0, b = <unavailable>, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, i = 0, j = 0}"
-        gdb_test "p/d y" "\\\$${decimal} = {a = 0, b = 0, c = 0, d = 0, e = <unavailable>, f = 0, g = 0, h = 0, i = 0, j = 0}"
-        gdb_test "p/d z" "\\\$${decimal} = {a = 0, b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, i = <unavailable>, j = 0}"
+       gdb_test "p/d x" "\\\$${decimal} = {a = 0, b = <unavailable>, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, i = 0, j = 0}"
+       gdb_test "p/d y" "\\\$${decimal} = {a = 0, b = 0, c = 0, d = 0, e = <unavailable>, f = 0, g = 0, h = 0, i = 0, j = 0}"
+       gdb_test "p/d z" "\\\$${decimal} = {a = 0, b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, i = <unavailable>, j = 0}"
     } else {
-        gdb_test "p/d x" "\\\$${decimal} = {a = 0, b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, i = <unavailable>, j = 0}"
-        gdb_test "p/d y" "\\\$${decimal} = {a = 0, b = 0, c = 0, d = 0, e = 0, f = <unavailable>, g = 0, h = 0, i = 0, j = 0}"
-        gdb_test "p/d z" "\\\$${decimal} = {a = 0, b = <unavailable>, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, i = 0, j = 0}"
+       gdb_test "p/d x" "\\\$${decimal} = {a = 0, b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, i = <unavailable>, j = 0}"
+       gdb_test "p/d y" "\\\$${decimal} = {a = 0, b = 0, c = 0, d = 0, e = 0, f = <unavailable>, g = 0, h = 0, i = 0, j = 0}"
+       gdb_test "p/d z" "\\\$${decimal} = {a = 0, b = <unavailable>, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, i = 0, j = 0}"
     }
 
     gdb_test "tfind none" "No longer looking at any trace frame.*"
index ccf6cf79239937fc85db99fe7b8b943b613b3c1f..d09c49f9eb5d78717757b69abcc8502c0c1209b6 100644 (file)
@@ -24,4 +24,3 @@
   <reg name="bad_reg2" bitsize="64"  type="bitfield"/>
 </feature>
 </target>
-
index e091721fcc938ab939a8d29467298bd045505ab2..fa9b5b71310fd7cbccdb8326c456e688c154cff2 100644 (file)
@@ -34,10 +34,10 @@ switch -glob -- [istarget] {
     }
     "arm*-*-*" {
        set regdir "arm/"
-        set core-regs {arm-core.xml}
+       set core-regs {arm-core.xml}
     }
     "*m68k-*-*" {
-        set core-regs {m68k-core.xml}
+       set core-regs {m68k-core.xml}
     }
     "mips*-*-*" {
        set core-regs {mips-cpu.xml mips-cp0.xml mips-fpu.xml mips-dsp.xml}
@@ -57,12 +57,12 @@ switch -glob -- [istarget] {
     }
     "sparc-*-*" {
        set regdir "sparc/"
-        set core-regs {sparc32-cpu.xml sparc32-fpu.xml sparc32-cp0.xml}
+       set core-regs {sparc32-cpu.xml sparc32-fpu.xml sparc32-cp0.xml}
     }
     "sparc64-*-*" {
        set architecture "sparc:v9"
        set regdir "sparc/"
-        set core-regs {sparc64-cpu.xml sparc64-fpu.xml sparc64-cp0.xml}
+       set core-regs {sparc64-cpu.xml sparc64-fpu.xml sparc64-cp0.xml}
     }
     "tic6x-*-*" {
        set core-regs {tic6x-core.xml}
@@ -70,12 +70,12 @@ switch -glob -- [istarget] {
     "i?86-*-*" {
        set architecture "i386"
        set regdir "i386/"
-        set core-regs {32bit-core.xml 32bit-sse.xml}
+       set core-regs {32bit-core.xml 32bit-sse.xml}
     }
     "x86_64-*-*" {
        set architecture "i386:x86-64"
        set regdir "i386/"
-        set core-regs {64bit-core.xml 64bit-sse.xml}
+       set core-regs {64bit-core.xml 64bit-sse.xml}
     }
     "riscv64*-*-*" {
        set architecture "riscv:rv64"
index 04aaee1c1d4612b9d1201dd97839511add7568ee..c6d1c463b2bccd2d443466f31e1639f87c14a3be 100644 (file)
@@ -104,7 +104,7 @@ proc gdb_compile_ada_1 {source dest type options} {
     append options " additional_flags=-I$srcdir"
 
     set result [target_compile_ada_from_dir \
-                    $objdir [file tail $source] $dest $type $options]
+                   $objdir [file tail $source] $dest $type $options]
 
     # The Ada build always produces some output, even when the build
     # succeeds. Thus, we can not use the output the same way we do in
@@ -164,14 +164,14 @@ proc find_ada_tool {tool} {
     set result ""
 
     if {![is_remote host]} {
-        set result [lookfor_file $root $tool]
+       set result [lookfor_file $root $tool]
        if { $result != "" && $tool == "gnatlink" } {
            set result "$result --GCC=$root/xgcc -B$root"
        }
     }
 
     if {$result == ""} {
-        set result [transform $tool]
+       set result [transform $tool]
     }
 
     return $result
index 2456ba9b7ce2eb0137cceee82f3bfae33bb8fa69..eec05525a0ca47f59ae421a4a9115a0461b8c820 100644 (file)
@@ -48,26 +48,26 @@ proc dtrace_build_usdt_test_program {} {
     set result [remote_exec host "$dtrace -h -s $dscript_file -o $out_header_file"]
     verbose -log [lindex $result 1]
     if {[lindex $result 0] != 0} {
-        return -1
+       return -1
     }
 
     # 2. Compile testprogram.c.
     set options [list debug quiet \
                     additional_flags=-I[file dirname $out_header_file]]
     if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}.o" object ${options}] != ""} {
-        return -1
+       return -1
     }
 
     # 3. Generate an object file containing a DOF program using dtrace -G.
     set result [remote_exec host "$dtrace -G -s $dscript_file -o ${binfile}-p.o ${binfile}.o"]
     verbose -log [lindex $result 1]
     if {[lindex $result 0] != 0} {
-        return -1
+       return -1
     }
 
     # 4. Link everything together to get the test program.
     if {[gdb_compile "${binfile}.o ${binfile}-p.o" ${binfile} executable \
             {debug quiet}] != ""} {
-        return -1
+       return -1
     }
 }
index ba8197d0bb8e948f8eb1b4e99ead09c6fa3549a1..6e87d8fba9bc097d3cecd7c8e5fb574052d2ee85 100644 (file)
@@ -181,8 +181,8 @@ proc build_executable_and_dwo_files { testname executable options args } {
 
     set ret [$func $objects "${binfile}" executable $options]
     if  { $ret != "" } {
-        untested $testname
-        return -1
+       untested $testname
+       return -1
     }
 
     return 0
index 3064c3e2ad7a802b64bd886c735a5a89ce9815af..ed1d34e2a23d89bfaf8e0fe39f1d73e5c08c6d7b 100644 (file)
@@ -28,14 +28,14 @@ proc gdb_find_gnatmake {} {
     set GM ""
 
     if {![is_remote host]} {
-        set file [lookfor_file $root gnatmake]
-        if { $file != "" } {
-            set GM "$file -I$root/ada/rts --GCC=$root/xgcc --GNATBIND=$root/gnatbind --GNATLINK=$root/gnatlink -cargs -B$root -largs --GCC=$root/xgcc -margs";
-        }
+       set file [lookfor_file $root gnatmake]
+       if { $file != "" } {
+           set GM "$file -I$root/ada/rts --GCC=$root/xgcc --GNATBIND=$root/gnatbind --GNATLINK=$root/gnatlink -cargs -B$root -largs --GCC=$root/xgcc -margs";
+       }
     }
 
     if {$GM == ""} {
-        set GM [transform gnatmake]
+       set GM [transform gnatmake]
     }
 
     return $GM
index a424086007eb25383f80e41bf5fb5acdbae0615a..82bb511bccc992d21e2947a250a211f2630f6002 100644 (file)
@@ -140,7 +140,7 @@ proc load_lib { file } {
 
     foreach varname [info globals] {
        if { ![info exists known_globals($varname)] } {
-           gdb_persistent_global_no_decl $varname
+          gdb_persistent_global_no_decl $varname
        }
     }
 
@@ -1447,9 +1447,9 @@ proc gdb_test_multiple { command message args } {
 
     if {$line_by_line} {
        append code {
-           -re "\r\n\[^\r\n\]*(?=\r\n)" {
-               exp_continue
-           }
+          -re "\r\n\[^\r\n\]*(?=\r\n)" {
+              exp_continue
+          }
        }
     }
 
@@ -1921,14 +1921,14 @@ proc test_print_reject { args } {
            pass "reject $sendthis"
            return 1
        }
-        -re "Unmatched single quote.*$gdb_prompt $" {
-            pass "reject $sendthis"
-            return 1
-        }
-        -re "A character constant must contain at least one character.*$gdb_prompt $" {
-            pass "reject $sendthis"
-            return 1
-        }
+       -re "Unmatched single quote.*$gdb_prompt $" {
+           pass "reject $sendthis"
+           return 1
+       }
+       -re "A character constant must contain at least one character.*$gdb_prompt $" {
+           pass "reject $sendthis"
+           return 1
+       }
        -re "$expectthis.*$gdb_prompt $" {
            pass "reject $sendthis"
            return 1
@@ -2562,49 +2562,49 @@ proc gdb_file_cmd { arg {kill_flag 1} } {
            set gdb_file_cmd_debug_info "nodebug"
            return 0
        }
-        -re "(Reading symbols from.*$gdb_prompt $)" {
-            verbose "\t\tLoaded $arg into $GDB"
+       -re "(Reading symbols from.*$gdb_prompt $)" {
+           verbose "\t\tLoaded $arg into $GDB"
            set gdb_file_cmd_msg $expect_out(1,string)
            set gdb_file_cmd_debug_info "debug"
            return 0
-        }
-        -re "Load new symbol table from \".*\".*y or n. $" {
+       }
+       -re "Load new symbol table from \".*\".*y or n. $" {
            if { $new_symbol_table > 0 } {
                perror [join [list "Couldn't load $basename,"
                              "interactive prompt loop detected."]]
                return -1
            }
-            send_gdb "y\n" answer
+           send_gdb "y\n" answer
            incr new_symbol_table
            set suffix "-- with new symbol table"
            set arg "$arg $suffix"
            set basename "$basename $suffix"
            exp_continue
        }
-        -re "No such file or directory.*$gdb_prompt $" {
-            perror "($basename) No such file or directory"
+       -re "No such file or directory.*$gdb_prompt $" {
+           perror "($basename) No such file or directory"
            return -1
-        }
+       }
        -re "A problem internal to GDB has been detected" {
            perror "Couldn't load $basename into GDB (GDB internal error)."
            gdb_internal_error_resync
            return -1
        }
-        -re "$gdb_prompt $" {
-            perror "Couldn't load $basename into GDB."
+       -re "$gdb_prompt $" {
+           perror "Couldn't load $basename into GDB."
            return -1
-            }
-        timeout {
-            perror "Couldn't load $basename into GDB (timeout)."
+           }
+       timeout {
+           perror "Couldn't load $basename into GDB (timeout)."
            return -1
-        }
-        eof {
-            # This is an attempt to detect a core dump, but seems not to
-            # work.  Perhaps we need to match .* followed by eof, in which
-            # gdb_expect does not seem to have a way to do that.
-            perror "Couldn't load $basename into GDB (eof)."
+       }
+       eof {
+           # This is an attempt to detect a core dump, but seems not to
+           # work.  Perhaps we need to match .* followed by eof, in which
+           # gdb_expect does not seem to have a way to do that.
+           perror "Couldn't load $basename into GDB (eof)."
            return -1
-        }
+       }
     }
 }
 
@@ -3061,15 +3061,15 @@ gdb_caching_proc allow_dlmopen_tests {} {
            r_debug = 0;
            /* Taken from /usr/include/link.h.  */
            for (dyn = _DYNAMIC; dyn->d_tag != DT_NULL; ++dyn)
-               if (dyn->d_tag == DT_DEBUG)
-                   r_debug = (struct r_debug *) dyn->d_un.d_ptr;
+               if (dyn->d_tag == DT_DEBUG)
+                   r_debug = (struct r_debug *) dyn->d_un.d_ptr;
 
            if (!r_debug) {
-               printf ("r_debug not found.\n");
+               printf ("r_debug not found.\n");
                return 1;
            }
            if (r_debug->r_version < 2) {
-               printf ("dlmopen debug not supported.\n");
+               printf ("dlmopen debug not supported.\n");
                return 1;
            }
            printf ("dlmopen debug supported.\n");
@@ -3102,16 +3102,16 @@ gdb_caching_proc allow_dlmopen_tests {} {
        return 0
     }
     gdb_expect {
-        -re "$inferior_exited_re normally.*${gdb_prompt} $" {
+       -re "$inferior_exited_re normally.*${gdb_prompt} $" {
            set allow_dlmopen_tests 1
-        }
-        -re "$inferior_exited_re with code.*${gdb_prompt} $" {
+       }
+       -re "$inferior_exited_re with code.*${gdb_prompt} $" {
            set allow_dlmopen_tests 0
-        }
-        default {
+       }
+       default {
            warning "\n$me: default case taken"
            set allow_dlmopen_tests 0
-        }
+       }
     }
     gdb_exit
 
@@ -3902,10 +3902,10 @@ proc supports_process_record {} {
     }
 
     if { [istarget "arm*-*-linux*"] || [istarget "x86_64-*-linux*"]
-         || [istarget "i\[34567\]86-*-linux*"]
-         || [istarget "aarch64*-*-linux*"]
+        || [istarget "i\[34567\]86-*-linux*"]
+        || [istarget "aarch64*-*-linux*"]
         || [istarget "loongarch*-*-linux*"]
-         || [istarget "powerpc*-*-linux*"]
+        || [istarget "powerpc*-*-linux*"]
         || [istarget "s390*-*-linux*"]
         || [istarget "riscv*-*-*"] } {
        return 1
@@ -3923,10 +3923,10 @@ proc supports_reverse {} {
     }
 
     if { [istarget "arm*-*-linux*"] || [istarget "x86_64-*-linux*"]
-         || [istarget "i\[34567\]86-*-linux*"]
-         || [istarget "aarch64*-*-linux*"]
+        || [istarget "i\[34567\]86-*-linux*"]
+        || [istarget "aarch64*-*-linux*"]
         || [istarget "loongarch*-*-linux*"]
-         || [istarget "powerpc*-*-linux*"]
+        || [istarget "powerpc*-*-linux*"]
         || [istarget "s390*-*-linux*"]
         || [istarget "riscv*-*-*"] } {
        return 1
@@ -3984,7 +3984,7 @@ gdb_caching_proc is_elf_target {} {
 
     set src { int foo () {return 0;} }
     if {![gdb_simple_compile elf_target $src]} {
-        return 0
+       return 0
     }
 
     set fp_obj [open $obj "r"]
@@ -4218,9 +4218,9 @@ gdb_caching_proc allow_altivec_tests {} {
 
     # Make sure we have a compiler that understands altivec.
     if {[test_compiler_info gcc*]} {
-        set compile_flags "additional_flags=-maltivec"
+       set compile_flags "additional_flags=-maltivec"
     } elseif {[test_compiler_info xlc*]} {
-        set compile_flags "additional_flags=-qaltivec"
+       set compile_flags "additional_flags=-qaltivec"
     } else {
        verbose "Could not compile with altivec support, returning 0" 2
        return 0
@@ -4249,18 +4249,18 @@ gdb_caching_proc allow_altivec_tests {} {
     gdb_load "$obj"
     gdb_run_cmd
     gdb_expect {
-        -re ".*Illegal instruction.*${gdb_prompt} $" {
-            verbose -log "\n$me altivec hardware not detected"
+       -re ".*Illegal instruction.*${gdb_prompt} $" {
+           verbose -log "\n$me altivec hardware not detected"
            set allow_vmx_tests 0
-        }
-        -re ".*$inferior_exited_re normally.*${gdb_prompt} $" {
-            verbose -log "\n$me: altivec hardware detected"
+       }
+       -re ".*$inferior_exited_re normally.*${gdb_prompt} $" {
+           verbose -log "\n$me: altivec hardware detected"
            set allow_vmx_tests 1
-        }
-        default {
-          warning "\n$me: default case taken"
+       }
+       default {
+         warning "\n$me: default case taken"
            set allow_vmx_tests 0
-        }
+       }
     }
     gdb_exit
     remote_file build delete $obj
@@ -4296,18 +4296,18 @@ gdb_caching_proc allow_power_isa_3_1_tests {} {
     gdb_load "$obj"
     gdb_run_cmd
     gdb_expect {
-        -re ".*Illegal instruction.*${gdb_prompt} $" {
-            verbose -log "\n$me Power ISA 3.1 hardware not detected"
+       -re ".*Illegal instruction.*${gdb_prompt} $" {
+           verbose -log "\n$me Power ISA 3.1 hardware not detected"
            set allow_power_isa_3_1_tests 0
-        }
-        -re ".*$inferior_exited_re normally.*${gdb_prompt} $" {
-            verbose -log "\n$me: Power ISA 3.1 hardware detected"
+       }
+       -re ".*$inferior_exited_re normally.*${gdb_prompt} $" {
+           verbose -log "\n$me: Power ISA 3.1 hardware detected"
            set allow_power_isa_3_1_tests 1
-        }
-        default {
+       }
+       default {
            warning "\n$me: default case taken"
            set allow_power_isa_3_1_tests 0
-        }
+       }
     }
     gdb_exit
     remote_file build delete $obj
@@ -4333,9 +4333,9 @@ gdb_caching_proc allow_vsx_tests {} {
 
     # Make sure we have a compiler that understands altivec.
     if {[test_compiler_info gcc*]} {
-        set compile_flags "additional_flags=-mvsx"
+       set compile_flags "additional_flags=-mvsx"
     } elseif {[test_compiler_info xlc*]} {
-        set compile_flags "additional_flags=-qasm=gcc"
+       set compile_flags "additional_flags=-qasm=gcc"
     } else {
        verbose "Could not compile with vsx support, returning 0" 2
        return 0
@@ -4365,18 +4365,18 @@ gdb_caching_proc allow_vsx_tests {} {
     gdb_load "$obj"
     gdb_run_cmd
     gdb_expect {
-        -re ".*Illegal instruction.*${gdb_prompt} $" {
-            verbose -log "\n$me VSX hardware not detected"
+       -re ".*Illegal instruction.*${gdb_prompt} $" {
+           verbose -log "\n$me VSX hardware not detected"
            set allow_vsx_tests 0
-        }
-        -re ".*$inferior_exited_re normally.*${gdb_prompt} $" {
-            verbose -log "\n$me: VSX hardware detected"
+       }
+       -re ".*$inferior_exited_re normally.*${gdb_prompt} $" {
+           verbose -log "\n$me: VSX hardware detected"
            set allow_vsx_tests 1
-        }
-        default {
-          warning "\n$me: default case taken"
+       }
+       default {
+         warning "\n$me: default case taken"
            set allow_vsx_tests 0
-        }
+       }
     }
     gdb_exit
     remote_file build delete $obj
@@ -4395,12 +4395,12 @@ gdb_caching_proc allow_tsx_tests {} {
 
     # Compile a test program.
     set src {
-        int main() {
-            asm volatile ("xbegin .L0");
-            asm volatile ("xend");
-            asm volatile (".L0: nop");
-            return 0;
-        }
+       int main() {
+           asm volatile ("xbegin .L0");
+           asm volatile ("xend");
+           asm volatile (".L0: nop");
+           return 0;
+       }
     }
     if {![gdb_simple_compile $me $src executable]} {
        return 0
@@ -4414,18 +4414,18 @@ gdb_caching_proc allow_tsx_tests {} {
     gdb_load "$obj"
     gdb_run_cmd
     gdb_expect {
-        -re ".*Illegal instruction.*${gdb_prompt} $" {
-            verbose -log "$me:  TSX hardware not detected."
+       -re ".*Illegal instruction.*${gdb_prompt} $" {
+           verbose -log "$me:  TSX hardware not detected."
            set allow_tsx_tests 0
-        }
-        -re ".*$inferior_exited_re normally.*${gdb_prompt} $" {
-            verbose -log "$me:  TSX hardware detected."
+       }
+       -re ".*$inferior_exited_re normally.*${gdb_prompt} $" {
+           verbose -log "$me:  TSX hardware detected."
            set allow_tsx_tests 1
-        }
-        default {
-            warning "\n$me:  default case taken."
+       }
+       default {
+           warning "\n$me:  default case taken."
            set allow_tsx_tests 0
-        }
+       }
     }
     gdb_exit
     remote_file build delete $obj
@@ -4518,10 +4518,10 @@ gdb_caching_proc allow_avx512bf16_tests {} {
 
     # Compile a test program.
     set src {
-        int main() {
-            asm volatile ("vcvtne2ps2bf16 %xmm0, %xmm1, %xmm0");
-            return 0;
-        }
+       int main() {
+           asm volatile ("vcvtne2ps2bf16 %xmm0, %xmm1, %xmm0");
+           return 0;
+       }
     }
     if {![gdb_simple_compile $me $src executable]} {
        return 0
@@ -4535,18 +4535,18 @@ gdb_caching_proc allow_avx512bf16_tests {} {
     gdb_load "$obj"
     gdb_run_cmd
     gdb_expect {
-        -re ".*Illegal instruction.*${gdb_prompt} $" {
-            verbose -log "$me:  avx512bf16 hardware not detected."
+       -re ".*Illegal instruction.*${gdb_prompt} $" {
+           verbose -log "$me:  avx512bf16 hardware not detected."
            set allow_avx512bf16_tests 0
-        }
-        -re ".*$inferior_exited_re normally.*${gdb_prompt} $" {
-            verbose -log "$me:  avx512bf16 hardware detected."
+       }
+       -re ".*$inferior_exited_re normally.*${gdb_prompt} $" {
+           verbose -log "$me:  avx512bf16 hardware detected."
            set allow_avx512bf16_tests 1
-        }
-        default {
-            warning "\n$me:  default case taken."
+       }
+       default {
+           warning "\n$me:  default case taken."
            set allow_avx512bf16_tests 0
-        }
+       }
     }
     gdb_exit
     remote_file build delete $obj
@@ -4569,10 +4569,10 @@ gdb_caching_proc allow_avx512fp16_tests {} {
 
     # Compile a test program.
     set src {
-        int main() {
-            asm volatile ("vcvtps2phx %xmm1, %xmm0");
-            return 0;
-        }
+       int main() {
+           asm volatile ("vcvtps2phx %xmm1, %xmm0");
+           return 0;
+       }
     }
     if {![gdb_simple_compile $me $src executable]} {
        return 0
@@ -4586,18 +4586,18 @@ gdb_caching_proc allow_avx512fp16_tests {} {
     gdb_load "$obj"
     gdb_run_cmd
     gdb_expect {
-        -re ".*Illegal instruction.*${gdb_prompt} $" {
-            verbose -log "$me:  avx512fp16 hardware not detected."
+       -re ".*Illegal instruction.*${gdb_prompt} $" {
+           verbose -log "$me:  avx512fp16 hardware not detected."
            set allow_avx512fp16_tests 0
-        }
-        -re ".*$inferior_exited_re normally.*${gdb_prompt} $" {
-            verbose -log "$me:  avx512fp16 hardware detected."
+       }
+       -re ".*$inferior_exited_re normally.*${gdb_prompt} $" {
+           verbose -log "$me:  avx512fp16 hardware detected."
            set allow_avx512fp16_tests 1
-        }
-        default {
-            warning "\n$me:  default case taken."
+       }
+       default {
+           warning "\n$me:  default case taken."
            set allow_avx512fp16_tests 0
-        }
+       }
     }
     gdb_exit
     remote_file build delete $obj
@@ -4701,18 +4701,18 @@ gdb_caching_proc allow_btrace_tests {} {
     # In case of an unexpected output, we return 2 as a fail value.
     set allow_btrace_tests 2
     gdb_test_multiple "record btrace" "check btrace support" {
-        -re "You can't do that when your target is.*\r\n$gdb_prompt $" {
+       -re "You can't do that when your target is.*\r\n$gdb_prompt $" {
            set allow_btrace_tests 0
-        }
-        -re "Target does not support branch tracing.*\r\n$gdb_prompt $" {
+       }
+       -re "Target does not support branch tracing.*\r\n$gdb_prompt $" {
            set allow_btrace_tests 0
-        }
-        -re "Could not enable branch tracing.*\r\n$gdb_prompt $" {
+       }
+       -re "Could not enable branch tracing.*\r\n$gdb_prompt $" {
            set allow_btrace_tests 0
-        }
-        -re "^record btrace\r\n$gdb_prompt $" {
+       }
+       -re "^record btrace\r\n$gdb_prompt $" {
            set allow_btrace_tests 1
-        }
+       }
     }
     gdb_exit
     remote_file build delete $obj
@@ -4752,21 +4752,21 @@ gdb_caching_proc allow_btrace_pt_tests {} {
     # In case of an unexpected output, we return 2 as a fail value.
     set allow_btrace_pt_tests 2
     gdb_test_multiple "record btrace pt" "check btrace pt support" {
-        -re "You can't do that when your target is.*\r\n$gdb_prompt $" {
+       -re "You can't do that when your target is.*\r\n$gdb_prompt $" {
            set allow_btrace_pt_tests 0
-        }
-        -re "Target does not support branch tracing.*\r\n$gdb_prompt $" {
+       }
+       -re "Target does not support branch tracing.*\r\n$gdb_prompt $" {
            set allow_btrace_pt_tests 0
-        }
-        -re "Could not enable branch tracing.*\r\n$gdb_prompt $" {
+       }
+       -re "Could not enable branch tracing.*\r\n$gdb_prompt $" {
            set allow_btrace_pt_tests 0
-        }
-        -re "support was disabled at compile time.*\r\n$gdb_prompt $" {
+       }
+       -re "support was disabled at compile time.*\r\n$gdb_prompt $" {
            set allow_btrace_pt_tests 0
-        }
-        -re "^record btrace pt\r\n$gdb_prompt $" {
+       }
+       -re "^record btrace pt\r\n$gdb_prompt $" {
            set allow_btrace_pt_tests 1
-        }
+       }
     }
     gdb_exit
     remote_file build delete $obj
@@ -4926,7 +4926,7 @@ gdb_caching_proc allow_aarch64_sve_tests {} {
        }
     }
     if {![gdb_simple_compile $me $src executable $compile_flags]} {
-        return 0
+       return 0
     }
 
     # Compilation succeeded so now run it via gdb.
@@ -4934,18 +4934,18 @@ gdb_caching_proc allow_aarch64_sve_tests {} {
     gdb_load $obj
     gdb_run_cmd
     gdb_expect {
-        -re ".*Illegal instruction.*${gdb_prompt} $" {
-            verbose -log "\n$me sve hardware not detected"
-            set allow_sve_tests 0
-        }
-        -re ".*$inferior_exited_re normally.*${gdb_prompt} $" {
-            verbose -log "\n$me: sve hardware detected"
-            set allow_sve_tests 1
-        }
-        default {
-          warning "\n$me: default case taken"
-            set allow_sve_tests 0
-        }
+       -re ".*Illegal instruction.*${gdb_prompt} $" {
+           verbose -log "\n$me sve hardware not detected"
+           set allow_sve_tests 0
+       }
+       -re ".*$inferior_exited_re normally.*${gdb_prompt} $" {
+           verbose -log "\n$me: sve hardware detected"
+           set allow_sve_tests 1
+       }
+       default {
+         warning "\n$me: default case taken"
+           set allow_sve_tests 0
+       }
     }
     gdb_exit
     remote_file build delete $obj
@@ -5929,9 +5929,9 @@ proc gcc_major_version { {compiler "gcc-*"} {language "c"} } {
 proc current_target_name { } {
     global target_info
     if {[info exists target_info(target,name)]} {
-        set answer $target_info(target,name)
+       set answer $target_info(target,name)
     } else {
-        set answer ""
+       set answer ""
     }
     return $answer
 }
@@ -6036,18 +6036,18 @@ proc gdb_simple_compile {name code {type object} {compile_flags {}} {object obj}
     upvar $object obj
 
     switch -regexp -- $type {
-        "executable" {
-            set postfix "x"
-        }
-        "object" {
-            set postfix "o"
-        }
-        "preprocess" {
-            set postfix "i"
-        }
-        "assembly" {
-            set postfix "s"
-        }
+       "executable" {
+           set postfix "x"
+       }
+       "object" {
+           set postfix "o"
+       }
+       "preprocess" {
+           set postfix "i"
+       }
+       "assembly" {
+           set postfix "s"
+       }
     }
     set ext "c"
     foreach flag $compile_flags {
@@ -6084,8 +6084,8 @@ proc gdb_simple_compile {name code {type object} {compile_flags {}} {object obj}
     file delete $src
 
     if {![string match "" $lines]} {
-        verbose "$name:  compilation failed, returning 0" 2
-        return 0
+       verbose "$name:  compilation failed, returning 0" 2
+       return 0
     }
     return 1
 }
@@ -6377,9 +6377,9 @@ proc gdb_compile {source dest type options} {
     set shlib_found 0
     set shlib_load 0
     foreach opt $options {
-        if {[regexp {^shlib=(.*)} $opt dummy_var shlib_name]
+       if {[regexp {^shlib=(.*)} $opt dummy_var shlib_name]
            && $type == "executable"} {
-            if {[test_compiler_info "xlc-*"]} {
+           if {[test_compiler_info "xlc-*"]} {
                # IBM xlc compiler doesn't accept shared library named other
                # than .so: use "-Wl," to bypass this
                lappend source "-Wl,$shlib_name"
@@ -6387,11 +6387,11 @@ proc gdb_compile {source dest type options} {
                        || [istarget *-*-cygwin*]
                        || [istarget *-*-pe*])} {
                lappend source "${shlib_name}.a"
-            } else {
-               lappend source $shlib_name
-            }
-            if { $shlib_found == 0 } {
-                set shlib_found 1
+           } else {
+              lappend source $shlib_name
+           }
+           if { $shlib_found == 0 } {
+               set shlib_found 1
                if { ([istarget "*-*-mingw*"]
                      || [istarget *-*-cygwin*]) } {
                    lappend new_options "ldflags=-Wl,--enable-auto-import"
@@ -6403,26 +6403,26 @@ proc gdb_compile {source dest type options} {
                    # shlibs!
                    lappend new_options "early_flags=-Wl,--no-as-needed"
                }
-            }
+           }
        } elseif { $opt == "shlib_load" && $type == "executable" } {
            set shlib_load 1
        } elseif { $opt == "getting_compiler_info" } {
            # Ignore this setting here as it has been handled earlier in this
            # procedure.  Do not append it to new_options as this will cause
            # recursion.
-        } elseif {[regexp "^text_segment=(.*)" $opt dummy_var addr]} {
-            if { [linker_supports_Ttext_segment_flag] } {
-                # For GNU ld.
-                lappend new_options "ldflags=-Wl,-Ttext-segment=$addr"
-            } elseif { [linker_supports_image_base_flag] } {
-                # For LLVM's lld.
-                lappend new_options "ldflags=-Wl,--image-base=$addr"
-            } elseif { [linker_supports_Ttext_flag] } {
-                # For old GNU gold versions.
-                lappend new_options "ldflags=-Wl,-Ttext=$addr"
-            } else {
-                error "Don't know how to handle text_segment option."
-            }
+       } elseif {[regexp "^text_segment=(.*)" $opt dummy_var addr]} {
+           if { [linker_supports_Ttext_segment_flag] } {
+               # For GNU ld.
+               lappend new_options "ldflags=-Wl,-Ttext-segment=$addr"
+           } elseif { [linker_supports_image_base_flag] } {
+               # For LLVM's lld.
+               lappend new_options "ldflags=-Wl,--image-base=$addr"
+           } elseif { [linker_supports_Ttext_flag] } {
+               # For old GNU gold versions.
+               lappend new_options "ldflags=-Wl,-Ttext=$addr"
+           } else {
+               error "Don't know how to handle text_segment option."
+           }
        } elseif { $opt == "column-info" } {
            # If GCC or clang does not support column-info, compilation
            # will fail and the usupported column-info option will be
@@ -6462,9 +6462,9 @@ proc gdb_compile {source dest type options} {
            } else {
                error "No idea how to force DWARF-5 in this compiler"
            }
-        } else {
-            lappend new_options $opt
-        }
+       } else {
+           lappend new_options $opt
+       }
     }
 
     # Ensure stack protector is disabled for GCC, as this causes problems with
@@ -6476,8 +6476,8 @@ proc gdb_compile {source dest type options} {
         && !([test_compiler_info {gcc-[0-3]-*}]
              || [test_compiler_info {gcc-4-0-*}])
         && [lsearch -exact $options rust] == -1} {
-        # Put it at the front to not override any user-provided value.
-        lappend new_options "early_flags=-fno-stack-protector"
+       # Put it at the front to not override any user-provided value.
+       lappend new_options "early_flags=-fno-stack-protector"
     }
 
     # hipcc defaults to -O2, so add -O0 to early flags for the hip language.
@@ -6705,31 +6705,31 @@ proc gdb_compile_pthreads {source dest type options} {
     set built_binfile 0
     set why_msg "unrecognized error"
     foreach lib {-lpthreads -lpthread -lthread ""} {
-        # This kind of wipes out whatever libs the caller may have
-        # set.  Or maybe theirs will override ours.  How infelicitous.
-        set options_with_lib [concat $options [list libs=$lib quiet]]
-        set ccout [gdb_compile $source $dest $type $options_with_lib]
-        switch -regexp -- $ccout {
-            ".*no posix threads support.*" {
-                set why_msg "missing threads include file"
-                break
-            }
-            ".*cannot open -lpthread.*" {
-                set why_msg "missing runtime threads library"
-            }
-            ".*Can't find library for -lpthread.*" {
-                set why_msg "missing runtime threads library"
-            }
-            {^$} {
-                pass "successfully compiled posix threads test case"
-                set built_binfile 1
-                break
-            }
-        }
+       # This kind of wipes out whatever libs the caller may have
+       # set.  Or maybe theirs will override ours.  How infelicitous.
+       set options_with_lib [concat $options [list libs=$lib quiet]]
+       set ccout [gdb_compile $source $dest $type $options_with_lib]
+       switch -regexp -- $ccout {
+           ".*no posix threads support.*" {
+               set why_msg "missing threads include file"
+               break
+           }
+           ".*cannot open -lpthread.*" {
+               set why_msg "missing runtime threads library"
+           }
+           ".*Can't find library for -lpthread.*" {
+               set why_msg "missing runtime threads library"
+           }
+           {^$} {
+               pass "successfully compiled posix threads test case"
+               set built_binfile 1
+               break
+           }
+       }
     }
     if {!$built_binfile} {
        unsupported "couldn't compile [file tail $source]: ${why_msg}"
-        return -1
+       return -1
     }
 }
 
@@ -6752,9 +6752,9 @@ proc gdb_compile_shlib_1 {sources dest options} {
     }
 
     switch -glob [test_compiler_info "" ${info_options}] {
-        "xlc-*" {
-            lappend obj_options "additional_flags=-qpic"
-        }
+       "xlc-*" {
+           lappend obj_options "additional_flags=-qpic"
+       }
        "clang-*" {
            if { [istarget "*-*-cygwin*"]
                 || [istarget "*-*-mingw*"] } {
@@ -6763,24 +6763,24 @@ proc gdb_compile_shlib_1 {sources dest options} {
                lappend obj_options "additional_flags=-fpic"
            }
        }
-        "gcc-*" {
-            if { [istarget "powerpc*-*-aix*"]
-                   || [istarget "rs6000*-*-aix*"]
-                   || [istarget "*-*-cygwin*"]
-                   || [istarget "*-*-mingw*"]
-                   || [istarget "*-*-pe*"] } {
-                lappend obj_options "additional_flags=-fPIC"
+       "gcc-*" {
+           if { [istarget "powerpc*-*-aix*"]
+                  || [istarget "rs6000*-*-aix*"]
+                  || [istarget "*-*-cygwin*"]
+                  || [istarget "*-*-mingw*"]
+                  || [istarget "*-*-pe*"] } {
+               lappend obj_options "additional_flags=-fPIC"
            } else {
-                lappend obj_options "additional_flags=-fpic"
-            }
-        }
-        "icc-*" {
-                lappend obj_options "additional_flags=-fpic"
-        }
-        default {
+               lappend obj_options "additional_flags=-fpic"
+           }
+       }
+       "icc-*" {
+               lappend obj_options "additional_flags=-fpic"
+       }
+       default {
            # don't know what the compiler is...
            lappend obj_options "additional_flags=-fPIC"
-        }
+       }
     }
 
     set outdir [file dirname $dest]
@@ -6917,31 +6917,31 @@ proc gdb_compile_shlib_pthreads {sources dest options} {
     set built_binfile 0
     set why_msg "unrecognized error"
     foreach lib {-lpthreads -lpthread -lthread ""} {
-        # This kind of wipes out whatever libs the caller may have
-        # set.  Or maybe theirs will override ours.  How infelicitous.
-        set options_with_lib [concat $options [list libs=$lib quiet]]
-        set ccout [gdb_compile_shlib $sources $dest $options_with_lib]
-        switch -regexp -- $ccout {
-            ".*no posix threads support.*" {
-                set why_msg "missing threads include file"
-                break
-            }
-            ".*cannot open -lpthread.*" {
-                set why_msg "missing runtime threads library"
-            }
-            ".*Can't find library for -lpthread.*" {
-                set why_msg "missing runtime threads library"
-            }
-            {^$} {
-                pass "successfully compiled posix threads shlib test case"
-                set built_binfile 1
-                break
-            }
-        }
+       # This kind of wipes out whatever libs the caller may have
+       # set.  Or maybe theirs will override ours.  How infelicitous.
+       set options_with_lib [concat $options [list libs=$lib quiet]]
+       set ccout [gdb_compile_shlib $sources $dest $options_with_lib]
+       switch -regexp -- $ccout {
+           ".*no posix threads support.*" {
+               set why_msg "missing threads include file"
+               break
+           }
+           ".*cannot open -lpthread.*" {
+               set why_msg "missing runtime threads library"
+           }
+           ".*Can't find library for -lpthread.*" {
+               set why_msg "missing runtime threads library"
+           }
+           {^$} {
+               pass "successfully compiled posix threads shlib test case"
+               set built_binfile 1
+               break
+           }
+       }
     }
     if {!$built_binfile} {
-        unsupported "couldn't compile $sources: ${why_msg}"
-        return -1
+       unsupported "couldn't compile $sources: ${why_msg}"
+       return -1
     }
 }
 
@@ -6951,37 +6951,37 @@ proc gdb_compile_objc {source dest type options} {
     set built_binfile 0
     set why_msg "unrecognized error"
     foreach lib {-lobjc -lpthreads -lpthread -lthread solaris} {
-        # This kind of wipes out whatever libs the caller may have
-        # set.  Or maybe theirs will override ours.  How infelicitous.
-        if { $lib == "solaris" } {
-            set lib "-lpthread -lposix4"
+       # This kind of wipes out whatever libs the caller may have
+       # set.  Or maybe theirs will override ours.  How infelicitous.
+       if { $lib == "solaris" } {
+           set lib "-lpthread -lposix4"
        }
-        if { $lib != "-lobjc" } {
+       if { $lib != "-lobjc" } {
          set lib "-lobjc $lib"
        }
-        set options_with_lib [concat $options [list libs=$lib quiet]]
-        set ccout [gdb_compile $source $dest $type $options_with_lib]
-        switch -regexp -- $ccout {
-            ".*no posix threads support.*" {
-                set why_msg "missing threads include file"
-                break
-            }
-            ".*cannot open -lpthread.*" {
-                set why_msg "missing runtime threads library"
-            }
-            ".*Can't find library for -lpthread.*" {
-                set why_msg "missing runtime threads library"
-            }
-            {^$} {
-                pass "successfully compiled objc with posix threads test case"
-                set built_binfile 1
-                break
-            }
-        }
+       set options_with_lib [concat $options [list libs=$lib quiet]]
+       set ccout [gdb_compile $source $dest $type $options_with_lib]
+       switch -regexp -- $ccout {
+           ".*no posix threads support.*" {
+               set why_msg "missing threads include file"
+               break
+           }
+           ".*cannot open -lpthread.*" {
+               set why_msg "missing runtime threads library"
+           }
+           ".*Can't find library for -lpthread.*" {
+               set why_msg "missing runtime threads library"
+           }
+           {^$} {
+               pass "successfully compiled objc with posix threads test case"
+               set built_binfile 1
+               break
+           }
+       }
     }
     if {!$built_binfile} {
-        unsupported "couldn't compile [file tail $source]: ${why_msg}"
-        return -1
+       unsupported "couldn't compile [file tail $source]: ${why_msg}"
+       return -1
     }
 }
 
@@ -7037,7 +7037,7 @@ proc gdb_expect { args } {
        {uplevel remote_expect host $tmt $expcode} string]
 
     if {$code == 1} {
-        global errorInfo errorCode
+       global errorInfo errorCode
 
        return -code error -errorinfo $errorInfo -errorcode $errorCode $string
     } else {
@@ -7065,7 +7065,7 @@ proc gdb_expect_list {test sentinel list} {
 
     while { ${index} < [llength ${list}] } {
        set pattern [lindex ${list} ${index}]
-        incr index
+       incr index
        verbose -log "gdb_expect_list pattern: /$pattern/" 2
        if { ${index} == [llength ${list}] } {
            if { ${ok} } {
@@ -7897,8 +7897,8 @@ proc default_gdb_init { test_file_name } {
     global banned_traced
     if {!$banned_traced} {
        foreach banned_var $banned_variables {
-            global "$banned_var"
-            trace add variable "$banned_var" write error
+           global "$banned_var"
+           trace add variable "$banned_var" write error
        }
        foreach banned_proc $banned_procedures {
            global "$banned_proc"
@@ -8394,9 +8394,9 @@ proc gdb_finish { } {
     global banned_procedures
     global banned_traced
     if {$banned_traced} {
-       foreach banned_var $banned_variables {
-            global "$banned_var"
-            trace remove variable "$banned_var" write error
+       foreach banned_var $banned_variables {
+           global "$banned_var"
+           trace remove variable "$banned_var" write error
        }
        foreach banned_proc $banned_procedures {
            global "$banned_proc"
@@ -8573,7 +8573,7 @@ proc gdb_get_line_number { text { file "" } } {
     }
 
     if {$found == -1} {
-        error "undefined tag \"$text\""
+       error "undefined tag \"$text\""
     }
 
     return $found
@@ -9194,13 +9194,13 @@ proc test_class_help { command_class expected_initial_lines {list_of_commands {}
     global help_list_trailer
     if {[llength $list_of_commands]>0} {
        set l_list_of_commands {"List of commands:[\r\n]+[\r\n]+"}
-        set l_list_of_commands [concat $l_list_of_commands $list_of_commands]
+       set l_list_of_commands [concat $l_list_of_commands $list_of_commands]
        set l_list_of_commands [concat $l_list_of_commands {"[\r\n]+[\r\n]+"}]
     } else {
-        set l_list_of_commands {"List of commands\:.*[\r\n]+"}
+       set l_list_of_commands {"List of commands\:.*[\r\n]+"}
     }
     set l_stock_body {
-        "Type \"help\" followed by command name for full documentation\.[\r\n]+"
+       "Type \"help\" followed by command name for full documentation\.[\r\n]+"
     }
     set l_entire_body [concat $expected_initial_lines $l_list_of_commands \
                       $l_stock_body $help_list_trailer]
@@ -9229,20 +9229,20 @@ proc test_prefix_command_help { command_list expected_initial_lines args } {
     global help_list_trailer
     set command [lindex $command_list 0]
     if {[llength $command_list]>1} {
-        set full_command [lindex $command_list 1]
+       set full_command [lindex $command_list 1]
     } else {
-        set full_command $command
+       set full_command $command
     }
     # Use 'list' and not just {} because we want variables to
     # be expanded in this list.
     set l_stock_body [list\
-         "List of \"$full_command\" subcommands\:.*\[\r\n\]+"\
-         "Type \"help $full_command\" followed by subcommand name for full documentation\.\[\r\n\]+"]
+        "List of \"$full_command\" subcommands\:.*\[\r\n\]+"\
+        "Type \"help $full_command\" followed by subcommand name for full documentation\.\[\r\n\]+"]
     set l_entire_body [concat $expected_initial_lines $l_stock_body $help_list_trailer]
     if {[llength $args]>0} {
-        help_test_raw "help ${command}" $l_entire_body [lindex $args 0]
+       help_test_raw "help ${command}" $l_entire_body [lindex $args 0]
     } else {
-        help_test_raw "help ${command}" $l_entire_body
+       help_test_raw "help ${command}" $l_entire_body
     }
 }
 
@@ -9309,8 +9309,8 @@ proc build_executable_from_specs {testname executable options args} {
        set ret [$func $objects "${binfile}" executable $options]
     }
     if  { $ret != "" } {
-        untested $testname
-        return -1
+       untested $testname
+       return -1
     }
 
     return 0
@@ -9322,7 +9322,7 @@ proc build_executable_from_specs {testname executable options args} {
 # to gdb_compile directly.
 proc build_executable { testname executable {sources ""} {options {debug}} } {
     if {[llength $sources]==0} {
-        set sources ${executable}.c
+       set sources ${executable}.c
     }
 
     set arglist [list $testname $executable $options]
@@ -9399,7 +9399,7 @@ proc prepare_for_testing_full {testname args} {
 proc prepare_for_testing { testname executable {sources ""} {options {debug}}} {
 
     if {[build_executable $testname $executable $sources $options] == -1} {
-        return -1
+       return -1
     }
     clean_restart $executable
 
@@ -9615,13 +9615,13 @@ gdb_caching_proc target_endianness {} {
 
     set src { int main() { return 0; } }
     if {![gdb_simple_compile $me $src executable]} {
-        return 0
+       return 0
     }
 
     clean_restart
     gdb_load $obj
     if {![runto_main]} {
-        return 0
+       return 0
     }
     set res [get_endianness]
 
@@ -9835,7 +9835,7 @@ gdb_caching_proc gdb_target_symbol_prefix {} {
     # Compile a simple test program...
     set src { int main() { return 0; } }
     if {![gdb_simple_compile target_symbol_prefix $src executable]} {
-        return 0
+       return 0
     }
 
     set prefix ""
@@ -9863,13 +9863,13 @@ gdb_caching_proc target_supports_scheduler_locking {} {
 
     set src { int main() { return 0; } }
     if {![gdb_simple_compile $me $src executable]} {
-        return 0
+       return 0
     }
 
     clean_restart
     gdb_load $obj
     if {![runto_main]} {
-        return 0
+       return 0
     }
 
     set supports_schedule_locking -1
@@ -9921,7 +9921,7 @@ gdb_caching_proc support_nested_function_tests {} {
     return [gdb_can_simple_compile nested_func {
        int main () {
            int foo () {
-               return 0;
+               return 0;
            }
            return foo ();
        }
@@ -9998,8 +9998,8 @@ proc run_on_host { test program args } {
     set status [lindex $result 0]
     set output [lindex $result 1]
     if {$status == 0} {
-       pass $test
-       return 0
+       pass $test
+       return 0
     } else {
        verbose -log "run_on_host failed: $output"
        if { $output == "spawn failed" } {
@@ -10410,12 +10410,12 @@ proc gdb_stdin_log_write { message {type standard} } {
 
     # Check message types.
     switch -regexp -- $type {
-        "answer" {
-            return
-        }
-        "optional" {
-            return
-        }
+       "answer" {
+           return
+       }
+       "optional" {
+           return
+       }
     }
 
     # Write to the log and make sure the output is there, even in case
@@ -10814,10 +10814,10 @@ proc with_override { name override body } {
 
     # Return as appropriate.
     if { $code == 1 } {
-        global errorInfo errorCode
-        return -code error -errorinfo $errorInfo -errorcode $errorCode $result
+       global errorInfo errorCode
+       return -code error -errorinfo $errorInfo -errorcode $errorCode $result
     } elseif { $code > 1 } {
-        return -code $code $result
+       return -code $code $result
     }
 
     return $result
@@ -10954,8 +10954,8 @@ gdb_caching_proc have_avx {} {
 
     set me "have_avx"
     if { ![istarget "i?86-*-*"] && ![istarget "x86_64-*-*"] } {
-        verbose "$me: target does not support avx, returning 0" 2
-        return 0
+       verbose "$me: target does not support avx, returning 0" 2
+       return 0
     }
 
     # Compile a test program.
@@ -10976,7 +10976,7 @@ gdb_caching_proc have_avx {} {
     }
     set compile_flags "incdir=${srcdir}/.."
     if {![gdb_simple_compile $me $src executable $compile_flags]} {
-        return 0
+       return 0
     }
 
     set target_obj [gdb_remote_download target $obj]
@@ -11127,7 +11127,7 @@ gdb_caching_proc has_hw_wp_support {} {
     }
 
     if {![gdb_simple_compile $me $src executable $compile_flags]} {
-        return 0
+       return 0
     }
 
     gdb_start
@@ -11150,7 +11150,7 @@ gdb_caching_proc has_hw_wp_support {} {
        -re ".*Hardware watchpoint.*" {
            #  HW watchpoint supported by platform
            verbose -log "\n$me: Hardware watchpoint detected"
-            set has_hw_wp_support 1
+           set has_hw_wp_support 1
        }
        -re ".*$gdb_prompt $" {
            set has_hw_wp_support 0
@@ -11627,7 +11627,7 @@ gdb_caching_proc root_user {} {
     # reason.  Return that we are not root, so problems are easier to
     # spot.
     if { $ret_val != 0 } {
-        return 0
+       return 0
     }
 
     regexp -all ".*uid=(\[0-9\]+).*" $output dummy uid
index 0652b35a0511af733a5d1841a5dbb5a2a5761353..0574d680932be6a9cdbb5dcced6f70335de93894 100644 (file)
@@ -59,7 +59,7 @@ proc gdb_target_cmd_ext { targetname serialport {additional_text ""} } {
                exp_continue
            }
            -re "unknown host.*$gdb_prompt" {
-               verbose "Couldn't look up $serialport"
+               verbose "Couldn't look up $serialport"
            }
            -re "Couldn't establish connection to remote.*$gdb_prompt $" {
                verbose "Connection failed"
@@ -545,9 +545,9 @@ proc gdbserver_exit { is_mi } {
                        exp_continue
                    }
                }
-               timeout {
-                   warning "Timed out waiting for EOF in server after $monitor_exit"
-               }
+              timeout {
+                  warning "Timed out waiting for EOF in server after $monitor_exit"
+              }
            }
        }
     }
@@ -747,7 +747,7 @@ proc gdb_debug_init { } {
       foreach entry [split $gdbserverdebug ,] {
        if { $entry == "replay" || $entry == "all"} {
          set replayfile [standard_output_file_with_gdb_instance gdbserver.replay]
-          send_gdb "set remotelogfile $replayfile\n" optional
+         send_gdb "set remotelogfile $replayfile\n" optional
          gdb_expect 10 {
            -re "$gdb_prompt $" {}
          }
index feee2db16043f889938a107bb21aef8ae85dd72f..3e32a52a6f4c1dd4a7f93d83533610af55e1a8ef 100644 (file)
@@ -1050,7 +1050,7 @@ namespace eval GenPerfTest {
        }
        verbose -log "_gen_sha1sum_for_inputs: summing $source_files $header_paths $inputs"
        set catch_result [catch {exec $CAT_PROGRAM $source_files $header_paths $inputs | $SHA1SUM_PROGRAM} output]
-        return [list $catch_result $output]
+       return [list $catch_result $output]
     }
 
     # Return the contents of TEXT_FILE.
index b8aadb65b0d6b1df57818589a901663a3dbdc39b..1b7d13ae787292f0537612e9b47236e1426f8ddf 100644 (file)
@@ -23,8 +23,8 @@ proc delete_memory_regions {} {
 
     gdb_test_multiple "delete mem" "delete mem" {
        -re "Delete all memory regions.*y or n.*$" {
-           send_gdb "y\n"
-           exp_continue
+          send_gdb "y\n"
+          exp_continue
        }
        -re "$gdb_prompt $" { }
     }
index eac9c47711f6d48361990269be969f7a7bb35dc2..b64c5862f2618732bb3205eb459dedcda21038e3 100644 (file)
@@ -2936,16 +2936,16 @@ proc foreach_mi_ui_mode { var_name body } {
 
     foreach var $modes {
        with_test_prefix "$var_name=$var" {
-           set code [catch {uplevel 1 $body} result]
+          set code [catch {uplevel 1 $body} result]
        }
 
        if {$code == 1} {
-           global errorInfo errorCode
-           return -code $code -errorinfo $errorInfo -errorcode $errorCode $result
+          global errorInfo errorCode
+          return -code $code -errorinfo $errorInfo -errorcode $errorCode $result
        } elseif {$code == 3} {
-           break
+          break
        } elseif {$code == 2} {
-           return -code $code $result
+          return -code $code $result
        }
     }
 }
index 2a5300e6dc08158c86242ff3b753ddeb3f15ebb6..b9a6a6a273bf8a44432a5a8d6917dc2384233d50 100644 (file)
@@ -53,18 +53,18 @@ gdb_caching_proc allow_opencl_tests {} {
     clean_restart "$executable"
     gdb_run_cmd
     gdb_expect 30 {
-        -re ".*$inferior_exited_re normally.*${gdb_prompt} $" {
-            verbose -log "\n$me: OpenCL support detected"
+       -re ".*$inferior_exited_re normally.*${gdb_prompt} $" {
+           verbose -log "\n$me: OpenCL support detected"
            set result 1
-        }
-        -re ".*$inferior_exited_re with code.*${gdb_prompt} $" {
-            verbose -log "\n$me: OpenCL support not detected"
+       }
+       -re ".*$inferior_exited_re with code.*${gdb_prompt} $" {
+           verbose -log "\n$me: OpenCL support not detected"
            set result 0
-        }
-        default {
-            verbose -log "\n$me OpenCL support not detected (default case)"
+       }
+       default {
+           verbose -log "\n$me OpenCL support not detected (default case)"
            set result 0
-        }
+       }
     }
     gdb_exit
     remote_file build delete $executable
index c39995f25da4131c898d7fc9d03d425d4d63061d..4d156e9edf3cdbe9724ccbeda2ff90bbc7df6a13 100644 (file)
@@ -121,8 +121,8 @@ main ()
          CHK (clGetProgramBuildInfo (program, device, CL_PROGRAM_BUILD_LOG,
                                      len, clbuild_log, NULL));
          fprintf (stderr, "clBuildProgram failed with:\n%s\n", clbuild_log);
-         free (clbuild_log);
-        }
+         free (clbuild_log);
+       }
       exit (EXIT_FAILURE);
   }
 
index 09af7bd48bf3a11f6868a5a093203e5c5478ea75..5962db5218a05846856d36a400c3196788c5a31e 100644 (file)
@@ -60,7 +60,7 @@ proc pascal_init {} {
        } elseif { [which $gpc_compiler] != 0 } {
            set pascal_compiler_is_gpc 1
            verbose -log "GNU Pascal compiler found"
-        } elseif { [which $fpc_compiler] != 0 } {
+       } elseif { [which $fpc_compiler] != 0 } {
            set pascal_compiler_is_fpc 1
            verbose -log "Free Pascal compiler found"
        }
@@ -158,17 +158,17 @@ proc gdb_compile_pascal {source destfile type options} {
     file delete $destfile
 
     if { $pascal_compiler_is_fpc == 1 } {
-        set result [fpc_compile $source $destfile $type $options]
+       set result [fpc_compile $source $destfile $type $options]
     } elseif { $pascal_compiler_is_gpc == 1 } {
-        set result [gpc_compile $source $destfile $type $options]
+       set result [gpc_compile $source $destfile $type $options]
     } else {
        unsupported "no pascal compiler found"
        return "No pascal compiler. Compilation failed."
     }
 
     if {![file exists $destfile]} {
-        unsupported "Pascal compilation failed: $result"
-        return "Pascal compilation failed."
+       unsupported "Pascal compilation failed: $result"
+       return "Pascal compilation failed."
     }
 }
 
index a629ff64bba0a8d264e9a01e4177087f09557527..9e0e689d358eec9d3bd8ee423e98c3ecd8f04e35 100755 (executable)
@@ -224,7 +224,7 @@ f_collect_probes()
                       offset=$((offset + 3))
                   fi
               fi
-              
+
               # Determine the base address of the probe and its
               # corresponding function name.
               funcs=$($NM -td $objfile | $EGREP "^[0-9]+ T " \
@@ -295,22 +295,22 @@ f_collect_probes_args()
         # described in the d-script file and they don't receive any
         # argument.
         test "$type" = "p" || continue
-        
+
         # Names are mangled in d-script files to make it possible to
         # have underscore characters as part of the provider name and
         # probe name.
         m_provider=$(printf %s $provider | $SED -e 's/_/__/g')
         m_name=$(printf %s $name | $SED -e 's/_/__/g')
-        
+
         # Ignore this probe if the d-script file does not describe its
         # provider.
         $EGREP -q "provider +$m_provider" $dscript || continue
-        
+
         # Look for the line containing the description of the probe.
         # If we can't find it then ignore this probe.
         line=$($EGREP "^ *probe +$m_name *\(.*\);" $dscript)
         test -n "$line" || continue
-        
+
         # Ok, extract the argument types from the probe prototype.
         # This is fragile as hell as it requires the prototype to be
         # in a single line.
@@ -397,9 +397,9 @@ f_gen_dof_sect_header()
 #   probes, base_probes, providers, probes_args, BCOUNT
 
 f_gen_dof_program()
-{   
+{
     ###### Variables used to cache information needed later.
-    
+
     # Number of section headers in the generated DOF program.
     dof_secnum=0
     # Offset of section headers in the generated DOF program, in bytes.
@@ -409,7 +409,7 @@ f_gen_dof_program()
     strtab_size=0
     offtab_size=0
     eofftab_size=0
-    
+
     # Offsets of the STRTAB, OFFTAB EOFFTAB and PROBES sections in the
     # generated DOF program.  In bytes.
     strtab_offset=0
@@ -417,7 +417,7 @@ f_gen_dof_program()
     eofftab_offset=0
     argtab_offset=0
     probes_offset=0
-    
+
     # Indexes of the section headers of the STRTAB, OFFTAB, EOFFTAB and
     # PROBES sections in the sections array.
     strtab_sect_index=0
@@ -430,7 +430,7 @@ f_gen_dof_program()
     # Lines: PROVIDER(S) NAME(S) BASE(D) (DOF_OFFSET(D)|DOF_EOFFSET(D))
     probes_dof_offsets=
     probes_dof_eoffsets=
-    
+
     # Offsets in the STRTAB section for the first type of base probes.
     # Record per line: PROVIDER(S) NAME(S) BASE(D) OFFSET(D)
     probes_dof_types=
@@ -443,13 +443,13 @@ f_gen_dof_program()
     # Offsets of the base-probe names in the provider's STRTAB section.
     # Lines: PROVIDER(S) NAME(S) BASE(D) OFFSET(D)
     probes_dof_names=
-    
+
     # Offsets of the provider sections in the DOF program.
     # Lines: PROVIDER(S) OFFSET(D)
     providers_offsets=
 
     ###### Generation phase.
-    
+
     # The header of the DOF program contains a `struct
     # dtrace_dof_hdr'.  Record its size, but it is written at the end
     # of the function.
@@ -497,7 +497,7 @@ f_gen_dof_program()
                     arg=$(printf %s "$args" | $CUT -d: -f$(($n + 3)))
                     f_gen_asm ".asciz \"${arg}\""
                     off=$(($off + ${#arg} + 1))
-                done                
+                done
             done <<EOF
 $probes_args
 EOF
@@ -569,7 +569,7 @@ EOF
         # base address.
         probes_sect_index=$dof_secnum
         dof_secnum=$((dof_secnum + 1))
-        probes_offset=$BCOUNT        
+        probes_offset=$BCOUNT
         num_base_probes=$(printf %s\\n "$base_probes" | $WC -l)
         while read provider name base base_sym; do
             name_offset=$(printf %s\\n "$probes_dof_names" \
@@ -577,7 +577,7 @@ EOF
 
             num_offsets=$(printf %s\\n "$probes_dof_offsets" \
                           | $EGREP "^$provider $name [0-9]+ " | $WC -l)
-            
+
             first_offset=0
             test "$num_offsets" -gt 0 && \
               first_offset=$(printf %s\\n "$probes_dof_offsets" \
@@ -592,13 +592,13 @@ EOF
 
             num_args=$(printf %s "$probes_args" \
                        | $EGREP "^$provider:$name:" | $CUT -d: -f3 | $HEAD -1)
+
             first_type=$(printf %s "$probes_dof_types" \
                          | $EGREP "^$provider $name $base " | $CUT -d' ' -f4 | $HEAD -1)
 
             reloctype=R_X86_64_GLOB_DAT
             test "$objbits" = "32" && reloctype=R_386_32
-            
+
             f_gen_asm ""
             f_gen_asm "/* dtrace_dof_probe for ${provider}:${name} at ${base_sym}  */"
             f_gen_asm ".balign 8"
@@ -679,7 +679,7 @@ EOF
                           $dof_sect_type_prargs \
                           4 1 $argtab_offset 0
     f_incr_bcount $dof_secsize; f_align_bcount 8
-    
+
     while read provider; do
         provider_offset=$(printf %s "$providers_offsets" \
                           | $EGREP "^$provider " | $CUT -d' ' -f2)
@@ -804,7 +804,7 @@ EOF
 f_patch_objfile()
 {
     objfile=$1
-    
+
     # Several x86_64 instruction opcodes, in octal.
     x86_op_nop=$(printf \\220)
     x86_op_ret=$(printf \\303)
@@ -813,7 +813,7 @@ f_patch_objfile()
     x86_op_rex_rax=$(printf \\110)
     x86_op_xor_eax_0=$(printf \\063)
     x86_op_xor_eax_1=$(printf \\300)
-    
+
     # Figure out the file offset of the text section in the object
     # file.
     text_off=0x$(objdump -j .text -h $objfile \
@@ -876,7 +876,7 @@ f_patch_objfile()
     done <<EOF
 $probes
 EOF
-    
+
     # Finally, we have to remove the __dtrace_* and __dtraceenabled_*
     # symbols from the object file, along with their respective
     # relocations.
@@ -917,7 +917,7 @@ f_gen_header_file()
     test -z "$provider" \
         && f_panic "unable to parse the provider name from $dfile."
     u_provider=$(printf %s "$provider" | $TR a-z A-Z | $TR -s _)
-    
+
     cat $dfile | $EGREP "^ *probe +[a-zA-Z_]+ *\(.*\);" | \
         while read line; do
             # Extract the probe name.
@@ -937,7 +937,7 @@ f_gen_header_file()
 
             echo "#if _DTRACE_VERSION"
             echo ""
-            
+
             # Emit the macros for the probe.
             echo "#define ${u_provider}_${u_name}($args) \\"
             echo "   __dtrace_${provider}___${name}($args)"
@@ -1012,7 +1012,7 @@ if test "$genelf" -gt 0; then
 
     # Collect probe information from the input object file and the
     # d-script.
-    f_collect_probes $objfile    
+    f_collect_probes $objfile
     f_collect_probes_args $dfile
 
     # Generate the assembly code and assemble the DOF program in
@@ -1023,7 +1023,7 @@ fi
 
 if test "$genheader" -gt 0; then
     test -n "$ofile" || { echo "Please specify an output file with -o."; exit 2; }
-    
+
     # In this mode no extra arguments shall be present.
     test "$#" -ne "0" && f_usage
 
index beadd61e292a3700e7f7d7126d75e115799f0795..af798e8b4b8a121785c1dd8a4d7aa955d28f93d6 100644 (file)
@@ -53,7 +53,7 @@ proc file_copy {src dest} {
        fail $test
        return 0
     } else {
-       pass $test
+       pass $test
        return 1
     }
 }
index 0473d69e624ad64bcca3a2ad37832b1913938b33..d96a488ed23cce30abcf4272bdead09ebc52901e 100644 (file)
@@ -97,4 +97,3 @@ proc default_prompt_gdb_start { } {
 proc prompt_gdb_start { } {
     default_prompt_gdb_start
 }
-
index 27587e5df03494b68ce078ea074bddd78f6be2c6..9fb5b18a5988f187eef05a174a925c0b51f5c542 100644 (file)
@@ -61,11 +61,11 @@ proc gdb_range_stepping_enabled { } {
     set command "set range-stepping on"
     set message "probe range-stepping support"
     gdb_test_multiple $command $message {
-        -re "Range stepping is not supported.*\r\n$gdb_prompt $" {
+       -re "Range stepping is not supported.*\r\n$gdb_prompt $" {
            pass $message
            return 0
        }
-        -re "^$command\r\n$gdb_prompt $" {
+       -re "^$command\r\n$gdb_prompt $" {
            pass $message
            return 1
        }
index c4c9ee2a7e6cb80e4f36508bdc9d55fc754e0758..9433e03bcfd86a64d853b40fdc3d4f2b00511a5b 100644 (file)
@@ -80,7 +80,7 @@ read (int fd, void *buf, size_t count)
   if (read2 == NULL)
     {
       /* Use setenv (v, "", 1) rather than unsetenv (v) to work around
-         https://core.tcl-lang.org/tcl/tktview?name=67fd4f973a "incorrect
+        https://core.tcl-lang.org/tcl/tktview?name=67fd4f973a "incorrect
         results of 'info exists' when unset env var in one interp and check
         for existence from another interp".  */
       setenv ("LD_PRELOAD", "", 1);
index 6a1c9dbdf56cc7175c70280a8054febf7ae1d4a2..7bafc2a1bf720a1e7e115c554d4a5dc24b2824c3 100644 (file)
@@ -198,7 +198,7 @@ proc ton::obj {json i} {
 
     set i [trr $json $i]
     if {!$i} {
-       error "json string invalid:0: exhausted while parsing object."
+       error "json string invalid:0: exhausted while parsing object."
     }
     if {[string index $json $i-1] eq "\{"} {
        return [list [incr i -1] o]