3 * gdb.gdb/selftest.exp: Remove support for gpl v1 and v2 gdb's.
7 * gdb.arch/spu-ls.exp: New file.
8 * gdb.arch/spu-ls.c: Likewise.
12 * gdb.threads/thread-specific.exp: Add tests of $_thread.
16 * gdb.base/gdb11531.exp: Respect gdb,no_hardware_watchpoints flag.
17 * gdb.base/watch-cond.exp: Likewise.
18 * gdb.python/py-breakpoint.exp: Likewise.
22 * gdb.multi/base.exp, gdb.multi/bkpt-multi-exec.exp: Use
23 clean_restart, make sure every test has a distinct message, and
24 that messages don't include the executable' full path.
28 * gdb.arch/i386-size.exp: Updated expected output for
29 DISASSEMBLY_OMIT_FNAME.
34 * gdb.base/watch-notconst.c: New file.
35 * gdb.base/watch-notconst.S: New file.
36 * gdb.base/watch-notconst2.c: New file.
37 * gdb.base/watch-notconst2.S: New file.
38 * gdb.base/watch-notconst.exp: New file.
39 * gdb.base/watchpoint.c (global_ptr_ptr): New variable.
40 (func4): Add operations on `global_ptr_ptr'.
41 * gdb.base/watchpoint.exp (test_constant_watchpoint): New
42 routine to test watchpoints created with a constant expression.
43 (test_inaccessible_watchpoint): Include tests for watchpoints
44 created with a constant expression.
48 * gdb.disasm/t01_mov.exp, gdb.disasm/t02_mova.exp,
49 gdb.disasm/t03_add.exp, gdb.disasm/t04_sub.exp,
50 gdb.disasm/t05_cmp.exp, gdb.disasm/t06_ari2.exp,
51 gdb.disasm/t07_ari3.exp, gdb.disasm/t08_or.exp,
52 gdb.disasm/t09_xor.exp, gdb.disasm/t10_and.exp,
53 gdb.disasm/t11_logs.exp, gdb.disasm/t12_bit.exp,
54 gdb.disasm/t13_otr.exp: Examine instruction at label `start' instead
59 * gdb.mi/mi-nonstop.exp: Do not call perror if non-stop mode is
60 not supported on the target.
61 * gdb.mi/mi-nonstop-exit.exp: Likewise.
62 * gdb.mi/mi-ns-stale-regcache.exp: Likewise.
63 * gdb.mi/mi-nsintrall.exp: Likewise.
64 * gdb.mi/mi-nsmoribund.exp: Likewise.
65 * gdb.mi/mi-nsthrexec.exp: Likewise.
69 * gdb.base/permissions.exp: New file.
73 * gdb.base/valgrind-db-attach.exp: Fail gracefully if valgrind
74 does not support ELF executable class.
78 * gdb.trace/packetlen.exp: Respect gdb_target_supports_trace.
82 * lib/gdb.exp (gdb_run_cmd): Return on $gdb_prompt.
83 (runto): Catch "The target does not support running in non-stop mode.".
87 * gdb.base/setshow.exp (set language asm): Don't use
88 gdb_test_no_output, fails on some targets.
92 * gdb.cp/cpexprs.exp: Skip test on spu*-*-*.
93 * gdb.cp/pr9167.exp: Likewise.
97 * gdb.python/py-breakpoint.exp: Handle software watchpoints as well.
101 * gdb.base/solib-corrupted.exp: Respect skip_shlib_tests.
105 * gdb.base/charset.c (main): Make sure malloc gets linked in.
109 PR gdb/9977, PR exp/11636::
110 * gdb.dwarf2/pieces.exp (pieces_test_f3): Remove kfail.
111 (pieces_test_f6): Update expected output.
115 * gdb.base/moribund-step.exp: New.
119 * gdb.ada/assign_1.exp: Use ".*" instead of "" as wildcard regexp.
120 * gdb.ada/boolean_expr.exp:
121 * gdb.ada/frame_args.exp: Ditto.
122 * gdb.ada/lang_switch.exp: Ditto.
123 * gdb.ada/ptype_arith_binop.exp: Ditto.
124 * gdb.ada/ref_param.exp: Ditto.
125 * gdb.ada/type_coercion.exp:Ditto.
127 * gdb.asm/asm-source.exp: Ditto.
129 * gdb.base/attach.exp: Ditto.
130 * gdb.base/bitfields2.exp: Ditto.
131 * gdb.base/call-signal-resume.exp: Ditto.
132 * gdb.base/callfuncs.exp: Ditto.
133 * gdb.base/commands.exp: Ditto.
134 * gdb.base/dbx.exp: Ditto.
135 * gdb.base/default.exp: Ditto.
136 * gdb.base/dump.exp: Ditto.
137 * gdb.base/exprs.exp: Ditto.
138 * gdb.base/freebpcmd.exp: Ditto.
139 * gdb.base/interrupt.exp: Ditto.
140 * gdb.base/list.exp: Ditto.
141 * gdb.base/long_long.exp: Ditto.
142 * gdb.base/maint.exp: Ditto.
143 * gdb.base/ptype.exp: Ditto.
144 * gdb.base/return.exp: Ditto.
145 * gdb.base/setshow.exp: Ditto.
146 * gdb.base/sigbpt.exp: Ditto.
147 * gdb.base/sigrepeat.exp: Ditto.
149 * gdb.cp/classes.exp: Ditto.
151 * gdb.dwarf2/dw2-restore.exp: Ditto.
153 * gdb.gdb/selftest.exp: Ditto.
155 * gdb.multi/base.exp: Ditto.
156 * gdb.multi/bkpt-multi-exec.exp: Ditto.
158 * gdb.python/py-block.exp: Ditto.
159 * gdb.python/py-prettyprint.exp: Ditto.
160 * gdb.python/py-template.exp: Ditto.
162 * gdb.server/ext-attach.exp: Ditto.
163 * gdb.server/ext-run.exp: Ditto.
164 * gdb.server/server-mon.exp: Ditto.
166 * gdb.threads/fork-thread-pending.exp: Ditto.
167 * gdb.threads/hand-call-in-threads.exp: Ditto.
168 * gdb.threads/interrupted-hand-call.exp: Ditto.
169 * gdb.threads/linux-dp.exp: Ditto.
170 * gdb.threads/manythreads.exp: Ditto.
171 * gdb.threads/print-threads.exp: Ditto.
172 * gdb.threads/pthreads.exp: Ditto.
173 * gdb.threads/schedlock.exp: Ditto.
174 * gdb.threads/thread-unwindonsignal.exp: Ditto.
175 * gdb.threads/threadapply.exp: Ditto.
179 * gdb.ada/exec_changed.exp:
180 Use ".*" instead of "" as wildcard regexp.
182 * gdb.base/async.exp: Use ".*" instead of "" as wildcard regexp.
183 * gdb.base/call-ar-st.exp: Ditto.
184 * gdb.base/checkpoint.exp: Ditto.
185 * gdb.base/default.exp: Ditto.
186 * gdb.base/dump.exp: Ditto.
187 * gdb.base/ending-run.exp: Ditto.
188 * gdb.base/fileio.exp: Ditto.
189 * gdb.base/miscexprs.exp: Ditto.
190 * gdb.base/pointers.exp: Ditto.
191 * gdb.base/readline.exp: Ditto.
192 * gdb.base/reread.exp: Ditto.
193 * gdb.base/restore.exp: Ditto.
194 * gdb.base/shlib-call.exp: Ditto.
195 * gdb.base/valgrind-db-attach.exp: Ditto.
196 * gdb.base/volatile.exp: Ditto.
197 * gdb.base/watchpoints.exp: Ditto.
199 * gdb.cp/classes.exp: Use ".*" instead of "" as wildcard regexp.
201 * gdb.python/py-frame.exp: Use ".*" instead of "" as wildcard regexp.
202 * gdb.python/py-value.exp: Ditto.
204 * gdb.trace/backtrace.exp: Use ".*" instead of "" as wildcard regexp.
205 * gdb.trace/circ.exp: Ditto.
206 * gdb.trace/collection.exp: Ditto.
207 * gdb.trace/packetlen.exp: Ditto.
208 * gdb.trace/passc-dyn.exp: Ditto.
209 * gdb.trace/report.exp: Ditto.
210 * gdb.trace/tfile.exp: Ditto.
211 * gdb.trace/tfind.exp: Ditto.
212 * gdb.trace/while-dyn.exp: Ditto.
216 * gdb.python/python.exp (pythonX.Y/lib-dynload/*.so): New.
221 * gdb.dwarf2/dw2-op-call.exp, gdb.dwarf2/dw2-op-call.S: New.
225 * gdb.cp/koenig.exp: Test for ADL operators.
226 * gdb.cp/koenig.cc: Added ADL operators.
227 * gdb.cp/operator.exp: New test.
228 * gdb.cp/operator.cc: New test.
232 * gdb.base/attach.exp: Replace gdb_test_multiple with gdb_test.
233 * gdb.base/pending.exp: Ditto.
235 * gdb.cp/pr-1210.exp: Add message string to gdb_test_multiple.
239 * gdb.python/py-prettyprint.exp: Add new test for enabled and
241 * gdb.python/py-prettyprint.py (disable_lookup_function): New function.
242 (enable_lookup_function): New function.
246 * gdb.python/py-value.exp (test_value_hash): Don't test equality
251 * gdb.base/commands.exp (add printf tbreak command): Remove trailing
253 * gdb.gdb/complaints.exp (empty non-verbose non-noisy clear)
254 (empty verbose non-noisy clear, empty verbose noisy clear)
255 (empty non-verbose noisy clear): Likewise.
259 * gdb.base/commands.exp: Replace gdb_test with gdb_test_no_output.
260 * gdb.base/display.exp: Ditto.
261 * gdb.base/find.exp: Ditto.
262 * gdb.base/ifelse.exp: Ditto.
263 * gdb.base/multi-forks.exp: Ditto.
264 * gdb.base/recurse.exp: Ditto.
265 * gdb.base/setshow.exp: Ditto.
266 * gdb.base/value-double-free.exp: Ditto.
267 * gdb.base/watch-vfork.exp: Ditto.
268 * gdb.base/watch_thread_num.exp: Ditto.
269 * gdb.base/watchpoint-solib.exp: Ditto.
270 * gdb.base/watchpoint.exp: Ditto.
271 * gdb.base/watchpoints.exp: Ditto.
273 * gdb.cp/classes.exp: Replace gdb_test with gdb_test_no_output.
274 * gdb.cp/overload.exp: Ditto.
275 * gdb.cp/virtfunc.exp: Ditto.
277 * gdb.python/py-value.exp: Replace gdb_test with gdb_test_no_output.
279 * gdb.reverse/watch-precsave.exp:
280 Replace gdb_test with gdb_test_no_output.
282 * gdb.threads/attach-into-signal.exp:
283 Replace gdb_test with gdb_test_no_output.
284 * gdb.threads/local-watch-wrong-thread.exp: Ditto.
285 * gdb.threads/watchthreads.exp: Ditto.
286 * gdb.threads/watchthreads2.exp: Ditto.
288 * gdb.trace/deltrace.exp: Replace gdb_test with gdb_test_no_output.
289 * gdb.trace/tfind.exp: Ditto.
293 * lib/gdb.exp (gdb_test_no_output): Do not emit pass for
294 successful test if message is the empty string.
298 * gdb.fortran/module.exp (stopped language detection): New test.
302 Support DW_TAG_module as separate namespaces.
303 * gdb.fortran/library-module.exp, gdb.fortran/library-module-main.f90,
304 gdb.fortran/library-module-lib.f90: New.
305 * gdb.fortran/module.exp: Replace startup by a prepare_for_testing call.
307 (continue to breakpoint: i-is-1, print var_i value 1)
308 (continue to breakpoint: i-is-2, print var_i value 2)
309 (continue to breakpoint: a-b-c-d, print var_a, print var_b, print var_c)
310 (print var_d, print var_i value 14, ptype modmany, complete `modm)
311 (complete `modmany, complete `modmany`, complete `modmany`var)
312 (show language, setting breakpoint at module): New tests.
313 * gdb.fortran/module.f90 (module mod): Remove.
314 (module mod1, module mod2, module modmany, subroutine sub1)
315 (subroutine sub2, program module): New.
319 * gdb.cp/ref-types.exp (pass, pass, pass): Rename to ...
320 (print value of rUC, print value of rI, print value of UI): ... here.
321 * gdb.cp/anon-union.exp (pass): Rename to ...
322 (print z 2): ... here.
326 * gdb.trace/actions.exp: Use gdb_test_no_output.
327 * gdb.trace/circ.exp: Ditto.
328 * gdb.trace/packetlen.exp: Ditto.
329 * gdb.trace/save-trace.exp: Ditto.
330 * gdb.trace/tracecmd.exp: Ditto.
331 * gdb.trace/tsv.exp: Ditto.
333 * gdb.threads/fork-thread-pending.exp: Use gdb_test_no_output.
334 * gdb.threads/hand-call-in-thraeds.exp: Ditto.
335 * gdb.threads/local-watch-wrong-thread.exp: Ditto.
336 * gdb.threads/manythreads.exp: Ditto.
337 * gdb.threads/print-threads.exp: Ditto.
338 * gdb.threads/pthreads.exp: Ditto.
339 * gdb.threads/schedlock.exp: Ditto.
340 * gdb.threads/staticthreads.exp: Ditto.
341 * gdb.threads/thread-specific.exp: Ditto.
342 * gdb.threads/thread-unwindonsignal.exp: Ditto.
343 * gdb.threads/threadapply.exp: Ditto.
344 * gdb.threads/watchthreads.exp: Ditto.
345 * gdb.threads/watchthreads2.exp: Ditto.
347 * gdb.python/py-block.exp: Use gdb_test_no_output.
348 * gdb.python/py-prettyprint.exp: Ditto.
349 * gdb.python/py-template.exp: Ditto.
350 * gdb.python/py-value.exp: Ditto.
352 * gdb.reverse/watch-precsave.exp: Use gdb_test_no_output.
353 * gdb.reverse/watch-reverse.exp: Ditto.
355 * gdb.server/ext-attach.exp: Use gdb_test_no_output.
356 * gdb.server/ext-run.exp: Ditto.
358 * gdb.dwarf2/dw2-basic.exp: Use gdb_test_no_output.
359 * gdb.dwarf2/dw2-compressed.exp: Ditto.
360 * gdb.dwarf2/dw2-intercu.exp: Ditto.
361 * gdb.dwarf2/dw2-intermix.exp: Ditto.
362 * gdb.dwarf2/dw2-producer.exp: Ditto.
363 * gdb.dwarf2/mac-fileno.exp: Ditto.
365 * gdb.gdb/observer.exp: Use gdb_test_no_output.
366 * gdb.gdb/selftest.exp: Ditto.
368 * gdb.multi/base.exp: Use gdb_test_no_output.
370 * gdb.opt/inline-cmds.exp: Use gdb_test_no_output.
374 * gdb.cp/ref-types.exp (print value of UI): Remove excessive newline.
378 * gdb.cp/class2.exp: Use gdb_test_no_output.
379 * gdb.cp/classes.exp: Ditto.
380 * gdb.cp/extern-c.exp: Ditto.
381 * gdb.cp/inherit.exp: Ditto.
382 * gdb.cp/maint.exp: Ditto.
383 * gdb.cp/mb-inline.exp: Ditto.
384 * gdb.cp/mb-templates.exp: Ditto.
385 * gdb.cp/method2.exp: Ditto.
386 * gdb.cp/misc.exp: Ditto.
387 * gdb.cp/ovldbreak.exp: Ditto.
388 * gdb.cp/punctuator.exp: Ditto.
389 * gdb.cp/templates.exp: Ditto.
390 * gdb.cp/virtbase.exp: Ditto.
392 * gdb.threads/attach-stopped.exp:
393 Replace uses of send_gdb / gdb_expect.
394 * gdb.threads/attachstop-mt.exp:
395 Replace uses of send_gdb / gdb_expect.
396 * gdb.threads/gcore-thread.exp:
397 Replace uses of send_gdb / gdb_expect.
398 * gdb.threads/hand-call-in-threads.exp:
399 Replace uses of send_gdb / gdb_expect.
400 * gdb.threads/linux-dp.exp: Replace uses of send_gdb / gdb_expect.
401 * gdb.threads/print-threads.exp:
402 Replace uses of send_gdb / gdb_expect.
403 * gdb.threads/pthreads.exp: Replace uses of send_gdb / gdb_expect.
404 * gdb.threads/schedlock.exp: Replace uses of send_gdb / gdb_expect.
405 * gdb.threads/sigthread.exp: Replace uses of send_gdb / gdb_expect.
407 * gdb.trace/actions.exp: Replace uses of send_gdb / gdb_expect.
408 * gdb.trace/backtrace.exp: Replace uses of send_gdb / gdb_expect.
409 * gdb.trace/collection.exp: Replace uses of send_gdb / gdb_expect.
410 * gdb.trace/deltrace.exp: Replace uses of send_gdb / gdb_expect.
411 * gdb.trace/infotrace.exp: Replace uses of send_gdb / gdb_expect.
412 * gdb.trace/limits.exp: Replace uses of send_gdb / gdb_expect.
413 * gdb.trace/report.exp: Replace uses of send_gdb / gdb_expect.
414 * gdb.trace/save-trace.exp: Replace uses of send_gdb / gdb_expect.
415 * gdb.trace/tfind.exp: Replace uses of send_gdb / gdb_expect.
416 * gdb.trace/tracecmd.exp: Replace uses of send_gdb / gdb_expect.
417 * gdb.trace/tsv.exp: Replace uses of send_gdb / gdb_expect.
421 * gdb.cp/re-set-overloaded.exp, gdb.cp/re-set-overloaded.cc: New.
425 * gdb.cp/koenig.exp: Added new test case.
426 * gdb.cp/koenig.cc: Ditto.
430 * gdb.base/arithmet.exp: Use gdb_test_no_output.
431 * gdb.base/arrayidx.exp: Ditto.
432 * gdb.base/attach.exp: Ditto.
433 * gdb.base/auxv.exp: Ditto.
434 * gdb.base/bigcre.exp: Ditto.
435 * gdb.base/break-always.exp: Ditto.
436 * gdb.base/break-interp.exp: Ditto.
437 * gdb.base/break.exp: Ditto.
438 * gdb.base/breakpoint-shadow.exp: Ditto.
439 * gdb.base/call-ar-st.exp: Ditto.
440 * gdb.base/call-sc.exp: Ditto.
441 * gdb.base/call-signal-resume.exp: Ditto.
442 * gdb.base/callfuncs.exp: Ditto.
443 * gdb.base/catch-syscall.exp: Ditto.
444 * gdb.base/charset.exp: Ditto.
445 * gdb.base/code-expr.exp: Ditto.
446 * gdb.base/commands.exp: Ditto.
447 * gdb.base/cond-expr.exp: Ditto.
448 * gdb.base/condbreak.exp: Ditto.
449 * gdb.base/cursal.exp: Ditto.
450 * gdb.base/cvexpr.exp: Ditto.
451 * gdb.base/default.exp: Ditto.
452 * gdb.base/del.exp: Ditto.
453 * gdb.base/detach.exp: Ditto.
454 * gdb.base/display.exp: Ditto.
455 * gdb.base/ena-dis-br.exp: Ditto.
456 * gdb.base/eval-skip.exp: Ditto.
457 * gdb.base/foll-fork.exp: Ditto.
458 * gdb.base/foll-vfork.exp: Ditto.
459 * gdb.base/frame-args.exp: Ditto.
460 * gdb.base/funcargs.exp: Ditto.
461 * gdb.base/gcore-buffer-overflow.exp: Ditto.
462 * gdb.base/gdbvars.exp: Ditto.
463 * gdb.base/help.exp: Ditto.
464 * gdb.base/ifelse.exp: Ditto.
465 * gdb.base/included.exp: Ditto.
466 * gdb.base/list.exp: Ditto.
467 * gdb.base/macscp.exp: Ditto.
468 * gdb.base/maint.exp: Ditto.
469 * gdb.base/multi-fork.exp: Ditto.
470 * gdb.base/overlays.exp: Ditto.
471 * gdb.base/page.exp: Ditto.
472 * gdb.base/pending.exp: Ditto.
473 * gdb.base/pointers.exp: Ditto.
474 * gdb.base/pr11022.exp: Ditto.
475 * gdb.base/prelink.exp: Ditto.
476 * gdb.base/printcmds.exp: Ditto.
477 * gdb.base/psymtab.exp: Ditto.
478 * gdb.base/randomize.exp: Ditto.
479 * gdb.base/relational.exp: Ditto.
480 * gdb.base/relocate.exp: Ditto.
481 * gdb.base/remote.exp: Ditto.
482 * gdb.base/sepdebug.exp: Ditto.
483 * gdb.base/set-lang-auto.exp: Ditto.
484 * gdb.base/setshow.exp: Ditto.
485 * gdb.base/setvar.exp: Ditto.
486 * gdb.base/signals.exp: Ditto.
487 * gdb.base/signull.exp: Ditto.
488 * gdb.base/sigstep.exp: Ditto.
489 * gdb.base/sizeof.exp: Ditto.
490 * gdb.base/solib-disc.exp: Ditto.
491 * gdb.base/store.exp: Ditto.
492 * gdb.base/structs.exp: Ditto.
493 * gdb.base/structs2.exp: Ditto.
494 * gdb.base/subst.exp: Ditto.
495 * gdb.base/term.exp: Ditto.
496 * gdb.base/trace-commands.exp: Ditto.
497 * gdb.base/unwindonsignal.exp: Ditto.
498 * gdb.base/valgrind-db-attach.exp: Ditto.
499 * gdb.base/varargs.exp: Ditto.
500 * gdb.base/watch-cond.exp: Ditto.
501 * gdb.base/watch_thread_num.exp: Ditto.
502 * gdb.base/watchpoint-cond-gone.exp: Ditto.
503 * gdb.base/watchpoint.exp: Ditto.
504 * gdb.base/whatis-exp.exp: Ditto.
508 * gdb.cp/annota2.exp: Replace uses of send_gdb / gdb_expect.
509 * gdb.cp/annota3.exp: Replace uses of send_gdb / gdb_expect.
510 * gdb.cp/anon-union.exp: Replace uses of send_gdb / gdb_expect.
511 * gdb.cp/cplusfuncs.exp: Replace uses of send_gdb / gdb_expect.
512 * gdb.cp/demangle.exp: Replace uses of send_gdb / gdb_expect.
513 * gdb.cp/formatted-ref.exp: Replace uses of send_gdb / gdb_expect.
514 * gdb.cp/local.exp: Replace uses of send_gdb / gdb_expect.
515 * gdb.cp/method.exp: Replace uses of send_gdb / gdb_expect.
516 * gdb.cp/misc.exp: Replace uses of send_gdb / gdb_expect.
517 * gdb.cp/namespace.exp: Replace uses of send_gdb / gdb_expect.
518 * gdb.cp/ovldbreak.exp: Replace uses of send_gdb / gdb_expect.
519 * gdb.cp/pr-1023.exp: Replace uses of send_gdb / gdb_expect.
520 * gdb.cp/ref-types.exp: Replace uses of send_gdb / gdb_expect.
521 * gdb.cp/templates.exp: Replace uses of send_gdb / gdb_expect.
522 * gdb.cp/userdef.exp: Replace uses of send_gdb / gdb_expect.
526 * gdb.base/commands.exp (begin commands on watch): Remove excessive
528 * gdb.mi/mi-nsintrall.exp (-gdb-show non-stop): Likewise.
529 * gdb.java/jmisc.exp (p *args\n): Rename to ...
530 (p *args): ... here and remove excessive trailing newline.
534 * gdb.base/subst.exp: Fix call to gdb_test with empty message.
538 Accept the new Linux kernel "t (tracing stop)" string.
539 * gdb.threads/watchthreads-reorder.c (thread1_func, thread2_func):
541 (state_wait) <T (tracing stop)>: New.
542 (main): Update the state_wait expect string.
546 * limits.c, limits.exp: Delete files.
547 * Makefile.in (clean mostlyclean): Adjust.
548 * tracecmd.exp: Adjust.
552 * gdb.base/tui-layout.exp: New.
556 * gdb.reverse/break-precsave.exp:
557 Replace uses of send_gdb / gdb_expect.
558 * gdb.reverse/break-reverse.exp:
559 Replace uses of send_gdb / gdb_expect.
560 * gdb.reverse/consecutive-precsave.exp:
561 Replace uses of send_gdb / gdb_expect.
562 * gdb.reverse/consecutive-reverse.exp:
563 Replace uses of send_gdb / gdb_expect.
564 * gdb.reverse/finish-precsave.exp:
565 Replace uses of send_gdb / gdb_expect.
566 * gdb.reverse/finish-reverse.exp:
567 Replace uses of send_gdb / gdb_expect.
568 * gdb.reverse/i386-precsave.exp:
569 Replace uses of send_gdb / gdb_expect.
570 * gdb.reverse/i386-reverse.exp:
571 Replace uses of send_gdb / gdb_expect.
572 * gdb.reverse/i386-sse-reverse.exp:
573 Replace uses of send_gdb / gdb_expect.
574 * gdb.reverse/i387-env-reverse.exp:
575 Replace uses of send_gdb / gdb_expect.
576 * gdb.reverse/i387-stack-reverse.exp:
577 Replace uses of send_gdb / gdb_expect.
578 * gdb.reverse/machinestate-precsave.exp:
579 Replace uses of send_gdb / gdb_expect.
580 * gdb.reverse/machinestate.exp:
581 Replace uses of send_gdb / gdb_expect.
582 * gdb.reverse/sigall-precsave.exp:
583 Replace uses of send_gdb / gdb_expect.
584 * gdb.reverse/sigall-reverse.exp:
585 Replace uses of send_gdb / gdb_expect.
586 * gdb.reverse/solib-precsave.exp:
587 Replace uses of send_gdb / gdb_expect.
588 * gdb.reverse/solib-reverse.exp:
589 Replace uses of send_gdb / gdb_expect.
590 * gdb.reverse/step-precsave.exp:
591 Replace uses of send_gdb / gdb_expect.
592 * gdb.reverse/step-reverse.exp:
593 Replace uses of send_gdb / gdb_expect.
594 * gdb.reverse/until-precsave.exp:
595 Replace uses of send_gdb / gdb_expect.
596 * gdb.reverse/until-reverse.exp:
597 Replace uses of send_gdb / gdb_expect.
598 * gdb.reverse/watch-precsave.exp:
599 Replace uses of send_gdb / gdb_expect.
600 * gdb.reverse/watch-reverse.exp:
601 Replace uses of send_gdb / gdb_expect.
605 * gdb.base/sepdebug.exp (info silent break bp_location1): Fix racy
610 * gdb.base/break.exp: Replace uses of send_gdb / gdb_expect.
611 * gdb.base/relational.exp: Replace uses of send_gdb / gdb_expect.
612 * gdb.base/relocate.exp: Replace uses of send_gdb / gdb_expect.
613 * gdb.base/restore.exp: Replace uses of send_gdb / gdb_expect.
614 * gdb.base/return.exp: Replace uses of send_gdb / gdb_expect.
615 * gdb.base/return2.exp: Replace uses of send_gdb / gdb_expect.
616 * gdb.base/sepdebug.exp: Replace uses of send_gdb / gdb_expect.
617 * gdb.base/setshow.exp: Replace uses of send_gdb / gdb_expect.
618 * gdb.base/setvar.exp: Replace uses of send_gdb / gdb_expect.
619 * gdb.base/shlib-call.exp: Replace uses of send_gdb / gdb_expect.
620 * gdb.base/shreloc.exp: Replace uses of send_gdb / gdb_expect.
621 * gdb.base/sigall.exp: Replace uses of send_gdb / gdb_expect.
622 * gdb.base/sigbpt.exp: Replace uses of send_gdb / gdb_expect.
623 * gdb.base/signull.exp: Replace uses of send_gdb / gdb_expect.
624 * gdb.base/so-impl-ld.exp: Replace uses of send_gdb / gdb_expect.
625 * gdb.base/varargs.exp: Replace uses of send_gdb / gdb_expect.
626 * gdb.base/volatile.exp: Replace uses of send_gdb / gdb_expect.
627 * gdb.base/watch_thread_num.exp: Replace uses of send_gdb / gdb_expect.
628 * gdb.base/watchpoint.exp: Replace uses of send_gdb / gdb_expect.
632 * gdb.java/jmisc.exp: Replace uses of send_gdb / gdb_expect.
633 * gdb.java/jprint.exp: Replace uses of send_gdb / gdb_expect.
635 * gdb.gdb/complaints.exp: Replace uses of send_gdb / gdb_expect.
636 * gdb.gdb/selftest.exp: Replace uses of send_gdb / gdb_expect.
637 * gdb.gdb/xfullpath.exp: Replace uses of send_gdb / gdb_expect.
639 * gdb.reverse/consecutive-reverse.exp:
640 Replace uses of send_gdb / gdb_expect.
641 * gdb.reverse/consecutive-precsave.exp:
642 Replace uses of send_gdb / gdb_expect.
644 * gdb.mi/mi-basics.exp: Replace uses of send_gdb / gdb_expect.
645 * gdb.mi/mi-nonstop-exit.exp: Replace uses of send_gdb / gdb_expect.
646 * gdb.mi/mi-nonstop.exp: Replace uses of send_gdb / gdb_expect.
647 * gdb.mi/mi-ns-stale-regcache.exp:
648 Replace uses of send_gdb / gdb_expect.
649 * gdb.mi/mi-nsintrall.exp: Replace uses of send_gdb / gdb_expect.
650 * gdb.mi/mi-nsmoribund.exp: Replace uses of send_gdb / gdb_expect.
651 * gdb.mi/mi-nsthrexec.exp: Replace uses of send_gdb / gdb_expect.
652 * gdb.mi/mi-return.exp: Replace uses of send_gdb / gdb_expect.
653 * gdb.mi/mi-var-display.exp: Replace uses of send_gdb / gdb_expect.
654 * gdb.mi/mi2-basics.exp: Replace uses of send_gdb / gdb_expect.
655 * gdb.mi/mi2-console.exp: Replace uses of send_gdb / gdb_expect.
656 * gdb.mi/mi2-return.exp: Replace uses of send_gdb / gdb_expect.
657 * gdb.mi/mi2-var-display.exp: Replace uses of send_gdb / gdb_expect.
661 * gdb.ada/formatted_ref.exp: Replace uses of send_gdb / gdb_expect.
663 * gdb.asm/asm-source.exp: Replace uses of send_gdb / gdb_expect.
665 * gdb.base/a2-run.exp: Replace uses of send_gdb / gdb_expect.
666 * gdb.base/all-bin.exp: Replace uses of send_gdb / gdb_expect.
667 * gdb.base/annota1.exp: Replace uses of send_gdb / gdb_expect.
668 * gdb.base/annota3.exp: Replace uses of send_gdb / gdb_expect.
669 * gdb.base/assign.exp: Replace uses of send_gdb / gdb_expect.
670 * gdb.base/attach.exp: Replace uses of send_gdb / gdb_expect.
671 * gdb.base/bitfields.exp: Replace uses of send_gdb / gdb_expect.
672 * gdb.base/bitfields2.exp: Replace uses of send_gdb / gdb_expect.
673 * gdb.base/bitops.exp: Replace uses of send_gdb / gdb_expect.
677 * gdb.base/macscp.exp: Add missing space after setup_kfail.
681 * gdb.arch/i386-prologue.exp (skip_breakpoint): Fix setup_kfail
683 * gdb.base/macscp.exp: Fix setup_kfail argument order.
684 * gdb.base/long_long.exp (gdb_test_xxx): Fix setup_kfail argument
686 * gdb.base/sigbpt.exp (stepi_out): Fix setup_kfail argument
688 * gdb.base/call-sc.exp (setup_kfails): Remove.
689 (setup_compiler_kfails): Remove.
690 * gdb.base/callfuncs.exp (do_function_calls): Fix setup_kfail
692 * gdb.base/siginfo.exp: Fix setup_kfail argument order.
693 * gdb.base/sigstep.exp (advance): Fix setup_kfail argument order.
694 (advancei): Fix setup_kfail argument order.
695 * gdb.base/radix.exp: Fix setup_kfail argument order.
696 * gdb.base/solib-weak.exp (do_test): Fix setup_kfail argument
698 * gdb.base/structs.exp (setup_kfails): Remove.
699 (setup_compiler_kfails): Fix setup_kfail argument order.
700 * gdb.base/sigaltstack.exp (finish_test): Fix setup_kfail argument
702 * gdb.java/jmain.exp: Fix setup_kfail argument order.
703 * gdb.pascal/types.exp (test_string_literal_types_accepted): Fix
704 setup_kfail argument order.
705 * gdb.cp/overload.exp: Fix setup_kfail argument order.
709 * gdb.dwarf2/pieces.exp (pieces_test_f3): Mention PR 11636.
713 * gdb.base/a2-run.exp: Replace send_gdb with gdb_test.
714 * gdb.base/all-bin.exp: Replace send_gdb with gdb_test.
715 * gdb.base/annota1.exp: Replace send_gdb with gdb_test.
716 * gdb.base/annota3.exp: Replace send_gdb with gdb_test.
717 * gdb.base/assign.exp: Replace send_gdb with gdb_test.
718 * gdb.base/attach.exp: Replace send_gdb with gdb_test.
719 * gdb.base/bitfields.exp: Replace send_gdb with gdb_test.
720 * gdb.base/bitfields2.exp: Replace send_gdb with gdb_test.
721 * gdb.base/bitops.exp: Replace send_gdb with gdb_test.
722 * gdb.base/call-ar-st.exp: Replace send_gdb with gdb_test.
723 * gdb.base/callfuncs.exp: Replace send_gdb with gdb_test.
724 * gdb.base/call-rt-st.exp: Replace send_gdb with gdb_test.
725 * gdb.base/call-signal-resume.exp: Replace send_gdb with gdb_test.
726 * gdb.base/call-strs.exp: Replace send_gdb with gdb_test.
727 * gdb.base/catch-syscall.exp: Replace send_gdb with gdb_test.
728 * gdb.base/charset.exp: Replace send_gdb with gdb_test.
729 * gdb.base/checkpoint.exp: Replace send_gdb with gdb_test.
730 * gdb.base/commands.exp: Replace send_gdb with gdb_test.
731 * gdb.base/condbreak.exp: Replace send_gdb with gdb_test.
732 * gdb.base/cond-exprs.exp: Replace send_gdb with gdb_test.
733 * gdb.base/consecutive.exp: Replace send_gdb with gdb_test.
734 * gdb.base/constvars.exp: Replace send_gdb with gdb_test.
735 * gdb.base/corefile.exp: Replace send_gdb with gdb_test.
736 * gdb.base/default.exp: Replace send_gdb with gdb_test.
737 * gdb.base/define.exp: Replace send_gdb with gdb_test.
738 * gdb.base/display.exp: Replace send_gdb with gdb_test.
739 * gdb.base/dump.exp: Replace send_gdb with gdb_test.
740 * gdb.base/ending-run.exp: Replace send_gdb with gdb_test.
741 * gdb.base/eval-skip.exp: Replace send_gdb with gdb_test.
742 * gdb.base/exprs.exp: Replace send_gdb with gdb_test.
743 * gdb.base/fileio.exp: Replace send_gdb with gdb_test.
744 * gdb.base/finish.exp: Replace send_gdb with gdb_test.
745 * gdb.base/foll-fork.exp: Replace send_gdb with gdb_test.
746 * gdb.base/funcargs.exp: Replace send_gdb with gdb_test.
747 * gdb.base/gcore-buffer-overflow.exp: Replace send_gdb with gdb_test.
748 * gdb.base/gcore.exp: Replace send_gdb with gdb_test.
749 * gdb.base/gdb1090.exp: Replace send_gdb with gdb_test.
750 * gdb.base/gdbvars.exp: Replace send_gdb with gdb_test.
751 * gdb.base/help.exp: Replace send_gdb with gdb_test.
752 * gdb.base/info-proc.exp: Replace send_gdb with gdb_test.
753 * gdb.base/jump.exp: Replace send_gdb with gdb_test.
754 * gdb.base/long_long.exp: Replace send_gdb with gdb_test.
755 * gdb.base/maint.exp: Replace send_gdb with gdb_test.
756 * gdb.base/miscexprs.exp: Replace send_gdb with gdb_test.
757 * gdb.base/nodebug.exp: Replace send_gdb with gdb_test.
758 * gdb.base/pointers.exp: Replace send_gdb with gdb_test.
759 * gdb.base/ptype.exp: Replace send_gdb with gdb_test.
760 * gdb.base/whatis.exp: Replace send_gdb with gdb_test.
764 * gdb.python/py-cmd.exp: Add tests for gdb.GdbError and
769 * gdb.dwarf2/pieces.exp (pieces_test_f3): New proc.
771 * gdb.dwarf2/pieces.S: Update.
772 * gdb.dwarf2/pieces.c (struct B): Remove initial field.
776 * gdb.dwarf2/pieces.exp (pieces_test_f6): New proc.
778 * gdb.dwarf2/pieces.c (struct C): New.
780 * gdb.dwarf2/pieces.S: Replace.
784 * gdb.dwarf2/pieces.exp (pieces_test_f2): New proc.
789 * gdb.dwarf2.pieces.exp: New file.
790 * gdb.dwarf2.pieces.S: New file.
791 * gdb.dwarf2.pieces.c: New file.
796 * lib/gdb.exp (gdb_test_no_output): New function.
797 * lib/gdb.ada/arrayidx.exp: Use gdb_test_no_output instead of gdb_test
798 when testing commands that should produce no output.
802 * gdb.ada/watch_arg/watch.adb: Rewrite testcase to avoid the
803 parameter that we want to watch being a constant.
807 * gdb.ada/cond_lang: New testcase.
811 * lib/gdb.exp (banned_variables): New variable/constant.
812 (gdb_init): Add write trace on variables listed in banned_variables.
813 (gdb_finish): Remove write traces on variables listed in
818 * gdb.base/gdb11530.exp: Delete setting of prms_id and bug_id.
819 * gdb.cp/koenig.exp: Likewise.
825 * gdb.python/py-value.exp (test_value_hash): New function.
830 * gdb.base/gdb11530.c: New file.
831 * gdb.base/gdb11530.exp: New file.
835 * gdb.dwarf2/dw2-modula2-self-type.exp: New.
836 * gdb.dwarf2/dw2-modula2-self-type.S: New.
840 * gdb.cp/koenig.exp: New test.
841 * gdb.cp/koenig.cc: New test program.
845 Remove the use of prms_id and bug_id throughout the testsuite.
850 * testsuite/gdb.cp/ref-types.exp: Add test to examine
851 use a reference local variable.
855 * gdb.base/break-interp.exp: Remove $exec.debug safety removal.
856 * gdb.base/sepdebug.exp: Remove .debug subdirectory handling. New
857 variable different_dir. Move debugfile into a full directory pathname
859 * lib/gdb.exp (separate_debug_filename): Remove.
860 (gdb_gnu_strip_debug): No longer call separate_debug_filename. Remove
861 variable debug_dir and mkdir of it. Update function comments.
867 * gdb.mi/mi-ns-stale-regcache.exp, gdb.mi/ns-stale-regcache.c: New
872 * gdb.python/py-param.exp: New File.
876 * gdb.base/default.exp: Fix "set language" test.
880 PR breakpoints/11531.
881 * gdb.base/gdb11531.c: New file.
882 * gdb.base/gdb11531.exp: New file.
886 * gdb.base/completion.exp: Add tests for completion and deprecated
891 * gdb.pascal/gdb11492.exp (print integer_array, print /d char_array)
892 (print /x char_array): Escape curly brackets.
896 Fix deadlock on looped list of loaded shared objects.
897 * gdb.base/solib-corrupted.exp: New.
901 * gdb.python/py-section-script.c: New file.
902 * gdb.python/py-section-script.exp: New file.
903 * gdb.python/py-section-script.py: New file.
909 * gdb.base/Makefile.in (EXECUTABLES): Added pr10179.
910 * gdb.base/pr10179-a.c:
911 * gdb.base/pr10179-b.c:
912 * gdb.base/pr10179.exp: New files.
916 Fix crashes on dangling display expressions.
917 * gdb.base/solib-display.exp: Call gdb_gnu_strip_debug if LIBSEPDEBUG
919 (lib_flags): Remove the "debug" keyword.
920 (libsepdebug): New variable for iterating new loop.
921 (save_pf_prefix): New variable wrapping the loop.
922 (sep_lib_flags): New variable derived from LIB_FLAGS. Use it.
923 * lib/gdb.exp (gdb_gnu_strip_debug): Document the return code.
927 * gdb.threads/watchthreads.exp: Change to obtain consistent output.
932 * gdb.stabs/gdb11479.exp: New file.
933 * gdb.stabs/gdb11479.c: New file.
937 * gdb.base/charset.c (Strin16, String32): New variables.
938 * gdb.base/charset.exp (gdb_test): Test correct display
939 of 16 or 32 bit strings.
944 * gdb.cp/Makefile.in (EXECUTABLES): Added pr9167.
945 * gdb.cp/pr9167.cc: New file.
946 * gdb.cp/pr9167.exp: New file.
952 * gdb.pascal/gdb11492.pas: New file.
953 * gdb.pascal/gdb11492.exp: New file.
957 * gdb.ada/info_types.c, gdb.ada/info_types.exp: New files.
961 * gdb.ada/dyn_loc: New testcase.
967 * gdb.cp/Makefile.in (EXECUTABLES): Added pr10687
968 * gdb.cp/pr10687.cc: New file.
969 * gdb.cp/pr10687.exp: New file.
975 * gdb.fortran/logical.exp: New testcase.
976 * gdb.fortran/logical.f90: New file.
980 * gdb.base/help.exp (help source): Update expected output.
984 * gdb.base/solib-display.exp: Replace gdb_exit, gdb_start,
985 gdb_reinitialize_dir and gdb_load by clean_restart. Remove trailing
987 (executable): New variable.
994 * gdb.trace/save-trace.exp: Adjust.
999 * gdb.arch/system-gcore.exp: New.
1000 * gdb.arch/gcore.c: Likewise.
1004 * gdb.python/py-progspace.c: New file.
1005 * gdb.python/py-progspace.exp: New file.
1007 * gdb.base/source.exp: Add tests for "source -s".
1011 * gdb.python/py-prettyprint.py (NoStringContainerPrinter): New printer.
1012 * gdb.python/py-prettyprint.c: Add justchildren struct, typedefs.
1013 * gdb.python/py-prettyprint.exp: New test for to_string returning None.
1014 * gdb.python/py-mi.exp: New test for to_string returning None.
1018 * gdb.python/py-breakpoint.c: Make result global.
1022 Fix non-GNU make compatibility.
1023 * Makefile.in ($(TEST_TARGETS)): Conditionalize it by @GMAKE_TRUE@.
1027 * gdb.python/py-breakpoint.exp: New File.
1028 * gdb.python/py-breakpoint.C: Ditto.
1032 * gdb.trace/actions.exp: Clear default-collect.
1033 * gdb.trace/save-trace.exp: Clear default-collect.
1037 * gdb.python/py-value: Add null string variable.
1038 (test_lazy_string): Test zero length, NULL address lazy
1043 * gdb.arch/i386-avx.c: New.
1044 * gdb.arch/i386-avx.exp: Likewise.
1046 * gdb.arch/i386-cpuid.h: Updated from gcc 4.4.
1050 * gdb.base/source-test.gdb: New file.
1051 * gdb.base/source.exp: Test source -v.
1055 * gdb.cp/inherit.exp (test_print_anon_union): Fix re_class pattern.
1059 * gdb.stabs/aout.sed: Convert all backslash to double backslash
1060 within one line, unless it is followed by a double quote.
1061 * gdb.stabs/hppa.sed: Idem.
1062 * gdb.stabs/weird.def: Add char and String constants
1063 * gdb.stabs/weird.exp: Check for correct parsing of
1064 chhar and string constants.
1065 * gdb.stabs/xcoff.sed: Ignore escaped quote quotes
1066 in .stabs to .stabx substitution.
1070 * gdb.trace/tfile.c: Add a variable split across two blocks, and a
1072 * gdb.trace/tfile.exp: Try to print them.
1076 * gdb.base/completion.exp: Update for new "info watchpoints".
1077 * gdb.base/default.exp: Ditto.
1078 * gdb.base/help.exp: Ditto.
1079 * gdb.base/watchpoint.exp: Ditto.
1080 * gdb.trace/infotrace.exp: Update "info tracpoints" output.
1084 * gdb.trace/tfile.exp: Sharpen tfind test.
1088 * gdb.base/break-entry.exp: New.
1093 * gdb.reverse/i386-sse-reverse.exp: New file.
1094 * gdb.reverse/i386-sse-reverse.c: New file.
1098 * gdb.trace/tfind.exp: Adjust expected disassembly output.
1102 * gdb.trace/actions.exp: Tweak expected output.
1103 * gdb.trace/while-stepping.exp: Tweak expected output.
1107 * gdb.arch/amd64-byte.exp: Check "ah", "bh", "ch", "dh".
1111 * gdb.base/commands.exp: Adjust.
1112 * gdb.cp/extern-c.exp: Adjust.
1116 * gdb.trace/collection.c (local_test_func): Define a local struct,
1121 * gdb.trace/collection.exp (gdb_collect_args_test)
1122 (gdb_collect_argarray_test): XFAIL the tests that assume the
1123 argarray argument's elements are collected.
1127 * gdb.dwarf2/dw2-bad-parameter-type.exp,
1128 gdb.dwarf2/dw2-bad-parameter-type.S: New.
1132 * gdb.trace/save-trace.exp: Test save/restore of default-collect
1133 and tracepoint conditionals.
1134 (gdb_verify_tracepoints): Delete unused return.
1138 * gdb.java/jmisc.exp (ptype jmisc): Allow the constructor to
1139 appear in the output before main.
1140 Remove KFAIL for gdb/2215 aka bz 9320.
1144 * gdb.arch/amd64-word.exp: Rename hex to hexr, the former is defined
1146 * gdb.arch/amd64-dword.exp: Ditto.
1148 * gdb.base/annota1.exp (break handle_USR1): Make fail and pass text
1150 (break printf): Ditto.
1154 * gdb.cp/nsusing.exp: Marked imported declaration test as xfail with
1156 * gdb.cp/shadow.exp: Ditto.
1160 * gdb.trace/collection.exp (run_trace_experiment): Make sure
1165 * gdb.trace/collection.exp (executable): New.
1167 (fpreg, spreg, pcreg): New.
1168 (test_register): Use gdb_test_multiple. Pass /x to print.
1169 (prepare_for_trace_test): New.
1170 (run_trace_experiment): Use "continue", not gdb_run_cmd.
1171 (gdb_collect_args_test, gdb_collect_argstruct_test)
1172 (gdb_collect_argarray_test, gdb_collect_locals_test): Use
1173 prepare_for_trace_test.
1174 (gdb_collect_registers_test): Use prepare_for_trace_test. Use
1175 fpreg, spreg and pcreg.
1176 (gdb_collect_expression_test, gdb_collect_globals_test): Use
1177 prepare_for_trace_test.
1178 (gdb_trace_collection_test): Use fpreg, spreg and pcreg. Don't
1179 try to detect tracing support here. Don't set breakpoints at
1180 `begin' or `end' here.
1181 <global scope>: Use clean_restart. Run to main before checking
1182 for tracing support. Check for for tracing support here.
1186 * gdb.base/break-interp.exp (test_core, test_attach, test_ld): Add
1187 " as $displacement" to "seen displacement message".
1191 * gdb.trace/while-dyn.exp (executable): New variable.
1193 (test_while_stepping): New function. Move most tests here. Call
1194 it once for each of the while-stepping, stepping and ws aliases.
1198 * gdb.cp/inherit.exp (test_ptype_si): XFAIL test for GCC versions
1199 that do not provide the tagless_struct type name at all.
1200 (test_print_anon_union): Do not check value of uninitialized
1201 union member. Do not use cp_test_ptype_class, so we can accept
1202 "long" as well as "long int".
1206 * gdb.trace/tfile.c (tohex, bin2hex): New.
1207 (write_error_trace_file): Hexify error description.
1211 * gdb.trace/tfile.c: Generate an additional trace file, improve
1213 * gdb.trace/tfile.exp: Test trace file with an error stop, delete
1214 files in a better way.
1218 * gdb.java/jprint.exp: XFAIL printing of static class members
1219 because of GCC debuginfo problem.
1223 * gdb.base/dup-sect.exp, gdb.base/dup-sect.S: New.
1227 * gdb.base/completion.exp: Allow long instead of long int.
1228 * gdb.base/ending-run.exp: Match _rt_entry.* for RealView.
1229 * gdb.base/gdbvars.c (main): Remove unused usestubs code. Reference
1231 * gdb.base/maint.exp: Allow ER_RO and ER_RW instead of .text and .data.
1232 * gdb.base/pointers.exp: Allow long instead of long int.
1233 * gdb.base/printcmds.exp: XFAIL for RealView on ARM EABI.
1234 * gdb.base/step-line.exp: Allow a directory before the source file name.
1238 PR breakpoints/9352:
1239 * gdb.base/default.exp: Update.
1240 * gdb.base/commands.exp: Update.
1241 * gdb.cp/extern-c.exp: Test setting commands on multiple
1242 breakpoints at once.
1246 * gdb.base/call-signal-resume.exp, gdb.base/unwindonsignal.exp: Skip
1248 * gdb.base/watchpoints.c: Do not include unnecessary headers.
1249 * lib/gdb.exp (gdb_test_multiple): Relax pattern for "the program
1254 * gdb.trace/tfile.exp: Expect "trace frame", with a space.
1258 * gdb.base/callfuncs.exp (do_function_calls): Add XFAILs for RealView.
1259 * gdb.base/ptype.exp (ptype_maybe_prototyped): Add overprototyped
1260 argument. Handle "short" and "long".
1261 (Top level): Pass overprototyped output for old_fptr and xptr.
1265 * gdb.threads/pthreads.c (thread1, thread2, main): Fix printf
1266 format strings and add casts to avoid compiler warnings.
1270 * lib/trace-support.exp (gdb_trace_setactions):
1271 Don't expect whitespace after ">" prompt.
1272 * gdb.trace/actions.exp: Adjust for output changes.
1273 * gdb.trace/while-stepping.exp: Likewise.
1277 * dg-extract-results.sh: Sync with GCC HEAD (import r155655, r157175
1282 * gdb.dwarf2/dw2-empty-namespace.exp, gdb.dwarf2/dw2-empty-namespace.S:
1287 * gdb.python/Makefile.in (EXECUTABLES): Add py-mi.
1288 * gdb.python/py-mi.exp (binfile): Rename to py-mi.
1292 * gdb.trace/ax.exp: New file.
1296 * lib/gdb.exp (gdb_compile_test): Watch for "compiler not installed"
1299 * gdb.base/break-interp.exp (prelinkNO): Handle prelink binaries
1300 named /usr/sbin/prelink<foo>.
1304 * gdb.trace/circ.exp: Test circular-trace-buffer.
1305 * gdb.trace/tfile.exp: Update tstatus test.
1309 * gdb.dwarf2/dw2-anonymous-func.S: New file.
1310 * gdb.dwarf2/dw2-anonymous-func.exp: New testcase.
1314 * gdb.mi/gdb680.exp: Revert 2009-06-17 change.
1318 * gdb.base/default.exp: Adjust the expected output of the finish
1319 and until commands when the inferior is not being run.
1323 * gdb.cp/shadow.exp: Removed kfail; test has been fix.
1324 * gdb.cp/nsusing.exp: Ditto.
1328 * gdb.cp/userdef.exp: Add tests for explicit calls to operator==.
1329 * gdb.cp/userdef.cc (operator==): New function.
1330 (main): New locals mem1, mem2.
1334 * lib/mi-support.exp (mi_gdb_target_load): Delete unused timeout var.
1335 Declare and use new loadtimeout variable.
1339 * gdb.base/printcmds.exp: Use gdb_file_cmd instead of gdb_load.
1344 * gdb.base/solib-disc.c (main): Make format of fprintf a string
1345 literal. Add missing endlines to prints to stderr.
1350 * gdb.cp/m-static.exp: Add regression test.
1351 * gdb.cp/m-static.cc (method): New method.
1356 * gdb.cp/gdb2384-base.h: Created 'namespace B'.
1357 * gdb.cp/gdb2384-base.cc: Use 'namespace B'.
1361 * lib/gdb.exp (gdb_test_multiple): Handle -timeout.
1365 * lib/gdb.exp (skip_stl_tests): New.
1366 (gdb_compile): Symbian needs -ldl.
1367 (shlib_target_file): New.
1368 (shlib_symbol_file): New.
1369 (gdb_load_shlibs): Use shlib_target_file.
1370 * lib/mi-support.exp (mi_load_shlibs): Use shlib_target_file.
1371 * gdb.cp/exception.exp: Use skip_stl_tests.
1372 * gdb.cp/bs15503.exp: Use skip_stl_tests. Use untested.
1373 * gdb.cp/try_catch.exp: Use skip_stl_tests.
1374 * gdb.cp/mb-templates.exp: Ditto.
1375 * gdb.base/commands.exp: Relax regexes.
1376 * gdb.base/watchpoint-solib.exp: Don't skip on symbian. Use
1377 shlib_target_file and shlib_symbol_file.
1378 * gdb.base/maint.exp: Allow lowercase t. Allow .rodata in
1380 * gdb.base/ending-run.exp: Accept E32Main for symbian.
1381 * gdb.base/solib-disc.exp: Use
1382 shlib_target_file and shlib_symbol_file.
1383 * gdb.base/unload.exp: Don't skip on symbian. Use
1384 shlib_target_file and shlib_symbol_file.
1385 * gdb.base/list.exp: Check use_gdb_stub instead of is_remote.
1389 * gdb.trace/backtrace.exp: Adjust for x86 and x86_64.
1390 * gdb.trace/report.exp: Adjust for x86 and x86_64.
1391 Issue a tfind end before looking for a tracepoint frame.
1392 * gdb.trace/tfind.exp: Adjust tstatus output.
1393 Adjust disassembly output.
1394 * gdb.trace/while-dyn.exp: Adjust for x86 and x86_64.
1398 * gdb.base/break-interp.exp: Create new displacement parameter value
1399 for the test_ld calls.
1400 (reach): New parameter displacement, verify its content. New push of
1401 pf_prefix "reach-$func:". Import global expect_out.
1402 (test_core): New parameter displacement, verify its content. New push
1403 of pf_prefix "core:". New command "set verbose on". Import global
1405 (test_attach): New parameter displacement, verify its content. New
1406 push of pf_prefix "attach:". New command "set verbose on". Import
1408 (test_ld): New parameter displacement, pass it to the reach, test_core
1409 and test_attach calls and verify its content in the "ld.so exit" test.
1410 * gdb.base/prelink.exp: Remove gdb_exit and final return.
1411 (prelink): Update expected text, use gdb_test.
1415 * gdb.base/checkpoint.exp: Fix comment.
1416 Lengthen timeout while doing >600 checkpoints test.
1417 Rename duplicate "kill all one" test to keep test names unique.
1421 * gdb.base/watch-cond.c, gdb.base/watch-cond.exp: New.
1425 * gdb.cp/cp-relocate.exp: Remove single-quoting of C++ methods.
1426 * gdb.cp/cplusfuncs.cc (dm_type_short): New function.
1427 (dm_type_long): New function.
1428 (dm_type_unsigned_short): New function.
1429 (dm_type_unsigned_long): New function.
1430 (myint): New typedef.
1431 * gdb.cp/cplusfuncs.exp (probe_demangler): Add tests for short,
1432 long, unsigned shor and long, operator char*, and typedef.
1433 (test_lookup_operator_functions): Add operator char* test.
1434 (test_paddr_operator_functions): Likewise.
1435 (test_paddr_overloaded_functions): Use probe values for
1436 short, long, and unsigned short and long.
1437 (test_paddr_hairy_functions): If the demangler probe detected
1438 gdb type printers, "expect" them. Otherwise "expect" the v2 or v3
1440 * gdb.cp/expand-sals.exp: Backtrace may contain class names.
1441 * gdb.cp/member-ptr.exp: Refine expected result for "print pmf"
1442 and "print null_pmf".
1443 Add test "ptype a.*pmf".
1444 * gdb.cp/overload.exp: Allow optional "int" to appear with
1446 * gdb.cp/ovldbreak.exp: Use append to construct super-duper
1447 long expect value for men_overload1arg.
1448 Allow "int" to appear with "short" and "long".
1449 When testing "info break", add argument for main (void).
1450 Also allow "int" to appear with "short" and "long".
1451 Ditto with "unsigned" and "long long".
1452 * gdb.java/jmain.exp: Do not enclose methods names in single
1454 * gdb.java/jmisc.exp: Likewise.
1455 * gdb.java/jprint.exp: Likewise.
1456 * gdb.python/py-symbol.exp: Update expected "linkage_name" value.
1459 * gdb.cp/exception.exp (backtrace after first throw)
1460 (backtrace after second throw): Allow a namespace before __cxa_throw.
1461 (backtrace after first catch, backtrace after second catch): Allow
1462 a namespace before __cxa_begin_catch.
1464 * gdb.cp/cpexprs.exp: New file.
1465 * gdb.cp/cpexprs.cc: New file.
1468 * gdb.cp/cpexprs.exp (escape): Delete. Change all callers
1469 to use string_to_regexp.
1470 (ctor, dtor): New functions. Use them to match constructor
1471 and destructor function types.
1472 (Top level): Use runto_main.
1476 * gdb.python/py-prettyprint.py (pp_nullstr.to_string): Use
1478 (pp_ns.to_string): Likewise.
1482 * gdb.cp/overload.exp: Test that the filename portion of a linespec
1483 can be quoted. Test that both the filename and function/line
1484 portions can be quoted at the same time.
1488 * gdb.base/watch-non-mem.c, gdb.base/watch-non-mem.exp: New.
1492 * lib/gdb.exp (gdb_compile_pthreads): Handle case where
1493 libc contains libpthread.
1495 * gdb.threads/linux-dp.c (shared_random): Call rand instead of rand_r.
1496 * gdb.threads/linux-dp.exp: Compile with gdb_compile_pthreads instead
1497 of gdb_compile. Add another pattern to match android backtrace.
1502 * gdb.base/printcmds.exp (test_printf): Add test.
1506 * gdb.arch/amd64-byte.exp: New.
1507 * gdb.arch/amd64-dword.exp: Likewise.
1508 * gdb.arch/amd64-pseudo.c: Likewise.
1509 * gdb.arch/amd64-word.exp: Likewise.
1510 * gdb.arch/i386-byte.exp: Likewise.
1511 * gdb.arch/i386-pseudo.c: Likewise.
1512 * gdb.arch/i386-word.exp: Likewise.
1516 * gdb.xml/extra-regs.xml: Add struct1, struct2, and flags
1517 types. Add structreg, bitfields, and flags registers.
1518 * gdb.xml/tdesc-regs.exp: Test structreg and bitfields
1523 * gdb.xml/tdesc-regs.exp (architecture): New. Set it for x86.
1524 (load_description): Set architecture if defined.
1528 * gdb.python/py-frame.exp: Add read_var block tests.
1529 * gdb.python/py-frame.c (block): New function.
1534 * gdb.base/callfuncs.exp: New tests for $spval 0 and -1. Remove return.
1538 * gdb.base/catch-syscall.exp: Allow to run on sparc*-*-linux and
1539 fix logic for setting all_syscalls_numbers.
1543 * Makefile.in: Add py-block and py-symbol.
1544 * gdb.python/py-symbol.exp: New File.
1545 * gdb.python/py-symtab.exp: New File.
1546 * gdb.python/py-block.exp: New File.
1547 * gdb.python/py-symbol.c: New File.
1548 * gdb.python/py-block.c: New File.
1553 * lib/gdb.exp (skip_python_tests): New function.
1554 * gdb.python/py-cmd.exp: Use skip_python_tests.
1555 * gdb.python/py-frame.exp: Likewise.
1556 * gdb.python/py-function.exp: Likewise.
1557 * gdb.python/py-prettyprint.exp: Likewise.
1558 * gdb.python/py-template.exp: Likewise.
1559 * gdb.python/py-type.exp: Likewise.
1560 * gdb.python/py-value.exp: Likewise.
1566 * gdb.base/watch-read.c, gdb.base/watch-read.exp: New files.
1570 PR c++/8693, PR c++/9496:
1571 * gdb.cp/namespace.exp: Remove some setup_kfail calls. Added
1576 Fix compatibility with m68k as.
1577 * gdb.dwarf2/member-ptr-forwardref.S: Use .data section. Use .2byte.
1578 Use only /* comments */.
1582 * configure.ac: Add gdb.multi/Makefile to AC_OUTPUT.
1583 * configure: Regenerate.
1587 * gdb.python/py-type.exp: Check for Python support.
1591 * lib/gdb.exp (build_id_debug_filename_get): Don't assume new
1592 `regsub' syntax available.
1596 * gdb.base/shmain.c (main): Remove printf call.
1597 * gdb.base/sizeof.c (main): Cast return of sizeof to int.
1598 * gdb.base/unload.c (main): Make format of fprintf a string
1599 literal. Add missing endlines to prints to stderr.
1600 * gdb.base/watchpoint-solib.c (open_shlib): Ditto.
1604 * gdb.java/jprint.java (jprint.props): New field.
1605 * gdb.java/jprint.exp (set_lang_java): Add regression test.
1609 * gdb.base/charset.exp: Don't assume new `regsub' syntax
1614 * gdb.xml/tdesc-arch.exp, gdb.xml/tdesc-regs.exp: Rewrite file
1615 creation to support remote host testing.
1619 * gdb.base/valgrind-db-attach.exp: Use unsupported instead of xfail.
1620 Recognize "command not found".
1624 * gdb.arch/thumb2-it.exp (test_it_break): Handle hardware
1629 * gdb.python/py-value.exp (test_value_in_inferior): Skip arg0 test
1630 if arguments are not supported.
1634 * gdb.cp/overload.exp: Allow foo::overload1arg's "this" pointer to
1635 be const or non-const.
1639 * gdb.mi/mi-break.exp (test_breakpoint_commands): Use
1640 mi_send_resuming_command to send -exec-continue.
1644 * gdb.base/list.exp (test_list_filename_and_function): Add test
1646 * gdb.cp/overload.cc (intToChar): Rewrite onto one line for easy
1648 * gdb.cp/overload.exp: Add tests with filename, function, and quotes.
1649 Add KFAIL'd tests for PR gdb/11289.
1653 * gdb.cp/cpcompletion.exp: Specify source file name explicitly.
1657 * gdb.base/comp-dir/subdir/dummy.txt: New file.
1658 * gdb.base/completion.exp: Use comp-dir/subdir instead of creating
1659 a temporary directory.
1663 * gdb.base/charset.exp: Use a single regular expression to match
1664 show host-charset and show target-charset output.
1668 * gdb.base/attach.exp (attach to nonsense is prohibited): Make the
1669 "Illegal process-id" expect string more exact.
1670 (attach to digits-starting nonsense is prohibited): New.
1674 * gdb.base/prelink.exp (set verbose on): New.
1678 * mi-reverse.exp: New file. Test for reverse option to the
1679 following MI commands: exec-continue, exec-finish, exec-next,
1680 exec-step, exec-next-instruction, exec-step-instruction.
1684 * gdb.ada/ptype_tagged_param: New testcase.
1689 * gdb.cp/overload.exp: Add tests.
1690 * gdb.cp/overload.cc (struct K): New.
1692 (main): Call new functions.
1693 (K::staticoverload): Define.
1698 * gdb.cp/pr10728-x.h: New file.
1699 * gdb.cp/pr10728-x.cc: New file.
1700 * gdb.cp/pr10728-y.cc: New file.
1701 * gdb.cp/pr10728.exp: New file.
1702 * gdb.cp/Makefile.in (EXECUTABLES): Add pr10728
1707 * gdb.cp/pr9067.exp: New
1708 * gdb.cp/pr9067.cc: New
1709 * gdb.cp/Makefile.in (EXECUTABLES): Add pr9067
1713 * lib/gdb.exp (gdb_test_timeout): New global variable.
1714 Set it to timeout if not already set.
1715 (gdb_init): Reset the value of timeout to gdb_test_timeout.
1719 * lib/gdb.exp (INTERNAL_GDBFLAGS): Don't override value provided by
1725 * gdb.cp/namespace-using.exp: Removed kfail; bug has been fixed.
1729 * gdb.cp/virtbase.exp: Make test case names unique.
1733 * gdb.cp/virtbase.exp: Add regression tests.
1734 * gdb.cp/virtbase.cc (RHA, RHB, RHC): New classes.
1735 (main): Instantiate RHC.
1739 * gdb.dwarf2/member-ptr-forwardref.exp: Update expected result for
1740 type-printing change.
1744 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
1745 * gdb.cp/virtbase.cc: New file.
1746 * gdb.cp/virtbase.exp: New file.
1747 * gdb.cp/userdef.exp: Allow 'struct' or 'class'.
1752 * gdb.threads/current-lwp-dead.c: Include features.h.
1754 (fn, main): Move CLONE_VM into [__UCLIBC__ && HAS_NOMMU].
1758 * gdb.base/symbol-without-target_section.exp,
1759 gdb.base/symbol-without-target_section.c: New.
1763 * gdb.base/bigcore.exp: Reset increased timeout.
1764 * gdb.base/interrupt.exp: Match unexpected gdb prompt.
1768 * gdb.base/gcore.exp (capture_command_output): Use
1773 * gdb.arch/thumb2-it.S (it_breakpoints): New function.
1774 * gdb.arch/thumb2-it.exp (test_it_break): New function.
1775 (Top level): Call it.
1779 * gdb.arch/thumb2-it.S, gdb.arch/thumb2-it.exp: New files.
1783 * gdb.base/call-strs.exp, gdb.base/default.exp,
1784 gdb.base/ending-run.exp, gdb.base/finish.exp, gdb.base/funcargs.exp,
1785 gdb.base/huge.exp, gdb.base/nodebug.exp, gdb.base/ptype.exp,
1786 gdb.base/restore.exp, gdb.base/return.exp, gdb.base/setvar.exp,
1787 gdb.base/watchpoints.exp, gdb.threads/gcore-thread.exp,
1788 gdb.base/watchpoint-solib.exp: Save and restore timeout.
1789 * gdb.base/ending-run.exp: Correct restore of timeout.
1790 * gdb.base/page.exp: Remove unnecessary timeout setting.
1794 * gdb.ada/rec_return: New testcase.
1798 * gdb.ada/call_pn: New testcase.
1802 * gdb.mi/mi-nonstop.exp (mi_nonstop_resume): New function.
1803 (Top level): Use it to resume.
1804 * lib/mi-support.exp (mi_send_resuming_command_raw): Recognize
1805 the Thumb mode displaced stepping error as unsupported.
1809 * gdb.cp/nsusing.exp: Added more tests.
1810 * gdb.cp/nsrecurs.exp: Ditto.
1811 * gdb.cp/nsusing.cc: Added test functions.
1812 * gdb.cp/nsrecurs.cc: Ditto.
1816 * gdb.base/break-interp.exp: Use [file tail $filename] to omit any
1817 absolute directory pathnames in gdb.sum file.
1821 * gdb.cp/namespace-using.exp: Rename to nsusing.exp.
1822 * gdb.cp/namespace-using.cc: Rename to nsusing.cc.
1827 * gdb.base/printcmds.exp (test_print_string_constants): Remove
1832 * gdb.cp/nsrecurs.exp: New test.
1833 * gdb.cp/nsrecurs.cc: New test program.
1834 * gdb.cp/nsstress.exp: New test.
1835 * gdb.cp/nsstress.cc: New test program.
1836 * gdb.cp/nsdecl.exp: New test.
1837 * gdb.cp/nsdecl.cc: New test program.
1841 * gdb.cp/namespace-using.exp: Add test for printing of namespaces
1842 imported into file scope.
1843 Marked test as xfail.
1844 * gdb.cp/namespace-using.cc (marker5): New function.
1845 * gdb.cp/shadow.exp: New test.
1846 * gdb.cp/shadow.cc: New test program.
1847 * gdb.cp/nsimport.exp: New test.
1848 * gdb.cp/nsimport.cc: New test program.
1853 * gdb.base/printcmds.exp (test_print_typedef_arrays): Add test
1854 with "set print null-stop on".
1858 * gdb.arch/i386-bp_permanent.exp (Disassemble function '$function'):
1859 Adjust it for DISASSEMBLY_OMIT_FNAME.
1864 * gdb.dwarf2/member-ptr-forwardref.exp,
1865 gdb.dwarf2/member-ptr-forwardref.S: New.
1869 * gdb.threads/watchthreads-reorder.c (gdbstop_mutex): Remove.
1870 (thread1_func): Protect thread1_tid with thread1_tid_cond by
1871 thread1_tid_mutex. Remove gdbstop_mutex handling.
1872 (thread2_func): Protect thread2_tid with thread2_tid_cond by
1873 thread2_tid_mutex. Remove gdbstop_mutex handling.
1874 (main): Move thread1_tid_mutex and thread2_tid_mutex locks before
1875 pthread_create. Remove gdbstop_mutex handling. New comment. Replace
1876 pthread_cond_wait conditionalizations by while loops.
1881 * gdb.dwarf2/pr10770.exp: New file.
1882 * gdb.dwarf2/pr10770.c: New file.
1883 * gdb.dwarf2/Makefile.in (EXECUTABLES): Add pr10770.
1887 * gdb.mi/mi-async.exp: Remove check for 'async' target, because
1888 that target was removed, and the test always runs native anyway.
1892 * gdb.base/watchpoint-cond-gone.exp, gdb.base/watchpoint-cond-gone.c,
1893 gdb.base/watchpoint-cond-gone-stripped.c: New.
1898 * gdb.cp/namespace.exp: Use new enum. Fix line numbers in
1900 * gdb.cp/namespace.cc (AAA::SomeEnum): New enum.
1901 (main): Use AAA::SomeEnum.
1905 * gdb.mi/mi-break.exp (set line_callme_head, set line_callme_body): New.
1906 (test_ignore_count): Declare line_callme_body global.
1907 (run to breakpoint with ignore count): Use line_callme_body.
1908 * gdb.mi/mi-cli.exp (set line_main_head, set line_main_body)
1909 (set line_main_hello, set line_main_return): Reindent.
1910 (set line_callee4_head, set line_callee4_body, set line_callee4_next):
1912 (continue to callee4): Use line_callee4_body.
1913 (check *stopped from CLI command): Use line_callee4_next.
1914 * gdb.mi/mi2-cli.exp (set line_main_head, set line_main_body)
1915 (set line_main_hello, set line_main_return): Reindent.
1916 (set line_callee4_head, set line_callee4_body): New.
1917 (continue to callee4): Use line_callee4_body.
1922 * gdb.cp/casts.cc: Add new classes and variables.
1923 * gdb.cp/casts.exp: Test new operators.
1928 * gdb.python/source2.py: New file.
1929 * gdb.python/source1: New file.
1930 * gdb.python/python.exp: Test "source" command.
1934 * gdb.trace/tfile.c: New file.
1935 * gdb.trace/tfile.exp: New file.
1939 * gdb.base/pie-support.exp, gdb.base/pie-support.c: Remove.
1943 * gdb.base/valgrind-db-attach.exp, gdb.base/valgrind-db-attach.c: New.
1947 * gdb.base/break-interp-lib.c: Include unistd.h, assert.h and stdio.h.
1948 (libfunc): New parameter action. Implement also selectable "sleep".
1949 * gdb.base/break-interp-main.c: Include assert.h.
1950 (libfunc): New parameter action.
1951 (main): New parameters argc and argv. Assert argc. Pass argv.
1952 * gdb.base/break-interp.exp (test_core): Pass the "segv" argument.
1953 (test_attach): New proc.
1954 (test_ld): Pass new "segv" exec parameter. Call also test_attach.
1955 * lib/gdb.exp (core_find): New parameter arg. Pass it to $binfile.
1959 * gdb.base/break-interp.exp (test_core): New proc.
1964 * gdb.base/break-interp-main.c, gdb.base/break-interp-lib.c: New.
1965 * gdb.base/break-interp.exp: Exit on skip_shlib_tests. Change $srcfile.
1966 New variables $binfile_lib and $srcfile_lib. Call get_compiler_info
1967 and gdb_compile_shlib. Use new -Wl compiler options.
1968 (dl bt, main bt): New tests.
1972 Support PIEs with no symfile_objfile.
1973 * gdb.base/break-interp.exp: New argument at the test_ld calls.
1974 (test_ld): New parameter trynosym.
1975 (test_ld <$trynosym>): New block.
1979 * gdb.base/break-interp.exp: New file.
1983 * gdb.python/py-value.exp (test_lazy_strings): Add lazy string test.
1984 * gdb.python/py-prettyprint.py (pp_ls): New printer.
1985 * gdb.python/py-prettyprint.exp (run_lang_tests): Add lazy string
1987 * gdb.python/py-prettyprint.c: Define lazystring test structure.
1988 * gdb.python/py-mi.exp: Add lazy string test.
1992 * lib/mi-support.exp (mi_check_thread_states): Handle
1993 core number in thread listing.
1997 * gdb.base/maint.exp: Adjust the expected output for the
1998 "maint print type" test. Use gdb_test_multiple instead of
1999 gdb_sent/gdb_expect.
2003 * lib/gdbserver-support.exp (gdbserver_download_current_prog): Rename
2004 from gdbserver_download. All callers updated.
2006 * gdb.server/ext-run.exp: "info os processes" requires xml support.
2010 Implement binary numbers parsing.
2011 * gdb.base/printcmds.exp (test_integer_literals_accepted)
2012 (test_integer_literals_rejected): New binary tests.
2016 * gdb.cell/configure: Regenerate.
2020 * gdb.base/corefile.exp: Move the core finding block out and call it as
2021 core_find, new variable $corefile, replace corefile by $corefile and
2022 [file tail $corefile] for usage vs. test names resp.
2023 * lib/gdb.exp (core_find): Move it as a new function here. New
2024 parameter binfile and deletefiles. New variable $destcore. Pre-delete
2025 $destcore. Return "" on error.
2029 Workaround PR binutils/10802.
2030 * lib/gdb.exp (gdb_gnu_strip_debug): Preserve the file attributes
2035 * gdb.cp/gdb2495.exp: Skip if gdb,nosignals.
2039 * lib/gdb.exp (gdb_start_cmd): Move comment outside of gdb_expect
2040 call, to avoid interruption.
2044 * gdb.stabs/weird.def (args93): New.
2048 * lib/gdb.exp (gdb_skip_xml_test): Add comment.
2052 * gdb.base/source.exp: Use correct line number.
2056 * gdb.trace/tracecmd.exp: Test ftrace.
2060 * gdb.xml/tdesc-regs.exp: Support s390*-*-* targets.
2064 * gdb.mi/var-cmd.c (do_bitfield_tests): Change "V.sharable" type to
2065 "uint_for_mi_testing".
2069 Test indented comment in file being sourced.
2070 * gdb.base/commands.exp: Test indented comment in file being sourced.
2074 * gdb.fortran/array-element.f, gdb.fortran/complex.f,
2075 gdb.fortran/derived-type.f90, gdb.fortran/module.f90,
2076 gdb.fortran/subarray.f, gdb.mi/array.f: Update year in copyright
2081 * gdb.arch/gdb1291.s, gdb.arch/gdb1431.s: Update year in copyright
2086 * lib/mi-support.exp (mi_expect_stop <stopped at wrong place>): Insert
2087 missing $after_stopped and comma (,) expectation.
2091 * gdb.trace/actions.exp: Test teval action.
2095 * gdb.base/watchpoint.exp (test_watchpoint_in_big_blob): New function.
2096 (top level): Call test_watchpoint_in_big_blob.
2097 * gdb.base/watchpoint.c (buf): Change size to value too big for hardware
2099 (func3): Write to buf.
2103 * gdb.trace/actions.exp: Test default-collect.
2107 * gdb.trace/tsv.exp: New file.
2108 * gdb.base/completion.exp: Update ambiguous info output.
2112 * gdb.base/find.c (main): Reference search buffers.
2113 * gdb.base/included.c (main): Reference integer.
2114 * gdb.base/ptype.c (charfoo): Declare.
2115 (intfoo): Call charfoo.
2116 * gdb.base/scope0.c (useitp): New function.
2117 (usestatics): Use useitp.
2118 (useit): Add a type for val.
2119 * gdb.base/scope1.c (useit1): Take a pointer argument.
2120 (usestatics1): Update calls to useit1.
2121 * gdb.cp/call-c.cc: Declare foo.
2123 * gdb.cp/m-static.cc (main): Reference test4.elsewhere.
2124 * gdb.cp/namespace.cc (ensureOtherRefs): Declare.
2125 (main): Call C::ensureRefs and ensureOtherRefs.
2126 * gdb.cp/namespace1.cc (C::ensureOtherRefs): Also reference int
2128 (ensureOtherRefs): New function.
2129 * gdb.cp/overload.cc (main): Call all overloadNamespace variants.
2130 * gdb.cp/templates.cc (main): Call t5i.value.
2134 Fix compatibility with G++-4.5.
2135 * gdb.cp/expand-sals.cc (main): Remove the "exit-line" comment.
2136 * gdb.cp/expand-sals.exp: Remove breakpoint on "exit-line".
2137 (uncaught return): Remove.
2142 * gdb.base/condbreak.exp: Put breakpoint on marker3 and marker4.
2143 (bp_location13, bp_location14, bp_location17, bp_location18)
2144 (marker3_proto, marker4_proto): New variables.
2145 (breakpoint info): Update output.
2146 (run until breakpoint at marker3, run until breakpoint at marker4): New
2151 * gdb.base/unload.c (main): Change the UNLOADSHR parameter to 1.
2152 Replace the printf call of Y by provided "y-set-1" label. New block
2153 for the second shared library.
2154 * gdb.base/unload.exp: Compile also the second library, call
2155 gdb_load_shlibs also for it. Use now gdb_breakpoint.
2156 (single pending breakpoint info): Rename to ...
2157 (pending breakpoint info before run): ... this extended test.
2158 (libfile2, libname2, libsrcfile2, libsrc2)
2159 (lib_sl2): New variables.
2160 (exec_opts): Set also SHLIB_NAME2.
2161 (pending breakpoint info on first run at shrfunc1)
2162 (pending breakpoint info on second run at shrfunc1)
2163 (pending breakpoint info on second run at shrfunc2)
2164 (print y from libfile, print y from libfile2): New tests.
2165 * gdb.base/unloadshr.c (shrfunc1): Change the returned value.
2166 * gdb.base/unloadshr2.c: New.
2170 * gdb.reverse/sigall-reverse.exp: Adjust.
2176 * gdb.mi/var-cmd.c (do_bitfield_tests): New
2177 (main): Call do_bitfield_tests.
2178 * gdb.mi/mi-var-cmd.exp: Run the 'bitfield' testcase.
2182 * Makefile.in gdb.ada/gnat_ada.gpr, gdb.base/gcore-buffer-overflow.c,
2183 gdb.base/gcore-buffer-overflow.exp, gdb.base/source-error.gdb,
2184 gdb.base/watch_thread_num.c, gdb.java/jprint.java,
2185 gdb.mi/mi-async.exp, gdb.modula2/unbounded-array.exp,
2186 gdb.modula2/unbounded1.c: Update copyright header.
2191 * gdb.cp/virtfunc2.exp: New tests
2192 * gdb.cp/virtfunc2.cc: New tests
2193 * gdb.cp/Makefile.in: Added tests to EXECUTABLES
2197 * gdb.reverse/i387-env-reverse.c: New file.
2198 * gdb.reverse/i387-env-reverse.exp: New file.
2199 * gdb.reverse/i387-stack-reverse.c: New file.
2200 * gdb.reverse/i387-stack-reverse.exp: New file.
2204 * gdb.python/py-type.exp (test_range): New test.
2210 * gdb.python/py-type.exp: New file.
2211 * gdb.python/py-type.c: New file.
2212 * Makefile.in: Add py-type.
2216 * gdb.python/py-value.exp (test_parse_and_eval): New
2223 * gdb.base/pr11022.exp: New test.
2224 * gdb.base/pr11022.c: New test.
2228 Fix spurious false FAILs.
2229 * gdb.base/structs.c (chartest): New.
2230 (main): Fill-in chartest.
2231 * gdb.base/structs.exp (anychar_re, first): New.
2232 (start_structs_test): Import global anychar_re and first.
2233 New gdb_test call "set print elements 300; ${testfile}"
2234 (start_structs_test <$first>): New block.
2235 (any): Import global anychar_re. New variable ac. Use ${ac}.
2239 * gdb.base/bigcore.exp (extract_heap): Set $lim limit to 200.
2243 * gdb.base/foll-fork.exp (unpatch child, breakpoint at exit call):
2244 Force $srcfile file.
2245 * gdb.base/foll-fork.c (callee): Comment out the printf call.
2249 * gdb.base/hbreak.exp: Disable for s390*-*-* targets.
2250 * gdb.base/watchpoint-hw-hit-once.exp: Likewise.
2251 * gdb.threads/watchthreads-reorder.exp: Likewise.
2257 * gdb.base/condbreak.exp: Test combinations of "break *EXP",
2258 "if", and "thread". Correct matching in the previous test.
2262 * gdb.cp/extern-c.cc, gdb.cp/extern-c.exp: New test.
2266 * gdb.reverse/watch-reverse.exp: Extend test for hw watchpoints.
2267 * gdb.reverse-watch-precsave.exp: Ditto.
2271 * gdb.asm/asm-source.exp: Adjust.
2272 * gdb.base/help.exp: Adjust.
2276 * gdb.base/catch-syscall.exp (test_catch_syscall_fail_nodatadir)
2277 (do_syscall_tests_without_xml): Set data-directory to
2278 /the/path/to/nowhere.
2282 * gdb.threads/local-watch-wrong-thread.c,
2283 gdb.threads/local-watch-wrong-thread.exp: New files.
2287 * gdb.cp/cplusfuncs.exp (info_func_regexp, print_addr): Don't
2288 assume new `regsub' syntax available.
2292 * gdb.base/watchpoint-hw-hit-once.exp,
2293 gdb.base/watchpoint-hw-hit-once.c: New.
2297 * gdb.threads/watchthreads-reorder.exp,
2298 gdb.threads/watchthreads-reorder.c: New.
2302 * gdb.xml/tdesc-regs.exp: Use for m68k.
2306 * gdb.base/watch-vfork.c, gdb.base/watch-vfork.exp: New files.
2310 * lib/gdb.exp (current_target_name): New procedure.
2311 (gdb_wrapper_target): New variable.
2312 (gdb_wrapper_init): Set gdb_wrapper_target.
2313 (default_gdb_init): Check gdb_wrapper_target before rebuilding the
2318 * gdb.base/remote.exp: Delete the slowest load test.
2319 Do not load with fixed packet sizes.
2323 * gdb.cp/virtfunc.exp (do_tests): If runto_main fails, give up.
2327 * gdb.base/freebpcmd.exp: Delete unused variable. Specify
2328 srcfile when setting a breakpoint.
2332 * gdb.base/find.c (int8_t, int16_t, int32_t, int64_t): Undefine
2337 * gdb.cp/formatted-ref.exp (test_p_x_ref_addr): Allow the reference
2339 * gdb.base/display.c (force_mem): New.
2340 (do_loops): Use it. Add breakpoint comments.
2341 (do_vars): Add a breakpoint comment.
2342 * gdb.base/display.exp: Use gdb_get_line_number. Remove hardcoded
2347 * gdb.base/pending.exp: Use gdb_run_cmd to start the program
2348 instead of a bare "run".
2352 * gdb.python/py-prettyprint.exp: Adjust.
2356 * lib/cell.exp (skip_cell_tests): Clean up test files before
2361 * lib/gdb.exp (gdb_test_multiple): Handle "y or [n]", "[y] or n",
2362 and the breakpoint menu. Do not call perror if a prompt is seen.
2363 Consume the following GDB prompt.
2364 * gdb.cp/method2.exp (test_break): Use gdb_test_multiple.
2365 * gdb.cp/namespace.exp: Use gdb_test.
2366 * gdb.cp/templates.exp: Use gdb_test.
2367 (test_template_breakpoints): Use gdb_test_multiple.
2371 * gdb.base/break1.c (struct some_struct, values): Move earlier.
2372 (marker4): Reference values.
2376 * gdb.base/macscp.exp: Avoid the first FAIL if macro information
2381 * gdb.base/break.c (need_malloc): New.
2382 * gdb.base/constvars.c (main): Reference crass and crisp.
2383 * gdb.base/gdb1821.c (main): Reference bar.
2384 * gdb.cp/gdb1355.cc (main): Reference s1.
2385 * gdb.cp/hang1.cc (dummy2, dummy3): Declare.
2387 * gdb.cp/hang2.cc (dummy2): Define.
2388 * gdb.cp/hang3.cc (dummy3): Define.
2389 * gdb.cp/m-data.cc (main): Reference shadow.
2394 * lib/gdb.exp (gdb_compile): Also set rpath for shlib=, on a
2399 * gdb.base/step-line.exp: Copy step-line.inp to the remote host.
2400 * gdb.dwarf2/dw2-basic.exp: Copy file1.txt to the remote host.
2401 * gdb.dwarf2/dw2-compressed.exp: Likewise.
2402 * gdb.dwarf2/dw2-intercu.exp: Likewise.
2403 * gdb.dwarf2/dw2-intermix.exp: Likewise.
2404 * gdb.dwarf2/dw2-producer.exp: Likewise.
2405 * gdb.dwarf2/mac-fileno.exp: Likewise.
2406 * gdb.python/py-prettyprint.exp (run_lang_tests): Copy
2407 py-prettyprint.py to the remote host.
2408 * gdb.python/py-mi.exp: Copy py-mi.py to the remote host.
2412 * gdb.cp/classes.cc (ByAnyOtherName): Add typedef and
2413 use it instead of "Foo".
2414 * gdb.cp/classes.exp (do_tests): Add a test to access
2415 a method through a typedef'd class name.
2419 * gdb.base/long_long.exp: Permit leading zeros on floating-point
2421 * gdb.base/pointers.exp: Likewise.
2422 * gdb.cp/ref-types.exp: Likewise.
2426 * gdb.cp/cplusfuncs.cc (class foo): Add operators
2428 * gdb.cp/cplusfuncs.exp (dm_type_void): Change to
2430 (probe_demangler): Remove all single-quoting of
2431 method and variable names.
2432 (info_func_regexp): Remove the word "void" from any
2433 occurrence of "(void)".
2434 (print_addr_2): Remove all single-quoting of
2436 (print_addr_2_kfail): Likewise.
2437 (print_addr): Single-quote C function names before
2438 passing to print_addr_2.
2439 (test_paddr_operator_functions): Remove single-quoting
2441 Add tests for operator new[] and operator delete[].
2445 * gdb.dwarf2/dw2-ranges.exp: Call runto_main.
2449 * gdb.cp/overload.exp: Add tests for resolving overloaded
2450 methods in expression parsing/evaluation.
2454 * lib/gdb.exp (default_gdb_version): Use --version instead of
2459 * lib/gdb.exp (gdb_compile_test): New.
2460 (skip_ada_tests, skip_java_tests): New.
2461 (gdb_compile): Use gdb_compile_test for f77.
2462 * lib/ada.exp (gdb_compile_ada): Use gdb_compile_test to record result.
2463 * lib/java.exp (compile_java_from_source): Remove runtests check,
2464 use gdb_compile_test to record result.
2465 * gdb.ada/packed_array.exp, gdb.ada/fixed_points.exp,
2466 gdb.ada/exec_changed.exp, gdb.ada/start.exp,
2467 gdb.ada/watch_arg.exp, gdb.ada/null_record.exp,
2468 gdb.ada/array_return.exp, gdb.ada/arrayidx.exp,
2469 gdb.mi/mi-var-child-f.exp, gdb.fortran/types.exp,
2470 gdb.fortran/array-element.exp, gdb.fortran/subarray.exp,
2471 gdb.fortran/derived-type.exp, gdb.fortran/exprs.exp,
2472 gdb.java/jmisc.exp, gdb.java/jmisc1.exp, gdb.java/jprint.exp,
2473 gdb.java/jv-print.exp, gdb.java/jmain.exp: Add language skip,
2474 adjust gdb_compile invocations.
2478 * Makefile.in (abs_builddir): New.
2479 (site.exp): New target `$(abs_builddir)/site.exp'. New comment.
2480 (check-single, $(TEST_TARGETS), check-gdb.base%): Change `site.exp' to
2481 `$(abs_builddir)/site.exp'.
2485 * config/m68k-emc.exp, lib/emc-support.exp,
2486 gdb.trace/gdb_c_test.c: Delete.
2487 * gdb.trace/actions.exp, gdb.trace/backtrace.exp, gdb.trace/circ.exp,
2488 gdb.trace/collection.exp, gdb.trace/deltrace.exp,
2489 gdb.trace/infotrace.exp, gdb.trace/limits.exp, gdb.trace/packetlen.exp,
2490 gdb.trace/passc-dyn.exp, gdb.trace/passcount.exp, gdb.trace/report.exp,
2491 gdb.trace/save-trace.exp, gdb.trace/tfind.exp, gdb.trace/tracecmd.exp,
2492 gdb.trace/while-dyn.exp, gdb.trace/while-stepping.exp: Remove special
2493 casing for m68k-*-elf.
2497 * gdb.arch/i386-gnu-cfi.exp: Define SYMBOL_PREFIX on *-*-mingw*.
2498 * gdb.arch/i386-prologue.exp: Likewise.
2499 * gdb.arch/i386-unwind.exp: Likewise.
2503 * lib/gdb.exp (gdb_expect): Fix timeout typo.
2507 * gdb.base/opaque.exp: Remove duplicate tests and xyz from test name.
2511 * gdb.cp/ctti.exp: Correct return values for unsigned char functions.
2515 * gdb.base/sepdebug.exp: New test_different_dir call for multiple-dirs.
2519 * gdb.base/sepdebug.exp (CRC mismatch is reported): New test.
2520 * gdb.base/sepdebug2.c: New file.
2524 * gdb.base/catch-syscall.exp: Adapt the testcase in order to accept
2525 the modified warnings for catch syscall. Verify if GDB was compiled
2526 with support for lib expat, and choose which tests to run depending
2531 * gdb.mi/mi-break.exp (test_breakpoint_commands): Test
2532 that composite commands are parsed OK. And also test
2533 that breakpoint commands do work.
2537 gdb.reverse/consecutive-precsave.exp: Change expect pattern
2538 to allow for new disassembly style.
2542 * gdb.asm/asm-source.exp: Adjust.
2546 * gdb.reverse/break-precsave.exp: New test.
2547 * gdb.reverse/consecutive-precsave.exp: Ditto.
2548 * gdb.reverse/finish-precsave.exp: Ditto.
2549 * gdb.reverse/i386-precsave.exp: Ditto.
2550 * gdb.reverse/machinestate-precsave.exp: Ditto.
2551 * gdb.reverse/sigall-precsave.exp: Ditto.
2552 * gdb.reverse/solilb-precsave.exp: Ditto.
2553 * gdb.reverse/step-precsave.exp: Ditto.
2554 * gdb.reverse/until-precsave.exp: Ditto.
2555 * gdb.reverse/watch-precsave.exp: Ditto.
2559 * gdb.reverse/consecutive-reverse.exp: Substitute gdb_test_multiple
2560 for gdb_expect. Adjust one test's expect strings for the new
2561 format of disassemble.
2562 * gdb.reverse/finish-reverse.exp: Delete 'return'.
2563 * gdb.reverse/sigall-reverse.exp: Substitute gdb_test for
2565 * gdb.reverse/step-reverse.exp: Delete 'return'.
2566 * gdb.reverse/until-reverse.exp: Delete blank lines.
2567 * gdb.reverse/watch-reverse.exp: Delete blank lines.
2571 * gdb.base/consecutive.exp: Adjust.
2572 * gdb.base/display.exp: Likewise.
2573 * gdb.base/pc-fp.exp: Likewise.
2574 * gdb.base/sigbpt.exp: Likewise.
2578 * gdb.reverse/consecutive-reverse.c: Add comment at end of main.
2579 * gdb.reverse/finish-reverse.c: Ditto.
2580 * gdb.reverse/sigall-reverse.c: Ditto.
2581 * gdb.reverse/solib-reverse.c: Ditto.
2582 * gdb.reverse/step-reverse.c: Ditto.
2583 * gdb.reverse/watch-reverse.c: Ditto.
2588 * gdb.base/foll-vfork.exp: Adjust to spell out "follow-fork".
2589 * gdb.base/foll-exec.exp: Adjust to expect a process id before
2590 "Executing new program".
2591 * gdb.base/foll-fork.exp: Adjust to spell out "follow-fork".
2592 * gdb.base/multi-forks.exp: Ditto. Adjust to the inferior being
2593 left listed after having been killed.
2594 * gdb.base/attach.exp: Adjust to spell out "symbol-file".
2595 * gdb.base/maint.exp: Adjust test.
2597 * Makefile.in (ALL_SUBDIRS): Add gdb.multi.
2598 * gdb.multi/Makefile.in: New.
2599 * gdb.multi/base.exp: New.
2600 * gdb.multi/goodbye.c: New.
2601 * gdb.multi/hangout.c: New.
2602 * gdb.multi/hello.c: New.
2603 * gdb.multi/bkpt-multi-exec.c: New.
2604 * gdb.multi/bkpt-multi-exec.exp: New.
2605 * gdb.multi/crashme.c: New.
2609 * gdb.base/sepdebug.exp: Check debug info are found.
2613 * lib/gdb.exp (gdb_compile): Remove dead aix and irix related
2618 * gdb.base/hbreak.exp, gdb.base/hbreak.c: New.
2622 * gdb.base/watchpoints.c: Add copyright header. Reformat one
2627 * gdb.base/annota1.exp: Remove obsolete match_max increase.
2628 * gdb.base/annota3.exp: Idem.
2629 * gdb.base/maint.exp: Idem.
2633 * lib/gdb.exp (default_gdb_init): Set current value of match_max
2638 * lib/gdb.exp (gdb_compile): Add --enable-auto-import option for
2639 mingw and cygwin targets.
2644 * lib/gdb.exp (gdb_compile): Avoid adding
2645 gdb_saved_unbuffered_mode_obj if -nostdlib option is used.
2649 * gdb.base/shr1.c: Use %p in format string.
2650 * gdb.base/unload.c: Avoid warning in fprintf.
2651 * gdb.base/watchpoint-solib.c: Idem.
2655 * gdb.base/fileio.c (test_lseek): typecast ofs_t ret variable to
2657 (test_unlink): Correct printf string.
2658 * gdb.base/checkpoint.c (main): Correct fprintf string for variable i.
2659 * gdb.threads/attachstop-mt.c: Add #include <string.h>.
2663 * gdb.base/breakpoint-shadow.exp: Move the ia64 part into ...
2664 * gdb.arch/ia64-breakpoint-shadow.exp: ... a new file, with new tests.
2665 * gdb.arch/ia64-breakpoint-shadow.S: New file.
2669 * gdb.objc/basicclass.exp: Disable pending breakpoint query.
2670 * gdb.objc/nondebug.exp: Likewise.
2674 * gdb.base/watchpoints.exp: Respect gdb,no_hardware_watchpoints
2675 target_info setting.
2677 * gdb.threads/thread-specific.exp (get_thread_list): Support targets
2678 that detect new threads during "info threads".
2682 * gdb.threads/manythreads.c (main): Increase thread stack size
2683 to 2*PTHREAD_STACK_MIN.
2684 * gdb.threads/multi-create.c (main): Likewise.
2685 (create_function): Likewise.
2689 * gdb.base/dump.exp: Pass difference of pointer types instead
2690 of integer types as offset to restore in intarr3.srec case.
2694 * gdb.cp/gdb2495.exp: Skip test on spu*-*-*.
2698 * gdb.base/pie-support.exp: Pass "quiet" flag to gdb_compile.
2702 New test for two watchpoints, with disabling of
2704 * testsuite/gdb.base/watchpoints.c: New file.
2705 * testsuite/gdb.base/watchpoints.exp: New file.
2709 * gdb.base/charset.exp: Test utf-16 strings with Python.
2713 * gdb.base/charset.exp: Use UTF-16 and UTF-32, not UCS-2 and
2715 * gdb.base/charset.c (utf_32_string): Rename.
2716 (init_utf32): Rename.
2721 * gdb.python/py-function.exp: Add regression tests.
2725 * gdb.cp/cplusfuncs.exp (do_tests): Add check for proper error message
2726 with invalid operator.
2730 * gdb.cp/classes.exp (do_tests): Add tests to print a constructor
2731 and destructor using typedef name of class.
2732 * gdb.cp/classes.cc (class Base1): Add a destructor.
2733 (base1): New typedef.
2734 (use_methods): Instanitate an object of type base1.
2735 * gdb.cp/templates.exp (test_template_typedef): New procedure.
2736 (do_tests): Call test_template_typedef.
2737 * gdb.cp/templates.cc (Baz::~Baz): New method.
2738 (intBazOne): New typedef.
2739 (main): Instantiate intBazOne.
2745 * gdb.python/py-prettyprint.exp (gdb_py_test_silent_cmd): New
2747 (run_lang_tests): Add print elements test.
2751 * gdb.python/py-value.exp (test_subscript_regression): New
2752 function. Test for invalid subscripts.
2753 * gdb.python/py-value.c (main): Add test array, and pointer to it.
2754 (ptr_ref): New function.
2758 * gdb.base/default.exp: Fix "show convenience".
2762 * lib/mi-support.exp (mi_create_varobj): Update.
2763 (mi_create_floating_varobj): Likewise.
2764 (mi_create_dynamic_varobj): New proc.
2765 (mi_varobj_update): Update.
2766 (mi_varobj_update_with_type_change): Likewise.
2767 (mi_varobj_update_kv_helper): New proc.
2768 (mi_varobj_update_dynamic_helper): Rewrite.
2769 (mi_varobj_update_dynamic): New proc.
2770 (mi_list_varobj_children): Update.
2771 (mi_list_varobj_children_range): Add 'from' and 'to' arguments.
2772 * gdb.python/python-prettyprint.py (pp_outer): New class.
2773 (pp_nullstr): Likewise.
2774 (lookup_function): Register new printers.
2775 * gdb.python/python-prettyprint.c (struct substruct): New type.
2776 (struct outerstruct): Likewise.
2777 (substruct_test): New function.
2778 (struct nullstr): New type.
2779 (string_1, string_2): New globals.
2780 (main): Add new tests.
2781 * gdb.python/python-mi.exp: Added regression tests.
2782 * gdb.mi/mi2-var-display.exp: Update.
2783 * gdb.mi/mi2-var-cmd.exp: Update.
2784 * gdb.mi/mi2-var-child.exp: Update.
2785 * gdb.mi/mi2-var-block.exp: Update.
2786 * gdb.mi/mi-var-invalidate.exp: Update.
2787 * gdb.mi/mi-var-display.exp: Update.
2788 * gdb.mi/mi-var-cmd.exp: Update.
2789 * gdb.mi/mi-var-child.exp: Update.
2790 * gdb.mi/mi-var-block.exp: Update.
2791 * gdb.mi/mi-break.exp: Update.
2792 * gdb.mi/gdb701.exp: Update.
2796 * Makefile.in: Inclusion of catch-syscall object.
2797 * gdb.base/catch-syscall.c: New file.
2798 * gdb.base/catch-syscall.exp: New file.
2802 * gdb.reverse/step-reverse.exp: Explicitly check for targets
2803 that can support reverse debuggnig.
2807 * gdb.dwarf2/valop.S: New file.
2808 * gdb.dwarf2/valop.exp: New file.
2812 * gdb.threads/current-lwp-dead.exp: Only run this on Linux.
2816 * gdb.base/breakpoint-shadow.exp: Fix intermittent failures.
2817 Add $gdb_prompt to second breakpoint regexp.
2821 * gdb.python/Makefile.in (EXECUTABLES): Adjust to new executable
2822 names, add missing ones.
2823 * gdb.python/py-cmd.exp: Rename from python-cmd.exp.
2824 * gdb.python/py-frame.c: Rename from python-frame.c.
2825 * gdb.python/py-frame.exp: Rename from python-frame.exp. Adjust
2827 * gdb.python/py-function.exp: Rename from python-function.exp.
2828 * gdb.python/py-mi.exp: Rename from python-mi.exp. Adjust
2830 * gdb.python/py-prettyprint.c: Rename from python-prettyprint.c.
2831 * gdb.python/py-prettyprint.exp: Rename from python-prettyprint.exp.
2832 Adjust testfile name.
2833 * gdb.python/py-prettyprint.py: Rename from python-prettyprint.py.
2834 * gdb.python/py-template.cc: Rename from python-template.cc.
2835 * gdb.python/py-template.exp: Rename from python-template.exp.
2836 Adjust testfile name.
2837 * gdb.python/py-value.c: Rename from python-value.c.
2838 * gdb.python/py-value.exp: Rename from python-value.exp. Adjust
2843 * gdb.base/breakpoint-shadow.exp (Second breakpoint placed): Initialize
2845 (Second breakpoint address is valid on ia64)
2846 (Third breakpoint on ia64 in the Second breakpoint's bundle): New.
2850 * gdb.base/ending-run.exp: Restrict regular expression matching
2851 line number to require closing brace following.
2855 * gdb.base/store.exp (check_set): Fix typo in expected value message.
2859 * gdb.dwarf2/callframecfa.exp: Use gdb_continue_to_breakpoint.
2863 * gdb.dwarf2/callframecfa.exp: New file.
2864 * gdb.dwarf2/callframecfa.S: New file.
2868 * gdb.base/solib-overlap.exp, gdb.base/solib-overlap-lib.c,
2869 gdb.base/solib-overlap-main.c: New.
2875 * gdb.base/bitfields.c (struct container, container): New.
2876 (main): Initialize it and call break5.
2877 * gdb.base/bitfields.exp (bitfield_at_offset): New test.
2881 Support constant DW_AT_data_member_location by GCC PR debug/40659.
2882 * gdb.dwarf2/dw2-inheritance.exp, gdb.dwarf2/dw2-inheritance.S: New.
2886 * gdb.mi/mi2-var-cmd.exp (create variable with invalid FRAME-ADDR): New.
2890 * gdb.base/i386-reverse.c: New file.
2891 * gdb.base/i386-reverse.exp: New file.
2892 * gdb.base/Makefile.in: Add new files to be removed.
2896 * gdb.mi/mi-basics.exp (test_cwd_specification): Do not test
2897 environment-pwd for remote host.
2898 * gdb.mi/mi2-basics.exp (test_cwd_specification): Likewise.
2902 * gdb.cp/cpcompletion.exp (test_class_complete): New procedure.
2903 Add two new C++ completer tests which limit the output to a
2908 * gdb.base/del.exp: Fix typo in comment.
2909 * gdb.base/step-bt.exp: Fix cut and paste error in comment.
2913 * configure: Regenerate.
2914 * gdb.hp/configure: Likewise.
2915 * gdb.hp/gdb.aCC/configure: Likewise.
2916 * gdb.hp/gdb.base-hp/configure: Likewise.
2917 * gdb.hp/gdb.compat/configure: Likewise.
2918 * gdb.hp/gdb.defects/configure: Likewise.
2919 * gdb.hp/gdb.objdbg/configure: Likewise.
2920 * gdb.stabs/configure: Likewise.
2924 * gdb.base/gdbvars.c: New file.
2925 * gdb.base/gdbvars.exp: Test convenience vars with program variables.
2929 * gdb.threads/killed.exp, gdb.threads/manythreads.exp,
2930 gdb.threads/staticthreads.exp: Adjust to "quit" output changes.
2934 * gdb.base/default.exp: Adjust "set language test": it's now an
2935 enum command. Larger help string moved to "help set language".
2936 * gdb.base/help.exp: Adjust "help set language" expected output,
2937 now lists all known languages.
2941 * gdb.arch/altivec-abi.exp (altivec_abi_tests): Turn on printing of
2942 all frame arguments.
2943 * gdb.arch/altivec-regs.exp: Likewise.
2947 * gdb.base/setshow.exp: Add tests for changes to set language, set
2948 check range, and set check type.
2952 * lib/mi-support.exp (mi_list_breakpoints): Make it work.
2953 * gdb.mi/mi-break.exp (test_breakpoint_commands): New.
2958 * configure.ac: Run gdb.cell tests when appropriate.
2959 * configure: Regenerate.
2960 * lib/cell.exp: New file.
2961 * gdb.cell: New directory.
2962 * gdb.cell/configure.ac: New file.
2963 * gdb.cell/configure: New file.
2964 * gdb.cell/Makefile.in: New file.
2965 * gdb.cell/arch.exp: New file.
2966 * gdb.cell/break.c: New file.
2967 * gdb.cell/break.exp: New file.
2968 * gdb.cell/break-spu.c: New file.
2969 * gdb.cell/bt.c: New file.
2970 * gdb.cell/bt2-spu.c: New file.
2971 * gdb.cell/bt-spu.c: New file.
2972 * gdb.cell/bt.exp: New file.
2973 * gdb.cell/coremaker.c: New file.
2974 * gdb.cell/coremaker-spu.c: New file.
2975 * gdb.cell/core.exp: New file.
2976 * gdb.cell/gcore.exp: New file.
2977 * gdb.cell/data.c: New file.
2978 * gdb.cell/data.exp: New file.
2979 * gdb.cell/data-spu.c: New file.
2980 * gdb.cell/ea-cache.exp: New file.
2981 * gdb.cell/ea-cache.c: New file.
2982 * gdb.cell/ea-cache-spu.c: New file.
2983 * gdb.cell/ea-standalone.c: New file.
2984 * gdb.cell/ea-standalone.exp: New file.
2985 * gdb.cell/ea-test.c: New file.
2986 * gdb.cell/ea-test.exp: New file.
2987 * gdb.cell/f-regs.exp: New file.
2988 * gdb.cell/mem-access.c: New file.
2989 * gdb.cell/mem-access.exp: New file.
2990 * gdb.cell/mem-access-spu.c: New file.
2991 * gdb.cell/ptype.exp: New file.
2992 * gdb.cell/registers.exp: New file.
2993 * gdb.cell/size.c: New file.
2994 * gdb.cell/sizeof.exp: New file.
2995 * gdb.cell/size-spu.c: New file.
2996 * gdb.cell/solib.exp: New file.
2997 * gdb.cell/solib-symbol.exp: New file.
3001 * gdb.xml/tdesc-regs.exp: Skip for SPU targets.
3005 * gdb.base/float.exp: Handle VFP registers.
3009 * gdb.reverse/finish-reverse.exp: Do not expect reverse-finish
3010 to bring gdb to the beginning of the calling line.
3012 * gdb.arch/i386-signal.c (sigframe): Add a nop to avoid
3013 confusing the i386 epilogue unwinder.
3017 * gdb.trace/tracecmd.exp: Add basic test of tracepoint conditions.
3021 * gdb.reverse/step-reverse.exp (stepi into function call):
3022 Call instruction may not be first instruction in the line.
3023 (reverse stepi from a function call): Used wrong line number.
3027 * gdb.arch/amd64-i386-address.exp, gdb.arch/amd64-i386-address.S: New.
3031 Fix gdb.base/macscp.exp when using custom inputrc.
3032 * gdb.base/completion.exp: Remove env(INPUTRC) set and restore.
3033 * gdb.base/readline.exp: Remove env(INPUTRC) set and restore. Remove
3035 * gdb.cp/cpcompletion.exp: Remove env(INPUTRC) set.
3036 * lib/gdb.exp (default_gdb_start): Add env(INPUTRC) and env(TERM) set.
3040 Fix racy clashing of output files for gdb.base{1,2}/ parallel run.
3041 * gdb.base/annota1.exp (thread_test): Import global $testfile.
3042 Change the compilation target to match the testcase name.
3043 * gdb.base/sect-cmd.exp: Change the compilation target to match the
3045 * a2-run.exp: Use for setup prepare_for_testing. Change the
3046 compilation target to match the testcase name.
3047 * gdb.base/commands.exp: Likewise.
3048 * gdb.base/finish.exp: Likewise.
3049 * gdb.base/float.exp: Likewise.
3050 * gdb.base/info-target.exp: Likewise.
3051 * gdb.base/relational.exp: Likewise.
3052 * gdb.base/term.exp: Likewise.
3053 * gdb.base/until.exp: Likewise.
3054 * gdb.base/volatile.exp: Likewise.
3055 * gdb.base/whatis-exp.exp: Likewise.
3059 * gdb.base/help.exp (disassemble): Update expected help text.
3063 * lib/gdb.exp: Handle TRANSCRIPT.
3064 (remote_spawn, remote_close, send_gdb): New procs.
3068 * gdb.python/python-prettyprint.c: Add counted null string
3070 * gdb.python/python-prettyprint.exp: Print null string. Test for
3072 * gdb.python/python-prettyprint.py (pp_ns): New Function.
3073 * gdb.python/python-value.exp (test_value_in_inferior): Add
3074 variable length string fetch tests.
3075 * gdb.python/python-value.c (main): Add strings for string fetch tests.
3079 * gdb.base/dump.exp (inaccessible memory is reported): New test.
3083 * gdb.base/call-rt-st.exp: Update for change to escape output.
3084 * gdb.base/callfuncs.exp: Likewise.
3085 * gdb.base/charset.exp: Likewise.
3086 * gdb.base/constvars.exp: Likewise.
3087 * gdb.base/long_long.exp: Likewise.
3088 * gdb.base/pointers.exp: Likewise.
3089 * gdb.base/printcmds.exp: Likewise.
3090 * gdb.base/setvar.exp: Likewise.
3091 * gdb.base/store.exp: Likewise.
3092 * gdb.cp/ref-types.exp: Likewise.
3093 * gdb.mi/mi-var-child.exp: Likewise.
3094 * gdb.mi/mi-var-display.exp: Likewise.
3095 * gdb.mi/mi2-var-display.exp: Likewise.
3096 * gdb.base/charset.exp: Test octal escape sequence length.
3097 Update for change to escape output.
3101 * gdb.mi/mi2-var-cmd.exp (floating varobj invalidation): New test.
3105 * lib/java.exp (java_init): Ignore $GCJ if it is empty.
3109 * lib/gdbserver-support.exp (gdbserver_start): Loop spawning
3110 gdbserver increasing $portnum if "Can't bind address" has been seen.
3114 * gdb.base/ending-run.exp: Add "step out of main" pattern for
3119 * gdb.base/long_long.exp: arm-mingw32ce defaults to natural-endian
3124 * gdb.base/multi-forks.exp: Only run detach-on-fork tests on
3125 linux. Adjust to use "inferior", "info inferiors", "detach
3126 inferior" and "kill inferior" instead of "restart", "info fork",
3127 "detach fork" and "delete fork".
3128 * gdb.base/ending-run.exp: Spell out "info".
3129 * gdb.base/help.exp: Adjust to use test_prefix_command_help for
3134 * gdb.threads/tls-shared.exp: Update to locexpr_describe_location
3135 change to prefix TLS offset in hex with 0x.
3139 * gdb.base/default.exp: Update test case for "x" changes.
3143 * gdb.base/bigcore.exp: Make darwin untested.
3147 * gdb.base/completion.exp (directory completion): Create the directory.
3148 New variables uniquedir, escapeduniquedir, uniquesu, uniquesub,
3150 (directory completion 2): Expect now ${escapeuniquesub}.
3151 (Glob remaining of directory test): Remove one excessive newline.
3152 Expect the real output.
3156 Fix `make check//%' target after `make check' has been ran.
3157 * Makefile.in (TEST_TARGETS): Remove the %/.dir dependency. Add
3159 (check-gdb.base%): Remove the gdb.base%/.dir dependency.
3164 * lib/mi-support.exp (mi_check_thread_states): Permit any output before
3165 the expected result record.
3169 Remove racy FAILs relying just on the timeouts.
3170 * gdb.base/setshow.exp (set annotate 2, show annotate (2))
3171 (annotation_level 2): Remove racy FAILs.
3176 * gdb.dwarf2/dw2-restore.{S,exp}: New test.
3180 * gdb.opt/inline-locals.exp: Remove XFAIL with duplicated arg1.
3184 * gdb.mi/mi-stack.exp: Testing symbolic options
3185 to -stack-list-locals and -stack-list-arguments.
3189 * gdb.threads/current-lwp-dead.exp, gdb.threads/current-lwp-dead.c: New.
3193 * dg-extract-results.sh: New file.
3194 * Makefile.in (FORCE_PARALLEL): New variable.
3195 (CHECK_TARGET): New conditional variable.
3196 (check): Use CHECK_TARGET.
3197 (DO_RUNTEST): New variable.
3198 (check-single): New target.
3199 (TEST_DIRS): New variable.
3200 (TEST_TARGETS): Likewise.
3201 (check-parallel): New target.
3202 (check-gdb.%): New pattern.
3203 (BASE1_FILES): New variable.
3204 (BASE2_FILES): Likewise.
3205 (check-gdb.base%): New pattern.
3206 (%/.dir): New pattern.
3207 * configure: Rebuild.
3208 * aclocal.m4 (AM_CONDITIONAL): New defun.
3209 * configure.ac: Check whether user is using GNU make.
3210 (GMAKE): New conditional.
3214 * gdb.cp/namespace-nested-import.cc: New test.
3215 * gdb.cp/namespace-nested-import.exp: New test.
3219 * gdb.base/break.exp: Add an XFAIL for gcc/36748.
3220 * gdb.cp/annota2.exp: Accept frames-invalid in more places.
3221 * gdb.opt/Makefile.in (EXECUTABLES): Update.
3222 * gdb.opt/clobbered-registers-O2.exp: Update to GPL v3.
3223 * gdb.opt/inline-bt.c, gdb.opt/inline-bt.exp,
3224 gdb.opt/inline-cmds.c, gdb.opt/inline-cmds.exp,
3225 gdb.opt/inline-locals.c, gdb.opt/inline-locals.exp,
3226 gdb.opt/inline-markers.c: New files.
3227 * lib/gdb.exp (skip_inline_frame_tests): New function.
3228 (skip_inline_var_tests): New function.
3232 * gdb.cp/exception.exp: Don't require $hex before inner frame in
3237 * gdb.reverse: New directory.
3238 * gdb.reverse/break-reverse.c: New test.
3239 * gdb.reverse/break-reverse.exp: New test.
3240 * gdb.reverse/consecutive-reverse.c: New test.
3241 * gdb.reverse/consecutive-reverse.exp: New test.
3242 * gdb.reverse/finish-reverse.c: New test.
3243 * gdb.reverse/finish-reverse.exp: New test.
3244 * gdb.reverse/machinestate.c: New test.
3245 * gdb.reverse/ms1.c: New test.
3246 * gdb.reverse/machinestate.exp: New test.
3247 * gdb.reverse/Makefile.in: New file.
3248 * gdb.reverse/shr2.c: New test.
3249 * gdb.reverse/solib-reverse.c: New test.
3250 * gdb.reverse/solib-reverse.exp: New test.
3251 * gdb.reverse/step-reverse.c: New test.
3252 * gdb.reverse/step-reverse.exp: New test.
3253 * gdb.reverse/until-reverse.c: New test.
3254 * gdb.reverse/ur1.c: New test.
3255 * gdb.reverse/until-reverse.exp: New test.
3256 * gdb.reverse/watch-reverse.c: New test.
3257 * gdb.reverse/watch-reverse.exp: New test.
3258 * configure.ac (AC_OUTPUT): Add gdb.reverse/Makefile.
3259 * configure: Regenerate.
3263 * gdb.base/psymtab.exp: Turn off pending breakpoints.
3267 * gdb.base/exe-lock.exp (binfile): Add $EXEEXT suffix to fix
3268 windows problem for 'file delete $binfile'.
3272 * gdb.cp/namespace-using.exp: New test.
3273 * gdb.cp/namespace-using.cc: New test.
3277 * gdb.ada/variant_record_packed_array: New testcase.
3281 * gdb.base/charset.exp (test_combination): Regression test.
3282 * gdb.base/charset.c (my_wchar_t): New typedef.
3283 (myvar): New global.
3288 * lib/gdb.exp (gdb_compile): Also force unbuffered mode for DJGPP
3293 * gdb.base/dump.exp: Handle SPU like 64-bit platforms.
3297 * gdb.mi/gdb680.exp: Update test for error message.
3301 * gdb.base/annota1.exp: Allow multiple occurrences of the
3302 frames-invalid annotation.
3303 * gdb.cp/annota2.exp: Likewise.
3307 * gdb.cp/gdb2495.cc: New file.
3308 * gdb.cp/gdb2495.exp: New file.
3312 Report error on GDB crash during runto.
3313 * lib/gdb.exp (runto <eof>): New.
3317 * gdb.mi/mi-async.exp, gdb.mi/mi-basics.exp,
3318 gdb.mi/mi-break.exp, gdb.mi/mi-cli.exp,
3319 gdb.mi/mi-disassemble.exp, gdb.mi/mi-eval.exp,
3320 gdb.mi/mi-file-transfer.exp, gdb.mi/mi-file.exp,
3321 gdb.mi/mi-regs.exp, gdb.mi/mi-return.exp,
3322 gdb.mi/mi-simplerun.exp, gdb.mi/mi-stepi.exp,
3323 gdb.mi/mi-var-block.exp, gdb.mi/mi-var-cmd.exp,
3324 gdb.mi/mi-var-display.exp, gdb.mi/mi-var-invalidate.exp,
3325 gdb.mi/mi-watch.exp, gdb.mi/mi2-basics.exp,
3326 gdb.mi/mi2-break.exp, gdb.mi/mi2-cli.exp,
3327 gdb.mi/mi2-disassemble.exp, gdb.mi/mi2-eval.exp,
3328 gdb.mi/mi2-file.exp, gdb.mi/mi2-regs.exp,
3329 gdb.mi/mi2-return.exp, gdb.mi/mi2-simplerun.exp,
3330 gdb.mi/mi2-stepi.exp, gdb.mi/mi2-var-block.exp,
3331 gdb.mi/mi2-var-child.exp, gdb.mi/mi2-var-cmd.exp,
3332 gdb.mi/mi2-var-display.exp, gdb.mi/mi2-watch.exp,
3333 gdb.server/ext-run.exp, gdb.server/file-transfer.exp,
3334 gdb.server/server-mon.exp, gdb.server/server-run.exp,
3335 gdb.trace/actions.exp, gdb.trace/backtrace.exp,
3336 gdb.trace/deltrace.exp, gdb.trace/infotrace.exp,
3337 gdb.trace/packetlen.exp, gdb.trace/passc-dyn.exp,
3338 gdb.trace/passcount.exp, gdb.trace/report.exp,
3339 gdb.trace/save-trace.exp, gdb.trace/tfind.exp,
3340 gdb.trace/tracecmd.exp, gdb.trace/while-dyn.exp,
3341 gdb.trace/while-stepping.exp: Use a unique name for the compiled
3346 * gdb.threads/manythreads.c (main): Check if PTHREAD_STACK_MIN is
3347 defined before referencing it.
3351 * gdb.arch/i386-sse.exp: Test xmm[8-15] if amd64.
3352 * gdb.arch/i386-see.c: Ditto.
3356 * gdb.base/macscp.exp (info_macro): Return undefined if undefined.
3357 (check_macro): Return 1 if undefined.
3358 If first test fails, check if macro debug information is available,
3359 and report unsupported test if no macro information is found.
3363 * gdb.threads/hand-call-in-threads.exp: New.
3364 * gdb.threads/hand-call-in-threads.c: New.
3368 * gdb.base/break-always.exp: Change "1" to "on".
3369 Add confirmation check.
3373 * gdb.threads/threxit-hop-specific.c: New.
3374 * gdb.threads/threxit-hop-specific.exp: New.
3375 * gdb.threads/thread-execl.c: New.
3376 * gdb.threads/thread-execl.exp: New.
3381 * lib/mi-support.exp (mi_varobj_update_dynamic): New proc.
3382 (mi_child_regexp): Likewise.
3383 (mi_list_varobj_children_range): Likewise.
3384 (mi_get_features): Likewise.
3385 (mi_list_varobj_children): Rewrite.
3386 * gdb.python/python-mi.exp: New file.
3393 * gdb.python/python-prettyprint.exp: New file.
3394 * gdb.python/python-prettyprint.c: New file.
3395 * gdb.python/python-prettyprint.py: New file.
3396 * gdb.base/display.exp: print/r is now valid.
3403 * gdb.python/python-template.exp: New file.
3404 * gdb.python/python-template.cc: New file.
3405 * gdb.python/python.exp (gdb_py_test_multiple): Add two objfile
3407 * gdb.python/python-value.exp (py_objfile_tests): New proc.
3409 (test_value_after_death): New proc.
3410 * gdb.python/python-value.c (PTR): New typedef.
3411 (main): New variable 'x'.
3415 * gdb.python/python.exp (gdb_py_test_multiple): Add two objfile
3417 * gdb.python/python-value.exp (py_objfile_tests): New proc.
3422 * gdb.mi/nsthrexec.c, gdb.mi/mi-nsthrexec.exp: New.
3426 * gdb.threads/fork-thread-pending.c: New.
3427 * gdb.threads/fork-thread-pending.exp: New.
3431 * gdb.dwarf2/dw2-strp.exp (p a_string2, ptype a_string2): New.
3432 * gdb.dwarf2/dw2-strp.S (a_string2): New.
3436 * gdb.asm/asm-source.exp: Add lm32 target.
3440 * gdb.base/foll-fork.c: Include stdlib.h. Add markers for
3441 `gdb_get_line_number'. Call `callee' in both parent and child.
3442 * gdb.base/foll-fork.exp (catch_fork_child_follow): Use
3443 `gdb_get_line_number' instead of hardcoding line numbers.
3444 (catch_fork_unpatch_child): New procedure to test detaching
3445 breakpoints from child fork.
3446 (tcatch_fork_parent_follow): Use `gdb_get_line_number' instead of
3447 hardcoding line numbers.
3448 (do_fork_tests): Run `catch_fork_unpatch_child'.
3452 * gdb.mi/mi-cmd-var.exp: Check that when varobj
3453 of structure type enters or leaves the scope, it
3454 is reported by -var-update.
3458 * gdb.mi/nsintrall.c (main): Fix off-by-one error.
3459 * gdb.threads/pending-step.c (main): Fix off-by-one error.
3460 * gdb.threads/schedlock.c (main): Fix off-by-one error.
3464 * gdb.cp/expand-sals.exp, gdb.cp/expand-sals.cc: New.
3468 * gdb.threads/watchthreads2.exp: New testcase.
3469 * gdb.threads/watchthreads2.c: New testcase.
3473 * gdb.cp/mb-ctor.exp: Add multi-line source statement test.
3474 * gdb.cp/mb-ctor.cc: Ditto.
3475 * gdb.cp/mb-inline.exp: Add multi-line source statement test.
3476 * gdb.cp/mb-inline.h (multi_line_foo): New function.
3477 * gdb.cp/mb-inline1.cc: Call it.
3478 * gdb.cp/mb-inline2.cc: Ditto.
3479 * gdb.cp/mb-templates.exp: Add multi-line source statement test.
3480 * gdb.cp/mb-templates.cc (multi_line_foo): New template.
3484 * gdb.base/macscp.exp: New `options' parameter `-DFROM_COMMANDLINE'.
3485 (info_macro): Remova `decimal' declaration. New variable `nonzero'.
3486 Replace all uses of `decimal' by `nonzero'.
3487 (info macro FROM_COMMANDLINE): New test.
3491 * gdb.base/printcmds.exp (test_printf): Test comma operator in [].
3495 * gdb.threads/watchthreads.c (main): Initialize args before starting
3496 the threads. Plus formatting cleanup.
3497 * gdb.threads/watchthreads.exp: Avoid errant failures due to
3498 biased scheduling of one thread.
3502 * gdb.cp/templates.cc (GetMax): New template.
3503 (main): Declare two instances of GetMax.
3504 * gdb.cp/templates.exp: Add new test.
3508 * gdb.cp/abstract-origin.exp, gdb.cp/abstract-origin.cc: New test.
3512 * lib/gdb.exp (get_compiler_info): Use -E -o in remote-host case.
3516 * gdb.base/charset.exp: Add regression test.
3520 * gdb.base/exe-lock.exp: New testcase.
3524 * gdb.python/python-frame.exp (gdb_py_test_silent_cmd): Test !=
3529 * gdb.base/attach.exp: Re-enable for spu*-*-* targets.
3530 * gdb.server/ext-attach.exp: Likewise.
3534 Eliminate some sleep usage.
3536 * gdb.mi/basics.c (do_nothing): New.
3537 (main): Use do_nothing instead of printf, so that
3538 not to introduce race condition between output of
3539 inferiour and output of gdb. Do not use sleep as it
3540 is not generally available on embedded targets.
3544 * gdb.server/ext-attach.exp: Expect an optional process id after
3545 "Detached from remote process".
3549 * gdb.dwarf2/dw2-unresolved-main.c, gdb.dwarf2/dw2-unresolved.S,
3550 gdb.dwarf2/dw2-unresolved.exp: New.
3554 * gdb.mi/mi-nonstop-exit.exp: Don't check isnative. Use
3559 * gdb.mi/mi-nonstop.exp: Don't check isnative. Use
3560 mi_run_to_main. Skip thread exit test on remote targets.
3561 * gdb.mi/mi-nsintrall.exp: Don't check isnative. Use
3563 * gdb.mi/mi-nsmoribund.exp: Don't check isnative. Use
3565 * lib/mi-support.exp (mi_gdb_target_cmd): Remove trailing anchor
3566 when expecting ^connected. Detect when the target doesn't support
3568 (mi_run_cmd): Detect if non-stop mode was requested by isn't
3569 supported. Return -1 on error, 0 on success.
3570 (mi_runto_helper): Don't expect a stop if mi_run_cmd failed.
3571 (mi_runto): Return mi_runto_helper's result explicitly.
3575 * gdb.threads/pending-step.c, gdb.threads/pending-step.exp: New.
3579 * gdb.base/funcargs.exp: Set print frame-arguments to "all".
3580 * gdb.base/call-ar-st.exp: Set print frame-arguments to "all".
3581 * gdb.ada/ref_param.exp: Set print frame-arguments to "all".
3582 * gdb.ada/lang_switch.exp: Set print frame-arguments to "all".
3588 * gdb.cp/gdb1355.exp (f_li, f_lui, f_si, f_sui): Allow canonical
3590 * gdb.cp/templates.exp: Allow canonical output. Remove KFAILs
3592 * dw2-strp.S (DW_AT_language): Change to C++.
3593 (DW_TAG_variable (name ""), Abbrev code 7, .Lemptyname): New.
3597 * gdb.ada/tasks: New testcase.
3601 * gdb.trace/actions.exp: Update to match new info trace format.
3602 * gdb.trace/deltrace.exp: Ditto.
3603 * gdb.trace/infotrace.exp: Ditto.
3604 * gdb.trace/passcount.exp: Ditto.
3605 * gdb.trace/save-trace.exp: Ditto.
3606 * gdb.trace/while-stepping.exp: Ditto.
3607 * gdb.trace/tracecmd.exp: Ditto, plus don't allow pending option.
3611 * gdb.python/python-frame.c: New file.
3612 * gdb.python/python-frame.exp: New file.
3616 * gdb.python/python-value.exp: Add tests for the address
3621 * gdb.arch/powerpc-prologue.exp: Update for disassemble-next-line.
3625 * gdb.mi/mi-nonstop-exit.exp: New file.
3626 * gdb.mi/non-stop-exit.c: New file.
3630 Update for change to prologue skipping:
3631 * gdb.mi/mi2-simplerun.exp: Update.
3632 * gdb.mi/mi2-break.exp: Update.
3633 * gdb.mi/mi-simplerun.exp: Update.
3634 * gdb.mi/mi-break.exp: Update.
3635 * gdb.base/ending-run.exp: Update.
3639 * gdb.python/python-value.exp (test_value_in_inferior): Test
3640 gdb.Value.is_optimized_out attribute.
3644 * gdb.dwarf2/dw2-noloc-main.c: New file.
3645 * gdb.dwarf2/dw2-noloc.S: New symbols matrix.
3648 (DW_AT_stmt_list, .debug_line, DW_AT_frame_base): Remove.
3649 (DW_AT_low_pc, DW_AT_high_pc): Reference `dw2-noloc-main.c'.
3650 (DW_TAG_subprogram func_cu1, noloc): Remove.
3652 * gdb.dwarf2/dw2-noloc.exp: Use prepare_for_testing, compile also
3653 `dw2-noloc-main.c'. Test the new DIEs from `dw2-noloc.S'.
3654 (file_symbols): New procedure.
3658 * gdb.base/charset.exp (valid_target_charset): New proc.
3659 Use it to skip tests on invalid charsets.
3663 * gdb.base/completion.exp: Add a test for directory completion.
3668 * gdb.base/auxv.exp (fetch_auxv): Fix trailing newlines consumption.
3669 * gdb.base/callfuncs.exp (fetch_all_registers): Likewise.
3673 * gdb.python/python-cmd.exp: Add tests for keyword arguments.
3674 * gdb.python/python-function.exp: Add test for function returning
3679 * gdb.python/python-function.exp: New file.
3683 * gdb.base/store.exp: Update for change to escape output.
3684 * gdb.base/callfuncs.exp (fetch_all_registers): Update for change
3686 * gdb.base/pointers.exp: Update for change to escape output.
3687 * gdb.base/long_long.exp (gdb_test_long_long): Update for change
3689 * gdb.base/constvars.exp (do_constvar_tests): Update for change to
3691 * gdb.base/call-rt-st.exp (print_struct_call): Update for change
3693 * gdb.cp/ref-types.exp (gdb_start_again): Update for change to
3695 * gdb.base/setvar.exp: Update for change to escape output.
3696 * lib/gdb.exp (default_gdb_start): Set LC_CTYPE to C.
3697 * gdb.base/printcmds.exp (test_print_all_chars): Update for change
3699 (test_print_string_constants): Likewise.
3700 * gdb.base/charset.exp (valid_host_charset): Check size of
3701 wchar_t. Handle UCS-2 and UCS-4. Add tests for wide and unicode
3702 cases. Handle "auto"-related output.
3703 * gdb.base/charset.c (char16_t, char32_t): New typedefs.
3704 (uvar, Uvar): New globals.
3708 * gdb.ada/fixed_points/fixed_points.adb: Add a test on overprecise
3710 * gdb.ada/fixed_points.exp: Ditto.
3714 * return-nodebug.c: Don't include stdio.h.
3716 (func): Delete definition and provide extern declaration.
3718 (main): Don't call printf. Call func and store its result in t.
3719 * return-nodebug1.c: New.
3720 * return-nodebug.exp: Don't expect stdio output. Instead, print
3721 the global variable t. Drop printf formatters and cast types from
3722 foreach loop. Don't use prepare_for_testing. Compile
3723 return-nodebug.c and return-nodebug1.c in separate steps. Don't
3724 define FORMAT or CAST.
3728 * gdb.base/solib-display.exp: Disable test for remote targers.
3732 * gdb.base/return-nodebug.exp, gdb.base/return-nodebug.c: New.
3737 * gdb.base/multi-forks.exp (continue_to_exit_bp_loc): New function with
3738 code from `follow parent, print pids'.
3739 (`follow child, print pids', `follow parent, print pids'): Call it.
3740 Replace `gdb_test "break..."' by gdb_breakpoint.
3744 * gdb.mi/mi-cli.exp: Adjust for output difference in
3745 sync and async modes.
3749 * gdb.ada/ptype_arith_binop.exp: Remove some commented-out code
3750 that was checked in by mistake. Remove loading of ada.exp, since
3751 this is not necessary in this case.
3755 * gdb.ada/ptype_arith_binop.exp: New testcase.
3759 * gdb.ada/mod_from_name: New testcase.
3763 * gdb.ada/tick_last_segv: New testcase.
3767 * gdb.mi/mi-cli.exp: Remove debug print.
3771 * gdb.mi/mi-cli.exp: Verify that CLI commands that run inferior
3772 include the token in ^running and frame info in *stopped.
3776 * solib-display.exp: New file.
3777 * solib-display-main.c: New file.
3778 * solib-display-lib.c: New file.
3782 * gdb.arch/i386-permbkpt.S, gdb.arch/i386-permbkpt.exp: New.
3786 * gdb.base/macscp.exp (objfile): Move it to ${objdir}/${subdir}/.
3787 (list_and_check_macro): Use more specific test name.
3788 (next to definition): Make the test names unique.
3792 * gdb.pascal/floats.exp: Accept approximate results everywhere.
3796 * gdb.mi/mi-nonstop.exp (notifs): Adjust for library
3798 * gdb.mi/mi-nsintrall.exp (notifs): Likewise.
3799 * gdb.mi/mi-nsmoribund.exp (notifs): Likewise.
3800 * lib/mi-support.exp (library_loaded_re): New.
3801 (mi_run_cmd, mi_send_resuming_command_raw): Adjust.
3805 * gdb.gdb/observer.exp: Use test_notification observer, not
3806 normal_stop, everywhere.
3807 (test_normal_stop_notifications): Rename to...
3808 (test_notifications): ...this.
3809 (test_observer_normal_stop): Rename to...
3810 (test_observer): ...this.
3814 * gdb.arch/amd64-disp-step.S (test_int3): New test.
3815 * gdb.arch/amd64-disp-step.exp (test_int3): New test.
3816 * gdb.arch/i386-disp-step.S (test_prefixed_abs_jump): New test.
3817 (test_prefixed_syscall,test_int3): New tests.
3818 * gdb.arch/i386-disp-step.exp (test_prefixed_abs_jump): New test.
3819 (test_prefixed_syscall,test_int3): New tests.
3823 * lib/mi-support.exp (mi_expect_stop): Adjust the order of fields.
3824 (mi_expect_interrupt): Likewise.
3825 * gdb.mi/mi-cli.exp: Check that "step" results in proper *stopped
3830 * lib/gdb.exp (get_hexadecimal_valueof): New procedure.
3831 * gdb.base/pc-fp.exp (get_valueofx): Remove.
3832 Replace calls to get_valueofx by get_hexadecimal_valueof.
3836 * lib/gdb.exp (get_valueof): Accept anything as a return value.
3837 (get_integer_valueof): New procedure.
3838 (get_sizeof): Use new get_integer_value_of.
3839 * gdb.base/sizeof.exp: Replace all uses of get_valueof
3840 by get_integer_valueof.
3844 * gdb.base/remote.exp (get_sizeof): Remove.
3845 * gdb.base/long_long.exp (get_valueof, get_sizeof): Remove.
3846 * gdb.base/dfp-test.exp (get_valueof, get_sizeof): Remove.
3847 * gdb.base/sizeof.exp (get_valueof, get_sizeof): Remove.
3848 * lib/gdb.exp (get_valueof): Move from long_long.exp.
3849 (get_sizeof): Likewise.
3854 * gdb.fortran/module.exp, gdb.fortran/module.f90: New.
3858 * gdb.cp/pr9594.cc: Prevent GCC from optimizing 'a' out.
3862 * gdb.base/siginfo-obj.c, gdb.base/siginfo-obj.exp: New.
3866 * gdb.python/python-cmd.exp: New file.
3870 * gdb.arch/i386-sse.c (main): Replace call to puts by an nop asm.
3874 * gdb.base/sigbpt.exp: Detect which signal is received when a NULL
3875 pointer is dereferenced and use this signal name in regexp.
3876 * gdb.base/signull.exp: Ditto.
3877 * gdb.base/sigbpt.c (main): Catch SIGBUS too.
3878 * gdb.base/signull.c (main): Ditto.
3883 * gdb.python/python-value.exp: Use `gdb.history' instead of
3884 `gdb.value_from_history'.
3885 (test_value_numeric_ops): Add test for conversion of enum constant.
3886 * gdb.python/python-value.c (enum e): New type.
3887 (evalue): New global.
3892 * gdb.ada/uninitialized_vars: New test program.
3893 * gdb.ada/uninitialized_vars.exp: New testcase.
3897 * gdb.cp/cpcompletion.exp: Name the test "pr9594".
3898 * gdb.cp/pr2489.cc: Rename...
3899 * gdb.cp/pr9594.cc: ... to this.
3903 * gdb.cp/Makefile.in (EXECUTABLES): Add pr2489.
3904 * gdb.cp/pr2489.cc: New file.
3905 * gdb.cp/cpcompletion.exp: New file.
3910 * gdb.cp/call-c.exp: Add regression test.
3911 * gdb.cp/call-c.cc (FooHandle): New typedef.
3912 (main): New variable 'handle'.
3916 * lib/mi-support.exp (et_mi_thread_list)
3917 (check_mi_and_console_threads): Adjust for current thread in
3918 -thread-list-ids output.
3922 * gdb.mi/mi-break.exp (test_disabled_creation): New.
3927 * gdb.arch/amd64-disp-step.S: New file.
3928 * gdb.arch/amd64-disp-step.exp: New file.
3929 * gdb.arch/i386-disp-step.S: New file.
3930 * gdb.arch/i386-disp-step.exp: New file.
3934 * gdb.base/find.exp: Set newline variable
3935 using quotes instead of braces to fix cygwin failures.
3939 * gdb.base/radix.exp: Add tests to ensure that that set
3940 input-radix 0 and set output-radix 0 are really rejected.
3944 * gdb.base/hook-stop-frame.c, gdb.base/hook-stop-frame.exp: Update
3950 * gdb.base/hook-stop-frame.c, gdb.base/hook-stop-frame.exp: New.
3955 * gdb.cp/pr9631.cc, gdb.cp/pr9631.exp: New.
3959 * gdb.server/file-transfer.exp: Use EXEEXT variable for
3960 binfile definition to fix Windows OS failure.
3965 * gdb.base/interrupt.c (sigint_handler): New.
3966 (main): Install a SIGINT handler if SIGNALS is defined. Exit
3968 * gdb.base/interrupt.exp: Define SIGNALS unless gdb,nosignals.
3969 Test "signal SIGINT".
3973 * gdb.base/break.exp: Update expected gdb output.
3974 * gdb.base/sepdebug.exp: Ditto.
3975 * gdb.mi/mi-syn-frame.exp: Ditto.
3976 * gdb.mi/mi2-syn-frame.exp: Ditto.
3977 * gdb.base/call-signal-resume.exp: New file.
3978 * gdb.base/call-signals.c: New file.
3979 * gdb.base/unwindonsignal.exp: New file.
3980 * gdb.base/unwindonsignal.c: New file.
3981 * gdb.threads/interrupted-hand-call.exp: New file.
3982 * gdb.threads/interrupted-hand-call.c: New file.
3983 * gdb.threads/thread-unwindonsignal.exp: New file.
3987 * gdb.base/define.exp: Test defining and hooking prefix commands.
3988 * gdb.python/python.exp: Update test for "show user" output.
3992 * gdb.fortran/derived-type.exp: New variables int4 and real4. Match
3993 now the output exactly, using less wildcards. Expect also the output
3994 of gfortran-4.3. Update for the f-valprint.c modification from
3996 * gdb.fortran/subarray.exp: Expect also the output of gfortran-4.3.
3997 Remove gdb_test test names where matching the command.
4001 PR breakpoints/9681:
4002 * gdb.base/watchpoint.exp: Add regression test.
4006 * gdb.threads/attach-into-signal.exp: Don't use
4007 gdb_suppress_entire_file.
4008 * gdb.threads/attach-stopped.exp: Ditto.
4009 * gdb.threads/attachstop-mt.exp: Ditto.
4014 * gdb.base/signal.exp: Change kfail to fail, and update PR number.
4019 * gdb.base/radix.exp: Add tests to ensure invalid input radices
4020 and unsupported output radices are really rejected.
4024 * gdb.cp/punctuator.exp: Backslash the '$' signs.
4028 * gdb.cp/punctuator.exp: New file.
4032 * gdb.base/completion.exp (Completing non-existing component): New test.
4036 Fix for PR gdb/8648.
4037 * gdb.arch/ppc-fp.exp, gdb.arch/vsx-regs.exp, gdb.base/watchpoint-hw.c,
4038 gdb.gdbtk/browser.test, gdb.gdbtk/console.test, gdb.gdbtk/srcwin.test,
4039 gdb.gdbtk/srcwin2.test, gdb.gdbtk/srcwin3.test, gdb.gdbtk/windows.test,
4044 * gdb.base/watchpoint-hw.exp, gdb.base/watchpoint-hw.c: New.
4048 * gdb.base/expand-psymtabs.c: Insert code in foo so that the
4049 compiler actually generate code at the expected line number.
4053 * gdb.base/consecutive.exp: Don't use global in gdb_expect.
4057 * gdb.base/commands.exp (redefine_hook_test): New proc.
4062 * gdb.base/macscp.exp: New regression test.
4066 * gdb.base/macscp.exp: Print "address.addr".
4067 * gdb.base/macscp1.c (struct outer): New struct.
4068 (address): New global.
4072 * gdb.base/commands.exp (redefine_backtrace_test): New proc.
4077 * gdb.server/ext-run.exp: Relax regexp for init program.
4081 * gdb.base/macscp.exp: Generate an object file during compilation
4082 to work around Darwin dsymutil limitations.
4086 Test resolving external references to TLS variables.
4087 * gdb.threads/tls.exp: New tests to examine A_THREAD_LOCAL and
4089 (testfile2, srcfile2): New variables.
4090 * gdb.threads/tls.c (file2_thread_local)
4091 (function_referencing_file2_thread_local): New.
4092 * gdb.threads/tls2.c: New file.
4096 * gdb.ada/int_deref.exp: Convert the addresses into long_integer
4097 rather than integer, as integer might not be big enough when
4102 * gdb.cp/formatted-ref.exp: Add equality test.
4103 * gdb.ada/formatted_ref.exp: Ditto.
4107 * gdb.base/breakpoint-shadow.exp, gdb.base/breakpoint-shadow.c: New.
4108 * gdb.base/start.exp: New comment about an alternative - `runto_main'.
4112 * gdb.base/foll-fork.exp (catch_fork_child_follow): Fix patterns
4113 matching syscall entry point.
4114 * gdb.base/foll-vfork.exp (tcatch_vfork_then_parent_follow)
4115 (tcatch_vfork_then_child_follow): Likewise. Finish through
4116 vfork even if we stopped at the syscall trampoline.
4120 * gdb.base/sepsymtab.exp: Update, old "info sym" format restored.
4124 * gdb.arch/ppc-dfp.exp: New file.
4125 * gdb.arch/ppc-dfp.c: New file.
4129 * gdb.base/sepsymtab.exp: Update for new 'info sym' format.
4133 * gdb.mi/mi-syn-frame.exp: Update expected output.
4134 * gdb.mi/mi2-syn-frame.exp: Update expected output.
4138 * gdb.mi/mi-pthreads.exp (check_mi_thread_command_set): Make sure
4139 "thread N" results in =thread-selected.
4140 * lib/mi-support (mi_run_cmd, mi_expect_stop)
4141 (mi_send_resuming_command_raw): Be prepared for
4146 * gdb.mi/mi-nonstop.exp: Expect 'group-id' field.
4147 * lib/mi-support.exp: Likewise.
4151 * gdb.base/help.exp: Remove the "catch load" and "catch unload"
4152 commands from the expected output for "help catch".
4156 * gdb.ada/int_deref.exp: New testcase.
4160 * gdb.mi/gdb2549.exp: New file.
4164 * gdb.base/callexit.exp: New file.
4165 * gdb.base/callexit.c: New file.
4169 * lib/gdb.exp (GDBFLAGS): Move -nx ...
4170 (INTERNAL_GDBFLAGS): ... to here. Move -nw to here as well.
4171 (default_gdb_version): Add $INTERNAL_GDBFLAGS to gdb invocations.
4172 (default_gdb_start,default_gdb_exit): Ditto.
4173 * lib/mi-support.exp (default_mi_gdb_start): Ditto.
4174 (mi_uncatched_gdb_exit): Add $INTERNAL_GDBFLAGS to log message.
4175 * gdb.base/corefile.exp: Add $INTERNAL_GDBFLAGS to gdb invocations.
4176 * gdb.base/dbx.exp (dbx_gdb_start): Ditto.
4177 * gdb.base/args.exp (GDBFLAGS): Don't overwrite, append.
4178 * gdb.base/remotetimeout.exp (GDBFLAGS): Ditto.
4182 * gdb.base/hashline2.exp: Fix typo.
4183 * gdb.base/hashline3.exp: Likewise.
4187 * gdb.base/pointers.exp: Add test.
4188 * gdb.base/pointers.c (k, S): New typedefs.
4189 (instance): New global.
4193 * gdb.base/args.exp: Add tests for newlines.
4197 gdb.base/foll-exec.exp: Update the expected output of a couple
4198 of "info breakpoints" tests.
4202 * gdb.base/exprs.exp (test_expr): Add enum formatting tests.
4206 * gdb.python/python-value.exp (test_value_in_inferior): Don't use
4208 Use runto_main before any test that requires execution.
4212 * lib/mi-support.exp (mi_expect_interrupt): Expect signal 0
4217 * gdb.base/completion.exp: Update expected output following
4218 the addition of the "info tasks" command.
4222 * gdb.base/exprs.exp (test_expr): Add test for string
4227 * configure.ac: Output gdb.python/Makefile.
4228 * configure: Regenerate.
4229 * gdb.python/Makefile.in: New.
4233 * gdb.base/foll-fork.exp: Adjust the expected output to match
4234 the new description for fork/vfork catchpoints in the "info
4235 breakpoints" output.
4239 * Makefile.in: Add gdb.python to ALL_SUBDIRS.
4243 * gdb.python/python-value.c: New file.
4244 * gdb.python/python-value.exp: New file.
4248 * gdb.mi/mi-nsmoribund.exp, gdb.mi/nsmoribund.c: New test.
4252 * gdb.cp/mb-ctor.exp: Fix a typo.
4256 * gdb.base/macscp.exp: Use 'vafunc' and 'fixedarg' rather than
4257 'fprintf' and 'stderr'.
4261 * gdb.ada/ref_tick_size.exp: New testcase.
4265 * gdb.dwarf2/dw2-cu-size.exp: New file.
4266 * gdb.dwarf2/dw2-cu-size.S: New file.
4268 * gdb.dwarf2/dw2-intercu.S (.Ltype_int_in_cu2): Renamed from
4269 .Ltype_int for clarity.
4274 * gdb.cp/gdb2384.exp: Extended to test more cases.
4275 * gdb.cp/gdb2384.cc: Likewise.
4276 * gdb.cp/gdb2384-base.h: Likewise.
4277 * gdb.cp/gdb2384-base.cc: Likewise.
4281 * gdb.base/maint.exp (maint print type): Remove printing
4282 UPPER_BOUND_TYPE and LOWER_BOUND_TYPE.
4286 * gdb.base/macscp.exp: Add completion tests.
4287 * gdb.base/macscp1.c (FIFTY_SEVEN): New macro.
4288 (TWENTY_THREE): Likewise.
4289 (FORTY_EIGHT): Likewise.
4293 * gdb.base/macscp.exp: Change "M" to "MACRO_TO_EXPAND"
4295 * gdb.base/macscp1.c (MACRO_TO_EXPAND): Rename from "M".
4299 * gdb.threads/attachstop-mt.exp: Note a real testcase name this
4300 testcase is derived from. Fix racy dependency on an expected PID
4301 number. No longer support the testcase on Linux kernel 2.4.x.
4305 * gdb.base/macscp.exp: Add tests for stringification, splicing,
4310 * lib/mi-support.exp (mi_expect_interrupt): New.
4311 (mi_reverse_list, mi_check_thread_states): New, moved and renamed
4312 from gdb.mi/mi-nonstop.exp.
4313 * gdb.mi/mi-nsintrall.exp, gdb.mi/nsintrall.c: New.
4314 * gdb.mi/mi-nonstop.exp (myreverse, check_thread_states): Moved to
4316 Use mi_check_thread_states throughout. Avoid ".*" and do not
4317 require an anchor after -exec-run.
4321 * gdb.mi/mi-nonstop.exp: Do not check thread state while a
4322 stop is pending. Avoid ".*" when two stops are pending.
4323 * lib/gdb.exp (fullname_syntax_POSIX, fullname_syntax_UNC)
4324 (fullname_syntax_DOS_CASE, fullname_syntax_DOS): Do not match
4325 newlines in fullnames.
4326 * lib/mi-support.exp (mi_run_cmd): Do not require an anchor.
4327 (mi_expect_stop): Update comments. Only anchor in sync mode.
4328 Do not match newlines.
4329 (mi_send_resuming_command_raw): Always return status.
4330 (mi_get_stop_line): Do not match more than one line by accident.
4331 Only anchor in sync mode.
4332 (mi_run_inline_test): If -exec-next fails, give up.
4336 * gdb.base/stack-checking.c (big_frame): Reduce stack consumption
4341 * gdb.ada/Makefile.in (EXECUTABLES): Bring up to date.
4345 * gdb.ada/array_bounds.exp, gdb.ada/array_subscript_addr.exp,
4346 gdb.ada/arrayidx.exp, gdb.ada/arrayparam.exp, gdb.ada/arrayptr.exp,
4347 gdb.ada/assign_1.exp, gdb.ada/boolean_expr.exp,
4348 gdb.ada/char_param.exp, gdb.ada/exprs.exp, gdb.ada/fixed_cmp.exp,
4349 gdb.ada/fixed_points.exp, gdb.ada/fun_addr.exp,
4350 gdb.ada/funcall_param.exp, gdb.ada/homonym.exp,
4351 gdb.ada/interface.exp, gdb.ada/null_array.exp,
4352 gdb.ada/packed_array.exp, gdb.ada/packed_tagged.exp,
4353 gdb.ada/print_chars.exp, gdb.ada/print_pc.exp,
4354 gdb.ada/str_ref_cmp.exp, gdb.ada/sym_print_name.exp,
4355 gdb.ada/taft_type.exp, gdb.ada/tagged.exp, gdb.ada/type_coercion.exp:
4356 Include the "= " sequence in the expected output of print tests.
4360 * gdb.ada/packed_tagged.exp: Accept "boolean" as a valid type
4361 description for boolean types.
4365 * gdb.base/hook-stop-continue.c: New.
4366 * gdb.base/hook-stop-continue.exp: New.
4370 * gdb.base/structs3.c, gdb.base/structs3.exp: New files.
4374 * gdb.arch/powerpc-aix-prologue.c (stack_check_probe_1)
4375 (stack_check_probe_2, stack_check_probe_loop_1)
4376 (stack_check_probe_loop_2): New functions.
4377 (main): Add call to these new functions.
4378 * gdb.arch/powerpc-aix-prologue.exp: When breaking on these
4379 functions, check that the breakpoint is inserted at the appropriate
4381 (insert_breakpoint): Slightly refine this procedure so that it can
4382 be called several times in the test.
4386 * gdb.base/stack-checking.c: New file.
4387 * gdb.base/stack-checking.exp: New file.
4391 * gdb.arch/altivec-abi.exp: Remove extra verbose call.
4392 * gdb.arch/altivec-regs.exp: Likewise.
4393 * gdb.arch/vsx-regs.exp: Likewise.
4397 * gdb.arch/ppc-fp.exp: New file.
4398 * gdb.arch/ppc-fp.c: New file.
4402 *gdb.base/mips_pro.exp: compile with gcc -fno-inline,
4403 lest gcc-4.3.1 optimizes the whole thing away.
4407 * lib/gdb.exp (gdb_continue_to_breakpoint): Accept "in" as well
4408 as "at" (for non-debug functions such as _start).
4412 * gdb.base/value-double-free.exp: Respect gdb,no_hardware_watchpoints.
4413 * gdb.base/watchpoint-solib.exp: Likewise. Update tests to handle
4414 software watchpoints.
4415 * gdb.base/watch_thread_num.exp: Likewise.
4419 * gdb.arch/i386-bp_permanent.exp: New test.
4423 * gdb.base/maint.exp: Update "maint print type".
4427 * gdb.mi/mi-nonstop.exp: Fix the check for non-stop
4428 support. Adjust the order of "*running" notifications.
4429 * gdb.mi/non-stop.c: Don't cast from int to void* and
4434 * gdb.arch/powerpc-prologue.exp: Code doesn't save %r31 so don't
4435 expect to find it in the "info frame" output.
4439 * gdb.base/interp.exp: Always consume both prompts.
4443 * gdb.base/pending.exp: Test pending breakpoints without symbols
4448 * lib/mi-support.exp (mi_expect_stop): Produce
4449 more details on failures.
4450 * gdb.mi/mi-nonstop.exp: New.
4451 * gdb.mi/non-stop.c: New.
4455 * gdb.mi/mi-async.exp: Use 'set target-async'.
4456 * lib/mi-support.exp: Use 'set/show target-async'.
4460 * gdb.arch/powerpc-prologue.exp: Correct saved registers.
4464 * gdb.base/help.exp (help catch): Rewrite.
4468 * gdb.base/define.exp: Test indented command documentation.
4469 * gdb.python/python.exp: Test indented multi-line command.
4473 * testsuite/gdb.arch/vsx-regs.c: New source file.
4474 * testsuite/gdb.arch/vsx-regs.exp: New testcase.
4475 * testsuite/lib/gdb.exp (skip_vsx_tests): New function.
4479 * gdb.base/macscp.exp: Add regression test for "macro define" or
4480 "macro undef" with no arguments.
4484 * gdb.base/args.exp: Prevent ~/.gdbinit from affecting test.
4488 * gdb.arch/spu-info.exp: Updated for "info spu dma" changes.
4492 * gdb.python/python.exp: New file.
4496 Fix for PR gdb/1543.
4497 * gdb.base/sep.exp: `sep-proc.c' absolute line numbers replaced with
4499 (location): New variable.
4500 * config/cfdbug.exp, config/d10v.exp, config/dve.exp, config/i960.exp,
4501 config/m32r.exp, config/mn10300-eval.exp, config/proelf.exp,
4502 config/rom68k.exp, config/sh.exp, config/unix.exp, config/vr4300.exp,
4503 config/vr5000.exp, config/vxworks.exp, gdb.arch/altivec-regs.exp,
4504 gdb.arch/e500-abi.exp, gdb.arch/e500-regs.exp, gdb.asm/asm-source.exp,
4505 gdb.base/a2-run.exp, gdb.base/advance.exp, gdb.base/all-bin.exp,
4506 gdb.base/args.exp, gdb.base/arithmet.exp, gdb.base/assign.exp,
4507 gdb.base/async.exp, gdb.base/auxv.exp, gdb.base/bigcore.c,
4508 gdb.base/bigcore.exp, gdb.base/bitfields.exp, gdb.base/bitops.exp,
4509 gdb.base/break.c, gdb.base/break.exp, gdb.base/break1.c,
4510 gdb.base/call-ar-st.exp, gdb.base/call-rt-st.exp,
4511 gdb.base/call-strs.exp, gdb.base/callfuncs.c, gdb.base/callfuncs.exp,
4512 gdb.base/checkpoint.exp, gdb.base/chng-syms.exp,
4513 gdb.base/code-expr.exp, gdb.base/commands.exp, gdb.base/completion.exp,
4514 gdb.base/complex.exp, gdb.base/cond-expr.exp, gdb.base/condbreak.exp,
4515 gdb.base/consecutive.exp, gdb.base/corefile.exp, gdb.base/cvexpr.c,
4516 gdb.base/cvexpr.exp, gdb.base/dbx.exp, gdb.base/default.exp,
4517 gdb.base/define.exp, gdb.base/del.c, gdb.base/detach.exp,
4518 gdb.base/display.exp, gdb.base/dump.exp, gdb.base/echo.exp,
4519 gdb.base/environ.exp, gdb.base/eval-skip.exp, gdb.base/exprs.exp,
4520 gdb.base/fileio.exp, gdb.base/find.exp, gdb.base/finish.exp,
4521 gdb.base/funcargs.exp, gdb.base/gcore-buffer-overflow.exp,
4522 gdb.base/gcore.exp, gdb.base/gdb1555.exp, gdb.base/gdbvars.exp,
4523 gdb.base/help.exp, gdb.base/huge.exp, gdb.base/info-proc.exp,
4524 gdb.base/interrupt.exp, gdb.base/jump.exp, gdb.base/langs.exp,
4525 gdb.base/lineinc.exp, gdb.base/list.exp, gdb.base/macscp.exp,
4526 gdb.base/maint.exp, gdb.base/mips_pro.exp, gdb.base/miscexprs.exp,
4527 gdb.base/nodebug.exp, gdb.base/nofield.c, gdb.base/opaque.exp,
4528 gdb.base/overlays.exp, gdb.base/page.exp, gdb.base/pc-fp.exp,
4529 gdb.base/pending.c, gdb.base/pendshr.c, gdb.base/pointers.exp,
4530 gdb.base/psymtab.exp, gdb.base/ptype.exp, gdb.base/randomize.c,
4531 gdb.base/readline.exp, gdb.base/recurse.exp, gdb.base/regs.exp,
4532 gdb.base/relational.exp, gdb.base/relocate.exp, gdb.base/remote.exp,
4533 gdb.base/reread.exp, gdb.base/return.exp, gdb.base/return2.exp,
4534 gdb.base/scope.exp, gdb.base/sect-cmd.exp, gdb.base/sep-proc.c,
4535 gdb.base/sep.c, gdb.base/sep.exp, gdb.base/sepdebug.c,
4536 gdb.base/sepdebug.exp, gdb.base/setshow.exp, gdb.base/shlib-call.exp,
4537 gdb.base/sigaltstack.c, gdb.base/so-indr-cl.exp, gdb.base/solib.exp,
4538 gdb.base/source.exp, gdb.base/start.c, gdb.base/step-bt.c,
4539 gdb.base/step-line.exp, gdb.base/structs.c, gdb.base/structs.exp,
4540 gdb.base/structs2.exp, gdb.base/term.exp, gdb.base/twice.exp,
4541 gdb.base/type-opaque.exp, gdb.base/until.exp,
4542 gdb.base/value-double-free.c, gdb.base/varargs.exp,
4543 gdb.base/watchpoint.exp, gdb.base/whatis-exp.exp, gdb.disasm/am33.exp,
4544 gdb.disasm/h8300s.exp, gdb.disasm/hppa.exp, gdb.disasm/mn10300.exp,
4545 gdb.disasm/sh3.exp, gdb.disasm/t01_mov.exp, gdb.disasm/t02_mova.exp,
4546 gdb.disasm/t03_add.exp, gdb.disasm/t04_sub.exp, gdb.disasm/t05_cmp.exp,
4547 gdb.disasm/t06_ari2.exp, gdb.disasm/t07_ari3.exp,
4548 gdb.disasm/t08_or.exp, gdb.disasm/t09_xor.exp, gdb.disasm/t10_and.exp,
4549 gdb.disasm/t11_logs.exp, gdb.disasm/t12_bit.exp,
4550 gdb.disasm/t13_otr.exp, gdb.fortran/exprs.exp, gdb.fortran/types.exp,
4551 gdb.hp/gdb.aCC/exception.exp, gdb.hp/gdb.aCC/optimize.exp,
4552 gdb.hp/gdb.aCC/watch-cmd.exp, gdb.hp/gdb.base-hp/callfwmall.exp,
4553 gdb.hp/gdb.base-hp/dollar.exp, gdb.hp/gdb.base-hp/hwwatchbus.exp,
4554 gdb.hp/gdb.base-hp/pxdb.exp, gdb.hp/gdb.base-hp/reg-pa64.exp,
4555 gdb.hp/gdb.base-hp/reg.exp, gdb.hp/gdb.base-hp/sized-enum.exp,
4556 gdb.hp/gdb.base-hp/so-thresh.exp, gdb.hp/gdb.compat/xdb1.exp,
4557 gdb.hp/gdb.compat/xdb2.exp, gdb.hp/gdb.compat/xdb3.exp,
4558 gdb.java/jmisc.exp, gdb.java/jv-exp.exp, gdb.java/jv-print.exp,
4559 gdb.mi/gdb669.exp, gdb.mi/gdb680.exp, gdb.mi/gdb701.exp,
4560 gdb.mi/gdb792.exp, gdb.mi/mi-basics.exp, gdb.mi/mi-console.exp,
4561 gdb.mi/mi-hack-cli.exp, gdb.mi/mi-pending.c, gdb.mi/mi-pendshr.c,
4562 gdb.mi/mi-pthreads.exp, gdb.mi/mi-read-memory.exp, gdb.mi/mi-regs.exp,
4563 gdb.mi/mi-syn-frame.exp, gdb.mi/mi-until.exp, gdb.mi/mi2-basics.exp,
4564 gdb.mi/mi2-console.exp, gdb.mi/mi2-hack-cli.exp,
4565 gdb.mi/mi2-pthreads.exp, gdb.mi/mi2-read-memory.exp,
4566 gdb.mi/mi2-regs.exp, gdb.mi/mi2-syn-frame.exp, gdb.mi/mi2-until.exp,
4567 gdb.pascal/types.exp, gdb.stabs/weird.exp,
4568 gdb.threads/gcore-thread.exp, gdb.threads/manythreads.exp,
4569 gdb.threads/print-threads.exp, gdb.threads/pthreads.exp,
4570 gdb.threads/schedlock.exp, gdb.threads/step.exp, gdb.threads/step2.exp,
4571 gdb.threads/switch-threads.exp, gdb.threads/thread-specific.exp,
4572 gdb.threads/thread_check.exp, gdb.threads/thread_events.exp,
4573 gdb.threads/tls-nodebug.exp, gdb.threads/tls-shared.exp,
4574 gdb.threads/tls.exp, gdb.trace/actions.exp, gdb.trace/backtrace.exp,
4575 gdb.trace/circ.exp, gdb.trace/collection.exp, gdb.trace/deltrace.exp,
4576 gdb.trace/infotrace.exp, gdb.trace/limits.exp, gdb.trace/packetlen.exp,
4577 gdb.trace/passc-dyn.exp, gdb.trace/passcount.exp, gdb.trace/report.exp,
4578 gdb.trace/save-trace.exp, gdb.trace/tfind.exp, gdb.trace/tracecmd.exp,
4579 gdb.trace/while-dyn.exp, gdb.trace/while-stepping.exp,
4580 lib/mi-support.exp, lib/trace-support.exp: Remove reference
4585 * lib/mi-support.exp (mi_load_shlibs): New.
4586 * gdb.mi/mi-pending.exp: Use mi_load_shlibs, not gdb_load_shlibs.
4590 * lib/mi-support.exp (get_mi_thread_list)
4591 (check_mi_and_console_threads): New, moved from ...
4592 * gdb.mi/mi-pthread.exp: ...here.
4593 * gdb.mi/gdb669.exp (get_mi_thread_list)
4594 (check_mi_and_console_threads): Delete.
4595 * gdb.mi/mi2-pthread.exp: Likewise.
4599 * Makefile.in (just-check): Remove. Move body to...
4604 * gdb.threads/manythreads.exp: Use remote_expect instead of after.
4605 Add a test for duplicated SIGINTs.
4609 * gdb.threads/schedlock.exp (get_args): Update to work for any
4611 (Top level): Report the number of threads that did not resume.
4615 * gdb.dwarf2/dw2-compressed.S: Also define __start.
4619 * lib/mi-support.exp (default_mi_gdb_start): Remove check for
4624 * gdb.base/callfuncs.c (struct struct_with_fnptr): New struct.
4625 (function_struct, function_struct_ptr): New globals.
4626 * gdb.base/callfuncs.exp (do_function_calls): Test calling via a
4627 function pointer in a struct.
4631 * gdb.base/macscp.exp: Add test for macro lexing bug.
4635 * gdb.base/macscp.exp: Add macro tests.
4639 * gdb.base/foll-fork.exp: Fix for Linux/VDSO failure.
4643 * gdb.base/coremaker.c: Fix for Linux failure in gdb.base/corefile.exp
4647 * gdb.cp/class2.exp: fix for failure on spu-elf
4651 * gdb.cp/class2.exp, gdb.cp/class2.cc: Test for PR2477.
4655 * gdb.base/randomize.exp: Catch non-Linux targets as untested.
4659 * lib/mi-support.exp (mi_expect_stop): Adjust for the new field.
4663 * gdb.arch/e500-regs.exp (decimal_vector): Adjust "v8_int8" portion
4664 of regexp to account for changes made to GDB in the printing of
4669 * gdb.base/completion.exp: Add 'help' completion test.
4673 * gdb.base/randomize.exp: Remove dependency on tcl-8.4+.
4677 * gdb.base/randomize.exp, gdb.base/randomize.c: New files.
4681 * gdb.base/chng-syms.exp: Don't expect "No symbol ...".
4685 * gdb.base/fullname.exp: Restore pwd if compiling failed.
4689 * gdb.base/value-double-free.exp, gdb.base/value-double-free.c: New.
4693 * lib/mi-support.exp (mi_send_resuming_command_raw): Revert
4694 previous commit. Add a comment.
4698 * gdb.base/sigchld.c, gdb.base/sigchld.exp: New test.
4702 * lib/mi-support.exp (mi_send_resuming_command_raw): Report pass.
4706 * lib/gdb.exp (gdb_saved_set_unbuffered_mode_obj): New global.
4707 (gdb_compile): If target is *-*-cygwin* or *-*-mingw*, and we're
4708 compiling an executable, link in an object that forces unbuffered
4710 * lib/set_unbuffered_mode.c: New file.
4714 * lib/gdb.exp (prepare_for_testing): Do not drop the OPTIONS argument.
4718 * gdb.mi/mi-async.exp: Use mi_sending_resuming_command_raw and
4720 * gdb.mi/mi-support.exp (mi_run_cmd, mi_send_resuming_command):
4721 Demand that *running is output.
4722 (detect_async): Perform checking every time.
4723 (mi_send_resuming_command): Extract everything into...
4724 (mi_send_resuming_command_raw): ...this.
4725 (mi_expect_stop): Don't accept any output before *stopped.
4729 Robustify mi-simplerun.
4730 * gdb.mi/basics.c (main): Add a call to sleep.
4731 * gdb.mi/mi-cli.exp: Adjust for change in line numbers.
4732 * gdb.mi/mi2-cli.exp: Likewise.
4733 * gdb.mi/mi-break.exp: Likewise.
4737 * gdb.mi/mi-break.exp (test_ignore_count): Use mi_expect_stop.
4741 * gdb.mi/mi-console.exp: Adjust.
4742 * gdb.mi/mi-syn-frame.exp: Adjust.
4743 * gdb.mi/mi2-console.exp: Adjust.
4744 * gdb.mi/mi2-syn-frame.exp: Adjust.
4745 * lib/mi-support.exp (mi_run_cmd): Adjust.
4746 (mi_send_resuming_command): Adjust.
4750 * gdb.mi/mi-break.exp (test_ignore_count): Adjust stopped pattern.
4751 * gdb.mi/mi-syn-frame.exp: Use mi_expect_stop instead of direct
4753 * gdb.mi/mi2-syn-frame.exp: Likewise.
4754 * lib/mi-support.exp (default_mi_gdb_start): Call detect_async.
4755 (async, detect_async): New.
4756 (mi_expect_stop, mi_continue_to_line): Adjust expectation
4757 depending on if we're running in sync or async mode.
4761 * gdb.base/completion.exp: New tests for field name completion
4762 with spaces, and field name completion with '->'.
4766 * gdb.base/break1.c (struct some_struct): New struct.
4767 (values): New global.
4768 * gdb.base/completion.exp: Add field name completion test.
4772 * gdb.cp/call-c.exp: Test for incorrect handling of reference
4774 * gdb.cp/call-c.cc: Likewise.
4778 * gdb.base/annota1.exp (thread_switch): Test for thread-changed
4784 * gdb.threads/execl.c, gdb.threads/execl1.c,
4785 gdb.threads/execl.exp: New tests.
4790 * gdb.cp/exception.exp: Activate test, make it work with pending
4795 * dw2-ref-missing-frame.S, dw2-ref-missing-frame.exp: New files.
4799 * gdb.mi/mi-var-cmd.exp: Adjust for the fact that type_changed field is
4801 * gdb.mi/mi2-var-cmd.exp: Likewise.
4805 * gdb.base/frame-args.exp: Handle arguments that are optimized
4810 * gdb.arch/ppc64-atomic-inst.exp: Make the expected compile failure
4811 quiet for ppc32 and group options into a single variable.
4815 * gdb.ada/null_array/foo.adb: Add multi-dimensional array
4816 of zero-size elements.
4817 * gdb.ada/null_array.exp: Test printing this new array.
4821 * gdb.base/longjmp.exp: Fix GDB_TEST_MULTIPLE missing GDB_PROMPT races.
4825 * gdb.base/finish.exp: Test that "fin" works as an abbreviation
4826 of the "finish" command.
4830 * gdb.base/annota1.exp: Test for new annotation.
4834 * gdb.base/fixsection.exp: New file.
4835 * gdb.base/fixsection0.c: New file.
4836 * gdb.base/fixsection1.c: New file.
4840 * gdb.base/annota1.exp: Accept printf@... in place of printf.
4841 * gdb.base/annota3.exp: Likewise.
4845 * gdb.base/watch_thread_num.exp: Don't run tests that require
4846 watchpoints if the target doesn't support them.
4850 * lib/gdbserver-support.exp (find_gdbserver): Use $GDBSERVER if set.
4854 * gdb.ada/assign_1.exp: New testcase.
4858 * gdb.base/find.exp: New file.
4859 * gdb.base/find.c: New file.
4863 * gdb.base/commands.exp (watchpoint_command_test): Handle
4864 gdb,no_hardware_watchpoints.
4865 * gdb.base/float.exp: Allow ARM targets without floating point.
4866 * gdb.base/step-test.exp: Allow callee@plt when stepping in.
4871 * gdb.ada/lang_switch: New test program.
4872 * gdb.ada/lang_switch.exp: New testcase.
4876 * gdb.base/help.exp (disassemble): Update expected help text.
4880 * gdb.base/longjmp.c, gdb.base/longjmp.exp: New files.
4884 * gdb.cp/annota2.exp: Adjust to breakpoints invalidations at
4889 * gdb.dwarf2/dw2-ranges.S: Merge the secondary section with `.fini'.
4890 * gdb.dwarf2/dw2-ranges.exp: Compile also `dw2-ranges2.S' and
4891 `dw2-ranges3.S' and test also their MAIN2, FUNC2 and MAIN3 symbols.
4892 * gdb.dwarf2/dw2-ranges2.S, gdb.dwarf2/dw2-ranges3.S: New files.
4896 * lib/mi-support.exp (mi_run_cmd): Allow for =thread-created
4897 notification to appear.
4901 * gdb.base/fullname.c: New file.
4902 * gdb.base/fullname.exp: New file.
4903 * lib/gdb.exp (gdb_breakpoint): Support no-message option.
4907 * gdb.base/macscp.exp, gdb.base/macscp1.c: Add test for printing
4908 expressions with macros.
4912 * gdb.base/dfp-test.exp: Fix random FAIL risk on calling functions.
4916 * gdb.base/completion.exp: Handle lack of other symbols beginning
4919 * gdb.base/varargs.exp: Correct quoting for options to gdb_compile.
4923 * gdb.asm/asmsrc1.s: Add scratch space.
4928 * gdb.threads/attach-into-signal.c, gdb.threads/attach-into-signal.exp,
4929 gdb.threads/attach-stopped.c, gdb.threads/attach-stopped.exp,
4930 gdb.threads/attachstop-mt.c, gdb.threads/attachstop-mt.exp: New.
4934 * gdb.arch/thumb-prologue.exp: Do not expect a saved PC.
4938 * gdb.base/info-target.exp: New testcase.
4942 * gdb.cp/hang.exp: Use .cc instead of .C.
4943 * gdb.cp/hang1.cc, gdb.cp/hang2.cc, gdb.cp/hang3.cc: Renamed from ...
4944 * gdb.cp/hang1.C, gdb.cp/hang2.C, gdb.cp/hang3.C: ... here.
4948 * gdb.base/gdb1250.exp: Remove perror.
4949 * lib/mi-support.exp (mi_delete_breakpoints): Match the prompt.
4953 * gdb.dwarf2/dw2-strp.S: Replace .long by .4byte and .value by
4958 * gdb.base/macscp.exp: Enable kfails. Compile with -g3 for GCC.
4963 * gdb.dwarf2/dw2-strp.S, gdb.dwarf2/dw2-strp.exp: New files.
4967 * gdb.mi/mi-syn-frame.exp: Adjust for token disappearance.
4968 * gdb.mi/mi2-syn-frame.exp: Likewise.
4969 * lib/mi-support.exp: Likewise.
4973 * lib/gdb.exp (gdb_continue_to_breakpoint): Allow the caller
4974 to specify regexp for the location to stop at.
4975 * gdb.base/break-always.c: New.
4976 * gdb.base/break-always.exp: New.
4980 * lib/mi-support.exp (mi_runto_helper): Adjust
4981 for the original-location field.
4982 (mi_create_breakpoint, mi_list_breakpoints): New.
4983 * gdb.mi/mi-break.exp: Adjust.
4984 * gdb.mi/mi2-break.exp: Adjust.
4985 * gdb.mi/mi-pending.exp: Adjust.
4986 * gdb.mi/mi-simplerun.exp: Adjust.
4987 * gdb.mi/mi2-simplerun.exp: Adjust.
4988 * gdb.mi/mi-syn-frame.exp: Adjust.
4989 * gdb.mi/mi2-syn-frame.exp: Adjust.
4990 * gdb.mi/mi-until.exp: Adjust.
4991 * gdb.mi/mi2-until.exp: Adjust.
4992 * gdb.mi/mi-var-display.exp: Adjust.
4993 * gdb.mi/mi2-var-display.exp: Adjust.
4994 * gdb.mi/mi-watch.exp: Adjust.
4995 * gdb.mi/mi2-watch.exp: Adjust.
4999 * aclocal.m4: Add override.m4.
5000 * configure: Regenerate.
5004 * gdb.mi/var-cmd.c (do_at_tests): Verify that
5005 '-var-update --all-values' reports new value even the type
5006 of a variable object has changed.
5010 * gdb.dwarf2/dw2-compressed.S, gdb.dwarf2/dw2-compressed.exp: New
5015 * gdb.ada/atomic_enum: New test program.
5016 * gdb.ada/atomic_enum.exp: New testcase.
5020 * gdb.opt/Makefile.in: Fix whitespace.
5024 * gdb.threads/linux-dp.exp: Continue after unrecognized lines.
5028 * gdb.base/hashline1.exp: New testcase.
5029 * gdb.base/hashline2.exp: New testcase.
5030 * gdb.base/hashline2.exp: New testcase.
5034 * gdb.base/step-break.exp, gdb.base/step-break.c: New files.
5038 * gdb.base/attach.exp (do_attach_tests): Matching pattern for
5039 temporary breakpoint to match "Temporary breakpoint".
5040 * gdb.base/break.exp (delete_breakpoints): Likewise.
5041 * gdb.base/call-ar-st.exp (get_debug_format): Likewise.
5042 * gdb.base/commands.exp (temporary_breakpoint_commands): Likewise.
5043 * gdb.base/display.exp: Likewise.
5044 * gdb.base/foll-exec.exp (do_exec_tests): Likewise.
5045 * gdb.base/foll-fork.exp (catch_fork_child_follow): Likewise.
5046 * gdb.base/restore.exp (restore_tests): Likewise.
5047 * gdb.base/sepdebug.exp: Likewise.
5048 * gdb.base/watchpoint.exp: Likewise.
5049 * gdb.mi/mi-cli.exp: Added argument for new "disp" field.
5050 * gdb.mi/mi-pending.exp: Likewise.
5051 * gdb.mi/mi-simplerun.exp (test_running_the_program): Likewise.
5052 * gdb.mi/mi-until.exp (test_runnint_to_foo): Likewise.
5053 * gdb.mi/mi-var-cmd.exp: Likewise.
5054 * gdb.mi/mi-var-display.exp: Likewise.
5055 * gdb.mi/mi2-cli.exp: Likewise.
5056 * gdb.mi/mi2-simplerun.exp (test_running_the_program): Likewise.
5057 * gdb.mi/mi2-until.exp (test_running_to_foo): Likewise.
5058 * gdb.mi/mi2-var-display.exp: Likewise.
5059 * lib/gdb.exp (gdb_breakpoint): Pattern for temporary breakpoint.
5060 * lib/mi-support.exp (mi_runto_helper): Use "after_reason" argument for
5062 (mi_expect_stop): Move after_reason argument to be really after
5063 reason. This is to support fix for PR2424.
5067 * gdb.dwarf2/dw2-ranges.S: New stub `.file' directive.
5071 * gdb.mi/mi-var-cmd.exp: Adjust for appearance of type_changed
5072 field. Add more floating varobj tests.
5073 * gdb.mi/mi2-var-cmd.exp: Adjust for appearance of type_changed
5075 * gdb.mi/var-cmd.c (do_at_tests_callee, do_at_tests): New.
5076 (main): Call do_at_tests.
5077 * lib/mi-support.exp (mi_create_floating_varobj)
5078 (mi_varobj_update_with_type_change): New.
5082 * gdb.mi/mi2-var-display.exp: Added tests for the new -f
5083 option of -var-evaluate-expression.
5084 * gdb.mi/mi2-var-display.exp: Likewise.
5088 Introduce test setup helpers.
5089 * lib/gdb.exp (build_executable, clean_restart)
5090 (prepare_for_testing): New.
5091 * gdb.base/break.exp: Use prepare_for_testing, and clean_restart.
5092 * gdb.base/return.exp: Likewise.
5093 * gdb.base/ending-run.exp: Likewise.
5097 * gdb.mi/mi-async.exp: New test for asynchronous Machine
5098 Interface (MI) responses.
5102 * gdb.cp/breakpoint.cc: New code to test conditions involving
5104 * gdb.cp/breakpoint.exp: Test condition involving member
5109 * lib/mi-support.exp (mi_expect_stop): New.
5110 (mi_run_cmd): Change the
5111 token. Use mi_send_resuming_command, use
5113 (mi_execute_to_helper): Rename to mi_execute_to.
5114 (mi_send_resuming_command): Add more error patterns.
5115 (mi_wait_for_stop): Renamed to...
5116 (mi_get_stop_line): ...this.
5117 (mi_run_inline_test): Adjust.
5119 * gdb.mi/mi-cli.exp: Use mi_execute_to/mi_expect_stop.
5120 * gdb.mi/mi-console.exp: Likewise.
5121 * gdb.mi/mi-pending.exp: Likewise.
5122 * gdb.mi/mi-simplerun.exp: Likewise.
5123 * gdb.mi/mi-stack.exp: Likewise.
5124 * gdb.mi/mi-stepi.exp: Likewise.
5125 * gdb.mi/mi-syn-frame.exp: Add comment.
5126 * gdb.mi/mi-until.exp: Likewise.
5127 * gdb.mi/mi-var-display.exp: Likewise.
5128 * gdb.mi/mi-watch.exp: Likewise.
5129 * gdb.mi/mi2-cli.exp: Likewise.
5130 * gdb.mi/mi2-console.exp: Likewise.
5131 * gdb.mi/mi2-simplerun.exp: Likewise.
5132 * gdb.mi/mi2-stack.exp: Likewise.
5133 * gdb.mi/mi2-stepi.exp: Likewise.
5134 * gdb.mi/mi2-until.exp: Likewise.
5135 * gdb.mi/mi2-var-display.exp: Likewise.
5136 * gdb.mi/mi2-watch.exp: Likewise.
5140 * gdb.base/watch_thread_num.exp: Use gdb_compile_pthreads.
5142 * gdb.cp/mb-templates.exp: Skip test on spu*-*-* targets.
5146 * gdb.mi/mi-disassemble.exp, gdb.mi/mi-stack.exp,
5147 gdb.mi/mi-syn-frame.exp, gdb.mi/mi-var-block.exp,
5148 gdb.mi/mi-var-cmd.exp, gdb.mi/mi-var-display.exp,
5149 gdb.mi/mi2-disassemble.exp, gdb.mi/mi2-stack.exp,
5150 gdb.mi/mi2-syn-frame.exp, gdb.mi/mi2-var-block.exp,
5151 gdb.mi/mi2-var-cmd.exp, gdb.mi/mi2-var-display.exp: Update to not
5152 expect an mi error duplicated in stderr.
5156 * gdb.cp/ovldbreak.cc: Add missing bodies for methods foo::foofunc.
5157 * gdb.cp/ovldbreak.exp: Set multiple-symbols to "ask".
5158 Add a couple of tests that verify the behavior when the new setting
5159 is set to "cancel" and "all".
5160 * gdb.cp/method2.exp, gdb.cp/templates.exp: Set multiple-symbols to
5161 "ask" before we start the testing.
5165 * gdb.cp/casts.cc: Add class reference variables.
5166 * gdb.cp/casts.exp: New test cases for up/down casting references.
5170 * gdb.mi/mi-var-display.exp: Stop at end of do_special_tests
5171 instead of beginning to make an extra test pass.
5172 * gdb.mi/mi2-var-display.exp: Likewise.
5176 * gdb.base/break.exp: Mark failures as such. Fix formatting.
5181 * gdb.arch/spu-info.exp (info spu mailbox): Check for correct initial
5182 value. Add xfail for older kernels.
5186 Bring mi-support in line with gdb.exp.
5187 * lib/mi-support.exp (default_mi_gdb_start): Rename from mi_gdb_start.
5188 (mi_gdb_start): New function.
5192 * gdb.mi/mi-var-cmd.exp: Fix a typo.
5196 * gdb.mi/mi-var-display.exp: Remove obsolete xfail.
5197 * gdb.mi/mi2-var-display.exp: Likewise.
5201 * lib/mi-support.exp (mi_create_varobj_checked): New.
5202 (mi_list_varobj_children): Allow to check for a
5204 (mi_list_array_varobj_children): New.
5206 * gdb.mi/mi-var-child.exp: Use mi_create_varobj
5207 and mi_list_varobj_children, as opposed to hardcoding
5209 * gdb.mi/gdb701.exp: Likewise.
5210 * gdb.mi/gdb792.exp: Likewise.
5211 * gdb.mi/mi-var-block.exp: Likewise.
5212 * gdb.mi/mi-var-cmd.exp: Likewise.
5213 * gdb.mi/mi-var-invalidate.exp: Likewise.
5214 * gdb.mi/mi2-var-block.exp: Likewise.
5215 * gdb.mi/mi2-var-child.exp: Likewise.
5216 * gdb.mi/mi2-var-cmd.exp: Likewise.
5217 * gdb.mi/mi2-var-display.exp: Likewise.
5221 Fix random false FAILs on i386.
5222 * gdb.base/prelink.exp: Use `--no-exec-shield' for prelink.
5227 * gdb.cp/annota2.exp, gdb.cp/annota3.exp: Reapply 2008-03-21 changes.
5232 * gdb.cp/annota2.exp, gdb.cp/annota3.exp: Revert 2008-03-21 changes.
5236 * gdb.cp/annota2.exp, gdb.cp/annota3.exp: Remove KFAIL for
5241 * gdb.threads/fork-child-threads.exp: Test next over fork.
5245 * gdb.base/break.exp (rbreak junk): New test for rbreak
5246 "Junk at end of arguments" issue.
5250 * gdb.base/printcmds.exp (test_print_array_constants): Do not expect
5251 *& to work on created array elements.
5252 (Top level): Test print $pc with a file. Test string operations
5254 * gdb.base/ptype.exp: Do not expect *& to work on created array
5259 * gdb.threads/killed.exp, gdb.threads/manythreads.exp,
5260 gdb.threads/staticthreads.exp: Update exit query.
5264 * lib/gdb.exp (gdb_load_cmd): Fix $args typo in timeout error message.
5268 * gdb.base/watchpoint.c (global_ptr, func4): New.
5270 * gdb.base/watchpoint.exp: Call test_inaccessible_watchpoint.
5271 (test_inaccessible_watchpoint): New.
5275 * lib/gdb.exp (gdb_expect): Of all the timeouts provided always
5280 * gdb.base/annota1.exp, gdb.cp/annota2.exp: Update for fewer
5281 frames-invalid annotations.
5285 * gdb.base/assign.exp: avoid same output for different tests.
5289 * gdb.base/sigstep.exp (breakpoint_to_handler): Remove setup_kfail
5291 (breakpoint_to_handler_entry): Ditto.
5295 * gdb.base/ending-run.exp: Use the first line of code inside
5296 function body to test breakpoints.
5297 * gdb.mi/mi-break.exp, gdb.mi/mi2-break.exp: Adjust the actual
5298 location where the breakpoint is inserted when using the line
5299 where a function is declared. Fix typo in the description of
5301 * gdb.mi/mi-simplerun.exp, gdb.mi/mi2-simplerun.exp: Likewise.
5305 * gdb.arch/i386-sse.exp: avoid same output for two breakpoint setting
5310 * gdb.base/args.exp: avoid same output for tests
5315 * gdb.base/annota1.exp: Adjust for 'info break'
5317 * gdb.base/annota3.exp: Likewise.
5318 * gdb.base/break.exp: Likewise.
5319 * gdb.base/condbreak.exp: Likewise.
5320 * gdb.base/pending.exp: Likewise.
5321 * gdb.base/sepdebug.exp: Likewise.
5322 * gdb.base/unload.exp: Likewise.
5323 * gdb.cp/ovldbreak.exp: Likewise.
5324 * gdb.mi/mi-pending.exp: Likewise.
5328 * gdb.cp/mb-inline.exp: New.
5329 * gdb.cp/mb-inline.h: New.
5330 * gdb.cp/mb-inline1.cc: New.
5331 * gdb.cp/mb-inline2.cc: New.
5335 * gdb.pascal/floats.pas: New test program.
5336 * gdb.pascal/floats.exp: New testcase.
5340 * gdb.base/callfuncs.c (t_float_many_args): New function.
5341 (t_double_many_args): New function.
5342 * gdb.base/callfuncs.exp: Add tests for exceeding float
5343 and double parameters passed through the stack.
5347 * gdb.ada/complete/pck.ads, gdb.ada/complete/pck.adb,
5348 gdb.ada/complete/foo.adb: New files.
5349 * gdb.ada/complete.exp: New testcase.
5353 * gdb.base/whatis-exp.exp: Fix expected result of whatis x+y, x-y, x*y.
5355 * gdb.cp/gdb2384.exp: New file.
5356 * gdb.cp/gdb2384.cc: New file.
5357 * gdb.cp/gdb2384-base.h: New file.
5358 * gdb.cp/gdb2384-base.cc: New file.
5362 * gdb.base/sigall.c (main): Ensure all signals aren't blocked.
5366 * gdb.ada/sym_print_name: New test program.
5367 * gdb.ada/sym_print_name.exp: New testcase.
5371 * gdb.ada/nested/hello.adb: New file.
5372 * gdb.ada/nested.exp: New testcase.
5373 * gdb.ada/Makefile.in (EXECUTABLES): Update list.
5377 * gdb.mi/basic.c (return_1): New function.
5378 * gdb.mi/mi-break.exp: Make sure that failed -break-insert
5379 don't cause future evaluations of function to report
5380 creation of internal breakpoints.
5384 * gdb.mi/mi-break.exp (test_error): New.
5389 * gdb.arch/ppc64-atomic-inst.c: New testcase source file.
5390 * gdb.arch/ppc64-atomic-inst.exp: New testcase expect file.
5394 * gdb.pascal/integers.pas: New test program.
5395 * gdb.pascal/integers.exp: New testcase.
5399 * gdb.pascal/hello.exp (binfile): Add ${EXEEXT}.
5403 * gdb.arch/powerpc-d128-regs.exp: New testcase expect file.
5404 * gdb.arch/powerpc-d128-regs.c: New testcase source file.
5408 * gdb.ada/formatted_ref: New test program.
5409 * gdb.ada/formatted_ref.exp: New testcase.
5411 * gdb.cp/formatted-ref.cc: New file.
5412 * gdb.cp/formatted-ref.exp: New testcase.
5416 * gdb.base/ptype.exp: Add testing of "ptype $pc".
5420 * gdb.mi/mi-file.exp, gdb.mi/mi2-file.exp
5421 (test_file_list_exec_source_file): Update to new macro-info field.
5425 * gdb.ada/exprs: New test program.
5426 * gdb.ada/exprs.exp: New testcase.
5430 * dfp-test.c (DELTA, DELTA_B): New definitions.
5431 (double_val1, double_val2, double_val3, double_val4, double_val5,
5432 double_val6, double_val7, double_val8, double_val9, double_val10,
5433 double_val11, double_val12, double_val13, double_val14, dec32_val1,
5434 dec32_val2, dec32_val3, dec32_val4, dec32_val5, dec32_val6, dec32_val7,
5435 dec32_val8, dec32_val9, dec32_val10, dec32_val11, dec32_val12,
5436 dec32_val13, dec32_val14, dec32_val15, dec32_val16, dec64_val1,
5437 dec64_val2, dec64_val3, dec64_val4, dec64_val5, dec64_val6, dec64_val7,
5438 dec64_val8, dec64_val9, dec64_val10, dec64_val11, dec64_val12,
5439 dec64_val13, dec64_val14, dec64_val15, dec64_val16, dec128_val1,
5440 dec128_val2, dec128_val3, dec128_val4, dec128_val5, dec128_val6,
5441 dec128_val7, dec128_val8, dec128_val9, dec128_val10, dec128_val11,
5442 dec128_val12, dec128_val13, dec128_val14, dec128_val15,
5443 dec128_val16): New global variables.
5444 (decimal_dec128_align): New function.
5445 (decimal_mixed): Likewise.
5446 (decimal_many_args_dec32): Likewise.
5447 (decimal_many_args_dec64): Likewise.
5448 (decimal_many_args_dec128): Likewise.
5449 (decimal_many_args_mixed): Likewise.
5450 * dfp-test.exp: Add tests calling new inferior functions.
5454 * gdb.server/ext-attach.c, gdb.server/ext-attach.exp,
5455 gdb.server/ext-run.exp: New files.
5456 * lib/gdbserver-support.exp (gdbserver_download): New.
5457 (gdbserver_start): New. Update gdbserver expected
5459 (gdbserver_spawn): Use them.
5460 (gdbserver_start_extended): New.
5464 * gdb.base/foll-exec.exp: Update header. Skip on remote targets.
5466 (do_exec_tests): Check for systems which do not support catchpoints.
5468 * gdb.base/foll-fork.exp: Update header. Skip on remote targets.
5469 Run on GNU/Linux. Enable verbose output.
5470 (check_fork_catchpoints): New.
5471 (explicit_fork_child_follow, catch_fork_child_follow)
5472 (tcatch_fork_parent_follow): Update expected messages.
5473 (do_fork_tests): Use check_fork_catchpoints.
5474 * gdb.base/foll-vfork.exp: Update header. Skip on remote targets.
5475 Run on GNU/Linux. Enable verbose output.
5476 (check_vfork_catchpoints): New.
5477 (vfork_parent_follow_to_bp, tcatch_vfork_then_child_follow): Update
5479 (do_vfork_and_exec_tests): Use check_fork_catchpoints.
5483 * lib/gdbserver-support.exp (gdb_target_cmd): Recognize 'unknown
5485 * lib/mi-support.exp (mi_gdb_target_cmd): Same.
5489 * gdb.threads/sigthread.c: Use barriers to ensure that
5490 child_thread and child_thread_two are always initialized before we
5495 * gdb.base/watchpoint-solib.exp: New.
5496 * gdb.base/watchpoint-solib.c: New.
5497 * gdb.base/watchpoint-solib-shr.c: New.
5501 * gdb.base/gdb1056.exp: Add unsigned integer test.
5505 * gdb.base/maint.exp: Tighten patterns looking for .text/.data/.bss.
5509 * gdb.base/expand-psymtabs.exp: Doc fix to the doc fix.
5511 * gdb.base/expand-psymtabs.exp: Doc fix.
5515 * gdb.gdb/selftest.exp (do_steps_and_nexts): Add more matches.
5519 * gdb.mi/mi2-var-display.exp: Add value field to tests for output of
5524 * gdb.threads/thread_events.c: New testcase source file.
5525 * gdb.threads/thread_events.exp: New testcase expect file.
5529 * lib/gdb.exp: Add the variable octal.
5531 * gdb.mi/mi-var-display.exp: Add value field to tests for output of
5537 * gdb.base/float.exp: Allow missing floating point for m68k and
5542 * gdb.mi/basics.c: Setup for testing breakpoints
5544 * gdb.mi/mi-break.exp: Test for breakpoint ignore count.
5545 * gdb.mi/mi-cli.exp: Adjust.
5546 * gdb.mi/mi2-cli.exp: Adjust.
5550 * gdb.mi/mi-var-child.c (do_children_tests): Add 'dummy' integer
5551 and 'dummy_ptr' integer pointer. Initialize struct_declarations
5552 with dummy_ptr's address.
5553 * gdb.mi/var-cmd.c (do_children_tests): Likewise.
5554 * gdb.mi/mi-var-child.exp: int_ptr_ptr is now always "editable" on
5556 * gdb.mi/mi2-var-child.exp: Likewise.
5560 * gdb.ada/null_array: New test program.
5561 * gdb.ada/null_array.exp: New testcase.
5565 * gdb.base/printcmds.exp (test_printf_with_dfp): Update printf calls
5566 with required float modifiers.
5570 * gdb.ada/funcall_param: New test program.
5571 * gdb.ada/funcall_param.exp: New testcase.
5575 * gdb.ada/arrayparam: New test program.
5576 * gdb.ada/arrayparam.exp: New testcase.
5580 * gdb.ada/print_pc.exp: Add verification of where gdb_start_cmd
5581 landed. Should also fix random failures in the test following it.
5585 * gdb.base/dfp-exprs.exp (test_dfp_arithmetic_expressions): Add tests
5586 for expressions with decimal float values.
5587 (test_dfp_conversions): New function to test casts to and from
5588 decimal float types.
5589 Call test_dfp_conversions.
5590 * gdb.base/dfp-test.c (struct decstruct): Add float4 and double8
5592 (main): Initialize ds.float4 and ds.double8 elements.
5593 * gdb.base/dfp-test.exp (d32_set_tests): Fix typo. Adjust expect
5594 string to new error message.
5595 (d64_set_tests): Likewise.
5596 (d128_set_tests): Likewise.
5597 Add tests for expressions with decimal float variables. Add tests for
5598 conversions to and from decimal float types.
5602 * gdb.ada/packed_tagged/comp_bug.adb: New file.
5603 * gdb.ada/packed_tagged.exp: New testcase.
5607 * gdb.ada/homonym/homonym.ads, gdb.ada/homonym/homonym.adb,
5608 gdb.ada/homonym/homonym_main.adb: New files.
5609 * gdb.ada/homonym.exp: New testcase.
5613 * gdb.ada/packed_array.exp: Add testing of references to
5618 * gdb.ada/type_coercion/ident.adb, gdb.ada/type_coercion/assign.adb:
5620 * gdb.ada/type_coercion.exp: New testcase.
5624 * gdb.ada/tagged/pck.ads, gdb.ada/tagged/pck.adb,
5625 gdb.ada/tagged/foo.adb: New file.
5626 * gdb.ada/tagged.exp: New testcase.
5630 * gdb.ada/ptype_field/pck.ads, gdb.ada/ptype_field/pck.adb,
5631 gdb.ada/ptype_field/foo.adb: New files.
5632 * gdb.ada/ptype_field.exp: New testcase.
5636 * gdb.ada/print_pc.exp: New testcase.
5640 * gdb.ada/taft_type/pck.ads, gdb.ada/taft_type/pck.adb,
5641 gdb.ada/taft_type/p.adb: New files.
5642 * gdb.ada/taft_type.exp: New testcase.
5646 * gdb.ada/array_bounds/bar.adb: New file.
5647 * gdb.ada/array_bounds.exp: New testcase.
5651 * gdb.ada/arrayptr/pck.ads, gdb.ada/arrayptr/pck.adb,
5652 gdb.ada/arrayptr/foo.adb: New files.
5653 * gdb.ada/arrayptr.exp: New testcase.
5657 * gdb.base/set-lang-auto.exp: New testcase.
5661 * gdb.ada/fun_addr/foo.adb: New file.
5662 * gdb.ada/fun_addr.exp: New testcase.
5666 * gdb.threads/fork-child-threads.exp, gdb.threads/fork-child-threads.c:
5671 * array_subscript_addr/p.adb: New file.
5672 * array_subscript_addr.exp: New testcase.
5676 * gdb.ada/str_cmp_ref/pck.ads, gdb.ada/str_cmp_ref/foo.adb:
5678 * gdb.ada/str_cmp_ref.exp: New testcase.
5682 * gdb.ada/fun_in_declare/pck.ads, gdb.ada/fun_in_declare/pck.adb,
5683 gdb.ada/fun_in_declare/foo.adb: New files.
5684 * gdb.ada/fun_in_declare.exp: New testcase.
5688 * gdb.ada/ref_param/foo.adb, gdb.ada/ref_param/pck.adb,
5689 gdb.ada/ref_param/pck.ads: New files.
5690 * gdb.ada/ref_param.exp: New testcase.
5694 * gdb.ada/interface/types.ads, gdb.ada/interface/types.adb,
5695 gdb.ada/interface/foo.adb: New files.
5696 * gdb.ada/interface.exp: New testcase.
5700 * gdb.base/multi-forks.exp: Consume all output from child
5701 processes before proceeding to next test.
5705 * configure: Regenerated.
5709 * gdb.ada/fixed_cmp/pck.ads, gdb.ada/fixed_cmp/pck.adb,
5710 gdb.ada/fixed_cmp/fixed.adb: New files.
5711 * gdb.ada/fixed_cmp.exp: New testcase.
5715 * gdb.ada/boolean_expr.exp: New testcase.
5719 * gdb.base/multi-forks.exp: Doc fix.
5723 * gdb.ada/Makefile.in (EXECUTABLES): Update list.
5724 * gdb.ada/char_param.exp: Do not compile our test program with
5725 -gnata, this is unnecessary.
5726 * gdb.ada/char_param/pck.ads: Remove unnecessary "with".
5730 * gdb.ada/print_chars/pck.ads, gdb.ada/print_chars/pck.adb,
5731 gdb.ada/print_chars/foo.adb: New files.
5732 * gdb.ada/print_chars.exp: New testcase.
5736 * gdb.ada/char_param/pck.ads, gdb.ada/char_param/pck.adb,
5737 gdb.ada/char_param/foo.adb: New files.
5738 * gdb.ada/char_param.exp: New testcase.
5742 * gdb.asm/asm-source.exp: Use gdb_get_line_number, instead of
5743 hard-coding source line numbers into the test.
5744 * gdb.asm/asmsrc1.s, gdb.asm/asmsrc2.s: Add comments for
5745 gdb_get_line_number to find.
5749 * gdb.base/ptype.c (highest): New struct type.
5750 (the_highest): New variable of that type.
5751 (main): Add dummy assignment to a field of variable the_highest.
5752 * gdb.base/ptype.exp: Test type printing of our new variable.
5756 * (gdb.base/watch_thread_num.exp): Add breakpoint at thread_function
5757 and record first explicitly generated thread number.
5758 Use that thread number for thread specific watchpoint test.
5759 Add iteration number to repetitive tests.
5764 * gdb.base/expand-psymtabs.c: New testcase
5766 * gdb.base/expand-psymtabs.exp: New testcase
5771 * testsuite/gdb.base/watch_thread_num.c: New testcase source file.
5772 * testsuite/gdb.base/watch_thread_num.exp: New testcase expect file.
5776 * gdb.ada/frame_args/foo.adb: New file.
5777 * gdb.ada/frame_args/pck.ads: New file.
5778 * gdb.ada/frame_args/pck.adb: New file.
5779 * gdb.ada/frame_args.exp: New testcase.
5783 * gdb.base/frame-args.c: New file.
5784 * gdb.base/frame-args.exp: New testcase.
5789 * gdb.base/siginfo-addr.exp, gdb.base/siginfo-addr.c: New.
5793 * gdb.mi/mi-pending.exp: New.
5794 * gdb.mi/mi-pending.c: New.
5795 * gdb.mi/mi-pendshr.c: New.
5799 * gdb.base/default.exp: Update expected output for 'info catch'.
5803 * lib/gdb.exp (build_id_debug_filename_get): OBJCOPY pipe being read
5804 must be set to binary.
5808 * lib/gdb.exp (gdb_gnu_strip_debug): Remove debug format test.
5812 * gdb.server/file-transfer.exp, gdb.server/transfer.txt,
5813 gdb.mi/mi-file-transfer.exp: New.
5817 * gdb.dwarf2/dw2-ranges.S, gdb.dwarf2/dw2-ranges.exp: New files.
5821 * gdb.trace/backtrace.exp: Fix a typo.
5822 * gdb.trace/circ.exp: Likewise.
5823 * gdb.trace/collection.exp: Likewise.
5824 * gdb.trace/limits.exp: Likewise.
5825 * gdb.trace/report.exp: Likewise.
5826 * gdb.trace/tfind.exp: Likewise.
5827 * gdb.trace/while-dyn.exp: Likewise.
5831 * gdb.mi/mi2-var-child.exp, gdb.mi/mi-var-child.exp: Variables
5832 objects of pointers that can't be dereferenced are now
5837 * Makefile.in (Makefile): Do not depend on target_makefile_frag.
5838 (target_cpu): Remove.
5842 * gdb.base/ending-run.exp: Expect the list of cleared
5843 breakpoint to come in natural order, not the reversed one.
5847 * gdb.mi/mi-var-child.c (do_child_deletion): New.
5848 * gdb.mi/mi-var-child.exp: Run child_deletion tests.
5852 * gdb.base/printcmds.exp: New function
5853 test_printf_with_dfp.
5857 * gdb.disasm/t01_mov.s: Remove carriage returns.
5858 * gdb.disasm/t02_mova.s: Ditto.
5859 * gdb.disasm/t03_add.s: Ditto.
5860 * gdb.disasm/t04_sub.s: Ditto.
5861 * gdb.disasm/t05_cmp.s: Ditto.
5862 * gdb.disasm/t06_ari2.s: Ditto.
5863 * gdb.disasm/t07_ari3.s: Ditto.
5864 * gdb.disasm/t08_or.s: Ditto.
5865 * gdb.disasm/t09_xor.s: Ditto.
5866 * gdb.disasm/t10_and.s: Ditto.
5867 * gdb.disasm/t11_logs.s: Ditto.
5868 * gdb.disasm/t12_bit.s: Ditto.
5869 * gdb.disasm/t13_otr.s: Ditto.
5873 * gdb.cp/arg-reference.exp, gdb.cp/arg-reference.c: New files.
5877 * gdb.base/dfp-test.exp: Fail gracefully if toolchain does not
5878 provide DFP support.
5882 * gdb.arch/altivec-abi.exp: Run multiple times for GCC on GNU/Linux.
5883 Test "set powerpc vector-abi". Skip auto-detection tests for old
5888 * lib/gdb.exp, gdb.base/sepdebug.exp: Replace usage of eq and ne
5889 with [string compare].
5893 * gdb.base/sepdebug.exp (binfile): Add ${EXEEXT}.
5894 * gdb.base/sepsymtab.exp (binfile): Add ${EXEEXT}.
5898 * gdb.opt/clobbered-registers-O2.c: New testcase source file.
5899 * gdb.opt/clobbered-registers-O2.exp: New testcase expect file.
5900 * gdb.opt/Makefile.in: New makefile.
5901 * Makefile.in: Create new directory "gdb.opt".
5902 * configure.ac: Add "gdb.opt" directory.
5903 * configure: Regenerated.
5907 * gdb.cp/mb-ctor.exp: Check skip_cplus_tests.
5908 * gdb.cp/mb-templates.exp: Check skip_cplus_tests.
5913 * gdb.base/dfp-exprs.exp: new file adding tests for Decimal
5914 Floating Point expressions.
5915 * gdb.base/dfp-test.exp: new file adding tests for Decimal
5916 Floating Point variables.
5917 * gdb.base/dfp-test.c: new file containing program with Decimal
5918 Floating variables, used by gdb.base/dfp-test.exp.
5922 * gdb.threads/multi-create.c, gdb.threads/multi-create.exp: New.
5926 * gdb.arch/altivec-abi.exp (compile_flags): Use -mabi=altivec when
5927 compiling test case with GCC.
5928 * gdb.arch/altivec-regs.exp (compile_flags): Likewise.
5932 * gdb.arch/altivec-regs.exp (decimal_vector): Adjust for output
5937 * gdb.base/dbx.exp: Add missing "-re " operator.
5941 * configure.ac: Added gdb.modula2/Makefile to AC_OUTPUT.
5942 * configure.ac: Removed trailing spaces after backslash.
5943 * gdb.modula2: New directory.
5944 * gdb.modula2/Makefile.in: New file.
5945 * gdb.modula2/unbounded-array.exp: New file.
5946 * gdb.modula2/unbounded1.c: New file.
5950 * gdb.xml/tdesc-regs.exp: Add PowerPC support.
5954 * gdb.base/sigstep.c (main): Add checks for
5955 return values for setitimer call.
5956 Call setitimer again with itimer = ITIMER_REAL
5957 if first call to setitimer fails.
5961 * lib/gdb.exp (gdb_load_cmd): Print out $loadtimeout instead
5966 * gdb.server/server-run.exp: Test for dynamic linker symbols.
5970 * lib/gdb.exp (gdb_run_cmd): Move comment outside
5971 of gdb_expect call, to avoid interruption.
5975 * gdb.base/whatis.c (v_long_long, v_signed_long_long)
5976 (v_unsigned_long_long, v_long_long_array)
5977 (v_signed_long_long_array, v_unsigned_long_long_array)
5978 (slong_long_addr, a_slong_long_addr, v_long_long_pointer)
5979 (v_signed_long_long_pointer, v_unsigned_long_long_pointer)
5980 [!NO_LONG_LONG]: New.
5981 (t_struct, v_struct2, t_union, v_union2) [!NO_LONG_LONG]: Add
5984 (v_long_long_func, v_signed_long_long_func)
5985 (v_unsigned_long_long_func) [!NO_LONG_LONG]: New.
5986 (main) [!NO_LONG_LONG]: Initialize long long variants.
5988 * gdb.base/whatis.exp: If board file requests no_long_long, build
5989 test with NO_LONG_LONG defined. Test long long, signed long long,
5990 and unsigned long long variants but only if board file doesn't
5996 * Makefile.in (ALL_SUBDIRS): Add gdb.pascal.
5997 * configure.ac (AC_OUTPUT): Add gdb.pascal/Makefile.
5998 * configure: Regenerated.
5999 * gdb.pascal/Makefile.in, gdb.pascal/hello.exp, gdb.pascal/hello.pas,
6000 gdb.pascal/types.exp, lib/pascal.exp: New files.
6004 * gdb.cp/classes.exp (do_tests): Always step to the line after the
6006 * gdb.mi/mi-simplerun.exp (test_controlled_execution): Allow finish
6007 to return to the call.
6008 * gdb.mi/mi2-simplerun.exp (test_controlled_execution): Likewise.
6009 * gdb.mi/mi-return.exp (test_return_simple): Likewise.
6010 * gdb.mi/mi2-return.exp (test_return_simple): Likewise.
6011 * gdb.mi/mi-until.exp (test_until): Likewise.
6012 * gdb.mi/mi2-until.exp (test_until): Likewise.
6016 * gdb.mi/var-cmd.c (do_locals_tests): Define lcharacter as a
6018 * gdb.mi/mi-var-cmd.exp, gdb.mi/mi2-var-cmd.exp: Use lcharacter[0].
6022 * gdb.threads/watchthreads.c (thread_function): Sleep between
6024 * gdb.threads/watchthreads.exp: Allow two watchpoints to trigger
6025 at once for S/390. Generate matching fails and passes.
6029 * gdb.mi/var-cmd.c (do_children_tests): Initialize
6030 the 'struct_declarations' variable to zeros.
6034 * gdb.cp/mb-ctor.cc: New.
6035 * gdb.cp/mb-ctor.exp: New.
6036 * gdb.cp/mb-templates.cc: New.
6037 * gdb.cp/mb-templates.exp: New.
6041 * gdb.cp/pass-by-ref.cc, gdb.cp/pass-by-ref.exp: New files.
6045 * configure.ac: Do gdb.stabs tests by default on Cygwin and MinGW
6047 * configure: Regenerate.
6051 * gdb.base/annota1.exp: Adjust for 'info break'
6053 * gdb.base/annota3.exp: Likewise.
6054 * gdb.base/break.exp: Likewise.
6055 * gdb.base/condbreak.exp: Likewise.
6056 * gdb.base/pending.exp: Likewise.
6057 * gdb.base/sepdebug.exp: Likewise.
6058 * gdb.base/unload.exp: Likewise.
6059 * gdb.base/ovldbreak.exp: Likewise.
6063 * gdb.base/pending.exp: No longer expect "Pending breakpoint resolved"
6065 * gdb.base/chng-syms.exp: Likewise.
6066 * gdb.base/unload.exp: Likewise.
6070 * gdb.base/sepdebug.exp (test_different_dir): Append to pf_prefix.
6074 * schedlock.c (NUM): Change to 1.
6075 (main): Use args[0] for the main thread.
6076 * schedlock.exp: Only expect two threads. Only issue one pass or fail
6077 regardless of the number of threads.
6081 * gdb.mi/mi-watch.exp (test_watchpoint_all): Pass the watchpoint
6083 (test_watchpoint_triggering): XFAIL the sw watchpoint scope
6085 * gdb.mi/mi2-watch.exp (test_watchpoint_all): Pass the
6086 watchpoint type down.
6087 (test_watchpoint_triggering): XFAIL the sw watchpoint scope
6092 * gdb.mi/mi-watch.exp (test_watchpoint_all): New function.
6093 Move all the tests here and run them twice, once using software
6094 watchpoints and once using hardware watchpoints.
6095 * gdb.mi/mi2-watch.exp (test_watchpoint_all): Likewise.
6099 * gdb.base/solib-weak.exp (do_test): Adjust the file names for each
6104 * lib/gdb.exp (build_id_debug_filename_get): Improve check for
6107 * lib/gdb.exp (gdb_compile): OpenBSD doesn't need -dl, and doesn't
6108 know about $ORIGIN. Calculate output dir from $dest instead of
6109 using ${objdir}/{$subdir}.
6113 * gdb.base/gcore-buffer-overflow.exp: Check whether gdb supports
6114 gcore, before continuing with the test.
6118 * gdb.mi/mi2-watch.exp: Set can-use-hw-watchpoints to 0 if required.
6119 * gdb.mi/mi-watch.exp: Likewise.
6124 * gdb.arch/i386-sse.exp: Do not expect character constants.
6125 * gdb.base/charsign.c, gdb.base/charsign.exp: Delete.
6126 * gdb.base/display.exp: Allow print/s.
6127 * gdb.base/printcmds.exp, gdb.base/setvar.exp: Revert signed
6128 and unsigned char array changes.
6132 * gdb.base/display.exp: Add tests for printf %p.
6136 * gdb.base/unload.c (dlopen, dlsym): Use the TEXT macro to convert
6137 the dll name to unicode.
6141 * gdb.base/default.exp (show version): Update the version text.
6142 * gdb.gdb/selftest.exp (xgdb is at prompt): Likewise.
6146 * gdb.base/gcore-buffer-overflow.c, gdb.base/gcore-buffer-overflow.exp:
6151 * lib/gdb.exp (build_id_debug_filename_get): New function.
6152 * gdb.base/sepdebug.exp: Reflect the changes in the heading comment.
6153 Remove the generate DEBUG file for the future testcase runs.
6154 New testcase for the NT_GNU_BUILD_ID retrieval.
6155 Move the final testing step to ...
6156 (test_different_dir): ... a new function.
6157 New parameter XFAIL to XFAIL all the tests performed.
6158 New parameter TEST_DIFFERENT_DIR parametrizing the directory.
6159 New parameter TYPE to PF_PREFIX all the tests performed.
6163 * gdb.mi/mi-var-cp.cc (path_expression): New
6165 * gdb.mi/mi-var-cp.exp: Run path exression tests.
6169 * gdb.cp/cp-relocate.exp (add-symbol-file): Change addresses
6170 to fit into SPU Local Store memory.
6174 * gdb.base/default.exp: Adjust the expected output of "info
6175 warranty" after the switch to GPLv3.
6179 * lib/gdb.exp (default_gdb_init): Increase expect buffer size
6180 to 30000 (from 20000).
6184 Switch the license of all .exp files to GPLv3.
6185 Switch the license of all .f and .f90 files to GPLv3.
6186 Switch the license of all .s and .S files to GPLv3.
6190 * configure.ac: Switch license to GPLv3.
6194 Switch the licensing to GPLv3 for all .ads and .adb files.
6198 * gdb.base/callfuncs.exp (do_function_calls): Use t_double_int
6200 * gdb.base/callfuncs.c (t_double_int, t_int_double): New.
6204 * gdb.base/step-line.c: Switch license to GPL version 3, and
6205 update copyright year.
6206 * gdb.base/step-line.inp: Likewise.
6210 * gdb.base/gdb1555.exp: Make expected output immune to formatting
6211 changes inside gdb1555.c.
6212 * gdb.base/pending.exp: Likewise.
6216 * config/default.exp: New file.
6220 * gdb.base/prologue.c, gdb.base/prologue.exp: New.
6221 * lib/gdb.exp (gdb_breakpoint): Handle "temporary".
6225 * gdb.base/dump.exp: Force the correct endianness for binary
6226 formats not carrying this information.
6230 * gdb.threads/staticthreads.exp: Match .*sem_post.
6234 * gdb.base/readline.exp (operate_and_get_next): Match the final
6239 * lib/mi-support.exp (mi_gdb_target_load): Do a "kill" prior
6244 * gdb.cp/ref-params.exp (gdb_start_again): Invoke `gdb_exit'
6245 prior to `gdb_start'.
6249 * config/sid.exp (gdb_load): Add test for empty argument. Adjust
6250 return value to be compatible with gdb_run_cmd in lib/gdb.exp.
6251 Remove call to gdb_unload.
6256 * gdb.base/unload.c (dlopen, dlsym, dlclose, dlerror): Define
6258 (SHLIB_NAME): Delete definition. Always pass dlerror to fprintf.
6259 * gdb.base/unload.exp: Use shared library test routines.
6263 * gdb.base/solib-symbol.exp: New file (testcase multiple symbol lookup).
6264 * gdb.base/solib-symbol-lib.c: Likewise.
6265 * gdb.base/solib-symbol-main.c: Likewise.
6269 * config/gdbserver.exp (gdb_reconnect): New.
6270 * gdb.base/so-disc-shr.c, gdb.base/solib-disc.c,
6271 gdb.base/solib-disc.exp: New files.
6272 * lib/gdb.exp (gdb_test_multiple): Allow tests to match "Ending
6274 (gdb_compile): Add shlib_load flag.
6275 * lib/gdbserver-support.exp (gdbserver_run): Save the protocol and
6277 (gdbserver_reconnect): New.
6282 * gdb.base/annota3.exp: Test for if construct.
6286 * gdb.base/chng-syms.exp: Handle glibc's __GI_exit.
6291 * gdb.base/display.exp: Allow a newline after display/i.
6292 * gdb.base/pc-fp.exp: Likewise.
6293 * gdb.base/sigbpt.exp: Likewise.
6297 * gdb.xml/tdesc-regs.exp: Add MIPS support. Allow multiple
6298 required features to be included.
6302 * gdb.threads/manythreads.exp: Prevent expect buffer overflow
6303 in info threads output.
6308 * gdb.arch/spu-info.exp: New testcase.
6309 * gdb.arch/spu-info.c: New file.
6313 * gdb.arch/thumb-prologue.c: Record the breakpoint address in
6314 tpcs_offset. Restore lr after the call.
6315 * gdb.arch/thumb-prologue.exp: Use tpcs_offset.
6319 * lib/gdbserver-support.exp (gdbserver_spawn): Only match full_buffer.
6320 (gdbserver_run): Kill any running gdbserver.
6321 * lib/mi-support.exp (mi_gdb_target_load): Likewise.
6325 * gdb.base/sigbpt.exp: Preset segv_addr.
6329 * lib/gdb.exp (gdb_compile): Add support for Windows DLLs.
6330 (gdb_compile_shlib): Likewise.
6331 (skip_shlib_tests, gdb_download, gdb_load_shlibs): New.
6332 (default_gdb_init): Clear cleanfiles.
6333 (gdb_finish): Delete recorded cleanfiles.
6334 * lib/gdbserver-support.exp (gdbserver_spawn): Use gdb_download.
6336 * gdb.base/gdb1555.exp: Use skip_shlib_tests and gdb_load_shlibs.
6337 Do not use isnative.
6338 * gdb.base/pending.exp, gdb.base/shlib-call.exp, gdb.base/shreloc.exp,
6339 gdb.base/so-impl-ld.exp: Likewise.
6340 * gdb.base/solib-weak.exp: Likewise. Skip for DLL targets.
6341 * gdb.base/unload.exp: Likewise. Do not pass empty option to
6346 * config/unknown.exp: Remove.
6350 * gdb.base/info-proc.exp: Check is_remote.
6354 * gdb.base/gcore.exp: Initialize variable core_supported.
6358 * gdb.threads/linux-dp.exp: Allow non-hexadecimal IDs also.
6362 * gdb.threads/linux-dp.exp: Expect hexadecimal thread IDs.
6363 * gdb.threads/print-threads.exp (test_all_threads): Allow
6364 negative and hexadecimal thread IDs.
6368 * gdb.java/jprint.java (public): Avoid invalid call to static
6373 * gdb.mi/mi-console.exp, gdb.mi/gdb669.exp, gdb.mi/mi-cli.exp,
6374 gdb.mi/mi-regs.exp, gdb.mi/mi-stepi.exp, gdb.mi/mi-syn-frame.exp,
6375 gdb.mi/mi2-cli.exp, gdb.mi/mi2-console.exp, gdb.mi/mi2-disassemble.exp,
6376 gdb.mi/mi2-regs.exp, gdb.mi/mi2-stepi.exp, gdb.mi/mi-disassemble.exp,
6377 gdb.mi/mi2-syn-frame.exp: Remove commands already run in mi_run_to_main.
6381 * gdb.base/overlays.exp: Add support for targets with only code
6382 overlay support, not data overlay. Support spu-*-* target in
6384 * gdb.base/ovlymgr.c: Provide stubs for spu target.
6385 * gdb.base/spu.ld: New file.
6389 * gdb.cp/virtfunc.exp (proc do_tests): Test stepping through a thunk.
6393 * gdb.fortran/complex.exp, gdb.fortran/complex.f: New files.
6397 * gdb.java/jmain.exp: Handle demangled names with and without method
6402 * gdb.mi/mi-syn-frame.c (main, foo, bar)
6403 (have_a_very_merry_interrupt): Remove calls to puts.
6404 * gdb.mi/mi-syn-frame.exp, gdb.mi/mi2-syn-frame.exp: Do not expect
6406 * lib/mi-support.exp (mi_gdb_test): Check gdb,noinferiorio. Correct
6412 * gdb.base/auxv.exp (core_works): Also check is_remote.
6413 * gdb.base/checkpoint.exp, gdb.base/multi-forks.exp: Likewise.
6417 * gdb.base/sigaltstack.exp: Use 'srcfile' in error
6418 message, not the undefined 'module' variable.
6419 * gdb.base/siginfo.exp: Likewise.
6420 * gdb.base/sigstep.exp: Likewise.
6421 * lib/gdbserver-support.exp (gdb_target_cmd): Quote
6423 * lib/mi-support.exp (mi_gdb_target_cmd): Likewise.
6427 * config/sim.exp (gdb_target_sim): Just return with -1 when setting
6428 target sim fails. Return 0 otherwise.
6429 (gdb_load): Return prematurely if gdb_target_sim fails.
6433 * gdb.base/setshow.exp: Reset height after having set it to 100.
6437 * gdb.mi/mi2-stack.exp: update from mi-stack.exp.
6441 * gdb.mi/mi2-var-display.exp: Test for the fullname field.
6445 * gdb.mi/mi-var-cmd.exp: Delete varobjs left by previous
6446 tests. Run the frozen varobjs test.
6447 * gdb.mi/var-cmd.c (do_frozen_tests): New.
6448 * lib/mi-support.exp (mi_varobj_update): Fix thinko.
6452 * gdb.base/type-opaque-lib.c, gdb.base/type-opaque-main.c,
6453 gdb.base/type-opaque.exp: New files.
6457 * gdb.mi/mi-var-child.c
6458 (do_children_tests): User char[2] instead of
6459 char so that automatic printing of pointers to char
6460 don't give unpredicable result.
6461 * gdb.mi/var-cmd.c (do_locals_test): Initialize
6463 * gdb.mi/mi-var-child.exp: Step to right line
6464 of do_children_tests.
6465 * gdb.mi/mi2-var-child.exp: Likewise.
6466 * gdb.mi/mi-var-cmd.exp: Step to right line of
6468 (do_children_tests): User char[2] instead of
6469 char so that automatic printing of pointers to char
6470 don't give unpredicable result.
6471 * gdb.mi/mi2-var-cmd.exp: Likewise.
6472 * lib/mi-support.exp (mi_continue_to_line):
6473 Pass test name to mi_wait_for_stop.
6477 * gdb.asm/asm-source.exp: Remove d10v case.
6478 * lib/gdb.exp (skip_cplus_tests): Likewise.
6479 * gdb.asm/d10v.inc: Deleted.
6483 * gdb.base/infnan.c, gdb.base/infnan.exp: New files.
6487 * config/netware.exp: Delete file.
6491 * gdb.dwarf2/dw2-noloc.S: New file.
6492 * gdb.dwarf2/dw2-noloc.exp: New file.
6496 * gdb.cp/method2.cc: New test.
6497 * gdb.cp/method2.exp: New test.
6498 * gdb.cp/Makefile.in (EXECUTABLES): Add method2.
6502 * gdb.ada/exec_changed.exp: Avoid "set confirm off".
6506 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
6510 * config/gdbserver.exp (gdbserver_gdb_load): Update argument list.
6511 (gdb_load): Delete, replace with...
6512 (gdb_reload): ...this.
6513 * gdb.server/server-run.exp: Use gdb_load and gdbserver_run.
6514 * gdb.server/server-mon.exp: Likewise.
6515 * lib/gdb.exp (gdb_run_cmd): Use gdb_reload.
6516 (gdb_start_cmd): New.
6517 (gdb_file_cmd): Save the last loaded file.
6519 (gdb_gnu_strip_debug): Use transform.
6520 * lib/gdbserver-support.exp (gdbserver_spawn): Move file download
6521 support here. Use new $last_loaded_file. Check mtime.
6522 (gdb_target_cmd): Handle ObjC failure case.
6523 (infer_host_exec): Delete.
6524 (gdbserver_load): Rename to...
6525 (gdbserver_run): ...this. Simplify.
6526 * lib/mi-support.exp (mi_gdb_file_cmd): Set last_loaded_file.
6527 (mi_gdb_load): Move most contents to a new function...
6528 (mi_gdb_target_load): ...here. Simplify call to gdbserver_gdb_load.
6529 (mi_run_cmd): Use mi_gdb_target_load.
6530 * gdb.base/break.exp, gdb.base/ending-run.exp, gdb.base/pending.exp,
6531 gdb.base/sepdebug.exp, gdb.base/unload.exp, gdb.objc/objcdecode.exp:
6533 * gdb.base/charsign.exp: Remove incorrect comment.
6534 * gdb.base/dbx.exp (gdb_file_cmd): Set last_loaded_file.
6535 * gdb.ada/exec_changed.exp, gdb.ada/null_record.exp, gdb.ada/start.exp,
6536 gdb.base/start.exp: Use gdb_start_cmd.
6541 * gdb.base/sigbpt.exp: Fix the message when skipping test.
6542 * gdb.base/signull.exp: Similarly.
6546 * lib/gdb.exp (gdb_run_cmd): Use -notransfer to make start-up
6547 messages available to test cases (like chng-sym.exp).
6551 * gdb.arch/altivec-regs.exp (decimal_vector): Adjust for output
6556 * gdb.arch/powerpc-prologue.c (optimized_1_marker, gdb2029_marker)
6558 (main): Call optimized_1.
6559 (gdb2029): Correct typos. Call gdb2029_marker.
6560 * gdb.arch/powerpc-prologue.exp: Run new test. Use a breakpoint
6565 * gdb.gdb/selftest.exp (do_steps_and_nexts): Match spaces as well
6566 as tabs. Remove redundant test pattern.
6570 * gdb.base/long_long.exp: Accept optional symbol name in <...>
6571 for /a format output.
6575 * gdb.base/checkpoint.exp: Rewrite 600 checkpoint test to
6576 collect output incrementally.
6580 * gdb.mi/mi-var-cmd.exp: Allow value without "..." string
6581 for -var-create lpcharacter test.
6582 * gdb.mi/mi2-var-cmd.exp: Likewise.
6586 * gdb.mi/mi-var-cmd.exp: Allow -var-update null_ptr test to
6587 pass on targets where address zero is readable.
6591 * gdb.xml/tdesc-arch.exp: Test is unsupported on target with
6592 just a single architecture.
6596 * gdb.base/callfuncs.exp (do_get_all_registers): Remove.
6597 (fetch_all_registers): New function, uses gdb_test_multiple and
6598 exp_continue to fetch inferior output line-by-line.
6599 Replace all uses of do_get_all_registers by fetch_all_registers.
6603 * gdb.base/relativedebug.exp: Skip test if gdb,nosignals is set
6608 * gdb.threads/manythreads.exp: Use $message string for
6609 consistancy; add a default (timeout) case.
6613 * gdb.base/watchpoint.exp: Fix truncated comment.
6617 * Makefile.in: Remove spurious single-quotes from sed command.
6621 * gdb.mi/mi-var-cmd.exp: Correct test name. Allow any value for
6623 * gdb.mi/mi2-var-cmd.exp: Likewise.
6627 * gdb.dwarf2/dw2-producer.S: New file.
6628 * gdb.dwarf2/dw2-producer.exp: New testcase.
6632 * gdb.mi/mi-var-block.exp, gdb.mi/mi2-var-block.exp
6633 * gdb.mi/mi-var-child.exp, gdb.mi/mi2-var-child.exp
6634 * gdb.mi/mi-var-child-f.exp, gdb.mi/mi-var-cmd.exp
6635 * gdb.mi/mi2-var-cmd.exp, gdb.mi/mi-var-display.exp
6636 * gdb.mi/mi2-var-display.exp, gdb.mi/gdb701.exp
6637 Revert tests to use mi_gdb_test and include value field in output
6642 * gdb.arch/i386-signal.c, gdb.arch/i386-signal.exp: New files.
6646 * gdb.base/maint.exp: Remove full paths from test names.
6647 * gdb.base/prelink.exp, gdb.cp/cp-relocate.exp,
6648 gdb.xml/tdesc-errors.exp, gdb.xml/tdesc-xinclude.exp: Likewise.
6652 * gdb.ada/catch_ex.exp: Fix a couple of copy/paste typos.
6656 * gdb.server/server-mon.exp: New test.
6660 * gdb.cp/cp-relocate.cc, gdb.cp/cp-relocate.exp: New.
6664 * gdb.arch/iwmmxt-regs.c, gdb.arch/iwmmxt-regs.exp: Update
6665 register capitalization.
6669 * gdb.mi/mi-var-invalidate.exp: New file.
6673 * gdb.arch/iwmmxt-regs.c, gdb.arch/iwmmxt-regs.exp: New.
6677 * tdesc-arch.exp (set_arch): Add KFAIL for missing OS ABI handlers.
6681 * gdb.xml/single-reg.xml, gdb.xml/tdesc-regs.exp,
6682 gdb.xml/core-only.xml, gdb.xml/extra-regs.xml: New files.
6686 * gdb.mi/mi-var-block.exp, gdb.mi/mi2-var-block.exp
6687 * gdb.mi/mi-var-child.exp, gdb.mi/mi2-var-child.exp
6688 * gdb.mi/mi-var-child-f.exp, gdb.mi/mi-var-cmd.exp
6689 * gdb.mi/mi2-var-cmd.exp, gdb.mi/mi-var-display.exp
6690 * gdb.mi/mi2-var-display.exp, gdb.mi/gdb701.exp
6691 * gdb.mi/gdb792.exp, lib/mi-support.exp:
6692 Update tests to include value field in output of -var-create.
6696 * gdb.mi/mi-var-child.exp: Fix matching display of function value.
6700 * gdb.xml/bad-include.xml, gdb.xml/inc-2.xml, gdb.xml/inc-body.xml,
6701 gdb.xml/includes.xml, gdb.xml/tdesc-xinclude.exp: New files.
6705 * gdb.threads/threadapply.exp: check that frame is not changed by
6706 the thread apply all command.
6710 * gdb.gdb/selftest.exp (do_steps_and_nexts): Add more matches.
6712 * gdb.dwarf2/dup-psym.S: Use .2byte/.4byte instead of .short/.int
6713 in the dwarf sections.
6714 * gdb.dwarf2/mac-fileno.S: Likewise.
6716 * gdb.base/callfuncs.exp (do_get_all_registers): Filter out
6717 bspstore register on ia64.
6721 * gdb.cp/annota3.exp ("watch triggered on a.x"): Match optional
6722 "frame-begin" annotation.
6724 * gdb.cp/annota2.exp ("watch triggered on a.x"): Allow arbitrary
6725 number of "frames-invalid" annotations.
6729 * gdb.base/commands.exp: Call if_commands_test.
6730 (gdb_test_no_prompt, if_commands_test): New.
6734 * gdb.threads/sigthread.c (NSIGS): Make bigger.
6738 * gdb.dwarf2/dw2-basic.S: Use .2byte/.4byte/.8byte instead of
6739 .short/.int/.quad in the dwarf sections.
6740 * gdb.dwarf2/dw2-intercu.S: Likewise.
6741 * gdb.dwarf2/dw2-intermix.S: Likewise.
6745 * gdb.base/charsign.exp, gdb.base/charsign.c: New files.
6746 * gdb.arch/i386-sse.exp: Check $xmm.v16_int8 printing as a number
6748 * gdb.base/printcmds.exp: Sign-provided CHARs now became arrays.
6749 * gdb.base/setvar.exp: Likewise.
6753 * gdb.base/corefile.exp: Allow non-empty argument list in reinit
6756 * gdb.base/multi-forks.exp ("restart $i"): Also match
6757 __kernel_syscall_via_break.
6761 * lib/mi-support.exp (mi_delete_varobj): New.
6762 * gdb.mi/mi-var-cp.exp: Run the reference_to_struct
6764 * gdb.mi/mi-var-cp.cc (reference_to_struct): New function.
6765 (main): Call the above.
6766 (reference_update_test, base_in_reference_test)
6767 (reference_to_pointer): Delete the created varobjs.
6771 * Makefile.in (ALL_SUBDIRS): Add gdb.xml.
6772 * configure: Regenerated.
6773 * configure.ac (AC_OUTPUT): Add gdb.xml/Makefile.
6774 * gdb.xml/Makefile.in, gdb.xml/tdesc-arch.exp,
6775 gdb.xml/tdesc-bogus.xml, gdb.xml/tdesc-errors.exp,
6776 gdb.xml/trivial.xml, gdb.xml/tdesc-unknown.xml: New files.
6777 * lib/gdb.exp (gdb_skip_xml_test): New function.
6781 * gdb.base/sigrepeat.exp: Correct error message.
6786 * gdb.arch/i386-gnu-cfi.exp, gdb.arch/i386-gnu-cfi.c,
6787 gdb.arch/i386-gnu-cfi-asm.S: New files.
6791 * lib/gdb.exp: Abort on missing `site.exp'.
6796 * gdb.base/included.c, gdb.base/included.exp,
6797 gdb.base/included.h: New files.
6801 * gdb.base/bigcore.c (RLIMIT_CAP): Define.
6802 (maximize_rlimit): Reduce limits on 64-bit systems.
6807 * gdb.arch/altivec-regs.exp: Initialise variable endianness in
6812 * gdb.mi/mi-basics.exp, gdb.mi/mi2-basics.exp (test_dir_specification)
6813 (test_path_specification): Use objdir instead of srcdir to always
6814 get an absolute filename.
6818 * gdb.cp/member-ptr.cc (class Padding): Make contents public.
6822 * gdb.mi/mi-var-cp.cc (reference_update_tests):
6823 Make sure the variable we're using is in scope.
6824 (reference_to_pointer): Likewise.
6828 * gdb.ada/catch_ex.exp: Call unsupported and stop if the runtime
6829 has no debug information.
6833 * gdb.base/annota1.exp: Remove extra send_gdb.
6837 * gdb.base/relativedebug.c, gdb.base/relativedebug.exp: New files.
6841 * gdb.arch/i386-size-overlap.c, gdb.arch/i386-size-overlap.exp: New.
6846 * gdb.mi/mi-var-cmd.exp: Expect lpcharacter to update when
6847 lcharacter or linteger change. Correct duplicated test name.
6848 * gdb.mi/mi2-var-cmd.exp: Likewise.
6852 * gdb.threads/sigthread.c, gdb.threads/sigthread.exp: New.
6856 * gdb.base/nofield.c: New file.
6857 * gdb.base/nofield.exp: New testcase.
6861 * gdb.mi/mi-var-cp.exp: New test for references to pointers.
6863 * gdb.mi/mi-var-cp.cc: (reference_to_pointer): New procedure for above
6868 * gdb.mi/mi-var-cmd.exp: Add tests for unreadable varobjs.
6872 * lib/mi-support.exp (mi_runto_helper): Expect two prompts
6877 * gdb.base/annota3.exp ($binfile): Append $EXEEXT.
6878 Expect ".exe" extension.
6882 * gdb.base/charset.exp: Add explicit filename to break.
6883 * gdb.base/dbx.exp: Add explicit filename to breaks.
6887 * gdb.mi/mi-file.exp: Use mi_gdb_file_cmd instead of mi_gdb_load.
6888 * gdb.mi/mi2-file.exp: Likewise.
6892 Implement specification of MI tests as comments
6893 in C and C++ sources.
6894 * lib/mi-support.exp (mi_autotest_data): New variable.
6895 (mi_autotest_source): New variable.
6896 (count_newlines, mi_prepare_inline_tests)
6897 (mi_get_inline_test, mi_continue_to_line)
6898 (mi_run_inline_test, mi_tbreak)
6899 (mi_send_resuming_command, mi_wait_for_stop): New functions.
6900 * gdb.mi/mi-var-cp.exp: Move most content to the C file.
6902 * gdb.mi/mi-var-cp.cc: Define tests here.
6906 Simplify usage of mi_continue_to.
6907 * lib/mi-support.exp (mi_runto_helper): Renamed
6908 from mi_runto, added new parameter 'run_or_continue'.
6909 (mi_runto): Use mi_runto_helper.
6910 (mi_continue_to): Accept just function name as parameter.
6911 Use mi_runto_helper.
6912 * gdb.mi/mi-var-cmd.exp: Adjust to changes.
6913 * gdb.mi/mi2-var-cmd.exp: Likewise.
6917 Make this testcase a bit more realistic. The current code
6918 is too simplistic, and allows the compiler to optimize out
6919 some of the entities we need for this testcase.
6920 * gdb.ada/null_record/bar.ads (Void_Star): New type.
6921 (Do_Nothing): Add extra parameter.
6922 * gdb.ada/null_record/bar.adb (Do_Nothing): Likewise.
6923 * gdb.ada/null_record/null_record.adb: Fake use of type Empty
6924 by using a variable of type Void_Star.
6928 * gdb.ada/catch_ex/foo.adb: New file.
6929 * gdb.ada/catch_ex.exp: New testcase.
6933 * gdb.base/shreloc.exp: Use ldflags instead of additional_flags to
6934 pass --image-base to linker.
6939 * gdb.base/readline.exp: Set $TERM. Test arrow keys in
6944 * gdb.cp/classes.exp (test_pointers_to_class_members): Update expected
6945 output. Test the types of members and member pointers.
6946 * gdb.cp/inherit.exp (test_print_mi_member_types): Remove KFAILs for
6948 * gdb.cp/member-ptr.exp: Search for a comment instead of a
6949 statement. Enable for GCC. Update expected output for some tests
6950 and add new tests. Remove obsolete GCC KFAILs. Allow GCC's class
6952 * gdb.cp/member-ptr.cc (Padding, Padding::vspacer, Base, Base::get_x)
6953 (Base::vget_base, Left, Left::vget, Right, Right::vget, Diamond)
6954 (Diamond::vget_base): New.
6955 (main): Add new tests.
6956 * gdb.cp/printmethod.exp: Update expected output for member functions.
6957 * gdb.cp/virtfunc.exp (test_virtual_calls): Add a KFAIL for
6962 * gdb.threads/tls.exp: Allow stops in sem_post.
6966 * gdb.base/annota1.exp: Allow .*printf in backtraces.
6967 * gdb.base/annota3.exp: Likewise.
6968 * gdb.base/sigstep.exp (advancei): Fail if we hit the breakpoint
6969 again (instead of timing out).
6970 * gdb.gdb/selftest.exp (do_steps_and_nexts): Add an XFAIL for
6972 * gdb.java/jmisc.exp: Adjust to work with method signatures including
6973 return types. Add kfails for GDB bugs 2214 and 2215. Move exit
6974 test from jmisc1.exp.
6975 * gdb.java/jmisc1.exp: Delete.
6976 * gdb.java/jprint.exp: Adjust to work with method signatures including
6978 * gdb.objc/basicclass.exp: Update for gobjc 4.1 debug info.
6979 * gdb.threads/linux-dp.exp: Don't be confused by program output.
6980 * lib/java.exp (compile_java_from_source): Pass the correct type
6985 * gdb.arch/i386-prologue.c (stack_align_ecx): Renamed from stack_align.
6986 (stack_align_edx): New function.
6987 (stack_align_eax): New function.
6988 (main): Add calls to stack_align_edx and stack_align_eax.
6989 * gdb.arch/i386-prologue.exp: Replace stack_align with stack_align_ecx.
6990 Add testing for the cases where the register used during a stack
6991 realignment is edx. Same for eax.
6995 * lib/gdb.exp: Don't pass -fpic to gcc on Cygwin, MinGW
6996 and generic PE targets.
7000 * gdb.ada/array_return.exp: Update copyright date list.
7004 * gdb.ada/array_return/pck.ads (Small_Float_Vector): New type.
7005 (Create_Small_Float_Vector): New function.
7006 * gdb.ada/array_return/pck.adb (Create_Small_Float_Vector): Add
7008 * gdb.ada/array_return/p.adb: Use new type and function from
7010 * gdb.ada/array_return.exp: Add a test verifying that GDB is
7011 able to print the value returned by a function returning an
7016 * gdb.arch/i386-prologue.exp: Remove calls to setup_kfail.
7017 The associated tests should be PASSing.
7021 Test for base in references.
7022 * gdb.mi/mi-var-cp.cc: Add test code.
7023 * gdb.mi/mi-var-cp.exp: Test for bases in references.
7024 * gdb.mi/mi-watch.exp: Adjust to mi_runto changes.
7025 * gdb.mi/mi2-watch.exp: Likewise.
7026 * lib/mi-support.exp (mi_runto): Use temporary breakpoint.
7027 (mi_list_varobj_children): New function.
7031 * lib/mi-support.exp
7032 (mi_runto): Accept "()" after function name.
7033 (mi_create_varobj): New function.
7034 (mi_varobj_update): New function.
7035 (mi_Check_varobj_value): New function.
7036 * gdb.mi/mi-var-cp.exp: New file.
7037 * gdb.mi/mi-var-cp.cc: New file.
7041 * gdb.base/solib-weak.c, gdb.base/solib-weak.exp, gdb.base/weaklib1.c,
7042 gdb.base/weaklib2.c: New files.
7046 * gdb.threads/linux-dp.exp: Adjust regexps used to scan thread
7047 info. Adjust test names.
7049 * gdb.base/break.c (main): Move position of malloc.
7050 * gdb.base/break.exp: Revert mistaken checkin.
7054 * gdb.mi/mi-var-cmd.exp: Check -var-update after
7055 assignement of arrays and function pointers.
7056 * gdb.mi/var-cmd.c: Add declaration necessary for above
7061 * gdb.base/break.c (main): Call malloc.
7063 * gdb.threads/linux-dp.exp: Read thread table before and after
7064 creating each philosopher and verify it.
7070 * gdb.base/ending-run.exp: Flatten expect script stepping out of
7071 main to remove duplication. Add start function of the form
7072 '_*start[1-9]*'. Add RVDS start function.
7076 * gdb.arch/thumb-prologue.c, gdb.arch/thumb-prologue.exp: New files.
7080 * gdb.asm/asm-source.exp: Add "spu*-*-*" target.
7081 * gdb.asm/spu.inc: New file.
7082 * gdb.base/term.exp: Disable if [target_info exists noargs].
7083 * gdb.gdb/complaints.exp: Disable if ![isnative].
7084 * gdb.gdb/selftest.exp: Likewise.
7085 * gdb.gdb/observer.exp: Likewise.
7086 * gdb.gdb/xfullpath.exp: Likewise.
7087 * gdb.base/attach.exp: Disable on SPU target.
7088 * gdb.cp/bs145503.exp: Likewise.
7089 * gdb.cp/exception.exp: Likewise.
7090 * gdb.cp/userdef.exp: Likewise.
7094 * gdb.stabs/weird.exp (print_weird_var): Don't send extra \n.
7098 * gdb.base/completion.exp: Fix completion tests for
7100 * gdb.base/help.exp (help_test_raw, test_class_help)
7101 (test_prefix_command_help): Move...
7102 * lib/gdb.exp: Here.
7103 * gdb.base/main.exp: Adjust.
7104 * gdb.cp/maint.exp: Adjust.
7105 * gdb.trace/tracecmd.exp: Use test_help_class.
7109 * gdb.stabs/weird.exp (print_weird_var): Use
7110 gdb_test_multiple instead of gdb_expect.
7114 * gdb.base/help.exp (help_test_raw): New.
7115 (test_class_help): New.
7116 (test_prefix_command_help): New.
7121 * gdb.base/constvars.c (main): Write to crass and crips, so that
7122 they are allocated by the compiler.
7126 * gdb.base/multi-forks.exp: Use "detach fork" instead of
7131 * lib/gdbserver-support.exp (gdb_target_cmd): Anchor the ends
7136 * gdb.base/sepdebug.exp: Remove debug format test.
7137 * lib/gdb.exp (gdb_gnu_strip_debug): Perform debug format test.
7139 * gdb.base/sepsymtab.c, gdb.base/sepsymtab.exp: New.
7143 * gdb.threads/manythreads.c (thread_function, main): Don't cast
7144 int to pointer or pointer to int.
7145 * gdb.threads/manythreads.exp: Don't expect the string "LWP".
7149 * gdb.base/annota1.exp, gdb.base/maint.exp: Use string_to_regexp.
7153 * gdb.threads/tls-nodebug.c, gdb.threads/tls-nodebug.exp: New test.
7158 * gdb.cp/call-c.cc, gdb.cp/call-c.exp, gdb.cp/call-c-1.c: New.
7162 * gdb.ada/arrayidx.exp: Remove calls to setup_kfail now that
7163 the corresponding bug has been fixed in GDB (PR/2018).
7167 * gdb.base/subst.exp: New testcase.
7171 * gdb.ada/array_return/pck.ads: Add copyright notice.
7172 * gdb.ada/array_return/pck.adb: Likewise.
7173 * gdb.ada/array_return/p.adb: Likewise.
7174 * gdb.ada/exec_changed/first.adb: Likewise.
7175 * gdb.ada/exec_changed/second.adb: Likewise.
7179 * gdb.ada/watch_arg/watch.adb: New file.
7180 * gdb.ada/watch_arg.exp: New testcase.
7184 * gdb.mi/mi-basics.exp (test_path_specification): Pass orig_path
7185 via string_to_regexp.
7186 * gdb.mi/mi2-basics.exp: Likewise.
7190 * abug.exp, cpu32bug.exp, est.exp hmsirom.exp, nind.exp:
7191 Remove unused / obsolete files.
7195 * gdb.base/multi-forks.exp: Include __kernel_vsyscall in regexp.
7199 * gdb.mi/mi-stack.exp (test_stack_args_listing): Test that
7200 HIGH_FRAME argument to -stack-list-arguments can be larger than
7201 the number of frames.
7205 * gdb.base/args.c (main): Add breakpoint marker.
7206 * gdb.base/args.exp: Use args_test for tests. Add new tests which
7207 really test empty arguments.
7208 (args_load): Delete.
7213 * gdb.mi/mi-file.exp (test_file_list_exec_source_files): Just
7218 * gdb.mi/mi-stack.exp (test_stack_frame_listing): Test that
7219 HIGH_FRAME argument to -stack-list-locals can be larger than
7220 the number of frames.
7224 * lib/gdb.exp (skip_altivec_tests): Fix apparent typo,
7225 '$' in front of skip_vmx_tests_saved when setting that.
7229 * gdb.base/trace-commands.exp: New file.
7234 * gdb.base/step-bt.exp: Make hexadecimal address optional in
7235 expected output of the backtrace commands.
7239 * gdb.arch/altivec-abi.exp: Replace gdb_suppress_entire_file with
7240 untested followed by return combination.
7241 * gdb.arch/altivec-regs.exp: Likewise.
7242 * gdb.arch/e500-abi.exp: Likewise.
7243 * gdb.arch/e500-regs.exp: Likewise.
7244 * gdb.arch/gdb1291.exp: Likewise.
7245 * gdb.arch/gdb1431.exp: Likewise.
7246 * gdb.arch/gdb1558.exp: Likewise.
7247 * gdb.arch/i386-prologue.exp: Likewise.
7248 * gdb.arch/i386-unwind.exp: Likewise.
7249 * gdb.asm/asm-source.exp: Likewise.
7250 * gdb.base/a2-run.exp: Likewise.
7251 * gdb.base/advance.exp: Likewise.
7252 * gdb.base/all-bin.exp: Likewise.
7253 * gdb.base/annota1.exp: Likewise.
7254 * gdb.base/annota3.exp: Likewise.
7255 * gdb.base/args.exp: Likewise.
7256 * gdb.base/arithmet.exp: Likewise.
7257 * gdb.base/assign.exp: Likewise.
7258 * gdb.base/async.exp: Likewise.
7259 * gdb.base/attach.exp: Likewise.
7260 * gdb.base/bang.exp: Likewise.
7261 * gdb.base/bigcore.exp: Likewise.
7262 * gdb.base/bitfields.exp: Likewise.
7263 * gdb.base/bitfields2.exp: Likewise.
7264 * gdb.base/break.exp: Likewise.
7265 * gdb.base/call-sc.exp: Likewise.
7266 * gdb.base/call-strs.exp: Likewise.
7267 * gdb.base/callfuncs.exp: Likewise.
7268 * gdb.base/checkpoint.exp: Likewise.
7269 * gdb.base/chng-syms.exp: Likewise.
7270 * gdb.base/code-expr.exp: Likewise.
7271 * gdb.base/commands.exp: Likewise.
7272 * gdb.base/completion.exp: Likewise.
7273 * gdb.base/cond-expr.exp: Likewise.
7274 * gdb.base/condbreak.exp: Likewise.
7275 * gdb.base/consecutive.exp: Likewise.
7276 * gdb.base/constvars.exp: Likewise.
7277 * gdb.base/corefile.exp: Likewise.
7278 * gdb.base/cvexpr.exp: Likewise.
7279 * gdb.base/dbx.exp: Likewise.
7280 * gdb.base/define.exp: Likewise.
7281 * gdb.base/detach.exp: Likewise.
7282 * gdb.base/display.exp: Likewise.
7283 * gdb.base/dump.exp: Likewise.
7284 * gdb.base/ena-dis-br.exp: Likewise.
7285 * gdb.base/ending-run.exp: Likewise.
7286 * gdb.base/environ.exp: Likewise.
7287 * gdb.base/eval-skip.exp: Likewise.
7288 * gdb.base/exprs.exp: Likewise.
7289 * gdb.base/fileio.exp: Likewise.
7290 * gdb.base/finish.exp: Likewise.
7291 * gdb.base/float.exp: Likewise.
7292 * gdb.base/foll-exec.exp: Likewise.
7293 * gdb.base/foll-fork.exp: Likewise.
7294 * gdb.base/foll-vfork.exp: Likewise.
7295 * gdb.base/freebpcmd.exp: Likewise.
7296 * gdb.base/funcargs.exp: Likewise.
7297 * gdb.base/gcore.exp: Likewise.
7298 * gdb.base/gdb1090.exp: Likewise.
7299 * gdb.base/gdb1250.exp: Likewise.
7300 * gdb.base/huge.exp: Likewise.
7301 * gdb.base/info-proc.exp: Likewise.
7302 * gdb.base/interrupt.exp: Likewise.
7303 * gdb.base/jump.exp: Likewise.
7304 * gdb.base/langs.exp: Likewise.
7305 * gdb.base/lineinc.exp: Likewise.
7306 * gdb.base/list.exp: Likewise.
7307 * gdb.base/logical.exp: Likewise.
7308 * gdb.base/long_long.exp: Likewise.
7309 * gdb.base/macscp.exp: Likewise.
7310 * gdb.base/maint.exp: Likewise.
7311 * gdb.base/mips_pro.exp: Likewise.
7312 * gdb.base/miscexprs.exp: Likewise.
7313 * gdb.base/multi-forks.exp: Likewise.
7314 * gdb.base/opaque.exp: Likewise.
7315 * gdb.base/overlays.exp: Likewise.
7316 * gdb.base/pc-fp.exp: Likewise.
7317 * gdb.base/pointers.exp: Likewise.
7318 * gdb.base/printcmds.exp: Likewise.
7319 * gdb.base/psymtab.exp: Likewise.
7320 * gdb.base/ptype.exp: Likewise.
7321 * gdb.base/recurse.exp: Likewise.
7322 * gdb.base/relational.exp: Likewise.
7323 * gdb.base/relocate.exp: Likewise.
7324 * gdb.base/remote.exp: Likewise.
7325 * gdb.base/reread.exp: Likewise.
7326 * gdb.base/restore.exp: Likewise.
7327 * gdb.base/return.exp: Likewise.
7328 * gdb.base/return2.exp: Likewise.
7329 * gdb.base/scope.exp: Likewise.
7330 * gdb.base/sect-cmd.exp: Likewise.
7331 * gdb.base/sep.exp: Likewise.
7332 * gdb.base/sepdebug.exp: Likewise.
7333 * gdb.base/setshow.exp: Likewise.
7334 * gdb.base/setvar.exp: Likewise.
7335 * gdb.base/sigall.exp: Likewise.
7336 * gdb.base/sigbpt.exp: Likewise.
7337 * gdb.base/signals.exp: Likewise.
7338 * gdb.base/signull.exp: Likewise.
7339 * gdb.base/sizeof.exp: Likewise.
7340 * gdb.base/solib.exp: Likewise.
7341 * gdb.base/step-line.exp: Likewise.
7342 * gdb.base/step-test.exp: Likewise.
7343 * gdb.base/structs.exp: Likewise.
7344 * gdb.base/structs2.exp: Likewise.
7345 * gdb.base/term.exp: Likewise.
7346 * gdb.base/twice.exp: Likewise.
7347 * gdb.base/until.exp: Likewise.
7348 * gdb.base/varargs.exp: Likewise.
7349 * gdb.base/volatile.exp: Likewise.
7350 * gdb.base/watchpoint.exp: Likewise.
7351 * gdb.base/whatis-exp.exp: Likewise.
7352 * gdb.base/whatis.exp: Likewise.
7353 * gdb.cp/ambiguous.exp: Likewise.
7354 * gdb.cp/annota2.exp: Likewise.
7355 * gdb.cp/annota3.exp: Likewise.
7356 * gdb.cp/bool.exp: Likewise.
7357 * gdb.cp/breakpoint.exp: Likewise.
7358 * gdb.cp/casts.exp: Likewise.
7359 * gdb.cp/class2.exp: Likewise.
7360 * gdb.cp/classes.exp: Likewise.
7361 * gdb.cp/cplusfuncs.exp: Likewise.
7362 * gdb.cp/ctti.exp: Likewise.
7363 * gdb.cp/derivation.exp: Likewise.
7364 * gdb.cp/exception.exp: Likewise.
7365 * gdb.cp/gdb1355.exp: Likewise.
7366 * gdb.cp/hang.exp: Likewise.
7367 * gdb.cp/inherit.exp: Likewise.
7368 * gdb.cp/local.exp: Likewise.
7369 * gdb.cp/m-data.exp: Likewise.
7370 * gdb.cp/m-static.exp: Likewise.
7371 * gdb.cp/member-ptr.exp: Likewise.
7372 * gdb.cp/method.exp: Likewise.
7373 * gdb.cp/misc.exp: Likewise.
7374 * gdb.cp/namespace.exp: Likewise.
7375 * gdb.cp/overload.exp: Likewise.
7376 * gdb.cp/ovldbreak.exp: Likewise.
7377 * gdb.cp/pr-1023.exp: Likewise.
7378 * gdb.cp/pr-1210.exp: Likewise.
7379 * gdb.cp/pr-574.exp: Likewise.
7380 * gdb.cp/printmethod.exp: Likewise.
7381 * gdb.cp/psmang.exp: Likewise.
7382 * gdb.cp/ref-params.exp: Likewise.
7383 * gdb.cp/ref-types.exp: Likewise.
7384 * gdb.cp/rtti.exp: Likewise.
7385 * gdb.cp/templates.exp: Likewise.
7386 * gdb.cp/try_catch.exp: Likewise.
7387 * gdb.cp/userdef.exp: Likewise.
7388 * gdb.cp/virtfunc.exp: Likewise.
7389 * gdb.disasm/am33.exp: Likewise.
7390 * gdb.disasm/h8300s.exp: Likewise.
7391 * gdb.disasm/mn10300.exp: Likewise.
7392 * gdb.disasm/sh3.exp: Likewise.
7393 * gdb.disasm/t01_mov.exp: Likewise.
7394 * gdb.disasm/t02_mova.exp: Likewise.
7395 * gdb.disasm/t03_add.exp: Likewise.
7396 * gdb.disasm/t04_sub.exp: Likewise.
7397 * gdb.disasm/t05_cmp.exp: Likewise.
7398 * gdb.disasm/t06_ari2.exp: Likewise.
7399 * gdb.disasm/t07_ari3.exp: Likewise.
7400 * gdb.disasm/t08_or.exp: Likewise.
7401 * gdb.disasm/t09_xor.exp: Likewise.
7402 * gdb.disasm/t10_and.exp: Likewise.
7403 * gdb.disasm/t11_logs.exp: Likewise.
7404 * gdb.disasm/t12_bit.exp: Likewise.
7405 * gdb.disasm/t13_otr.exp: Likewise.
7406 * gdb.hp/gdb.aCC/optimize.exp: Likewise.
7407 * gdb.hp/gdb.aCC/watch-cmd.exp: Likewise.
7408 * gdb.hp/gdb.base-hp/callfwmall.exp: Likewise.
7409 * gdb.hp/gdb.base-hp/dollar.exp: Likewise.
7410 * gdb.hp/gdb.base-hp/hwwatchbus.exp: Likewise.
7411 * gdb.hp/gdb.base-hp/pxdb.exp: Likewise.
7412 * gdb.hp/gdb.base-hp/reg-pa64.exp: Likewise.
7413 * gdb.hp/gdb.base-hp/reg.exp: Likewise.
7414 * gdb.hp/gdb.base-hp/sized-enum.exp: Likewise.
7415 * gdb.hp/gdb.compat/xdb1.exp: Likewise.
7416 * gdb.hp/gdb.compat/xdb3.exp: Likewise.
7417 * gdb.hp/gdb.objdbg/objdbg01.exp: Likewise.
7418 * gdb.hp/gdb.objdbg/objdbg02.exp: Likewise.
7419 * gdb.hp/gdb.objdbg/objdbg03.exp: Likewise.
7420 * gdb.hp/gdb.objdbg/objdbg04.exp: Likewise.
7421 * gdb.mi/gdb701.exp: Likewise.
7422 * gdb.mi/gdb792.exp: Likewise.
7423 * gdb.mi/mi-basics.exp: Likewise.
7424 * gdb.mi/mi-break.exp: Likewise.
7425 * gdb.mi/mi-cli.exp: Likewise.
7426 * gdb.mi/mi-console.exp: Likewise.
7427 * gdb.mi/mi-disassemble.exp: Likewise.
7428 * gdb.mi/mi-eval.exp: Likewise.
7429 * gdb.mi/mi-file.exp: Likewise.
7430 * gdb.mi/mi-read-memory.exp: Likewise.
7431 * gdb.mi/mi-regs.exp: Likewise.
7432 * gdb.mi/mi-return.exp: Likewise.
7433 * gdb.mi/mi-simplerun.exp: Likewise.
7434 * gdb.mi/mi-stack.exp: Likewise.
7435 * gdb.mi/mi-stepi.exp: Likewise.
7436 * gdb.mi/mi-syn-frame.exp: Likewise.
7437 * gdb.mi/mi-until.exp: Likewise.
7438 * gdb.mi/mi-var-block.exp: Likewise.
7439 * gdb.mi/mi-var-child.exp: Likewise.
7440 * gdb.mi/mi-var-cmd.exp: Likewise.
7441 * gdb.mi/mi-var-display.exp: Likewise.
7442 * gdb.mi/mi-watch.exp: Likewise.
7443 * gdb.mi/mi2-basics.exp: Likewise.
7444 * gdb.mi/mi2-break.exp: Likewise.
7445 * gdb.mi/mi2-cli.exp: Likewise.
7446 * gdb.mi/mi2-console.exp: Likewise.
7447 * gdb.mi/mi2-disassemble.exp: Likewise.
7448 * gdb.mi/mi2-eval.exp: Likewise.
7449 * gdb.mi/mi2-file.exp: Likewise.
7450 * gdb.mi/mi2-read-memory.exp: Likewise.
7451 * gdb.mi/mi2-regs.exp: Likewise.
7452 * gdb.mi/mi2-return.exp: Likewise.
7453 * gdb.mi/mi2-simplerun.exp: Likewise.
7454 * gdb.mi/mi2-stack.exp: Likewise.
7455 * gdb.mi/mi2-stepi.exp: Likewise.
7456 * gdb.mi/mi2-syn-frame.exp: Likewise.
7457 * gdb.mi/mi2-until.exp: Likewise.
7458 * gdb.mi/mi2-var-block.exp: Likewise.
7459 * gdb.mi/mi2-var-child.exp: Likewise.
7460 * gdb.mi/mi2-var-cmd.exp: Likewise.
7461 * gdb.mi/mi2-var-display.exp: Likewise.
7462 * gdb.mi/mi2-watch.exp: Likewise.
7463 * gdb.stabs/exclfwd.exp: Likewise.
7464 * gdb.stabs/weird.exp: Likewise.
7465 * gdb.threads/gcore-thread.exp: Likewise.
7466 * gdb.trace/actions.exp: Likewise.
7467 * gdb.trace/backtrace.exp: Likewise.
7468 * gdb.trace/circ.exp: Likewise.
7469 * gdb.trace/collection.exp: Likewise.
7470 * gdb.trace/deltrace.exp: Likewise.
7471 * gdb.trace/infotrace.exp: Likewise.
7472 * gdb.trace/limits.exp: Likewise.
7473 * gdb.trace/packetlen.exp: Likewise.
7474 * gdb.trace/passc-dyn.exp: Likewise.
7475 * gdb.trace/passcount.exp: Likewise.
7476 * gdb.trace/report.exp: Likewise.
7477 * gdb.trace/save-trace.exp: Likewise.
7478 * gdb.trace/tfind.exp: Likewise.
7479 * gdb.trace/tracecmd.exp: Likewise.
7480 * gdb.trace/while-dyn.exp: Likewise.
7481 * gdb.trace/while-stepping.exp: Likewise.
7485 * gdb.base/step-bt.c: New file.
7486 * gdb.base/step-bt.exp: New testcase.
7490 * config/monitor.exp (gdb_load): Remove support for obsolete
7491 download-write-size.
7492 * gdb.base/remote.exp: Likewise. Update all callers of
7497 * cursal.exp: Pass binfile to gdb_load.
7501 * gdb.base/cursal.exp: Add "" to gdb_load call.
7505 * gdb.asm/asm-source.exp: Add alpha-*-netbsd* to the list of
7510 * gdb.cp/userdef.cc, gdb.cp/userdef.exp: New tests for unary
7515 * gdb.base/completion.exp: Update for change in "file" behavior.
7516 * gdb.stabs/weird.exp: Likewise.
7517 * lib/mi-support.exp (mi_gdb_file_cmd): Likewise.
7518 * lib/gdb.exp (gdb_file_cmd): Likewise. Kill the program explicitly.
7522 * gdb.base/auxv.exp: Skip on non-linux, non-solaris targets.
7523 * gdb.base/cursal.exp: Use gdb_file_cmd first, then separate gdb_load.
7527 * gdb.base/default.exp: Update source command error message.
7528 * gdb.base/help.exp: Update 'help source' message.
7532 * gdb.cp/bs15503.exp: Update comment for no longer crashing
7537 * gdb.base/ifelse.exp: Remove troublesome 'got here' messages.
7541 * gdb.arch/i386-size.c, gdb.arch/i386-size.exp: New files.
7545 * gdb.threads/print-threads.exp: Use gdb_breakpoint.
7549 * gdb.base/long_long.exp (gdb_test_long_long): Exclude
7550 *-*-openbsd* from targets for wich we expect ARM FPA floating
7555 * gdb.cp/annota3.exp: Expect frame-begin annotation.
7559 * gdb.base/annota3.exp: Expect frame-begin annotation.
7563 * gdb.base/help.exp: Adjust "help unset" test to accept
7564 any list of unset commands.
7569 * gdb.cp/ref-params.exp: New test.
7570 * gdb.cp/ref-params.cc: New source file.
7571 * gdb.cp/Makefile.in (EXECUTABLES): Add ref-params.
7575 * gdb.arch/alpha-step.exp (test_stepi): Do not include trailing
7576 spaces/tabs in regular expressions since they might not be there.
7580 * gdb.base/ifelse.exp: New file.
7584 * gdb.base/huge.c: Allow CRASH_GDB to be set from command
7586 * gdb.base/huge.exp: Loop over compilation to find a size that
7588 * gdb.base/remote.exp: Correct expected strings.
7589 * gdb.dwarf2/mac-fileno.S: Avoid # comments.
7593 * gdb.base/store.exp: Don't use gdb_suppress_entire_file.
7597 * gdb.base/gdb1555.exp: Use gdb_compile_shlib. Skip if not
7602 * gdb.stabs/exclfwd.exp: Skip the test if configure did not
7603 enable stabs testing.
7607 * gdb.base/auxv.exp: Intercept undefined command messages before
7608 gdb_test_multiple does.
7612 * Makefile.in (host_alias): Remove.
7613 (target_alias): Use @target_noncanonical@.
7614 (site.exp): Don't set host_alias.
7615 * aclocal.m4: Remove contents. Include acx.m4.
7616 * configure: Regenerated.
7617 * configure.ac: Use ACX_NONCANONICAL_TARGET.
7621 * lib/gdb.exp (gdb_load_cmd): New.
7623 * gdb.base/fileio.c: Add system(NULL) test.
7624 * gdb.base/fileio.exp: Check it.
7626 * gdb.base/break.c: Add 10a breakpoint at }
7627 * gdb.base/break.exp: Add test for breakpoint at }
7628 * gdb.cp/anon-union.cc: Add code at end of function.
7629 * gdb.cp/anon-union.exp: Adjust end of function breakpoint.
7630 * gdb.mi/var-cmd.c: Add code at end of function.
7631 * gdb.mi/mi-var-display.exp: Adjust end of next.
7632 * gdb.mi/mi2-var-display.exp: Likewise.
7633 * gdb.base/fileio.c: Add stop function and insert calls at
7635 * gdb.base/fileio.exp: Breakpoint stop function and remove
7636 explicit line number references.
7640 * gdb.base/del.exp (test_delete_alias): New function.
7641 Now check that both "del" and "d" work as aliases for "delete".
7645 * gdb.base/a2-run.exp: Allow part of test to run when args aren't
7646 required. Check for spurious output after program exits normally.
7650 * gdb.base/relocate.exp: Use gdb_file_cmd rather than
7651 gdb_load, so it works in the simulator.
7655 * gdb.base/bang.exp: Ignore unexpected output between the
7656 "program exited normally" and the gdb prompt, as many other
7661 * gdb.base/help.exp: Make "delete checkpoint" part option for
7662 "help d" and "help delete" tests.
7666 * gdb.mi/mi-basics.exp: Add missing serial number to
7667 expected output in some mi_gdb_test statements.
7668 * gdb.mi/mi2-basics.exp: Likewise.
7672 * gdb.base/del.c: New file.
7673 * gdb.base/del.exp: New testcase.
7677 * gdb.base/break.exp: Do not assume a breakpoint on
7678 main will actually be in $srcfile when optimizing.
7679 * gdb.base/savedregs.exp: Do not require that the dummy
7680 frame location match up to a symbol and source file location.
7681 * gdb.mi/mi-regs.exp (111-data-list-register-values x): "No registers"
7682 will get printed without a mi_cmd_data_list_register_values prefix.
7683 (*-data-list-register-*): Correct regular expressions to expect the new
7684 pseudo d? floating point registers.
7685 * gdb.mi/mi2-regs.exp: Likewise.
7689 * gdb.cp/m-static.h (class gnu_obj_4): Add dummy member.
7690 * gdb.cp/m-static.cc (main): Write to test4.dummy, so that test4
7691 is allocated by the compiler.
7692 * gdb.mi/var-cmd.c: (do_special_tests): Write to u, anonu, s,
7693 anons, e, anone to force their allocation by the compiler.
7697 * gdb.base/help.exp: Update expected text for help d and
7702 * gdb.asm/asm-source.exp: Add powerpc-*-netbsd* to the list of
7707 * gdb.base/sigbpt.exp (stepi_out): FAIL when inserting a
7708 single-step breakpoint fails; make this a KFAIL on
7710 * gdb.base/siginfo.exp: Likewise.
7711 * gdb.base/sigstep.exp (advance, advancei): Likewise.
7715 * gdb.base/multi-forks.exp: Modify patterns for "run to exit",
7716 which may have to consume output from other forks.
7717 Add tests to make sure that "delete fork" succeeded.
7722 Add support for the Renesas M32C and M16C.
7724 * gdb.asm/asm-source.exp: Add m32c target.
7725 * gdb.asm/m32c.inc: Support for m32c target.
7729 * gdb.base/commands.exp (recursive_source_test): New test.
7733 * gdb.base/float.exp: Add pattern for sparc targets.
7737 * gdb.base/commands.exp (stray_arg0_test): New test.
7741 * gdb.mi/mi-until.exp: kfail broken until command.
7742 * gdb.mi/mi2-until.exp: Ditto.
7746 * gdb.mi/mi-var-child-f.exp, gdb.mi/array.f: New files.
7750 * gdb.base/prelink.exp: Anchor tested-for regular expression
7755 * gdb.base/assign.exp: Correct fail message.
7759 * lib/compiler.c: Extract armcc version number.
7760 * lib/compiler.cc: Ditto.
7764 * gdb.arch/altivec-abi.exp: Use nowarnings instead of
7765 additional_flags=-w.
7766 * gdb.arch/altivec-regs.exp: Ditto.
7767 * gdb.arch/e500-abi.exp: Ditto.
7768 * gdb.arch/e500-regs.exp: Ditto.
7769 * gdb.base/all-bin.exp: Ditto.
7770 * gdb.base/annota1.exp: Ditto.
7771 * gdb.base/annota3.exp: Ditto.
7772 * gdb.base/args.exp: Ditto.
7773 * gdb.base/arithmet.exp: Ditto.
7774 * gdb.base/assign.exp: Ditto.
7775 * gdb.base/async.exp: Ditto.
7776 * gdb.base/bang.exp: Ditto.
7777 * gdb.base/break.exp: Ditto.
7778 * gdb.base/call-rt-st.exp: Ditto.
7779 * gdb.base/completion.exp: Ditto.
7780 * gdb.base/cond-expr.exp: Ditto.
7781 * gdb.base/condbreak.exp: Ditto.
7782 * gdb.base/consecutive.exp: Ditto.
7783 * gdb.base/define.exp: Ditto.
7784 * gdb.base/display.exp: Ditto.
7785 * gdb.base/ena-dis-br.exp: Ditto.
7786 * gdb.base/environ.exp: Ditto.
7787 * gdb.base/eval-skip.exp: Ditto.
7788 * gdb.base/info-proc.exp: Ditto.
7789 * gdb.base/jump.exp: Ditto.
7790 * gdb.base/logical.exp: Ditto.
7791 * gdb.base/long_long.exp: Ditto.
7792 * gdb.base/maint.exp: Ditto.
7793 * gdb.base/miscexprs.exp: Ditto.
7794 * gdb.base/pc-fp.exp: Ditto.
7795 * gdb.base/pointers.exp: Ditto.
7796 * gdb.base/relational.exp: Ditto.
7797 * gdb.base/reread.exp: Ditto.
7798 * gdb.base/sect-cmd.exp: Ditto.
7799 * gdb.base/sep.exp: Ditto.
7800 * gdb.base/sepdebug.exp: Ditto.
7801 * gdb.base/until.exp: Ditto.
7802 * gdb.base/whatis-exp.exp: Ditto.
7803 * gdb.cp/annota2.exp: Ditto.
7804 * gdb.cp/annota3.exp: Ditto.
7805 * gdb.trace/actions.exp: Ditto.
7806 * gdb.trace/backtrace.exp: Ditto.
7807 * gdb.trace/circ.exp: Ditto.
7808 * gdb.trace/collection.exp: Ditto.
7809 * gdb.trace/deltrace.exp: Ditto.
7810 * gdb.trace/infotrace.exp: Ditto.
7811 * gdb.trace/limits.exp: Ditto.
7812 * gdb.trace/packetlen.exp: Ditto.
7813 * gdb.trace/passc-dyn.exp: Ditto.
7814 * gdb.trace/passcount.exp: Ditto.
7815 * gdb.trace/report.exp: Ditto.
7816 * gdb.trace/save-trace.exp: Ditto.
7817 * gdb.trace/tfind.exp: Ditto.
7818 * gdb.trace/tracecmd.exp: Ditto.
7819 * gdb.trace/while-dyn.exp: Ditto.
7820 * gdb.trace/while-stepping.exp: Ditto.
7821 * lib/gdb.exp: Ditto.
7822 (gdb_compile): Handle nowarning option.
7826 * gdb.base/prelink.c, gdb.base/prelink-lib.c: Update FSF address.
7827 * gdb.base/prelink.exp: Likewise. Add -q to prelink runs.
7828 Rename executable to prelinkt. Don't re-prelink if we didn't
7829 get a core file. Test prelink -u exit status to tell whether
7830 prelinking failed. Use gdb_test_multiple.
7834 * gdb.cp/inherit.exp (test_print_mi_member_types): New function.
7835 (do_tests): Call it.
7839 * gdb.base/prelink.exp: New test.
7840 * gdb.base/prelink.c, gdb.base/prelink-lib.c: New sources.
7844 * gdb.fortran/derived-type.f90: New file.
7845 * gdb.fortran/derived-type.exp: New testcase.
7849 * gdb.base/default.exp: Allow ';' as a directory separator.
7853 * gdb.base/help.exp (help add-symbol-file): Update.
7857 * gdb.base/help.exp (help load): Update expected results.
7861 * gdb.base/pc-fp.exp (get_valueofx): Don't print environment
7862 specifix hex value as part of results.
7863 * gdb.base/shreloc.exp (get_msym_addrs): Ditto.
7867 * gdb.base/whatis.c: Define variables using typedefs char_addr,
7868 ushort_addr, and slong_addr, so the typedefs are not optimized
7870 * gdb.base/whatis.exp: Add tests using type name for struct type,
7871 union type, enum type, and typedef.
7875 * gdb.arch/i386-prologue.exp: Add testcase for PR breakpoints/2080.
7879 * gdb.base/scope.exp (test_at_main): Remove logic to handle the
7880 case where it takes two "next" commands to skip past the init
7885 * gdb.base/scope.exp (test_at_main): Use gdb_test_multiple
7886 to handle cases where it takes two "next" commands to skip
7891 * gdb.ada/array_return.exp: Mark the last test as expected to fail
7896 * gdb.mi/mi-break.exp, gdb.mi/mi2-break.exp: Test for the fullname
7901 * gdb.cp/bool.cc, gdb.cp/bool.exp: New files.
7905 * gdb.arch/powerpc-prologue.c, gdb.arch/powerpc-prologue.exp: New
7910 * gdb.cp/maint.exp: Set complaints to a positive value.
7914 * gdb.base/multi-forks.c: Add copyright notice. Include <stdlib.h>.
7915 * gdb.base/multi-forks.exp: Use a loop. Allow "fork" as a stopped
7920 * gdb.base/checkpoint.c: Update copyright notice. Include
7925 * gdb.asm/asm-source.exp: Independently provide default values for
7926 asm-flags and debug-flags. Use 'string equal' to do the
7927 comparison, not the implicit expr's '==' operator. Remove
7928 now-unneeded assignments to asm-flags. In h8300 case, place
7929 "-gdwarf-2", not "-gdwarf2", in debug-flags, not asm-flags.
7933 * gdb.base/checkpoint.c: New file.
7934 * gdb.base/checkpoint.exp: New file.
7935 * gdb.base/multi-fork.c: New file.
7936 * gdb.base/multi-fork.exp: New file.
7937 * gdb.base/pi.txt: New file (data for checkpoint.c test).
7941 * gdb.base/ptype.c (foo): Add typedef.
7942 (intfoo): Add function.
7943 * gdb.base/ptype1.c: New file.
7944 * gdb.base/ptype.exp: Handle compilation and linking with two
7945 source files. Test that proper type for "foo" is found based
7946 on source context rather than first match found in symtabs.
7950 * gdb.asm/asm-source.exp (hppa-*-openbsd*): New.
7951 * gdb.asm/openbsd.inc: Indent commands.
7955 * gdb.base/freebpcmd.exp: Increase timeout.
7957 * gdb.gdb/selftest.exp (test_with_self): Update copyright check.
7961 * gdb.base/default.exp: Update check for "show version".
7965 * gdb.asm/asm-source.exp (hppa64-*-hpux*): New.
7966 * gdb.asm/pa64.inc: New file.
7970 * gdb.asm/common.inc: Indent commands.
7971 * gdb.asm/asmsrc1.s: Likewise.
7972 * gdb.asm/asmsrc2.s: Likewise.
7976 * gdb.arch/pa-nullify.exp: Handle hppa64-*-* targets.
7977 (get_addr_of_sym): Remove duplicate print.
7978 (gen_core): xfail hppa*-*-hpux*, update expected output.
7979 * gdb.arch/pa-nullify.s: Reformat to also work on HPUX.
7980 * gdb.arch/pa64-nullify.s: New file.
7984 * gdb.base/dump.exp: Mark hppa64-*-* as 64-bit target.
7988 * gdb.cp/printmethod.cc (main): Call virt and nonvirt, to force
7989 code generation for these functions.
7990 * gdb.cp/printmethod.exp: Expect "&A::nonvirt()" instead of an
7995 * gdb.base/help.exp (help b, help br, help bre, help brea)
7996 (help break): Update the expected message.
8000 * gdb.asm/m68hc11.inc: Setup the data section.
8001 * gdb.asm/asm-source.exp (m6811-*-*): Don't use the target board linker
8002 script for this test.
8003 (m6812-*-*): Likewise.
8007 * gdb.base/structs2.exp: Update xfail to only trigger for gcc-3.x.
8011 * gdb.base/break.exp: Fix a comment typo.
8017 * gdb.dwarf2/mac-fileno.exp, gdb.dwarf2/mac-fileno.S: New tests.
8021 * gdb.arch/gdb1558.c: Include stdio.h.
8025 * gdb.asm/asm-source.exp: Use -e instead of --entry.
8029 * gdb.base/bfp-test.exp: Properly anchor gdb_multiple_test usage.
8033 * gdb.arch/altivec-regs.exp: Adjust "info reg vrsave" and "info reg
8034 vscr" tests to better match output.
8038 * gdb.base/structs.exp (any): New function.
8039 (test_struct_returns): Don't make any assumptions at all about
8040 what value the function returns when GDB can't set the return
8045 * gdb.ada/arrayidx/p.adb: New file.
8046 * gdb.ada/arrayidx.exp: New testcase
8050 * gdb.ada/array_return/pck.ads: New file.
8051 * gdb.ada/array_return/pck.adb: New file.
8052 * gdb.ada/array_return/p.adb: New file.
8053 * gdb.ada/array_return.exp: New testcase.
8057 * gdb.base/arrayidx.c: New file.
8058 * gdb.base/arrayidx.exp: New testcase.
8062 * gdb.base/annota3.exp, gdb.cp/annota3.exp: The annotations
8063 frames-invalid and breakpoints-invalid are no longer generated
8064 with level 3 so don't expect them in the output.
8068 * gdb.mi/mi-disassemble.exp, gdb.mi/mi2-disassemble.exp: Remove .*
8069 from test. Escape the | in mi_gdb_test call.
8070 * gdb.mi/mi-basics.exp, gdb.mi/mi-cli.exp, gdb.mi/mi-disassemble.exp,
8071 gdb.mi/mi-pthreads.exp, gdb.mi/mi-stack.exp, gdb.mi/mi2-basics.exp,
8072 gdb.mi/mi2-cli.exp, gdb.mi/mi2-disassemble.exp,
8073 gdb.mi/mi2-pthreads.exp, gdb.mi/mi2-stack.exp: Add extra details to
8074 expected regex's in mi_gdb_test calls.
8075 * lib/mi-support.exp: Remove arbitrary .* from tests.
8076 (mi_gdb_test): Add string_regex variable. Add anchor to main -re.
8077 Fully anchor GDB/MI expected results in mi_gdb_test.
8078 * lib/gdb.exp (string_to_regexp): Escape the ] character.
8079 * gdb.base/sizeof.exp: Remove escape character. Correct test.
8083 * long_long.exp: Exclude eabi targets from arm FPA float format test.
8087 * bfp-test.c: New file.
8088 * bfp-test.exp: New testcase.
8092 * gdb.fortran/subarray.exp: New testcase to test the evaluation
8093 of subarray and substring variable.
8094 * gdb.fortran/subarray.f: New source file for the test of subarray
8095 and substring variable evaluation.
8096 * gdb.fortran/exprs.exp: Add four tests for substring evaluation
8101 * gdb.arch/altivec-regs.exp, gdb.arch/altivec-abi.exp: Update
8106 * gdb.arch/altivec-regs.exp (info powerpc altivec): Replace the 'info
8107 powerpc altivec' test with an almost identical 'info vector' test.
8111 * gdb.arch/altivec-regs.exp: Adjust "info reg vrsave" and "info reg
8112 vscr" tests to match output.
8116 * gdb.arch/altivec-regs.exp: Adjust "print $vx<i>" tests to match
8121 * lib/mi-support.exp (mi_gdb_test): Change -re to not be anchored.
8122 * gdb.mi/mi-syn-frame.exp: Call mi_gdb_test twice instead of once for
8123 commands that return an MI output command and an asyncronous MI output
8125 * gdb.mi/mi-console.exp: Ditto.
8129 * gdb.mi/mi-var-child.c: Include <string.h>.
8133 * killed.exp: Correct gdb_expect syntax.
8137 * lib/mi-support.exp (mi_gdb_load): Fix typo.
8141 * gdb.mi/mi-basics.exp: Tell mi_gdb_start to use a PTY for inferior.
8142 (test_setshow_inferior_tty): Add global mi_inferior_tty_name to scope.
8143 Change tests to inferior-tty-set/show.
8144 * gdb.mi/mi-console.exp: Tell mi_gdb_start to use a PTY for inferior.
8145 (47-exec-next): Use mi_gdb_test to get GDB and Inferior output.
8146 * gdb.mi/mi-syn-frame.exp: Tell mi_gdb_start to use a PTY for
8147 inferior. Use mi_gdb_test to get GDB and Inferior output.
8148 * lib/mi-support.exp (mi_inferior_spawn_id): Add inferior PTY
8150 (mi_inferior_tty_name): Add inferior PTY file name.
8151 (mi_gdb_start): Add INFERIOR_PTY parameter.
8152 (mi_gdb_test): Add IPATTERN parameter.
8156 * gdb.mi/mi-syn-frame.exp, gdb.mi/mi2-syn-frame.exp: Add MESSAGE
8157 parameter to mi_gdb_test.
8158 * lib/mi-support.exp (mi_gdb_test): Make MESSAGE parameter necessary.
8162 * gdb.mi/mi-var-child.c (do_children_tests): Initialize
8163 struct_declarations.
8164 * gdb.mi/mi-var-child.exp: Step over the initialization of
8165 struct_declarations.
8169 * gdb.mi/basics.c, gdb.mi/var-cmd.c: Revert last change.
8170 * gdb.mi/mi-stack.c: New file, based on gdb.mi/basics.c.
8171 * gdb.mi/mi-var-child.c: New file, based on gdb.mi/var-cmd.c.
8172 * gdb.mi/mi-stack.exp: Update to use mi-stack.c as a source file.
8173 * gdb.mi/mi-var-child.exp: Update to use mi-var-child.c as a source
8178 * gdb.mi/var-cmd.c: Give long_array in _struct_decl 12 elements.
8179 (do_children_tests): Assign values to the extra elements.
8181 * gdb.mi/mi-var-child.exp: Adapt tests for extra elements and use
8182 them for tests for "-var-update --no-values" and
8183 "-var-update --all-values".
8184 Add test for "-var-list-children --simple-values".
8186 * gdb.mi/basics.c (callee4): Add integer array D[3]...
8188 * gdb.mi/mi-stack.exp (test_stack_locals_listing): ...to test
8189 "-stack-list-locals --simple-values" Improve doc strings and
8194 * gdb.base/sigaltstack.exp (finish_test): KFAIL gdb/1736 on
8196 * gdb.base/sigstep.exp (advancei): KFAIL gdb/1736 on *-*-openbsd*.
8198 * gdb.base/sigaltstack.c (main): Use stack_t instead of `struct
8203 * gdb.base/default.exp (tty): Changed output of command.
8204 * gdb.base/help.exp (help tty): Ditto.
8208 * gdb.arch/i386-sse.exp: Compile with -msse when using GCC.
8212 * gdb.mi/mi2-stack.exp (test_stack_locals_listing): Remove test for
8213 -stack-select-frame without arguments.
8214 (test_stack_frame_listing): Add test for newly implemented command
8219 * gdb.mi/mi-basics.exp (test_setshow_inferior_tty): Test MI tty
8221 (Copyright): Update copyright.
8225 * gdb.fortran/exprs.exp (test_arithmetic_expressions): Add five
8226 tests to evaluate exponentiation expression.
8230 * gdb.base/sigrepeat.c: Include <stdlib.h> and add return type for
8231 main to avoid warnings.
8233 * gdb.base/sigrepeat.exp: Fix reference to undefined variable.
8237 * gdb.mi/mi-stack.exp (test_stack_locals_listing): Remove test for
8238 -stack-select-frame without arguments.
8239 (test_stack_frame_listing): Add test for newly implemented command
8244 * gdb.fortran/array-element.f: New file.
8245 * gdb.fortran/array-element.exp: New testcase.
8249 * gdb.base/bigcore.exp: Correct checks for systems which can
8250 not dump a large core file.
8254 * gdb.base/relocate.c: Add a copyright notice.
8256 * gdb.base/relocate.exp: Test printing the values of variables
8257 from a relocatable file.
8261 * gdb.mi/mi-syn-frame.exp, gdb.mi/mi2-syn-frame.exp: Don't expect
8262 excess MI output after an error.
8266 * gdb.arch/alpha-step.c: New file.
8267 * gdb.arch/alpha-step.exp: New testcase.
8272 * gdb.mi/mi-cli.exp, gdb.mi/mi-return.exp, gdb.mi/mi-stack.exp,
8273 gdb.mi/mi-stepi.exp, gdb.mi/mi-syn-frame.exp, gdb.mi/mi-until.exp,
8274 gdb.mi/mi-var-display.exp, gdb.mi/mi-watch.exp, gdb.mi/mi2-cli.exp,
8275 gdb.mi/mi2-return.exp, gdb.mi/mi2-stack.exp,
8276 gdb.mi/mi2-syn-frame.exp, gdb.mi/mi2-until.exp,
8277 gdb.mi/mi2-var-display.exp: Expect fullname field in stack frames.
8278 * lib/mi-support.exp (mi_runto, mi_execute_to_helper): Likewise.
8283 * gdb.base/shreloc.exp: Use gdb_compile_shlib. Add support for
8285 * gdb.base/shreloc1.c (fn_1): Reference variable static_var_1.
8286 * gdb.base/shreloc2.c (fn_2): Reference variable static_var_2.
8290 * gdb.base/call-ar-st.exp: Call 'untested' and return -1 instead of
8291 calling gdb_suppress_entire_file.
8292 * gdb.base/charset.exp: Same.
8293 * gdb.base/call-rt-st.exp: Same.
8297 * lib/gdb.exp (fullname_syntax): Added global regex.
8298 (fullname_syntax_POSIX): Ditto.
8299 (fullname_syntax_UNC): Ditto.
8300 (fullname_syntax_DOS_CASE): Ditto.
8301 (fullname_syntax_DOS): Ditto.
8302 * gdb.mi/mi-file.exp (test_file_list_exec_source_file): Added
8303 fullname_syntax variable to scope and use it.
8304 (test_file_list_exec_source_files): Ditto.
8305 * gdb.mi/mi2-file.exp (test_file_list_exec_source_file): Ditto.
8309 * gdb.threads/linux-dp.exp: Check for *-*-linux-gnu*.
8313 * lib/gdb.exp (skip_altivec_tests): New function, based on
8314 check_vmx_hw_available from the GCC testsuite.
8315 * lib/gdb.arch/altivec-abi.exp: Use skip_altivec_tests.
8316 * lib/gdb.arch/altivec-regs.exp: Likewise.
8320 * gdb.base/auxv.exp: Call 'untested' and return -1 instead of
8321 calling gdb_suppress_entire_file.
8325 * gdb.threads/staticthreads.exp: Override signal to check for hppa.
8326 Slightly relax "sem_post" name checking.
8330 * gdb.base/unload.exp: Use new shared library infrastructure.
8334 * gdb.base/so-impl-ld.exp: Use new shared library
8339 * gdb.asm/asm-source.exp: Add h8300 to supported targets.
8340 * gdb.asm/h8300.inc: New file.
8344 * gdb.base/shlib-call.exp: Change to use new shared library
8349 * gdb.base/pending.exp: Change to use new shared library
8354 * gdb.base/nodebug.exp: Allow for compiling by IBM's xlc compiler,
8355 use test_compiler_info instead of gcc_compiled, and update copyright.
8359 * gdb.base/annota1.exp : Deal with messages caused by breakpoints in
8360 shared objects being adjusted and update copyright years.
8364 * ChangeLog: Correct some 2003-01-13 dates.
8365 * gdb.base/sigbpt.exp, gdb.base/signull.exp, gdb.cp/bs15503.exp,
8366 gdb.cp/exception.exp, gdb.cp/userdef.cc, gdb.cp/userdef.exp,
8367 gdb.mi/mi-console.exp, gdb.mi/mi2-console.exp,
8368 gdb.trace/collection.exp, gdb.trace/passc-dyn.exp,
8369 gdb.trace/tfind.exp: Update copyright years.
8374 * lib/gdb.exp (gdb_compile): Handle shlib=.
8375 (gdb_compile_shlib): New function.
8379 * lib/gdb.exp (test_compiler_info): Give argument a default value.
8383 * Makefile.in (ALL_SUBDIRS): Replace gdb.gdbserver with
8385 * configure.ac: Likewise.
8386 * configure: Regenerated.
8387 * gdb.gdbserver/Makefile.in: Moved to...
8388 * gdb.server/Makefile.in: ... here.
8389 * gdb.gdbserver/server.c: Moved to...
8390 * gdb.server/server.c: ... here.
8391 * gdb.gdbserver/server-run.exp: Moved to...
8392 * gdb.server/server-run.exp: ... here.
8396 * Makefile.in (ALL_SUBDIRS): Add gdb.gdbserver.
8397 * configure.ac: Create gdb.gdbserver/Makefile.
8398 * configure: Regenerated.
8399 * lib/gdbserver-support.exp: New file, derived from
8400 config/gdbserver.exp.
8401 * config/gdbserver.exp: Use gdbserver-support.exp.
8402 * gdb.gdbserver/Makefile.in: New file.
8403 * gdb.gdbserver/server.c: New file.
8404 * gdb.gdbserver/server-run.exp: New file.
8408 * lib/gdb.exp (test_compiler_info): Return compiler_info
8409 if no arguments are given.
8413 * gdb.arch/altivec-abi.exp: Check for compiler and set
8414 use altivec' flag accordingly.
8415 * gdb.arch/altivec-regs.exp: Likewise.
8419 * gdb.base/ptr-typedef.exp, gdb.base/ptr-typedef.c: New files.
8423 * gdb.base/bigcore.c (main): Add missing mode argument in open
8428 * lib/mi-support.exp (mi_gdb_load): Use /tmp for gdbserver
8430 * config/gdbserver.exp (gdb_load): Likewise.
8434 * lib/mi-support.exp: Use mi_gdb_target_cmd to connect to remote
8439 * gdb.dwarf2/dup-psym.S: New file.
8440 * gdb.dwarf2/dup-psym.exp: New testcase.
8444 * gdb.ada/exec_changed/first.adb: New file.
8445 * gdb.ada/exec_changed/second.adb: New file.
8446 * gdb.ada/exec_changed.exp: New testcase.
8450 * gdb.cp/userdef.cc (A1::operator+): New unary plus.
8452 (main): Test operator+.
8453 * gdb.cp/userdef.exp: Test unary plus. Use A2::operator+ for
8456 * gdb.base/sigbpt.exp: Disable if gdb,nosignals.
8457 * gdb.base/signull.exp: Disable if gdb,nosignals.
8458 * gdb.cp/bs15503.exp: Disable if skip_cplus_tests
8459 * gdb.cp/exception.exp: Disable if skip_cplus_tests.
8460 * gdb.mi/mi-console.exp: Disable hello test if gdb,noinferiorio.
8461 * gdb.mi/mi2-console.exp: Likewise.
8462 * gdb.trace/collection.exp (run_trace_experiment): Consume the
8463 continue output at start.
8464 (gdb_collect_locals_test): Robustify regexp.
8465 * gdb.trace/passc-dyn.exp: Fix comment typo.
8466 * gdb.trace/tfind.exp: Don't enable optimization. Remove stray ']'.
8470 * gdb.asm/asm-source.exp: Add iq2000 case.
8471 * gdb.asm/iq2000.inc: New file.
8475 * gdb.base/command.exp: Change hardcoded value to regular expression.
8476 * gdb.base/float.exp: Add powerpc to the list of targets checked.
8480 * gdb.asm/alpha.inc, gdb.asm/frv.inc, gdb.asm/i386.inc,
8481 gdb.asm/ia64.inc, gdb.asm/m68hc11.inc, gdb.asm/m68k.inc,
8482 gdb.asm/mips.inc, gdb.asm/pa.inc, gdb.asm/powerpc.inc,
8483 gdb.asm/s390.inc, gdb.asm/s390x.inc, gdb.asm/sh.inc,
8484 gdb.asm/x86_64.inc: Use .purgem before redefining macros.
8488 * gdb.cp/ovldbreak.exp: Adjust regular expression for recent
8493 * lib/compiler.c: Add test for IBM's xlc compiler.
8494 * lib/compiler.cc: Likewise.
8498 * gdb.ada/fixed_points.exp: Create compilation object directory
8499 before running the test.
8500 * gdb.ada/null_record.exp: Likewise.
8501 * gdb.ada/packed_array.exp: Likewise.
8502 * gdb.ada/start.exp: Likewise.
8506 * gdb.ada/packed_array/pa.adb: New file.
8507 * gdb.ada/packed_array.exp: New testcase.
8511 * gdb.dwarf2/dw2-intermix.exp, gdb.dwarf2/dw2-intermix.S: New
8514 * gdb.dwarf2/dw2-basic.exp, gdb.dwarf2/dw2-intercu.exp: Run tests
8515 on *-*-openbsd*. Correctly match whitespace in regukar
8522 * gdb.base/gdb1821.c: New test file.
8523 * gdb.base/gdb1821.exp: New test file.
8527 * gdb.base/start.c: New file.
8528 * gdb.base/start.exp: New testcase.
8532 * gdb.ada/start/dummy.adb: New file.
8533 * gdb.ada/start.exp: New testcase.
8537 * maint.exp: Raise timeout to give Cygwin targeted GDBs more time
8538 for printing symbols and statistics.
8539 Add test for using relative pathnames in "maint print msymbols" test.
8540 Mark "maint info sections DATA" XFAIL on Cygwin.
8541 Remove Cygwin XFAIL mark on "help maint dump-me" and "maint dump-me"
8547 * gdb.base/remotetimeout.exp: New file.
8551 * gdb.base/interp.exp: Remove trailing \n in gdb_test commands.
8555 * gdb.ada/gnat_ada.gpr: New file.
8556 * gdb.ada/gnat_ada.gin: Delete, no longer used.
8557 * lib/ada.exp (gdb_compile_ada): Minor adaptation to new project file.
8558 * configure.ac: No longer generate gnat_ada.gpr.
8559 * configure: Regenerate.
8560 * gdb.ada/Makefile.in: Minor adaptations due to new project file.
8561 * gdb.ada/null_record/null_record.adb: Moved here from gdb.ada.
8562 * gdb.ada/null_record/bar.ads: Likewise.
8563 * gdb.ada/null_record/bar.adb: Likewise.
8564 * gdb.ada/fixed_points/fixed_points.adb: Likewise.
8565 * gdb.ada/null_record.exp (testdir): New variable.
8566 (testfile): executable is now in testdir subdirectory.
8567 (srcfile): Use full path to the main compilation unit.
8568 * gdb.ada/fixed_points.exp: Same changes as above.
8572 * gdb.base/interp.exp: New test.
8576 * gdb.base/sigrepeat.exp, gdb.base/sigrepeat.c: New test.
8580 * gdb.stabs/Makefile.in (Makefile): Update dependencies -
8581 configure.ac not configure.in.
8583 * gdb.base/scope.exp (test_at_main): Delete any XFAIL and/or KFAIL
8585 * gdb.hp/gdb.base-hp/callfwmall.exp (do_function_calls): Ditto.
8586 * gdb.base/list.exp (test_list_function)
8587 (test_list_filename_and_function): Ditto.
8588 * gdb.base/callfuncs.exp (do_function_calls): Ditto.
8592 * gdb.base/source.exp: Delete KFAIL gdb/1846, simplify.
8594 * gdb.base/source-error.gdb, gdb.base/source.exp: New files.
8598 * gdb.mi/mi-var-cmd.exp: Adjust "create int" test to match output.
8599 * gdb.mi/mi2-var-cmd.exp: Ditto.
8603 * gdb.base/fileio.c: Include unistd.h as required for lseek(2).
8607 * configure.ac: Rename configure.in, require autoconf 2.59.
8608 * configure: Re-generate.
8609 * gdb.stabs/configure.ac: Rename configure.in, require autoconf 2.59.
8610 * gdb.stabs/configure: Re-generate.
8611 * gdb.hp/configure.ac: Rename configure.in, require autoconf 2.59.
8612 * gdb.hp/configure: Re-generate.
8613 * gdb.hp/gdb.objdbg/configure.ac: Rename configure.in, require
8615 * gdb.hp/gdb.objdbg/configure: Re-generate.
8616 * gdb.hp/gdb.defects/configure.ac: Rename configure.in, require
8618 * gdb.hp/gdb.defects/configure: Re-generate.
8619 * gdb.hp/gdb.compat/configure.ac: Rename configure.in, require
8621 * gdb.hp/gdb.compat/configure: Re-generate.
8622 * gdb.hp/gdb.base-hp/configure.ac: Rename configure.in, require
8624 * gdb.hp/gdb.base-hp/configure: Re-generate.
8625 * gdb.hp/gdb.aCC/configure.ac: Rename configure.in, require
8627 * gdb.hp/gdb.aCC/configure: Re-generate.
8631 * gdb.threads/linux-dp.exp: Fix output regexp to handle output
8632 under NPTL when there is debugging info available for libpthread.
8636 * gdb.ada/fixed_points.c: New file.
8637 * gdb.ada/fixed_points.exp: New file.
8641 * gdb.arch/pa-nullify.exp: New file.
8642 * gdb.arch/pa-nullify.s: New file.
8646 * gdb.threads/thread_check.exp: Use ${srcfile} for test program name
8647 instead of "tbug". Fix regexp to work properly with gdb_test.
8651 * gdb.base/bitfields2.exp: New test.
8652 * gdb.base/bitfields2.c: New file.
8656 * config/sim.exp (gdb_load): Return 0 on success, -1 on failure.
8660 * gdb.base/unload.exp: Pass relative path to gdb_get_line_number.
8664 * gdb.threads/threadapply.exp: Correct "macro details" test.
8668 * gdb.threads/threadapply.exp: New test.
8669 * gdb.threads/threadapply.c: New file.
8673 * gdb.base/savedregs.exp: Correct pattern used for sigtramp
8678 * gdb.base/cursal.exp: New file.
8679 * gdb.base/cursal.c: New file.
8683 * gdb.base/savedregs.exp, gdb.base/savedregs.c: New files.
8687 * gdb.asm/asm-source.exp: Add mips*-*-netbsd* to the list of
8692 * gdb.threads/bp_in_thread.c: New file, copied from
8693 pthread_cond_wait.c.
8694 * gdb.threads/bp_in_thread.c: Use bp_in_thread.c as the source
8695 file, rather than reusing the .c file from another testcase.
8699 * gdb.ada/null_record.exp: Check where we stopped after
8700 sending the start command, instead of where the associated
8701 temporary breakpoint was inserted.
8705 * gdb.mi/gdb701.c (main): Return 0.
8709 * gdb.dwarf2/dw2-intercu.S, gdb.dwarf2/dw2-intercu.exp: New files.
8713 * gdb.threads/schedlock.c: Add comment markers to use to find
8715 * gdb.threads/schedlock.exp: Adjust regex to handle the new
8717 * gdb.threads/watchthreads.exp: Use gdb_get_line_number to find
8722 * gdb.dwarf2/dw2-basic.exp: Run on Hurd also.
8726 * configure.in: Add gdb.dwarf2.
8727 * configure: Regenerated.
8728 * Makefile.in: Add gdb.dwarf2.
8729 * gdb.dwarf2/Makefile.in, gdb.dwarf2/dw2-basic.S,
8730 gdb.dwarf2/dw2-basic.exp, gdb.dwarf2/main.c,
8731 gdb.dwarf2/file1.txt: New files.
8735 * gdb.threads/bp_in_thread.exp: Use runto_main and "continue" instead
8736 of "run", since the latter doesn't work with remote targets. Adjust
8737 the breakpoint numbering accordingly.
8738 * gdb.threads/pthread_cond_wait.exp: Ditto.
8742 * gdb.base/overlays.exp: Update copyright years.
8746 * gdb.base/overlays.exp: Disable if target is Linux.
8750 * config/gdbserver.exp (gdb_load): Use right filename on remote.
8754 * gdb.asm/asm-source.exp: Add m32r-linux target.
8755 * gdb.asm/m32r-linux.inc: New file.
8760 * gdb.base/bigcore.exp (extract_heap): If the expect "file size"
8761 command fails, assume things will work.
8762 * gdb.base/bigcore.c: Include <sys/stat.h> and <fcntl.h>.
8763 (_GNU_SOURCE): Define.
8764 (print_unsigned, print_hex): Change parameter to "long long".
8765 (print_byte_count): New function, use to print byte counts.
8766 (large_off_t, large_lseek, O_LARGEFILE): Define dependant on
8768 (main): Compute an upper bound on a corefile in max_core_size.
8769 Limit memory chunk size to max_core_size. Limit total memory
8770 allocated to max_core_size.
8774 * gdb.base/bigcore.exp: Replace the code that creates a corefile
8775 from a separate process with code that creates a corefile by
8776 making the inferior dump core.
8780 * gdb.base/sigstep.exp: Avoid comments withing gdb_test_multiple
8785 * gdb.base/constvars.exp (local_compiler_xfail_check_2):
8786 New proc. Accept both gcc 3.x.x and gcc 4.x.x.
8787 * gdb.base/volatile.exp (local_compiler_xfail_check_2):
8792 * gdb.java/jprint.exp: New test case for java inferior call.
8793 * gdb.java/jprint.java: Ditto.
8797 * gdb.base/bigcore.exp: Deactivate on IRIX targets.
8801 * gdb.threads/killed.c: Include <stdlib.h>.
8802 * gdb.threads/pthreads.c: Likewise.
8806 * gdb.threads/killed.c: Add copyright notice.
8810 * gdb.base/define.exp: Two new tests to verify zero space chars
8811 after 'if' and 'while' commands in a user-defined command is correctly
8816 * gdb.base/signals.exp (signal_tests_1): Delete. Merge signal
8817 delivery test with duplicate at end of file.
8821 * gdb.base/unload.exp: Link with -dl on *-*-solaris*.
8825 * config/hppro.exp: Removed.
8829 * config/sparclet.exp: Removed.
8833 * config/udi.exp: Removed.
8837 * gdb.base/sigstep.exp (advance): Use "-continue_timer" option
8839 (advancei): Likewise.
8843 * gdb.base/unload.exp: Fix so messages aren't duplicated.
8847 * gdb.gdb/complaints.exp (setup_test): Use new gdb.exp functionality
8848 to check for nodebug in executable.
8849 * gdb.gdb/observer.exp (setup_test): Likewise.
8850 * gdb.gdb/selftest.exp (test_with_self): Likewise.
8851 * gdb.gdb/xfullpath.exp (setup_test): Likewise.
8855 * gdb.threads/staticthreads.c, gdb.threads/staticthreads.exp: New
8860 * gdb.base/unload.exp: Fix expected warning message to match
8865 * gdb.base/call-rt-st.exp: Fix typos.
8869 * gdb.threads/thread_check.exp: New testcase.
8870 * gdb.threads/thread_check.c: New testcase.
8874 * gdb.base/sigstep.exp (breakpoint_to_handler_entry)
8875 (skip_to_handler_entry): New procedures. Test stepping into a
8876 handler when the breakpoint is at the handler's entry point.
8880 * gdb.base/sigstep.exp (breakpoint_over_handler): Remove kfail
8886 * lib/gdb.exp (gdb_file_cmd): Return more information in the
8887 return value. Add an arm for "no debugging symbols found".
8888 Change a stray "error" to "perror".
8889 (gdb_run_cmd): Adapt to new return value.
8890 * gdb.base/remote.exp: Adapt to new return value.
8891 * gdb.gdb/complaints.exp: Likewise.
8892 * gdb.gdb/observer.exp: Likewise.
8893 * gdb.gdb/selftest.exp: Likewise.
8894 * gdb.gdb/xfullpath.exp: Likewise.
8898 * gdb.threads/bp_in_thread.exp: New testcase.
8902 Fix PR testsuite/1735.
8903 * gdb.threads/schedlock.c (thread_function): Add a cast
8904 to suppress a gcc warning.
8905 * gdb.threads/thread-specific.c (thread_function): Likewise.
8909 * gdb.base/unload.c: Include <stdlib.h>.
8914 * gdb.base/call-sc.exp (test_scalar_returns): Make sure PC is
8915 synchronized after the "return".
8919 * gdb.mi/basics.c: Include <stdio.h>.
8920 * gdb.mi/pthreads.c: Include <stdlib.h>.
8921 * gdb.mi/var-cmd.c: Include <stdlib.h>.
8925 * gdb.threads/schedlock.c: Add copyright notice.
8929 * gdb.base/sigstep.exp (breakpoint_to_handler, skip_to_handler)
8930 (skip_over_handler, breakpoint_over_hander): New test procedures.
8931 (advance, advancei): Add a proper prefix, do not use
8933 * gdb.base/sigstep.c (main): Change to use an infinite loop.
8937 * gdb.mi/basics.c: Add copyright notice.
8938 * gdb.mi/var-cmd.c: Add copyright notice.
8942 * lib/gdb.exp: Remove signed_keyword_not_used.
8943 * lib/compiler.c: Likewise.
8944 * lib/compiler.cc: Likewise.
8948 * gdb.base/whatis.c: Remove conditional disabling of "signed".
8949 * gdb.base/whatis.exp: Remove signed_keyword_not_used.
8953 * gdb.base/whatis.c: Add copyright notice.
8957 * gdb.arch/i386-prologue.exp (skip_breakpoint): New function. Use
8958 it to skip the breakpoints encoded in the inline assembly.
8962 * Makefile.in: Add gdb.fortran.
8966 * gdb.base/call-sc.exp (test_scalar_returns):
8967 Fix cut-and-paste glitch in "Make fun return now".
8971 * configure.in: Add gdb.fortran.
8972 * configure: Regenerate.
8973 * gdb.fortran/Makefile.in: New file.
8974 * lib/gdb.exp (skip_fortran_tests): New procedure.
8978 * gdb.mi/mi-var-block.exp: Use gdb_get_line_number. Remove
8980 * gdb.mi/mi-var-child.exp: Likewise.
8981 * gdb.mi/mi-var-cmd.exp: Likewise.
8982 * gdb.mi/mi-var-display.exp: Likewise.
8983 * gdb.mi/mi2-var-block.exp: Likewise.
8984 * gdb.mi/mi2-var-child.exp: Likewise.
8985 * gdb.mi/mi2-var-cmd.exp: Likewise.
8986 * gdb.mi/mi2-var-display.exp: Likewise.
8990 * gdb.base/unload.c (main): Make local variable msg const.
8994 * gdb.mi/mi-cli.exp: Use gdb_get_line_number. Remove reference
8996 * gdb.mi/mi-disassemble.exp: Likewise.
8997 * gdb.mi/mi-eval.exp: Likewise.
8998 * gdb.mi/mi-file.exp: Likewise. Also, add comment about the
8999 default line number.
9000 * gdb.mi/mi-return.exp: Likewise.
9001 * gdb.mi/mi-simplerun.exp: Likewise.
9002 * gdb.mi/mi-stack.exp: Likewise.
9003 * gdb.mi/mi-stepi.exp: Likewise. Also, replace wildcarded line
9004 number with explicit range test.
9005 * gdb.mi/mi-watch.exp: Likewise.
9006 * gdb.mi/mi2-break.exp: Likewise.
9007 * gdb.mi/mi2-cli.exp: Likewise.
9008 * gdb.mi/mi2-disassemble.exp: Likewise.
9009 * gdb.mi/mi2-eval.exp: Likewise.
9010 * gdb.mi/mi2-file.exp: Likewise. Also, add comment about the
9011 default line number.
9012 * gdb.mi/mi2-return.exp: Likewise.
9013 * gdb.mi/mi2-simplerun.exp: Likewise.
9014 * gdb.mi/mi2-stack.exp: Likewise.
9015 * gdb.mi/mi2-stepi.exp: Likewise. Also, replace wildcarded line
9016 number with explicit range test.
9017 * gdb.mi/mi2-watch.exp: Likewise.
9021 * gdb.cp/ctti.exp: Tweak srcfile and objfile to have no slashes.
9022 * gdb.cp/m-static.exp: Likewise.
9023 * gdb.cp/rtti.exp: Likewise.
9027 * gdb.base/bigcore.c: Include <sys/types.h> and <sys/time.h>.
9031 * ChangeLog: Prefix Local Variables with semi-colons and indent
9032 the reference to older ChangeLog files, to fix fontification in
9037 * gdb.mi/mi-break.exp: Use gdb_get_line_number.
9038 * gdb.mi/mi2-break.exp: Likewise.
9042 * gdb.gdb/selftest.exp: Revert removal of call to init_malloc.
9046 * gdb.cp/inherit.exp: Use cp_test_ptype_class.
9050 * gdb.cp/classes.exp: Remove unused declarations. Just let
9051 test names default instead of providing special names. Remove
9052 extraneous demangler test.
9056 * gdb.base/unload.exp: New test for breakpoints in dynamically
9058 * gdb.base/unload.c: Ditto.
9059 * gdb.base/unloadshr.c: Ditto.
9063 * gdb.cp/classes.exp (test_ptype_class_objects): Call
9064 cp_test_ptype_class.
9065 (test_enums): Likewise.
9069 * gdb.threads/staticthreads.c, gdb.threads/staticthreads.exp: New
9074 * gdb.gdb/selftest.exp (do_steps_and_nexts): Remove code to skip
9079 * ChangeLog: Add copyright notice. The notice is copied
9080 from emacs 21.3 top level ChangeLog.
9084 * lib/cp-support.exp: New file.
9085 * lib/cp-support.exp (cp_test_type_class): New function.
9086 * gdb.cp/derivation.exp: Use cp_test_ptype_class.
9087 * gdb.cp/virtfunc.exp (test_one_ptype): Removed.
9088 * gdb.cp/virtfunc.exp (test_ptype_of_classes): Use
9089 cp_test_ptype_class.
9093 * gdb.mi/mi2-basics.exp, gdb.mi/mi2-break.exp,
9094 gdb.mi/mi2-console.exp, gdb.mi/mi2-disassemble.exp,
9095 gdb.mi/mi2-eval.exp, gdb.mi/mi2-file.exp, gdb.mi/mi2-hack-cli.exp,
9096 gdb.mi/mi2-read-memory.exp, gdb.mi/mi2-regs.exp,
9097 gdb.mi/mi2-return.exp, gdb.mi/mi2-simplerun.exp,
9098 gdb.mi/mi2-stack.exp, gdb.mi/mi2-stepi.exp, gdb.mi/mi2-until.exp,
9099 gdb.mi/mi2-var-block.exp, gdb.mi/mi2-var-child.exp,
9100 gdb.mi/mi2-var-cmd.exp, gdb.mi/mi2-var-display.exp,
9101 gdb.mi/mi2-watch.exp: Update copyright years.
9105 * gdb.base/sigaltstack.exp: Provide proper anchoring.
9109 * gdb.mi/gdb792.exp, gdb.mi/mi-basics.exp, gdb.mi/mi-break.exp,
9110 gdb.mi/mi-console.exp, gdb.mi/mi-disassemble.exp,
9111 gdb.mi/mi-eval.exp, gdb.mi/mi-file.exp, gdb.mi/mi-hack-cli.exp,
9112 gdb.mi/mi-read-memory.exp, gdb.mi/mi-regs.exp,
9113 gdb.mi/mi-return.exp, gdb.mi/mi-simplerun.exp,
9114 gdb.mi/mi-stack.exp, gdb.mi/mi-stepi.exp, gdb.mi/mi-until.exp,
9115 gdb.mi/mi-var-block.exp, gdb.mi/mi-var-child.exp,
9116 gdb.mi/mi-var-cmd.exp, gdb.mi/mi-var-display.exp,
9117 gdb.mi/mi-watch.exp: Update copyright years.
9122 * gdb.base/signals.exp (signal_tests_1): KFAIL bug in continuing
9123 from a breakpoint with a pending signal.
9128 * lib/gdb.exp (gdb_test_multiple): Handle return -code return.
9129 * gdb.base/sigaltstack.exp (finish_test): Consume output until
9131 * gdb.base/sigstep.exp: Add KFAIL for gdb/1736.
9135 * gdb.cp/templates.exp: Handle (char)115 for template argument 's'.
9140 * gdb.base/sigaltstack.exp (finish_test): New procedure. KFAIL
9145 * gdb.arch/i386-prologue.exp: Compile without debug information.
9149 * lib/gdb.exp (gdb_get_line_number): Rewrite with native tcl
9150 rather than asking gdb to search.
9154 * gdb.base/gcore.c: Include <string.h>.
9158 * gdb.base/gcore.c: Add copyright notice.
9162 * gdb.base/freebpcmd.c: Include <stdio.h>.
9163 * gdb.base/long_long.c: Include <string.h>.
9164 * gdb.base/sigaltstack.c: Include <stdlib.h> <string.h>.
9165 * gdb.base/siginfo.c: Include <string.h>.
9166 * gdb.base/sigstep.c: Include <string.h>.
9170 * gdb.base/complex.c: Include <stdlib.h>.
9174 * gdb.base/complex.c: Add copyright notice.
9178 * gdb.base/charset.c: Include <stdlib.h>.
9182 * gdb.base/auxv.c: Include <stdlib.h>.
9186 * gdb.base/auxv.c: Add copyright notice.
9190 * gdb.base/coremaker.c: Add copyright notice.
9191 * gdb.base/coremaker2.c: Add copyright notice.
9195 * gdb.base/store.exp: Update copyright.
9196 (check_set, up_set, check_struct, up_struct): Add a prefix to test
9197 names, do not import gdb_prompt.
9201 Fix PR testsuite/1729.
9202 * gdb.base/dump.exp: Add test name to callers of capture_value, do
9203 not use capture_value with value 4.
9204 (capture_value): Add optional test name parameter.
9205 (test_reload_saved_value, test_restore_saved_value): Use $msg as
9206 the prefix, pass to capture_value.
9210 * gdb.arch/i386-prologue.exp: Add testcase for standard prolgue.
9211 * gdb.arch/i386-prologue.c (standard): New prototype and function.
9212 (main): Call new function.
9216 * gdb.cp/namespace.exp: Accept more varieties of ptype output.
9220 * gdb.cp/virtfunc.exp: Accept more varieties of ptype output.
9224 * gdb.cp/inherit.exp: Accept more varieties of ptype output.
9225 Accept more values of vtbl pointer. Remove some messages
9226 about "obsolete gcc or gdb".
9230 * gdb.cp/classes.exp: Accept more varieties of ptype output.
9234 * gdb.base/asm-source.exp: Properly convert target board
9235 debug flags from gcc format to binutils format.
9239 * gdb.arch/i386-prologue.exp: Remove KFAIL of "backtrace in
9240 gdb1718". PR backtrace/1718 partially fixed.
9244 * gdb.threads/watchthreads.exp: New test for threaded watchpoints.
9248 * gdb.asm/asm-source.exp (debug-flags): New variable. If a known
9249 good default value for a specific architecture is available then
9250 set it to that value. Otherwise default to the -gstabs switch.
9251 Remove the -g... switches from the asm-flags variable. Allow the
9252 target board info to override the value if it wants to. Pass the
9253 switch on the assembler command line.
9257 * gdb.arch/i386-prologue.exp: Add testcase for PR backtrace/1718.
9258 * gdb.arch/i386-prologue.c (gdb1718): New prototype and function.
9259 (main): Call new function.
9263 Test for PR exp/1715.
9264 * gdb.base/radix.exp: Refactor common procedures. Make all
9265 test names unique. Change XFAIL to KFAIL.
9269 * gdb.ada/gnat_ada.gpr.in: Rename from here ...
9270 * gdb.ada/gnat_ada.gin: ... to here.
9271 * configure.in: Use gnat_ada.gin.
9272 * configure: Regenerate.
9276 * gdb.base/signals.exp: Replace send_gdb and gdb_expect with
9277 gdb_test and gdb_test_multiple. Delete bash_bug. Delete suspect
9278 XFAILs. Clean up test messages and comments. Check backtraces.
9279 Delete re-sync code.
9284 * gdb.base/annota1.exp: Honor gdb,nosignals.
9285 * gdb.base/annota3.exp: Likewise.
9289 * lib/java.exp: Update copyright notice.
9293 * gdb.base/selftest.exp: Copy file from here ...
9294 * gdb.gdb/selftest.exp: ... to here.
9298 * lib/insight-support.exp: Delete file.
9299 * lib/java.exp (java_init): Fix copyright.
9303 * gdb.base/restore.c: Append "prologue" to comments marking the a
9304 function's prologue.
9305 * gdb.base/restore.exp: Update copyright, re-indent.
9306 (restore_tests): Use gdb_test_multiple. Add "calleeN calls
9307 callerN" prefix where needed. Update patterns that match a
9308 function's prologue.
9312 * gdb.base/restore.c: Add copyright notice.
9316 * gdb.base/logical.exp: Update copyright.
9317 (evaluate): New procedure. Use to re-implement tests using
9322 * lib/insight-support.exp (gdbtk_start): Unset TCL_LIBRARY
9323 which fixes some problems where init.tcl was not found.
9327 * gdb.base/sizeof.exp: Skip test when no inferior I/O.
9328 (check_sizeof, check_valueof): Do not include the output in the
9329 test name. Use gdb_test.
9330 (get_valueof): Use gdb_test_multiple.
9332 * gdb.base/step-test.exp: Update copyright. Use
9333 gdb_test_multiple. Ensure that test names do not include
9334 architecture dependent output.
9336 * gdb.gdb/observer.exp: Update copyright.
9337 (setup_test): Use gdb_test_multiple.
9338 (attach_first_observer, attach_second_observer)
9339 (attach_third_observer, detach_first_observer)
9340 (detach_second_observer, detach_third_observer)
9341 (reset_counters, check_counters): Make $message a prefix.
9342 (test_normal_stop_notifications): Add "args" parameter - a list of
9343 init functions to be called. Make $message a prefix,
9344 (test_observer_normal_stop): Change the message prefixes so that
9345 they are unique, pass the attach / detach procedures to
9346 test_normal_stop_notifications.
9348 * gdb.base/signull.exp (test_segv): Prefix all tests with
9349 "${name}". Clean up test messages.
9351 * gdb.base/annota3.exp, gdb.base/annota1.exp: Update copyright.
9353 * gdb.base/ena-dis-br.exp: Update copyright.
9354 (break_at): New function. Replace send_gdb with gdb_test,
9355 break_at, and gdb_test_multiple. Replace XFAIL of "continue with
9356 ignore count, not stopped at bpt", with KFAIL.
9360 * gdb.base/attach.exp: Remove cleanupfile handling.
9364 * gdb.base/annota1.exp: Cleanup corefile test name.
9365 * gdb.base/annota3.exp: Ditto.
9369 * gdb.base/signals.exp: Clean up copyright, re-indent.
9371 * gdb.base/attach.exp: Replace send_gdb and gdb_expect with
9372 gdb_test and gdb_test_multiple.
9376 * gdb.java/jmain.exp: Fix expected line number for main to
9377 break at. Set XFAIL for break at main test since gcj does not
9378 provide line number info for first statement in main.
9382 * gdb.base/attach.exp: Cleanup copyright. Re-indent.
9384 * gdb.base/sigbpt.exp: Make the common part of each test name a
9385 prefix instead of suffix.
9389 * gdb.mi/mi2-file.exp: Revert to version 1.1, except changed name of
9390 test from test_tbreak_creation_and_listing to
9391 test_file_list_exec_source_file
9392 * gdb.mi/mi-file.exp: Add test for -file-list-exec-source-files
9393 Changed name of test from test_tbreak_creation_and_listing to
9394 test_file_list_exec_source_file
9398 * gdb.java/jmisc.exp: Fix expected output of ptype to look for
9399 the jmisc() constructor instead of <init>.
9400 * gdb.java/jmisc1.exp: Ditto.
9404 * gdb.base/sigbpt.exp (stepi_out): Check for a single step
9409 * gdb.cp/templates.exp: Accept whitespace change in demangler
9414 * gdb.base/sigbpt.exp, gdb.base/sigbpt.c: New test.
9418 * lib/compiler.c: Accept __HP_CXD_SPP for old hp ansi c compiler.
9419 * lib/compiler.cc: Likewise.
9423 * lib/compiler.cc: Work around string preprocessing problem
9424 with old hp c++ compiler.
9425 * lib/compiler.c: Likewise.
9429 * gdb.arch/i386-prologue.c: Add copyright header. Use preprocessor
9430 directives to conditionalize symbol prefixing.
9431 * gdb.arch/i386-prologue.exp: Allow symbol prefixing by adding
9432 additional_flags handling. Add underscore prefix for Cygwin.
9433 * gdb.arch/i386-unwind.c: Use preprocessor directives to
9434 conditionalize symbol prefixing.
9435 * gdb.arch/i386-unwind.exp: Allow symbol prefixing by adding
9436 additional_flags handling. Add underscore prefix for Cygwin.
9440 * gdb.base/bigcore.exp: Skip test on Cygwin.
9444 * gdb.hp/gdb.base-hp/reg.exp: Accept both old and new gdb output
9445 formats for "info register". Use gdb_test_multiple. Fix
9446 the "invalid register" test.
9450 * gdb.base/attach.exp: Fix copyright date. Set testpid to Windows
9451 PID for Cygwin. Add Cygwin specific strings to check for in some
9453 (do_attach_tests): Add a test for user interaction when attaching
9454 to a process with no matching symbol table already loaded.
9458 Test PR java/1567 and PR java/1565.
9459 * gdb.java/jmain.exp, gdb.java/jmain.java: New files.
9460 * gdb.java/jmisc2.exp: Delete file.
9464 * gdb.hp/gdb.base-hp/reg.exp: Update copyright notice.
9468 * gdb.base/attach.exp (do_attach_tests): Don't forget to kill second
9473 * gdb.cp/pr-1553.exp: Remove.
9477 * gdb.cp/pr-1553.cc: Remove.
9478 * gdb.cp/pr-1553.exp: Disable this test.
9482 Fix PR testsuite/1680.
9483 * gdb.arch/i386-sse.exp: Properly quote curly braces in
9484 regular expressions.
9488 Fix PR testsuite/1679.
9489 * gdb.arch/i386-sse.exp: Do not call gdb_suppress_entire_file.
9490 Issue an UNSUPPORTED result instead.
9494 * gdb.base/charset.exp: Only send a control-C if we see a new
9495 prompt and incomplete command.
9499 * gdb.cp/pr-574.cc: Add copyright notice.
9503 * gdb.base/charset.exp: Don't refer to $expect_out(1,string) in
9504 cases where the regexp has no groups; this grabs random text from
9505 the previous test suite, whatever that was.
9509 * gdb.cp/printmethod.cc: Add copyright notice.
9513 * gdb.cp/psmang1.cc, gdb.cp/psmang2.cc: Add copyright notice.
9517 * gdb.base/signull.c: Update copyright. Include <string.h>.
9518 (bowler): Replace data_pointer with data_read
9519 and data_write cases. Add code_descriptor case.
9520 (zero, desc): New array and pointer.
9521 (data, code): Change to simple pointers.
9522 * gdb.base/signull.exp: Fix probe pattern matching a function
9523 descriptor SIGSEGV. Replace data_pointer with data_read and
9528 * gdb.base/long_long.exp, gdb.base/long_long.c: Rewrite.
9532 * gdb.base/long_long.c: Add copyright notice.
9536 * gdb.base/long_long.exp: Remove reference to
9538 to gdb_breakpoint and gdb_continue_to_breakpoint.
9542 * gdb.arch/e500-regs.exp: Fix up 'print' pattern for the little-
9547 * gdb.base/gcore.exp (capture_command_output): Delete the always
9548 passing tests containing inferior values.
9549 * gdb.base/ending-run.exp: Do not include the breakpoint address
9550 in the test message. Update copyright.
9551 * gdb.base/sizeof.exp (check_sizeof): Do not include the type's
9552 size in the test name, use gdb_test_multiple. Update copyright.
9556 * gdb.cp/ref-types.cc: Add copyright notice.
9560 * lib/compiler.c: Remove gcc_compiled, hp_cc_compiler,
9562 * lib/compiler.cc: Likewise.
9563 * lib/gdb.exp (get_compiler_info): Eval lines only if they are
9564 'set' commands. Log diagnostics for other lines. Set
9565 gcc_compiled, hp_cc_compiler, and hp_aCC_compiler.
9569 * gdb.cp/try_catch.cc: Add copyright notice.
9573 * gdb.cp/userdef.cc: Add copyright notice.
9577 * gdb.cp/virtfunc.cc: Add copyright notice.
9581 * gdb.base/structs2.exp: Mark two tests as xfail because of a compiler
9586 * lib/compiler.cc, lib/compiler.c: Append either
9587 __GNUC_PATCHLEVEL__, or "unknown" to the compiler_info.
9588 * gdb.base/structs.exp (test_struct_calls): Check for gcc-3-3-*
9593 * gdb.base/structs.exp (test_struct_calls): Fix KFAIL for
9594 gdb/1455, bug is specific to "long long" and "double".
9596 * gdb.base/structs.exp (test_struct_returns, test_struct_returns)
9597 (test_struct_calls): Remove KFAIL of "long double" on i*86-*-*,
9598 x86_64-*-*, sparc64-*-*, and sparc*-*-solaris2*. PR tdep/1447
9603 * gdb.base/structs.exp (test_struct_returns): Replace
9604 "return_value_unknown" and "finish_value_unknown" by
9605 "return_value_known" and "finish_value_known". Instead of
9606 "return_value_unknown" iff "finish_value_unknown", check
9607 "return_value_known" implies "finish_value_known".
9611 * gdb.base/float.exp: Add pattern for mips targets.
9615 * gdb.base/float.exp: Add pattern for hppa*-* target; make the failure
9616 message for unknown architectures more clear.
9620 * gdb.ada/null_record.exp: Use "start" instead of "begin" to
9621 start the execution of the program.
9625 * gdb.arch/i386-sse.exp, gdb.arch/i386-sse.c: New tests.
9626 * gdb.arch/i386-cpuid.h: New helper file.
9630 * gdb.base/shlib-call.exp: Allow breakpoint to be added after inferior
9636 * gdb.base/auxv.exp (fetch_auxv): Revert last change and fix it
9637 differently to be robust to output buffering differences.
9641 * gdb.threads/pthreads.exp: Update copyright years.
9642 (check_control_c): Change asynchronous 'after' to synchronous.
9646 * gdb.base/auxv.exp (fetch_auxv): Consume output fully through
9652 * gdb.threads/manythreads.exp: Change asynchronous 'after'
9653 calls to synchronous.
9657 * gdb.arch/e500-prologue.exp, gdb.arch/e500-prologue.c: New tests.
9661 * gdb.asm/asm-source.exp: Enable test for hppa-linux target.
9662 * gdb.asm/pa.inc: New file.
9666 * gdb.base/signull.c: Use sigjmp_buf instead of jmp_buf.
9671 * lib/gdb.exp (gdb_test_multiple): Improve regexp matching the
9676 * gdb.base/signull.c: Use sigsetjmp/siglongjmp instead of
9677 setjmp/longjmp. Use sigaction instead of signal.
9682 * gdb.threads/pthread_cond_wait.c: New file.
9683 * gdb.threads/pthread_cond_wait.exp: New testcase.
9687 * gdb.base/signull.exp, gdb.base/signull.c: New files.
9688 * gdb.base/gdb1476.c, gdb.base/gdb1476.exp: Delete files.
9692 * gdb.base/sigstep.exp (advancei): Update KFAILs. gdb/1613 is
9693 fixed but revealed gdb/1639.
9697 * gdb.base/signals.exp (signal_tests_1): Simplify "continue to
9698 func1" and "next to 2nd alarm", kernel bug avoided.
9703 * gdb.base/bigcore.exp: Check the size of the dumped core file.
9704 XFAIL if it is smaller than bytes_allocated.
9705 * gdb.base/bigcore.c (bytes_allocated): Make static and unsigned.
9706 (main): Make chunks_allocated unsigned. Correct comment.
9710 * gdb.arch/powerpc-aix-prologue.c: New file.
9711 * gdb.arch/powerpc-aix-prologue.exp: New file.
9715 * gdb.base/lineinc.exp, gdb.base/lineinc1.h, gdb.base/lineinc2.h,
9716 gdb.base/lineinc3.h, gdb.base/lineinc.c: New tests.
9720 * gdb.base/sep.exp: No longer setup_kfail when the program was
9725 * gdb.base/pending.exp: Make sure pending breakpoints
9726 preserve the ignore count.
9730 * i386-prologue.exp: Add testcase for jump instruction as first
9731 instruction of the real code.
9732 * i386-prologue.c (jump_at_beginning): New function.
9736 * gdb.base/call-sc.exp: Remove patterns to KFAIL PR gdb/1624 on
9741 * gdb.base/call-sc.exp: Remove patterns to KFAIL PR gdb/1623 on
9746 * gdb.base/call-sc.exp (start_scalars_test): Fix regular
9747 expression that checks the return type.
9751 * gdb.base/call-sc.exp: New test of scalar call/return values.
9752 * gdb.base/call-sc.c: Ditto.
9756 * gdb.threads/manythreads.c: Reduce thread stack size.
9760 * gdb.threads/manythreads.c: Add copyright notice.
9764 * gdb.base/siginfo.exp: Better handle step out of signal.
9765 * gdb.base/sigstep.exp: Ditto.
9770 * gdb.threads/manythreads.c: New testcase.
9771 * gdb.threads/manythreads.exp: Ditto.
9775 * gdb.stabs/exclfwd.exp, gdb.stabs/exclfwd1.c,
9776 gdb.stabs/exclfwd2.c, gdb.stabs/exclfwd.h: New test.
9780 * gdb.stabs/weird.exp: Accept full pathname for $binfile.
9784 * gdb.base/sigstep.c: New file.
9785 * gdb.base/sigstep.exp: New file.
9789 * gdb.gdb/observer.exp (test_normal_stop_notifications): Update
9790 call to observer_notify_normal_stop.
9794 * gdb.base/siginfo.c: New file.
9795 * gdb.base/siginfo.exp: New file.
9799 * gdb.base/sep.exp: Fix typo in comment.
9803 * gdb.base/sep.c: New file.
9804 * gdb.base/sep-proc.c: New file.
9805 * gdb.base/sep.exp: New testcase.
9809 * gdb.base/bigcore.exp: Disable on Solaris; no sparse core file
9814 * gdb.base/sigaltstack.c: New file.
9815 * gdb.base/sigaltstack.exp: New file.
9819 * gdb.base/foll-fork.exp: Update the expected output for
9820 "help set follow-fork-mode", to match a change that was made
9821 to the help of this variable on 2004-01-13.
9825 * lib/ada.exp: Add copyright notice.
9826 * bar.ads: Likewise.
9827 * bar.adb: Likewise.
9828 * null_record.adb: Likewise.
9829 * null_record.exp: Likewise.
9830 * gnat_ada.gpr.in: Likewise. Fix typo in a comment, clarify another.
9834 * configure.in: Generate gdb.ada/Makefile and gdb.ada/gnat_ada.gpr.
9835 * configure: Regenerate.
9839 * lib/ada.exp (gdb_compile_ada): Emit UNSUPPORTED if we failed
9840 to build the application. Remove the message printed when in
9841 verbose mode, redundant with the UNSUPPORTED message above.
9845 * gdb.ada (bar.ads, bar.adb, null_record.adb): New files.
9846 * gdb.ada (null_record.exp): New testcase.
9850 * Makefile.in (ALL_SUBDIRS) Add gdb.ada.
9854 * gdb.ada: New subdirectory.
9855 * gdb.ada/Makefile.in: New file.
9856 * gdb.ada/gnat_ada.gpr.in: New file.
9860 * lib/ada.exp: New file.
9864 * gdb.base/gdb1250.exp: Use runto {allow-pending}.
9865 * lib/gdb.exp (runto, gdb_breakpoint): Support {allow-pending}.
9869 * gdb.base/watchpoint.exp (test_stepping): Delete bogus XFAILs
9870 hiding problems with DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET.
9871 Problem identified by Ulrich Weigand.
9875 * gdb.cp/classes.exp (test_enums): Refer to PR c++/1588 instead of
9880 * gdb.base/auxv.exp: New file.
9881 * gdb.base/auxv.c: New file, copied verbatim from coremaker2.c.
9885 * gdb.cp/pr-1553.exp: New. Tests for PR c++/1553.
9886 * gdb.cp/pr-1553.cc: Ditto.
9887 * gdb.cp/local.exp (ptype NestedInnerLocal): Add comment, third
9892 * gdb.cp/templates.exp: Accept more template types.
9896 From Corinna Vinschen with modifications.
9897 * gdb.cp/classes.cc (enums1): Add a line to extend scope of
9898 local variable obj_with_enum.
9899 * gdb.cp/classes.exp (test_enums): Remove TODO note about FAIL
9900 results with obj_with_enum.
9904 * gdb.cp/classes.cc: New file, copied from misc.cc.
9905 * gdb.cp/classes.exp: Use classes.cc rather than misc.cc.
9909 * gdb.cp/misc.cc: Add copyright notice.
9913 * gdb.cp/rtti.exp: Add 'print *obj3' test.
9914 * gdb.cp/rtti.h: Update copyright.
9915 (namespace n2::n3): New.
9916 * gdb.cp/rtti1.cc: (refer_to (n2::n3::C3 *)): New.
9917 (n2::n3::func3): New.
9918 (main): Call n2::n3::func3.
9919 * gdb.cp/rtti2.cc: Update copyright.
9924 * gdb.asm/openbsd.inc: Fix typo.
9928 * gdb.base/pc-fp.exp (get_valueofx): Fix apparent typo to now set
9929 "val" instead of unused "size". Update copyright year.
9933 * gdb.cp/ctti.exp: Handle unsigned char type. Expect templates
9934 to use unsigned char.
9935 * gdb.cp/cttiadd.c, gdb.cp/cttiadd1.c, gdb.cp/cttiadd2.c,
9936 gdb.cp/cttiadd3.c: Change type of variable to unsigned char.
9940 * config/gdbserver.exp (gdbserver_gdb_load): Wait for a complete
9945 * gdb.base/relocate.c (dummy): Initialize.
9949 * gdb.base/chng-syms.exp: Anchor exit pattern. Allow
9950 a breakpoint at exit.
9954 * gdb.base/chng-syms.exp: Add expect condition to match failing
9955 case that isn't a timeout.
9959 * gdb.base/bigcore.exp: Disable on HP/UX, no sparse corefile
9964 * gdb.arch/gdb1431.c: Remove.
9965 * gdb.arch/gdb1431.s: New file, copy of gdb1291.s
9966 * gdb.arch/gdb1431.exp: Use "advance" correctly instead
9967 of "until" incorrectly.
9971 * gdb.cp/class2.cc (empty): New class.
9972 (refer): New function.
9973 (main): Declare an object of type empty and use it.
9974 * gdb.cp/class2.exp: Print the value of an object of type empty.
9978 * gdb.base/langs.exp: Update query string to match the
9979 new nquery format used for pending breakpoints.
9984 * gdb.base/charset.c: Update copyright notice.
9985 (main, init_string): Remove the escape character '\e' tests.
9986 * gdb.base/printcmds.exp (test_print_all_chars): Ditto.
9987 * gdb.base/charset.exp (valid_host_charset): Ditto.
9988 * gdb.base/setvar.exp: Ditto.
9992 * gdb.base/corefile.exp: Use gdb_test_multiple, make "accessing
9993 mmapped data in core file" PASS and FAIL messages consistent.
9995 * gdb.java/jmisc.exp: Use the fully quallified name of "main" when
9996 setting a breakpoint. Work around PR java/1565.
10000 * lib/gdb.exp (gdb_breakpoint): Update query string to match
10002 * gdb.base/pending.exp: Ditto.
10006 * configure.in: Run stabs tests on *BSD.
10007 * configure: Regenerated.
10011 * gdb.base/bigcore.exp: Bail out on *BSD instead of only NetBSD.
10015 * gdb.base/callfuncs.exp (do_function_calls): Remove extraneous
10016 blank in test for "returns short", for consistency with other
10017 "returns xxx" tests. Update copyright year.
10021 New testcase for PR breakpoint/1558.
10022 * gdb.arch/gdb1558.exp: New file.
10023 * gdb.arch/gdb1558.c: New file.
10027 * gdb.base/nodebug.exp: Fix typo.
10033 * gdb.objc/basicclass.exp: Adapt to fixed return type of printHi.
10035 * gdb.base/dump.exp: Handle negative offsets in decimal, not hex.
10037 * gdb.base/float.exp: Support s390*-*-* targets.
10041 * gdb.base/gdb1555.exp: New file.
10042 * gdb.base/gdb1555-main.c, gdb.base/gdb1555.c: New files.
10046 * gdb.base/selftest.exp (do_steps_and_nexts): Add comment.
10050 * gdb.arch/gdb1291.c: Remove
10051 * gdb.arch/gdb1291.s: New test input file.
10052 * gdb.arch/gdb1291.exp: Expand test to check case that should not
10053 fail. Test for correct result, known incorrect result, other
10054 failures and timeouts.
10058 * gdb.base/bigcore.exp: New file.
10059 * gdb.base/bigcore.c: New file.
10063 * gdb.mi/mi1-basics.exp, gdb.mi/mi1-break.exp: Delete file.
10064 * gdb.mi/mi1-console.exp, gdb.mi/mi1-disassemble.exp: Delete file.
10065 * gdb.mi/mi1-eval.exp, gdb.mi/mi1-hack-cli.exp: Delete file.
10066 * gdb.mi/mi1-pthreads.exp, gdb.mi/mi1-read-memory.exp: Delete file.
10067 * gdb.mi/mi1-regs.exp, gdb.mi/mi1-return.exp: Delete file.
10068 * gdb.mi/mi1-simplerun.exp, gdb.mi/mi1-stack.exp: Delete file.
10069 * gdb.mi/mi1-stepi.exp, gdb.mi/mi1-symbol.exp: Delete file.
10070 * gdb.mi/mi1-until.exp, gdb.mi/mi1-var-block.exp: Delete file.
10071 * gdb.mi/mi1-var-child.exp, gdb.mi/mi1-var-cmd.exp: Delete file.
10072 * gdb.mi/mi1-var-display.exp, gdb.mi/mi1-watch.exp: Delete file.
10076 * gdb.asm/ia64.inc (gdbasm_startup): Make sure first instruction
10077 executed is an alloc instruction.
10081 * gdb.cp/breakpoint.exp: New.
10082 * gdb.cp/breakpoint.cc: New.
10086 Partial fix for PR gdb/1543.
10087 * gdb.cp/ambiguous.exp, gdb.cp/annota2.exp, gdb.cp/annota3.exp,
10088 gdb.cp/anon-union.exp, gdb.cp/casts.exp, gdb.cp/classes.exp,
10089 gdb.cp/cplusfuncs.exp, gdb.cp/ctti.exp, gdb.exp/demangle.exp,
10090 gdb.cp/derivation.exp, gdb.cp/exception.exp, gdb.cp/hang.exp,
10091 gdb.cp/inherit.exp, gdb.cp/local.exp, gdb.cp/maint.exp,
10092 gdb.cp/member-ptr.exp, gdb.cp/method.exp, gdb.cp/misc.exp,
10093 gdb.cp/namespace.exp, gdb.cp/overload.exp, gdb.cp/ovldbreak.exp,
10094 gdb.cp/psmang.exp, gdb.cp/ref-types.exp, gdb.cp/templates.exp,
10095 gdb.cp/userdef.exp, gdb.cp/virtfunc.exp: Remove reference
10097 * gdb.cp/bs15503.cc, gdb.cp/class2.cc, gdb.cp/cttiadd.cc,
10098 gdb.cp/cttiadd1.cc, gdb.cp/cttiadd2.cc, gdb.cp/cttiadd3.cc,
10099 gdb.cp/exception.cc, gdb.cp/member-ptr.cc, gdb.cp/namespace1.cc:
10104 * lib/gdb.exp (gdb_expect_list): Recover from internal-errors
10105 using gdb_internal_error_resync.
10109 * gdb.threads/thread-specific.exp: Stop early if no threads are
10114 * gdb.base/pending.exp: Remove extra \n from gdb_test calls.
10118 * lib/gdb.exp (gdb_breakpoint): Fail on unexpected pending
10123 * config/sim.exp (gdb_load): Handle $arg == "".
10124 * lib/gdb.exp (gdb_run_cmd): Honor gdb,do_reload_on_run.
10125 * gdb.objc/basicclass.exp: Use gdb_run_cmd.
10129 * gdb.base/maint.exp: Update test to reflect
10134 * gdb.base/pendshr.c (pendfunc): New function that calls
10136 * gdb.base/pending.c: Call pendfunc instead of pendfunc1.
10140 * gdb.arch/gdb1431.c: Add underbar prefixed version of global
10141 function symbols and update copyright years.
10142 * gdb.arch/gdb1291.c: Ditto.
10146 * gdb.cp/virtfunc.exp: Accept both "ctor()" and "ctor(void)".
10150 * gdb.cp/inherit.exp: Accept both "ctor()" and "ctor(void)".
10154 * gdb.cp/inherit.exp: Accept output with gcc 3.2-7-rh.
10158 * gdb.base/bang.exp: Use gdb_run_cmd so this tests works with
10159 remote targets. Update copyright years.
10163 * lib/gdb.exp (gdb_breakpoint): Add pending breakpoint
10165 * gdb.base/langs.exp: Fix test which attempts to create
10166 breakpoint on non-existent function to handle new pending
10168 * gdb.base/shlib-call.exp: Use gdb_breakpoint to set
10170 * gdb.base/pending.exp: New test.
10171 * gdb.base/pending.c: New file.
10172 * gdb.base/pendshr.c: Ditto.
10176 * gdb.cp/overload.exp: Add overloadNamespace tests.
10177 * gdb.cp/overload.cc (dummyClass, dummyInstance): New.
10178 (overloadNamespace, XXX): New.
10179 (main): Call XXX::marker2.
10183 * gdb.base/dump.exp: Use runto_main instead of "runto main".
10184 * gdb.base/finish.exp: Ditto.
10185 * gdb.base/gcore.exp: Ditto.
10186 * gdb.base/huge.exp: Ditto.
10187 * gdb.base/info-proc.exp: Ditto.
10188 * gdb.base/return2.exp: Ditto.
10189 * gdb.threads/gcore-thread.exp: Ditto.
10193 * gdb.threads/thread-specific.exp: Add missing anchor to regexp.
10197 * gdb.base/fileio.c (test_open): Replace O_RDONLY with O_RDWR such
10198 that opening the file succeeds on OpenBSD.
10202 * gdb.threads/thread-specific.c: New file.
10203 * gdb.threads/threads-specific.exp: New test script.
10204 * lib/gdb.exp (gdb_test_multiple): Allow user patterns access
10209 * gdb.base/call-ar-st.exp: Call get_debug_format. Remove xfail on
10210 sparc*-*-solaris* into a kfail PR gdb/1539 on sparc-*-* for stabs
10211 only on the "print_small_structs from print_long_arg_list" test.
10215 * gdb.base/completion.exp: Kill a stray backslash.
10218 * gdb.base/completion.exp: Test that "complete file ./gdb.base/compl"
10219 agrees with the result from sending a tab.
10223 * gdb.base/chng-syms.exp: Remove stray newline.
10227 * gdb.asm/asm-source.exp: Set asm-note to "openbsd" for
10229 * gdb.asm/openbsd.inc: New file.
10233 * gdb.asm/asm-source.exp: Strip -Wl, from link-flags. Don't
10234 append -static to link-flags for *-*-freebsd*, *-*netbsd* and
10235 *-*solaris2*. Remove commented out default settings for
10236 asm-flags. Replace gdb_compile with target_link.
10240 * gdb.cp/inherit.exp: Rewrite. Use gdb_test_multiple and gdb
10241 for all tests. Remove old hp-ux and cygnus xfail cases.
10245 * gdb.base/chng-syms.exp: New file.
10246 * gdb.base/chng-syms.c: New file.
10250 * gdb.cp/local.exp: Rewrite "ptype Local". Add "ptype l".
10251 Provide arms for current output in all my configurations.
10255 * lib/compiler.c: Add hp_cc_compiler and hp_aCC_compiler.
10256 * lib/compiler.cc: Likewise.
10257 * lib/gdb.exp (get_compiler_info): Always call gdb_compile to
10258 get the right preprocessor. Eval the output directly. Remove
10259 special tests for hp_cc_compiler and hp_aCC_compiler. Remove
10260 hp_f77_compiler and hp_f90_compiler completely.
10261 (gdb_preprocess): Delete.
10262 (get_compiler): Delete.
10266 * gdb.base/charset.c, gdb.base/dump.c, gdb.base/huge.c: Include
10271 * gdb.mi/mi-stack.exp: Update copyright.
10275 * gdb.cp/rtti.exp: Don't include full path in ${srcfile}. Add
10276 test for cp_lookup_transparent_type.
10277 * gdb.cp/rtti1.cc: Update copyright. Add n2::func and refer_to;
10282 * gdb.mi/mi-var-child.exp: Update copyright year. Move new test
10287 * gdb.cp/namespace.cc (C::ensureRefs): New.
10288 * gdb.cp/namespace1.cc (C::ensureOtherRefs): New.
10292 * gdb.mi/mi-stack.exp (test_stack_locals_listing): Test for
10293 case "-stack-list-locals 2".
10294 * gdb.mi/mi-var-child.exp: Test for case
10295 "-var-list-children --all-values NAME".
10299 * gdb.cp/local.exp: Accept correct output for gcc v3 -gstabs+.
10303 * gdb.base/fileio.exp: Add "$gdb_prompt $" anchors to patterns
10304 used with gdb_test_multiple.
10306 * gdb.base/gdb1476.exp: Accept alternat pattern for failed memory
10307 read at address 0. This fixes PR testsuite/1504.
10311 * config/gdbserver.exp (gdbserver_gdb_load): Rename from gdb_load.
10312 Remove downloading, guessing the host executable, the calls to
10313 gdb_file_cmd and gdb_target_cmd, and "load" support.
10314 (infer_host_exec): New function broken out from gdb_load.
10315 (gdb_load): New wrapper for gdbserver_gdb_load.
10316 * lib/mi-support.exp (mi_gdb_target_cmd): New function, based on
10317 gdb_target_cmd. Use -target-select.
10318 (mi_gdb_file_cmd): New function, broken out from mi_gdb_load.
10319 Download binaries to the host. Clear last_mi_remote_file when
10320 we load a new binary.
10321 (mi_gdb_load): Call mi_gdb_file_cmd. If gdbserver.exp is loaded,
10322 call gdbserver_gdb_load and mi_gdb_target_cmd.
10326 * gdb.cp/templates.exp: Accept more spaces with "<foo, ?bar>"
10331 * gdb.cp/templates.exp: Fix typo in test name of
10332 "print Foo<volatile char*>::foo".
10336 * gdb.base/setvar.exp: Remove setup_xfail for hppa*-*-*11*.
10340 * gdb.arch/Makefile.in (MISCELLANEOUS): Remove.
10341 (clean mostlyclean): Remove empty rm.
10345 * gdb.base/setvar.exp: Add copyright years.
10349 * gdb.cp/rtti.exp: Update copyright. KFAIL test with repect to
10350 PR c++/1511 and update coment.
10351 * gdb.cp/templates.exp: Update patterns to match current output.
10352 If changes involve something other than whitespace, KFAIL
10353 w.r.t. PR c++/1512 or PR c++/931 as appropriate.
10357 * gdb.cp/namespace.exp: Add tests involving classes defined within
10359 * gdb.cp/namespace.cc (C::CClass): New.
10360 * gdb.cp/namespace1.cc (C::OtherFileClass): New.
10364 * gdb.base/sepdebug.exp: Bail out of the test if we don't know
10365 what debug info we have. Print a better message if something goes
10366 wrong while producing the separate debug info file.
10370 * gdb.base/callfuncs.c: Remove explicit declaration of malloc.
10374 * gdb.base/callfuncs.c: Add copyright notice.
10378 * gdb.cp/derivation.exp: Add XFAIL for bug with protected
10379 inheritance. PR gdb/1498, PR gcc/13539.
10383 * gdb.threads/gcore-thread.exp: Prefix name of binary with
10384 test specific name.
10385 * gdb.mi/gdb669.exp: Ditto.
10386 * gdb.mi/mi-pthreads.exp: Ditto.
10387 * gdb.mi/mi1-pthreads.exp: Ditto.
10388 * gdb.mi/mi2-pthreads.exp: Ditto.
10392 * gdb.cp/member-ptr.cc: Add copyright notice.
10396 * gdb.cp/member-ptr.exp: Use gdb_test, gdb_test_multiple. Add
10397 some patterns for recent versions of gcc and hpacc. Delete
10398 calls to setup_xfail for hppa*-*-*. Delete redundant tests.
10399 Delete tests that access a NULL pointer-to-member-data. This
10400 script is still disabled for gcc.
10404 * gdb.mi/mi2-basics.exp: Make sure that full pathnames are
10409 * gdb.base/sepdebug.exp: New file.
10410 * gdb.base/sepdebug.c: New file.
10411 * lib/gdb.exp (separate_debug_filename): New procedure.
10412 (gdb_gnu_strip_debug): New procedure.
10416 * gdb.mi/ChangeLog: Delete file. Renamed to ...
10417 * gdb.mi/ChangeLog-1999-2003: New file.
10421 * gdb.base/fileio.exp: Update copyright year. On GNU/Linux, for
10422 "Renaming a directory to a non-empty directory returns ENOTEMPTY
10423 or EEXIST", treat EBUSY as an XFAIL.
10427 * gdb.base/scope.exp: Remove obsolete setup_xfail for
10432 * gdb.cp/classes.exp: Remove old "(obsolescent gcc or gdb)"
10437 * gdb.cp/virtfunc.exp: Remove old "(obsolescent gcc or gdb)"
10438 and "(aCC)" decorations. Remove obsolete doco about old
10443 * gdb.cp/exception.exp: Fix typo in doco.
10447 * gdb.base/gdb1476.exp: Fix typo.
10451 * gdb.hp/gdb.aCC/exception.exp: Re-create as a nearly empty
10456 * gdb.cp/exception.cc: Change <iostream.h> to <iostream>.
10457 * gdb.cp/exception.exp: Use gdb test, gdb_test_multiple.
10458 Use gdb_compile. Remove restriction on gcc. Add some patterns
10459 for recent version of gdb. Delete second half, which was a copy
10460 of the first half with different build flags. This test is
10461 still disabled because it is still not ready for production.
10465 * gdb.cp/exception.cc: Add copyright notice.
10466 * gdb.cp/exception.exp: Add a notice that this file is broken
10467 because of line number changes caused by addition of copyright
10472 * gdb.cp/exception.cc: Renamed from gdb.hp/gdb.aCC/exception.cc.
10473 * gdb.cp/exception.exp: Renamed from gdb.hp/gdb.aCC/exception.exp.
10477 * gdb.cp/classes.exp: Accept gnu abi 2.
10478 * gdb.cp/derivation.exp: Likewise.
10479 * gdb.cp/overload.exp: Likewise.
10480 * gdb.cp/virtfunc.exp: Likewise.
10484 * gdb.mi/pthreads.c (done_making_threads): Remove extraneous
10485 semicolon after end of function.
10489 * gdb.cp/bs15503.cc: Include <iostream>, not <iostream.h>.
10490 * gdb.cp/bs15503.exp: Remove hp-only restriction. Use modern
10491 boilerplate code for compiling and running the program under
10492 test. Add some string method tests.
10496 * gdb.cp/bs15503.cc: Add copyright notice.
10497 * gdb.cp/bs15503.exp: Adjust line number.
10501 * gdb.hp/gdb.defects/bs15503.exp: Renamed to gdb.cp/bs15503.exp.
10502 * gdb.hp/gdb.defects/bs15503.cc: Renamed to gdb.cp/bs15503.cc.
10506 * gdb.base/funcargs.exp: Remove obsolete setup_xfail for
10511 * gdb.cp/cttiadd.c: Add a marker for gdb_get_line_number.
10512 * gdb.cp/ctti.exp: Use the marker instead of "next".
10513 With gcc, run further before bailing.
10517 * gdb.cp/cttiadd.cc: Add copyright notice.
10518 * gdb.cp/cttiadd1.cc: Likewise.
10519 * gdb.cp/cttiadd2.cc: Likewise.
10520 * gdb.cp/cttiadd3.cc: Likewise.
10524 * gdb.cp/ctti.exp: Partial rewrite. Call gdb_compile properly.
10525 Use gdb_test, gdb_test_multiple. Use floating-point values that
10526 have exact representations in IEEE-ish formats.
10530 * gdb.base/constvars.exp: Do not force lang=c++ if using HP
10531 compilers. Delete duplicate call to get_compiler_info.
10532 (local_compiler_xfail_check): setup_xfail if $hp_cc_compiler.
10533 * gdb.base/volatile.exp: Likewise.
10537 * gdb.base/gdb1476.exp: Only run the tests if we can't read the
10538 memory at address 0.
10542 * gdb.stabs/weird.exp: Use hp_cc_compiler and hp_aCC_compiler
10543 to test for hp-ux assembler. Fix copyright years.
10547 * gdb.base/fileio.c (strerrno): Add "EBUSY".
10551 * gdb.base/fileio.c (test_open): Do not pass S_IWUSR to "open"
10552 when creating the read-only file. From analysis by Roland McGrath
10557 * gdb.cp/namespace.exp: Call get_compiler_info with "c++".
10561 * gdb.base/cvexpr.c: Be type-safe with function pointers and
10566 * gdb.cp/m-static.exp: Compile one source file at a time.
10567 Delete unused call to get_compiler_info.
10571 * gdb.base/call-ar-st.exp: Delete explicit reference to ${binfile}.ci.
10572 * gdb.base/call-rt-st.exp: Likewise.
10573 * gdb.base/nodebug.exp: Likewise.
10574 * gdb.base/volatile.exp: Likewise.
10575 * gdb.cp/ref-types.exp: Likewise.
10576 * gdb.cp/templates.exp: Likewise.
10580 * gdb.base/gdb1476.exp, gdb.base/gdb1476.c: New files.
10584 * gdb.cp/funcargs.exp: Delete special timeout of 240 seconds for
10589 * gdb.base/structs.exp: Add patterns to kfail PR gdb/1447 for
10592 * gdb.base/structs.exp: Add patterns to kfail PR gdb/1447 for
10593 sparc64-*-* and sparc*-solaris2*.
10597 * gdb.base/structs.exp: Remove ${testfile} from "zed L<n> for
10598 return ${tests}" test. The ${tests} already mentions the
10603 * gdb.cp/local.exp: Accept gcc abi 2.
10607 * gdb.cp/templates.exp: Accept gcc abi 2.
10611 * lib/compiler.cc: Remove supports_template_debugging.
10612 * gdb.cp/templates.exp: Do not test supports_template_debugging.
10616 * gdb.cp/namespace.exp: Accept gcc abi 2.
10620 * gdb.cp/method.exp: Accept gcc abi 2.
10624 * gdb.cp/classes.exp: Generate identical results as old version.
10625 * gdb.cp/derivation.exp: Likewise.
10626 * gdb.cp/overload.exp: Likewise.
10627 * gdb.cp/virtfunc.exp: Likewise.
10631 * gdb.cp/virtfunc.exp: Modify some patterns to avoid a
10632 mysterious bug with sourceware version of expect.
10636 * gdb.cp/overload.exp: Rewrite. Clean up patterns to match
10637 current versions of gcc, including gcc abi 2. Remove gratuitous
10638 restart of test program. Use gdb_test_multiple and gdb_test for
10639 all tests. Add patterns to xfail missing "const" in "const char *"
10640 and kfail PR gdb/1155.
10644 * gdb.cp/derivation.exp: Rewrite. Clean up patterns to match
10645 current versions of gcc, including gcc abi 2. Remove gratuitous
10646 restart of test program. Use gdb_test_multiple and gdb_test for
10647 all tests. Add patterns to kfail PR gdb/1498.
10651 * gdb.cp/virtfunc.exp: Rewrite. Clean up patterns to match
10652 current versions of gcc, including gcc abi 2. Use "breakpoint"
10653 and "continue" instead of restarting the target program. Use
10654 gdb_test_multiple and gdb_test for all tests.
10658 * gdb.asm/asm-source.exp: Update copyright year. Link statically
10663 * gdb.cp/classes.exp: Rewrite. Clean up patterns to match
10664 current versions of gcc, including gcc abi 2. Use "breakpoint"
10665 and "continue" instead of restarting the target program several
10666 times. Use gdb_test_multiple and gdb_test for all tests.
10670 * gdb.base/sect-cmd.exp: Handle compiling test case from multiple
10675 * gdb.base/environ.exp: Handle compiling test case from multiple
10680 * gdb.base/structs.exp: Call gdb_exit as well as gdb_start.
10684 * gdb.base/freebpcmd.c: Add copyright notice.
10686 * gdb.base/freebpcmd.exp: Mark the interesting failure as known.
10690 * gdb.base/maint.exp: Add generic FAIL patterns to prevent timeouts.
10694 * gdb.base/freebpcmd.exp, gdb.base/freebpcmd.c: New test.
10698 * gdb.asm/frv.inc: New file.
10699 * gdb.asm/asm-source.exp: Add frv-*-* as a supported target.
10703 * gdb.base/break.c (marker1, marker2, marker3, marker4): Move
10704 functions to break1.c and leave prototypes behind. Add more
10705 "set breakpoint NN here" comments.
10706 * gdb.base/break1.c: New file.
10708 * gdb.base/break.exp: Handle compiling test case from multiple
10709 source files and change source file references as needed.
10710 * gdb.base/completion.exp: Ditto.
10711 * gdb.base/condbreak.exp: Ditto.
10712 * gdb.base/define.exp: Ditto.
10713 * gdb.base/ena-dis-br.exp: Ditto.
10714 * gdb.base/info-proc.exp: Ditto.
10715 * gdb.base/maint.exp: Ditto.
10716 * gdb.base/until.exp: Ditto.
10718 * gdb.base/condbreak.exp: Use bp_locationNN variables instead of
10719 hardcoded line numbers.
10720 * gdb.base/define.exp: Ditto.
10721 * gdb.base/ena-dis-br.exp: Ditto.
10722 * gdb.base/maint.exp: Ditto.
10723 * gdb.base/until.exp: Ditto.
10725 * gdb.base/completion.exp: Use "break1" for completion tests since
10726 "break" is no longer a unique prefix.
10730 * gdb.base/structs.exp (test_struct_returns): When applicable, set
10731 "return_value_unimplemented". When an unimplemented struct return
10732 architecture, report incorrect values as a KFAIL
10736 * gdb.cp/rtti.exp: Accept new wording of warning from
10737 cp_lookup_rtti_type.
10741 Partial fix for PR testsuite/1456.
10742 * gdb.base/scope.exp (test_at_main): Replace references to
10743 gcc_compiled with calls to test_compiler_info.
10744 (test_at_foo): Likewise.
10745 (test_at_bar): Likewise.
10749 Partial fix for PR testsuite/1456.
10750 * gdb.base/so-impl-ld.exp: Replace reference to gcc_compiled with call
10751 to test_compiler_info.
10755 * gdb.base/so-impl-ld.exp: Update copyright notice.
10759 Partial fix for PR testsuite/1456.
10760 * gdb.base/mips_pro.exp: Replace references to gcc_compiled with calls
10761 to test_compiler_info.
10765 * gdb.objc/objcdecode.exp: Match and KFAIL the output that comes
10766 from current versions of gdb. Clean up regular expressions.
10767 Delete redundant timeout case.
10771 * gdb.objc/nondebug.exp: Match and KFAIL the output that comes
10772 from current versions of gdb. Clean up regular expressions.
10773 Delete redundant timeout case.
10777 Partial fix for PR testsuite/1456.
10778 * gdb.base/callfuncs.exp (do_function_calls): Replace reference to
10779 gcc_compiled with call to test_compiler_info.
10783 Partial fix for PR testsuite/1456.
10784 * gdb.base/list.exp (test_list_function): Delete unused declaration
10789 Partial fix for PR testsuite/1456.
10790 * gdb.base/complex.exp: Replace reference to gcc_compiled with
10791 call to test_compiler_info.
10795 * gdb.asm/asm-source.exp: Initialize asm-note to "empty". Set
10796 asm-note to "netbsd" for *-*-netbsdelf* and x86_64-*-netbsd*. Use
10797 it to create the appropriate note.inc.
10798 * gdb.asm/asmsrc1.s: Include "note.inc".
10799 * gdb.asm/netbsd.inc: New file.
10800 * gdb.asm/empty.inc: New file.
10804 Partial fix for PR testsuite/1456.
10805 * gdb.base/constvars.exp: Replace references to gcc_compiled with
10806 calls to test_compiler_info.
10810 Partial fix for PR testsuite/1456.
10811 * gdb.base/volatile.exp: Replace references to gcc_compiled with
10812 calls to test_compiler_info.
10816 * gdb.base/structs.exp: Use i*86-*-* instead of i686-*-* as a
10817 pattern for the KFAILs.
10821 * gdb.objc/objcdecode.exp: Test for PR objc/1238.
10822 * gdb.objc/objcdecode.m: New file.
10826 * gdb.objc/nondebug.exp: Test for PR objc/1236.
10827 * gdb.objc/nondebug.m: New file.
10831 * gdb.asm/asm-source.exp: Make sure the final link succeeds on
10832 NetBSD as it does on FreeBSD. Modelled on a similar change by
10833 Mark Kettenis on 2003-05-30.
10834 (link-flags): Set to "--entry _start" regardless of target.
10835 Special linker flags are to be appended to $link-flags.
10836 * gdb.asm/mips.inc (gdbasm_startup): Remove __start label.
10840 * gdb.cp/method.exp: Accept output of new demangler.
10844 * gdb/class2.exp: New file.
10845 * gdb/class2.cc: New file.
10849 * gdb.cp/templates.exp (test_ptype_of_templates): Accept output
10854 * gdb.arch/i386-unwind.exp: Use gdb_run_cmd and gdb_expect instead
10859 * gdb.arch/i386-unwind.exp: Don't use runto_main. Change
10860 "continue" into "run".
10864 Partial fix for PR testsuite/1456.
10865 * gdb.cp/ambiguous.exp: Replace reference to gcc_compiled with
10866 call to test_compiler_info.
10867 * gdb.cp/ctti.exp: Likewise.
10868 * gdb.cp/derivation.exp: Likewise.
10869 * gdb.cp/member-ptr.exp: Likewise.
10870 * gdb.cp/virtfunc.exp (test_virtual_calls): Remove unused
10871 reference to gcc_compiled.
10875 Fix PR testsuite/1463.
10876 * gdb.base/structs.exp (start_structs_test): Call
10877 get_debug_format before using the debug format.
10881 * lib/gdb.exp (gdb_test_multiple): Add simple example.
10882 * gdb.base/structs.exp: Use gdb_test_multiple.
10886 * gdb.base/structs.exp: Handle and recover from internal errors.
10887 Replace "foo${n}" with "foo<n>" in test messages.
10889 * gdb.base/structs.exp: Update copyright. Rewrite.
10890 * gdb.base/structs.c: Update copyright. Rewrite.
10892 * lib/gdb.exp (gdb_internal_error_resync): Issue a perror when the
10893 resync count exceeded.
10895 * gdb.base/maint.exp: Use gdb_internal_error_resync to recover
10896 from the internal error.
10897 * lib/gdb.exp (gdb_internal_error_resync): New procedure.
10898 Original from Jim Blandy.
10899 (gdb_test_multiple): Use gdb_internal_error_resync.
10903 * gdb.base/callfuncs.exp: Change the XFAILed descriptor test to a
10908 New testcase for PR backtrace/1435.
10909 * gdb.arch/i386-unwind.exp: New file.
10910 * gdb.arch/i386-unwind.c: New file.
10914 * lib/gdb.exp (compiler_info): New global.
10915 (test_compiler_info): New function.
10916 (get_compiler_info): Set compiler_info.
10917 * lib/compiler.c, lib/compiler.cc: Add copyright. When GNUC, set
10918 "compiler_info" to gcc-<major>-<minor>.
10922 * gdb.trace/configure: Remove.
10926 * gdb.base/break.c: Add comments to aid finding line numbers for
10928 * gdb.base/break.exp: Remove all references to explicit line
10933 * gdb.base/shreloc.exp: Do not run for targets which do not
10934 support shared objects.
10938 * gdb.base/fileio.exp: Drop tests for nointerrupts and noinferiorio.
10939 Don't run tests if nofileio flag is given.
10943 * gdb.cp/annota3.exp: Make sure we can match 'Hardware watchpoint'
10944 as well as 'Watchpoint'.
10949 * gdb.base/annota1.exp: Match at least one occurrence of the
10950 signal handler annotation.
10954 * gdb.cp/annota2.exp: Make sure we can match 'Hardware watchpoint'
10955 as well as 'Watchpoint'.
10959 * gdb.mi/pthreads.c (routine): Handle early return from sleep.
10963 * gdb.arch/gdb1291.c: New test file.
10964 * gdb.arch/gdb1291.exp: New test script.
10965 * gdb.arch/gdb1431.c: New test file.
10966 * gdb.arch/gdb1431.exp: New test script.
10970 * gdb.mi/pthreads.c: Add copyright notice.
10974 * gdb.threads/pthreads.c: Add copyright notice.
10978 * gdb.base/gdb1056.exp: New test script.
10982 * gdb.threads/killed.exp: Use gdb_run_cmd.
10986 * gdb.base/gcore.exp: Issue an UNSUPPORTED and exit if we can't
10987 create a core file.
10988 * gdb.threads/gcore-thread.exp: Likewise.
10992 * gdb.base/call-rt-st.c (struct bit_flags_char_t): New bitfield
10993 type, based on char type.
10994 (struct bit_flags_short_t): New bitfield type, based on short type.
10995 (init_bit_flags_char): New fuction.
10996 (init_bit_flags_short): Ditto.
10997 (print_bit_flags_char): Ditto.
10998 (print_bit_flags_short): Ditto.
10999 (main): Add handling for bit_flags_char_t and bit_flags_short_t.
11003 * gdb.base/call-rt-st.exp: Update copyright year.
11007 * config/hmsirom.exp: Replace "Hitachi" with "Renesas".
11008 * gdb.disasm/sh3.s: Ditto.
11012 * gdb.threads/switch-threads.exp: New test.
11013 * gdb.threads/switch-threads.c: New source file.
11017 * gdb.base/ending-run.exp: Add sh specific case.
11021 * gdb.base/watchpoint.exp: Delete obsolete clear_xfail.
11022 * gdb.disasm/mn10200.exp: Delete obsolete file.
11026 * ChangeLog: Correct an entry command.exp -> commands.exp.
11027 * gdb.base/commands.exp (bp_deleted_in_command_test)
11028 (temporary_breakpoint_commands): Check noargs.
11032 * gdb.cp/namespace.exp: Tweak comments. Add non-quoted versions
11033 of some print tests, where appropriate. Add tests for C::D::cd,
11034 E::ce, F::cXfX, G::XgX.
11035 * gdb.cp/namespace.cc: Add XgX, cXfX, ce.
11039 * lib/java.exp (java_init): Import target_alias before using it.
11043 * gdb.base/corefile.exp: Delete obsolete setup_xfail.
11047 * gdb.base/selftest.exp: Accomodate more instruction reordering
11052 * gdb.cp/gdb1355.exp: New file.
11053 * gdb.cp/gdb1355.c: New file.
11057 * gdb.asm/asm-source.exp: Add sh*-*-* as supported target.
11058 * gdb.asm/sh.inc: New file.
11062 * gdb.cp/namespace.exp: Add tests for namespace types.
11063 * gdb.cp/maint.exp (test_help): Test 'help maint cp namespace'.
11064 (test_namespace): New.
11068 * gdb.base/relocate.exp: Handle new gdb output at startup.
11069 * gdb.stabs/weird.exp: Ditto.
11073 * gdb.base/gdb1250.c: Rename 'gamma' to 'my_gamma'.
11077 * gdb.cp/classes.exp: Accommodate both 'syntax error' and
11082 * gdb.arch/i386-prologue.exp: Add checks for saved registers.
11086 * gdb.base/selftest.exp: Remove support for m68k*-*-hpux.
11087 * gdb.gdb/observer.exp: Ditto.
11088 * gdb.gdb/xfullpath.exp: Ditto.
11092 * gdb.base/interrupt.exp: XFAIL "call function when asleep" for
11097 * gdb.base/dump.exp: Skip for ia64.
11101 * gdb.asm/asm-source.exp: Add ia64 support.
11102 * gdb.asm/ia64.inc: New file.
11106 * gdb.cp: New directory.
11107 * gdb.cp/*: Copy from gdb.c++/*.
11108 * gdb.c++/*: Remove.
11109 * Makefile.in: Change gdb.c++ to gdb.cp.
11110 * configure.in: Ditto.
11111 * configure: Regnerate.
11115 * gdb.arch/i386-prologue.exp: Add testcase for PR backtrace/1338.
11116 * gdb.arch/i386-prologue.c (gdb1338): Add function.
11120 * mi-var-display.exp (-var-list-children weird): Accept function
11121 pointers with argument types.
11122 * mi1-var-display.exp (-var-list-children weird): Likewise.
11123 * mi2-var-display.exp (-var-list-children weird): Likewise.
11127 * gdb.base/annota3.exp: Add missing newline.
11131 * gdb.java/jmisc1.exp: Add test for pr gdb/1322.
11135 * gdb.base/float.exp: Add test for SH.
11139 * gdb.arch/i386-prologue.c, gdb.arch/i386-prologue.exp: New files.
11143 * gdb.base/completion.exp: Remove reduntant completion test
11148 * gdb.base/attach.exp, gdb.base/detach.exp, gdb.base/gcore.exp,
11149 gdb.mi/mi-basics.exp, gdb.threads/gcore-thread.exp,
11150 gdb.trace/save-trace.exp: Make sure that full pathnames are
11155 * configure.in: Don't generate config.h from config.hin.
11156 * configure: Regenerate.
11157 * config.hin: Remove file.
11158 * gdb.mi/pthreads.c: Remove include of config.h, and other ifdefs.
11159 * gdb.threads/pthreads.c: Ditto.
11164 * gdb.asm/asm-source.exp : Add -lgloss to link-flags.
11165 * gdb.asm/m32r.inc : Remove an illegal nop after bl instruction.
11166 Replace ld24 with seth/add3.
11170 * gdb.base/annota3.exp: New file.
11171 * gdb.base/annota3.c: New file.
11172 * gdb.c++/annota3.exp: New file.
11173 * gdb.c++/annota3.cc: New file.
11177 * gdb.threads/tls.c (spin): Check errno only if sem_wait
11179 (do_pass): Likewise.
11180 * gdb.threads/tls.exp: Always initialize no_of_threads.
11184 * gdb.threads/print-threads.exp (test_all_threads): Loosen KFAIL
11186 * gdb.threads/tls-shared.exp: Don't use gdb_suppress_entire_file.
11187 * gdb.threads/tls.exp: Recognize one case of the host library not
11192 * gdb.base/fileio.exp: Use SH when running commands using
11198 * gdb.base/relocate.c (dummy): New padding array.
11202 * gdb.disasm/8300s.s: Fix syntax of bsr insn.
11204 * gdb.disasm/h8300s.exp : Minor changes in disassembler output require
11205 patterns to be more general, accepting old and new output.
11206 Some output chars (such as '+') also must be quoted.
11207 Some addresses are displayed numerically instead of
11212 * gdb.base/return2.exp: Don't test long-long return.
11214 * gdb.disasm/t01_mov.s: New file, h8300sx disassembly tests.
11215 * gdb.disasm/t01_mov.exp: Ditto.
11216 * gdb.disasm/t02_mova.s: Ditto.
11217 * gdb.disasm/t02_mova.exp: Ditto.
11218 * gdb.disasm/t03_add.s: Ditto.
11219 * gdb.disasm/t03_add.exp: Ditto.
11220 * gdb.disasm/t04_sub.s: Ditto.
11221 * gdb.disasm/t04_sub.exp: Ditto.
11222 * gdb.disasm/t05_cmp.s: Ditto.
11223 * gdb.disasm/t05_cmp.exp: Ditto.
11224 * gdb.disasm/t06_ari2.s: Ditto.
11225 * gdb.disasm/t06_ari2.exp: Ditto.
11226 * gdb.disasm/t07_ari3.s: Ditto.
11227 * gdb.disasm/t07_ari3.exp: Ditto.
11228 * gdb.disasm/t08_or.s: Ditto.
11229 * gdb.disasm/t08_or.exp: Ditto.
11230 * gdb.disasm/t09_xor.s: Ditto.
11231 * gdb.disasm/t09_xor.exp: Ditto.
11232 * gdb.disasm/t10_and.s: Ditto.
11233 * gdb.disasm/t10_and.exp: Ditto.
11234 * gdb.disasm/t11_logs.s: Ditto.
11235 * gdb.disasm/t11_logs.exp: Ditto.
11236 * gdb.disasm/t12_bit.s: Ditto.
11237 * gdb.disasm/t12_bit.exp: Ditto.
11238 * gdb.disasm/t13_otr.s: Ditto.
11239 * gdb.disasm/t13_otr.exp: Ditto.
11243 * gdb.threads/tls.exp :Add kfail for 'info address' case.
11247 * gdb.threads/tls.c : New file.
11248 * gdb.threads/tls.exp : New file.
11249 * gdb.threads/tls-main.c : New file.
11250 * gdb.threads/tls-shared.c : New file.
11251 * gdb.threads/tls-shared.exp : New file.
11255 * gdb.asm/powerpc.inc (gdbasm_startup): Force alignment.
11259 * gdb.base/selftest.exp (do_steps_and_nexts): Add more patterns
11260 due to insn reordering.
11264 * gdb.asm/asm-source.exp: Do not allow "start" in the backtrace.
11268 * gdb.base/gdb1250.exp: New file.
11269 * gdb.base/gdb1250.c: New file.
11273 * gdb.c++/templates.exp (test_ptype_of_templates): Recognize
11274 expansion of size_t to 'unsigned long', not only to 'unsigned'.
11278 * gdb.threads/tls.c: New file.
11279 * gdb.threads/tls.exp: New file.
11280 * gdb.threads/tls-main.c: New file.
11281 * gdb.threads/tls-shared.c: New file.
11282 * gdb.threads/tls-shared.exp: New file.
11286 * gdb.base/annota1.exp: Make sure that we properly escape the
11287 full path of the source file. Xfail more permissive patterns,
11288 due to a compiler debug info problem.
11292 * gdb.asm/m68k.inc: New file.
11293 * gdb.asm/asm-source.exp: Use it for m68k-*-*.
11295 * gdb.objc/basicclass.exp ("Call an Objective-C method with no
11296 arguments"): Also match negative number.
11298 * gdb.base/float.exp ("info float"): Add test for m68k-*-*.
11302 * gdb.base/store.c (charest): New typedef.
11303 (add_char): Rename to add_charest, update.
11304 (wack_char): Rename to wack_charest, update types. Return l + r
11305 to keep r live across the call.
11306 (wack_short, wack_int, wack_long, wack_longest, wack_float)
11307 (wack_double, wack_doublest): Return l + r to keep r live across
11309 * gdb.base/store.exp: Accomodate store.c changes.
11313 * gdb.c++/maint.exp (test_invalid_name): New.
11314 (test_first_component): Add tests for invalid names.
11318 * gdb.c++/inherit.exp (test_print_svi_classes): Accept gdb
11319 output of '<VTT for class>' for virtual base classes.
11323 * gdb.base/completion.exp: Tab-complete "complet" instead of
11325 * gdb.base/complex.exp, gdb.base/complex.c: New files.
11329 * gdb.base/constvars.exp: Remove most xfails for GCC 3.x.
11330 * gdb.base/volatile.exp: Likewise.
11334 * gdb.threads/print-threads.exp (test_all_threads): Add kfail for
11340 * gdb.base/selftest.exp (do_steps_and_nexts): Increase maximum
11341 initial line count of 'captured_main' from 26 to 32.
11342 (test_with_self): Allow xmalloc call to be interleaved with the
11343 preceding two lines.
11347 * gdb.base/bang.exp: New testcase.
11351 * gdb.base/langs.exp: Add some tests for the "minimal" language
11356 * gdb.objc/basicclass.exp: Return -1 if we cannot compile
11361 * gdb.base/relocate.exp: Test add-symbol-file with a variable
11366 * gdb.c++/pr-1210.cc: New file.
11367 * gdb.c++/pr-1210.exp: New file.
11371 * lib/mi-support.exp (mi_run_cmd): Expect an MI response to
11376 * gdb.base/attach.exp: Use -1 for the ID of a nonexistent process
11377 on *-*-*bsd* instead of *-*-freebsd*.
11381 * gdb.base/store.exp: Test longest and doublest. Test all
11382 parameters. Weaken return statement match.
11383 * gdb.base/store.c: Add longest and doublest - aka long long and
11384 long double functions. Put all parameters into local register
11385 variables. Use negative values.
11389 * gdb.base/fileio.c: Include <errno.h>, and <sys/wait.h>. Gag
11390 -Wformat errors. Add lost line. Use WEXITSTATUS to get system
11392 * gdb.base/fileio.exp: Disable target when nointerrupts and
11393 noinferiorio, instead of limiting it to remote. Use remote_exec
11398 * gdb.base/float.exp: Add ia64 support.
11402 * gdb.base/fileio.exp: Run only on remote targets.
11406 * gdb.base/fileio.c: New file, testing File-I/O.
11407 * gdb.base/fileio.exp: Ditto.
11411 * gdb.base/shreloc.exp: New file, check symbol values obtained from
11412 shared objects after relocation at load time (gdb PR/1132).
11413 * gdb.base/shreloc.c, gdb.base/shreloc1.c, gdb.base/shreloc2.c:
11414 as above, part of the shared object relocation test.
11418 * gdb.base/readline.exp: Add tests for operate-and-get-next with a
11419 fully filled history list.
11420 * gdb.base/gdb_history: New file.
11422 * gdb.base/signals.exp: XFAIL "continue to func1" on
11425 * gdb.base/attach.exp: When trying to attach to a nonexistent
11426 process, make it possible to specify the PID based on the target,
11427 and do so for *-*-freebsd*.
11431 * gdb.base/float.exp: Add expected regexp for alpha-*-*.
11435 * gdb.base/selftest.exp: Next over lim_at_start initialization.
11439 * gdb.base/dump.exp [alpha*-*-*]: Add -taso linker switch.
11443 * gdb.asm/asm-source.exp: Dissassemble from &globalvar instead
11448 * gdb.asm/asm-source.exp: Check for memory read errors in
11449 disassembler test on *BSD too.
11453 * gdb.asm/alpha.inc (gdbasm_enter): Use numeric register names
11455 (gdbasm_call): Lose ldgp.
11456 (gdbasm_startup): Add frame information.
11457 * gdb.asm/asm-source.exp (alpha*-*): Add -no-mdebug to asm-flags.
11461 * gdb.base/float.exp: Expect similar output for x86_64-*-* as for
11466 * gdb.asm/asm-source.exp: Make sure the final link succeeds on
11471 * gdb.asm/alpha.inc: New file.
11472 * gdb.asm/asm-source.exp: Use it.
11476 * gdb.base/corefile.exp: Find corefiles on Linux, which names them
11481 * gdb.base/corefile.exp: Tolerate stuff after argument parens in
11486 * gdb.c++/namespace1.cc: Actually do 'cvs add' before committing
11491 * gdb.c++/rtti.exp: New file, containing tests for PR c++/488.
11492 * gdb.c++/rtti.h, gdb.c++/rtti1.cc, gdb.c++/rtti2.cc: Ditto.
11496 * gdb.c++/namespace.exp: Add namespace scope and anonymous
11498 Bump copyright date.
11499 * gdb.c++/namespace.cc: Add anonymous namespace and namespace C.
11500 (main): Call C::D::marker2.
11501 * gdb.c++/namespace1.cc: New file.
11506 * gdb.threads/linux-dp.exp: Account for fact that in nptl model
11507 there is no manager thread.
11511 * gdb.threads/schedlock.exp: Remove assumption that all threads
11512 will run in a particular small time slice. Also ensure we break
11513 in one of the child threads rather than the main thread.
11517 Add support for assembly source testing on the s390x.
11518 * gdb.asm/asm-source.exp: Add a case for the s390x-*-*
11520 * gdb.asm/s390x.inc: New file.
11522 * gdb.asm/asm-source.exp: Use a 'switch -glob' statement, not a
11523 succession of 'if' statements.
11527 * gdb.base/maint.exp: Add tests for "maint print dummy-frames".
11531 * gdb.base/watchpoint.exp: Rename CALL_DUMMY_BREAKPOINT_OFFSET to
11532 DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET in comments.
11536 * gdb.base/charset.exp: Update based on new behavior of set/show
11541 * gdb.asm/asm-source.exp: Check that "disassm" and "x/i" of a
11542 variable do not give memory errors.
11546 * Makefile.in (ALL_SUBDIRS): Add gdb.objc
11547 * configure.in (AC_OUTPUT): Add gdb.objc/Makefile
11548 * gdb.objc/Makefile.in, gdb.objc/basicclass.exp,
11549 gdb.objc/basicclass.m: : New files
11551 * lib/gdb.exp (gdb_compile_objc): New procedure.
11555 * gdb.base/signals.exp: Make backtrace tests more specific.
11559 * gdb.c++/maint.exp (test_first_component): Add tests for
11560 'operator' in more locations.
11564 * gdb.base/args.exp: Invoke gdb_load for simulator targets.
11568 * gdb.base/completion.exp: Make 'info func mark' complete on 'info
11569 func marke' instead. Update test name.
11573 * gdb.c++/maint.exp: New file.
11577 * gdb.threads/schedlock.c: Change type of thread function argument
11578 to long, to avoid warnings on 64-bit platforms.
11582 * gdb.base/attach.exp: Add new message from ptrace in case of
11583 attaching to nonexistent process.
11587 * gdb.c++/derivation.exp, gdb.c++/overload.exp,
11588 gdb.c++/userdef.cc: Place comments on the lines to which the
11589 marker function might return.
11590 * gdb.c++/derivation.exp, gdb.c++/overload.exp,
11591 gdb.c++/userdef.exp: Look for those comments to check that we've
11592 returned to the right place, instead of checking line numbers.
11596 * gdb.threads/pthreads.exp (test_startup): When setting a breakpoint
11597 match on sourcefile name, instead of directory name.
11601 * gdb.base/completion.exp: Use string_to_regexp to match the
11602 working directory name.
11606 * gdb.c++/derivation.exp, gdb.c++/overload.exp,
11607 gdb.c++/userdef.exp: If GDB fails to restore the selected frame
11608 after an inferior function call, report the failure, but allow the
11613 * gdb.base/break.exp: marker4() is defined at line 46 when compiled
11618 * gdb.base/break.exp: Revert last patch.
11622 * gdb.base/break.exp: marker4() is defined at line 46 when compiled
11627 * gdb.base/callfuncs.exp: Make "print add" messages unique.
11628 * gdb.base/ending-run.exp: Put spaces around "breakpoint" to stop
11629 matching directories by the name breakpoint.
11630 * gdb.base/pointers.exp: Make "ptype pppC" message consistent.
11631 Make "continue to marker1" consistent.
11632 * gdb.base/call-rt-st.exp: Make "finish out from loop_count"
11633 message consistent.
11634 * lib/gdb.exp: Put "the program is no longer running", and "the
11635 program exited" in parenthesis.
11636 * lib/mi-support.exp: Ditto.
11640 * gdb.mi/mi-file.exp: New file for -file-list-exec-source-file.
11644 * gdb.base/sizeof.c (main): Print the value of '\377'.
11645 * gdb.base/sizeof.exp: Check the sign of '\377'.
11649 * gdb.base/gdb1090.exp: New file.
11650 * gdb.base/gdb1090.cc: New file.
11654 * gdb.gdb/observer.exp: New regression test.
11658 * gdb.base/list.exp: Remove setup_xfail_format for DWARF 1.
11659 * gdb.base/ptype.exp: Likewise.
11663 * gdb.c++/casts.exp: Fix startup to run also on embedded targets.
11667 * gdb.base/ptype.exp: Actually use some typedef'd types.
11671 * gdb.asm/asm-source.exp: Set asm-arch for m6811 and m6812.
11672 * gdb.asm/m68hc11.inc: New file for HC11/HC12 macros.
11676 * gdb.base/default.exp: Fix regular expression.
11680 * gdb.base/args.exp: Fix regular expression.
11684 * gdb.base/help.exp: Allow Win32 child process.
11688 * gdb.base/ending-run.exp: Check for Cygwin specific wrapper function
11689 when stepping out of main().
11693 * gdb.base/default.exp: Check for win32 specific message when calling
11694 "run" without executable.
11698 * gdb.base/args.exp: Expect .exe in output.
11702 * gdb.asm/asm-source.exp: Add appropriate --entry linker flag for
11709 * gdb.arch/e500-regs.c, gdb.arch/e500-regs.exp: New files.
11710 * gdb.arch/e500-abi.c, gdb.arch/e500-abi.exp: New files.
11714 * gdb.base/watchpoint.exp (test_watchpoint_and_breakpoint): New
11715 test, for PR breakpoints/38.
11716 Call test_watchpoint_and_breakpoint.
11717 * gdb.base/watchpoint.c (func3): New function.
11718 (main): Call func3.
11722 * gdb.c++/templates.exp (do_tests): Accept valid const in "print
11723 Garply<Garply<char> >:: garply".
11724 (test_ptype_of_templates): KFAIL "ptype T5<int>" and "ptype t5i"
11725 with respect to PR c++/1111; note also PR c++/1113.
11726 (test_template_breakpoints): KFAIL "constructor breakpoint" with
11727 respect to PR c++/1062.
11728 KFAIL "destructor breakpoint" with respect to PR c++/1112.
11732 * gdb.c++/classes.exp (test_enums): KFAIL "ptype obj_with_enum"
11733 with respect to PR c++/57.
11734 KFAIL "print (ClassWithEnum::PrivEnum) 42" with respect to PR
11736 Create "print ('ClassWithEnum::PrivEnum') 42"; KFAIL it with
11737 respect to PR c++/57.
11741 * gdb.c++/templates.exp (do_tests): Convert the KFAILs with
11742 respect to PR c++/33 into FAILs.
11746 * configure.in: Update copyright years.
11750 * Makefile.in: Update copyright years.
11754 * gdb.c++/classes.exp (test_ptype_class_objects): Accept it if we
11755 print class instead of struct and/or superfluous protection
11756 specifiers, as long as the resulting output is equivalent to the
11758 Delete FIXME from end of messages on tests that don't need
11763 * gdb.c++/templates.exp (do_tests): Allow const in the two
11764 Foo<volatile char *>::foo tests.
11768 * gdb.base/restore.c (main): Return zero, so exit code
11769 will be consistant.
11773 * gdb.c++/templates.exp (do_tests): KFAIL the "print Foo<volatile
11774 char *>::foo" test with respect to PR c++/33. Create a new test
11775 which is identical to that one except that it doesn't put the
11776 space between the "char" and the "*"; KFAIL it, too.
11780 * gdb.c++/templates.exp (do_tests): Convert XFAILs about printing
11781 template types into either PASSes or KFAILs (corresponding to PR
11782 c++/57). Tweak indentation. Update copyright.
11786 * lib/gdb.exp: Don't execute C++ tests on m6811/m6812 targets.
11790 * gdb.base/exprs.exp: Remove i960 remnants.
11791 * gdb.base/funcargs.exp: Likewise.
11792 * gdb.base/list.exp: Likewise.
11793 * gdb.base/ptype.exp: Likewise.
11797 * gdb.c++/virtfunc.exp (test_virtual_calls): Change 'print
11798 pEe->D::vg()" from XFAIL to KFAIL.
11802 * gdb.base/maint.exp: Update maint print statistics regexp to include
11807 * gdb.c++/inherit.exp: Remove call to get_debug_format.
11811 * gdb.c++/classes.exp: Remove setup_xfail_format for DWARF 1.
11812 * gdb.c++/inherit.exp: Likewise.
11813 * gdb.c++/cplusfuncs.exp: Remove suppression logic for DWARF 1.
11814 * gdb.c++/templates.exp: Likewise.
11815 * gdb.c++/virtfunc.exp: Likewise.
11819 * gdb.mi/mi-syn-frame.c (subroutine): Add a comment explaining
11820 why the code is written that way.
11824 * gdb.base/dump.exp: Add missing copyright line.
11828 * gdb.mi/mi-syn-frame.c (subroutine): Add an extra statement
11829 at the beginning so the breakpoint doesn't get set on the loop.
11833 * gdb.c++/local.exp: Relax the test for PR gdb/825 to accept
11834 output for configurations with gcc 2.95.3.
11839 * gdb.mi/mi-cli.exp: New file.
11843 * gdb.c++/anon-union.exp: Do not call gdb_suppress_entire_file.
11844 Call perror and then continue.
11848 * gdb.c++/pr-1023.cc: New file.
11849 * gdb.c++/pr-1023.exp: New file.
11853 * gdb.c++/local.exp: Don't expect Local to be in scope in main;
11854 it's local to foobar. Check for it there, and check that it's not
11856 * gdb.c++/local.cc (marker2): New function.
11857 (foobar): Call marker1.
11858 (main): Call marker2 instead of marker1.
11862 * gdb.disasm/mn10200.exp: Obsolete file.
11863 * gdb.trace/Makefile.in (clean mostlyclean): Remove mn10200.
11864 * gdb.disasm/Makefile.in (clean mostlyclean): Remove mn10200.
11865 * gdb.base/watchpoint.exp: Mark the mn10200 xfails as obsolete.
11869 * gdb.c++/overload.exp: Test intToChar(1).
11870 * gdb.c++/overload.cc (intToChar): New.
11871 (main): Call intToChar.
11875 * gdb.c++/ovldbreak.exp (continue_to_bp_overloaded): Add
11877 KFAIL some of the continue_to_bp_overloaded calls, according to
11882 * gdb.base/advance.c (marker1): New marker function.
11883 * gdb.base/advance.exp: When the 'advance' command lands on the
11884 return breakpoint, it can legitimately stop on either the
11885 current line or the next line. Accommodate both outcomes.
11886 * gdb.base/until.exp: Likewise.
11891 * gdb.mi/mi-var-child.exp: -var-list-children's CHILDREN field is
11892 now a list, not a tuple.
11893 * gdb.mi/mi-var-display.exp: Ditto.
11894 * gdb.mi/gdb792.exp: Ditto.
11899 * gdb.mi/mi-syn-frame.exp: New tests for synthetic frames in
11901 * gdb.mi/mi-syn-frame.c: Part of same.
11905 * gdb.mi/gdb669.exp, gdb.mi/mi-pthreads.exp,
11906 gdb.mi/mi1-pthreads.exp: Return instead of calling
11907 gdb_suppress_entire_file.
11911 * gdb.asm/arm.inc (gdbasm_startup): Clear frame pointer, not sp.
11915 * lib/mi-support.exp (mi_gdb_load): Support remote targets.
11920 * lib/gdb.exp: Revert patch of 2003-01-06, which set LC_ALL.
11921 This was a workaround for a UTF-8 bug in readline 4.3. The bug
11922 has been fixed in gdb/readline on 2003-01-09.
11926 * gdb.base/maint.exp: Allow for leading underscore in symbol.
11927 * gdb.base/display.exp: Allow for leading underscore in symbol.
11928 * gdb.base/args.exp: Skip if target does not support args passing.
11932 * lib/gdb.exp (gdb_test_multiple): New function, cloned from
11933 gdb_test. Accept a list of expect arguments as the third
11935 (gdb_test): Use it.
11939 * gdb.arch/altivec-abi.exp: Set variable 'srcfile' differently, to
11940 allow for different test tree configurations. Update some
11941 tescases accordingly.
11942 * gdb.arch/altivec-regs.exp: Ditto.
11943 * gdb.asm/asm-source.exp: Ditto.
11944 * gdb.base/advance.exp: Ditto.
11945 * gdb.base/display.exp: Ditto.
11946 * gdb.base/long_long.exp: Ditto.
11947 * gdb.base/mips_pro.exp: Ditto.
11948 * gdb.base/overlays.exp: Ditto.
11949 * gdb.base/relocate.exp: Ditto.
11950 * gdb.base/setshow.exp: Ditto.
11951 * gdb.base/step-line.exp: Ditto.
11952 * gdb.base/step-test.exp: Ditto.
11953 * gdb.base/until.exp: Ditto.
11954 * gdb.c++/virtfunc.exp: Get rid of variable 'src'.
11958 * gdb.c++/demangle.exp (test_lucid_style_demangling): KFAIL test
11959 corresponding to PR c++/945.
11964 * gdb.c++/inherit.exp (test_print_mi_members): KFAIL tests
11965 corresponding to PR c++/68.
11969 * gdb.c++/cplusfuncs.exp (print_addr_2_kfail): New procedure.
11970 (test_paddr_hairy_functions): Call print_addr_2_kfail for
11971 hairyfunc5 through hairyfunc7. KFAIL for PR c++/19.
11975 * gdb.base/break.exp: Fix change of default location, because of
11976 removal of until tests.
11977 * gdb.base/help.exp: Update test for new 'until' help message.
11978 Add test for help on 'advance'.
11979 * gdb.base/args.exp: Fix foobar with GDBFLAGS global.
11983 * gdb.base/default.exp: Adapt "info float" test for recent changes
11984 to that command. Add test for "info vector".
11985 * gdb.base/float.exp: New file. Add test for "info float" that
11986 resembles the old test in gdb.base/default.exp.
11990 * gdb.base/selftest.exp (do_steps_and_nexts): Allow gdb_sysroot.
11994 * gdb.base/break.exp: Move the tests of until command from here...
11995 * gdb.base/until.exp: ... to here. New file. Add other tests.
11996 * gdb.base/advance.c: New file.
11997 * gdb.base/advance.exp: New file.
12001 * gdb.base/args.c: New file.
12002 * gdb.base/args.exp: New file.
12006 * gdb.c++/virtfunc.exp: Remove fixed XFAIL.
12010 * gdb.threads/killed.exp: Use KFAIL for gdb/568.
12014 * gdb.base/constvars.exp: Remove two extra XFAILs. Update copyright
12019 * gdb.c++/printmethod.exp (print virtual method): Accept "(void)".
12023 * gdb.base/printcmds.exp: Enable setup_kfail for gdb/538
12025 * gdb.c++/local.exp: Enable setup_kfail for gdb/482.
12029 * gdb.mi/mi-console.exp: Remove extra "(known bug)".
12030 * gdb.mi/mi1-console.exp: Likewise.
12034 * gdb.mi/mi-console.exp: Add KFAIL for "Hello message (known bug)".
12035 * gdb.mi/mi1-console.exp: Likewise.
12039 * gdb.c++/overload.exp: Remove some fixed XFAILs.
12043 * gdb.base/detach.exp: New test.
12047 * Makefile.in (ALL_SUBDIRS): New variable.
12048 (subdirs, clean, distclean): Use it.
12049 * gdb.arch/Makefile.in: Clean up Makefile. Remove rules for
12050 regenerating Makefile, since it is generated from the top level.
12051 * gdb.asm/Makefile.in: Likewise.
12052 * gdb.base/Makefile.in: Likewise.
12053 * gdb.c++/Makefile.in: Likewise.
12054 * gdb.disasm/Makefile.in: Likewise.
12055 * gdb.java/Makefile.in: Likewise.
12056 * gdb.mi/Makefile.in: Likewise.
12057 * gdb.threads/Makefile.in: Likewise.
12058 * gdb.trace/Makefile.in: Likewise.
12062 * gdb.c++/annota2.exp: KFAIL "watch triggered on a.x".
12063 Add copyright year 2003.
12067 * gdb.mi/mi-pthreads.exp (check_mi_thread_command_set):
12068 When selecting a thread, 'line' and 'file' are optional.
12069 * gdb.mi/mi1-pthreads.exp: Likewise.
12073 * lib/gdb.exp: Set LC_ALL to "C" to avoid spurious testsuite
12079 * lib/gdb.exp (gdb_compile): Handle "quiet" option.
12080 (gdb_compile_pthreads): Pass "quiet" to gdb_compile.
12082 * gdb.threads/gcore-thread.exp: Use gdb_compile_pthreads. Return
12083 instead of calling gdb_suppress_entire_file.
12084 * gdb.threads/print-threads.exp: Likewise.
12085 * gdb.threads/schedlock.exp: Likewise.
12087 * gdb.threads/killed.exp: Return instead of calling
12088 gdb_suppress_entire_file.
12089 * gdb.threads/linux-dp.exp: Likewise.
12090 * gdb.threads/pthreads.exp: Likewise.
12094 * gdb.base/callfuncs.exp: Don't XFAIL unprototyped functions for
12096 * gdb.base/completion.exp: Allow marker1(void) as well as marker1().
12097 * gdb.base/whatis.exp: Always allow (void) after function names.
12101 * gdb.c++/casts.exp: Correct regexp.
12105 * configure.in: Call AC_CONFIG_HEADER. Don't call
12106 AC_CONFIG_SUBDIRS on gdb.arch, gdb.asm, gdb.base gdb.c++ gdb.java,
12107 gdb.disasm, gdb.mi, gdb.threads and gdb.trace. Call
12108 AC_CHECK_HEADERS on pthread.h. Put Makefiles in the
12109 aforementioned directories in the AC_OUPUT call.
12110 * config.hin: New file.
12111 * gdb.mi/gdb669.exp, gdb.mi/mi-pthreads.exp,
12112 gdb.mi/mi1-pthreads.exp, gdb.threads/gcore-thread.exp,
12113 gdb.threads/killed.exp, gdb.threads/print-threads.exp,
12114 gdb.threads/pthreads.exp, gdb.threads/schedlock.exp: Make sure we
12115 pass -I$objdir instead of -I$objdir/$subdir in compilation.
12116 * gdb.arch/configure.in, gdb.arch/configure, gdb.asm/configure.in,
12117 gdb.asm/configure, gdb.base/configure.in, gdb.base/configure,
12118 gdb.c++/configure.in, gdb.c++/configure, gdb.disasm/configure.in,
12119 gdb.disasm/configure, gdb.java/configure.in, gdb.java/configure,
12120 gdb.mi/configure.in, gdb.mi/configure, gdb.mi/config.in,
12121 gdb.threads/configure.in, gdb.threads/configure,
12122 gdb.threads/config.in, gdb.trace/configure.in,
12123 gdb.trace/configure: Removed.
12127 * gdb.base/miscexprs.c: Fix PR gdb/697, "buglet in
12128 testsuite/gdb.base/miscexprs.c, off-by-1 array reference".
12132 * gdb.base/store.exp: Fix regular expressions.
12136 * configure.in: Rewrite.
12137 * configure: Regenerated.
12141 * gdb.base/psymtab.exp: New file.
12142 * gdb.base/psymtab1.c: Ditto.
12143 * gdb.base/psymtab2.c: Ditto.
12147 * gdb.base/maint.exp: Update expect output to include 'ObjC'.
12151 * gdb.base/selftest.exp (do_steps_and_nexts): Allow initial brace
12152 and current_directory initialization.
12156 * gdb.trace/tfind.exp: Pass '-O1' flag via the 'optimize' option,
12157 rather than as part of the output file name.
12159 * gdb.base/attach.exp: There's no need to copy the test program to
12160 /tmp; that was only ever necessary on HP/UX, and this test is
12161 entirely disabled there anyway.
12165 * gdb.c++/psmang.exp: Doc fix.
12167 * gdb.c++/psmang.exp, gdb.c++/psmang1.cc, gdb.c++/psmang2.cc: New
12172 * gdb.c++/annota2.exp: KFAIL annotate-quit.
12176 * gdb.c++/annota2.exp: Add copyright year 2002.
12180 * gdb.c++/try_catch.cc: Add marker comments.
12181 * gdb.c++/try_catch.exp: Get line numbers from marker comments.
12182 * gdb.c++/m-data.cc: Delete namespace __gnu_test.
12183 * gdb.c++/m-static.cc: Ditto.
12184 * gdb.c++/m-static1.cc: Ditto.
12185 * gdb.c++/try_catch.cc: Ditto.
12189 * lib/mi-support.exp (mi_reinitialize_dir): Check mi level
12190 to see whether we are using the new -environment-directory
12191 command which resets via -r or the old version of the command
12192 which may prompt the user. Part of fix for gdb/741.
12196 * gdb.fortran/types.exp: Update obsolete comment.
12197 * gdb.fortran/exprs.exp: Ditto.
12198 * lib/gdb.exp: Delete obsolete code.
12199 * gdb.chill/ChangeLog, gdb.chill/Makefile.in: Delete.
12200 * gdb.chill/builtins.ch, gdb.chill/builtins.exp: Delete.
12201 * gdb.chill/callch.ch, gdb.chill/callch.exp: Delete.
12202 * gdb.chill/chexp.exp, gdb.chill/chillvars.ch: Delete.
12203 * gdb.chill/chillvars.exp, gdb.chill/configure: Delete.
12204 * gdb.chill/configure.in, gdb.chill/enum.ch: Delete.
12205 * gdb.chill/enum.exp, gdb.chill/func1.ch: Delete.
12206 * gdb.chill/gch1041.ch, gdb.chill/gch1041.exp: Delete.
12207 * gdb.chill/gch1272.ch, gdb.chill/gch1272.exp: Delete.
12208 * gdb.chill/gch1280.ch, gdb.chill/gch1280.exp: Delete.
12209 * gdb.chill/gch922.ch, gdb.chill/gch922.exp: Delete.
12210 * gdb.chill/gch981.ch, gdb.chill/gch981.exp: Delete.
12211 * gdb.chill/misc.ch, gdb.chill/misc.exp: Delete.
12212 * gdb.chill/powerset.ch, gdb.chill/powerset.exp: Delete.
12213 * gdb.chill/pr-4975-grt.ch, gdb.chill/pr-4975.ch: Delete.
12214 * gdb.chill/pr-4975.exp, gdb.chill/pr-5016.ch: Delete.
12215 * gdb.chill/pr-5016.exp, gdb.chill/pr-5020.ch: Delete.
12216 * gdb.chill/pr-5020.exp, gdb.chill/pr-5022.ch: Delete.
12217 * gdb.chill/pr-5022.exp, gdb.chill/pr-5646-grt.ch: Delete.
12218 * gdb.chill/pr-5646.ch, gdb.chill/pr-5646.exp: Delete.
12219 * gdb.chill/pr-5984.ch, gdb.chill/pr-5984.exp: Delete.
12220 * gdb.chill/pr-6292.ch, gdb.chill/pr-6292.exp: Delete.
12221 * gdb.chill/pr-6632-grt.ch, gdb.chill/pr-6632.ch: Delete.
12222 * gdb.chill/pr-6632.exp, gdb.chill/pr-8134.exp: Delete.
12223 * gdb.chill/pr-8136.ch, gdb.chill/pr-8136.exp: Delete.
12224 * gdb.chill/pr-8405.ch, gdb.chill/pr-8405.exp: Delete.
12225 * gdb.chill/pr-8742.ch, gdb.chill/pr-8742.exp: Delete.
12226 * gdb.chill/pr-8894-grt.ch, gdb.chill/pr-8894.ch: Delete.
12227 * gdb.chill/pr-8894.exp, gdb.chill/pr-9095.ch: Delete.
12228 * gdb.chill/pr-9095.exp, gdb.chill/pr-9946.ch: Delete.
12229 * gdb.chill/pr-9946.exp, gdb.chill/result.ch: Delete.
12230 * gdb.chill/result.exp, gdb.chill/string.ch: Delete.
12231 * gdb.chill/string.exp, gdb.chill/tests1.ch: Delete.
12232 * gdb.chill/tests1.exp, gdb.chill/tests2.ch: Delete.
12233 * gdb.chill/tests2.exp, gdb.chill/tuples.ch: Delete.
12234 * gdb.chill/tuples.exp, gdb.chill/xstruct-grt.ch: Delete.
12235 * gdb.chill/xstruct.ch, gdb.chill/xstruct.exp: Delete.
12239 * gdb.c++/m-data.exp: Add test for members that shadow global
12240 variables: see PR gdb/804.
12241 * gdb.c++/m-data.cc: Ditto.
12245 * gdb.base/foll-vfork.exp: Re-enable test on HP/UX.
12249 * gdb.base/store.c: Don't declare functions static.
12253 * gdb.base/store.exp, gdb.base/store.c: New files.
12257 * gdb.base/selftest.exp: Update for current gdb.
12261 * gdb.base/maint.exp: Only dump symbols from one source file
12266 * gdb.base/step-test.exp: Allow MIPS to return to the line of a
12271 * lib/mi-support.exp (mi_delete_breakpoints): Change name of
12272 function appearing in error message.
12276 * gdb.base/maint.exp (help maint dump-me): Update with typo fix.
12280 * lib/mi-support.exp (mi_gdb_start): Verify the startup message
12281 for mi1 and current mi is in correct format. New mi startup message
12282 should be in mi console format. This is part of fix for PR gdb/604.
12286 * gdb.asm/asm-source.exp: Adjust patter to new disassembler routine
12287 which explicitly prints the zero offset as "+0".
12291 * gdb.threads/schedlock.c (args): Make unsigned.
12295 * gdb.asm/asm-source.exp: Add "mips*-*" pattern. Update line
12296 numbers. Allow "foo2|selected stack frame".
12297 * gdb.asm/asmsrc1.s: Use gdbasm_declare and gdbasm_end.
12298 * gdb.asm/asmsrc2.s: Likewise.
12299 * gdb.asm/common.inc: Define gdbasm_declare and gdbasm_end. Update
12301 * gdb.asm/mips.inc: New file.
12305 * gdb.base/default.exp: Update expected output to include 'ObjC'.
12306 * gdb.base/help.exp: Likewise.
12310 * gdb.base/constvars.c (struct crass, struct crisp): New structs.
12311 * gdb.base/constvars.exp (ptype crass, ptype crisp): New tests.
12315 * gdb.c++/casts.cc, gdb.c++/casts.exp: New test.
12319 * mi1-basics.exp: Copy of mi1-basics.exp MIFLAGS set "-i=mi1".
12320 * mi1-break.exp, mi1-console.exp, mi1-disassemble.exp: Ditto.
12321 * mi1-eval.exp, mi1-hack-cli.exp, mi1-pthreads.exp: Ditto.
12322 * mi1-read-memory.exp, mi1-regs.exp, mi1-return.exp: Ditto.
12323 * mi1-simplerun.exp, mi1-stack.exp, mi1-stepi.exp: Ditto.
12324 * mi1-until.exp, mi1-var-block.exp, mi1-var-child.exp: Ditto.
12325 * mi1-var-cmd.exp, mi1-var-display.exp, mi1-watch.exp: Ditto.
12329 * mi0-basics.exp, mi0-break.exp, mi0-console.exp: Delete.
12330 * mi0-disassemble.exp, mi0-eval.exp: Delete.
12331 * mi0-hack-cli.exp, mi0-read-memory.exp: Delete.
12332 * mi0-regs.exp, mi0-return.exp, mi0-simplerun.exp: Delete.
12333 * mi0-stack.exp, mi0-stepi.exp, mi0-until.exp: Delete.
12334 * mi0-var-block.exp, mi0-var-child.exp: Delete.
12335 * mi0-var-cmd.exp, mi0-var-display.exp, mi0-watch.exp: Delete.
12339 * gdb.base/annota1.exp (info break): Make directory components of
12340 path optional since not all compilers emit this debug information.
12342 * gdb.base/shlib-call.exp (step inside shr2): Don't fail if first
12343 step ends up stepping out of the function instead of stopping on
12348 * lib/insight-support.exp (gdbtk_start): Figure out where
12349 the insight executable is based on where gdb is. Use this
12350 executable to start insight instead of gdb.
12354 * gdb.base/pc-fp.exp, gdb.base/pc-fp.c: New test.
12358 * gdb.gdb/complaints.exp (test_initial_complaints): Rename
12359 test_isolated_complaints.
12360 (test_empty_complaint): New function.
12361 (test_empty_complaints): New function. Check no output when no
12366 * gdb.base/charset.exp, gdb.base/charset.c: New files.
12370 * gdb.gdb/complaints.exp: New file.
12374 * gdb.base/maint.exp: Check `help maint internal-warning'.
12378 * gdb.c++/m-static.exp: Remove breakpoints depending on line
12379 numbers, and replace them by a single breakpoint after the
12380 constructors are all finished.
12382 * gdb.c++/m-static.cc: Add test 4.
12383 * gdb.c++/m-static.h: New file.
12384 * gdb.c++/m-static1.cc: New file.
12386 * gdb.c++/printmethod.exp: New file.
12387 * gdb.c++/printmethod.cc: New file.
12389 * gdb.c++/pr-574.exp: New file.
12390 * gdb.c++/pr-574.cc: New file.
12394 * gdb.base/ending-run.exp: Add handling of "step to end of run" for
12395 embedded targets which never actually exit.
12399 * gdb.base/ending-run.exp: Properly mark "continue after exit" and
12400 "don't step after run" as unresolved or unsupported, instead of xfail.
12404 * gdb.base/ending-run.exp: Fix expected string for _wrap_main to
12405 allow correct handling of #ifdef UNDERSCORES from dejagnu/testglue.c.
12406 Add newline to expected string in "step out of main (status wrapper)"
12411 * lib/gdb.exp (rerun_to_main): Allow restarting application.
12412 * gdb.base/ena-dis-br.exp (rerun_to_main): Eliminate.
12416 * gdb.base/printcmds.exp (test_print_string_constants): Expect
12417 \000, not \0, in double-quoted string.
12421 * gdb.base/commands.exp: Don't expect a "Program exited normally"
12422 string after running the commands execution on breakpoint tests.
12426 * lib/gdb.exp (gdb_continue_to_end): Fix typo in expected string.
12430 * gdb.base/call-strs.exp: Fix a small typo in one of the comments.
12434 * lib/mi-support.exp (mi_runto): New proc. Does the same as gdb's
12436 (mi_run_to_main): Use mi_runto.
12437 (mi_execute_to): Renamed from mi_run_to. Changed all callers.
12441 * lib/mi-support.exp: (mi_run_to_main): Allow anything to precede
12442 regexp for stopping at main. Could have multiple event notifications.
12443 Don't assume that main was declared with no parameters.
12444 (mi_next): Use mi_step_to.
12445 (mi_step): Use mi_next_to.
12449 * gdb.base/default.exp: Fix expected string in `info float' test.
12453 * config/mips.exp: Update comments.
12454 * config/mips-idt.exp: Likewise.
12455 * config/nind.exp: Likewise.
12456 * config/slite.exp: Likewise.
12457 * config/sparclet.exp: Likewise.
12458 * config/udi.exp: Likewise.
12459 * config/vx.exp: Likewise.
12460 * config/vxworks29k.exp: Likewise.
12464 * gdb.threads/killed.exp: Fix test failure message.
12468 * lib/mi-support.exp: Update copyright.
12469 (mi_gdb_test): Increase the priority of the expected pattern
12470 so that it matches gdb_test.
12474 * lib/gdb.exp (gdb_compile_pthreads): Fix "build_bin" typo.
12475 Use integer comparison instead of string comparison for testing
12476 whether binary was built.
12480 * gdb.threads/killed.exp, gdb.threads/killed.c: New test.
12484 * gdb.threads/pthreads.exp: Move the portable thread compilation
12485 code into a function in lib/gdb.exp, and call that from here.
12486 * lib/gdb.exp (gdb_compile_pthreads): New function.
12490 * lib/mi-support.exp (mi_gdb_test): Add global declaration for
12491 expect_out so that callers can get at it.
12495 * gdb.threads/print-threads.c: New file.
12496 * gdb.threads/print-threads.exp: New file.
12497 * gdb.threads/schedlock.c: New file.
12498 * gdb.threads/schedlock.exp: New file.
12502 * gdb.arch/altivec-abi.exp: The source C file is altivec-abi.c,
12507 * gdb.base/return.exp: Remove i*86-*-* from list of xfail'ed
12508 targets. The problem should be fixed now.
12512 * gdb.java/jv-print.exp: Fix p '' and p ''' tests to deal with
12513 2002-07-24 change that removes final dots from error messages.
12517 * gdb.base/readline.exp: New file.
12521 * lib/gdb.exp (gdb_expect_list): Only print one pass, fail, or
12526 * Makefile.in (TARGET_FLAGS_TO_PASS): Remove CHILLFLAGS, CHILL,
12527 CHILL_FOR_TARGET and CHILL_LIB.
12528 * configure.in (configdirs): Remove gdb.chill.
12529 * configure: Regenerate.
12530 * lib/gdb.exp: Obsolete references to chill.
12531 * gdb.fortran/types.exp: Ditto.
12532 * gdb.fortran/exprs.exp: Ditto.
12536 * gdb.base/shlib-call.exp (additional_flags): Conditionally
12537 set Irix-specific compile and link flags.
12541 * lib/gdb.exp (mips*-*-irix*): Use alternate method for preprocessing
12542 source files. The ``-o'' option doesn't work with the ``-E'' option
12543 when using the Irix compiler.
12547 * config/gdbserver.exp (gdb_load): Don't use TCL varargs.
12548 Improve support for reusing an exec file. Copy exec file
12549 to target, and run gdbserver on the target instead of on the host.
12553 * gdb.base/ending-run.exp: Don't expect to see the program end in
12554 some orderly fashion when we're running on a real stand-alone
12557 * gdb.base/interrupt.exp: Correct logic for skipping tests on
12558 targets that don't support interrupts.
12562 * gdb.base/attach.exp: Add patterns to match output from /proc-based
12564 Move comments in expect statements to inside the actions, so that they
12565 don't get matched against.
12569 * gdb.base/interrupt.exp: Setup xfail for all i386 BSD's on "call
12570 function when asleep" test.
12574 * gdb.base/page.exp: Rewrite to handle problems with very long
12575 `info set' output. Update copyright.
12579 * gdb.hp/configure.in (AC_CONFIG_SUBDIRS): Do not try to configure
12581 * gdb.hp/configure: Regenerate.
12582 * gdb.hp/gdb.threads-hp/configure.in: Delete file.
12583 * gdb.hp/gdb.threads-hp/configure: Delete file.
12584 * gdb.hp/gdb.threads-hp/Makefile.in: Delete file.
12588 * gdb.base/selftest.exp (do_stes_and_next): Skip calls to
12589 setlocale, bindtextdomain and textdomain.
12593 * lib/gdb.exp (get_debug_format): Tolerate message saying whether
12594 preprocessor macro information is present.
12596 * macscp.exp, macscp1.c, macscp2.h, macscp3.h, macscp4.h: New
12601 * gdb.base/overlays.exp: Record addresses of overlay
12602 functions in TCL variables rather than in GDB variables,
12603 to avoid having GDB convert them to pointers (with loss
12606 * gdb.base/d10v.ld: Merge in several years worth of
12607 default linker script changes.
12608 * gdb.base/long_long.exp: Add check for sizeof (long double).
12612 * gdb.asm/asm-source.exp: Add x86-64 target.
12613 * gdb.asm/x86_64.inc: New.
12618 * gdb.c++/m-static.cc: New file.
12619 * gdb.c++/m-static.exp: New file.
12623 * gdb.base/call-ar-st.exp: Allow for reduced floating point
12629 * gdb.c++/m-data.cc: New file.
12630 * gdb.c++/m-data.exp: New file.
12635 * gdb.c++/try_catch.cc: New file.
12636 * gdb.c++/try_catch.exp: New file.
12640 * gdb.c++/local.exp: Accept more nested types in output.
12644 * gdb.base/call-rt-st.exp: Fix typo in brace quoting.
12648 * lib/gdb.exp (gdb_wrapper_init): Just because
12649 gdb_wrapper_file exists, this does not mean that the file
12650 should not be rebuilt. That is what gdb_wrapper_initialized
12652 (default_gdb_init): Reset gdb_wrapper_initialized.
12656 * gdb.base/all-bin.exp: Revise previous patch by just reducing
12657 the precision of the floating point test results.
12658 * gdb.base/call-rt-st.exp: Ditto.
12660 * gdb.base/all-bin.exp: Allow for reduced floating point precision.
12661 * gdb.base/call-rt-st.exp: Ditto.
12665 * gdb.c++/inherit.exp: Accept "VTT for ..." in output strings.
12669 * configure.in (configdirs): Add gdb.arch.
12670 * configure: Regenerate.
12674 * gdb.base/completion.exp: Recognize the more detailed error
12675 messages produced by the macro expander's lexical analyzer.
12679 * gdb.arch/altivec-abi.c: New file.
12680 * gdb.arch/altivec-abi.exp: New file.
12681 * gdb.arch/altivec-regs.c: New file.
12682 * gdb.arch/altivec-regs.exp: New file.
12686 * gdb.base/maint.exp (maint print type): Update for new type
12691 * gdb.arch: New directory.
12692 * gdb.arch/configure.in: New file.
12693 * gdb.arch/configure: New file.
12694 * gdb.arch/Makefile.in: New file.
12698 * gdb.asm/asm-source.exp: Add v850 as supported target.
12699 * gdb.asm/v850.inc: New file.
12703 * gdb.c++/annota2.exp (annotate-quit): Add comment.
12707 * gdb.base/break.exp: Check 'break "marker2"'.
12711 * gdb.base/long_long.exp: Fix typo.
12715 * gdb.base/printcmds.exp: Don't xfail the ptype command. This is
12718 * gdb.base/printcmds.exp (test_integer_literals_rejected):
12719 Recognize more detailed error message produced by the macro
12720 expander's lexical analyzer.
12721 * lib/gdb.exp (test_print_reject): Same.
12725 * gdb.c++/method.exp: Fix typo.
12729 * gdb.mi/mi-var-child.exp: Accept (void) as well as ().
12730 * gdb.mi/mi0-var-child.exp: Accept (void) as well as ().
12731 * gdb.base/default.exp: Merge clauses for arm, strongarm, xscale.
12732 * gdb.base/long_long.exp: Merge clauses for arm and xscale.
12733 Add iftarget clause for strongarm.
12737 * lib/gdb.exp (gdb_test): Add case to allow for status wrapper.
12738 (gdb_continue_to_end): Accept output from status wrapper.
12739 * gdb.base/ending-run.exp: Add case for output from status wrapper.
12740 Clean up fail messages to match pass messages.
12742 Enable the "needs_status_wrapper" testsuite feature.
12743 * lib/gdb.exp (gdb_wrapper_init): New procedure.
12744 (gdb_compile): Conditionally call gdb_wrapper_init.
12745 * gdb.base/a2-run.exp: Recognize output from status wrapper.
12746 * gdb.c++/method.exp: Recognize output from status wrapper.
12751 * config/sid.exp: Include support for "rawsid" protocol.
12755 * gdb.c++/hang.exp: Check for corruption of the cv_type chain.
12756 * gdb.c++/hang3.C: New file.
12760 * gdb.base/default.exp: Remove obsolete code.
12761 * gdb.c++/misc.exp: Ditto. Update copyright.
12762 * gdb.c++/cplusfuncs.exp: Ditto. Update copyright.
12763 * gdb.base/whatis.exp: Ditto. Update copyright.
12764 * gdb.base/scope.exp: Ditto. Update copyright.
12765 * gdb.base/ptype.exp: Ditto. Update copyright.
12766 * gdb.base/printcmds.exp: Ditto. Update copyright.
12767 * gdb.base/opaque.exp: Ditto. Update copyright.
12768 * gdb.base/list.exp: Ditto.
12769 * gdb.base/funcargs.exp: Ditto. Update copyright.
12770 * gdb.hp/gdb.threads-hp/usrthbasic.c: Delete.
12771 * gdb.hp/gdb.threads-hp/usrthbasic.exp: Delete.
12772 * gdb.hp/gdb.threads-hp/usrthcore.c: Delete.
12773 * gdb.hp/gdb.threads-hp/usrthcore.exp: Delete.
12774 * gdb.hp/gdb.threads-hp/usrthfork.c: Delete.
12775 * gdb.hp/gdb.threads-hp/usrthfork.exp: Delete.
12779 * gdb.base/watchpoint.exp: Add xscale target.
12780 * gdb.base/long_long.exp: Add xscale target.
12781 * gdb.base/default.exp: Add xscale target.
12785 * gdb.c++/hang1.C, gdb.c++/hang2.C, gdb.c++/hang.H,
12786 gdb.c++/hang.exp: New test.
12790 * gdb.base/completion.exp: Handle completions of "./Make" for
12791 more than one completion possibility, as is the case when we
12792 build and test in the source tree.
12796 * gdb.java/jmisc1.exp: New file.
12797 * gdb.java/jmisc2.exp: New file.
12801 * gdb.threads/linux-dp.exp: Use 'unset' instead of 'array unset'.
12805 * gdb.base/help.exp: Change 'help status' to allow for target
12806 dependent output differences.
12810 * gdb.c++/local.exp: Add PR numbers: gdb/482, gdb/483.
12814 * gdb.c++/method.exp: Fix syntax of reference to gdb/277.
12818 * gdb.asm/sparc64.inc: New file.
12819 * gdb.asm/asm-source.exp: Handle sparc64-*-*.
12823 * gdb.asm/asm-source.exp: Don't use a symlink, just copy the
12824 instruction file directly into the build tree. Clean up at end of
12829 * gdb.base/annota1.exp: Expect addresses as $hex + whitespace to
12830 handle 64-bit platforms correctly.
12831 * gdb.base/maint.exp: Likewise.
12835 * gdb.base/shlib-call.exp (additional_flags): AIX doesn't need
12836 ``-fpic'' when compiling files comprising a shared library, but
12837 it does need additional linker flags in order to find shared
12838 libraries at run time.
12842 * gdb.base/cvexpr.c (use): New function.
12843 (main): Invoke use() on all global variables to prevent
12844 some linkers from deleting these otherwise unused symbols.
12849 * gdb.c++/ovldbreak.exp: Expect addresses as $hex + whitespace to
12850 handle 64-bit platforms correctly.
12854 * gdb.base/foo.c (foox): Remove section attribute; the linker
12855 script can handle this instead.
12856 * gdb.base/bar.c (barx): Same.
12857 * gdb.base/baz.c (bazx): Same.
12858 * gdb.base/grbx.c (grbxx): Same.
12860 * gdb.base/overlays.exp: New test: check that GDB's manual overlay
12861 manager doesn't automatically unmap overlays unnecessarily.
12865 * gdb.base/ending-run.exp: Fix pattern for Mips targets
12866 stepping out of main.
12870 * gdb.c++/local.cc (main): Move call to marker1() inside nested
12871 scope so that the nested scope tests will make sense.
12872 * gdb.c++/local.exp: Write patterns that actually work with gcc
12873 (the HP patterns "were never known to work with gcc").
12874 Keep the old aCC patterns too.
12878 * gdb.base/attach.exp: Correct target board test.
12882 * gdb.c++/method.exp: Require "const ... A * ..." for "ptype this"
12883 in a const method. Add some xfail and fail cases for configurations
12884 that do not emit the "const ...".
12888 * gdb.c++/method.exp: Use gdb_test instead of send_gdb/gdb_expect.
12889 Accept "A * const" and "const A * const" as type of "this".
12890 Fix spelling of getFunky throughout. Make messages uniform.
12894 Work around for PR gdb/285:
12895 * gdb.asm/asm-source.exp: Bail out if multilibs are detected.
12899 * gdb.asm/asm-source.exp: Build symbolic link to arch specific
12900 instructions file at run time instead of configure time.
12901 Sometimes we run the test in a directory that is not the one we
12903 * gdb.asm/configure.in: Delete creation of symlink.
12904 * gdb.asm/configure: Regenerate.
12908 * gdb.gdb/xfullpath.exp: New test, to exercise the new
12909 xfullpath () function.
12913 * gdb.asm/Makefile.in: Correct dependencies.
12915 * gdb.asm/powerpc.inc: New file.
12916 * gdb.asm/asm-source.exp: Add PowerPC.
12917 * gdb.asm/configure.in: Likewise.
12918 * gdb.asm/configure: Regenerated.
12922 * gdb.base/relocate.exp: New file.
12923 * gdb.base/relocate.c: New file.
12927 * gdb.base/step-test.exp: Update comment regarding stopping in
12928 memcpy/bcopy calls inserted as part of the compiler runtime.
12932 * gdb.base/ovlymgr.c: Add overlay event breakpoint support.
12936 * lib/gdb.exp (gdb_test): Move -notransfer inside of gdb_expect.
12937 (gdb_expect): Remove $notransfer hack.
12941 * gdb.c++/classes.exp ("calling method for small class"): Match
12942 updated register output.
12947 * gdb.base/dbx.exp: Restore old definition of gdb_file_cmd
12948 when finished. Make gdb_file_cmd send "exec-file" when
12953 * gdb.base/attach.exp: Remove extra setup_xfail.
12957 * gdb.base/default.exp: Add tests for dump, append, and restore.
12958 * gdb.base/help.exp: Add tests for dump, append, and restore.
12959 * gdb.base/dump.exp: New file, test dump, append and restore.
12960 * gdb.base/dump.c: New file.
12964 * gdb.base/help.exp: Modify expect strings to reflect
12965 clean-ups in help messages.
12969 * gdb.base/step-test.exp: Accept stopping in memcpy/bcopy when we
12970 have debugging info for those functions and the compiler uses them
12971 internally to copy structs around.
12975 * gdb.base/list.exp: Revert the change made yesterday and add note
12976 about why we don't list the default lines for remote targets.
12980 * gdb.base/help.exp: Clean up unnecessary wild cards in regexps.
12984 * gdb.base/list.exp: This test works on remote targets so remove
12985 the short circuit for remote targets. Update copyright.
12989 * gdb.base/attach.exp: Fix logic error that was suppressing this
12990 test for all non hppa*-*-hpux* targets, instead of the hp target.
12991 Move comments closer to the suppression point. Also now need to
12992 check that we are running natively.
12996 * gdb.base/default.exp: Add test for gcore. Update copyright.
12997 * gdb.base/help.exp: Add test for gcore. Update copyright.
13001 * gdb.base/funcargs.c: Remove extraneous ';' character.
13002 * gdb.trace/gdb_c_test.c: Remove extraneous ';' character.
13006 * gdb.mi/mi-var-cmd.exp: In test "create local variable func",
13007 accommodate gcc v3 function signature.
13008 * gdb.mi/mi0-var-cmd-exp: Ditto.
13012 * testsuite/gdb.base/huge.c: Replace ``Linux'' with either
13013 ``GNU/Linux'' or ``Linux kernel''
13014 * testsuite/gdb.threads/pthreads.c: Ditto.
13018 * gdb.threads/pthreads.c (thread1): Add a return statement.
13019 (thread2): Likewise.
13024 * gdb.threads/linux-dp.c (philosopher): Add a return statement
13029 * gdb.c++/templates.exp: Remove setup_xfail_format "stabs" on
13030 test "ptype bint". The test passes on all my stabs configurations.
13034 * gdb.asm/asm-source.exp: Parse the output from `info sources' one
13035 filename at a time, and watch for the ones we want to see.
13037 * gdb.base/ptype.exp, gdb.base/ptype.c: Add tests for printing
13038 types of pointers to prototyped functions.
13042 * gdb.base/sizeof.c (main): Call fill_structs. Print value of
13043 signed, unsigned and straight char.
13044 (padding_char, padding_short, padding_int, padding_long,
13045 padding_long_long, padding_float, padding_double,
13046 padding_long_double): New global variables.
13047 (fill, fill_structs): New functions.
13049 * gdb.base/sizeof.exp: Check for signed and unsigned char. Check
13050 for correctly sized writes. Update copyright.
13051 (get_valueof): New procedure.
13052 (get_sizeof): Call get_valueof.
13053 (check_valueof): New procedure.
13054 (check_padding): New procedure.
13058 * gdb.c++/virtfunc.exp (test_virtual_calls): Remove obsolete calls
13059 to setup_xfail. Document some of the remaining calls.
13063 * gdb.c++/userdef.exp: Update copyright year.
13067 * gdb.c++/userdef.exp: Test overloaded operators properly.
13072 * gdb.base/gcore.exp: Relax recognition of function breakpoint.
13076 * gdb.base/a2-run.exp: Check for a remote target properly.
13077 * gdb.base/annota1.exp: Likewise.
13078 * gdb.base/list.exp: Likewise.
13079 * gdb.base/reread.exp: Likewise.
13080 * gdb.base/scope.exp: Likewise.
13081 * gdb.base/shlib-call.exp: Likewise.
13082 * gdb.base/term.exp: Likewise.
13083 * gdb.c++/annota2.exp: Likewise.
13087 * gdb.base/watchpoint.exp: Restore previous timeout at end of test.
13091 * gdb.base/funcargs.c (localvars_after_alloca): Fix return type.
13092 (call_after_alloca): Ditto.
13096 * gdb.base/ending-run.exp: Guard "cont" test with
13097 gdb_skip_stdio_test.
13101 * gdb.base/callfwmall.c, gdb.base/callfwmall.exp: Move these tests
13103 * gdb.hp/gdb.base-hp/callfwmall.c, gdb.hp/gdb.base-hp/callfwmall.exp:
13104 To here. Disable this test on non-HP platforms. Add big comment.
13108 * gdb.base/ovlymgr.c (ovly_copy): Generalize for targets
13109 other than d10v and m32r.
13113 * gdb.base/default.exp: Rewrite test patterns to reduce time
13114 taken to match them.
13118 * gdb.base/annota1.exp (backtrace from shlibrary): Fix spelling.
13119 Allow a start function above main.
13120 * gdb.threads/linux-dp.exp: Fix copyright date.
13124 * gdb.threads/linux-dp.exp: Use 'array unset', not 'array set'.
13125 (check_philosopher_stack): Check for manager thread before checking
13126 for a just-starting thread.
13131 * gdb.base/bitfields.c: Correct assignments to bitfields to avoid
13136 * gdb.base/restore.exp (restore_tests): Fix obvious typo, callee
13141 * gdb.base/reread.exp: Check that GDB properly re-reads the
13142 executable file when it changes while no inferior is running.
13146 * gdb.base/maint.exp: Simplify the "maint info breakpoints" test to
13147 optionally accept the "shlib events" variation.
13151 * gdb.base/ending-run.c (main): Avoid messing with setvbuf; just
13152 call `fflush' after every `printf', so that the output is produced
13153 at predictable points, regardless of whatever buffering does (or
13154 doesn't) take place.
13155 * gdb.base/ending-run.exp: Adjust tests to expect output to appear
13156 at different points.
13160 * gdb.c++/inherit.exp: Update copyright years.
13161 * gdb.c++/method.exp: Likewise.
13165 * gdb.c++/classes.exp: Update for improved v3 support and skipping
13166 artificial methods/arguments.
13167 * gdb.c++/derivation.exp: Likewise.
13168 * gdb.c++/inherit.exp: Likewise.
13169 * gdb.c++/method.exp: Likewise.
13170 * gdb.c++/virtfunc.exp: Likewise.
13174 * gdb.hp/gdb.threads-hp/usrthfork.exp: Mark as obsolete.
13175 * gdb.hp/gdb.threads-hp/usrthcore.exp: Ditto.
13176 * gdb.hp/gdb.threads-hp/usrthbasic.exp: Ditto.
13177 * gdb.hp/gdb.threads-hp/usrthfork.c: Ditto.
13178 * gdb.hp/gdb.threads-hp/usrthbasic.c: Ditto.
13179 * gdb.hp/gdb.threads-hp/usrthcore.c: Ditto.
13183 * gdb.asm/asm-source.exp (info symbol): Take another shot at
13184 anchoring the pattern matching the entry point symbol's name.
13188 * gdb.base/maint.exp: Update ``maint internal-error'' to match
13189 continue/quit query. Update copyright.
13193 * gdb.base/gcore.exp: Remove extra debugging output.
13197 * gdb.c++/demangle.exp: Accept slightly dubious v2 demangler result
13198 for slightly dubious v2 mangled string.
13202 * gdb.base/completion.exp: Expand ${srcdir} to an absolute path.
13206 * gdb.c++/namespace.exp: Accept trailing const for 'this'.
13208 * gdb.c++/classes.exp: Accept 'A const' or 'const A' in copy
13210 * gdb.c++/derivation.exp: Likewise.
13211 * gdb.c++/templates.exp: Likewise.
13212 * gdb.c++/virtfunc.exp: Likewise.
13216 * gdb.c++/namespace.exp: Accept both '\0' and '\000'.
13220 * gdb.base/gcore.exp: New test for generate-core-file command.
13221 * gdb.base/gcore.c: Testcase for above.
13222 * gdb.threads/gcore-thread.exp: New test for gcore (threaded).
13226 * gdb.c++/userdef.cc: Use <iostream> instead of <iostream.h>.
13230 * gdb.c++/overload.exp: Remove unconditional xfails for:
13231 print foo_instance1.overloadargs(1)
13232 print foo_instance1.overloadargs(1, 2)
13233 print foo_instance1.overloadargs(1, 2, 3)
13234 print foo_instance1.overloadargs(1, 2, 3, 4)
13235 print foo_instance1.overloadargs(1, 2, 3, 4, 5)
13236 print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6)
13237 print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6, 7)
13238 print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6, 7, 8)
13239 print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6, 7, 8, 9)
13240 print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
13241 print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
13242 print foo_instance1.overload1arg()
13243 print foo_instance1.overload1arg((char)arg2)
13244 print foo_instance1.overload1arg((signed char)arg3)
13245 print foo_instance1.overload1arg((unsigned char)arg4)
13246 print foo_instance1.overload1arg((int)arg7)
13247 print foo_instance1.overload1arg((unsigned int)arg8)
13248 print foo_instance1.overload1arg((float)arg11)
13249 print foo_instance1.overload1arg((double)arg12)
13253 * gdb.base/huge.exp: New test. Print a very large target data object.
13254 (skip_huge_test): New test variable. Define if you want to skip this
13255 test. The test reads an 8 megabyte data object from the target, so it
13256 might be very time consuming on remote targets with a slow connection.
13257 * gdb.base/huge.c: New file. Test case for above.
13261 * gdb.c++/derivation.exp: Remove gcc xfails for g_instance.afoo,
13262 g_instance.bfoo, and g_instance.cfoo.
13266 * gdb.base/break.c (multi_line_if_conditional): New function.
13267 (multi_ilne_while_conditional): Likewise.
13268 * gdb.base/break.exp: Verify that a breakpoint on a multi-line
13269 IF or WHILE condition puts the breakpoint at the start of
13272 * gdb.base/selftest.exp (backtrace through signal handler): Remove
13273 hppa*-*-hpux* expected failure.
13274 * gdb.base/structs.exp (do_function_calls): Similarly.
13276 * gdb.c++/annota2.exp (watch triggered on a.x): Handle hardware
13282 * gdb.base/structs.exp: Replace skip for a29k with skip for
13283 gdb,cannot_call_functions.
13284 * gdb.base/call-ar-st.exp: Remove references to a29k in comments.
13285 * gdb.base/callfuncs.exp: Ditto.
13286 * gdb.base/call-rt-st.exp: Ditto.
13287 * gdb.base/call-strs.exp: Ditto.
13288 * gdb.base/callfwmall.exp: Ditto.
13289 * gdb.base/scope.exp: Obsolete xfail a29k.
13290 * gdb.c++/misc.exp: Ditto.
13291 * gdb.c++/cplusfuncs.exp: Ditto.
13292 * gdb.base/ptype.exp: Ditto.
13293 * gdb.base/printcmds.exp: Ditto.
13294 * gdb.base/opaque.exp: Ditto.
13295 * gdb.base/list.exp: Ditto.
13296 * gdb.base/funcargs.exp: Ditto.
13297 * gdb.base/default.exp: Ditto.
13301 * gdb.base/info-proc.exp: New file, test for "info proc" cmd.
13302 * gdb.base/maint.exp: Add tests for maint info sections options.
13306 * gdb.base/default.exp: Remove bogus hppa*-hp-hpux* xfails.
13310 * gdb.asm/arm.inc: New file.
13311 * gdb.asm/asm-source.exp: Add arm targets.
13312 * gdb.asm/configure.in: Ditto.
13313 * gdb.asm/configure: Recreated from configure.in.
13317 * gdb.hp/gdb.defects/bs15503.exp: Only run this test if compiling
13318 with HP's compiler.
13319 * gdb.hp/gdb.objdbg/objdbg01.exp: Likewise.
13320 * gdb.hp/gdb.objdbg/objdbg02.exp: Likewise.
13321 * gdb.hp/gdb.objdbg/objdbg03.exp: Likewise.
13322 * gdb.hp/gdb.objdbg/objdbg04.exp: Likewise.
13324 * gdb.hp/gdb.defects/solib-d.exp: Update to handle building with
13325 either HP's compilers or GCC.
13327 * gdb.hp/gdb.base-hp/hwwatchbus.exp: Allow inferior to get either
13328 a SIGBUS or SIGSEGV.
13330 * gdb.hp/gdb.base-hp/so-thresh.exp: Remove useless send_user command.
13332 * gdb.hp/gdb.defects/bs14602.exp: Revamp slightly so that test
13333 can be compiled with either HP's compiler or GCC.
13335 * gdb.hp/gdb.threads-hp/usrthbasic.exp: Disable completely.
13336 * gdb.hp/gdb.threads-hp/usrthcore.exp: Disable completely.
13337 * gdb.hp/gdb.threads-hp/usrthfork.exp: Disable completely.
13339 * gdb.hp/gdb.base-hp/so-thresh.exp: Update text in expect strings
13340 to match current gdb output. Update due to using auto-solib-limit
13341 for limiting instead of overloading auto-solib-add.
13342 * gdb.hp/gdb.base-hp/so-thresh.mk: Always use "cc" to build the
13345 * gdb.c++/templates.exp: Use "hppa64-*-*", not "hppa2.0w-*-*"
13346 * gdb.hp/gdb.base-hp/dollar.exp: Likewise
13347 * gdb.hp/gdb.base-hp/pxdb.exp: Likewise.
13348 * gdb.hp/gdb.base-hp/reg-pa64.exp: Likewise.
13349 * gdb.hp/gdb.base-hp/reg.exp: Likewise.
13350 * gdb.hp/gdb.compat/xdb3.exp: Likewise.
13351 * gdb.hp/gdb.defects/bs15503.exp: Likewise.
13352 * gdb.hp/gdb.objdbg/objdbg01.exp: Likewise
13353 * gdb.hp/gdb.objdbg/objdbg02.exp: Likewise
13354 * gdb.hp/gdb.objdbg/objdbg03.exp: Likewise
13355 * gdb.hp/gdb.threads-hp/usrthbasic.exp: Likewise.
13356 * gdb.hp/gdb.threads-hp/usrthcore.exp: Likewise.
13357 * gdb.hp/gdb.threads-hp/usrthfork.exp: Likewise.
13359 * gdb.base/annota1.exp: Expect failure for hpux11 when posting
13360 a SIGTRAP to the inferior.
13364 * gdb.asm/asm-source.exp: Drop setting link-flags for xstormy16.
13365 Substitute call to target_link by call to gdb_compile.
13369 * gdb.base/break.exp: Fix HP specific search string when testing
13370 backtracing in a called function.
13372 * gdb.base/constvars.exp: Only set lang to C++ if we're
13373 compiling the test with HP's compilers.
13374 * gdb.base/volatile.exp: Similarly.
13378 * gdb.base/printcmds.exp: Expect the null character to be printed
13379 as '\0', and the '\013' to be printed as '\v'.
13380 * gdb.base/callfuncs.exp ("backtrace at nested call level 4"): Same.
13381 * gdb.base/setvar.exp: Same.
13385 * gdb.base/completion.exp: Rather than completing very long
13386 filenames, which can make the readline library produce output we
13387 don't recognize, cd to the directory first, and then complete
13388 using nice, short relative paths.
13390 * gdb.base/completion.exp: On some systems, there is, in fact, a
13391 variable named `b' in scope, since GDB treats all static
13392 variables as being in scope. So use `no_var_named_this'
13395 * gdb.base/corefile.exp: Recognize the message saying that GDB
13396 can't find the core file's registers as a failure.
13400 * gdb.base/commands.exp (user_defined_command_test): Make "show user"
13401 test expect string more specific.
13405 * gdb.asm/asm-source.exp: Add support for xstormy16.
13406 * gdb.asm/configure.in: Ditto.
13407 * gdb.asm/configure: Rebuild.
13408 * gdb.asm/xstormy16.inc: New file.
13412 * gdb.base/maint.exp: Update to match changes in type dumping code.
13416 * gdb.asm/asm-source.exp (info symbol): Anchor the pattern
13417 matching the entry point symbol's name at the beginning of the
13422 * gdb.c++/classes.exp, gdb.c++/derivation.exp,
13423 gdb.c++/inherit.exp, gdb.c++/method.exp,
13424 gdb.c++/namespace.exp, gdb.c++/templates.exp,
13425 gdb.c++/userdef.exp, gdb.c++/virtfunc.exp: Updates for v3 demangler
13426 and class layout support.
13430 * gdb.c++/classes.exp: Add test for static member function.
13431 * gdb.c++/misc.cc: Add class with static member function.
13435 If GDB says it can't find the struct the function returned, report
13436 those tests as `unsupported'.
13437 * gdb.base/call-rt-st.exp (print_struct_call): New function.
13438 Rewrite subsequent tests to use it.
13440 If GDB says it can't find the struct the function returned, report
13441 those tests as `unsupported'.
13442 * gdb.base/structs.exp (call_struct_func): New function.
13443 (do_function_calls): Use call_struct_func to call the functions
13446 * gdb.base/callfuncs.exp: The stabs generated by GCC don't tell us
13447 whether functions are prototyped or not, so we can't possibly pass
13448 arguments to t_float_values2 properly.
13450 * gdb.base/break.exp: (test_next_with_recursion): Don't change the
13451 value of `timeout' for targets other than the mips*tx39-*.
13455 * gdb.asm/asm-source.exp: Add tests for info target, info symbol,
13456 and detect whether the start symbol has a leading underscore.
13460 * gdb.base/completion.exp: Clarify indentation.
13464 * gdb.asm/s390.inc (gdbasm_datavar): Use `.long' to create `int'
13465 variables on the S/390, not `.word'.
13469 Add assembly-source tests for s390-ibm-linux.
13470 * gdb.asm/s390.inc: New file.
13471 * gdb.asm/configure.in, gdb.asm/asm-source.exp: Add clauses for
13472 the S/390 architecture.
13473 * gdb.asm/configure: Regenerated.
13477 * gdb.asm/asm-source.exp: Add tests for list, search, finish, return,
13478 next, info source, info sources, info line, global and static
13479 variables, and static functions.
13480 * gdb.asm/common.inc: New macro gdbasm_datavar (default definition).
13481 * gdb.asm/i386.inc: Override default definition of gdbasm_datavar.
13482 * gdb.asm/asmsrc1.s: Add a static function and some variables.
13483 * gdb.asm/asmsrc2.s: Make foo2 call foo3 twice (to test 'next').
13484 * gdb.asm/d10v.inc (gdbasm_enter): Set up frame pointer.
13485 (gdbasm_leave): Restore frame pointer.
13486 (gdbasm_startup): Copy stack set-up from crt0.S.
13491 * gdb.base/callfuncs.c (t_structs_a): Do not return a pointer
13492 to a local (non-static) variable. Copy tstruct.a to a static buffer
13493 and return a pointer to that buffer.
13494 * gdb.base/callfwmall.c (t_structs_a): Ditto.
13498 * gdb.asm/configure.in: Fix recognition of ix86 target.
13499 * gdb.asm/configure: Regenerate.
13503 * gdb.asm/sparc.inc: New file.
13504 * gdb.asm/asm-source.exp: Recognize sparc target.
13505 * gdb.asm/configure.in: Recognize sparc target.
13506 * gdb.asm/configure: Regenerate.
13510 * gdb.asm/m32r.inc: New file.
13511 * gdb.asm/asm-source.exp: Recognize m32r target.
13512 * gdb.asm/configure.in: Recognize m32r target.
13513 * gdb.asm/configure: Regenerate.
13517 * gdb.asm/i386.inc: New file.
13518 * gdb.asm/asm-source.exp: Recognize ix86 target.
13519 * gdb.asm/configure.in: Recognize ix86 target.
13520 * gdb.asm/configure: Regenerate.
13522 * gdb.c++/namespace.exp: Fix quotes in output messages.
13526 * gdb.base/code-expr.exp: New file. Tests use of the "@code"
13527 qualifier in a type cast expression, to designate an address
13528 in the instruction space (Harvard architecture).
13532 * gdb.base/cvexpr.c, gdb.base/cvexpr.exp: New files.
13533 Tests for expressions using 'const' and 'volatile'.
13537 * gdb.asm/asm-sources.exp: Allow defining linker flags.
13541 * lib/mi-support.exp (mi_run_to_helper): Move comments
13542 outside of gdb_expect.
13546 * lib/mi-support.exp: (mi_run_to_helper, mi_run_to,
13547 mi_step_to, mi_next_to, mi_continue_to, mi_finish_to,
13548 mi0_step_to, mi0_next_to, mi0_continue_to, mi0_finish_to,
13549 mi0_run_to): New functions.
13550 * gdb.mi/mi-simplerun.exp: Use them.
13551 * gdb.mi/mi0-simplerun.exp: Likewise.
13552 * gdb.mi/mi-var-cmd.exp: Likewise.
13553 * gdb.mi/mi0-var-cmd.exp: Likewise.
13557 * gdb.asm/asmsrc1.s: Add ``gdbasm_'' prefix to all macros.
13558 * gdb.asm/asmsrc2.s, gdb.asm/d10v.inc: Update.
13562 * gdb.base/restore.exp: Include $expected value in restored test
13567 * gdb.asm/asm-source.exp: Supress file, instead of skip, when not
13572 * gdb.base/callfuncs.exp: Add tests for nested call dummies.
13573 Add pass/fail message for stop at breakpoint in call dummy function.
13577 * gdb.c++/templates.exp (test_template_breakpoints):
13578 If we get an overload menu, but it does not match what
13579 we expect, we still need to issue the "cancel" command.
13580 * gdb.c++/templates.exp: Replace "void \\*" with "void ?\\*",
13581 making the whitespace optional. Argument for "new" may be
13582 "unsigned" as well as "unsigned int/long".
13583 * gdb.c++/templates.exp: Replace "const &" with "const ?&",
13584 making the whitespace optional. Also replace "(void) with
13585 "((void|)), making the keyword "void" optional.
13586 * gdb.c++/virtfunc.exp: Replace "const &" with "const ?&",
13587 making the whitespace optional. Also replace "(void) with
13588 "((void|)), making the keyword "void" optional.
13589 * gdb.base/callfuncs.c (t_float_values): This function must
13590 _not_ be prototyped, and the following function (t_float_values2)
13591 must be prototyped (if the compiler supports it), so that GDB
13592 can be tested against both cases. Usually one case involves
13593 promotion of float to double, while the other does not.
13594 * gdb.base/callfwmall.c: Ditto.
13595 * gdb.asm/asm-source.exp (bt ALL in foo2): Accept a backtrace that
13596 includes a stack frame for "start".
13600 * gdb.stabs/weird.exp: Delete "p v_comb" test. It assumes that
13601 pointers are 32 bits long, and that offsets of relocs are always
13602 stored in the data (REL-style), and not in the reloc entry itself
13604 * gdb.stabs/weird.def (v_comb, v_comb_shared): Remove symbols and
13609 * gdb.c++/cplusfuncs.exp: Fix conflicts between operator names
13610 and regular expression operators by using quoting.
13614 * gdb.c++/overload.exp: Select overloadfnarg(void) or overloadfnarg(),
13615 depending on what the symbol table contains.
13616 * gdb.c++/derivation.exp: Accept both "foo(void)" and "foo()" in
13617 the output of the ptype command. Similarly, accept both "const &"
13622 * gdb.base/miscexprs.c (main): Add usage of preprocessor
13623 symbol `STORAGE' to allow to choose the storage class of
13624 the local datastructures.
13625 * gdb.base/miscexprs.exp: Handle setting a `-DSTORAGE=...'
13626 compiler directive.
13630 * gdb.base/jump.exp: Allow it to run for all targets.
13634 * gdb.base/call-ar-st.c (print_double_array): Match for loop
13635 with new double_array size.
13636 (main): Change storage class of all local variables to static.
13637 Reduce size of double_array to 9.
13638 * gdb.base/call-ar-st.exp: Increase timeout value.
13639 Change expected output for double array to match new size in
13644 * gdb.base/ending-run.exp: Create identical output when passing
13645 `step to end of run' case. Add regular expression branch satisfying
13650 * gdb.base/interrupt.exp: Treat SIGILL similar to SIGSEGV such
13651 that we catch the expected failure under Linux/x86.
13655 * gdb.base/setvar.exp: Escape curly braces.
13656 * gdb.stabs/weird.exp: Ditto.
13660 * gdb.mi/mi-hack-cli.exp: Remove excess newlines from test strings.
13661 * gdm.mi/mi0-hack-cli.exp: Likewise.
13665 * gdb.stabs/weird.exp: Unify ``variable VAR printed properly''
13670 * lib/mi-support.exp (mi_gdb_start): Don't require MI_OUT when
13671 checking MI enabled.
13675 * gdb.base/maint.exp: Treat $EXEEXT as optional in output.
13679 * lib/insight-support.exp (gdbtk_start): Don't exit dejagnu
13680 if gdb child process crashes, just signal an error.
13684 * lib/gdb.exp (test_xfail_format): Simplify.
13686 * lib/gdb.exp (setup_xfail_format): Don't forget to put a `$' in
13687 front of the variable name `format'. Simplify `if'.
13691 * gdb.threads/pthreads.exp: Wait for output and delay
13696 * gdb.mi/mi-var-display.exp (continue to incr_a): Recognize
13697 some incorrect output instead of timing out.
13698 * gdb.mi/mi-var-display.exp (continue to incr_a): Likewise.
13702 * gdb.base/volatile.exp (local_compiler_xfail_check): Change qux2
13703 check to allow additional `int'.
13707 * gdb.base/completion.exp: Remove incorrect 'p "a' test.
13708 Add tests for 'p "break' (pass) and 'p "break.' (xfail).
13712 * lib/gdb.exp (test_debug_format): New proc.
13713 (setup_xfail_format): Use new proc test_debug_format.
13714 * gdb.base/constvars.exp (local_compiler_xfail_check): New
13715 proc; use new service proc test_debug_format.
13716 Replace all other "gcc_compiled" tests with this test.
13717 * gdb.base/volatile.exp (local_compiler_xfail_check): New
13718 proc; use new service proc test_debug_format.
13719 Replace all other "gcc_compiled" tests with this test.
13723 * gdb.base/cvexpr.exp: New file.
13724 * gdb.base/cvexpr.c: New file
13725 Test for expressions using const and volatile keywords.
13729 * gdb.base/constvars.exp: Check for different orders of keywords
13730 and additional "int" strings in output.
13734 * gdb.base/maint.exp: Add "maintenance set/show" to list of valid
13735 responses from "help maint".
13739 * lib/insight-support.exp (_gdbtk_xvfb_init): Set DISPLAY
13740 to localhost:NNN instead of :NNN, in case Xvfb is listening
13745 * gdb.base/recurse.exp: When checking leaving the watchpoint
13746 scope, recognize when gdb is in function's epilogue and pass.
13750 * lib/insight-support.exp (_gdbtk_export_target_info): Add
13751 support for running tests against sid targets.
13752 (gdbtk_done): Ditto.
13756 * gdb.base/ending-run.c (main): Set stdout buffersize
13757 to the same reasonable value for any target.
13758 * gdb.base/ending-run.exp: Add a regular expression
13759 to make testsuite happy on Sanyo Stormy16 target.
13763 * gdb.base/display.c (do_loops): Add float variable `f'.
13764 Increment f in loop.
13765 * gdb.base/display.exp: Increment timeout by 60 seconds.
13766 Change float display test to use variable `f'.
13770 * gdb.base/restore.exp: Use temporary breakpoints, to avoid
13771 overflowing the limited breakpoint tables on some ROM monitors
13776 * lib/insight-support.exp (_gdbtk_xvfb_init): Start Xvfb with
13777 the "-ac" (disable access control) flag.
13781 * gdb.base/remote.c: Use a small buffer for targets with 16-bit
13786 * lib/gdb.exp: Move all insight-related functionality into
13788 * lib/insight-support.exp: New file.
13792 * config/sid.exp (sid_start): Never set sid verbosity; disable
13793 expect_background {} that consumed its stdout; tolerate </dev/null.
13794 Attempt to set endianness override in "sid" protocol mode. Cleanup.
13798 * lib/mi-support.exp (mi_gdb_start): If a remote target, use the
13799 CLI jump command to start it.
13800 (mi_run_to_main): Fail immediatly when unexpected output.
13804 * lib/mi-support.exp (mi_gdb_start): Move call to sid_start to
13805 beginning of function. Fix PR gdb/191.
13809 * config/sid.exp (sid_start): Don't warn if we cannot figure out
13810 what to force sid endianness to.
13814 * lib/gdb.exp (gdbtk_start): Don't set environment
13815 variables for TCL_LIBRARY and friends. Insight will
13816 now figure these out for itself.
13820 * gdb.base/completion.exp: Remove the symbol "a64l" from
13821 the expect string; this is target-specific, and not related
13822 to what is being tested.
13826 * config/sid.exp: Rename gdb-socket to cpu-gdb-socket.
13830 * gdb.base/consecutive.exp: New file. Test stepping over
13831 breakpoints on consecutive instructions.
13832 * gdb.base/consecutive.c: New file.
13834 * gdb.base/call-rt-st.exp: Use double-backslash to quote
13835 curly braces in regular expressions.
13839 * gdb.base/ending-run.exp: Accept "Program exited normally" as
13840 legitimate output from stepping out of main.
13844 * lib/gdb.exp (_gdbtk_xvfb_init): If GDB_DISPLAY is
13845 the empty string, do not run the tests.
13849 * gdb.base/long_long.exp: Detect size of pointer. Take into
13850 account 2-byte pointers when testing for p/a results.
13854 * gdb.base/remote.c (RANDOM_DATA_SIZE): New define, defaults to 48K
13855 and defined to 1K for m68hc11.
13856 (random_data): Reduce table to 1K for embedded platforms (68hc11).
13857 * gdb.base/remote.exp (get_sizeof): New function from sizeof.exp.
13858 (sizeof_random_data): New variable to tell the size of the data table;
13859 don't test past this size; always run to main.
13863 * gdb.base/return2.exp: return of long long and double fails for
13864 68HC11; don't execute these tests on that platform.
13865 * gdb.base/return.exp: Return of a double fails for 68hc11.
13869 * call-ar-st.exp: Use gdb_skip_float_test to avoid executing
13870 tests that print a float.
13871 * call-rt-st.exp: Likewise.
13875 * gdb.base/so-impl-ld.exp: Remove stray space that prevented
13876 running this test on Linux.
13880 * gdb.base/arithmet.exp: Remove some tests to make all test names
13885 * gdb.c++/classes.exp: Accept both "foo(void)" and "foo()" in
13886 the output of the ptype command.
13890 * gdb.base/completion.exp: Don't assume that break.c is the only
13891 source file that may contain functions named "marker".
13892 * gdb.base/corefile.exp: Quote the curly braces in regexp.
13896 * gdb.disasm/Makefile.in (clean mostlyclean): Add h8300s to list
13897 of files to delete.
13900 * gdb.disasm/h8300s.exp: New file.
13901 gdb.disasm/h8300s.s: Likewise.
13905 * lib/mi-support.exp (mi_delete_breakpoints): Accept mi1 format
13906 empty breakpoint tables.
13910 * lib/mi-support.exp: Update args=... part of stop-reason
13911 patterns. Accept either a list or a tuple.
13915 * lib/mi-support.exp: Remove local emacs variable defining
13916 change-log-default-name.
13920 * gdb.base/arithmet.exp: Use gdb_test instead of send_gdb/gdb_expect.
13921 This is operationally compatible with the previous version.
13925 * lib/gdb.exp (gdb_test): Doc fix.
13929 * gdb.base/exprs.exp: Remove a duplicate test.
13933 * gdb.base/return2.exp (main): Use values to test float and double
13934 returns that are not NaN's, to avoid being confused by IEEE
13939 * gdb.threads/pthreads.exp (check_control_c): Return 0 for success,
13940 non-zero if control_c fails. Terminate the test on failure,
13941 rather than wait for 12 more tests to time out.
13945 * gdb.base/exprs.exp ("sizeof (long long) > sizeof (long) (true)"):
13946 Don't forget to match the GDB prompt.
13948 * gdb.trace/gdb_c_test.c, actions.c: Fix misspellings.
13952 * gdb.base/help.exp: Update pattern to exclude `print-load-map'
13957 * gdb.base/annota1.exp (info break): Match four or more spaces
13962 * gdb.c++/cplusfuncs.cc (dm_type_char_star): Remove superfluous cast.
13963 (dm_type_int_star): Likewise.
13964 (dm_type_long_star): Likewise.
13965 (dm_type_void_star): Likewise.
13969 * gdb.base/completion.exp (INPUTRC): Set this environment variable
13970 to a known value in order to get consistent results regardless
13971 of the setting of INPUTRC or the presence or contents of .inputrc.
13975 * gdb.threads/linux-dp.exp: Remove assumptions about thread ordering.
13976 Don't require that the main thread and the manager thread are the
13979 * gdb.threads/pthreads.exp (test_startup): Relax test for thread
13980 debugging. If test fails, issue an "unsupported" not a "fail".
13984 Don't assume that short is shorter than int.
13985 * gdb.base/exprs.exp ("print unsigned short == (~0)"): Don't
13986 assume that shorts are smaller than ints. On a 16-bit machine,
13988 ("print unsigned char == (~0)"): Add test that verifies that ~0,
13989 an int, is not equal to ~0 stored in an unsigned char. This tests
13990 the same thing that the previous test meant to, but works on
13991 16-bit machines, too.
13992 ("print unsigned char != (~0)"): Same test, complemented.
13996 * gdb.threads/pthreads.exp (all_threads_running): Add an explicit
13997 test for (full_coverage == 0). This makes the test run faster,
13998 and prevents dejagnu getting out of step.
14002 * gdb.base/finish.exp (finish_void): Revise pattern for
14003 stopping on the call statement to not permit stopping at
14004 the start of the instructions comprising the call sequence.
14008 * gdb.base/callfuncs.exp: Make all test names unique.
14009 * gdb.base/commands.exp: Make all test names unique.
14010 * gdb.base/condbreak.exp: Make all test names unique.
14011 * gdb.base/dbx.exp: Make all test names unique.
14012 * gdb.base/default.exp: Make all test names unique.
14013 * gdb.base/define.exp: Make all test names unique. Conform some FAIL
14014 and TIMEOUT messages to their corresponding PASS message.
14015 * gdb.base/ending-run.exp: Make all test names unique.
14016 * gdb.base/long_long.exp: Remove duplicate test.
14020 * gdb.base/finish.exp (finish_void): Allow "finish" command to
14021 stop on the call statement as well as the statement after the
14026 * gdb.base/long_long.exp: Allow for targets with 4-byte short.
14030 * gdb.base/completion.exp: Revamp test. Make it execute on all
14035 * config/gdbserver.exp (gdb_load): Handle the case
14036 in which the arguments to gdbserver are given in the
14037 baseboard configuration file.
14038 Also handle the case in which the server needs to do a
14043 * lib/gdb.exp (gdbtk_initialize_display): New proc which will
14044 set up the display for testing.
14045 (gdbtk_start): Convert all paths to paths that tcl will like.
14046 Export target information to environment.
14047 (_gdbtk_xvfb_init): New proc to start Xvfb if available and
14049 (_gdbtk_xvfb_exit): New proc to kill Xvfb if necessary.
14050 (to_tcl_path): New proc to convert a given pathname into
14051 a path acceptible as an argument to a tcl command.
14052 (_gdbtk_export_target_info): New proc to export target info
14053 into the environment for gdbtk testing.
14054 (gdbtk_done): New proc to signal end-of-test.
14058 * restore.c: Make the code of caller0 correspond to its comment.
14062 * config/sid.exp (gdb_target_sid): Check for error messages.
14063 On error or timeout, don't make expect exit (which will terminate
14064 all subsequent tests); instead just make gdb exit.
14065 (gdb_load): Check for error messages. On error or timeout,
14066 return a negative value.
14070 * gdb.c++/templates.exp: If we see the prompt for the overload
14071 list, but we haven't recognized any of the longer patterns,
14072 arrange for this test to fail, not hang.
14074 * gdb.c++/classes.exp (ptype class A): Tolerate whitespace
14079 * gdb.c++/local.exp: Use the 'runto' library function.
14080 * gdb.c++/namespace.exp: Likewise.
14081 * gdb.c++/overload.exp: Likewise.
14085 * gdb.base/Makefile.in (EXECUTABLES): Add step-line.
14086 * gdb.base/step-line.exp: New file. Test step/next in presence of
14088 * gdb.base/step-line.c: New file. Test program for the above.
14089 * gdb.base/step-line.inp: New file. We pretend that this file has
14090 been transformed by some other tool into step-line.c.
14094 * gdb.c++/userdef.exp: Check that GDB tolerates whitespace in
14095 unmangled operator names.
14099 * gdb.threads/linux-dp.exp: Recognize an additional message
14100 generated by GDB when it doesn't understand how to debug threads
14101 on the target system.
14105 * gdb.mi/mi-console.exp: Document ``Hello'' as a known bug.
14109 * gdb.c++/derivation.exp: Use the 'runto' library function.
14113 * gdb.c++/annota2.exp: Fix regular expression for "post-query".
14117 * gdb.c++/ref-types.exp: Change handwritten code to library
14122 * gdb.base/signals.exp: Set count to 0 explicitly.
14126 * config/monitor.exp (gdb_target_cmd): Add explicit error return.
14127 (gdb_target_monitor): Add check of gdb_target_cmd return value.
14128 (gdb_load): Add support for additional target_info: gdb_download_size
14129 and gdb_load_timeout.
14133 * gdb.base/annota1.exp: Move test of isnative to earlier in the
14134 file -- to prevent failing when the compile fails but we have no
14135 intention of running the tests anyway.
14137 * gdb.base/long_long.exp: Test target_info for no_long_long, skip
14140 * gdb.base/maint.exp: Support 2 byte integers as well as 4 byte
14143 * gdb.c++/ctti.exp: Skip tests if skip_cplus_tests returns true.
14144 * gdb.c++/namespace.exp: Ditto.
14148 * gdb.base/pointers.c: Don't assume doubles are >= 8 bytes.
14149 * gdb.base/pointers.exp: Relax pattern match of decimals.
14153 * Makefile.in, config/abug.exp, config/cfdbug.exp,
14154 config/cpu32bug.exp, config/dve.exp, config/est.exp,
14155 config/gdbserver.exp, config/hmsirom.exp, config/hppro.exp,
14156 config/i960.exp, config/m32r.exp, config/mn10300-eval.exp,
14157 config/monitor.exp, config/proelf.exp, config/rom68k.exp,
14158 config/sh.exp, config/sid.exp, config/slite.exp,
14159 config/sparclet.exp, config/udi.exp, config/unknown.exp,
14160 config/vr4300.exp, config/vr5000.exp, config/vx.exp,
14161 config/vxworks.exp, config/vxworks29k.exp,
14162 gdb.asm/asm-source.exp, gdb.base/a2-run.exp,
14163 gdb.base/all-bin.exp, gdb.base/annota1.exp,
14164 gdb.base/arithmet.exp, gdb.base/assign.exp,
14165 gdb.base/async.exp, gdb.base/attach.exp,
14166 gdb.base/bitfields.exp, gdb.base/bitops.exp,
14167 gdb.base/break.exp, gdb.base/call-ar-st.exp,
14168 gdb.base/call-rt-st.exp, gdb.base/call-strs.exp,
14169 gdb.base/callfuncs.exp, gdb.base/callfwmall.exp,
14170 gdb.base/commands.exp, gdb.base/completion.exp,
14171 gdb.base/cond-expr.exp, gdb.base/condbreak.exp,
14172 gdb.base/constvars.exp, gdb.base/corefile.exp,
14173 gdb.base/dbx.exp, gdb.base/default.exp, gdb.base/define.exp,
14174 gdb.base/display.exp, gdb.base/ena-dis-br.exp,
14175 gdb.base/ending-run.exp, gdb.base/environ.exp,
14176 gdb.base/eval-skip.exp, gdb.base/exprs.exp,
14177 gdb.base/finish.exp, gdb.base/foll-exec.exp,
14178 gdb.base/foll-fork.exp, gdb.base/foll-vfork.exp,
14179 gdb.base/funcargs.exp, gdb.base/help.exp,
14180 gdb.base/interrupt.exp, gdb.base/jump.exp, gdb.base/list.exp,
14181 gdb.base/logical.exp, gdb.base/long_long.exp,
14182 gdb.base/maint.exp, gdb.base/mips_pro.exp,
14183 gdb.base/miscexprs.exp, gdb.base/nodebug.exp,
14184 gdb.base/opaque.exp, gdb.base/overlays.exp, gdb.base/page.exp,
14185 gdb.base/pointers.exp, gdb.base/printcmds.exp,
14186 gdb.base/ptype.exp, gdb.base/radix.exp, gdb.base/recurse.exp,
14187 gdb.base/regs.exp, gdb.base/relational.exp,
14188 gdb.base/remote.exp, gdb.base/reread.exp,
14189 gdb.base/restore.exp, gdb.base/return2.exp,
14190 gdb.base/scope.exp, gdb.base/sect-cmd.exp,
14191 gdb.base/selftest.exp, gdb.base/setshow.exp,
14192 gdb.base/setvar.exp, gdb.base/shlib-call.exp,
14193 gdb.base/sigall.exp, gdb.base/signals.exp,
14194 gdb.base/sizeof.exp, gdb.base/so-impl-ld.exp,
14195 gdb.base/so-indr-cl.exp, gdb.base/solib.exp,
14196 gdb.base/step-test.exp, gdb.base/structs.c,
14197 gdb.base/structs.exp, gdb.base/structs2.exp,
14198 gdb.base/term.exp, gdb.base/twice.exp, gdb.base/varargs.exp,
14199 gdb.base/volatile.exp, gdb.base/watchpoint.exp,
14200 gdb.base/whatis-exp.exp, gdb.base/whatis.exp,
14201 gdb.c++/ambiguous.exp, gdb.c++/annota2.exp,
14202 gdb.c++/anon-union.exp, gdb.c++/classes.exp, gdb.c++/ctti.exp,
14203 gdb.c++/derivation.exp, gdb.c++/inherit.exp,
14204 gdb.c++/local.exp, gdb.c++/member-ptr.exp, gdb.c++/method.exp,
14205 gdb.c++/misc.exp, gdb.c++/namespace.exp, gdb.c++/overload.exp,
14206 gdb.c++/ref-types.exp, gdb.c++/templates.exp,
14207 gdb.c++/userdef.exp, gdb.c++/virtfunc.exp,
14208 gdb.disasm/am33.exp, gdb.disasm/hppa.exp,
14209 gdb.disasm/mn10200.exp, gdb.disasm/mn10300.exp,
14210 gdb.fortran/types.exp, gdb.java/jmisc.exp,
14211 gdb.java/jv-exp.exp, gdb.java/jv-print.exp,
14212 gdb.stabs/weird.exp, gdb.threads/linux-dp.exp,
14213 gdb.trace/actions.exp, gdb.trace/backtrace.exp,
14214 gdb.trace/circ.exp, gdb.trace/collection.exp,
14215 gdb.trace/deltrace.exp, gdb.trace/infotrace.exp,
14216 gdb.trace/limits.exp, gdb.trace/packetlen.exp,
14217 gdb.trace/passc-dyn.exp, gdb.trace/passcount.exp,
14218 gdb.trace/report.exp, gdb.trace/save-trace.exp,
14219 gdb.trace/tfind.exp, gdb.trace/tracecmd.exp,
14220 gdb.trace/while-dyn.exp, gdb.trace/while-stepping.exp,
14221 lib/gdb.exp, lib/mi-support.exp: Update/correct copyright
14226 * gdb.base/varargs.c (find_max_double): Fix printf format string:
14227 first arg is int not float.
14231 * gdb.base/reread.exp: Unsupported for non-native targets;
14232 doesn't work for remote debugging.
14237 * gdb.base/ending-run.exp: Properly handle the BSP state when
14238 stepping past the end of main.
14242 * gdb.base/commands.exp (infrun_breakpoint_command_test):
14243 Converted HPUX fix for non-expected items following multiple
14244 step commands into general solution for all platforms.
14248 * gdb.c++/classes.exp (do_tests): Change runto statements
14249 from "runto 'foo(void)'" to "runto 'foo'". This makes the
14250 statements demangler agnostic.
14251 * gdb.c++/virtfunc.exp (do_tests): Likewise.
14252 (gdb_virtfunc_restart): Likewise.
14256 * gdb.c++/inherit.exp (do_tests): Change runto statements
14257 from "runto 'foo(void)'" to "runto 'foo'". This makes the
14258 statements demangler agnostic.
14262 * gdb.threads/pthreads.exp: Unify pass/fail messages for
14263 ``continue to bkpt at common_routine in thread 2'' and ``stopped
14264 before calling common_routine 15 times'' tests.
14268 * gdb.c++/cplusfuncs.cc (dm_type_char_star): New function.
14269 Helps the test script figure out which demangler is in use.
14270 (dm_type_foo_ref): Ditto.
14271 (dm_type_int_star): Ditto.
14272 (dm_type_long_star): Ditto.
14273 (dm_type_unsigned_int): Ditto.
14274 (dm_type_void): Ditto.
14275 (dm_type_void_star): Ditto.
14276 * gdb.base/cplusfuncs.exp (probe_demangler): New function.
14277 Probe the gdb demangler and set variables to accommodate
14278 formatting differences.
14279 (info_func_regexp): New function. Same as info_func, but
14280 matches against a regexp.
14281 (info_func): Match against a literal string.
14282 (print_addr_2): New function. Match against a literal string,
14283 which can be different from the input to gdb.
14284 (print_addr): Simply call print_addr_2 with the same argument twice.
14285 (test_lookup_operator_functions): Use demangler formatting variables.
14286 Blow away the xfails and workarounds for gnats gdb bug gdb/18. Sort
14287 the tests in the same order as the C++ class declaration.
14288 (test_paddr_operator_functions): Ditto.
14289 (test_paddr_overloaded_functions): Ditto.
14290 (test_paddr_hairy_functions): Use demangler formatting variables.
14291 Add reference to gdb/19 for related tests.
14292 (do_tests): Call probe_demangler.
14296 * gdb.c++/templates.cc (printf): Remove unused function definition.
14300 * sid.exp (sid_exit): Pass host, not target, to remote_close.
14304 * config/sid.exp (sid_start): Call `remote_push_conn' after firing
14306 (sid_exit): Call `remote_pop_conn' after GDB is gone.
14310 * config/sid.exp (sid_start): Use `remote_spawn' instead of `spawn.'
14311 Deprecate $sid_spawn_id.
14312 (sid_exit): Remove code necessary only for `spawn.'
14316 * config/sid.exp (sid_start): Handle sim,protocol of `sid.'
14320 * gdb.c++/ovldbreak.exp (take_gdb_out_of_choice_menu): New proc
14321 to call when tests fail. It takes gdb out of the overloaded
14322 function choice menu back to the main prompt, so that the test
14323 program stays synchronized.
14324 (set_bp_overloaded): New proc to collect all the common
14325 code for setting a breakpoint on an overloaded name. Calls
14326 take_gdb_out_of_choice_menu when needed.
14327 (menu_overload1arg): New variable to collect the repeated
14328 instances of the expected menu for an overloaded name. Change
14329 the regular expression to handle changes in g++ type encoding:
14330 "void" can be either "void" or "", and "unsigned int" can be
14331 either "unsigned int" or "unsigned".
14332 (continue_to_bp_overloaded): Change regular expressions to handle
14333 changes in g++ type encoding.
14334 (no proc): Call take_gdb_out_of_choice_menu when needed.
14335 Remove redundant calls to "info break". Accept either "canceled"
14336 or "cancelled". Change regular expressions in "info break"
14337 calls to handle changes in g++ type encoding. Give all tests
14342 * config/sid.exp: New file.
14346 * gdb.base/callfuncs.exp: Add space after ``Value returned is''.
14350 * gdb.base/finish.exp: Accept '1' instead of \001 from char_func.
14351 Add a RE to accept a non-ascii char if one is ever presented.
14355 * lib/mi-support.exp (mi_gdb_start): Test for MI_OUT, not UI_OUT.
14359 * gdb.base/setvar.exp: Use double '\\' to quote curly braces
14360 in regexp. One '\' does not suffice on Linux.
14364 * gdb.base/break.exp (test_clear_command): Use a marker function
14365 rather than 'main' for the test function. Also move this
14366 test to an execution point where the marker function names are
14367 guaranteed to be bound to functions. (Executing tests after a
14368 'finish' from main runs into name conflicts with local names
14369 in __libc_start_main).
14373 * gdb.base/finish.exp: New test for gdb's "finish" command.
14374 * gdb.base/return2.exp: New test for gdb's "return" command.
14375 * gdb.base/return2.c: New source file for above.
14379 * gdb.base/constvars.exp: Add a "pass" message if "up" succeeds.
14380 * gdb.base/miscexprs.exp: Ditto.
14381 * gdb.base/pointers.exp: Ditto.
14382 * gdb.c++/derivation.exp: Ditto.
14383 * gdb.c++/local.exp: Ditto.
14384 * gdb.c++/namespace.exp: Ditto.
14385 * gdb.c++/overload.exp: Ditto.
14386 * gdb.c++/ref-types.exp: Ditto.
14390 * gdb.base/constvars.exp: Test result of "up" command.
14391 * gdb.base/miscexprs.exp: Ditto.
14392 * gdb.base/pointers.exp: Ditto.
14393 * gdb.base/scope.exp: Ditto.
14394 * gdb.c++/derivation.exp: Ditto.
14395 * gdb.c++/local.exp: Ditto.
14396 * gdb.c++/namespace.exp: Ditto.
14397 * gdb.c++/overload.exp: Ditto.
14398 * gdb.c++/ref-types.exp: Ditto.
14402 * mips_pro.exp: Accept either "middle -> top -> main" or
14403 "middle -> main" in the backtrace, because gcc can optimize
14404 tail calls to jumps. Remove setup_xfail for the hppa case.
14405 Add a comment with the original warning messages from PR 3016,
14406 which was filed in 1993, to preserve them for posterity.
14410 * lib/gdb.exp (gdb_test): Override timeout with board info.
14414 * gdb.base/display.exp: Don't kill running stub. Add "again" to
14415 the second kill and detach messages.
14419 * configure.in: Add AC_EXEEXT.
14420 * configure: Regenerate.
14421 * Makefile.in (just-check): Export EXEEXT.
14422 * lib/gdb.exp ($EXEEXT): Import from environment.
14423 * gdb.base/maint.exp: Expect $EXEEXT in executable name. Don't
14424 expect "maint dump-me" on Cygwin.
14425 * gdb.base/reread.exp ($binfile, $binfile1, $binfile2): Append
14430 * gdb.base/break.exp: Test backtrace and finish from called
14431 function on all platforms, not just HP-UX.
14435 * config/monitor.exp (gdb_target_cmd): Abstracts some of the
14436 code from gdb_target_monitor, so it can be used independantly
14437 for gdbserver. Also comment out an unnecessary PUTS.
14441 * gdb.base/a2-run.exp: Use gdb_skip_stdio_test.
14442 * gdb.base/corefile.exp: Expect the message "Program is being
14443 debugged already" when we send the "corefile" command, since
14444 the preceeding gdb_load may have connected gdb to a remote target.
14445 * gdb.base/display.exp: Disable hardware watchpoints if new
14446 board info variable "no_hardware_watchpoints" is true.
14447 Replace single-letter commands with more readable ones.
14448 * gdb.base/recurse.exp (recurse_tests): Disable hardware watchpoints
14449 if new board info variable "no_hardware_watchpoints" is true.
14450 * gdb.base/restore.exp (restore_tests): Call gdb_skip_stdio_tests
14451 to see if stdio (printf) testing is possible.
14452 * gdb.base/watchpoint.exp: Disable hardware watchpoints if new
14453 board info variable "no_hardware_watchpoints" is true. Use new
14454 proc "gdb_skip_stdio_tests" to see if printf tests are possible.
14459 * gdb.base/printcmds.exp: Escape curly braces followed by a number
14460 in array print pattern match.
14464 * gdb.c++/templates.exp (test_template_breakpoints): Change Britsh
14465 spelling "cancelled" to U.S. spelling "canceled" to match changes
14467 * gdb.c++/ovldbreak.exp: Ditto.
14471 * gdb.base/callfuncs.c (main): Moved to end of file, call
14472 t_double_values to initialize the FPU before inferior calls are made.
14473 * gdb.base/callfuncs.exp: Test for register preservation after calling
14474 inferior functions. Add tests for continuining, finishing and
14475 returning from a stop in a call dummy.
14479 * gdb.base/commands.exp: Break up long lines, and re-indent.
14483 * config/gdbserver.exp: Rewritten from the ground up, to make it
14484 compatible with the current dejagnu tree, and to make it work with
14485 the new "gdbserver" in libremote.
14489 * gdb.base/sizeof.exp (check_sizeof): Skip if no printf support.
14490 * gdb.base/varargs.exp: Skip entire test if no printf support.
14491 * gdb.base/ending-run.exp (Step to return): Skip if no printf supt.
14492 * gdb.base/shlib-call.exp: Skip several tests if no printf support.
14496 * lib/gdb.exp (gdb_skip_float_test): New proc. Skip test if
14497 no floating point support.
14498 (gdb_skip_stdio_test): New proc. Skip test if no stdio support.
14499 * gdb.base/call-ar-st.exp: Use above procs to skip tests.
14500 * gdb.base/call-rt-st.exp: Ditto.
14501 * gdb.base/call-strs.exp: Ditto.
14505 * gdb.base/sizeof.c: include <stdio.h>.
14507 * gdb.c++/classes.exp: Use gdb_test instead of send_gdb to
14508 'finish', otherwise uncaptured gdb_prompt would potentially
14509 throw remaining test points out of sync.
14513 * gdb.base/recurse.exp: Run tests for all targets.
14514 * gdb.base/so-impl-ld.exp: Added wildcard to handle the
14515 gnu-oldld case on ARM.
14516 * gdb.base/watchpoint.exp (test_stepping): Clear xfail
14521 * gdb.java/configure.in (AC_INIT): Use jmisc.exp.
14522 * gdb.java/configure: Rebuild.
14526 * gdb.java/jv-exp.exp: New file.
14530 * configure: Rebuilt.
14531 * configure.in (configdirs): Add gdb.java.
14532 * gdb.java/jmisc.java: New file.
14533 * gdb.java/jmisc.exp: New file.
14534 * gdb.java/Makefile.in: New file.
14535 * gdb.java/configure: Rebuilt.
14536 * gdb.java/configure.in: New file.
14537 * lib/java.exp: New file.
14541 * gdb.base/exprs.exp: Test casts to a pointer including over and
14546 * gdb.base/sizeof.exp, gdb.base/sizeof.c: New files. Compare GDB
14547 and the compilers sizes.
14551 * gdb.c++/misc.cc (class ClassParam, class_param): Define.
14552 (use_methods): New function.
14553 (main): Call use_methods().
14554 * gdb.c++/classes.exp (test_method_param_class): New procedure.
14555 (do_tests): Call test_method_param_class.
14559 * gdb.c++/classes.exp (test_nonexistant_members): Fix name
14561 (test_enums): New procedure. Move enum tests from end of script
14562 to here. Set breakpoint on function name instead of line number.
14563 * gdb.c++/misc.cc (ClassWithEnum): Move past Foo definitions.
14564 (enums2): New marker function.
14565 (enums1): New function.
14566 (main): Call enums1(). Move enum tests to enums1().
14570 * gdb.asm/asm-source.exp: Use raw AS/LD instead of CC to
14571 compile/link program. Update line numbers.
14572 * gdb.asm/d10v.inc: Define ``startup''.
14573 * gdb.asm/asmsrc1.s: Add definition of _start.
14577 * gdb.base/call-ar-st.exp: More rewrites of multi-line patterns.
14581 * gdb.base/maint.exp: Add 'maint print architecture' item to output
14582 of 'help maint print' command.
14586 * gdb.base/call-ar-st.exp: Rewrite all multi-line patterns so that
14587 they use gdb_expect_list.
14591 * gdb.base/commands.exp: Use ``set remote
14592 memory-read-packet-size'' instead of ``set endian big'' to test
14597 * gdb.c++/templates.exp (do_tests): Make all of these work under
14598 g++, and stop skipping them.
14600 * gdb.c++/namespace.exp: Move from gdb.hp/gdb.aCC to here, make it
14603 * gdb.c++/misc.cc: Fix ambiguous initialization with correct
14608 * gdb.base/annota1.exp (run until main breakpoint): Loosen up
14609 the regular expression: accept an (almost) arbitrary sequence of
14610 "frames-invalid" and "breakpoints-invalid" messages both before
14611 and after the "starting" message.
14615 * gdb.c++/local.exp: This test has never been known to work with g++.
14619 * gdb.base/annota1.exp (annotate-signal-handler-caller):
14620 Relax the regular expression a little, make it pass on Solaris 8.
14624 * gdb.base/step-test.exp: On IA-64 targets, when stepping out of
14625 a call, do not require that gdb stop on the line after the call.
14626 Instead, it is permissible for gdb to stop on the line of the
14631 * gdb.base/break.exp (bp on small function, optimized file):
14632 Add a second pass pattern. The behavior differs here between stabs
14633 and dwarf for one-line functions. Stabs preserves two line symbols
14634 (one before the prologue and one after) with the same line number,
14635 but dwarf regards these as duplicates and discards one of them.
14636 Therefore the address after the prologue (where the breakpoint is)
14637 has no exactly matching line symbol, and GDB reports the breakpoint
14638 as if it were in the middle of a line rather than at the beginning.
14642 * gdb.base/interrupt.exp: Make "pass" message say "send"
14643 rather than "send_gdb" (for consistancy).
14648 * gdb.c++/templates.cc: Properly check for GCC version number.
14649 * lib/compiler.cc: Likewise
14653 * gdb.base/break.exp: When compiled with -O2 optimization,
14654 gdb may not stop at the first line of main, due to code motion.
14658 * gdb.base/call-ar-st.exp: Bail out if target is sparclet.
14659 This test depends on parsing the printf output from the target.
14660 Since the sparclet stub doesn't do stdio, this will never work.
14661 * gdb.base/call-rt-st.exp: ditto.
14662 * gdb.base/call-strs: ditto.
14666 * gdb.base/miscexprs.exp: make sizeof long array test portable.
14668 * gdb.base/ending-run.exp: After connecting to a remote target,
14669 but before running, the target will appear to be in a random
14670 location. Specify both a file and a line for breakpoints.
14671 Also, the function that calls main may be called 'init'
14672 rather than 'start'.
14676 * gdb.base/help.exp: Update output for add-symbol-file command.
14681 * gdb.base/structs2.c: Support platforms defaulting to a unsigned char.
14685 * gdb.base/call-ar-st.exp: Relax patterns matching tab characters.
14687 * gdb.base/funcargs.exp: Relax patterns matching pointers to char.
14691 * gdb.base/call-ar-st.c (init_small_structs, main): Use floating-point
14692 values that can be represented exactly.
14693 * gdb.base/call-ar-st.exp (print print_small_structs): Fixed to match
14694 above change, and to not check against the directory part of the source
14696 (step into print_long_arg_list): Likewise.
14697 (print print_small_structs from print_long_arg_list): Likewise.
14698 (print print_long_arg_list): Likewise.
14702 * gdb.base/printcmds.c: Terminate char array ctable2 with 0.
14706 * ChangeLog, gdb.base/commands.exp: Revert whitespace changes.
14710 * gdb.base/commands.exp (deprecated_command_test): Add test for
14711 deprecate with no arguments.
14715 * gdb.base/break.exp: Add new test for setting breakpoints on
14716 optimized code so we can test breakpoints work even when function
14717 prologues may be optimized away
14722 * gdb.base/commands.exp : Added command deprecator tests.
14726 * gdb.base/help.exp: Added test for new apropos command.
14730 * gdb.base/pointers.c (usevar): New function.
14731 (main): Make sure that global variables v_int_pointer2, rptr,
14732 and y are all referenced someplace in the program by calling
14733 usevar() on them. [Some linkers delete symbols which are
14734 never referenced. The space remains, but there's no way to
14735 get a (symbolic) handle on the variable from the debugger.]
14739 * gdb.base/printcmds.c: Add typedeffed arrays.
14741 * gdb.base/printcmds.exp (test_print_typedef_arrays): New
14742 procedure to test arrays that are typedef'd.
14746 * lib/gdb.exp: Fix the gdbtk_start routine to correctly find all
14747 the library directories.
14751 * configure.in (configdirs): Add sub directory gdb.mi.
14752 * configure: Re-generate.
14754 * gdb.mi: New directory.
14758 * gdb.base/long_long.exp: Correct test suite failure when printing
14759 a long long value as a double on ARM platforms.
14763 * gdb.base/break.exp ("breakpoint line number"): Make sure the
14764 default source file is set properly before running this test.
14768 * lib/gdb.exp: Tell the testsuite that now gdbtk is in the
14769 gdbtk/library directory, not in gdbtcl2.
14773 * gdb.c++/templates.exp: ("ptype T5<int>"): Remove extraneous
14774 backslash from regexp pattern.
14776 * gdb.c++/ovldbreak.exp (continue_to_bp_overloaded): New
14777 procedure. Use it to run all the "continue to bp overloaded"
14778 tests. Note that this changes the names of the tests slightly.
14779 If the breakpoint hit message includes a hex PC value, because
14780 GCC's Dwarf 2 line info doesn't help us distinguish the prologue
14781 from the real source code, still consider that a pass.
14783 * gdb.base/condbreak.exp ("run until breakpoint at marker2"):
14784 XFAIL here if the breakpoint message contains a hex address. Note
14785 similar change on 1999-11-02.
14787 * gdb.base/step-test.exp: Comment Fernando's change of 2000-02-02.
14789 * gdb.base/ptype.exp: Establish a default source file before
14790 calling get_debug_format.
14794 * gdb.base/watchpoint.exp: Remove duplication of test messages.
14798 * gdb.base/step-test.exp: Fix the steps to enter a callee by means
14799 of successive stepi commands -- while in the prologue we should see
14800 the function entry bracket.
14804 * gdb.base/ending-run.exp: Add ARM in thumb mode case, where we
14805 reach __change_mode() when stepping through the end of main().
14809 * gdb.base/default.exp: Fix expected pattern.
14810 * gdb.base/help.exp: Same.
14814 * gdb.base/so-indr-cl.exp: Don't execute the test if not on HPUX.
14815 Don't use xfail's because that affects only the following test.
14817 * gdb.base/so-impl-ld.exp: Don't execute the tests if not on hpux,
14820 * gdb.base/selftest.exp: Update to reflect changes to main.c.
14824 * gdb.base/display.exp: Some yacc parsers like to say
14825 "A syntax error" rather than "A parse error". Accept both.
14829 * gdb.base/default.exp: Remove OS dependent string from "target
14831 * gdb.base/help.exp: Same for "help target remote" test.
14837 * gdb.c++/annota2.exp: Fix "delete bps" test to wait for the
14838 prompt (cleanup rather than necessity, but still might keep output
14839 from spilling to next test).
14843 * gdb.base/ptype.c (FALSE, TRUE): #undef these to avoid clash on
14844 AIX, which defines them in <sys/types.h>.
14848 * gdb.base/default.exp: Match arm* etc instead of arm in "info
14853 * gdb.base/watchpoint.exp: Add missing "(timeout)" to test message.
14855 * gdb.base/break.exp: Add missing anchor to reg exp on "finish from
14856 outermost frame disallowed".
14860 * gdb.base/setvar.exp: New tests for setting the value of a struct
14861 with a constant list.
14865 * gdb.base/setvar.exp: Remove pair os tests that expected gdb to
14866 require the user to type a cast before setting the value of a struct.
14870 * gdb.base/default.exp: Expect the new 'info float' command on
14871 all i386 platforms.
14873 * gdb.threads/linux-dp.exp: Expand our ability to recognize
14874 LinuxThreads libraries that don't support debugging.
14878 * gdb.base/remote.c: Fill the buffer with truely random data.
14879 Change the buffer type to ``unsigned char'' to simplify size
14882 * gdb.base/remote.exp: Reduce download numbers by one. Typical
14883 stub only handles 400-1 byte packets. Verify that the download
14888 * lib/gdb.exp (gdb_expect_list): FAIL only once on multiple pattern
14889 tests, using UNRESOLVED for the untested cases. Also, does not wait
14890 for a timeout if the prompt was received before a recognizable pattern.
14894 * lib/gdb.exp (gdb_expect_list): Fix spelling.
14898 * gdb.base/watchpoint.exp: Add tests cases for the hit count of
14903 * gdb.base/condbreak.exp: Add missing '$gdb_prompt $'.
14905 * gdb.c++/local.exp: Be more flexible in recognizing local class
14906 name mangling. Don't allow horribly truncated method names.
14907 * gdb.c++/derivation.exp: Expect protected inheritance.
14908 * gdb.c++/inherit.exp: Be more flexible in recognizing vbase pointers.
14909 * gdb.c++/virtfunc.exp: Likewise.
14910 * gdb.c++/classes.exp: Likewise. Don't require the enclosing scope
14911 when printing a nested enum.
14915 * gdb.base/step-test.exp: Properly await GDB's response to setting
14916 a breakpoint on the call to large_struct_by_value.
14918 * gdb.base/ending-run.exp ("step to end of run 1"): Don't fail
14919 just because we have debug info for the `start' function.
14923 * gdb.threads/linux-dp.exp ("create philosopher"): Recognize the
14924 "Unknown signal" messages, which indicate (on LinuxThreads) that
14925 GDB doesn't know how to debug threads on this system. This is
14926 better than hanging while philosopher 0 dumps chatter into gdb.log.
14930 * gdb.trace/deltrace.exp: Updated test to reflect new error text.
14934 * gdb.base/coremaker2.c: Add sample program for generating
14935 cores that is more self contained than coremaker.c. Eventually
14936 I'll add more code to this and tie it into the testsuite.
14940 * gdb.base/dollar.exp: Remove, now in gdb.hp.
14944 * gdb.exp (get_compiler_info): pick up compiler.c and compiler.cc
14946 * lib/compiler.c, lib/compiler.cc: New files, moved from gdb.base/
14949 * gdb.c++/derivation.exp: remove redundant get compiler info code.
14951 * gdb.base/commands.exp: add '$gdb_prompt $' anchor to
14952 'continue with watch' test point.
14956 Merged from p2linux-990323-branch:
14958 * lib/gdb.exp (gdb_continue_to_breakpoint): New function.
14962 * gdb.base/remote.exp: Test ``set remote memory-write-packet-sized
14963 {limit,fixed}''. Test ``set download-write-size''.
14967 * gdb.base/funcargs.exp: Rewrite stack traceback checks using
14972 * lib/gdb.exp (gdb_expect_list): Return a success/fail indication.
14976 * gdb.base/break.exp: Fix "stub continue" pattern.
14980 * gdb.base/shlib-call.exp ("next to shr1"): Fix test name.
14984 * gdb.base/display.exp ("finish"): Add timeout clause.
14986 * gdb.base/condbreak.exp ("run until breakpoint at marker1"): Add
14987 plain prompt clause, so this doesn't have to time out in order to
14990 * gdb.base/condbreak.exp, gdb.base/ena-dis-br.exp: XFAIL if the
14991 breakpoint hit messages include an address.
14993 * gdb.base/display.exp: Don't forget to escape parens in regular
14994 expressions. Unix regexp notatation sucks.
14998 * gdb.base/annota1.exp: Test for annotate-signalled: change output
14999 order for 'signalled' message.
15004 * gdb.base/annota1.exp: Add tests for annotate ignore count change.
15005 * gdb.base/annota1.c: Add code for tests to work with.
15009 * gdb.base/remote.exp: New test for remote downloading settings.
15010 * gdb.base/remote.c: New file with large .data.
15014 * gdb.threads/linux-dp.c, gdb.threads/linux-dp.exp: New test suite
15015 for LinuxThreads support, merged from the Code Fusion branch.
15019 * lib/gdb.exp (gdb_run_cmd): Break complicated gdb_expect
15020 containing exp_continue into a while within an expect. Don't
15021 attempt a start more than three times. Check return value from
15026 * gdb.base/watchpoint.exp: Match fail ``finish from marker1'' with
15031 * gdb.base/break.c (main): Added a statement that we can step
15033 * gdb.base/break.exp: Added tests for setting a breakpoint
15034 at an offset and stepping onto a breakpoint.
15038 * gdb.base/help.exp (help add-symbol-file): Update to match current
15043 * gdb.base/break.exp: Code locations are in hex, don't forget!
15048 * condbreak.exp: Use break.c as test program.
15049 * condbreak.c: Remove, redundant with break.c.
15053 * config/monitor.exp (gdb_target_monitor): Disable X- and
15054 Z-packets if the target needs it.
15058 * gdb.c++/overload.exp: Added tests for listing overloaded
15059 functions with function pointers in the arg, explicitly calling
15060 out the version you want.
15064 * long_long.exp: Add variations of test cases that work for
15065 targets with 16-bit ints and 32-bit doubles.
15069 * break.c (main): Compare a possibly-uninitialized argc with an
15070 unlikely value that fits in 16 bits.
15074 * gdb.base/restore.c, gdb.base/restore.exp: Use 0x7eeb instead of
15075 0xfeeb, don't want negative numbers if ints are 16 bits.
15077 * lib/gdb.exp (skip_cplus_tests): New proc.
15078 * gdb.c++/ambiguous.exp, gdb.c++/annota2.exp,
15079 gdb.c++/anon-union.exp, gdb.c++/classes.exp,
15080 gdb.c++/cplusfuncs.exp, gdb.c++/ctti.exp, gdb.c++/demangle.exp,
15081 gdb.c++/derivation.exp, gdb.c++/inherit.exp, gdb.c++/local.exp,
15082 gdb.c++/member-ptr.exp, gdb.c++/method.exp, gdb.c++/misc.exp,
15083 gdb.c++/overload.exp, gdb.c++/ovldbreak.exp,
15084 gdb.c++/ref-types.exp, gdb.c++/templates.exp, gdb.c++/userdef.exp,
15085 gdb.c++/virtfunc.exp: Use it to skip over C++ tests.
15087 * gdb.c++/cplusfuncs.exp: Use get_compiler_info consistently.
15091 * gdb.base/corefile.exp (up): Allow a parameter to appear
15092 in the frame that we're going up to.
15096 * gdb.base/default.exp (info float): Expect some output now.
15098 * gdb.base/callfuncs.exp (do_function_calls): We no longer expect
15099 returning floating-point values to fail on the x86.
15100 * gdb.base/callfwmall.exp (do_function_calls): Same.
15102 * gdb.base/list.exp (test_listsize): Correct expectations for
15103 listing line 1 with listsize 2. Also, listing a single line
15104 works now, as does listing three lines. [Kevin's note: There
15105 were a number of other cases fixed too where the expectations
15110 * gdb.base/selftest.exp: Add case for when version prints as
15111 constant string instead of char pointer.
15115 * gdb.base/ending-run.exp: Add Solaris case for what happens when
15116 stepping out of main.
15118 * gdb.c++/derivation.exp: XFAIL inf fn calls for all configs, if
15121 * gdb.c++/local.exp: Expect ptype NestedInnerLocal to succeed
15122 always, expect ptype InnerLocal::NestedInnerLocal to fail always.
15124 * gdb.c++/ovldbreak.exp: Update match string in test that
15125 includes a warning of multiple breakpoints.
15129 * gdb.base/display.exp: Improve precision of step-after-finish
15132 * gdb.base/signals.exp: Add extra wildcard to "handle all print"
15135 * gdb.c++/classes.exp: XFAIL HP-compiler-only tests for all
15136 configs when using G++, not just hppa*.
15140 * gdb.base/async.c: New file.
15141 * gdb.base/async.exp: New file.
15145 * gdb.base/break.exp: Tweak PA specific tests to properly handle
15150 * gdb.base/display.exp: "finish" can leave us mid-line on many
15151 targets, deal with it. Add a small constant to main, instead of
15152 1000 since main+1000 may not be a valid address in the target.
15154 * gdb.base/dollar.exp: Do not run for PA processors in wide mode
15157 * gdb.base/attach.exp: Handle another hpux11 error message variant
15158 when attaching to a process that does not exist.
15162 * gdb.base/call-ar-exp.exp: Fix pattern matching whitespace
15163 characters in 'continue to 1241' test.
15167 * gdb.base/call-ar-st.exp: Add a shorter match case for the
15168 stop in print_long_arg_list, define and use a whitespace
15169 variable in print_small_structs test, add an XFAIL for Solaris.
15170 * gdb.base/dbx.exp: XFAIL func commands until somebody is
15171 interested enough to fix.
15175 * gdb.base/dbx.exp (dbx_gdb_file_cmd): Rename to gdb_file_cmd.
15176 (dbx_gdb_load): Remove. Use gdb_load instead, since that
15177 proc knows about targets other than the natives.
15178 (test_assign): Use "gdb_run_cmd" to "run" the target.
15179 Check that we've actually hit the breakpoint at main.
15180 When we attempt to assign a value to a local variable, check
15181 that the variable is in the current scope, i.e., don't use
15182 a test with an empty result.
15186 * gdb.base/maint.exp: Add test of ``maintenance internal-error''
15192 gdb.hp: Move tests into subdirectories gdb.aCC, gdb.base-hp,
15193 gdb.compat, gdb.threads-hp.
15194 gdb.hp/configure, gdb.hp/configure.in: New files.
15195 gdb.hp/Makefile.in: Recurse into new subdirs.
15196 gdb.hp/gdb.defects: New directory, tests for HP bug reports.
15197 gdb.hp/gdb.objdbg: New directory, tests for debugging info
15199 gdb.hp/tools: New directory, aux tools for HP-specific tests.
15203 * gdb.base/display.exp: Help expect by putting a newline in the
15204 funky printf, remove a bogus p/a test.
15208 * gdb.base/display.exp: Make sure that when we say 'run', we are
15209 connected to the target. This is necessary when running not
15214 * gdb.base/step-test.exp: Removed some extraneous messages.
15216 * gdb.base/long_long.exp: Don't run memory examination tests
15217 on little-endian targets (they will need a different set of
15222 * gdb.c++/virtfunc.exp: Expect to fail the virtual call tests
15223 until somebody decides to fix GDB.
15225 * gdb.base/long_long.c: Stop compiler complaint by specifying long
15227 * gdb.base/long_long.exp: Loosen x/c test, add partial result
15228 matches for a couple x/2 commands.
15232 * gdb.c++/ref-types.cc, gdb.c++/ref-types.exp: Appease doschk
15233 by merging in ref-types2 tests.
15234 * gdb.c++/ref-types2.cc, gdb.c++/ref-types2.exp: Remove.
15237 * gdb.c++/Makefile.in: Add standard actions.
15238 (EXECUTABLES): Rename from PROGS, update list.
15239 * gdb.c++/ambiguous.cc, gdb.c++/ambiguous.exp: Move to here
15241 * gdb.c++/anon-union.cc: Don't use anonymous struct, make
15242 foo and bar locals.
15243 * gdb.c++/anon-union.exp: Fix tests to match.
15244 * gdb.c++/classes.exp: Run if HP compiler used, add extra
15245 expect matches to handle output variations.
15246 * gdb.c++/cplusfuncs.cc: Make operator -> return foo *.
15247 * gdb.c++/cplusfuncs.exp: Update to match, allow word "class" in
15248 output, add HP alternatives for new and delete prints.
15249 * gdb.c++/ctti.exp, gdb.c++/cttiadd.cc, gdb.c++/cttiadd1.cc,
15250 gdb.c++/cttiadd2.cc, gdb.c++/cttiadd3.cc: Move here from gdb.hp.
15251 * gdb.c++/demangle.exp: Use $style when reporting failure.
15252 * gdb.c++/derivation.exp: Add some xfails if GCC-compiled.
15253 * gdb.c++/inherit.exp: Run if HP compiler used, add some
15254 match alternatives.
15255 * gdb.c++/local.exp: Add match alternatives or xfails for HP
15257 * gdb.c++/member-ptr.exp: Add xfails for hppa*-*-*.
15258 * gdb.c++/method.exp: Add match alternatives.
15259 * gdb.c++/misc.cc: Add bool types.
15260 * gdb.c++/misc.exp: Add tests for bool types.
15261 * gdb.c++/overload.exp: Add xfails.
15262 * gdb.c++/templates.cc: Remove bogus arglist init, init fvpchar.
15263 * gdb.c++/templates.exp: Run if HP compiler used, add some xfails,
15264 add some more template parameter tests (only for HP currently).
15265 * gdb.c++/userdef.exp: Add xfails for hppa*-*-*.
15266 * gdb.c++/virtfunc.cc: Add return type and value for main.
15267 * gdb.c++/virtfunc.exp: Run if HP compiler used, add some
15268 match alternatives.
15272 * gdb.base/display.exp: Fix output of 'p/a &&j' test.
15276 * gdb.base/signals.exp: Don't expect getting a backtrace from
15277 within a signal handler to fail on Linux.
15282 * lib/gdb.exp: Remove some gratuitious semicolons.
15283 (delete_breakpoints): Increase timeout.
15284 (gdb_expect): Add -notransfer option.
15285 (gdb_test): Use -notransfer option.
15286 (get_compiler_info): Add f77 case.
15287 (get_compiler): New proc, split out from gdb_preprocess, add f77
15289 (gdb_preprocess): Call get_compiler.
15291 * gdb.base/Makefile.in (EXECUTABLES): Update the list.
15292 * gdb.base/attach.exp, gdb.base/display.exp,
15293 gdb.base/ending-run.exp, gdb.base/gdbvars.exp,
15294 gdb.base/long_long.exp, gdb.base/printcmds.exp,
15295 gdb.base/structs.exp, gdb.base/structs2.exp: Remove or fill in
15296 third arg to gdb_test.
15297 * gdb.base/call-ar-st.exp: Add HP-UX xfail for >10-arg functions.
15298 * gdb.base/callfuncs.exp, gdb.base/callfwmall.exp: Remove some
15299 HP-UX xfails, add others.
15300 * gdb.base/completion.exp: Reflect name change of self-test.
15301 * gdb.base/condbreak.exp, gdb.base/corefile.exp,
15302 gdb.base/foll-exec.exp, gdb.base/interrupt.exp,
15303 gdb.base/ptype.exp, gdb.base/scope.exp, gdb.base/setvar.exp: Note
15305 * gdb.base/foll-vfork.exp: Loosen matches slightly, remove
15306 useless HP-UX 10.30 references.
15307 * gdb.base/maint.exp: Loosen matches.
15308 * gdb.base/pointers.c (main): Declare more_code.
15309 * gdb.base/pointers.exp: Match on output of a `next'.
15310 * gdb.base/structs.c: Add prototypes.
15311 * gdb.base/watchpoint.exp: Remove HP-UX 10.30 reference.
15312 * gdb.base/whatis.exp: Fail for both HP-UX 10.20 and 11.
15316 * gdb.base/list.exp: Add tests for repeating 'list <linenum>'
15321 * gdb.c++/annota2.exp: Fix delete breakpoint query testcase.
15322 Fix run to main failures. Watchpoint can be hardware watchpoint.
15324 * gdb.base/annota1.exp: Clean up some more, in case printf has
15325 debug info. Deal with lack of signal hanlder info in stack.
15328 * gdb.base/annota1.exp: If printf has debug info, deal with it.
15332 * gdb.base/foll-exec.exp, gdb.base/foll-fork.exp,
15333 gdb.base/foll-vfork.exp: Don't run for crosses.
15337 * gdb.base/configure.in: Check for gdbvars.exp instead of
15339 * gdb.base/configure: Re-generate.
15343 * gdb.base/selftest.exp: Rename from a1-selftest.exp, no point
15344 in trying to run first and name is too long.
15346 * gdb.base/pointers.c, gdb.base/pointers.exp: Add contents of
15347 pointers2.c and pointers2.exp, respectively.
15348 * gdb.base/pointers2.c, gdb.base/pointers2.exp: Remove, makes
15353 * gdb.base/callfwmall.c, gdb.base/callfwmall.exp: Renamed from
15354 callfuncs2.c and callfuncs2.exp.
15356 * gdb.base/list.exp: Remove mistaken xfails.
15357 * gdb.base/list0.h: Add optional prototypes.
15361 * gdb.base/setvar.exp: Increase the time-out on tests indirectly
15363 * nodebug.exp, printcmds.exp, ptype.exp, setvar.exp: Ditto.
15364 * ptype.exp: Move test for get_debug_format to before its first
15369 * gdb.base/Makefile.in (EXECUTABLES): Remove annota2 executable.
15370 * gdb.base/annota2.cc, annota2.exp: Move from here.
15371 * gdb.c++/annota2.cc, annota2.exp: To here.
15372 * gdb.c++/Makefile.in (PROGS): Add annota2 executable.
15376 * lib/gdb.exp (gdb_expect_list): Output one message per pattern in
15377 a consistent format.
15382 * lib/gdb.exp (get_compiler_info): Add detection for assorted
15383 HP compilers, also set the globals $true and $false.
15385 * gdb.base/annota1.c, bitfields.c, break.c, call-ar-st.c,
15386 call-rt-st.c, call-strs.c, callfuncs.c, callfuncs2.c, condbreak.c,
15387 coremaker.c, ending-run.c, exprs.c, funcargs.c, interrupt.c,
15388 jump.c, langs0.c, langs1.c, langs2.c, list0.c, list1.c,
15389 long_long.c, mips_pro.c, nodebug.c, opaque0.c, opaque1.c,
15390 printcmds.c, ptype.c, recurse.c, restore.c, return.c, run.c,
15391 scope0.c, scope1.c, setshow.c, setvar.c, shmain.c, shr1.c, shr2.c,
15392 sigall.c, signals.c, so-impl-ld.c, so-indr-cl.c, solib.c,
15393 solib1.c, solib2.c, step-test.c, twice.c, varargs.c, watchpoint.c,
15394 whatis.c} Add C++ compatible function definitions and return
15395 types, add includes for library functions.
15396 * gdb.base/ptype.c (my_false, my_true): Use instead of false/true.
15397 * gdb.base/step-test.c (myglob): Rename from glob.
15398 * gdb.base/attach.c, attach2.c, average.c, execd-prog.c,
15399 foll-exec.c, foll-fork.c, foll-vfork.c, sum.c, vforked-prog.c: New
15400 files, move here from gdb.hp.
15401 * gdb.base/annota1.exp, break.exp, call-ar-st.exp, call-rt-st.exp,
15402 commands.exp, condbreak.exp, define.exp, ena-dis-br.exp,
15403 ending-run.exp, jump.exp. list.exp, long_long.exp, so-impl-ld.exp:
15404 Adjust line numbers in regexps.
15406 * gdb.base/all-bin.exp, eval-skip.exp, exprs.exp, logical.exp,
15407 miscexprs.exp, pointers.exp, relational.exp: Use $true and $false
15410 * gdb.base/attach.exp, dbx.exp, foll-exec.exp, foll-fork.exp,
15411 foll-vfork.exp: New files, move here from gdb.hp.
15412 * gdb.base/page.exp: New file, test of pagination command.
15414 * gdb.base/watchpoint.c (recurser): New function, for watchpoint
15416 * gdb.base/watchpoint.exp: Add more test cases for watchpoints.
15418 * gdb.base/so-impl-ld.exp, gdb.base/so-indr-cl.exp,
15419 gdb.base/solib.exp: Fix compiler invocation process.
15421 * gdb.base/callfuncs.exp, gdb.base/callfuncs2.exp: Don't xfail for
15422 HP-UX 11, turn off overload resolution explicitly.
15423 * gdb.base/commands.exp: Set argument list explicitly, add
15425 * gdb.base/completion.exp: Enable if HP-UX, tweak tests to make
15427 * gdb.base/constvars.exp, gdb.base/volatile.exp: Escape the
15428 expressions properly.
15429 * gdb.base/corefile.exp: Loosen the match slightly.
15430 * gdb.base/default.exp: Allow "Error accessing memory" message
15432 * gdb.base/display.exp: Skip over x/0 j if PA64.
15433 * gdb.base/funcargs.exp: Add xfails for HP-UX.
15434 * gdb.base/interrupt.exp: Ditto.
15435 * gdb.base/langs.exp: Add symbolic matches governed by compiler
15437 * gdb.base/list.exp: Add xfails for HP-UX.
15438 * gdb.base/long_long.exp: Refine some of the numeric matches.
15439 * gdb.base/mips_pro.exp: Xfail on HP-UX.
15440 * gdb.base/miscexprs.exp: Add PA2.0 case for array size test.
15441 * gdb.base/nodebug.exp: Succeed on more varieties of output.
15442 * gdb.base/opaque.exp: Remove some HP-UX xfails.
15443 * gdb.base/ptype.exp: Succeed on more varieties of output.
15444 * gdb.base/scope.exp: Add xfails for HP-UX.
15445 * gdb.base/sect-cmd.exp: Add more cases.
15446 * gdb.base/setvar.exp: Add xfails for HP-UX.
15447 * gdb.base/shlib-call.exp: Loosen some matches slightly.
15448 * gdb.base/signals.exp: Match on void symbolically.
15449 * gdb.base/step-test.exp: Add case for PA64.
15450 * gdb.base/term.exp: Add exit and restart.
15451 * gdb.base/twice.exp: Clean up after self.
15452 * gdb.base/varargs.exp: Disable overload resolution explicitly.
15453 * gdb.base/whatis.exp: Allow more ways to pass tests.
15455 * gdb.base/smoke.exp, gdb.base/smoke.c, gdb.base/smoke.cc: Remove,
15460 * lib/gdb.exp (proc gdb_expect_list): New procedure. Matches a
15462 * gdb.base/call-ar-st.exp: Use gdb_expect_list in "print
15463 print_double_array(double_array)", "continuing to breakpoint
15464 1018", "print print_double_array(array_d)" and "continuing to
15469 * Makefile.in: Add empty html and install-html targets.
15473 * config/mt-*: Remove, these haven't been used since 1996.
15477 * gdb.base/call-strs.c, gdb.base/ending-run.c,
15478 gdb.base/step-test.c: Include stdlib.h and string.h as needed.
15479 * gdb.c++/member-ptr.exp: Skip over these tests if using G++.
15483 * gdb.c++/overload.exp: XFAIL everything if using G++, add a
15484 simpler match case for the ptype of the big class.
15488 * gdb.exp: Fix test for gdb_prompt existence.
15492 * gdb.exp (gdb_test): Add fail after calls to perror.
15496 * gdb.exp (gdb_test): Accept variations of Undefined command messages.
15500 * gdb.exp (gdb_test): Fix anchors on gdb_expect statement.
15504 * gdb.base/call-strs.c (link_malloc): New function. Ensure that
15505 malloc() is linked in.
15509 * gdb.base/ending-run.exp: Make sure we fail and do not timeout at
15512 * gdb.base/annota1.exp: Increase match_max to prevent timeout.
15516 * gdb.java/jv-print.exp: New file. (Our first Java test!)
15520 * gdb.base/a1-selftest.exp: Remove bogus hppa xfail.
15521 * gdb.base/mips_pro.exp: Likewise.
15525 * gdb.c++/templates.cc: Change all "new" operators to throw
15527 * gdb.c++/cplusfuncs.cc: Likewise.
15529 * gdb.base/Makefile.in (EXECUTABLES): Add smoke1, annota1, and annota2.
15533 * gdb.base/condbreak.exp: Use rerun_to_main to start the program.
15534 * gdb.base/ending-run.exp: When stepping out of main, accept a
15535 step into an arbitrary assembler file.
15539 * gdb.base/annota1.exp: Allow any number of "frames-invalid" and
15540 "breakpoint-invalid" to be printed.
15541 * gdb.base/annota2.exp: Revise line number for main breakpoint. Allow any
15542 number of "frames-invalid" and "breakpoint-invalid" to be printed.
15543 * gdb.base/annota2.cc: Initialize a.x to 0.
15547 * gdb.base/call-ar-st.exp: Skip "print print_double_array (double_array)"
15548 when "skip_float_tests" set.
15549 Ditto for "print print_double_array(array_d)", "print print_small_structs",
15550 "print print_ten_doubles", and "step into print_long_arg_list".
15551 Don't assume we can step into "print_long_arg_list": we could step into memcpy.
15552 * gdb.base/call-rt-st.exp: Don't run float-related tests when "skip_float_tests"
15553 is set: "print print_one_double(*d1)" and "print print_two_floats(*f3)".
15554 * gdb.base/funcargs.exp: Don't run "float_and_integral_args" when
15555 "skip_float_tests" is set.
15556 * gdb.base/varargs.exp: Skip "print find_max_double(5,1.0,17.0,2.0,3.0,4.0)"
15557 when "skip_float_tests" set.
15561 * gdb.base/annota2.cc: Include stdio.h.
15565 * gdb.base/crossload.exp: Remove, this has been disabled ever
15566 since BFD stopped including all targets, and cross-GDB gets
15567 plenty of testing anyway.
15568 * gdb.base/i486-elf.u, gdb.base/m68k-aout.u, gdb.base/m68k-elf.u,
15569 gdb.base/sparc-aout.u, gdb.base/i860-elf.u, gdb.base/m68k-aout2.u,
15570 gdb.base/mips-ecoff.u, gdb.base/sparc-elf.u: Remove.
15571 * gdb.base/README: Remove, was doc for this.
15572 * gdb.base/Makefile.in (CROSS_EXECUTABLES): Remove, no longer
15577 * gdb.base/call-ar-st.exp: Fix one regular expression in test
15580 * gdb.base/annota1.exp: New file. Annotation level 2 tests.
15581 * gdb.base/annota2.exp: New file. More annotation tests.
15582 * gdb.base/annota1.c: New file. Source file for annota1.exp.
15583 * gdb.base/annota2.cc: New file. Source file for annota2.exp.
15587 * config/cfdbug.exp: New file.
15591 * gdb.c++/demangle.exp (test_gnu_style_demangling): Add tests for
15592 Marcus Daniel's and Dale Hawkins's demangler crashes.
15594 * gdb.c++/demangle.exp (test_gnu_style_demangling,
15595 test_lucid_style_demangling, test_arm_style_demangling,
15596 test_hp_style_demangling): Try Tom Tromey's core-dumping
15597 identifier under each demangling style.
15601 * gdb.c++/demangle.exp: Include the current demangling style
15603 (current_demangling_style): New global variable.
15604 (set_demangling_style, test_demangling_core, test_demangling,
15605 test_demangling_exact): New functions.
15606 (test_gnu_style_demangling, test_lucid_style_demangling,
15607 test_arm_style_demangling, test_hp_style_demangling): Use those,
15608 instead of calling gdb_test and gdb_test_exact directly.
15609 (catch_demangling_errors): New function, which reports errors
15610 signalled by the demangling test functions in an orderly way.
15611 (do_tests): Use catch_demangling_errors.
15615 * gdb.base/signals.exp (test_handle_all_print): Use () for
15616 grouping in expressions, not {}.
15618 * gdb.base/smoke.exp: Test value of x, not y. The latter isn't
15623 * gdb.c++/derivation.exp: Pass ptype tests if synthesized methods
15628 * gdb.stabs/weird.exp: Test for CC being defined before
15629 looking at its value.
15633 * gdb.base/call-ar-st.exp: Remove stray '#'.
15634 * gdb.base/miscexprs.exp: Allow "short" and "long" as well as
15635 "short int" and "long int".
15636 * gdb.c++/overload.cc: Cast the string added in the previous
15637 change, to mollify finicky HP compiler.
15638 * gdb.hp/reg-test.exp (testfile): Fix file name.
15639 * gdb.stabs/weird.exp: Don't try to run if HP compiler in use.
15641 * gdb.c++/misc.cc (main): Initialize obj_with_enum.
15642 * gdb.c++/classes.exp: Fix test of obj_with_enum values, allow
15643 alternate form of enum ptype.
15647 * lib/gdb.exp (skip_hp_tests): Remove gcc_used argument.
15648 * gdb.hp/*.exp: Change all to run compiler probe only after
15649 passing skip_hp_tests, so as not to waste time on guaranteed
15652 * gdb.c++/overload.cc: Pass string instead of char addr, always
15654 * gdb.c++/templates.cc: Fix syntax error.
15658 * gdb.base/commands.exp: Add test for correct position of '>'
15659 when issuing the 'commands' command after a 'while' or 'if'
15664 * gdb.c++/ovldbreak.exp: Use gdb_continue_to_end
15666 * gdb.c++/method.exp: It was testing an uninitialized int on the
15667 stack and assuming it was positive.
15669 * gdb.base/watchpoint.exp: Use gdb_continue_to_end.
15671 * gdb.base/step-test.exp: Catch a case where finish is broken and
15672 keep it from killing the rest of the tests.
15673 Use gdb_continue_to_end.
15675 * gdb.base/sigall.exp: use gdb_continue_to_end.
15677 * gdb.base/ena-dis-br.exp: use gdb_continue_to_end.
15679 * gdb.base/display.exp: use runto_main, not run.
15681 * gdb.base/default.exp: Check for the current error message in the
15682 r abbreviation test.
15683 Add strongarm to the targets that know info float.
15685 * gdb.base/condbreak.exp: Use the gdb_run command rather than just
15686 run which doesn't work with monitors.
15688 * gdb.base/call-ar-st.exp: fixed bogus regexp in continuing to 1034 test.
15690 * gdb.base/break.exp: use the gdb_continue_to_end proc.
15692 * lib/gdb.exp: I had added gdb_continue_to_end used to run to the end of a
15693 program. Traps the case (in Cygmon) when the program never really
15694 exits. Same as Mark's continue_to_exit, but I had put it in a lot
15695 more places, so I used my name. Sorry Mark...
15697 * config/monitor.exp (gdb_target_monitor): added another
15698 target_info parameter: remotebinarydownload. This will set the
15699 remotebinarydownload flag if this is causing some boards trouble.
15703 * lib/gdb.exp (continue_to_exit): New function.
15705 * gdb.base/ena-dis-br.exp: Clean up for remote targets.
15706 * gdb.base/ending-run.exp: Ditto.
15707 * gdb.base/step-test.exp: Ditto.
15711 * gdb.base/miscexprs.c: Clean up file, clear cbig.c[0] explicitly
15716 * gdb.base/signals.exp: Filter out *-*-linux* before matching *-*-gnu*.
15720 * gdb.c++/ref-types.exp, ref-types2.exp: Allow alternate
15721 descriptions of types (short unsigned int vs unsigned short, etc).
15725 * gdb.base/call-strs.exp: Don't assume that `step' will step over
15726 a call to strlen; sometimes we do have sources.
15730 * gdb.base/call-ar-st.c (main): Terminate char_array with a null
15731 character, so GDB won't print garbage after its end.
15733 * gdb.base/call-ar-st.exp: Don't step into sum_array_print; set a
15734 breakpoint there instead. Sometimes GCC emits memcpy to handle
15735 the large structures being passed by value, so we step into that
15736 instead of sum_array_print, which obscures what we're really testing.
15737 * gdb.base/step-test.exp: However, we do want a test that notices
15738 the bizarre steps into memcpy, so do that here. Add check for
15739 stepping into function calls that pass large structures by value.
15740 ("Is that a noun clause, or are you just happy to see me?")
15741 Remove all references to specific line numbers.
15742 * gdb.base/step-test.c (struct rhomboidal, large_struct_by_value):
15743 New type and function.
15744 (main): Call large_struct_by_value, passing it a large struct by value.
15745 * lib/gdb.exp (gdb_get_line_number): New function.
15747 * gdb.base/step-test.exp: Rewrite `stepi' and `nexti' tests to be
15752 * lib/gdb.exp: Doc fixes.
15756 * gdb.base/a2-run.exp: Add expected fails for strongarm-coff.
15760 * gdb.base/display.exp: Don't exercise the "detach" and "kill"
15761 commands. They're not germane to this test, and they don't work
15762 that way on remote targets.
15766 * Changelog entries merged over from gdb development branch.
15770 * lib/gdb.exp (gdbtk_analyze_results): Generic function
15771 for outputting results of test run.
15775 * lib/gdb.exp (gdbtk_start): Fix path for itcl library.
15779 * lib/gdb.exp (debug_format): initialize
15783 * gdb.base/call-ar-st.c: Include string.h, not strings.h.
15784 * gdb.base/call-rt-st.c: Ditto.
15788 * gdb.threads/pthreads.exp (horiz): New variable.
15789 (test_startup): Fix regexps that capture thread numbers.
15793 * gdb.base/smoke.exp: Disambiguate two test case names (both
15798 * gdb.base/volatile.exp: Use gdb_test, add xfails for GCC
15803 * gdb.base/miscexprs.exp: Change patterns to match GDB's
15804 actual output formatting.
15805 * gdb.base/smoke.exp: GDB removes leading 0's.
15806 * gdb.base/volatile.exp: Don't check type of remuneration;
15807 that variable is no longer defined in constvars.c.
15808 * gdb.base/step-test.c (main): Exit with explicit exit code.
15809 * gdb.base/step-test.exp: Remove two nexti checks--they are
15814 * gdb.base/help.exp ("help delete display"): Fix test to match
15817 * gdb.base/long_long.c (known_types): Initialize values to zero.
15818 * gdb.base/long_long.exp: Step one more line
15819 so 'dec' is initialized in "get to known place". GDB removes
15820 leading zeros. Explicitly ask for hex formatting. Use
15821 unique test case names.
15825 * lib/gdb.exp (gdb_preprocess): Remove 'puts' statement.
15827 * gdb.c++/method.exp: Add missing close brace.
15831 * gdb.base/maint.exp: Use 'set height 0' to disable page
15832 prompting, not 'set height 400'.
15834 Fix a bunch of timeouts.
15835 * gdb.base/maint.exp ("maint print objfiles"): Break this up into
15836 four separate tests, so expect doesn't take forever to match a ton
15837 of text against a regexp with lots of .* forms.
15838 ("maint print psymbols", "maint print symbols"): Make some of
15839 these greps more selective, so that expect doesn't try to wade
15840 through huge piles of output and time out.
15842 * gdb.base/maint.exp ("maint print msymbols"): Fix pattern.
15844 * gdb.base/maint.exp ("maint info breakpoints"): Split into two
15845 tests: one which doesn't expect shlib events to be reported, and
15846 another which does, but is XFAIL for all platforms other than
15849 * gdb.base/break.exp: Teach the test suite that the `catch
15850 fork', `catch vfork', and `catch exec' commands produce error
15851 messages on platforms that don't provide these features.
15855 * gdb.hp/gen-so-thresh.c, so-thresh.sh, so-thresh.exp,
15856 so-thresh.linkopts, so-thresh.mk: Move to gdb.hp from gdb.base
15857 (shortening names from solib_threshold.exp etc), won't run on
15858 anything but HP-UX for the foreseeable future.
15859 * gdb.hp/Makefile.in, gdb.base/Makefile.in (clean): Adjust to
15864 * gdb.base/Makefile.in, gdb.c++/Makefile.in,
15865 gdb.trace/Makefile.in (clean): Remove all test executables.
15869 * gdb.base/shlib-call.exp: add test cases to verify that gdb
15870 successfully re-sets breakpoints in shared libraries.
15871 * gdb.base/shmain.c (main): return 0, don't fall off the end.
15875 * gdb.hp/xdb3.exp: do not execute unless on hppa-hpux platform
15876 and compiled w/o GCC.
15878 * gdb.hp/watch-cmd.exp: ditto.
15880 * gdb.hp/watch-hp.exp: ditto.
15882 * gdb.hp/xdb1.exp: ditto.
15884 * gdb.hp/xdb2.exp: ditto.
15886 * gdb.hp/dbx.exp: ditto.
15890 * constvars.c: Remove C++-isms.
15891 * constvars.exp: Use gdb_test everywhere, add xfails if compiled
15896 The following changes are part of the HP merge.
15898 * gdb.base/break.exp: new tests to verify that catchpoints for
15899 fork, vfork, and exec don't trigger inappropriately.
15901 * gdb.base/opaque.exp: compile one file at a time, then link.
15903 * gdb.base/signals.exp: be more restrictive about which hppa
15904 systems receive a setup_xfail. new tests.
15906 * gdb.base/solib_threshold.build: new file.
15907 * gdb.base/solib_threshold.exp: new file.
15908 * gdb.base/solib_threshold.link_opts: new file.
15909 * gdb.base/solib_threshold.mk: new file.
15910 * gdb.base/gen_solib_threshold.c: new file.
15912 * gdb.c++/classes.exp: if on HPUX and not using gcc, skip the
15913 tests. New tests for enums inside classes.
15915 * gdb.c++/compiler.cc: indicate support of template debugging.
15917 * gdb.c++/demangle.exp: run hp style demangling tests.
15919 * gdb.c++/inherit.exp: if on HPUX and not using gcc, skip the
15922 * gdb.c++/misc.cc: changes to support new tests.
15924 * gdb.c++/templates.cc: changes to support HP's compiler; changes
15925 to support new tests.
15927 * gdb.c++/virtfunc.exp: if we are on HPUX and we are not using
15928 gcc, then skip these tests.
15932 The following files are part of the HP merge; some had longer
15933 names at HP, but have been renamed to be no more than 14
15934 characters in length.
15936 * gdb.hp/ambiguous.cc: new file.
15937 * gdb.hp/ambiguous.exp: new file.
15938 * gdb.hp/attach.exp: new file.
15939 * gdb.hp/attach2.exp: new file.
15940 * gdb.hp/classes-hp.exp: new file.
15941 * gdb.hp/ctti.exp: new file.
15942 * gdb.hp/ctti-add.cc: new file.
15943 * gdb.hp/ctti-add1.cc: new file.
15944 * gdb.hp/ctti-add2.cc: new file.
15945 * gdb.hp/ctti-add3.cc: new file.
15946 * gdb.hp/dbx.exp: new file.
15947 * gdb.hp/exception.cc: new file.
15948 * gdb.hp/exception.exp: new file.
15949 * gdb.hp/foll-exec.c: new file.
15950 * gdb.hp/foll-exec.exp: new file.
15951 * gdb.hp/foll-fork.c: new file.
15952 * gdb.hp/foll-fork.exp: new file.
15953 * gdb.hp/foll-vfork.c: new file.
15954 * gdb.hp/foll-vfork.exp: new file.
15955 * gdb.hp/inherit-hp.exp: new file.
15956 * gdb.hp/more-steps.exp: new file.
15957 * gdb.hp/namespace.cc: new file.
15958 * gdb.hp/namespace.exp: new file.
15959 * gdb.hp/optimize.exp: new file.
15960 * gdb.hp/pxdb.c: new file.
15961 * gdb.hp/pxdb.exp: new file.
15962 * gdb.hp/quicksort.exp: new file.
15963 * gdb.hp/reg-test.exp: new file.
15964 * gdb.hp/reg-test.s: new file.
15965 * gdb.hp/sized-enum.c: new file.
15966 * gdb.hp/sized-enum.exp: new file.
15967 * gdb.hp/start-stop.exp: new file.
15968 * gdb.hp/templ-hp.cc: new file.
15969 * gdb.hp/templ-hp.exp: new file.
15970 * gdb.hp/thr-lib.c: new file.
15971 * gdb.hp/thr-lib.exp: new file.
15972 * gdb.hp/thr-lib.h: new file.
15973 * gdb.hp/thr-liblib.c: new file.
15974 * gdb.hp/virtfun-hp.c: new file.
15975 * gdb.hp/virtfun-hp.exp: new file.
15976 * gdb.hp/watch-cmd.exp: new file.
15977 * gdb.hp/watch-hp.exp: new file.
15978 * gdb.hp/xdb1.exp: new file.
15979 * gdb.hp/xdb2.exp: new file.
15980 * gdb.hp/xdb3.exp: new file.
15984 The following files are part of the HP merge; some had longer
15985 names at HP, but have been renamed to be no more than 14
15986 characters in length.
15988 * gdb.base/ss.h: new file.
15989 * gdb.base/call-ar-st.c: new file.
15990 * gdb.base/call-ar-st.exp: new file.
15991 * gdb.base/call-rt-st.c: new file.
15992 * gdb.base/call-rt-st-exp: new file.
15993 * gdb.base/call-strs.exp: new file.
15994 * gdb.base/ena-dis-br.exp: new file.
15995 * gdb.base/environ.exp: new file.
15996 * gdb.base/long_long.exp: new file.
15997 * gdb.base/sect-cmd.exp: new file.
15998 * gdb.base/shlib-cl2.exp: new file.
15999 * gdb.base/smoke.exp: new file.
16000 * gdb.base/so-impl-ld.c: new file.
16001 * gdb.base/so-impl-ld.exp: new file.
16002 * gdb.base/so-indr-cl.c: new file.
16003 * gdb.base/so-indr-cl.exp: new file.
16004 * gdb.base/varargs.exp: new file.
16005 * gdb.base/volatile.exp: new file.
16006 * gdb.base/whatis-exp.exp: new file.
16007 * gdb.base/display.exp: new file.
16008 * gdb.c++/derivation.exp: new file.
16009 * gdb.c++/local.exp: new file.
16010 * gdb.c++/member-ptr.exp: new file.
16011 * gdb.c++/overload.exp: new file.
16012 * gdb.c++/ovldbreak.exp: new file.
16013 * gdb.c++/ref-types.exp: new file.
16014 * gdb.c++/ref-types2.exp: new file.
16015 * gdb.c++/userdef.exp: new file.
16019 * gdb.base/default.exp: Reflect wording change in remote.c.
16023 * gdb.base/help.exp: Update to reflect current text.
16027 * gdb.c++/anon-union.cc: make foo and bar global, otherwise
16028 they're stack variables and contain garbage.
16029 * gdb.c++/anon-union.exp: new file.
16031 The following changes were made by David Taylor
16036 * gdb.base/bitops.exp: new file.
16037 * gdb.base/default.exp: change expected messages for catch and
16038 info catch tests to reflect HP merge changes.
16039 * gdb.base/enable-disable-break.exp
16040 * gdb.base/ending-run.c: new file.
16041 * gdb.base/long_long.c: new file.
16042 * gdb.base/maint.exp: new file.
16043 * gdb.base/pointers2.exp: new file.
16044 * gdb.base/shlib-call2.exp: new file.
16045 * gdb.base/solib.exp: new file.
16046 * gdb.base/step-test.c: new file.
16047 * gdb.c++/anon-union.cc: new file.
16048 * gdb.c++/local.cc: new file.
16049 * gdb.c++/member-pointer.cc: new file.
16050 * gdb.c++/method.cc: new file.
16051 * gdb.c++/ref-types.cc: new file.
16052 * gdb.c++/ref-types2.cc: new file.
16053 * gdb.c++/userdef.cc: new file.
16055 * gdb.base/scope.exp: compile one file at a time, then link.
16056 * gdb.base/langs.exp: ditto.
16057 * gdb.base/list.exp: ditto.
16061 The following changes were made by David Taylor
16066 * gdb.c++/inherit.exp: if on hppa*-*-hpux* and not using gcc,
16067 skip tests. When compiling pass c++ flag to gdb_compile.
16070 * lib/gdb.exp (get_compiler_info): new, optional argument -- args;
16071 test for on hppa*-*-hpux*; use args to see if c++ was specified.
16072 (skip_hp_tests): new function.
16073 (gdb_preprocess): new function.
16075 * configure.in (hpdir): decide whether to configure gdb.hp.
16076 * configure: regenerated.
16078 * gdb.base/Makefile.in (MISCELLANEOUS): new macros -- extra things
16079 to delete on clean.
16080 (EXECUTABLES): update to reflect new additions.
16081 * gdb.base/commands.exp: update message expected.
16082 * gdb.base/default.exp: add copyright notice.
16083 * gdb.base/funcargs.exp (timeout): if hpux, increase timeout.
16084 * gdb.base/help.exp: update messages to reflect current text.
16085 * gdb.base/recurse.exp: add hpppa*-*-bsd* to 'list' of enabled
16086 targets for recurse tests.
16087 * gdb.base/watchpoint.exp: if on hpux and not gcc compiled, then
16090 * gdb.c++/Makefile.in (PROGS): update to reflect new executables.
16091 * gdb.c++/cplusfuncs.exp: tell gdb_compile that it's a c++
16093 * gdb.c++/misc.exp: ditto.
16094 * gdb.c++/templates.exp: if we're on hpux and it's not gcc, don't
16095 run the tests. tell gdb_compile that it's a c++ compilation.
16097 * gdb.threads/pthreads.exp: fix typo in message.
16099 * gdb.base/all-bin.exp: new file.
16100 * gdb.base/arithmet.exp: new file.
16101 * gdb.base/assign.exp: new file.
16102 * gdb.base/completion.exp: new file.
16103 * gdb.base/cond-expr.exp: new file.
16104 * gdb.base/condbreak.exp: new file.
16105 * gdb.base/define.exp: new file.
16106 * gdb.base/dollar.exp: new file.
16107 * gdb.base/environment.exp: new file.
16108 * gdb.base/eval-skip.exp: new file.
16109 * gdb.base/jump.exp: new file.
16110 * gdb.base/logical.exp: new file.
16111 * gdb.base/pointers.exp: new file.
16112 * gdb.base/relational.exp: new file.
16113 * gdb.base/section_command.exp: new file.
16114 * gdb.base/whatis-expr.exp: new file.
16116 * gdb.base/all-types.c: new file.
16117 * gdb.base/call-array-struct.c: new file.
16118 * gdb.base/call-return-struct.c: new file.
16119 * gdb.base/call-strings.c: new file.
16120 * gdb.base/callfuncs2.c: new file.
16121 * gdb.base/condbreak.c: new file.
16122 * gdb.base/constvars.c: new file.
16123 * gdb.base/display.c: new file.
16124 * gdb.base/int-type.c: new file.
16125 * gdb.base/jump.c: new file.
16126 * gdb.base/miscexprs.c: new file.
16127 * gdb.base/pointers.c: new file.
16128 * gdb.base/pointers2.c: new file.
16129 * gdb.base/shmain.c: new file.
16130 * gdb.base/shr1.c: new file.
16131 * gdb.base/shr2.c: new file.
16132 * gdb.base/solib.c: new file.
16133 * gdb.base/solib1.c: new file.
16134 * gdb.base/solib2.c: new file.
16135 * gdb.base/varargs.c: new file.
16136 * gdb.c++/derivation.cc: new file.
16137 * gdb.c++/overload.cc: new file.
16138 * gdb.c++/ovldbreak.cc: new file.
16139 * gdb.hp/attach.c: new file.
16140 * gdb.hp/attach2.c: new file.
16141 * gdb.hp/average.c: new file.
16142 * gdb.hp/compiler.c: new file.
16143 * gdb.hp/compiler.cc: new file.
16144 * gdb.hp/execd-program.c: new file.
16145 * gdb.hp/follow-exec.c: new file.
16146 * gdb.hp/follow-fork.c: new file.
16147 * gdb.hp/follow-vfork-and-exec.c: new file.
16148 * gdb.hp/misc-hp.cc: new file.
16149 * gdb.hp/more-steps.c: new file.
16150 * gdb.hp/optimize.c: new file.
16151 * gdb.hp/quicksort.c: new file.
16152 * gdb.hp/run-hp.c: new file.
16153 * gdb.hp/start-stop.c: new file.
16154 * gdb.hp/sum.c: new file.
16155 * gdb.hp/templates-hp.cc: new file.
16156 * gdb.hp/thread-local-in-lib.c: new file.
16157 * gdb.hp/thread-local-in-lib.h: new file.
16158 * gdb.hp/thread-local-in-lib.lib.c: new file.
16159 * gdb.hp/vforked-program.c: new file.
16160 * gdb.hp/virtfunc-hp.cc: new file.
16161 * gdb.hp/watchpoint-hp.c: new file.
16162 * gdb.hp/xdb.c: new file.
16163 * gdb.hp/xdb0.c: new file.
16164 * gdb.hp/xdb0.h: new file.
16165 * gdb.hp/xdb1.c: new file.
16169 The following change was made by Edith Epstein
16171 originally made by HP; HP did not create ChangeLog entries.
16173 * gdb.c++/demangle.exp: changed the expected output for some
16174 ARM-style mangling -- removed second reference to datatype.
16175 For example, maint demangle __dt__11T1__pt__2_cFv
16176 T1<char>::~T1<char>(void)
16178 maint demangle __dt__11T1__pt__2_cFv
16179 T1<char>::~T1(void)
16181 (test_hp_style_demangling): new hp specific demangling test cases.
16185 * gdb.trace/actions.exp: Ignore compiler warnings compiling actions.c
16186 * gdb.trace/backtrace.exp: Likewise.
16187 * gdb.trace/circ.exp: Likewise.
16188 * gdb.trace/collection.exp: Likewise.
16189 * gdb.trace/deltrace.exp: Likewise.
16190 * gdb.trace/infotrace.exp: Likewise.
16191 * gdb.trace/limits.exp: Likewise.
16192 * gdb.trace/packetlen.exp: Likewise.
16193 * gdb.trace/passc-dyn.exp: Likewise.
16194 * gdb.trace/passcount.exp: Likewise.
16195 * gdb.trace/report.exp: Likewise.
16196 * gdb.trace/save-trace.exp: Likewise.
16197 * gdb.trace/tfind.exp: Likewise.
16198 * gdb.trace/tracecmd.exp: Likewise.
16199 * gdb.trace/while-dyn.exp: Likewise.
16200 * gdb.trace/while-stepping.exp: Likewise.
16204 * gdb.base/restore.exp, gdb.base/restore.c: New tests.
16208 From Brendan Kehoe:
16209 * gdb.c++/cplusfuncs.cc, misc.cc, virtfunc.cc: Add now-required
16214 * config/slite.exp (gdb_load): use gdb_file_cmd, so we can do
16215 remote dos host testing right.
16219 * gdb.base/corefile.exp: remove some xfails.
16223 * gdb.base/reread.exp: Sleep 1 - ensures that the two executables
16224 have different timestamps.
16228 * lib/gdb.exp, gdb.base/default.exp, config/monitor.exp,
16229 gdb.base/default.exp: Replace "exec" with "executable".
16233 * gdb.base/default.exp: Change else if to elseif from previous
16238 * gdb.base/default.exp: Add brace missing from previous delta.
16242 * gdb.base/default.exp: Support test for info float for all
16243 varieties of arm toolchain.
16247 * gdb.trace/*.exp: remove "remote_download" command.
16251 * gdb.trace/*.exp: remove -gdwarf from compile.
16255 * gdb.trace/configure.in(AC_INIT): typo
16256 * gdb.trace/configure: regenerated
16260 * config/m68k-emc.exp: New file.
16261 * lib/<emc-support.exp trace-support.exp}: New files.
16262 * configure.in: add new test directory gdb.trace.
16263 * gdb.trace/{configure configure.in Makefile.in}: New files.
16264 * gdb.trace/{actions.c actions.exp gdb_c_test.c}: New files.
16265 * gdb.trace/{circ.c circ.exp limits.c limits.exp}: New files.
16266 * gdb.trace/{collection.c collection.exp tfind.exp }: New files.
16267 * gdb.trace/{backtrace.exp deltrace.exp infotrace.exp}: New files.
16268 * gdb.trace/{packetlen.exp passc-dyn.exp passcount.exp}: New files.
16269 * gdb.trace/{report.exp save-trace.exp tracecmd.exp}: New files.
16270 * gdb.trace/{while-dyn.exp while-stepping.exp}: New files.
16274 * gdb.c++/classes.exp: Change all regular expressions to match
16275 arbitrary combinations of newline/carriage-return, so that they
16276 will work equally well on Unix and Windows.
16277 * gdb.c++/inherit.exp: ditto.
16278 * gdb.c++/virtfunc.exp: ditto.
16282 * gdb.base/setshow.exp: Fix error introduced by call to runto_main.
16286 * gdb.disasm/am33.s: Add tests for autoincrement instructions.
16287 * gdb.disasm/am33.exp: Run time. Update tests which use r8-r15
16288 to use a0-a3/d0-d3 as needed.
16292 * gdb.disasm/am33.s: Add 4 operand mul and mulu tests.
16293 * gdb.disasm/am33.exp: Corresponding changes.
16297 * gdb.base/callfuncs.exp: add cmp10 test.
16298 * gdb.base/callfuncs.c (cmp10): new function.
16302 * gdb.base/commands.exp: Break up infrun_breakpoint_command_test
16303 into two parts to get around a synchronization problem in expect.
16307 * lib/gdb.exp (gdbtk_start): Add startup for gdbtk.
16309 * configure.in: Add options for gdbtk testsuite.
16311 * configure: Regenerate.
16313 * gdb.gdbtk: New directory to hold gdbtk tests.
16317 * gdb.fortran/types.exp: Escape brackets in expect patterns
16318 for test_float_literal_types_accepted tests.
16319 * gdb.base/scope.exp: Remove extraneous newline in filelocal_bss
16324 * am33.exp: Just compile, do not link the testcase.
16325 * am33.s: Add ".am33" pseudoop to force am33 mode.
16329 * gdb.base/setshow.exp: make sure $pc is sane.
16331 * gdb.stabs/weird.exp: split expect patterns properly.
16335 * gdb.disasm/am33.s: New disassembler testfile for the am33.
16336 * gdb.disasm/am33.exp: Run it.
16340 * gdb.base/funcargs.exp: simplify expect strings to ease pattern
16341 match processing (and eliminate spurious timeouts when running).
16345 * gdb.base/signals.exp (test_handle_all_print): put back Mach
16346 exception test, but conditionalize it on target [mach | gnu].
16350 * gdb.base/overlays.exp: fixup compile line for linker script.
16354 * gdb.fortran/types.exp: don't guess at float size.
16358 * gdb.base/exprs.exp: delete test that depends on int size.
16362 * config/sim.exp: Removed checks for target triplets.
16363 (gdb_target_sim): Use gdb,target_sim_options.
16367 * gdb.base/reread.exp: New file.
16368 * gdb.base/reread1.c: New file.
16369 * gdb.base/reread2.c: New file.
16373 * config/sim.exp: Use 'target sim -sparclite' when running
16374 SPARClite programs.
16378 * gdb.base/structs2.exp: New file.
16379 * gdb.base/structs2.c: New file.
16383 * gdb.asm/common.inc: New file.
16384 * gdb.asm/d10v.inc: New file.
16385 * asm-source.exp: Pass -I's to gas to find .inc files.
16386 Update line numbers in expected output.
16387 * asmsrc1.s: Rewrite.
16388 * asmsrc2.s: Rewrite.
16389 * configure.in: Create arch.inc symlink.
16390 * configure: Regenerate.
16391 * Makefile.in (distclean): Delete arch.inc.
16395 * callfuncs.c (t_enum_value1) : Cleanup return value warnings
16396 (t_enum_value2): ditto
16397 (t_enum_value3): ditto
16401 * gdb.base/break.exp: Remove xfail for `deleting all breakpoints
16402 when none' unexpected prompt case, fixed by breakpoint.c:delete_command
16404 Use gdb_test instead of send_gdb/gdb_expect sequences.
16408 * gdb.c++/virtfunc.cc: Declare extern "C" printf to return int,
16413 * gdb.base/branches.c: Code with lots of loops and
16414 subroutines. Used to test gdbs ability to single step through PC
16415 changes, especially to test mips-tdep.c:mips_next_pc
16419 * gdb.c++/virtfunc.cc: Make extern "C" printf declaration pass
16420 more rigorous EGCS C++ error checking.
16424 * gdb.base/help.exp: Clean up `help set args' and `help show args'
16426 * gdb.base/interrupt.exp: Add "i*86-*-solaris2*" xfail for calling
16427 function when asleep.
16428 * gdb.base/signals.exp: Add "i*86-*-solaris2*" xfails. Add comment
16429 for i*86 Linux and SVR4 signal handling problems.
16430 Remove linux xfail for `next to handler in signals_tests_1', fixed
16431 by recent infrun.c change.
16432 Limit backtrace to 10 frames to avoid timeout problems with infinite
16434 Adjust expect pattern in `handle all print' test to match Apr 28 1997
16435 target.[ch] change.
16439 * lib/gdb.exp(gdb_test): Send multiline commands one at a time; wait
16440 for a newline from gdb before continuing.
16441 (default_gdb_exit): Just look for y or n.
16442 (gdb_test): Detect abnormal exit from GDB running on DOS; if
16443 it does, fail the rests of the tests in the file.
16447 * config/cygmon.exp: New file.
16451 * gdb.base/list.exp: Fix problem with "list default lines around
16452 main" test on remote targets.
16454 * gdb.base/scope.exp: Fix problem with filelocal_bss before
16455 run test on remote targets.
16459 * gdb.asm: New directory.
16460 * configure.in: Configure it.
16461 * configure: Regenerate.
16462 * gdb.asm/{Makefile.in,configure.in,configure}: New files.
16463 * gdb.asm/{asm-source.exp,asmsrc1.s,asmsrc2.s}: New files.
16467 * config/mn10300-eval.exp: New file to support MN10300 eval board.
16471 * gdb.base/overlays (several files): Merge the two overlay
16472 managers into one. Change variables (foox, barx, bazx, grbxx)
16473 back into ints but force them to load in their proper sections.
16477 * gdb.base/d10vovly.c (D10VTranslate): Map IMAP0 to low 128k of
16478 on-chip insn memory and IMAP1 to upper 128k.
16479 (D10VCopy): Handle memory regions crossing 16k boundaries.
16480 (D10VCopy): Transfer data in 32 bit chunks.
16484 * gdb.base/overlays.c (main): Exit normally when result is
16487 * gdb.base/d10v.ld: Update LMAs to reflect current d10v address
16488 map. Include space for printf in .text segment.
16490 * gdb.base/d10vovly.c (D10VTranslate): New function, handle
16491 updated d10v memory VMA/LMA map.
16492 (D10VCopy): Call D10VTranslate.
16496 * gdb.base/m32rovly.c: Force variable _novlys into .data section.
16498 * gdb.base/bar.c (barx, bar): Change variable to small array so
16499 that it won't be put into the .sdata - small data -
16500 section. Update reference.
16501 * gdb.base/baz.c (bazx, baz): Ditto.
16502 * gdb.base/foo.c (foox, foo): Ditto.
16503 * gdb.base/grbx.c (grbxx, grbx): Ditto.
16505 * gdb.base/overlays.exp: Expect variables barx, bazx, foox, grbxx
16510 * gdb.base/overlays.exp: fix up and get working again.
16511 Add tests for backtraces from an overlay function.
16515 * gdb.base/watchpoint.exp: Set "d10v*-*-*" clear_xfail for
16516 "calling function with watchpoint enabled".
16520 * gdb.base/break.exp (test_next_with_recursion): Remove
16521 gdb_suppress_tests for d10v-*-*.
16522 * lib/gdb.exp (gdb_suppress_tests): Disable this function
16523 pending review of whether it is useful or not.
16527 * gdb.base/funcargs.exp: Increase timeout for slow TX39 boards.
16531 * gdb.base/break.exp: Increase timeout for slow TX39 boards.
16532 * config/dve.exp: New file to support Densan boards.
16536 * gdb.base/interrupt.exp: Document problem of simulators, signals,
16541 * config/monitor.exp: Be a bit less picky about the "Remote debugging"
16544 * gdb.c++/misc.exp: Call runto_main instead of doint it manually.
16548 * gdb.base/mips_pro.exp: Add "mips64*-*-elf" xfail for backtrace
16551 * gdb.base/funcargs.exp: Query GDB for target_sizeof_int,
16552 target_sizeof_long and target_bigendian_p.
16553 (structs_by_value, structs_by_reference): Check values according
16554 to targets word size and endianess.
16558 * gdb.base/langs.exp: For "continue to exit" ignore any trailing
16563 * gdb.base/default.exp, gdb.base/help.exp, gdb.base/setshow.exp:
16564 Update test of set args help to match source change.
16568 * gdb.base/default.exp: Expect help system output to be in
16569 alphabetical order.
16570 * gdb.base/help.exp: Ditto.
16574 * gdb.base/signals.exp: Change "i*86-pc-linux-gnu" to
16575 "i*86-pc-linux-gnu*".
16576 * gdb.base/interrupt.exp: Ditto.
16577 * gdb.base/corefile.exp: Ditto.
16579 * lib/gdb.exp(gdb_compile): If is_vxworks target feature is set,
16580 define vxworks when building the testcase.
16582 * gdb.base/ptype.exp: Fix testnames to be unique.
16583 * gdb.base/radix.exp: Ditto.
16584 * gdb.base/term.exp: Ditto.
16585 * gdb.base/whatis.exp: Ditto.
16586 * gdb.c++/classes.exp: Ditto.
16590 * gdb.base/callfuncs.exp: Fix indentation.
16592 * lib/gdb.exp(gdb_expect): Set remote_suppress_flag if
16593 suppress_flag has been set.
16594 (gdb_step_for_stub): Check for gdb,use_breakpoint_for_stub
16599 * gdb.stabs/weird.exp: Don't start gdb 'til after we've compiled
16602 * gdb.c++/cplusfuncs.cc(main): Add extern "C" declaration for
16603 set_debug_traps() and breakpoint().
16604 * gdb.c++/misc.cc (main): Ditto.
16605 * gdb.c++/templates.cc (main): Ditto.
16606 * gdb.c++/virtfunc.cc (main): Ditto.
16610 * lib/gdb.exp(gdb_step_for_stub): New function.
16611 (gdb_run_cmd): Look for gdb,do_reload_on_run target feature--if it
16612 exists, reload the executable and do a "continue" instead of
16614 (runto_main): Use gdb_step_for_stub.
16616 * gdb.base/break.exp: Use gdb_step_for_stub. Also, rename certain
16617 tests to have unique names.
16618 * gdb.base/callfuncs.exp: Ditto.
16619 * gdb.base/commands.exp: Ditto.
16620 * gdb.base/default.exp: Ditto.
16621 * gdb.base/help.exp: Ditto.
16622 * gdb.base/list.exp: Ditto.
16623 * gdb.base/opaque.exp: Ditto.
16624 * gdb.base/printcmds.exp: Ditto. Use a loop to emit multiple
16627 * gdb.base/setshow.c: Add set_debug_traps/breakpoint calls.
16628 * gdb.c++/cplusfuncs.cc: Ditto.
16629 * gdb.c++/virtfunc.cc: Ditto.
16631 * config/monitor.exp: Keep track of the last file we saw, rather
16632 than trying to get the info from gdb.
16634 * gdb.fortran/types.exp: Move comment to previous line.
16638 * config/sparclet.exp: Detect gratuitous change to sparclet gdb
16644 * config/monitor.exp (gdb_target_monitor): Look for "Connected to"
16645 string from GDB when it connects.
16647 * lib/gdb.exp: Look for $TOOL_EXECUTABLE.
16651 * lib/gdb.exp(get_debug_format): Don't cause the testsuite to fail
16652 if we can't get a debug format from GDB (we may be testing an
16653 older GDB). Use a 10 second timeout when checking for the format.
16655 * gdb.stabs/weird.exp: Fix quoting.
16657 * config/sparclet.exp: Renamed sparclet-loader.c to stub-loader.c.
16661 * config/arm-ice.exp: New file.
16665 * gdb.base/overlays.exp: Preliminary fixes; temporarily disabled
16666 until it has been modified to work with the new testsuite.
16668 * gdb.*/*.exp: Instead of causing 1 unresolved test when the
16669 testcase won't compile, cause all of the testcases in the file to
16672 * lib/gdb.exp(gdb_suppress_entire_file): New procedure.
16673 (gdb_clear_suppressed): New procedure.
16674 (gdb_stop_suppressing_tests): Only clear suppress_flag if
16675 it contains a positive value.
16679 * lib/gdb.exp(default_gdb_start): Use gdb_opts host feature.
16681 * gdb.c++/virtfunc.exp: Remove setting of libs variable.
16685 * lib/gdb.exp (setup_xfail_format): New function.
16686 (get_debug_format): New function to get debug format.
16687 (debug_format): New global variable to hold last value set
16688 by get_debug_format.
16689 * gdb.base/list.exp: Call get_debug_format and expect some
16690 tests to fail for DWARF 1 and COFF formats.
16691 * gdb.c++/ptype.exp: Ditto.
16692 * gdb.c++/classes.exp: Ditto.
16693 * gdb.c++/cplusfuncs.exp: Ditto.
16694 * gdb.c++/inherit.exp: Ditto.
16695 * gdb.c++/templates.exp: Ditto.
16696 * gdb.c++/virtfunc.exp: Ditto.
16700 * lib/gdb.exp(default_gdb_exit): Don't give an error if the remote
16701 host doesn't have a currently-open connection.
16703 * config/sparclet.exp: Cleanups and fixes to make it generic for
16704 any gdb stub target. Handle cases where gdb doesn't respond when
16705 interrupted in a sane fashion.
16707 * config/m32r-stub.exp: Load sparclet.exp instead of trying to do the
16708 same thing in a totally different way.
16710 * config/monitor.exp: Pass in timeouts to gdb_expect instead of
16712 (gdb_start): We set the global gdb_prompt variable in
16713 default_gdb_init now.
16717 * gdb.base/printcmds.exp: Fix "check for floating addition"
16718 regexp to accept results within approx +/- .01 of exact value.
16719 * lib/gdb.exp (gdb_test): Remove unused expect_out global decl.
16723 * lib/gdb.exp(gdb_init): Pass our arguments to default_gdb_init
16725 (gdb_expect): Add optional timeout parameter, and add timeout
16726 value to various calls.
16727 (gdb_suppress_tests): Only give one warning message per group.
16731 * lib/gdb.exp(gdb_expect): Declare errorInfo and errorCode as
16732 global variables. Handle getting a value for $timeout more
16737 * lib/gdb.exp: Close connection to remote host if gdb doesn't
16739 (default_gdb_init): New procedure; allow gdb_init to be overridden
16740 by a target configuration file.
16741 (gdb_expect): Pass the timeout to remote_expect.
16743 * config/monitor.exp(gdb_load): Fix typo in regexp.
16747 * gdb.base/funcargs.exp: Remove spurious suppress tests call.
16751 * config/monitor.exp(gdb_target_monitor): Call gdb_file_cmd
16752 here. Call gdb_target_exec before rebooting the target, to make
16753 sure the connection to the target is closed.
16754 (gdb_load): Pass the name of the executable to gdb_target_monitor.
16755 Don't call gdb_file_cmd here; let gdb_target_monitor do it.
16756 Also detect "Timeout reading from remote" error.
16758 * config/gdbserver.exp: Pass the executable being loaded to
16759 gdb_target_monitor. Don't call gdb_file_cmd here; let
16760 gdb_target_monitor do it.
16762 * gdb.disasm/hppa.exp: Don't use exec_output.
16766 * gdb.base/list.exp: If we're debugging a non-native target,
16767 try to set the pc register to point to the start of the
16768 program before doing the first list command.
16770 * gdb.c++/virtfunc.exp(gdb_virtfunc_restart): Make sure we run
16771 test_calls after restarting.
16773 * lib/gdb.exp(gdb_run_cmd): Send jump command again after
16776 * gdb.base/watchpoint.exp: Fix typo.
16778 * gdb.base/setshow.exp: Check for use_gdb_stub.
16780 * gdb.base/break.exp: Fix continue until exit test for the gdb
16782 * gdb.base/langs.exp: Ditto.
16784 * config/monitor.exp(gdb_load): Handle gdb_sect_offset and
16785 gdb_load_offset. If we weren't given a file to load, figure out
16786 what the current file is and use it.
16788 * config/i386-bozo.exp: New file.
16792 * lib/gdb.exp(gdb_expect): Look for gdb,timeout target
16795 * config/proelf.exp: New entry.
16799 * lib/gdb.exp: Remove spurious .* patterns at the beginning
16802 * gdb.base/watchpoint.exp: Don't run the test_stepping
16803 tests if gdb can't call functions on the target.
16805 * gdb.base/setshow.exp: Don't run the set prompt tests if
16806 the board has gdb_prompt set.
16810 * gdb.base/a2-run.exp: Change "gdb,noargs" to just "noargs".
16811 * gdb.base/commands.exp: Likewise.
16812 * gdb.base/setshow.exp: Likewise.
16816 * config/monitor.exp(gdb_start): Look for gdb_prompt target
16819 * config/i960.exp: New file.
16823 * gdb.base/funcargs.exp: Check for gdb,short_int target
16824 feature instead of looking for explicit target triplets.
16828 * gdb.base/printcmds.exp: add a couple more tests a la
16829 "p 123DEADBEEF", to check parse_number.
16830 * top.c: change "to enable to enable" to "to enable" in a couple
16835 * gdb.base/callfuncs.exp: Mark some tests as expected to fail
16840 * gdb.base/a2-run.exp: Add arm-*-coff setup_xfails for cases
16841 where the test executable is run with explicit args.
16842 * gdb.base/default.exp: Handle arm-*-coff case for "info float".
16846 * gdb.base/run.c: Use FAKEARGV to build test executable that
16847 does not require a command line arg, since most simulators
16848 don't currently support passing such an arg into the simulated
16850 * gdb.base/commands.exp: Change tests to insert the proper
16851 value as the arg to the first recursive factorial call. Change
16852 compilation line to define FAKEARGV at compile time.
16856 * gdb.base/recurse.exp: Enable these tests for the mn10300.
16857 * gdb.base/watchpoint.exp: Don't expect a failure for an "calling
16858 function with watchpoint enabled" test.
16862 * gdb.base/watchpoint.exp(test_watchpoint_triggered_in_syscall):
16863 Don't call gdb_test when the command doesn't return to a gdb prompt.
16865 * lib/gdb.exp(gdb_stop_suppressing_tests): Don't print gratuitous
16866 "Tests restarted" messages.
16870 * gdb.disasm/mn10300.exp: Fix buglets in "other" tests.
16874 * gdb.base/help.exp: update help msg for INFO ADDR; add help test
16875 for INFO SYMBOL; add help tests for OVERLAY commands.
16876 * gdb.base/default.exp: add tests for INFO SYMBOL command;
16877 add tests for OVERLAY commands
16878 * gdb.base/overlays.c overlays.exp foo.c bar.c baz.c grbx.c ovlymgr.h
16879 d10v.ld m32r.ld d10vovly.c m32rovly.c: add test case for overlays.
16880 * gdb.base/sigall.c: add usestubs code frag
16881 * gdb.base/watchpoint.exp: turn on complex watchpoint test for M32R.
16885 * lib/gdb.exp(gdb_suppress_tests): Add explanation for subsequent
16887 (gdb_stop_suppressing_tests): Note that tests have restarted.
16891 * config/h8300.exp: New file.
16895 * gdb.base/setshow.exp: Check for the existence of a
16896 feature, not its value.
16900 * gdb.c++/virtfunc.exp: Restart gdb in a sane fashion.
16902 * gdb.base/scope.exp: It's now init0(), not init().
16904 * gdb.base/scope0.c: For now, change init() to be init0().
16906 * config/monitor.exp: Use gdb_serial in preference to serial
16909 * lib/gdb.exp: Set GDB to [transform gdb] if we're using a remote host
16910 and it's not already set.
16914 * gdb.base/setshow.exp: Only test the run command if the target
16915 isn't using a stub and if it supports argument passing.
16919 * config/udi.exp(gdb_start): Make sure UDICONF is set
16920 properly before starting gdb.
16924 * gdb.disasm/mn10300.s: New test file for mn10300 disassembler.
16925 * gdb.disasm/mn10300.exp: Run mn10300 disassembler tests.
16926 * gdb.disasm/Makefile.in: Remove "mn10300" when cleaning.
16930 * config/vx.exp: Use remote_ld, not vxworks_ld. Don't use
16931 specialized code to reboot the board, use remote_reboot instead.
16933 * config/vxworks29k.exp: Use vx.exp, not vx-gdb.exp.
16935 * lib/gdb.exp: Add GDB_TESTCASE_OPTIONS.
16937 * config/monitor.exp: Make sure we disconnect from the target.
16938 Also, try a reboot/reload cycle instead of failing if the
16943 * gdb.base/default.exp: Don't set match_max.
16944 * gdb.base/help.exp: Ditto.
16945 * gdb.base/list.exp: Ditto.
16946 * gdb.base/signals.exp: Ditto.
16948 * config/monitor.exp(gdb_load): If gdb,use_standard_load is
16949 set, use remote_ld to download the testcase instead of
16954 * config/vr5000.exp: New file.
16956 * config/monitor.exp(gdb_target_monitor): Add pattern for
16957 "Ending remote" to detect errors in connecting.
16959 * gdb.base/setshow.exp: Add .* within auto language test.
16961 * lib/gdb.exp(gdb_run_cmd): Add check for gdb_init_command
16964 * config/monitor.exp(gdb_load): Check for a failure when loading,
16965 and reboot the board if necessary.
16967 * gdb.base/setvar.exp(test_set): Handle multiple prints within
16968 a set of tests. Remove print.* from the patterns being checked.
16972 * gdb.base/a1-selftest.exp: Use send_gdb consistently. Don't
16973 refer to gdb_spawn_id.
16975 * config/m32r-stub.exp: Remove references to gdb_spawn_id, no
16977 * config/sparclet.exp: Ditto.
16978 * config/sparclet-old.exp: Ditto.
16979 * config/slite.exp: Ditto.
16980 * config/sim.exp: Ditto.
16981 * gdb.base/funcargs.exp: Ditto.
16983 * lib/gdb.exp:Remove references to gdb_spawn_id.
16984 (gdb_expect): Move to remote.exp.
16988 * config/monitor.exp: Detect the "Couldn't establish connection"
16993 * gdb.base/bitfields.exp: Use runto instead of explicit
16994 gdb_run_cmd/gdb_expect sequences.
16996 * gdb.base/break.exp(text_next_with_recursion): Add match for
16999 * config/monitor.exp(gdb_target_monitor): Calling exit loses big.
17000 We also need to handle the "A program is being debugged already"
17001 prompt from gdb. Use gdb_test to set the baud rate.
17003 * lib/gdb.exp(gdb_init): Increase the default expect buffer size
17004 to 20000. Really. I mean it.
17008 * lib/gdb.exp(gdb_test): Generate a FAIL message when send_gdb
17009 fails. If suppress_flag is set, skip perror message about not
17010 being able to send to GDB.
17011 (send_gdb): If suppress_flag is set, don't try to send commands to
17013 (gdb_expect): If suppress_flag is set, always fail immediately.
17014 (gdb_suppress_tests, gdb_stop_suppressing_tests): New functions.
17015 (gdb_init): Call gdb_stop_suppressing_tests.
17016 (default_gdb_exit): Ditto.
17017 (default_gdb_start): Ditto.
17019 * gdb.base/bitfields.exp: Call gdb_suppress_tests and
17020 gdb_stop_suppressing_tests as appropriate.
17021 * gdb.base/break.exp: Ditto.
17022 * gdb.base/callfuncs.exp: Ditto.
17023 * gdb.base/commands.exp: Ditto.
17024 * gdb.base/exprs.exp: Ditto.
17025 * gdb.base/funcargs.exp: Ditto.
17026 * gdb.base/list.exp: Ditto.
17027 * gdb.base/recurse.exp: Ditto.
17028 * gdb.base/scope.exp: Ditto.
17029 * gdb.base/structs.exp: Ditto.
17030 * gdb.c++/inherit.exp: Ditto.
17034 * config/vr4300.exp: New file.
17036 * gdb.*/*.exp: Call gdb_expect instead of expect.
17038 * lib/gdb.exp(gdb_expect): New function.
17042 * lib/gdb.exp(gdb_init): New function.
17044 * gdb.base/setvar.exp(test_set): Don't bother printing a PASS/FAIL
17045 for each individual variable set.
17047 * gdb.base/exprs.exp(test_expr): Make sure each test gets a unique
17050 * gdb.base/help.exp: Fix the syntax of a few gdb_test calls.
17052 * gdb.base/scope.exp: Use gdb_test.
17054 * gdb.base/ptype.exp: Don't call "gdb_exit; gdb_start" if we're
17055 aborting; the testsuite driver will do that for us (see
17056 gdb_finish). Also, use gdb_test in a few more places.
17060 * gdb.base/help.exp: Fix syntax of "help info all-registers" test.
17064 * gdb.disasm/mn10200.s: Add "nop" after "main" so that "main"
17065 and "add_tests" are not at the same address.
17069 * gdb.base/ptype.exp: Use gdb_test.
17073 * gdb.disasm/mn10200.s (misc_tests): Fix targets for "jsr" insns.
17074 * gdb.disasm/mn10200.exp (misc_tests): Remove bogus line accidentally
17075 left in. No longer expect them to fail.
17077 * gdb.stabs/*.mt; Deleted, no longer used.
17078 * gdb.stabs/configure.in: Remove references to target makefile
17080 * gdb.stabs/configure: Rebuilt.
17082 * gdb.disasm/*.mt: Deleted, no longer used.
17083 * gdb.disasm/configure.in: Remove references to target makefile
17084 frags. Use "sh3.s" as the unique filename for this directory.
17085 * gdb.disasm/configure: Rebuilt.
17087 * gdb.disasm/mn10200.s: New test file for mn10200 disassembler.
17088 * gdb.disasm/mn10200.exp: Run mn10200 disassembler tests.
17089 * gdb.disasm/Makefile.in: Remove "mn10200" when cleaning.
17093 * config/udi.exp: Use mondfe,name instead of remote_host.
17097 * gdb.base/watchpoint.exp: Don't expect a failure when calling
17098 a function with a watchpoint enabled on the mn10200.
17100 * gdb.stabs/weird.exp: Don't quit if "weird.s" doesn't exist
17101 before trying to create it!
17105 * config/vx.exp: Use hostname instead of netport.
17107 * config/vxworks.exp: New file.
17109 * gdb.base/a2-run.exp: Change vxworks cases to use gdb_spawn_id.
17111 * config/monitor.exp(gdb_target_monitor): Look for a prompt from
17112 gdb before assuming everything worked. Send a ^C if a timeout
17115 * lib/gdb.exp(gdb_test): Check the result of send_gdb. Use
17116 $gdb_spawn_id directly.
17117 (gdb_run_cmd): Try _start as well as start. Use the target feature
17118 gdb,start_symbol as the symbol to start from when jumping.
17122 * gdb.base/exprs.exp: Delete bogus/incorrect (and probably
17125 * gdb.base/recurse.exp: Relax final value test for 'b' so that
17126 it doesn't lose for 16bit integer systems.
17130 * gdb.fortran/types.exp: If the target doesn't support "double"
17131 data types, then expect "real" types to only be 4 bytes.
17133 * gdb.c++/virtfunc.exp: Expect failure for virtual function
17134 call tests if the target doesn't support inferior function calls.
17136 * gdb.base/printcmds.exp: Allow minor deviation in FP values
17141 * gdb.base/help.exp: Disable "help set", "help show", and
17142 "help support". Simplify regexp for "help stack".
17144 * gdb.base/default.exp: Set match_max to 5000 and the timeout
17145 to 60 seconds. Temporarily set match_max to 15000 around the
17146 "info copying" test.
17148 * gdb.base/nodebug.exp: Don't try to do an inferior function
17149 call if the target doesn't support them.
17150 * gdb.base/printcmds.exp: Likewise.
17151 * gdb.base/setvar.exp: Likewise.
17152 * gdb.base/structs.exp: Likewise.
17153 * gdb.c++/templates.exp: Likewise.
17154 * gdb.base/ptype.exp: Likewise. Remove UDI specific stuff.
17156 * gdb.base/recurse.exp: Enable for the mn10200.
17158 * configure.in: Do configure gdb.stabs directory for *-*-elf
17160 * configure: Rebuilt.
17162 * gdb.base/break.exp: Check for gdb,noresults before testing
17163 exit status and/or results from the target.
17164 * gdb.base/watchpoint.exp, gdb.base/langs.exp: Likewise.
17165 * lib/gdb.exp: Remove old (now bogus) initialization of
17166 noinferior, noargs, noresults and nosignals.
17170 * config/sh.exp: New file.
17172 * config/slite.exp: Try to connect multiple times to the board
17173 before rebooting. Only send a "monitor run" if need_monitor_run
17176 * gdb.base/break.exp: Don't do the "stub continue" test if
17177 the target has gdb_stub set.
17179 * gdb.base/callfuncs.exp: Increase the timeout.
17181 * gdb.base/interrupt.exp: Don't even try to compile the testcase
17182 if the target has gdb,noinferiorio set.
17184 * gdb.base/list.exp: Increase match_max to 10000 characters.
17186 * gdb.base/sigall.exp: Check for gdb,nosignals on the target.
17188 * gdb.base/watchpoint.exp: Check for gdb,noinferiorio on the
17191 * lib/gdb.exp(gdb_run_cmd): Fix for targets that use stubs.
17195 * gdb.base/a1-selftest.exp: Make sure we call gdb_exit before
17196 trying to delete the copy of gdb. Catch the file delete so we
17197 don't die if the delete fails; also, the file should be copied to
17198 the host, not to the build.
17202 * lib/gdb.exp(gdb_test): Surround the result pattern with
17203 parenthesis in case it contains multiple regexps separated
17206 * gdb.base/watchpoint.exp: Use gdb_test.
17207 * gdb.base/default.exp: Ditto.
17211 * gdb.*/*.exp: Replace $prompt with $gdb_prompt.
17213 * gdb.base/scope.exp: Use gdb_test.
17214 * gdb.c++/classes.exp: Ditto.
17215 * gdb.c++/inherit.exp: Ditto.
17219 * gdb.base/crossload.exp: Don't use execute_anywhere, use
17220 remote_exec instead.
17221 * gdb.base/corefile.exp: Don't be ridiculous.
17222 * gdb.base/*.c: Add missing stub invocations.
17226 * config/slite.exp: Miscellaneous fixes.
17228 * lib/gdb.exp: Fix runto.
17230 * gdb.base/signals.exp: Check for a gdb,nosignals feature of
17233 * gdb.base/watchpoint.exp: Fix regexp.
17235 * lib/gdb.exp(default_gdb_exit): Add a catch to the
17236 close and wait commands, as the descriptor may now be
17237 invalid. Always call "remote_close host".
17241 Major rewrite for testsuite revision.
17243 * lib/gdb.exp: Remove references to global CC, CXX, B_OPTIONS,
17244 TARGET_INCLUDES, LDFLAGS and target_alias. Use gdb_spawn_id
17245 instead of relying on spawn_id to always contain a valid
17247 (get_compiler_info): New procedure to build the ${binfile}.ci
17248 file, instead of replicating this in N different places.
17249 (gdb_compile): New procedure.
17251 gdb.*/*.exp: Use gdb_compile and get_compiler_info (with
17252 appropriate arguments) instead of compile. Use gdb_test in a lot
17253 more places. Use send_gdb instead of send. Always run gdb_start
17254 at the start of a testcase, as this is no longer done magically.
17256 config/*-gdb.exp: Rename without the -gdb suffix.
17258 config/mips.exp: Use remote_close instead of exit_remote_shell.
17259 config/monitor.exp: Use target_info instead of looking at
17260 baud, timeout, etc.
17261 config/sim.exp: Use gdb_spawn_id instead of relying on spawn_id.
17265 * gdb.c++/templates.exp (test_ptype_of_templates),
17266 gdb.c++/inherit.exp (test_ptype_si, test_print_anon_union):
17267 Update expect patterns for destructors and assignment operators
17268 to match corresponding c-typeprint.c changes.
17269 * gdb.c++/templates.exp (test_template_breakpoints): Revert change
17270 to destructor breakpoint test, GDB should be able to set the
17271 destructor breakpoint without specifying arguments.
17275 * gdb.threads/pthreads.exp: Change result for failure to compile due
17276 to lack of pthreads runtime support from an error to simply an
17277 unsupported test, per dejagnu standards.
17281 * lib/gdb.exp (gdb_test): Simplify expect pattern for the case
17282 where GDB exits to reduce pattern match time.
17283 (skip_chill_tests): Skip chill tests for mips*-sgi-irix6*.
17285 * gdb.base/nodebug.exp: Add mips*-sgi-irix6* xfails.
17289 * gdb.base/callfuncs.exp: Turn on function call tests for h8300.
17290 * gdb.base/default.exp: ditto.
17291 * gdb.base/nodebug.exp: ditto.
17292 * gdb.base/printcmds.exp: ditto.
17293 * gdb.base/ptype.exp: ditto.
17294 * gdb.base/setvar.exp: ditto.
17295 * gdb.base/structs.exp: ditto.
17296 * gdb.base/setshow.c: Guard against uninitialized values of argc.
17300 * configure, */configure: Rebuild with autoconf 2.12.
17304 * gdb.base/a1-selftest.exp: Change x86 linux setup_xfails to
17305 use new i*86-pc-linux*-gnu quads.
17306 * gdb.base/corefile.exp: Ditto.
17307 * gdb.base/signals.exp: Ditto.
17308 * gdb.base/sigall.exp: Ditto.
17309 * gdb.base/interrupt.exp: Ditto.
17311 * gdb.base/signals.exp (signal_tests_1): Remove setup_xfail
17312 "i*86-*-linux" for "signal SIGUSR1". Now works, at least with
17315 * gdb.threads/pthreads.c (_MIT_POSIX_THREADS): Define if target is
17316 linux. This allows the test case to at least compile on latest
17317 linux, but still not run due to missing the threads runtime library.
17321 * gdb.base/a1-selftest.exp (do_steps_and_nexts): Reinitialize source
17322 directory to search gdb directory. Accept and step over conditional
17323 stack alignment code. Consume $prompt in failure cases.
17324 Reset timeout to $oldtimeout instead of some arbitrary value.
17325 * gdb.base/nodebug.exp: Limit backtrace to 10 frames to avoid
17326 timeout problems with infinite stack backtraces.
17327 * gdb.base/ptype.exp (ptype struct link, union tu_link):
17328 Accept function parameters for linkfunc member.
17332 * lib/gdb.exp (CFLAGS): Remove, unreferenced.
17333 (CXXFLAGS): Remove, unreferenced.
17334 (B_OPTIONS): Add for -B options and add code to initialize with
17335 previous -B options and also add -B option to pick up cross compiled
17337 (TARGET_INCLUDES): Add for -I options and add code to initialize when
17338 doing cross compiles.
17339 (target_alias): Declare global.
17340 (xgcc): Set variable to full path of gcc in build tree. Use findfile
17341 to verify that gcc exists in build tree, and if so set CC to that
17342 gcc and to use B_OPTIONS and TARGET_INCLUDES.
17346 * gdb.c++/inherit.exp (test_print_anon_union): Reenable
17347 ptype test for anonymous union. Fixup testcase to match
17348 current gcc debug output.
17352 * gdb.base/funcargs.c: Use cast rather than "UL" suffix to
17353 force argument to an unsigned long type.
17357 * gdb.c++/inherit.exp (test_ptype_si): Fix tagless struct ptype
17358 tests and anonymous union print/ptype tests.
17359 * gdb.base/list.exp (test_forward-search): Increase timeout by
17360 5 minutes for the "search extremely long line" case.
17361 * lib/gdb.exp (gdb_test): Document that the third arg to gdb_test is
17362 completely optional and that the pass/fail messages use the command as
17363 the message if that third arg is a null string.
17364 (gdb_test_exact): Arrange that a null string pattern means match a
17365 null string output rather than any output, which might include random
17367 * gdb.base/mips_pro.exp: Add "mips*-sgi-irix4*" xfail for
17369 * gdb.c++/demangle.exp: Add a "*-*-*" xfail for test that was
17370 always failing and failure is now exposed by gdb.exp changes.
17374 * gdb.c++/inherit.exp (test_ptype_vi): Log some passes that
17375 weren't being noted.
17379 * gdb.base/corefile.exp: Consume $prompt in mmap fail cases.
17380 * gdb.stabs/weird.exp: Remove v_comb xfails.
17384 * gdb.base/[bitfields.exp crossload.exp funcargs.exp interrupt.exp
17385 list.exp scope.exp watchpoint.exp]
17386 Make all timeout error msgs explicitly say "(timeout)".
17390 * config/monitor.exp: Increase download timeout to 1000 seconds.
17394 * config/m32r.exp: Increase timeout to 120 seconds.
17398 * gdb.c++/classes.exp: Modify to handle current gcc C++ member ordering
17399 and accept older ordering as obsolescent gcc or gdb.
17400 * gdb.c++/templates.exp: Ditto.
17401 * gdb.c++/virtfunc.exp: Ditto.
17405 * gdb.base/coremaker.c: Add code to mmap some data so we
17406 can check that it ends up in the core file.
17407 * gdb.base/corefile.exp: Add test to read mmapped data
17412 * config/m32r.exp: New file.
17416 * testsuite/gdb.base/nodebug.exp: Whack out -g options by hand so
17417 that cflags can contains -gstabs, and work correctly for other tests.
17421 * gdb.base/setshow.exp: New file, tests show and set.
17422 * gdb.base/setshow.c: New file, tests show and set.
17423 * gdb.base/help.exp: Add test for help set|show annotate.
17424 * gdb.base/default.exp: Add test for set|show annotate.
17428 * testsuite/gdb.base/break.exp: Make backtrace from factorial
17430 * testsuite/gdb.base/nodebug.exp: Whack out all -g options
17435 * config/sim-gdb.exp (gdb_target_sim): Remove setting of height
17436 and width commands. This is done elsewhere.
17437 * (gdb_start): Don't call gdb_start_sim here. That's already
17438 done in gdb_load. This fixes lots of failures in default.exp.
17443 * gdb.base/mips_pro.exp: Fix misplaced gdb_exit/gdb_start/gdb_load.
17444 * lib/gdb.exp (gdb_test): Treat failures due to program exiting
17445 in the same we we treat other failures (since it may be an expected
17446 condition), rather than as an error.
17447 * gdb.base/signals.exp (test_handle_all_print): Revert back to
17452 * Makefile.in (clean mostlyclean): Also remove chill *.grt files.
17453 (distclean maintainer-clean realclean): No need to remove files
17454 twice. Nuke the duplicates.
17455 * gdb.base/Makefile.in (EXECUTABLES): Add "structs".
17456 * gdb.threads/Makefile.in (distclean maintainer-clean realclean):
17457 Remove config.h along with other config files.
17461 * gdb.base/interrupt.exp: Add i*86-*-linux* setup_xfail for
17462 "p func1 ()" and note that rests of tests are skipped.
17463 * gdb.base/corefile.exp: Add i*86-*-linux* and m68*-*-hpux*
17464 setup_xfails for "print func2::coremaker_local".
17465 Add i*86-*-linux* setup_xfail for "backtrace in corefile.exp".
17466 * gdb.base/mips_pro.exp: Restart gdb in this test so it isn't
17467 affected by the previous run test.
17468 * gdb.chill/misc.exp: Add m68*-*-hpux* setup_xfails for
17469 "print array () ubyte (foo)" and "print/x array () byte (\$i)"
17470 * gdb.chill/pr-8742.exp: Add m68*-*-hpux* setup_xfails for
17471 "pass int powerset tuple" and "pass modeless int powerset tuple".
17472 * gdb.chill/tests2.exp: Add m68*-*-hpux* setup xfails for
17473 "real write 4" and "real write 8".
17474 * gdb.shill/tuples.exp: Add i*86-*-linux* and m68*-*-hpux*
17475 setup_xfails for "print vs1 after tuple assign 2",
17476 "print \$i after tuple assign 2", and
17477 "print vs2 after tuple assign 2".
17478 * lib/gdb.exp (gdb_test): When a gdb aborts, print a more
17479 meaningful error message and return -1 so the caller can
17480 suppress further tests and avoid a cascade of errors.
17484 * gdb.base/a1-selftest.exp: Tweak tests to account for new
17485 format for printing version.
17486 * gdb.base/default.exp: Ditto.
17487 * gdb.base/interrupt.exp: Fix problem with cascade of
17488 errors if child process dies while calling a function.
17492 * Makefile.in (VPATH): Add
17493 * Makefile.in (Makefile, config.status): Fix rules so things get
17494 remade when necessary.
17498 * Makefile.in (just-check): Add path to sibling expect dir
17499 to environment variable specified by RPATH_ENVVAR.
17503 * Makefile.in (RPATH_ENVVAR): New var, set to @RPATH_ENVVAR@.
17504 (just-check): Add shared library paths for libstdc++, tk,
17505 tcl, bfd, and opcodes to the environment variable specified
17507 * configure.in: Add support to recognize --enable-shared flag
17508 and generate correct value for RPATH_ENVVAR.
17509 * configure: Regenerated with autoconf.
17513 * gdb.base/break.exp: Expand "Delete all breakpoints" xfail to
17514 include all osf versions.
17515 * gdb.threads/pthreads.exp: Expand "run to main" xfail to include
17516 all osf versions. Add -D_MIT_POSIX_THREADS to compilation command
17517 when target is linux. When failing to build pthreads test
17518 executable, give more meaningful message.
17519 * gdb.threads/pthreads.c: Hpux also uses old definition of second
17520 arg for pthread_create.
17524 * gdb.threads/pthreads.c (PTHREAD_CREATE_ARG2,
17525 PTHREAD_CREATE_NULL_ARG2): Accomodate old pthreads implementations.
17526 * gdb.threads/pthreads.exp: Try linking with both -lpthread (Solaris)
17527 and -lpthreads (everybody else).
17528 (test_startup): Fail gracefully if threads are not supported.
17529 * gdb.base/nodebug.exp: Add setup_xfail hppa*-*-hpux* for
17530 "p/c array_index("abcdef",2)" when not gcc compiled.
17531 * gdb.base/corefile.exp: Add setup_xfail hppa*-*-hpux* for
17532 "print func2::coremaker_local" when not gcc compiled.
17533 * gdb.base/opaque.exp: Remove setup_xfail hppa*-*-hpux* for
17534 "ptype on opaque struct tagname (statically)",
17535 "ptype on opaque struct tagname (dynamically) 1", and
17536 "ptype on opaque struct tagname (dynamically) 2"
17537 for not compiled with gcc.
17538 * gdb.base/mips_pro.exp: Only do setup_xfail hppa*-*-* for
17539 backtrace when compiled with gcc.
17540 * lib/gdb.exp (runto_main): Return result of "runto main" rather
17541 than always return success.
17545 * gdb.c++/virtfunc.exp: Remove setup_xfail for "mips-*-irix5*".
17549 * gdb.base/structs.exp: Undo last change.
17553 * gdb.base/a1-selftest.exp (do_steps_and_nexts): New routine to
17554 encapsulate all the steps/nexts done during self test, starting
17555 at main, and makes them less sensitive to optimization issues.
17556 Add "hppa*-*-hpux*" to setup_xfail for "backtrace through
17557 signal handler" test.
17558 * gdb.threads/pthreads.exp: Only run this for native configs.
17559 * gdb.base/structs.exp (do_function_calls): Add hppa*-*-hpux9*"
17560 setup_xfails for "p fun5()", "p fun6()", "p fun7()", and "p fun8"
17562 gdb.c++/virtfunc.exp (do_tests): Add "mips-*-irix5*" setup_xfail
17563 for "runto test_calls(void)" test.
17567 * gdb.base/term.exp: Set 7-bit strings, address off, width to 0,
17568 and don't expect address info in breakpoint confirmations.
17572 * gdb.base/list.exp (test_forward_search): Increase timeout
17573 temporarily by 60 seconds for searching extremely long line,
17574 and then reset to old value when done. Increase expect input
17579 * gdb.base/list.exp (test_forward_search): Fix to handle very
17580 long source line without overflowing expect's input buffer.
17584 * config/slite-gdb.exp (gdb_start): Use "full_buffer", not
17587 * config/nind-gdb.exp (gdb_start): Use "full_buffer", not
17590 * config/mips-gdb.exp (gdb_start): Use "full_buffer", not
17593 * lib/gdb.exp (gdb_test): Correct pattern is "full_buffer", not
17598 * configure.in (configdirs): Add gdb.threads.
17599 * configure: Regenerated with autoconf.
17600 * gdb.threads/{config.in, pthreads.c, pthreads.exp}: New.
17601 * gdb.threads/{Makefile.in, configure.in}: Complete rewrites.
17602 * gdb.threads/configure: New, generated with autoconf.
17606 * lib/gdb.exp (gdb_test_exact): Turn \n in pattern into \r\n.
17610 * gdb.base/signals.exp (test_handle_all_print): Test separately for
17611 each signal's status in the output of "handle all print".
17612 * lib/gdb.exp (gdb_test): Document that the pattern must NOT include
17613 the \r\n sequence that immediately precedes the gdb prompt.
17614 * gdb.base/a1-selftest.exp: Save original timeout and restore
17619 * gdb.disasm/hppa.s: Export fmemLRbug_tests_4 as a ST_CODE
17624 * config/vx-gdb.exp (gdb_start): Fix syntax of `$shell_id < 0'.
17628 * gdb.base/signals.exp (test_handle_all_print): Temporarily increase
17629 timeout by 60 seconds.
17633 * config/unix-gdb.exp: Increase default timeout from 30 to 60 sec.
17634 * config/netware.exp (gdb_run_cmd): Restore old timeout before doing
17639 * lib/gdb.exp (default_gdb_start): When reporting a timeout during
17640 gdb initialization, also report how long dejagnu waited. Restore
17641 old timeout before doing error return. Temporarily increase timeout
17642 by 3 minutes to allow for slow startups over heavy NFS use.
17646 * lib/gdb.exp: Report timeout value for verbosity level 2.
17647 * config/gdbserver.exp: Ditto.
17648 * config/hppro.exp: Ditto.
17649 * config/mips-gdb.exp: Ditto.
17650 * config/monitor.exp: Ditto.
17651 * config/netware.exp: Ditto.
17652 * config/sim-gdb.exp: Ditto.
17653 * config/slite-gdb.exp: Ditto.
17654 * config/udi-gdb.exp: Ditto.
17655 * config/unix-gdb.exp: Ditto.
17656 * config/vx-gdb.exp: Ditto.
17657 * gdb.base/a1-selftest.exp: Ditto.
17658 * gdb.base/a2-run.exp: Ditto.
17659 * gdb.base/break.exp: Ditto.
17660 * gdb.base/corefile.exp: Ditto.
17661 * gdb.base/list.exp: Ditto.
17662 * gdb.base/recurse.exp: Ditto.
17663 * gdb.base/scope.exp: Ditto.
17664 * gdb.base/signals.exp: Ditto.
17668 * gdb.threads/Makefile.in (docdir): Removed.
17672 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
17673 * gdb.{base,c++,chill,disasm,stabs}/Makefile.in (VPATH): set to
17675 * gdb.{base,c++,chill,disasm,stabs}/configure.in (AC_PREREQ):
17676 autoconf 2.5 or higher.
17677 * gdb.{base,c++,chill,disasm,stabs}/configure: Rebuilt.
17681 * configure: Regenerated.
17682 * aclocal.m4 (CY_AC_PATH_TCLH, CY_AC_PATH_TKH): Use odd names to
17683 avoid name clashes with SunOS headers.
17687 * gdb.c++/virtfunc.exp: Search $objdir/../../libstdc++ for libstdc++.
17691 * gdb.base/callfuncs.exp: Finish last change -- make sure the
17692 prototype information ends up in the compiler info file.
17696 * gdb.base/callfuncs.exp: Remove the compiler info file prior to
17697 attempting to regenerate it. Eliminate use of a temporary file
17698 and just generate the info file directly. Source it immediately,
17699 for consistency of use.
17700 * gdb.base/corefile.exp: Ditto
17701 * gdb.base/exprs.exp: Ditto.
17702 * gdb.base/funcargs.exp: Ditto.
17703 * gdb.base/langs.exp: Ditto.
17704 * gdb.base/list.exp: Ditto.
17705 * gdb.base/mips_pro.exp: Ditto.
17706 * gdb.base/nodebug.exp: Ditto.
17707 * gdb.base/opaque.exp: Ditto.
17708 * gdb.base/ptype.exp: Ditto.
17709 * gdb.base/scope.exp: Ditto.
17710 * gdb.base/setvar.exp: Ditto.
17711 * gdb.base/signals.exp: Ditto.
17712 * gdb.base/whatis.exp: Ditto.
17713 * gdb.c++/templates.exp: Ditto.
17714 * gdb.c++/virtfunc.exp: Ditto.
17715 * gdb.c++/virtfunc.exp: Use contents of gcc_compiled to decide
17716 whether or not to add -lstdc++ to the compile command line args.
17720 * gdb.base/recurse.exp: Remove setup_xfail for "sparc*-*-sunos4*",
17721 it got fixed by the recent lookup_minimal_symbol_by_pc change.
17722 Increase timeout, a lot of single stepping might be needed if the
17723 target has no hardware watchpoints.
17727 * gdb.base/break.exp: Ignore compiler warnings when compiling
17729 * gdb.base/callfuncs.exp: Don't run these tests on the h8300.
17730 * gdb.base/default.exp: Add h8300 xfails. Handle messages
17732 * gdb.base/exprs.exp: Add h8300 xfails.
17733 * gdb.base/funcargs.exp: Likewise.
17734 * gdb.base/nodebug.exp: Likewise.
17735 * gdb.base/printcmds.exp: Likewise.
17736 * gdb.base/ptype.exp: Likewise.
17737 * gdb.base/setvar.exp: Handle sizeof (int) != 4 for h8300. Add
17739 * gdb.base/return.exp: Handle float/double precision problems
17741 * gdb.base/funcargs.c: Explicitly make last constant argument to
17742 call_after_alloca_subr an unsigned long type.
17743 * gdb.base/return.c: Include stdio.h.
17747 * config/abug.exp: New file for the older Motorola Bug monitor
17748 that runs on the mvme13x series VME boards.
17749 * config/monitor.exp: Use the new config array for target settings
17754 * sim-gdb.exp: Make the SH simulator allocate less space when
17759 * gdb.base/mips_pro.exp: Expect failure for hppa*-*-* in backtrace
17764 * gdb.base/list.exp (test_list_function): Remove setup_xfail for
17765 "rs6000-*-*" for "list function in include file" when gcc compiled.
17766 * gdb.base/printcmds.exp: Remove setup_xfail for "rs6000-*-aix*"
17767 for "p ctable1[120]".
17768 * gdb.base/scope.exp: Remove setup_xfail for "rs6000-*-*" for
17769 "print 'scope0.c'::filelocal_bss before run" when gcc compiled.
17770 Remove setup_xfail for "rs6000-*-*" for
17771 "print 'scope0.c'::filelocal before run".
17772 * gdb.base/{langs.exp, lists.exp, opaque.exp, scope.exp},
17773 gdb.stabs/weird.exp: Remove use of compiler options "-c -o ..."
17774 since some compilers don't allow both options to be given
17775 on the same command line. Create object file and move it.
17779 * gdb.base/corefile.exp: Always regenerate the core file, since
17780 we always regenerate the coremaker program. Detect special case
17781 where registers cannot be read from core file.
17786 * gdb.base/funcargs.c: Patch for SPARCworks alloca compatibility
17787 * gdb.c++/templates.exp: Only match on basename of file since
17788 some formats like xcoff don't encode directory information.
17789 * gdb.stabs/weird.exp: Use the right sed script for powerpc
17790 and rs6000 AIX xcoff targets.
17791 * configure.in: Add stabsdirs to configdirs for powerpc-*-aix*.
17792 * configure: Regenerate.
17793 * gdb.base/Makefile.in (clean): Remove generated file twice-tmp.c
17794 here, rather than in distclean.
17798 * gdb.base/mips_pro.exp: Create mips_pro.ci to get gcc_compiled
17799 defined, and use it to compile the test case with -O2. The
17800 native compilation still uses no optimization.
17801 * gdb.base/mips_pro.c: Remove inline assembly code since
17802 it is compiled PIC by default, which results in assembler
17803 warnings that make the testsuite think the compilation
17808 * gdb.c++/misc.exp: Add note to message for
17809 "print s.a for foo struct" that this is a known gcc 2.7.2
17814 * gdb.base/break.exp: Fix pattern for matching "Delete all
17815 breakpoints (y or n) ". Add "mips-dec-ultrix*" to
17816 setup_xfail for deleting all breakpoints test. Fix various
17817 timeout messages to include "(timeout)".
17818 * gdb.base/callfuncs.exp: Add "i*86-*-sysv4*" to setup_xfail
17819 for "p t_float_values2(3.14159,float_val2)".
17820 * gdb.base/funcargs.exp: Remove "mips-sgi-irix4*" setup_xfail
17821 for "continue to call2g" when gcc compiled.
17822 * gdb.base/langs.exp: Remove "i*86-*-sysv4*" setup_xfail for
17823 "up to foo in langs.exp", "show language at foo in langs.exp",
17824 "show language at cppsub_ in langs.exp", "up to fsub in langs.exp",
17825 and "show language at fsub in langs.exp".
17826 * gdb.base/list.exp: Remove "*-*-sysv4*" setup_xfail for
17827 "list line 1 in include file", "list message for lines past EOF",
17828 "list function in include file", "list list0.h:foo", and
17829 "list filename:function; nonexistant function".
17830 * gdb.base/ptype.exp: Change "i*86-*-sysv4*" setup_xfail for
17831 "whatis unnamed typedef'd enum (compiler bug in IBM's xlc)"
17832 and "ptype t_char_array" to be for native cc only.
17836 * gdb.base/corefile.exp: Remove "alpha-dec-osf2*" native compiled
17837 setup_xfail for "print coremaker_bss", "print coremaker_ro",
17838 "print func2::coremaker_local", and "backtrace in corefile.exp".
17842 * gdb.base/signals.exp: Remove "alpha-*-osf2*" setup_xfail for
17843 "bt in signals.exp". This problem only appears when running
17844 the testsuite, and then only intermittently.
17848 * gdb.base/return.exp (return_tests): Differentiate between
17849 two tests of continuing.
17853 * */Makefile.in (maintainer-clean): Remove config.log.
17854 * gdb.base/Makefile.in (EXECUTABLES): Replace twice with twice-tmp.
17855 * gdb.c++/Makefile.in (PROGS): Add inherit.
17856 (clean): Remove *.ci.
17860 * gdb.c++/misc.cc: Add test code from Mike Stump.
17861 * gdb.c++/misc.exp: Add test to print s.a, for Mike Stump.
17865 * gdb.base/signals.exp: Change setup_xfail for "alpha-*-osf2"
17866 to "alpha-*-osf2*" and add comment.
17867 * gdb.base/a1-selftest.exp (test_with_self): Remove "alpha-dec-osf2*"
17868 setup_xfail for "step over execarg initialization" and
17869 "step over corearg initialization".
17870 * gdb.base/callfuncs.exp (do_function_calls): Restore setup_xfail
17871 for "hppa*-*-*", "sparc-*-*", "mips*-*-*", and "alpha-dec-osf2*".
17872 * gdb.base/corefile.exp: Add "alpha-dec-osf2*" setup_xfail when not
17873 gcc compiled for "print coremaker_bss", "print coremaker_ro",
17874 "print func2::coremaker_local", and "backtrace in corefile.exp".
17875 * gdb.base/signals.exp: Build and source signals.ci.
17876 Change "alpha-dec-osf2*" setup_xfail for "bt in signals.exp"
17877 to be for gcc only.
17878 * lib/gdb.exp: Move verbose statements outside conditionals.
17882 * gdb.base/sigall.exp: Remove setup_xfail for irix4. Fixed by
17883 Feb 3 procfs.c change.
17887 * config/unix-gdb.exp: Remove extraneous newlines from end of file.
17891 * config/unix-gdb.exp: Default timeout in UNIX case to 30 seconds, up
17892 from dejagnu's apparent default of 10 seconds, which gives random
17893 results when running the tests over NFS on moderately loaded systems.
17894 * lib/gdb.exp (gdb_run_cmd): Add "(timeout)" in timeout case.
17898 * gdb.base/callfuncs.exp: Remove setup_xfail for PR 5318. Now fixed.
17899 * gdb.base/a2-run.exp: Replace $binfile with $testfile in test
17904 * configure.in (CY_AC_PATH_TCLH): Remove.
17905 * configure: Regenerate.
17909 * gdb.c++/Makefile.in (clean): Add missing '{'.
17913 * lib/gdb.exp: Provide a default value for noinferior.
17915 * lib/gdb.exp: Fix typos (LDLAGS -> LDFLAGS).
17920 * gdb.disasm/hppa.exp: Compile directly into an executable, use
17921 the executable, not the .o to run the tests from.
17925 * gdb.base/break.exp: Don't test for program exit or exit status
17926 if $noresults if nonzero.
17927 * gdb.base/langs.exp: Likewise.
17928 * gdb.base/watchpoint.exp: Likewise.
17930 * gdb.base/default.exp: Remove extraneous call to load gdb.exp.
17931 * gdb.chill/pr-8405.exp: Move skip_chill_tests check to just before
17932 trying to compile the testcase.
17936 * gdb.base/interrupt.exp (p func1): xfail sparc64-*-solaris2.
17937 * gdb.base/signals.exp (continue to handler): Likewise.
17941 * gdb.c++/classes.exp: Now = returns false/true, not 1/0.
17943 * gdb.fortran/exprs.exp: .LT. and .GT. now return .TRUE. or .FALSE..
17947 * gdb.base/corefile.exp: Recognize "not found" as failure
17948 when trying to determine if a core file was generated.
17949 If no core file was generate the first time, try again without
17950 the ulimit -c to work around braindamaged shells.
17954 * gdb.stabs/configure.in (alpha-*-*,mips-*-*): Replace
17955 [] tests with "test" and enclose string in quotes.
17956 * gdb.stabs/configure: Rebuild
17960 Changes in sync with expect:
17961 * aclocal.m4 (CY_AC_PATH_TCLH): Handle Tcl 7.5 and greater.
17962 (CY_AC_PATH_TCLLIB): Handle Tcl 7.5 and greater.
17963 (CY_AC_PATH_TKH): Handle Tk 4.1 and greater.
17964 (CY_AC_PATH_TKLIB): Handle Tk 4.1 and greater. Properly quote
17965 argument to AC_REQUIRE.
17966 * configure: Regenerated.
17970 * gdb.base/corefile.exp: When generating a core, discard any
17971 error messages about ulimit not found and the "core dumped"
17972 message from the shell that runs the coredumper.
17976 * lib/gdb.exp (skip_chill_tests): Skip them on the PA too.
17978 * gdb.stabs/weird.exp: Use ${target_triplet} to determine
17979 which sed script to run. Expect failure for v_comb test
17984 * gdb.base/corefile.exp: Remove "i*86-*-linux" xfail for
17985 "print func2::coremaker_local" and for "backtrace in corefile.exp"
17989 * lib/gdb.exp: Fix typo and rewrite skip_chill_tests.
17990 * gdb.stabs/weird.exp: Setup "sparc-sun-sunos4*" and
17991 "sparc-sun-solaris*" xfails for "p v_comb".
17992 * lib/gdb.exp (default_gdb_start): Fix typo.
17993 * gdb.base/corefile.exp: Allow "Core was generated by ..."
17994 messages to not include the full program name that caused
17995 the core dump since some systems (such as solaris) apparently
17996 truncate this path to about 80 characters.
17997 When generating a core file first try increasing the core file
17998 size limit to unlimited since some systems may default it to
17999 zero, and it is harmless to try it. Move the test for failing
18000 to generate a core file to where it will actually get executed.
18001 * gdb.c++/templates.exp (test_ptype_of_templates): Accept
18002 new gdb result from g++ debug info improvements and make old
18003 pattern obsolescent. Also account for size_t differences
18004 (may be int or long).
18005 * gdb.base/a1-selftest.exp (test_with_self): Check for case where
18006 initialization before function call is placed in the delay slot
18007 and thus appears to be skipped over by commands such as "next".
18011 * gdb.base/a1-selftest.exp (test_with_self): Run without windows.
18015 * gdb.base/*.exp: Make ${srcfile} only be the basename of the
18016 input source file; fix code to compile test to deal with this
18018 * gdb.c++/*.exp: Likewise.
18022 * gdb.base/signals.exp: Setup "alpha-*-osf2*" xfail for
18023 "bt in signals.exp".
18027 * gdb.base/a1-selftest.exp: Add alpha-dec-osf2 setup_xfail for
18028 "step over execarg initialization" and
18029 "step over corearg initialization".
18033 * gdb.base/ptype.c (main): Declare malloc as a "char *" for systems
18034 with sizeof(pointer) > sizeof(int). Avoid "void *" or include files.
18039 * Makefile.in, configure.in, gdb.base/{Makefile.in, configure.in},
18040 gdb.c++/{Makefile.in, configure.in}, gdb.chill/{Makefile.in,
18041 configure.in}, gdb.disasm/{Makefile.in, configure.in},
18042 gdb.stabs/{Makefile.in, configure.in}, gdb.threads/{Makefile.in,
18043 configure.in}: Major reworking for autoconfig.
18044 * aclocal.m4, configure, gdb.base/configure, gdb.c++/configure,
18045 gdb.disasm/configure, gdb.stabs/configure, gdb.stabs/default.mt :
18047 * config/unix-gdb.exp: Make GDB global.
18048 * gdb.base/{a1-selftest.exp, a2-run.exp,bitfields.exp, break.exp,
18049 callfuncs.exp, commands.exp, corefile.exp, crossload.exp, exprs.exp,
18050 funcargs.exp, interrupt.exp, langs.exp, list.exp, mips_pro.exp,
18051 nodebug.exp, opaque.exp, printcmds.exp, ptype.exp, recurse.exp,
18052 regs.exp, return.exp, scope.exp, setvar.exp, sigall.exp, signals.exp,
18053 term.exp, twice.exp, watchpoint.exp, whatis.exp},
18054 gdb.c++/{classes.exp, callfuncs.exp, inherit.exp, misc.exp,
18055 templates.exp, virtfunc.exp}, gdb.chill/{callch.exp, chillvars.exp,
18056 misc.exp, pr-4975.exp, pr-5016.exp, pr-5020.exp, pr-5022.exp,
18057 pr-5646.exp, pr-5984.exp, pr-6292.exp, pr-6632.exp, pr-8134.exp,
18058 pr-8136.exp, result.exp, string.exp, tuples.exp},
18059 gdb.disasm/{hppa.exp, sh3.exp}, gdb.stabs/weird.exp: Change continues
18060 to returns as necessary, arrange for test to compile own testcase
18062 * lib/gdb.exp: Changes for testsuite to compile own test cases.
18066 * gdb.c++/classes.exp (test_pointers_to_class_members): Add
18067 clear_xfail at end of test which might not call either pass or fail.
18068 * gdb.base/a1-selftest.exp: Add i*86-*-linuxaout xfail for
18069 "backtrace through signal handler".
18073 * gdb.base/sigall.exp: Work around OSF/1-3.x kernel bug when
18074 continuing from a job control stop signal.
18075 * gdb.stabs/alpha.mt: Use $(CFLAGS) when building weird.o.
18079 * gdb.base/callfuncs.exp: Remove bogus hppa xfails.
18080 * gdb.base/corefile.exp: Likewise.
18081 * gdb.base/funcargs.exp: Likewise.
18085 * config/hmsirom.exp: Setup for talking to hmsi ROM monitor.
18086 * config/monitor.exp: Add support for setting baud rate.
18090 * gdb.base/a1-selftest.exp: Remove i*86-*-sysv4* and
18091 i*86-*-linux* xfails for "backtrace through signal handler".
18092 * gdb.base/corefile.exp: Add i*86-*-sysv4* xfail for
18093 "print func2::coremaker_local".
18094 * gdb.base/break.exp: Add i*86-*-sysv4*, sparc-sun-sunos4,
18095 alpha-dec-osf2* xfail for
18096 "delete all breakpoints when none".
18100 * gdb.base/break.exp: Change test that deletes all breakpoints
18101 when no user breakpoints are installed. A post 4.15 change
18102 causes gdb to no longer prompt in this case.
18106 * gdb.base/return.exp (return_tests): Change xfail for test
18107 "correct value returned double test" to stop xfailing at
18108 Solaris 2.5. Apparently the bug has been fixed.
18112 * gdb.stabs/ecoff.sed: Remove comment lines except for first one.
18113 IRIX 4.0 /bin/sed chokes on them, though they work fine elsewhere.
18117 * gdb.disasm/hppa.exp: Test lci and syncdma instructions.
18118 * gdb.disasm/hppa.s: Corresponding changes.
18122 * gdb.base/configure.in (hppa*-*-hpux*): No longer needs target
18124 * config/mt-hpux: Deleted.
18128 * Many files: When warning about suppressed tests due to a
18129 nonexistant test binary, avoid incrementing the warning count.
18133 * Makefile.in (TARGET_FLAGS_TO_PASS): Remove BISON.
18137 * gdb.base/return.exp: Change xfail from "sparc-*-solaris2.*" to
18138 "sparc-*-solaris2*".
18142 * gdb.base/coremaker.c: Produce a full core dump for AIX targets.
18143 Add global and local variables and initialize them.
18144 * gdb.base/corefile.exp: Test correct mapping of corefile sections
18145 by printing variables. Remove rs6000 and powerpc xfails, BFD now
18146 extracts the file name and terminating signal from the core file.
18147 * TODO: Remove note about tests for correct mapping of corefile.
18148 * gdb.base/ptype.c (main): Use boolean2 to inhibit AIX 4.1 xlc
18149 from optimizing it away.
18150 * gdb.stabs/weird.exp: Remove rs6000 xfail, xcoffread.c now
18151 handles common blocks.
18155 * gdb.disasm/sh3.s (fmac): Update for new assembler syntax
18156 * gdb.disasm/sh3.exp (fmac): Corresponding changes.
18160 * Makefile.in (maintainer-clean): New target, synonym for
18162 * gdb.base/Makefile.in (maintainer-clean): Likewise.
18163 * gdb.c++/Makefile.in (maintainer-clean): Likewise.
18164 * gdb.chill/Makefile.in (maintainer-clean): Likewise.
18165 * gdb.disasm/Makefile.in (maintainer-clean): Likewise.
18166 * gdb.stabs/Makefile.in (maintainer-clean): Likewise.
18167 * gdb.threads/Makefile.in (maintainer-clean): Likewise.
18171 * gdb.base/scope.exp (text_at_main): Add "hppa*-*-hpux*"
18172 xfails when not gcc compiled for "print foo::funclocal".
18173 (test_at_foo): Add "hppa*-*-hpux*" xfails when not gcc compiled for:
18174 "print foo::funclocal at foo",
18175 "print 'scope1.c'::foo::funclocal at foo",
18176 "print foo::funclocal_bss at foo",
18177 "print 'scope1.c'::foo::funclocal_bss at foo",
18178 "print foo::funclocal_ro at foo",
18179 "print 'scope1.c'::foo::funclocal_ro at foo",
18180 "print bar::funclocal at foo" and
18181 "print 'scope1.c'::bar::funclocal at foo".
18182 (test_at_bar): Add "hppa*-*-hpux*" xfails when not
18183 gcc compiled for "print foo::funclocal at bar".
18184 Expand all messages to ensure that they identify that
18185 the test is at bar().
18186 * gdb.base/opaque.exp: Add "hppa*-*-hpux*" xfails when not
18188 "ptype on opaque struct pointer (statically)",
18189 "ptype on opaque struct tagname (statically)",
18190 "ptype on opaque struct pointer (dynamically) 1",
18191 "ptype on opaque struct tagname (dynamically) 1",
18192 "ptype on opaque struct pointer (dynamically) 2" and
18193 "ptype on opaque struct tagname (dynamically) 2
18194 * gdb.base/nodebug.exp: Add "hppa*-*-hpux*" xfails when not
18197 "whatis datalocal",
18200 "whatis bsslocal", and
18202 * gdb.base/langs.exp: Add "hppa*-*-hpux*" xfails for
18203 "backtrace in langs.exp" and "up to langs0__2do in langs.exp"
18204 when not gcc compiled.
18205 * gdb.base/funcargs.exp (float_and_integral_args): Add
18206 "hppa*-*-hpux*" xfail for "run to call2a" when not gcc
18208 (discard_and_shuffle): Add "hppa*-*-hpux*" xfail for
18209 "backtrace from call6a" when not gcc compiled.
18210 (shuffle_round_robin): Add "hppa*-*-hpux*" xfail for
18211 "backtrace from call7a" when not gcc compiled.
18212 * gdb.base/callfuncs.exp (do_function_calls):
18213 Add "hppa*-*-hpux*" xfail when not gcc compiled for
18214 "p t_char_array_values(char_array_val2,char_array_val1)",
18215 "p t_char_array_values(char_array_val1,char_array_val2)",
18216 "p t_char_array_values("carray 1","carray 2")",
18217 "p t_char_array_values("carray 1",char_array_val2)",
18218 "p t_char_array_values(char_array_val1,"carray 2")",
18219 "p sum_args(1,{2})",
18220 "p sum_args(2,{2,3})",
18221 "p sum_args(3,{2,3,4})",
18222 "p sum_args(4,{2,3,4,5})"
18223 * gdb.base/corefile.exp: Add "hppa*-*-hpux*" xfail for
18224 "backtrace in corefile.exp" when not gcc compiled.
18228 * gdb.base/signals.exp: Rewrite `handle all print' test as
18229 a procedure. Accept blanks or TABs as whitespace, increase
18230 timeout and expect input buffer size for the large output
18231 from the command. Remove "i*86-*-bsdi2.0" xfail.
18235 * gdb.base/setvar.exp: Add new testcases for truncation when
18236 assigning invalid values to bitfields.
18240 * gdb.base/callfuncs.exp (do_function_calls): Remove
18241 mips-sgi-irix* xfail for
18242 "call inferior func with struct - returns char *"
18243 and fix test so that an optional (unsigned char *) cast is
18244 accepted in the result.
18248 * gdb.base/funcargs.exp (float_and_integral_args): Remove
18249 sparc-sun-solaris2* xfail for "print f1 after run to call2a".
18250 * gdb.c++/Makefile.in (SUFFIXES): Add .SUFFIXES and ".cc" suffix.
18251 * gdb.base/signals.exp: Remove duplicate "handle all print" test
18252 that accidentally got checked in.
18256 * gdb.base/callfuncs.exp (do_function_calls): Add alpha-dec-osf2*
18257 clear_xfail for "p t_float_values2(3.14159,float_val2)" for gcc
18259 * gdb.base/opaque.exp (setup_xfail_on_opaque_pointer):
18260 Add mips-sgi-irix5* xfail for not gcc compiled.
18261 * gdb.base/Makefile.in (nodebug.o): Also create nodebug.ci.
18262 * gdb.base/nodebug.exp: Add mips-sgi-irix5 xfail when not gcc compiled for
18263 "p top", "whatis top", "p middle", and "whatis middle".
18264 * gdb.base/whatis.exp: Add mips-sgi-irix* xfail for
18265 "whatis signed char" for not gcc compiled.
18266 * gdb.base/setvar.exp: Add mips-sgi-irix4* xfail (works on irix5) for
18267 "set variable signed char=-1 (-1)" and
18268 "set variable signed char=0xFF (0xFF)" for not gcc compiled.
18269 * gdb.base/funcargs.exp (float_and_integral_args):
18270 Add mips-sgi-irix5* xfail for "run to call2a" for not gcc compiled.
18271 Add mips-sgi-irix* xfail when not gcc compiled for
18272 "continue to call2b".
18273 Add mips-sgi-irix4* xfail (works with irix5) when gcc compiled for
18274 "continue to call2g".
18275 (discard_and_shuffle): Add mips-sgi-irix5* xfail whn not gcc compiled for
18276 "backtrace from call6a"
18277 (shuffle_round_robin): Add mips-sgi-irix* xfail when not gcc compiled for
18278 "backtrace from call7k".
18279 Add mips-sgi-irix5* xfail when not gcc compiled for
18280 "backtrace from call7a".
18281 (localvars_after_alloca): Fix gdb_test cmds for
18282 "print * after runto ...".
18283 Remove rs6000-*-* xfails for
18284 "print i after runto localvars_after_alloca" and
18285 "print l after runto localvars_after_alloca"
18287 * gdb.base/exprs.exp: Add mips-sgi-irix4* xfails (works with irix5),
18288 when not compiled with gcc, for:
18289 "print signed char == (minus)",
18290 "print signed char != (minus)",
18291 "print signed char < (minus)",
18292 "print signed char > (minus)".
18293 * gdb.base/callfuncs.exp (do_function_calls):
18294 Add mips-sgi-irix* xfail, when compiled with native compiler, for
18295 "call inferior func with struct - returns char *".
18296 * gdb.base/return.exp (return_tests): Change xfail for
18297 "correct value returned double test" to include Solaris 2.4.
18298 * gdb.base/funcargs.exp (float_and_integral_args):
18299 Add sparc-sun-solaris2* xfail for "print f1 after run to call2a".
18303 * gdb.base/setvar.c, gdb.base/setvar.exp: Add new tests for
18304 enumeration bitfields if compiling with GNU C.
18305 * lib/gdb.exp: Consume `(y or n) ' in `Reinitialize source path
18310 * gdb.base/scope.exp: xfail 'scope0.c'::filelocal_bss before run
18311 test for PRO targets.
18313 * gdb.base/funcargs.exp: Avoid ever setting more than 8
18314 breakpoints in the inferior at any given time by making
18315 two groups of breakpoints for call2*, call6* and call7*
18320 * gdb.base/funcargs.exp: Fix typos introduced by Aug 15 change.
18321 * gdb.base/callfuncs.c (main): Use struct_val1 to inhibit xlc
18322 from optimizing it away.
18323 * gdb.base/callfuncs.exp: Remove rs6000-*-* xfails for
18324 "call inferior func with struct".
18328 * configure.in: Only configure gdb.chill for particular targets.
18332 * gdb.base/Makefile.in: Add action to .c.o transformation
18333 rule that generates a .ci file for each .o file and remove
18334 explicit .c.o rules except for callfuncs.o.
18335 * gdb.c++/Makefile.in: Add .cc.o transformation rule that
18336 generates a .ci file for each .o file and remove explicit
18338 (clean): Remove *.tmp *.ci files.
18339 (EXECUTABLES): Remove templ-info.exp.
18340 * gdb.base/compiler.c: New file.
18341 * gdb.c++/compiler.cc: New file
18342 * gdb.base/scope.exp: Source gdb.base/scope.ci.
18343 Change rs6000-*-* xfail for
18344 "print 'scope0.c'::filelocal_ro" and
18345 "print 'scope1.c'::filelocal" and
18346 "print 'scope1.c'::filelocal_bss" and
18347 "print 'scope1.c'::filelocal_ro" and
18348 "print 'scope1.c'::foo::funclocal" and
18349 "print 'scope1.c'::foo::funclocal_ro" and
18350 "print 'scope1.c'::bar::funclocal" and
18351 "print 'scope0.c'::filelocal_ro" and
18352 "print 'scope1.c'::filelocal at foo" and
18353 "print 'scope1.c'::filelocal_bss at foo" and
18354 "print 'scope1.c'::filelocal_ro at foo" and
18355 "print 'scope1.c'::foo::funclocal at foo" and
18356 "print 'scope1.c'::foo::funclocal_bss at foo" and
18357 "print 'scope1.c'::foo::funclocal_ro at foo" and
18358 "print 'scope1.c'::bar::funclocal at foo" and
18359 "print 'scope0.c'::filelocal_ro" and
18360 "print 'scope1.c'::filelocal" and
18361 "print 'scope1.c'::filelocal_bss" and
18362 "print 'scope1.c'::filelocal_ro" and
18363 "print 'scope1.c'::foo::funclocal" and
18364 "print 'scope1.c'::foo::funclocal_bss" and
18365 "print 'scope1.c'::foo::funclocal_ro" and
18366 "print 'scope1.c'::bar::funclocal" and
18367 "print 'scope1.c'::bar::funclocal_bss"
18368 to only be xfail'd when not compiled with gcc.
18369 Add rs6000-*-* xfail for
18370 "print 'scope0.c'::filelocal_bss before run"
18371 when compiled with gcc.
18372 (test_at_main): Add rs6000-*-* xfail for
18373 "print filelocal_ro in test_at_main"
18374 when compiled with gcc.
18375 * gdb.base/ptype.exp: Source gdb.base/ptype.ci.
18376 Add rs6000-*-aix* xfail for
18377 "whatis unnamed typedef'd enum (compiler bug in IBM's xlc)" and
18378 "ptype t_char_array", not compiled with gcc.
18379 * gdb.base/list.exp (test_list_function): Add rs6000-*-*
18380 xfail for "list foo (in include file)" when gcc compiled.
18381 * gdb.base/funcargs.exp: Source gdb.base/funcargs.ci
18382 (integral_args): Add rs6000-*-* xfail for
18383 "run to call0a" if not compiled with gcc.
18384 (unsigned_integral_args): Add rs6000-*-* xfail for
18385 "run to call1a" if not compiled with gcc.
18386 (float_and_integral_args): Add rs6000-*-* xfail for
18387 "run to call2a" if not compiled with gcc and for
18388 "continue to call2b" for any compiler.
18389 Add rs6000-*-* xfail to
18390 "print f1 after run to call2a" for gcc compiled.
18391 (discard_and_shuffle): Add rs6000-*-* xfail for
18393 (shuffle_round_robin): Add rs6000-*-* xfail for
18394 "backtrace from call7a" if not compiled with gcc.
18395 Add rs6000-*-* xfail for
18396 "backtrace from call7b" if compiled with gcc.
18397 (call_after_alloca): Add rs6000-*-* xfail for
18398 "print c in call_after_alloca" and
18399 "print s in call_after_alloca" and
18400 "backtrace from call_after_alloca_subr"
18401 if not compiled with gcc.
18402 (localvars_in_indirect_call): Add rs6000-*-* xfail for
18403 "print c in localvars_in_indirect_call" and
18404 "print c in localvars_in_indirect_call" and
18405 "backtrace in indirectly called function" and
18406 "stepping into indirectly called function"
18407 if not compiled with gcc.
18408 (localvars_after_alloca): Add rs6000-*-* xfail for
18409 "print c after runto localvars_after_alloca" and
18410 "print s after runto localvars_after_alloca" and
18411 "print i after runto localvars_after_alloca" and
18412 "print l after runto localvars_after_alloca"
18414 * gdb.base/whatis.exp: Source gdb.base/whatis.ci rather
18415 than whatis-info.exp.
18416 * gdb.base/opaque.exp: Source gdb.base/opaque0.ci rather
18417 than opaque-info.exp.
18418 Setup rs6000-*-* xfail for
18419 "ptype on opaque struct pointer (statically)" and
18420 "ptype on opaque struct pointer (dynamically)" when
18421 not compiled with gcc.
18422 * gdb.base/callfuncs.exp: Source gdb.base/callfuncs.ci
18423 rather than callf-info.exp.
18424 (do_function_calls): Add clear_xfail for rs6000-*-* for
18425 "p t_float_values2(3.14159,float_val2)". Seems to work
18426 fine there, both with xlc and gcc. Need to find out what
18427 it is doing right and fix other platforms.
18428 * gdb.base/callfuncs.exp: Add rs6000-*-* xfail for
18429 "call inferior func with struct - returns int",
18430 "call inferior func with struct - returns long",
18431 "call inferior func with struct - returns float",
18432 "call inferior func with struct - returns double",
18433 "call inferior func with struct - returns char *",
18434 but only if not gcc compiled (presumes xlc compiled).
18435 Change rs6000-*-* xfails for
18436 "call inferior func with struct - returns char" and
18437 " call inferior func with struct - returns short" to only
18438 xfail if not using gcc.
18439 (clean mostlyclean): Remove *.ci and *.tmp files.
18440 * gdb.c++/templates.exp: Source gdb.c++/templates.ci rather
18441 than templ-info.exp.
18442 * gdb.base/langs.exp: Source gdb.base/langs.ci.
18443 Add rs6000-*-* xfail for "up to foo in langs.exp"
18444 "up to cppsub_ in langs.exp" and "up to fsub in langs.exp"
18445 when not gcc compiled.
18449 * gdb.base/callfuncs.exp: Add xfails for the powerpc.
18450 * gdb.base/corefile.exp: Likewise.
18451 * gdb.base/list.exp: Likewise.
18452 * gdb.base/scope.exp: Likewise.
18453 * gdb.base/siganls.exp: Likewise.
18455 * gdb.base/nodebug.exp: Add xfails for the powerpc. Handle aix4
18457 * gdb.base/whatis.exp: Likewise.
18461 * gdb.disasm/sh3.exp (all_fp_misc_tests): No longer expect a
18462 failure (opcode table has been fixed to match reality).
18466 * gdb.base/callfuncs.exp: Add rs6000-*-* xfails for
18467 "call inferior func with struct - returns char",
18468 "call inferior func with struct - returns short"
18470 * gdb.base/scope.exp: Remove rs6000-*-* xfails for
18471 "print 'scope0.c'::filelocal at main",
18472 "print 'scope0.c'::filelocal_bss in test_at_main",
18473 "print 'scope0.c'::filelocal at foo",
18474 "print 'scope0.c'::filelocal_bss in test_at_foo",
18475 "print 'scope0.c'::filelocal at bar",
18476 "print 'scope0.c'::filelocal_bss in test_at_bar"
18478 * gdb.base/list.exp: Remove rs6000-*-* xfail for "list function
18479 in source file 1". This bug seems to have been fixed with both
18480 gcc and native cc (was native assembler bug?).
18484 * gdb.base/a1-selftest.exp: Change "i*86-*-sysv4" xfail for
18485 "backtrace through signal handler" to "i*86-*-sysv4*".
18486 * gdb.base/signals.exp: Add xfail for "'next' behaved as
18487 continue" case. Add "known SVR4 bug" to fail message.
18488 Add "i*86-*-bsdi2.0" xfail for "handle all print".
18489 Add "i*86-*-bsdi2.0" xfail for "backtrace in signals_tests_1".
18490 * gdb.base/ptype.exp: Add "i*86-*-sysv4*" xfail for
18491 "whatis unnamed typedef'd enum..." and "ptype t_char_array".
18492 * gdb.base/langs.exp: Add "i*86-*-sysv4*" xfail for
18493 "up to foo in langs.exp", "show language at foo in
18494 langs.exp", "up to cppsub_ in langs.exp", "show
18495 language at cppsub_ in langs.exp", "up to fsub in
18496 langs.exp", and "show language at fsub in langs.exp".
18497 * gdb.base/corefile.exp: Add "i*86-*-sysv4*" to xfail for
18498 "bactrace in corefile.exp".
18499 * gdb.base/callfuncs.exp: Change xfail to "i*86-*-*" for
18500 "call inferior function with struct - returns float" and
18501 "call inferior function with struct - returns double".
18505 * gdb.disasm/sh3.s: Source for sh3 disassembler tests.
18506 * gdb.disasm/sh3.exp: Run the sh3 disassembler tests.
18507 * gdb.disasm/configure.in (sh-*-*): Use sh3.mt makefile fragment.
18508 * gdb.disasm/sh3.mt: Makefile fragment for sh3 ests.
18512 * Makefile.in (CHILL_FOR_TARGET): Use previously defined
18513 (or overriden) "CHILL" macro rather then bare "gcc".
18514 Also look for ../../gcc/xgcc since that is what we will
18515 actually need, not "Makefile". Remove following assignment
18516 of CHILL to CHILL_FOR_TARGET because that results in
18517 recursive definition.
18521 * gdb.base/corefile.exp: Change xfail for backtrace in
18522 corefile.exp from linuxaout to all linux.
18523 * gdb.base/sigall.exp (test_one_sig): Specifically deal with
18524 cases where we miss the breakpoint at the signal handler
18525 for some reason. Setup xfail for linuxoldld/linuxaout and
18526 getting SIGIO. Setup xfail for linuxoldld/linuxaout for
18527 hitting SIGURG breakpoint.
18528 * gdb.base/signals.exp: Setup xfail for "next" acting like
18529 continue to add linuxoldld. Setup xfail for all linux for
18530 "next to handler in signals_tests_1", "backtrace in
18531 signals_tests_1", "continue to func1", "pass SIGUSR1",
18532 and continue to handler".
18536 * Update all FSF addresses except those in COPYING* files.
18540 * gdb.base/a2-run.exp: Change messages to be more explicit about
18541 the status of args, and quote binfile in results.
18545 * gdb.base/callfuncs.exp: Add tests for passing structs to
18546 inferior functions and return various types.
18547 * gdb.base/callfuncs.c: Add functions to receive a struct
18548 and return a member of the struct, in various types.
18552 * gdb.base/Makefile.in (clean): Remove callf-info.exp.
18556 * config/vxworks29k.exp: New file, sources vxworks.exp.
18560 * config/gdbremote.exp: New file. Testing framework using
18565 * gdb.base/interrupt.exp: Setup "i*86-*-linux" xfail for
18566 "call function when asleep" and "send end of file".
18567 * gdb.base/corefile.exp: Add "i*86-*-linuxaout" to xfail list
18568 for "backtrace in corefile.exp".
18569 * gdb.base/a1-selftest.exp: Add "i*86-*-linux*" to xfail list
18570 for "backtrace through signal handler".
18571 * gdb.base/corefile.exp: Make sure we actually generate a core file
18572 before trying the core tests. Some systems allow the user to suppress
18573 generation of core files and default to that (linux for example).
18574 * gdb.base/signals.exp: Change xfail for "next" acting like "continue"
18575 from "i*86-*-linux" to "i*86-*-linuxaout". Works with ELF beta.
18579 * gdb.threads: New directory with some crude multi-threaded
18580 gdb tests (step.exp and step2.exp).
18581 * config/mt-lynx (STEP_EXECUTABLE): Define.
18582 (THREADFLAGS): Define.
18586 * gdb.base/sigall.exp: Avoid losing in SIGPRIO test on lynx.
18588 * gdb.base/signals.exp: Disable whole file for lynx until
18591 * gdb.base/signals.exp: xfail test where "next" acts like
18592 "continue" for lynx.
18594 * gdb.base/interrupt.exp: xfail test for calling function while
18595 inferior is asleep for lynx.
18597 * gdb.base/watchpoint.exp: Handle more cases of gdb echoing more
18598 than one cr-lf after each command.
18602 * configure.in: Reinstate setting of stabsdirs variable, fix
18603 typo in setting up configdirs for native builds.
18605 * gdb.base/return.exp: Fix typo in return double test.
18606 * gdb.base/return.c (tmp2, tmp3): Made global to inhibit the
18607 compiler from optimizing them away.
18611 * gdb.base/gdbvars.exp: Expect zero or more additional cr-lf
18612 sequences to be echo'd by gdb when using gdb_test.
18613 * gdb.chill/chexp.exp: Likewise.
18614 * gdb.fortran/exprs.exp: Likewise
18618 * gdb.base/a1-selftest.exp: Reset the timeout value to 30 seconds
18619 after the inferior gdb has started.
18621 * gdb.base/a2-run.exp: Handle gdb echoing more than one cr-lf
18622 after each command.
18623 * gdb.base/funcargs.exp: Likewise.
18624 * gdb.base/gdbvars.exp: Likewise.
18625 * gdb.base/interrupt.exp: Likewise.
18626 * gdb.base/list.exp: Likewise.
18627 * gdb.base/watchpoint.exp: Likewise.
18628 * gdb.c++/demangle.exp: Likewise.
18629 * gdb.c++/inherit.exp: Likewise.
18630 * gdb.chill/chexp.exp: Likewise.
18631 * gdb.fortran/exprs.exp: Likewise.
18633 * gdb.base/watchpoint.exp: Disable watchpoint triggered in syscall
18634 test if we can't handle IO to/from the inferior.
18636 * gdb.c++/misc.exp: Always check for a program already being
18637 started after sending a "run" command to gdb.
18639 * gdb.base/twice.exp: Start with a fresh gdb.
18641 * gdb.chill/chexp.exp: Remove skip_chill_tests check; these tests
18642 only depend on gdb's expression code, not the chill runtime.
18644 * gdb.base/return.c: Put return values into variables so we
18645 can have gdb print them rather than depending on the program
18647 * gdb.base/return.exp: Corresponding changes.
18649 * lib/gdb.exp: Provide default value for noinferiorio.
18650 * gdb.base/interrupt.exp: Skip tests if we can't handle IO to/from
18653 * gdb.base/break.exp: Always check for a program already being
18654 started after sending a "run" command to gdb.
18655 (text_next_with_recursion): Don't check the output from the
18656 program's printf statement. Instead just make sure the program
18659 * gdb.base/commands.exp: Protect tests which need arguments with
18660 $noargs conditionals.
18664 * gdb.base/printcmds.exp: Adjust expect patterns for addresses
18665 of structure member arrays to match gdb/valops.c:value_addr change.
18669 * gdb.base/a1-selftest.exp: Fix unmatched quotes in many timeout
18674 * configure.in (configdirs): Remove gdb.chill from default list
18675 of subdirs and then add it back in only if doing a native build.
18676 The current chill compiler does not yet work in any cross build.
18677 * Revert all signal changes from Jul 6.
18678 * gdb.base/{sigall.c signals.c}: Define away signal() and alarm()
18679 for sh-hms targets, allowing these tests to link, with no other
18680 changes. Testing is suppressed by setting "nosignals" in site.exp.
18684 * configure.in (signaldirs): Define and add to configdirs for all
18685 targets except some specific ones that are known to not support signals.
18686 Also clean up formatting.
18687 * gdb.base/Makefile.in (EXECUTABLES): Remove sigall and signals.
18688 (signals, sigall): Remove rules to build.
18689 * gdb.base/{sigall.c, sigall.exp, signals.c, signals.exp}:
18690 Moved to new gdb.signals directory.
18691 * gdb.signals: New test directory.
18692 * gdb.signals/{Makefile.in, configure.in, sigall.c, sigall.exp,
18693 signals.c signals.exp}: New or moved files.
18697 * gdb.base/interrupt.exp: Don't choke if $nointerrupts doesn't exist.
18701 * gdb.base/return.exp: Xfail `return double' test failure
18702 on at least Solaris 2.3 and handle future/past versions on
18703 a case by case basis as appropriate. Also update message
18704 to include i*86 failures.
18708 * Makefile.in: Change variable CFLAGS to TESTSUITE_CFLAGS.
18710 * lib/gdb.exp: Fix comment which erroneously identified
18711 gdb_file_cmd as gdb_load (the 19 May change was in fact to
18712 gdb_file_cmd not gdb_load).
18713 * config/unix-gdb.exp (gdb_load): Add "upvar timeout timeout".
18715 * gdb.base/setvar.exp: Make test names consistent between pass and
18716 fail cases. Use gdb_test more.
18720 * lib/gdb.exp (gdb_load): Add "upvar timeout timeout".
18724 * gdb.base/help.exp: Fix expected help string for `show commands'.
18728 * gdb.stabs/xcoff.sed: Change N_LSYM to C_DECL not C_LSYM.
18730 * gdb.stabs/weird.exp: Remove xfail for xcoff bitching about lack
18735 * config/monitor.exp (gdb_target_monitor): Fix loop interator so
18736 that loop eventually terminates. Fix Connection refused logic so
18737 that testsuite will expire nicely.
18741 * config/cpu32bug.exp, config/est.exp, config/hppro.exp,
18742 config/rom68k.exp: New tcl glue for the appropriate monitors.
18743 These all just end up calling monitor.exp.
18744 * config/monitor.exp (gdb_target_monitor): Handle `Connection
18745 refused' by retrying. Cleanup some timeout issues.
18746 * (gdb_load): Reduce timeout. Cleanup some timeout issues.
18747 * lib/gdb.exp (gdb_test gdb_test_exact): Upvar timeout so that
18748 callers don't have to set/restore global timeout variable.
18750 * The following set of changes centralizes management of the global
18751 timeout variable. This way, it can be set in one target dependent
18752 place instead of dozens of places scattered throughout the test suite.
18753 If you need to lengthen a timeout, then you should either set timeout
18754 in one of the config/{target}.exp files, or multiply it by a factor.
18755 Setting it to an absolute value is always going to lose for some
18757 * gdb.base/a1-selftest.exp (test_with_self): Only use local timeout.
18758 * gdb.base/callfuncs.exp (do_function_calls): Don't set timeout.
18759 * gdb.base/funcargs.exp: Don't set timeout.
18760 * gdb.base/list.exp (test_forward_search): Only use local timeout.
18761 * gdb.base/printcmds.exp (test_print_string_constants
18762 test_print_array_constants): Don't set timeout.
18763 * gdb.base/ptype.exp: Don't set timeout.
18764 * gdb.base/recurse.exp: Don't set timeout.
18765 * gdb.base/return.exp: Don't set timeout.
18766 * gdb.base/watchpoint.exp: Don't set timeout.
18767 * gdb.c++/classes.exp (do_tests): Don't set timeout.
18768 * gdb.c++/virtfunc.exp (test_virtual_calls): Don't set timeout.
18772 * Makefile.in: Make clean targets work also when SUBDIRS is empty.
18776 * lib/gdb.exp: Disable chill tests for irix5.
18780 * gdb.base/scope.exp: Make test names unique. Use gdb_test. Make
18781 each test pass or fail.
18785 * gdb.base/opaque.exp: Remove xfails for aix; print a warning if
18790 * cpu32bug.exp est.exp rom68k.exp: Delete. Unify into monitor.exp.
18794 * config/est.exp: Fix copyright and comments. Remove dead code.
18795 Use targetname, serialport and baud variables instead of fixed
18797 * config/rom68k.exp: Fix copyright and comments. Remove dead code.
18798 * config/cpu32bug.exp: New file to support cpu32bug monitors.
18802 * gdb.base/watchpoint.exp: Don't run
18803 test_watchpoint_triggered_in_syscall for sunos.
18807 * gdb.base/{break.c,run.c}: Don't include vxWorks.h or stdioLib.h;
18808 they don't seem to exist. Do include stdio.h.
18812 * gdb.base/a1-selftest.exp: Add alpha xfail.
18816 * gdb.base/watchpoint.c (main): Prompt before calling read().
18817 * gdb.base/watchpoint.exp (test_watchpoint_triggered_in_syscall):
18818 Revise accordingly. Remove cruft about sending "123" several
18819 times, until it gets noticed. Clean up the "print buf[0]" stuff
18820 so that it passes or fails, and waits for prompts in the usual way.
18824 * gdb.base/recurse.exp: Fix comment.
18826 * TODO: Remove item about printing variables in nodebug.exp. Add
18827 item about enabling tests which are only run on some targets.
18829 * gdb.base/watchpoint.exp: Various cleanups (make each test pass or
18830 fail, make test names unique, use new gdb_test convention
18831 regarding pattern, use gdb_test more, etc.).
18833 * gdb.base/bitfields.exp: Various cleanups (make each test pass or
18834 fail, make test names unique, etc.).
18838 * gdb.base/nodebug.c: Change return type of top and middle to
18840 * gdb.base/nodebug.exp: Remove xfails for ecoff systems, they
18841 are fixed by the recent mdebugread.c changes. Allow `short ()'
18842 as type for top and middle.
18846 * gdb.base/break.exp: Remove commented out if $usestubs {}. As
18847 nearly as I can tell, the whole thing was an accident in Stu's
18848 change of 24 Mar 1995 (logged in ../ChangeLog), in which he meant
18849 to replace a send/expect pair with gdb_test, but ended up only
18850 adding the gdb_test. My change of 24 Mar 1995 and Kung's change
18851 of 30 Mar 1995 took care of it, but left this vestigial comment
18852 which I am now nuking.
18856 * gdb.base/break.exp: Look for different line number for
18857 breakpoint at main depending on usestubs.
18861 * gdb.base/list.exp: Adjust some alternate expect patterns to
18862 match recent list0.c change. Add alternate expect pattern for
18863 output from `list default lines around main' for optimizing
18868 * lib/gdb.exp: If nosignals is not set, set it to 0.
18872 * config/slite-gdb.exp: Responds to load symbol table prompt.
18873 * gdb.base/break.exp: Adjust line number, fix rerun.
18874 * gdb.base/langs0.c: Add #ifdef usestubs.
18878 * gdb.base/list.exp: Adjust line contents after adding new lines in
18879 list0.c. Also fix a syntax error.
18881 * lib/gdb.exp (gdb_run_cmd): Special handling for targets use stubs.
18882 * gdb.base/break.exp: ditto.
18883 * gdb.base/list.exp: ditto.
18884 * gdb.base/bitfields.c: Add #ifdef usestubs in main().
18885 * gdb.base/run.c: ditto.
18886 * gdb.base/list0.c: ditto.
18887 * gdb.base/funcargs.c: ditto.
18891 * testsuite/config/rom68k.exp (gdb_target_rom68k): Use
18892 $targetname, $serialport and $baud instead of hardwired variables.
18893 * testsuite/gdb.base/{sigall.exp signals.exp}: Skip these if the
18894 target doesn't support signals.
18898 * lib/gdb.exp (runto_main): Fix regular expression bug, add return 1.
18902 * gdb.base/recurse.exp: Make test names unique. Change \\(+ to \\(.
18903 Don't rely on the value of an auto variable before it has been
18904 initialized. Use gdb_test more.
18908 * lib/gdb.exp (default_gdb_version): A version number must start
18909 with a digit, but other than that contains all characters up to
18910 the first whitespace character.
18914 * gdb.base/commands.exp (breakpoint_command_test): New tests.
18918 * gdb.c++/*.exp: Warn if executable does not exist. The original
18919 reason for skipping the warning was that configure.in sometimes
18920 intentionally skipped building the executables but the tcl code
18921 had no way of knowing. That (a) was always bogus with respect to
18922 error handling, (b) is no longer true (right now there is no way
18923 to skip C++ tests).
18925 * gdb.c++/demangle.exp: Remove unused binfile and srcfile variables.
18929 * gdb.base/list.exp: Add expect patterns for output from
18930 SunPRO compiled executables.
18931 * gdb.base/whatis.exp: Allow leading `signed' for all v_signed_*
18936 * gdb.base/break.exp (test_next_with_recursion): Accept any line
18937 number (we are already testing that the correct source line text
18940 * gdb.base/break.exp: Make one test if $usestubs. I'm not sure
18941 that is what is intended, but something needed to be done to get
18942 sunos4 native working again.
18944 * gdb.c++/misc.cc (main): Fix typo (#iffef -> #ifdef).
18946 * gdb.base/a1-selftest.exp (test_with_self): Remove comment which
18947 apparently went with a (very) old xfail.
18951 * gdb.base/callfuncs.exp: call runto_main instead of runto main.
18952 runto_main is a proc in gdb.exp that will do 'step' for target use
18954 * gdb.base/exprs.exp: ditto.
18955 * gdb.base/interrupt.exp: ditto.
18956 * gdb.base/opaque.exp: ditto.
18957 * gdb.base/printcmds.exp: ditto.
18958 * gdb.base/ptype.exp: ditto.
18959 * gdb.base/scope.exp: ditto.
18960 * gdb.base/setvar.exp: ditto.
18961 * gdb.base/signals.exp: ditto.
18962 * gdb.base/twice.exp: ditto.
18963 * gdb.c++/classes.exp: ditto.
18964 * gdb.c++/inherit.exp: ditto.
18965 * gdb.c++/templates.exp: ditto.
18966 * gdb.base/break.exp: no run and hit main for stubs. Change line
18967 numbers for breakpoints and info breakpoint.
18968 * gdb.base/break.c: Add #ifdef usestubs for set_debug_traps() and
18970 * gdb.base/callfuncs.c: ditto.
18971 * gdb.base/exprs: ditto.
18972 * gdb.base/interrupt.c: ditto.
18973 * gdb.base/opaque0.c: ditto.
18974 * gdb.base/printcmds.c: ditto.
18975 * gdb.base/ptype.c: ditto.
18976 * gdb.base/scope0.c: ditto.
18977 * gdb.base/setvar.c: ditto.
18978 * gdb.base/signals.c: ditto.
18979 * gdb.base/twice.c: ditto.
18980 * gdb.c++/misc.cc: ditto.
18981 * gdb.c++/templates.cc: ditto.
18985 * config/vx-gdb.exp, lib/gdb.exp: Regexp cleanups (\[(\] -> \\(, etc.).
18987 * gdb.base/a1-selftest.exp: Don't check for # followed by a digit
18988 somewhere between `read' and `main.c'. I'm pretty sure the
18989 pattern ".*#\[0-9\].*" was slowing down pattern matching a lot,
18990 and it isn't particularly useful.
18992 * gdb.base/scope.exp: Make test names unique. \[(\] -> \\(.
18996 * gdb.base/commands.exp (infrun_breakpoint_command_test): New test.
19000 * config/mt-slite: add LIBS and -nostdlib.
19001 * config/slite-gdb.exp: add this new file to support sparclite target.
19005 * config/vx-gdb.exp (gdb_load): Update test of vxworks_ld return code.
19007 * gdb.base/a2-run.exp: Change argument to istarget from
19008 "*-*-vxworks" to "*-*-vxworks*".
19009 * gdb.base/{break.exp,default.exp,scope.exp}: Likewise.
19013 * lib/gdb.exp: add proc runto_main, for targets that use stubs, this
19014 will not runto main but do a 'step' to step out of breakpoint().
19015 * config/mt-slite: add -Dusestubs.
19019 * gdb.base/printcmds.exp (test_artificial_arrays): Send ^V@
19022 * gdb.base/signals.exp: Add test for "handle all print".
19023 * TODO: Remove "handle all print". Also remove item about
19024 checking copyright date (I don't like the idea of a spurious FAIL
19025 based on when we run the tests).
19027 * gdb.base/recurse.exp: Enable test for SunOS4. xfail one test
19028 for SunOS4 (reason for failure not investigated). Remove
19029 redundant test for $binfile.
19031 * gdb.base/nodebug.c (array_index): Call malloc.
19033 * gdb.base/{corefile.exp,default.exp}: Make names of "up" tests unique.
19037 * gdb.base/recurse.exp: Update gdb_test invocation to use new
19038 conventions and slightly simplify the matching regexp.
19042 * gdb.base/break.exp: Update gdb_test invocation to use new
19045 * lib/gdb.exp: If noargs is not set, set it to 0.
19047 * gdb.base/nodebug.exp: Comment out redundant test. Make name of
19050 * lib/gdb.exp: Skip CHILL for AIX and Solaris.
19054 * gdb.base/nodebug.exp: It is OK if GDB thinks top and middle have
19055 one argument of type "<non-float parameter>".
19059 * config/rom68k.exp: New file to support Motorola IDP board.
19060 * gdb.base/a2-run.exp: Skip this file if noargs is set.
19061 * gdb.base/break.c: Change things around so that this program
19062 doesn't depend upon args. This is necessary to make remote
19063 targets work (in general, they can't take args).
19064 * gdb.base/break.exp: Don't try to send args to program. Don't
19065 expect output. Also, replace lots of code with gdb_test.
19069 * gdb.base/printcmds.exp (test_character_literals_accepted): Test
19070 printing of '\'' (which is what the comment says we are testing,
19071 even though we were not), not '''.
19072 (test_integer_literals_rejected): Test that printing ''' is an error.
19074 * gdb.fortran/exprs.exp, gdb.fortran/types.exp,
19075 gdb.chill/chexp.exp, gdb.base/printcmds.exp,
19076 gdb.c++/cplusfuncs.exp, gdb.chill/callch.exp, gdb.chill/misc.exp,
19077 gdb.chill/pr-6292.exp, gdb.chill/string.exp, gdb.chill/tuples.exp:
19078 Use gdb_test not test_print_accept.
19079 * lib/gdb.exp: Remove test_print_accept.
19081 * gdb.base/signals.exp (signal_tests_1): Make pass message
19082 consistent with fail message.
19084 * gdb.base/whatis.exp: Remove xfails for printing char vs.
19085 unsigned char; the bug (PR 1821) is fixed.
19087 * gdb.base/scope.exp: Remove xfails for PRs 1843 and 1868.
19089 * gdb.base/scope.exp (test_at_localscopes): Call pass for
19090 successful tests--makes xfailing them work right.
19094 * lib/gdb.exp (gdb_test): Between $pattern and $prompt, expect
19095 only \r\n, not .*. The test can pass .* as the last thing in
19096 $pattern if that is what it wants. In addition to providing this
19097 flexibility, this change should speed up pattern matching in cases
19098 where the pattern already ended with .* (there were a number of
19099 them). This change also helps catch bad patterns--in the old
19100 scheme the typo "char \*" instead of "char \\*" would pass. Now
19102 * Many .exp files: Update callers.
19104 * gdb.base/funcargs.exp: Replace \[(\]+ with \\(. The latter is
19105 clearer and does not spuriously match multiple ('s. Likewise for
19108 * gdb.base/nodebug.exp: Test ability to call a function and pass
19109 it a string (even with no debugging info).
19111 * gdb.base/printcmds.exp (test_integer_literals_rejected): Change
19112 "p '\'", which is the same as "p ''" once tcl gets done with
19113 quoting, to "p '\\'", which I suspect is what is intended (one
19114 backslash gets sent to GDB).
19116 * gdb.base/printcmds.exp (test_artificial_arrays): New tests.
19120 * gdb.base/a1-selftest.exp: Remove xfail for solaris. The bug (PR
19121 1817) was fixed literally years ago.
19125 * gdb.base/funcargs.exp (call_after_alloca): Remove `next'
19126 test, it causes stepping out of call_after_alloca_subr with
19127 optimizing compilers.
19128 (localvars_in_indirect_call): Consume GDB prompt if `finish'
19131 * gdb.c++/templates.exp: Source templ-info.exp only if
19132 the templates executable exists.
19134 * gdb.c++/misc.cc (class Contains_static_instance,
19135 class Contains_nested_static_instance),
19136 gdb.c++/classes.exp (test_static_members): Test printing of
19137 a class that contains a static instance of the class.
19141 * gdb.base/langs2.c (cppsub_): Don't prototype.
19142 * gdb.base/langs2.cxx (cppsub_): Fix prototype (cosmetic value
19147 * lib/gdb.exp (skip_chill_tests): New procedure.
19149 * gdb.base/signals.exp (signal_tests_1): xfail for irix.
19153 * gdb.disasm/hppa.exp: Delete redundant ".*" at the beginning of
19154 each expect pattern. Cuts runtime from 12 to about 4 seconds.
19158 * gdb.base/langs.exp: Don't insist that foo__Fi be demangled.
19160 * gdb.disasm/hppa.exp (all_fpu_comparison_tests): Only
19161 disassemble 8, not 16, instructions for part 4.
19163 * config/vx-gdb.exp (gdb_start): Use \030, not \CX. tcl doesn't
19164 support the latter anymore.
19166 * gdb.base/Makefile.in: Try compiling callfuncs.c, if that fails try
19168 * gdb.base/callfuncs.c: Control use of prototypes based on
19169 NO_PROTOTYPES, not __STDC__.
19170 * gdb.base/callfuncs.exp (do_function_calls): xfail one of the
19171 t_float_values2 tests if prototypes in use.
19173 * gdb.base/callfuncs.c (t_float_values, t_float_values2,
19174 t_double_values): When checking differences against DELTA, check
19175 that difference is within the range (-DELTA,DELTA), not just
19180 * config/mips-gdb.exp (gdb_load): In every test case, we need to do
19181 'file' command firts, then 'target', then 'load', this is due to gdb
19183 * config/mips-gdb.exp: Fix a couple regular exp bugs.
19187 * gdb.disasm/hppa.s (fmemLRbug_tests): Add tests for the indexing
19188 FP load/store variants.
19189 * gdb.disasm/hppa.exp (fmemLRbug_tests): Test new variants.
19193 * gdb.base/term.exp: Do not give a warning if not native, it is
19194 not an abnormal condition.
19198 * gdb.base/ptype.exp: Accept char[0] as well as char[] for "ptype
19203 * lib/gdb.exp (default_gdb_version): Pass GDBFLAGS to gdb when we
19204 are getting the version number.
19206 * gdb.base/{a1-selftest.exp,corefile.exp}: Do not give a warning
19207 if not native, it is not an abnormal condition.
19211 * lib/gdb.exp: Just use "file exists", rather than undocumented
19212 dejagnu procedure "findfile".
19216 * config/mt-vxworks (CFLAGS): Set to -g -Dvxworks.
19217 (LDFLAGS): Set to -Xlinker -Ur.
19219 * Makefile.in, gdb.{base,c++,chill}/Makefile.in (GDB, GDBFLAGS):
19220 Removed, these values are set by lib/gdb.exp.
19222 * lib/gdb.exp: If GDBFLAGS is unset, set it to -nx.
19226 * config/vx-gdb.exp (spawn_vxgdb): Use default_gdb_start instead
19227 of replicating gdb startup code.
19229 * config/mt-vxworks (LDFLAGS): Set to -r.
19230 (CFLAGS_FOR_TARGET): Removed.
19232 * config/vx-gdb.exp: always set prompt; gdb.exp sets it to
19233 (gdb) and gdb for vxworks uses (vxgdb).
19235 * Makefile.in, gdb.{base,c++,chill}/Makefile.in (GDB): If a gdb
19236 executable is not in the tree and host != target, use sed and
19237 program_transform_name to determine the gdb name used by the
19240 * configure.in, gdb.{base,c++,chill}/configure.in: changed so
19241 *-*-vxworks* matches vxworks and *-*-netware* matches NetWare.
19245 * gdb.base/{callfuncs.exp,callfuncs.c}: Add tests for passing
19246 floats, chars, and shorts where there are ANSI-style function
19249 * gdb.base/langs.exp, gdb.base/langs*: New test.
19250 * gdb.base/Makefile.in: Build it.
19251 * TODO: Remove item about checking that C names don't get C++
19252 demangling applied; this test tests it.
19256 * gdb.stabs/weird.exp: Remove "Haven't examined" comment which
19257 went with the const70 xfail. The xfail went away a year ago.
19259 * gdb.base/signals.exp: Rename a bunch of tests to give unique names.
19261 * gdb.base/corefile.exp: Give backtrace test unique name. xfail
19264 * gdb.base/interrupt.exp: Also xfail hpux (for hp300).
19266 * gdb.base/a1-selftest.exp: Don't run on hp300.
19270 * Makefile.in (site.exp): Set host_alias and target_alias as well
19271 as host_triplet and target_triplet.
19275 * gdb.base/a1-selftest.exp: Invoke stty before starting inferior.
19277 * gdb.base/nodebug.exp: Add xfails for ultrix and irix5 (same
19278 places as other ecoff systems).
19280 * gdb.base/a1-selftest.exp (test_with_self): Don't invoke stty on
19285 * gdb.base/nodebug.c (inner): Use variables so AIX linker doesn't
19287 * gdb.base/nodebug.exp: Accept "function" in addition to "text
19288 variable and "variable" in addition to "data variable".
19289 * gdb.base/nodebug.exp: xfail datalocal and bsslocal tests for AIX.
19291 * gdb.base/list.exp (test_forward_search): Set listsize to 4 not
19293 * gdb.base/list1.c (long_line): Add additional statement at start
19295 * gdb.base/list.exp (test_forward_search): Update line number to
19296 reflect new statement.
19300 * gdb.base/signals.exp: Reinitialize searched source directories
19301 after gdb_start call.
19305 * gdb.disasm/Makefile.in (clean): Delete "errs" file.
19306 * gdb.stabs/Makefile.in: Likewise.
19308 * gdb.disasm/hppa.exp (all_fpu_comparison_tests): Revert last
19309 change. Instead split the tests into smaller pieces.
19310 * gdb.disasm/hppa.s: Corresponding changes.
19314 * gdb.base/a1-selftest.exp (test_with_self), gdb.base/interrupt.exp:
19315 Quote ^C when passing it to stty. For some shells ^ is a pipe.
19317 * gdb.base/funcargs.exp: Modify many tests so that every test
19318 either passes or fails. Make some test names unique.
19322 * gdb.base/a1-selftest.exp (test_with_self), gdb.base/interrupt.exp:
19323 Call stty to set interrupt character.
19325 * gdb.disasm/hppa.mt (hppa), gdb.stabs/hppa.mt (weird.o): Check
19326 for HP assembler versus GNU assembler based on actual behavior of
19327 $(CC), rather than assuming that $(AS) is always the GNU assembler.
19329 * TODO: Suggest a few more stepping tests.
19333 * gdb.base/default.exp: xfail no-stack backtraces for h8300,
19334 restart GDB for h8300 after a continue.
19335 (return): Add pattern to match a29k-udi behavior.
19336 * gdb.base/nodebug.exp: Remove obsolete comment.
19337 * gdb.base/regs.exp: New file, testing of register displays.
19338 * gdb.base/return.exp: Fix typo in reference to $objdir.
19339 * gdb.base/whatis.exp: Always start with a fresh GDB.
19343 * gdb.disasm/hppa.exp (all_fpu_comparison_tests): Set timeout
19344 higher, these tests generate a lot of output.
19348 * lib/gdb.exp (gdb_test): Remove catch from around the send. The
19349 code following the catch silently ignored some errors; without the
19350 catch they should be thrown like any other tcl error. Also, the
19351 catch used "" instead of {} which meant all the callers who wanted
19352 to include one of the characters "[]$ had to quote it an extra time.
19353 * gdb.base/{callfuncs.exp,commands.exp,gdbvars.exp,printcmds.exp,
19354 ptype.exp,signals.exp,watchpoint.exp}, gdb.c++/{cplusfuncs.exp,
19355 demangle.exp}, gdb.chill/chexp.exp, gdb.fortran/exprs.exp:
19356 Remove extra quoting.
19360 * gdb.base/commands.exp: Make test names unique; every test either
19361 passes or fails. Update some comments.
19363 * gdb.disasm/hppa.exp (do_system_control_tests): Update.
19367 The following fixes a FAIL caused by the fact that the alpha stabs
19368 configuration didn't use the ".if alpha" code in weird.def.
19369 * gdb.stabs/weird.def (v_comb): Use type attribute to specify 32
19370 bit pointer, so the 32 bit version works even on the alpha.
19371 * gdb.stabs/{alpha.mt,ecoff.mt,aout.sed,hppa.sed,xcoff.sed,weird.def}:
19372 Remove the stuff which allowed us to have separate versions for
19373 alpha and everything else.
19375 * gdb.c++/cplusfuncs.exp (test_lookup_operator_functions): Fix
19376 regexp which "info func operator\[\](" is supposed to match. Fix
19377 string to send to GDB. Note that GDB still doesn't work right. Add a
19378 new test for "info func .perator\[\](" which GDB does handle correctly.
19380 * gdb.base/nodebug.exp: xfail most of the new tests for ecoff systems.
19384 * gdb.c++/classes.exp, gdb.c++/cplusfuncs.exp,
19385 gdb.c++/inherit.exp, gdb.c++/templates.exp, gdb.c++/virtfunc.exp,
19386 gdb.fortran/exprs.exp, gdb.fortran/types.exp, gdb.chill/chexp.exp,
19387 gdb.base/printcmds.exp: Remove passcount, failcount, etc., stuff;
19388 it makes the tests harder to understand and confuses test-o-matic.
19389 The preferred style is that each test provides a PASS or a FAIL,
19390 and has a unique message (e.g. "continue #54" not just "continue")
19391 which is the same for the pass and the fail.
19392 * gdb.fortran/exprs.exp, gdb.fortran/types.exp,
19393 gdb.chill/chexp.exp: Move test_print_accept and test_print_reject
19395 * gdb.base/printcmds.exp: Use test_print_accept. Remove
19396 prt_accept which was basically the same thing. Likewise for
19397 test_print_reject and prt_reject.
19398 * lib/gdb.exp (test_print_reject): Add some more error message
19399 patterns to match from the former printcmds.exp (prt_reject).
19400 * gdb.c++/classes.exp, gdb.base/scope.exp: Remove spurious xfails.
19401 One defect of the passcount stuff is that some of it failed to
19402 report XPASS where appropriate.
19403 * gdb.c++/cplusfuncs.exp (print_addr_of): No longer accept extra
19404 stuff before and after arg in expected pattern.
19405 (test_paddr_operator_functions): Re-do test without print_addr_of;
19406 this is the only test which seems to want extra stuff there.
19410 * gdb.base/nodebug.exp: Update new tests to reflect improved
19411 wording of gdb output.
19413 * gdb.base/nodebug.exp: Add tests to check that "print", "whatis"
19414 and "ptype" work on variables in files compiled without -g.
19415 Replaces commented out "maint print msymbol" tests.
19419 * gdb.base/setvar.c (dummy): Call malloc.
19421 * gdb.stabs/aout.sed: Enclose comments within a sed command to avoid
19422 losing with the irix4 sed.
19424 * gdb.base/sigall.exp (test_one_sig): Add xfail for "get signal
19429 * TODO: Remove items about corefile.exp testing new exec-file and
19430 backtrace; both are now done. Add items about printing enums.
19434 * gdb.base/sigall.exp (test_one_sig): Attempt to recover if
19435 "get signal $thissig" test fails.
19437 * gdb.base/setvar.exp: Check for and reject crazy expected type hacks.
19441 * gdb.base/sigall.c (gen_*): Pass argument to handle_* to avoid
19442 compiler warning with dec alpha compiler.
19444 * gdb.base/commands.exp (if_while_breakpoint_command_test): Remove
19445 extra \n from gdb_test call (this explains why the prompt test
19446 that I removed yesterday was there).
19447 (user_defined_command_test): Remove extra \n and prompt test.
19449 * gdb.base/sigall.c: If SIGABRT == SIGLOST, just act as if SIGLOST
19450 doesn't exist. Likewise if SIGIO == SIGPOLL, pretend SIGPOLL
19452 * gdb.base/sigall.exp: Remove special handling for SIGIO and SIGPOLL.
19453 Also remove alpha workaround, which turns out to be because
19454 SIGABRT == SIGLOST.
19456 * gdb.base/sigall.exp: Add workaround for alpha weirdness.
19458 * gdb.base/help.exp: Don't test "help show".
19462 * gdb.base/commands.exp: Call gdb_exit and gdb_start so that
19463 "set print address" is on.
19464 * gdb.base/commands.exp (if_while_breakpoint_command_test): Don't
19465 pass prompt to gdb_test; gdb_test already looks for the prompt.
19467 * gdb.base/help.exp: Replace most of docstring for "define" with ".*".
19469 * gdb.base/a1-selftest.exp: Don't test "maint dump-me". That test
19470 was a vestige of the manual TESTSTRATEGY, and the purpose of it
19471 was to make sure that gdb can read a core file. But (a) the "read
19472 the corefile" part didn't make it to a1-selftest.exp, we just
19473 delete the corefile after creating it, and (b) we test reading
19474 corefiles in corefile.exp anyway. Also, this test left around a
19475 xgdb process on Solaris.
19477 * gdb.base/corefile.exp: Also test backtrace.
19481 * gdb.base/commands.exp: Test a simple user defined command with
19482 arguments and if/while statements; verify the full user command is
19483 printed by "show user".
19485 * gdb.base/commands.exp: Test if/while commands as part of a
19486 breakpoint command list; verify they appear in breakpoint
19491 * gdb.base/sigall.c (gen_FPE): Generate SIGFPE with kill() rather
19492 than by dividing by zero.
19496 * gdb.base/watchpoint.exp: hppa*-*-*bsd* no longer has problems
19497 performing an inferior call with watchpoints enabled.
19498 * gdb.base/watchpoint.c (main): Delete second unnecessary read
19503 * gdb.stabs/weird.exp: Allow spaces followed by backspaces in echo
19506 * gdb.c++/classes.exp (test_ptype_class_objects, ptype class Foo):
19507 Add additional pattern for when "int operator int(void);" appears
19508 in a different order.
19512 * gdb.base/signals.exp: Call gdb_exit and gdb_start.
19514 * gdb.base/help.exp: Replace most of docstrings for "info signals"
19515 and "signal" with ".*".
19519 * TODO: Add note about "handle all nostop".
19521 * gdb.base/{sigall.c, sigall.exp}: New test.
19522 * gdb.base/Makefile.in: Add it.
19526 * lib/gdb.exp, gdb.base/corefile.exp: Supply -nw as argument
19527 when invoking GDB, suppresses any windowing interface.
19531 * config/sim-gdb: New file, simulator testing support.
19535 * gdb.base/interrupt.exp: Test calling func1 twice.
19539 * gdb.base/list.exp (test_forward_search): Set timeout higher
19540 when we'll be getting lots of output from gdb.
19542 * gdb.base/a1-selftest.exp: Move code that was inside expect -re
19543 "init_malloc" to after the expect statement. Run it if that
19544 regexp is taken, but also for two others which happen if source
19549 * gdb.base/printcmds.exp: New test, for printing register before
19550 program is running.
19554 * gdb.base/list.exp: Correct some alternate expect patterns
19555 to reflect changes in list1.c.
19559 * TODO: Add item regarding large frames.
19561 * gdb.base/{funcargs.exp, funcargs.c} (call_after_alloca): New test.
19563 * TODO: Remove item about enabling return.exp; it
19564 is enabled. Suggest a few more "return" tests.
19568 * gdb.c++/misc.cc, gdb.c++/inherit.exp: Add testcases for
19573 * gdb.chill/Makefile.in: Put all rule before rules for pr-4975.o
19574 and pr-5646.o, so "make" is the same as "make all", not "make
19579 * gdb.base/list.exp: Adjust expectations to reflect changes in
19581 (test_forward_search): New test proc.
19582 * gdb.base/list1.c (long_line): New function, has long source line.
19586 * gdb.base/a1-selftest.exp: Change initial stepping to know about
19587 additional line of code that was added.
19591 * gdb.disasm/hppa.s: Break the large branching tests into smaller
19592 tests so as not to overflow expect's input buffers.
19593 * gdb.disasm/hppa.exp: Corresponding changes.
19597 Beginnings of template debugging tests.
19598 * gdb.c++/templ-info.cc: New file to test for template
19599 debugging capability of the compiler.
19600 * gdb.c++/Makefile.in: Add rule to build templ-info.exp from
19602 * gdb.c++/templates.cc: Add explicit template instantiations
19603 to enable compiling with -fno-implicit-templates. Add destructor
19604 and 'value' method to T5 class for template tests.
19605 * gdb.c++/templates.exp: Add testcases for printing of template
19606 types, setting breakpoints on template methods and calling a
19611 * gdb.disasm/hppa.exp (branch_tests): Allow any symbol as the
19612 branch target since some assemblers (gas-2.5) may emit a
19613 relocation for the branch instead of resolving it in the
19618 * gdb.base/a1-selftest.exp: Remove RS/6000 xfail for backtrace
19619 through signal handler.
19623 * configure.in (*-*-netware): Use config/mt-netware.
19625 * config/mt-netware: New file.
19626 * config/mt-i386-netware: Removed, separate configs for different
19627 netware architectures are no longer needed now that we have
19632 * gdb.base/exprs.exp: Remove xfail for alpha, it is fixed
19633 by the recent changes to use ANSI C arithmetic conversions.
19637 * gdb.base/corefile.exp: Add (xfail'd) test for reinit_frame_cache
19638 bug involving using inferior_pid to figure out whether to select a
19643 * gdb.disasm/hppa.exp: Change arg[0..3] to r[26..23] to
19644 match the current disassembler output.
19648 * gdb.fortran/exprs.exp: Expect VOID instead of void.
19649 * gdb.fortran/types.exp: Escape the expected '*'s in Fortran
19650 types, expect "int" as type of integer values (for now).
19654 * gdb.base/commands.exp: New tests for if/while commands.
19658 * lib/gdb.exp (runto): Replace sub-pattern for hex value
19659 by .*, since hex values have different syntax in Chill mode.
19663 * gdb.c++/demangle.exp (test_arm_style_demangling): Remove
19664 linefeed from expect pattern for repeated types with indices > 9.
19668 First part of Fortran test suite.
19669 * gdb.fortran: New directory.
19670 * gdb.fortran/exprs.exp, gdb.fortran/types.exp: New files.
19674 * gdb.base/default.exp: Update expect pattern for load command
19679 * configure.in: Change i386 to i[345]86.
19680 * gdb.base/configure.in: Likewise.
19681 * gdb.c++/configure.in: Likewise.
19682 * gdb.chill/configure.in: Likewise.
19686 * lib/gdb.exp (gdb_run_cmd): Move comment out from between expect
19687 patterns, since that is not a valid context for comments.
19691 * gdb.c++/demangle.exp (test_arm_style_demangling): Add tests for
19692 repeated types and repeated types with indices > 9.
19696 * gdb.base/printcmds.exp: Remove all the a29k XFAILs tagged with
19697 2417; old bug has been fixed.
19701 * gdb.base/interrupt.exp: When trying to wake up the inferior,
19702 send the newline ourselves instead of assuming gdb_test will do
19703 so when passed an empty input string.
19705 * gdb.stabs/hppa.mt: Use $(AS), not $(CC) to assemble the
19710 * lib/gdb.exp (gdb_test): Don't send anything if the first
19711 argument is an empty string. This makes cases where we want to
19712 match output that is already in expect's buffers (for example,
19713 matching a breakpoint after gdb_run_cmd has been called) work
19718 * config/netware.exp: New file.
19722 * config/mt-slite (LDFLAGS): If using the newlib in the tree, set
19723 the -B and -L prefixes so we can find the debugging stub.
19725 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Use newlib if it is
19726 there and we are using the gcc from the tree.
19728 * gdb.base/types.c: Removed.
19730 * gdb.base/configure.in: Look for makefile fragments in ../config.
19731 Recognize i386-*-netware.
19732 * gdb.c++/configure.in: Likewise.
19736 * gdb.base/corefile.exp: Change `else if' to `elseif', which is
19737 the correct TCL syntax.
19741 * gdb.base/opaque.exp: use runto instead of messing around with
19742 breakpoints. Simplify by using gdb_test.
19744 * gdb.base/bitfields.exp: restart between tests on netware targets
19745 because breakpoints aren't relocated after target death. Run
19746 processes to completion.
19748 * gdb.base/{opaque,watchpoint}.exp: Use gdb_run_cmd.
19752 * Makefile.in: Remove extra tabs that confuse some versions
19753 of "make". Use the newly built gdb to test with by default,
19754 rather than the first one in the tester's search path.
19758 * gdb.base/whatis.exp (v_signed_short_array): Fix a typo.
19760 * gdb.base/help.exp: Update expected add-symbol-file, ignore, and
19765 * lib/gdb.exp (runto): Rewrite in terms of gdb_run_cmd.
19767 * lib/gdb.exp (gdb_run_cmd): New function, used to start program
19769 * gdb.base/bitfields.exp: Use gdb_run_cmd to start program.
19770 * gdb.base/funcargs.exp: Likewise.
19772 * gdb.base/bitfields.exp: Simplify by using gdb_test.
19773 * gdb.base/funcargs.exp: Likewise.
19775 * lib/gdb.exp (gdb_test): if match times out, don't call fail if
19780 * gdb.base/{a2-run,callfuncs,funcargs,interrupt,mips_pro,nodebug,
19781 return,signals,twice}.exp: Handle non-existant binaries
19784 * gdb.base/corefile.exp: Execute coremaker to generate core dump.
19785 * gdb.base/Makefile.in: Don't try to generate a core dump, we
19786 might testing a cross development system.
19790 * Makefile.in (RUNTEST_FOR_TARGET): Fix relative pathname, the
19791 runtest script is relative to ${srcdir}, not ${rootdir}.
19795 * gdb.base/signals.exp: Allow for optionality of breakpoint
19800 * gdb.base/{ptype.exp,ptype.c}: Add t_char_array test.
19804 * gdb.c++/cplusfuncs.cc: Include <stddef.h>, not <sys/types.h>,
19805 for size_t definition.
19806 * gdb.c++/templates.cc: Likewise
19808 * config/mt-i386-netware: New file.
19810 * gdb.base/interrupt.c: Do not test if errno == EINTR if it's not
19813 * gdb.base/Makefile.in: Added support for systems that name core
19814 files by appending "core" to the program name.
19815 * gdb.base/a1-selftest.exp: Likewise.
19819 * gdb.base/return.exp: Add comment and message for `return double'
19820 test failure on Sparc Solaris.
19824 * lib/gdb.exp (runto): Allow for optionality of breakpoint address.
19828 * gdb.c++/misc.cc: Instantiate classes to inhibit the compiler
19829 from optimizing them away.
19830 * gdb.c++/classes.exp, gdb.c++/inherit.exp: Update ptype expect
19831 patterns to include default constructors and assignment operators,
19832 to match gcc versions beyond 2.5.8. Accept any cplus demangling
19833 character in the output of the virtual base pointer.
19837 * gdb.c++/cplusfuncs.exp: Use string_to_regexp and a regular
19838 expression match in print_addr_of to avoid unintented matches.
19839 * gdb.c++/virtfunc.exp: Accept alternate ptype output of g++
19840 versions up to 2.5.8.
19844 * gdb.base/list.exp: Tweak alternate pattern for listing of an
19845 included file to run under newer versions of expect.
19846 * gdb.c++/demangle.exp: Add spaces to the expect patterns between
19847 consecutive >'s in templates to accomodate recent cplus-dem.c change.
19848 Remove xfail for the virtual table of BDDHookV.
19852 * lib/gdb.exp (string_to_regexp): Set a default result.
19853 (default_gdb_start): Fix misleading message.
19857 * config/mt-a29k-udi, config/mt-i960-nindy, config/mt-sparc-aout:
19858 Remove all CC, etc definitions.
19859 * config/mt-hpux: New file.
19860 * config/mt-mips-ecoff (CFLAGS_FOR_TARGET): Remove:
19861 (CFLAGS, LDFLAGS): Define.
19862 * config/mt-slite (CFLAGS_FOR_TARGET): Change to LDFLAGS.
19864 * Makefile.in (site.exp): Don't insert host_os, etc.
19865 (just-check): Just use RUNTEST with RUNTESTFLAGS only.
19866 (distclean): Check existence of subdir.
19867 * gdb.base/configure.in (hppa*-*-hpux*): Recognize.
19868 * gdb.base/Makefile.in: General cleanup and simplification.
19869 Use CC, CFLAGS, and LDFLAGS instead of ..._FOR_TARGET versions
19870 to build executables. Use default rule to build .o files.
19871 (EXPECT, RUNTEST, CC): Fix relative pathname.
19872 (site.exp): Don't insert host_os, etc.
19873 * gdb.base/signals.c (main): Don't call signal unless SIGALRM
19874 and/or SIGUSR1 defined.
19875 * gdb.base/watchpoint.c: Don't include stdio.h a second time.
19876 * gdb.c++/Makefile.in: General cleanup and simplification.
19877 Use CC, CFLAGS, and LDFLAGS instead of ..._FOR_TARGET versions
19879 (EXPECT, RUNTEST_FOR_TARGET, CXX): Fix relative pathname.
19883 * gdb.base/recurse.exp: Misc changes to get tests running again
19884 after Kung's changes to the watchpoint code.
19885 * gdb.base/watchpoint.exp: Likewise.
19889 * lib/gdb.exp (string_to_regexp): Convert {\} also.
19893 * config/udi-gdb.exp, config/unix-gdb.exp: Call default_gdb_start.
19894 * lib/gdb.exp (default_gdb_start): Define.
19895 * gdb.base/bitfields.exp, gdb.base/break.exp, gdb.base/exprs.exp,
19896 gdb.base/funcargs.exp, gdb.base/opaque.exp,
19897 gdb.base/printcmds.exp, gdb.base/ptype.exp, gdb.base/recurse.exp,
19898 gdb.base/scope.exp, gdb.base/setvar.exp, gdb.base/watchpoint.exp,
19899 gdb.c++/classes.exp, gdb.c++/misc.exp, gdb.c++/virtfunc.exp:
19900 Don't call gdb_target_udi in between tests.
19904 * gdb.c++/demangle.exp: Use gdb_test_exact, rather than demangle
19905 (which was basically just a local version of the same thing). In
19906 addition to avoiding duplication, gdb_test_exact is faster.
19907 * lib/gdb.exp (gdb_test_exact): Fix typo.
19909 * lib/gdb.exp (delete_breakpoints): If there were no breakpoints,
19910 don't give an error.
19912 * gdb.base/term.exp: Call delete_breakpoints before starting.
19914 * gdb.base/Makefile.in (EXECUTABLES): Remove t10.
19915 (t10): Add comment.
19919 Reorganization of the GDB Test Suite.
19921 * gdb.base: New directory, contains all the basic tests.
19922 * gdb.c++: New directory, tests specific to C++.
19923 * gdb.chill: New directory, tests specific to Chill.
19924 * gdb.t00, gdb.t01, gdb.t02, gdb.t03, gdb.t04, gdb.t05, gdb.t06,
19925 gdb.t07, gdb.t08, gdb.t09, gdb.t10, gdb.t11, gdb.t12, gdb.t13,
19926 gdb.t15, gdb.t16, gdb.t17, gdb.t20, gdb.t21, gdb.t22, gdb.t23,
19927 gdb.t24, gdb.t30, gdb.t31: Removed directories, contents moved
19928 into appropriate new directories (t00-t17 to base, t20-t23 to c++,
19930 * */gdbme.*: Rename to match appropriate expect scripts.
19931 * gdb.base/bitfields.c, gdb.base/break.c, gdb.base/callfuncs.c,
19932 gdb.base/coremaker.c, gdb.base/exprs.c, gdb.base/funcargs.c,
19933 gdb.base/interrupt.c, gdb.base/list0.c, gdb.base/list0.h,
19934 gdb.base/list1.c, gdb.base/mips_pro.c, gdb.base/nodebug.c,
19935 gdb.base/opaque-info.c, gdb.base/opaque0.c, gdb.base/opaque1.c,
19936 gdb.base/printcmds.c, gdb.base/ptype.c, gdb.base/recurse.c,
19937 gdb.base/return.c, gdb.base/run.c, gdb.base/scope0.c,
19938 gdb.base/scope1.c, gdb.base/setvar.c, gdb.base/signals.c,
19939 gdb.base/types.c, gdb.base/twice.c, gdb.base/watchpoint.c,
19940 gdb.base/whatis-info.c, gdb.base/whatis.c: New names of C files.
19941 * gdb.c++/cplusfuncs.cc, gdb.c++/templates.cc, gdb.c++/misc.cc,
19942 gdb.c++/virtfunc.cc: New names of C++ files.
19943 * gdb.chill/chillvars.ch: New name of Chill file.
19944 * gdb.base/configure.in, gdb.c++/configure.in,
19945 gdb.chill/configure.in: Merge in contents of gdb.t*/configure.in.
19946 * gdb.base/Makefile.in, gdb.c++/Makefile.in,
19947 gdb.chill/Makefile.in: Merge in contents of gdb.t*/Makefile.in.
19948 * configure.in (configdirs): Update to reflect directory changes.
19949 (target_abbrev): No longer define for any configuration.
19950 * Makefile.in: Cosmetic improvements to header comments.
19954 Various changes to gdb.t31:
19956 * Makefile.in (gdbme.o): Compile with -fspecial_UC.
19957 * gdbme.ch: Make all key-words and predefineds be upper-case.
19958 * chillvars.exp: Expect key-words and predefinds in upper-case.
19960 * chillvars.exp: Use gdb_test_exact many places.
19961 Change expected output for arrays (which now includes index labels).
19963 * pr-5020.exp, gdme.ch (module PR_5020):
19964 New test, for PR-5020.
19968 * lib/gdb.exp (string_to_regexp, gdb_test_exact): New procedures.
19969 * Makefile.in (CHILL_LIB): Remove bogus redundant definitions.
19973 * Makefile.in: Fix bit-rot in definitions of CHILL,
19974 CHILL_FOR_TARGET and Chill_LIB.
19975 * gdb.t31/gdbme.ch: Fix syntax of nested array tuples.
19976 * gdb.t31/Makefile.in: Add definitions for CHILLFLAGS,
19977 CHILL, and CHILL_LIB.
19981 * Revert the previous changes. Please see Rob's directory
19982 /lisa/test/rob/progressive/gdb/testsuite for these fixes.
19986 * Makefile.in, configure.in, config/mips-gdb.exp,
19987 config/mt-a29k-udi, config/mt-i386-aout, config/mt-i960-nindy,
19988 config/mt-sparc-aout, config/udi-gdb.exp, config/unix-gdb.exp,
19989 config/unknown.exp, gdb.t00/default.exp, gdb.t00/help.exp,,
19990 gdb.t00/teststrategy.exp, gdb.t01/Makefile.in, gdb.t02/Makefile.in,
19991 gdb.t02/whatis.exp, gdb.t03/Makefile.in, gdb.t03/gdbme.c,
19992 gdb.t04/Makefile.in, gdb.t05/Makefile.in, gdb.t06/Makefile.in,
19993 gdb.t06/break.exp, gdb.t06/signals.c, gdb.t06/signals.exp,
19994 gdb.t08/Makefile.in, gdb.t08/opaque.exp, gdb.t09/Makefile.in,
19995 gdb.t10/Makefile.in, gdb.t11/Makefile.in, gdb.t12/Makefile.in,
19996 gdb.t13/Makefile.in, gdb.t15/Makefile.in, gdb.t15/funcargs.exp,
19997 gdb.t15/gdbme.c, gdb.t15/return.exp, gdb.t16/Makefile.in,
19998 gdb.t17/Makefile.in, gdb.t17/callfuncs.exp, gdb.t17/gdbme.c,
19999 gdb.t20/Makefile.in, gdb.t21/Makefile.in, gdb.t21/cplusfuncs.exp,
20000 gdb.t22/Makefile.in, gdb.t22/virtfunc.exp, gdb.t23/Makefile.in,
20001 gdb.t24/demangle.exp, lib/gdb.exp: Check in Rob's testing
20006 * config/mt-lynx, config/mt-m68k, config/mt-mips-ecoff,
20007 config/mt-slite, config/mt-unix, config/mt-vxworks: Add
20008 Rob's new testing fragments.
20012 * config/mips-gdb.exp, config/udi-gdb.exp, config/vx-gdb.exp,
20013 lib/gdb.exp: Replace error proc calls with perror.
20017 * gdb.t00/teststrategy.exp: Reorder so that AIX gdb can print the
20018 version also, match on casted version strings, and match on
20019 gdb startup case where the line numbers might be messed up.
20023 * config/mt-i960-vx (LDFLAGS): Add '-r' option for test links.
20024 (CFLAGS): Delete it from here.
20028 * gdb.t22/virtfunc.exp: Fix g++ ptype expected outputs.
20032 * Makefile.in (RUNTEST): Default to just "runtest".
20036 * gdb.t17/callfuncs.exp: More comments about t_func_values tests.
20037 * gdb.t17/gdbme.c (t_func_values): Add comments about how and why
20038 the code has been restructured.
20042 * gdb.t00/default.exp (set write): Allow any number of \r and/or
20043 \n, not just one of each.
20045 * gdb.t07/gdbme.c (main): Don't take address of an array; SunOS4
20046 /bin/cc gives a warning if you do.
20050 * gdb.t24/demangle.exp: change expect pattern of
20051 __t10ListS_link1ZUiRCUiPT0
20055 * gdb.t07/{recurse.exp, recurse.c}: New tests for watchpoints
20056 on local variables in recursive functions.
20058 * gdb.t07/Makefile.in: Build the new test.
20062 * gdb.t17/gdbme.c (t_func_values): Do not compare function pointers
20063 directly. Instead compare the return values from actual calls.
20067 * Makefile.in (check): Set TCL_LIBRARY for runtest.
20071 * From Peter Schauer with minor modifications.
20072 * gdb.t15/return.exp (return_tests): Handle targets where "return"
20073 stops in mid-line in the caller. Add xfail for returning a float
20074 value on X86 targets.
20078 * gdb.disasm/hppa.exp (fcmp_tests): Break up into two halves
20079 to avoid expect lossage.
20080 (fmem_LRbug_tests): Likewise.
20081 * gdb.disasm/hppa.s: Corresponding changes.
20083 * gdb.disasm/hppa.exp: Rework escape sequences and end-of-line
20084 conditions to work with latest dejagnu/expect.
20086 * gdb.t15/funcargs.exp (finish from indirect call): No longer
20087 expected to fail on the PA.
20088 (backtrace in call with trampolines): Explicitly require main
20089 to be frame #1 (no trampolines should show up in backtrace).
20091 * gdb.t00/default.exp: Use "exp_continue" rather than obsolete
20092 "continue -expect".
20093 * gdb.t06/break.exp: Likewise.
20094 * gdb.t07/watchpoint.exp: Likewise.
20095 * gdb.t13/bitfields.exp: Likewise.
20096 * gdb.t15/{funcargs,return}.exp: Likewise.
20097 * gdb.stabs/weird.exp: Likewise.
20098 * config/{mips,udi}-gdb.exp: Likewise.
20100 * hppa.sed: Enclose comments within a sed command to avoid
20101 losing with the old OSF1 sed.
20105 * gdb.t02/whatis.exp, gdb.t08/opaque.exp: Add XFAILs for
20107 * gdb.t06/signals.exp: Add clear_xfail for sequent dynix.
20108 * gdb.t15/funcargs.exp: Conditionally step again to really
20109 finish from marker_call_with_trampolines. Handle the case where
20110 the first step from within call_with_trampolines already steps
20112 * gdb.t15/gdbme.c: Add comment to closing brace of
20113 call_with_trampolines for funcargs.exp.
20117 * gdb.t07/watchpoint.exp (test_watchpoint_triggered_in_syscall):
20122 * gdb.t07/gdbme.c: More code for watchpoint testing.
20124 * gdb.t07/watchpoint.exp: Accept both "Watchpoint" and
20125 "Hardware watchpoint" throughout file.
20126 (test_watchpoint_triggered_in_syscall): New test.
20127 (test_complex_watchpoint): New test.
20131 * gdbme.c (call_with_trampolines): New function to try and step
20132 into. Tests trampoline problems on the PA.
20134 * funcargs.exp (localvars_in_indirect_call): No longer expect
20135 stepping into indirect call to fail on PAs.
20136 (test_stepping_over_trampolines): New test.
20140 * TODO: Add suggestions for static member function tests, and
20145 * TODO: Add suggestions for "p/a" tests.
20147 * lib/gdb.exp: Set prompt to (gdb) if it isn't already set.
20148 (default_gdb_exit): Replace all the hair with sending "quit" to
20149 the process with a simple close.
20153 * TODO: Add suggestions for shared library tests.
20157 * TODO: Add suggestions for x/s tests.
20161 * gdb.t00/help.exp: Replace most of docstrings for "tbreak",
20162 "enable once", and "enable breakpoints once" with ".*".
20166 * TODO: Add suggestions about structure passing tests.
20170 * gdb.t03/gdbme.c: gcc version 1 puts out the wrong stabs for
20171 the primary1 test, use work around if __GNUC__ < 2.
20172 * gdb.t06/signals.c: Add comments for signals.exp pattern matching.
20173 * gdb.t06/signals.exp: Add XFAILs for i386 bsd and vax ultrix.
20174 Test for bad output rather than waiting for timeout. Issue
20175 second continue only if first continue failed.
20179 * gdb.t21/cplusfuncs.exp (test_paddr_operator_functions): Do
20180 operator[] test with gdb_test because the old code didn't seem to
20181 be getting the quoting right with the new dejagnu.
20185 * lib/gdb.exp: Set GDB to a fresh gdb if there is one, else use
20187 * Makefile.in: Use a fresh expect if there is one, use runtest
20188 from the src tree if there is one.
20192 * gdb.t06/break.exp (test_next_with_recursion): Remove xfail for
20193 next over recursive call. Revise the tests from that point on
20194 (which had been skipped) to match GDB's actual (correct) output.
20196 * gdb.t07/watchpoint.exp (test_stepping): Remove xfail for bug
20197 with next over a breakpoint whose condition is false.
20199 * gdb.t00/help.exp: Comment out "help set print" tests just like
20200 (and for same reason as) "help set" test.
20204 * gdb.disasm/hppa.s (fmemLRbug_tests): New tests.
20205 * gdb.disasm/hppa.exp (fmemLRbug_tests): Run them.
20209 * gdb.t06/break.exp (test_next_with_recursion): Remove no longer
20210 necessary gdb_target_udi.
20212 * gdb.t03/ptype.exp: For UDI, skip tests which call malloc.
20214 * gdb.t02/whatis.exp, gdb.t03/ptype.exp: Remove xfails for PRs
20215 1838 and 2417; they are fixed.
20217 * gdb.t02/whatis.exp (v_char_array, v_signed_char_array),
20218 gdb.t03/ptype.exp (ptype structure, ptype union):
20219 Remove xfails; the test is looser than when the xfails were added.
20221 * gdb.t00/{help.exp,default.exp}: Don't test "target remote" on UDI.
20222 * gdb.t00/help.exp: Don't expect remote to be in "help target" output.
20224 * gdb.t01/run.exp: Only run shell test if isnative.
20226 * config/udi-gdb.exp (gdb_load): Use "file", not "load" command,
20227 since "run" automatically loads if necessary. Call gdb_target_udi
20228 after the "file" since "file" kills any execution target.
20230 * config/udi-gdb.exp (gdb_start): Don't send "set args main" to
20231 GDB. GDB doesn't work that way (not anymore at least) on UDI.
20232 * gdb.t01/run.exp, gdb.t06/break.exp: Don't pass extra first
20237 * gdb.t17/interrupt.c: If we get EINTR, don't print an error message.
20239 * gdb.t17/callfuncs.exp: Add xfails for rs6000.
20243 * gdb.t24/demangle.exp: Re-write demangle to just call gdb_test,
20244 properly quoting regexps. This makes the second argument to
20245 demangle a fixed string, which matches the callers, instead of a
20246 shell-style pattern which is what the previous implementation
20247 used. Update some of the callers.
20251 * gdb.disasm/hppa.s (comib_tests): Add missing instruction.
20252 (comib_nullified_tests): Fix typo.
20253 * gdb.disasm/hppa.exp (all comb tests): Fix thinkos in expect
20254 strings. No longer expected to fail.
20256 * gdb.disasm/hppa.s (addib_tests): Fix typo.
20257 * gdb.disasm/hppa.exp (all addb tests): Fix thinkos in expect
20258 strings. No longer expected to fail.
20260 * gdb.disasm/hppa.exp (fmpy_addsub_tests): Fix typo in expect
20261 string. No longer expected to fail.
20265 * gdb.disasm/hppa.exp (fcmp_tests): Fix thinko in expect string.
20266 No longer expected to fail.
20268 * gdb.disasm/hppa.exp (xmpyu_tests): Fix buglet in expect
20269 string. No longer expected to fail.
20273 * gdb.t24/demangle.exp: Remove a bunch more tests which differ
20274 only in the names (I probably got most of them). I was even
20275 generous with some which differed in underscores in names, and
20276 probably missed a few, and I *still* was able to remove almost a
20277 third of the file with almost no impact on testsuite coverage.
20281 * gdb.t00/default.exp: Match udi_attach error message as well as
20282 the one from child_attach.
20284 * gdb.t00/default.exp: Use "." instead of "?" to match a question mark.
20286 * gdb.stabs/weird.exp: Remove xfail for const70; just fixed in GDB.
20288 * gdb.stabs/weird.def (bad_neg0type): Size of this type is 16, not 8.
20289 * gdb.stabs/weird.exp: Remove xfail for "p bad_neg0"; this fixes it.
20291 * Move test with enums and partial symbols back to
20292 gdb.t03/{ptype.exp,gdbme.c} from gdb.stabs/{weird.def,weird.exp}.
20293 Reverts the change of 26 May 93. Per today's change to
20294 stabs.texinfo, the behavior that weird.exp was expecting was
20295 unreasonable; what is important is that the compiler+gdb get
20296 things right, which happens with a recent gcc. Also fix the test
20297 to deal with native compilers which put out the stab gdb can't
20302 * gdb.t24/demangle.exp: Remove a bunch of tests which differ only
20303 in the names. The main thing these accomplish is to slow things down.
20304 Many more such duplicates surely remain.
20306 * gdb.t00/help.exp: Comment out "help support" test just like
20307 (and for same reason as) "help set" test.
20311 * gdb.t06/break.exp: Remove setup_xfails for
20312 sparc-sun-solaris2.*, these tests now pass with latest gcc and gdb.
20313 * gdb.t20/inherit.exp (test_ptype_si): Update warning message
20314 about known bug in gcc to include up through 2.5.8.
20315 * gdb.t20/inherit.exp (test_ptype_vi): Accept "_vb." as well as
20317 * gdb.t21/cplusfuncs.exp (test_lookup_operator_functions):
20318 Remove setup_xfails for sparc-sun-solaris2.*, these tests now pass
20319 with latest gcc and gdb.
20320 * gdb.t22/virtfunc.exp (test_ptype_of_classes): Accept "_vb." as
20325 * configure.in (hppa*-*-*): Also configure and build stabs-only
20330 * gdb.t10/hppa.mt: A makefile fragment for the PA.
20331 * gdb.t10/configure.in (hppa*-*-*): Use it.
20335 * gdb.t09/corefile: Increase timeout when spawning gdb explicitly.
20339 * gdb.t06/signals.exp: Handle blocked SIGTRAP on sun3 for bash
20340 versions prior to 1.13.5.
20344 * gdb.t00/default.exp (show prompt): In FAIL case, only match if
20345 the prompt is at the start of a line.
20349 * gdb.disasm/hppa.s: Add new tests for sfu and copr instructions.
20350 Enable "diag" instruction. Delete copr from fpu_misc_tests, it's
20351 in the copr tests now.
20352 * gdb.disasm/hppa.exp: Run new sfu and copr tests. Do not expect
20353 copr in the fpu_misc tests anymore. fpu_misc tests are no longer
20358 * gdb.t00/teststrategy.exp, gdb.t07/watchpoint.exp,
20359 gdb.t31/chillvars.exp, lib/gdb.exp:
20360 Tweak to run under either version of expect.
20361 * lib/gdb.exp (default_gdb_exit): Remove "catch" statement.
20362 * gdb.t00/teststrategy.exp: Use isnative and verbose procedures.
20363 * gdb.t11/list.exp: Remove extraneous whitespace.
20367 * gdb.t16/printcmds.exp (test_print_strings): Accept
20368 "(unsigned char *) " before the string.
20370 * TODO: Add notes about printing of fancy types and GDB expressions.
20374 * Makefile.in: Pass LDFLAGS and LIBS to sub-makes.
20375 * gdb.t06/configure.in: Don't try to compile signals test program
20376 if doing mips-idt-ecoff.
20380 * Most .exp files: Tweak to run under either version of expect.
20384 * gdb.t12/scope.exp: Add xfails for rs6000. Remove 1806 from existing
20385 xfails; I'm not sure why they are failing, but not because of PR 1806.
20389 * config/unix-gdb.exp: Remove gdb_unload cause it's already
20390 defined in lib/gdb.exp.
20394 * gdb.t07/watchpoint.exp: Clear xfail for calling function with
20395 watchpoint enabled on mips, CALL_DUMMY_BREAKPOINT_OFFSET got defined.
20396 * gdb.t20/gdbme.cc, gdb.t21/gdbme.cc: Conversion operator functions
20397 have to be typeless.
20401 * TODO: Add suggestion for copyright year test.
20405 * configure.in (*-*-lynxos*): Add stabs tests.
20409 * gdb.stabs/hppa.sed: Only lables should ever start in column zero,
20410 so insert a tab before any assembler directive in column zero.
20412 * gdb.disasm/hppa.exp (all_fpu_memory_tests): Test FP quadword
20414 * gdb.disasm/hppa.s (fpu_memory_indexing_tests): Add FP quadword
20416 (fpu_short_memory_tests): Likewise.
20420 * gdb.stabs/ecoff.mt: Delete alpha specific if block, fix typo.
20421 * gdb.stabs/ecoff.sed: Escape inserted blanks with backslashes, embed
20422 .stabs directives in comments.
20426 * TODO: New file, describing tests we could write.
20427 * gdb.t09/corefile.exp: Move description of tests to write to TODO.
20431 * gdb.t06/signals.exp: Add kludge to force re-sync.
20433 * gdb.t00/teststrategy.exp: If we accidently send the "maint dump-me"
20434 to xgdb instead of gdb, get out of gdb.
20438 * lib/gdb.exp: Make GDB and GDBFLAGS global so the scoping work
20443 * gdb.stabs/hppa.mt: A makefile fragment for the PA.
20444 * gdb.stabs/configure.in (hppa*-*-*): Use it.
20445 * gdb.stabs/hppa.sed: New sed script for the PA.
20449 * gdb.stabs: Re-write weird.def and configuration to use sed
20450 instead of cpp. sed is portable and POSIX; cpp is neither.
20454 * gdb.t06/signals.exp: Remove one sun3 XFAIL which has been fixed.
20458 * gdb.t20/gdbme.cc: Add comment about pmi being optimized out.
20462 * gdb.stabs/weird.exp, gdb.t22/virtfunc.exp: Accept "_vb." as well as
20464 * gdb.t00/teststrategy.exp: Add xfail for RS/6000.
20465 * gdb.t03/ptype.exp: Add comments and messages about FAILs with xlc.
20469 * lib/gdb.exp: Comment out code which depends on non-existent
20470 `transform' procedure.
20474 * lib/gdb.exp (default_gdb_exit): Remove `catch "close"'.
20475 * lib/gdb.exp: Transform tool name.
20476 * gdb.t*/*.exp: Change error to perror so it works with DejaGnu
20477 1.1's new error handling system.
20481 * Makefile.in, gdb.t2*/Makefile.in: Add -O to CXXFLAGS.
20485 * gdb.t00/default.exp: Avoid tests with a lot of .* in them.
20486 They made pattern matching so slow that timeouts happened on
20487 heavily loaded systems. Now any output from "show print" which
20488 gets us back to the GDB prompt is a PASS.
20490 Mon Oct 25 14:36:50 1993 Stu Grossman (grossman at cygnus.com)
20492 * gdb.disasm/hppa.mt: Use $(srcdir) in hppa.o make rule.
20496 * gdb.t06/signals.exp: Skip whole file with xfail for HPPA.
20498 * gdb.t24/demangle.exp: Remove "3220" from the one remaining xfail.
20499 It is not from PR 3220.
20503 * gdb.t00/{help.exp,default.exp}: Loosen up a few more tests which
20504 just started failing because they depended on the order the
20505 subcommands are presented, or exact docstring text. This kind of
20506 test is a pain and has minimal benefit.
20510 * gdb.t09/corefile.exp: At end of test, use "core" command with
20513 Wed Oct 20 08:56:02 1993 Stu Grossman (grossman at cygnus.com)
20515 * gdb.t{01 02 03 04 05 06 07 08 09 10 11 12 13 15 16
20516 17}/Makefile.in: Make it possible to run the testsuite with Sun
20517 make and CC = cross gcc by adding explicit build rules for .o
20522 * gdb.t15/funcargs.exp: Don't put comments on same line as
20523 setup_xfail (@#$*%& tcl braindamage!).
20527 * gdb.disasm/hppa.exp: Use $objdir/$subdir/$binfile not just $binfile.
20531 * gdb.t20/classes.exp: 'const xxx &' becomes 'xxx const &'.
20532 * gdb.t20/inherit.exp: remove three dumplicate entries.
20536 * gdb.t06/break.exp: For "next over recursive call", fail on any
20537 incorrect output, not just on "factorial (value=2)".
20541 * gdb.t12/scope.exp: Remove xfails, filename::var syntax should be
20542 working now. Add an xfail if accesing a bss variable causes
20543 a memory error if the target is not yet run.
20547 * gdb.t24/demangle.exp: Clean up spacing (2 strings), inclusion of
20548 constructor name (2 string), name of _GLOBAL_ demangling (2 strings),
20549 name of __st* demangling (2 strings). Did Kung really get the
20550 more than 95 others right without testing them?
20554 * gdb.t24/demangle.exp: clean up XFAILS, more than 100
20558 * configure.in (configdirs): Add gdb.disasm
20559 * gdb.disasm: New directory for GDB disassembler tests.
20560 * gdb.disasm/hppa.{exp,s,mt}: Disassembly tests for the HPPA.
20564 * gdb.t00/help.exp: Don't test "help set".
20566 * gdb.t20/inherit.exp, gdb.t22/virtfunc.exp: Remove all xfails
20567 from within expect statements. None of these happen anymore and
20568 they cause regressions to be silently unnoticed.
20570 * gdb.t20/inherit.exp, gdb.t22/virtfunc.exp: Add notes (in failure
20571 messages) about known failures with gcc cygnus-2.4.5-930417.
20573 * gdb.t02/Makefile.in, gdb.t08/Makefile.in: Make all depend on
20574 comp-info.exp so it gets built if it doesn't exist.
20576 * gdb.t13/{Makefile.in,bitfields.exp}: Remove comp-info.exp stuff;
20577 it is no longer used.
20578 * gdb.t13/comp-info.c: Removed.
20582 * gdb.t06/signals.exp: Add xfail for sun3.
20586 * gdb.t17/interrupt.exp: Add xfail for Irix (currently not really
20587 relevant because ^C doesn't get sent but failure can be reproduced
20592 * gdb.stabs/alpha.mt: New configuration file for alpha.
20593 * gdb.stabs/configure.in: Use it.
20594 * gdb.stabs/ecoff.mt, weird-ecoff.sed: Change sed script to enable
20595 sharing with alpha.mt, redefine long to word via preprocessor.
20596 * gdb.stabs/weird.def: Conditionally adapt storage layout of v_comb
20598 * gdb.stabs/weird.exp: Handle compilation of weird.s by alpha
20600 * gdb.t00/teststrategy.exp: Change expect string so that we
20601 consume the `(xgdb)' from the command echo and from the gdb prompt.
20602 * gdb.t05/expr.exp: xfail "print unsigned int == (~0)" on the alpha.
20603 gdb currently compares all values as long, so this failure probably
20604 applies to any configuration where LONGEST is bigger than a target int.
20605 * gdb.t08/comp-info.c: New file to determine if gdbme is compiled
20607 * gdb.t08/Makefile.in, opaque.exp: Use it. Alpha native cc is unable
20608 to handle opaque pointers, gcc is.
20609 * gdb.t21/gdbme.cc, gdb.t23/gdbme.cc: operator new takes a size_t
20610 as first argument. Include <sys/types.h> and change all operator
20611 new definitions to use size_t.
20612 * gdb.t21/cplusfuncs.exp: Handle changes in output for operator new
20613 now that we use size_t.
20617 * gdb.t03/ptype.exp, gdb.t15/printcmds.exp: When constructing
20618 a long or float array cast all array members to the same type.
20619 * gdb.t04/setvar.exp: Handle the decimal output of an unsigned long
20621 * gdb.t07/watchpoint.exp: Add finish and until variations encountered
20623 * gdb.t08/opaque.exp, gdb.t17/interrupt.exp: Add xfails for alpha.
20627 * gdb.t24 (demangle.exp): Constructors of templates have names like
20628 vector<int>::vector(int) not vector<int>::vector<int>(int). See
20629 section 14.6 of the ARM.
20631 * gdb.t24 (demangle.exp): Remove a whole bunch of tests of the form
20632 "_vt$MoveCmd"; these differ only in name from "_vt$foo", so they
20633 accomplish little and slow down the testsuite.
20635 * gdb.t24 (demangle.exp): Accept "XXX const" as well as "const XXX".
20636 Accept spaces various places.
20640 * gdb.t07/watchpoint.exp: On sparc, clear xfail for calling function
20641 with watchpoint enabled.
20643 * Makefile.in: Remove definition of CC and remove the second
20644 definition of CXX (the "CXX = gcc" one remains). These definitions
20645 were causing backquotes to be expanded within backquotes, which
20650 * gdb.t17/callfuncs.exp: Add "return 0" to end.
20654 * gdb.stabs/ecoff.mt: Remove STABSCC hack.
20655 * gdb.stabs/weird.exp: Handle the case where weird.o is compiled
20656 by mips cc and contains no stabs entries.
20660 * config/vx-gdb.exp: Use fake device to load files rather than
20662 * lib/gdb.exp: New proc to do "file" command.
20663 * config/unix-gdb.exp: Use new "file" proc.
20667 * config/mips-gdb.exp (gdb_load): Increase timeout to 2400.
20668 Rework board rebooting slightly.
20669 (gdb_exit): Don't exit from the remote shell; there isn't one.
20670 * gdb.stabs/weird.exp: If a program is being debugged already,
20672 * gdb.t04/setvar.exp: Stop and restart gdb.
20673 * gdb.t05/expr.exp: Likewise.
20674 * gdb.t07/watchpoint.exp: If target is mips-idt-*, stop and
20675 restart gdb and reload the program.
20676 * gdb.t08/opaque.exp: Likewise.
20677 * gdb.t12/scope.exp: Likewise.
20678 * gdb.t13/bitfields.exp: Likewise.
20679 * gdb.t15/funcargs.exp: Likewise.
20680 * gdb.t20/classes.exp: Likewise.
20681 * gdb.t03/ptype.exp: Increase timeout.
20682 * gdb.t16/printcmds.exp (test_print_string_constants,
20683 test_print_array_constants): Likewise.
20684 * gdb.t17/callfuncs.exp (do_function_calls): Likewise.
20685 * gdb.t20/classes.exp (do_tests): Likewise.
20686 * gdb.t22/virtfunc.exp (test_virtual_calls): Likewise.
20690 * gdb.stabs: Renamed *wierd* to *weird*.
20694 * gdb.t13/bitfields.exp: Test for bad output rather than waiting
20695 for timeout. Add "known gcc 2.4.5 bug" to failure message.
20699 * gdb.stabs/wierd.exp (print_wierd_var): Test size, not type name.
20700 (do_tests): Remove xfail for whatis on one_var and two_var.
20704 * Makefile.in: Made cross building work better by adding
20705 {RUNTEST,CC}_FOR_TARGET and using TARGET_FLAGS_TO_PASS.
20709 * gdb.t15/{return.c,return.exp,Makefile.in}:
20710 New test, currently commented out.
20714 * config/udi-gdb.exp: gdb_exit now kills any isstip processes
20715 still running and removes the leftover named socket so GDb can do
20720 * gdb.t01/run.exp: Add match for VxWorks, cause I/O comes out the
20722 * config/mt-*: Added default values for RUNTEST and RUNTESTFLAGS so
20723 cross testing works better with "make check"
20724 * config/unix-gdb: Use default procedures for exit and version.
20725 * config/vx-gdb.exp: Cleaned up and massaged back to working order
20726 with the newest VxWorks.
20730 * gdb.t20/classes.exp: For "ptype class Base1", continue to accept
20733 * gdb.t22/virtfunc.exp: If it prints `struct' (not `class') with a
20734 name (e.g. devo gdb with gcc 2.4.5), it is still a pass.
20736 * gdb.t10/crossload.exp: Skip whole file (for now, until we fix it).
20738 * config/unix-gdb.exp: Remove this version of gdb_exit
20739 * lib/gdb.exp: Merge in all the crap from config/unix-gdb.exp.
20740 Rob says he'll look at it when he gets back to testing boards.
20744 * gdb.t22/virtfunc.exp: Accept missing struct/class names as
20745 an expected fail for certain ptype commands.
20747 * gdb.t20/classes.exp: Update expected results of "ptype class
20748 Base1" to account for the constructor that now appears in the type.
20752 * configure.in (configdirs): Restore gdb.t04, which mysteriously
20753 disappeared from list.
20754 * config/{udi-gdb.exp, gdb-unix.exp}: Replace calls to obsolete
20755 "alldone" proc with call to cleanup and exit.
20756 * {gdb.t01/run.exp, gdb.t01/term.exp, gdb.t02/whatis.exp,
20757 gdb.t03/ptype.exp, gdb.t04/setvar.exp, gdb.t05/expr.exp,
20758 gdb.t06/break.exp, gdb.t07/watchpoint.exp, gdb.t08/opaque.exp,
20759 gdb.t09/corefile.exp, gdb.t10/crossload.exp, gdb.t11/list.exp,
20760 gdb.t12/scope.exp, gdb.t13/bitfields.exp}: Replace calls to
20761 "alldone" proc with simple returns that suppress remaining
20762 tests. The alldone proc went away many months ago.
20766 * gdb.t10/nodebug.exp: Comment out "maint print msymbols" tests.
20768 * gdb.t12/gdbme0.c (localscopes, autovars): Modify to foil gcc -O.
20772 * gdb.t15/funcargs.exp: Allow arguments for main in backtraces
20773 as vax gdb will display them.
20777 * gdb.t20/gdbme.cc: Do some calculation with v.x, to confound
20780 * scope.exp: Change "bad value for localval" messages so each one
20783 * config/unix-gdb.exp (gdb_exit): Move info on this vs.
20784 lib/gdb.exp (gdb_exit) from ChangeLog to comments.
20786 * gdb.t06/signals.exp: Skip the whole file with xfail for delta68.
20790 * gdb.t00/teststrategy.exp: Deal with it if cmdsize = 1 line
20791 doesn't exist (due to optimization).
20795 * gdb.stabs/wierd.exp: Deal with it if echo of "file" command
20796 contains \r because the filename is long.
20798 * gdb.t06/signals.exp: Revise comments regarding "'next' behaved as
20799 'continue'" bug, and change xfail back to i*86-univel-sysv4*.
20803 * gdb.t00/help.exp, gdb.t02/whatis.exp, gdb.t07/watchpoint.exp,
20804 gdb.t08/opaque.exp, gdb.t17/interrupt.exp: Update for vax running
20806 * gdb.t02/whatis.exp: Use procedure to setup xfails on long versus
20808 * gdb.t08/opaque.exp: Use procedure to setup xfails for opaque tests.
20812 * Makefile.in (distclean): Remove *.log *.plog *.sum *.psum site.*.
20814 * gdb.t17/interrupt.exp: Fix 'missing Continuing' case so pattern
20815 to match does not match the passing case but still matches the
20820 * Makefile.in (distclean): Remove *.plog *.sum *.psum site.*.
20824 * lib/gdb.exp (gdb_exit): Move the best version of gdb_exit
20825 to here. Fix 'Quit anyway.*?' bug (? is a regexp metacharacter).
20826 * config/{mips-gdb.exp, nind-gdb.exp, udi-gdb.exp, vx-gdb.exp}:
20827 Remove various versions of gdb_exit.
20828 * config/vx-gdb.exp: Remove quit_vxgdb, change a caller to call
20830 * config/unix-gdb.exp: gdb_exit remains here, and should override
20831 the generic version, since it's doing a lot of wierd stuff that
20832 the other versions aren't. FIXME, fold it in, or abandon this
20837 * gdb.t24/demangle.exp: Add tests for PR 3220.
20841 * gdb.t24/demangle.exp: Add lucid test for __vtbl__3foo__vt_cc_main_.
20845 * gdb.t07/watchpoint.exp: Clear xfail with "i*86-*-*", not just
20846 "i386-*-*". Works for i486 as well.
20848 * gdb.t06/signals.exp: Rework code that recognizes known SVR4
20849 bug, and expand domain of xfail to all SVR4 systems, since the
20850 actual problem is likely to be in generic SVR4 /proc support.
20854 * config/unix-gdb.exp (gdb_load): Add eof to expect statement.
20858 * gdb.t17/interrupt.exp: Set up xfail for *-*-sysv4*, in chain of
20859 xfails for other systems. Match a missing 'Continuing.' as an
20860 explicit fail for i*86-*-sysv4*, so it doesn't hose other tests.
20862 * gdb.t20 {classes.exp, inherit.exp, misc.exp}, gdb.t21/cplusfuncs.exp,
20863 gdb.t22/virtfunc.exp, gdb.t23/templates.exp, gdb.t31/chillvars.exp:
20864 Only issue warning for missing executables if -all option is used.
20866 * gdb.stabs/wierd.exp: Only issue warning for missing wierd.o
20867 file if -all option is used. It's like an unpredictable XFAIL.
20871 * gdb.t15/funcargs.exp: Add comments that hppa xfails are only
20872 for dynamically linked binaries.
20874 * gdb.t10/crossload.exp: Add `set gnutarget auto' at end of tests.
20878 * gdb.t20/inherit.exp: Change message for "print tagless struct"
20879 to state that this is a known bug in old versions of g++.
20883 * gdb.t17/interrupt.exp: Add xfail for 386 bsd. Accept echoed newline
20884 while waiting for `Continuing'.
20888 * gdb.t10/nodebug.exp: Expect to find local/global minimal symbols
20889 in text, data, and bss.
20890 * gdb.t10/nodebug.c: Add local and global test variables for
20891 initialized and uninitialized data.
20895 * config/unix-gdb.exp (gdb_exit): Add "wait".
20899 * gdb.t06/signals.exp: xfail the continue from the handler for all
20902 * gdb.t07/watchpoint.exp: clear_xfail for i386 when calling a
20903 function with watchpoints enabled, the i386 call dummy starts with
20906 * gdb.t00/teststrategy.exp, gdb.t09/Makefile.in: Handle the way
20907 386 bsd names its corefiles.
20911 * gdb.t10/Makefile.in (nodebug.o): Don't use "-c -o", many
20912 compilers don't grok it.
20913 * gdb.t16/gdbme.c (ctable1): Initialize unsigned char array
20914 with small octal ints rather than character constants, which
20915 are signed and might not fit if first promoted to int.
20919 * gdb.t09/Makefile.in (clean): Remove corefile.
20923 * gdb.t07/watchpoint.exp: Add missing `$prompt $'.
20928 * gdb.t06/signals.exp: Change xfail from "*-*-*" to be only for
20929 NO_SINGLE_STEP machines. Fix comment about its cause. Uncomment
20930 the `continue' test right after it (also xfailed if NO_SINGLE_STEP).
20934 * gdb.t17/interrupt.exp: Add xfail for hppa.
20938 * gdb.t02/whatis.exp, gdb.t03/ptype.exp, gdb.t08/opaque.exp,
20939 gdb.t09/corefile.exp: Cleanup xfails for fixed mips bugs.
20940 * gdb.t13/bitfields.exp, gdbme.c: Examine a variable in the inferior
20941 to determine signed-ness of bitfields and use the result to setup
20943 * gdb.t15/gdbme.c: Add comments to the two indirect call0a lines.
20944 * gdb.t15/funcargs.exp: Use them to step until the second indirect
20945 call line is reached if necessary.
20949 * gdb.stabs/wierd.exp: New test, for nameless baseclasses.
20953 * gdb.t06/break.exp: Also test `clear' command.
20957 * gdb.t00/teststrategy.exp: Remove extra quote.
20959 * gdb.t07/watchpoint.exp: Change xfail for calling function with
20960 watchpoint enabled to be for all non-68k machines.
20962 * gdb.t15/{mips_pro.{c,exp},Makefile.in}: New test.
20966 * gdb.stabs/configure.in: If configured -with-gnu-as for mips-*-*
20967 targets use aout.mt instead of ecoff.mt as gas understands
20968 standard aout format.
20972 * lib/gdb.exp (runto): Don't insist that function we are running to
20973 was compiled with -g.
20975 * gdb.t10/{nodebug.{c,exp},Makefile.in}: New test.
20977 * gdb.t17/interrupt.exp: Before sending ^C, give the inferior time
20978 to get back into the read system call.
20979 Accept leading newline in case where we woke it up.
20983 * gdb.stabs/{ecoff.mt,wierd-ecoff.S,wierd-ecoff.sed}: New files
20984 to make the stabs test work on ecoff systems using gcc and -with-stabs.
20985 * gdb.stabs/{Makefile.in,configure.in,aout.mt,xcoff.mt}: Modify to
20986 enable ecoff configuration.
20990 * gdb.t15/funcargs.exp (localvars_in_indirect_call): New test.
20994 * gdb.t16/printcmds.exp: Add another printf test.
20998 * configure.in: If configured -with-stabs on any target, add
20999 stabsdirs to configdirs.
21003 * gdb.t16/printcmds.exp: Change printf "%f\n" to printf "%f is
21004 fun" so pattern does not match the command itself.
21008 * gdb.t15/{gdbme.c,funcargs.exp}: Test for alloca-influenced frames.
21012 * gdb.t17/interrupt.exp: Test for more things.
21016 * gdb.t07/watchpoint.exp: In until test, deal with the way the DEC
21017 compiler arranges the code and line numbers.
21019 * gdb.t17/interrupt.exp: Don't send \n after ^C.
21023 * gdb.t00/help.exp: Increase expect input buffer size.
21027 * gdb.t06/signals.exp: Remove sparc xfail; bug fixed.
21029 * gdb.t07/watchpoint.exp: Add xfail for hppa.
21031 * gdb.t17/{gdbme.c,callfuncs.exp}: Add sum10 function, to test pa bug.
21033 * gdb.t06/signals.exp: At "p func1 ()" test, check for breakpoint
21034 [0-9]*, not just [0-9].
21038 * gdb.t20/{gdbme.cc,classes.exp}: Add xfail for gdb/2972.
21040 * gdb.t2*: Set CXXFLAGS, not CFLAGS, since that's what we use.
21044 * gdb.t00/help.exp: Replace most of docstring for "continue" with .*.
21048 * gdb.t06/signals.c: Add xfails for sun3.
21050 * gdb.t07/watchpoint.exp: Comment out xfail for fixed bug 1836.
21052 * gdb.t07/{gdbme.c,watchpoint.exp}: Add test for 2597. Also add
21053 test_stepping tests.
21057 * gdb.t{06,17}/Makefile.in (clean): Remove all executables.
21059 * gdb.t17/{interrupt.{c,exp},Makefile.in}: New test for solaris bug.
21061 * gdb.t06/twice.exp, Makefile.in: Just use an include of twice.c
21062 rather than actually putting it through cpp twice.
21064 * gdb.t06/signals.exp: Add xfails for unixware and rs6000.
21068 * config/mips-gdb.exp (gdb_exit): Removed close statement which is
21073 * gdb.t06/signals.exp: Add test for sparc bug with do_save_insn.
21075 * gdb.t20/{classes,inherit}.exp: If a class which doesn't use any
21076 C++ features prints as "struct", make it a pass, not an xfail.
21080 * gdb.t22/virtfunc.exp: Remove a bunch of xfails.
21081 Don't require VA to print as "class" rather than "struct".
21085 * gdb.t06/twice.exp: Don't care about the file name GDB prints.
21089 * gdb.t{02,13}/comp-info.c, gdb.t06/twice.exp: Add "return 0" to end.
21093 * gdb.t12/scope.exp: Remove xfail for parameter printing in wrong
21098 * gdb.t16/printcmds.exp: Add printf tests.
21100 * gdb.t06/{twice.{c,exp},Makefile.in}: New test.
21102 * gdb.t10/Makefile.in (clean): Remove $(EXECUTABLES) too.
21106 * gdb.t20/classes.exp: Add clear_xfail's before printing summary
21107 pass counts, to counteract any existing or future setup_xfails.
21111 * gdb.stabs/wierd{.def,-aout.S,-xcoff.S}: Use new macros
21112 {BEGIN,END}_COMMON for common block instead of STAB.
21113 * gdb.stabs/wierd.exp: Add xfail for rs6000.
21115 * gdb.stabs/wierd.def: Make value of N_GSYM's 0.
21116 intp_var should be N_GSYM not N_LSYM.
21117 wierd-aout.S: Use a label for the value of the N_SO.
21118 wierd.def: Remove all backslashes.
21119 wierd-{aout,xcoff}.S: Put a few tests with backslashes here.
21123 * gdb.t20/gdbme.cc (main): Move variable initialization for AIX to
21124 get the expected next to inheritance3.
21128 * gdb.t00/teststrategy.exp: Remove expected failure for mips-*-*
21129 now that gcc-2.4 gets it right.
21133 * gdb.stabs/wierd{.def,.exp,-aout.S,-xcoff.S}: Add common block test.
21135 * gdb.t{02,13}/{Makefile.in,gdbme.c,comp-info.c}: New way of
21136 generating comp-info.exp which works for cross-compilation.
21140 * gdb.t11/list.exp: For SVR4 xfails, match "*-*-sysv4*", not
21145 * gdb.t01/run.exp: Start with a fresh gdb.
21146 * gdb.t11/list.exp: For SVR4 xfails, match on all versions of
21151 * {gdb.t01, gdb.t02, gdb.t03, gdb.t04, gdb.t05, gdb.t06, gdb.t07,
21152 gdb.t08, gdb.t09, gdb.t10, gdb.t11, gdb.t12, gdb.t13, gdb.t15,
21153 gdb.t16, gdb.t17, gdb.t20, gdb.t21, gdb.t22, gdb.t23, gdb.t30}/
21154 Makefile.in (distclean, realclean): Remove gdbme.c from list of
21159 * gdb.t24/demangle.exp (test_gnu_style_demangling): Add some new
21160 test cases from bug reports.
21164 * gdb.t06/break.exp: Add xfails for sparc-sun-solaris2.*.
21165 * gdb.t12/scope.exp: Add clear_xfails at appropriate places to
21166 avoid spurious xfails.
21167 * gdb.t20/classes.exp: Add xfails for longstanding C++ problems.
21168 * gdb.t21/cplusfuncs.exp: Add xfails for sparc-sun-solaris2.*.
21169 * gdb.t22/virtfunc.exp: Add xfails for longstanding C++ problems.
21173 * gdb.t00/teststrategy.exp: Rework to provide more useful
21174 description of each test, fix problem with systems that define
21175 ALIGN_STACK_ON_STARTUP code, other misc cleanups.
21176 * gdb.t06/break.exp (test_next_with_recursion): Fix expected
21177 results for "next over recursive call" so timeouts aren't taken
21182 * gdb.t12/scope.exp: Test printing of variables before run.
21184 * gdb.t12/{gdbme0.c,scope.exp}: Test for bug where parameters are
21185 printed in wrong order due to sorting.
21189 * gdb.t00/teststrategy.exp: Fix expected results for printing
21190 user entered string constant. Is array of char, prints with no
21193 * gdb.t00/{default.exp, help.exp}: Account for changes to radix
21195 * gdb.t16/gdbme.c: Add and use struct containing arrays of char.
21196 * gdb.t16/printcmds.exp: Fix all lines that match "unsigned char *".
21197 * gdb.t16/printcmds.exp (test_print_char_arrays): Test printing
21198 of struct of char arrays.
21199 * gdb.t00/radix.exp: New tests for radix commands.
21203 * gdb.t16/printcmd.exp: Print a variable before running program
21204 (with xfail for AIX).
21208 * gdb.t06/{signals.exp,signals.c,Makefile.in}: New test.
21210 * gdb.t16/printcmd.exp: Don't print variables before running program.
21212 * gdb.t06/break.exp: Don't require envp argument to main.
21214 * gdb.t0{2,3,4,5}/gdbme.c [_AIX]: Use signed keyword.
21216 * gdb.t02/whatis.exp, gdb.t11/list.exp:
21217 Add xfails for rs6000.
21219 * gdb.t02/whatis.exp: Change other tests not to re-test something
21222 * gdb.t{03,15,16}/gdbme.c: Reference all variables and make sure
21223 each type used has a variable of that type.
21227 * gdb.t20/{inherit.exp,gdbme.cc}: Test tagless structure.
21229 Fri Jun 4 11:07:19 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
21231 * configure.in: change srctrigger to be a file, not a directory
21235 * configure.in (mips-idt-ecoff*): Added trailing '*'.
21237 * gdb.t11/list.exp: Fixed a couple of typos.
21241 * gdb.t00 (teststrategy.exp): Remove notice about PR 1823. Bug
21242 is fixed and PR is closed.
21243 * gdb.t16 (gdbme.c): Add simple test string variable.
21244 * gdb.t16 (printcmds.exp): Add tests with simple test string
21245 variable, primarily for boundaries on "set print elements".
21249 * gdb.stabs/wierd.exp: Remove xfail for printing big integer.
21250 Make leading 0's optional and don't expect a tab in the middle
21253 * gdb.t00/teststrategy.exp: Remove xgdb before trying the copy.
21255 * gdb.stabs/wierd.def: Type attributes must be preceded by number=.
21256 * gdb.stabs/wierd.exp: Remove xfails for type attributes. Also
21257 don't end command passed to gdb_test with newline.
21259 * gdb.t13/{Makefile.in,gdbme.c,bitfields.exp}: If we #defined the
21260 signed keyword away, don't expect signed bitfields to be signed.
21262 * gdb.t13/bitfields.exp (bitfield containment): Accept the fields
21263 printing with only as many 1's as are in the field as well as printing
21264 with 32 1's (see comment).
21268 * gdb.t00/default.exp: Start with a fresh gdb.
21269 * configure.in (configdirs): Remove gdb.t31 until the chill
21270 compiler works again. It no longer is able to find chillrt0
21271 since it isn't in libchill.a anymore.
21272 * gdb.stabs/wierd.exp: Rewrite to properly handling a missing
21273 wierd.o, make more modular.
21274 * gdb.stabs/wierd.def (bad_neg0type, bad_neg0const): Remove
21275 spurious newlines that caused problems.
21279 * Move test with enums and partial symbols from gdb.t03/ptype.exp
21280 to gdb.stabs/wierd.exp since GCC has worked around the bug.
21281 gdb.stabs/wierd.{exp,def}: Many new tests.
21283 * gdb.t00/default.exp: update info line for new message.
21285 * gdb.t02/{whatis.exp,gdbme.c}:
21286 Test that "char *" doesn't print as "caddr_t".
21290 * gdb.t00/help.exp: Use .* in place of some help messages which
21292 gdb.t00/default.exp: Update "info frame" test for new message.
21293 * gdb.stabs/wierd.exp: Check for eof, directly or via gdb_test.
21298 * gdb.t03/{gdbme.c,ptype.exp}:
21299 Add tests for typedef'd struct and union without tags.
21300 Also check "whatis" on a variable of a typedef'd enum without a tag.
21302 * gdb.t00/teststrategy.exp: For p "foo", remove sun4 XFAIL (see
21303 PRMS 1823; the bug still exists but isn't reproduced by this test
21304 anymore), and remove rs6000 XFAIL (the bug is fixed).
21306 * gdb.t03/ptype.exp: Comment out a lot of tests which are basically
21307 duplicated from whatis.exp. For those that are left, accept
21308 "long", "long int", or "int" for long variables (whatis.exp already
21309 has an XFAIL for "int", so no need to fail it here).
21311 * gdb.t02/whatis.exp, gdb.t10/crossload.exp:
21312 Deal with GCC's names for types now that GDB uses the compiler's names.
21314 * gdb.t02/{Makefile.in,gdbme.c,whatis.exp}: If not GCC, do some
21315 setup_xfail's for sunos4. If we #defined the signed keyword away,
21316 don't expect GDB to know that char it is signed.
21318 * gdb.t00/teststrategy.exp: Update for symbolic signal names.
21322 * configure.in (configdirs): Add gdb.t24 for C++ tests that
21323 should work on any system, regardless of debugging format.
21324 * gdb.t21/demangle.exp: Move to gdb.t24.
21325 * gdb.t24/demangle.exp: Move from gdb.t21.
21326 * gdb.t24/{Makefile.in, configure.in}: New files.
21330 * configure.in: Do gdb.stabs and C++ tests only for stabs.
21331 * gdb.stabs: New directory.
21335 * config/{mips,nind,udi,unix,vx}-gdb.exp: Look for "Quit anyway.*?"
21336 not just "Quit anyway?".
21340 * gdb.t21/demangle.exp: Add a couple of new patterns. Ensure
21341 that all setup_xfails are immediately followed by clear_xfails.
21345 * config/unix-gdb.exp, gdb.t00/echo.exp, gdb.t00/help.exp,
21346 gdb.t00/teststrategy.exp, gdb.t00/gdbvars.exp, gdb.t01/run.exp,
21347 gdb.t01/term.exp, gdb.t02/whatis.exp, gdb.t03/ptype.exp,
21348 gdb.t04/setvar.exp, gdb.t05/expr.exp, gdb.t06/break.exp,
21349 gdb.t07/watchpoint.exp, gdb.t08/opaque.exp, gdb.t09/corefile.exp,
21350 gdb.t10/crossload.exp, gdb.t11/list.exp, gdb.t12/scope.exp,
21351 gdb.t13/bitfields.exp, gdb.t15/funcargs.exp, gdb.t16/printcmds.exp,
21352 gdb.t17/callfuncs.exp, gdb.t20/misc.exp, gdb.t20/inherit.exp,
21353 gdb.t20/classes.exp, gdb.t21/demangle.exp, gdb.t21/cplusfuncs.exp,
21354 gdb.t22/virtfunc.exp, gdb.t23/templates.exp, gdb.t30/chexp.exp,
21355 gdb.t31/chillvars.exp, lib/gdb.exp:
21361 * gdb.t17/callfuncs.exp (do_function_calls): Call t_double_values
21362 with 0.0, not integer 0.
21366 * gdb.t06/break.exp: Update for "Kill the program" message change.
21370 * Makefile.in (GDBFLAGS): Set to -nx.
21371 * Makefile.in (site.exp): Use GDBFLAGS.
21375 * */Makefile.in (CFLAGS): add CFLAGS = -g to all subdirectory
21377 (check): depend on just-check.
21378 (just-check): added so that tests can be run without a noop
21383 Switch to using configure's configdirs.
21384 * Makefile.in (Makefile): add configure.in dependency.
21385 (SUBDIRS): removed redundant assignment.
21386 * configure.in: switch subdirs assignment to configdirs.
21387 * gdb.t*/configure.in: new files.
21391 * gdb.t07/watchpoint.exp: Removed a29k expected failure which now
21396 * gdb.{t20,t21,t22,t23}/Makefile.in: Use $(srcdir) to avoid $<
21397 in explicit rules. Apparently this is not supported by some makes.
21401 * gdb.t31/Makefile.in: Use $(srcdir) when avoiding $<, sigh.
21405 * config/unix-gdb.exp: Add back missing return 0 which mysteriously
21410 * gdb.t31/Makefile.in: Avoid $< in explicit rule.
21414 * gdb.t07/watchpoint.exp: Remove setup_xfail for i486
21415 watchpoint problem that is now fixed.
21416 * gdb.t30/chexp.exp: Remove setup_xfail for printing
21417 uninitialized convenience variables.
21418 * gdb.t31/chillvars.exp: Fix expected patterns for printing
21423 * gdb.t00/help.exp: Compensate for bug in mips-*-ultrix* OS
21424 which causes expect to get out of sync with gdb on long output
21426 * gdb.t09/corefile.exp: Make expected pattern for core file
21427 failing signal and frame output format less sun specific.
21431 * gdb.t31/chillvars.exp: Add and remove initial dummy
21432 breakpoint, so that symbol table is forced in.
21433 (Needed at least on Sunos4, though it seems not SVR4.)
21434 * gdb.t31/chillvars.exp: Update for changed output format.
21436 Sun Apr 11 17:21:45 1993 Rob Savoye (rob at darkstar.cygnus.com)
21438 * config/unix-gdb.exp: Gracefully exits if $GDB is a bogus path.
21442 * Makefile.in: Added --srcdir when invoking runtest, removed the
21443 need for a local config file. (optional now)
21447 * gdb.t21/demangle.exp: Only count real fails (not xfails) for
21448 failure count used to force early termination. Add some more
21449 expected failures for gnu style demangling.
21453 * Makefile.in (CXXFLAGS): Remove -O. It caused the debug info for the
21454 pmi variable from gdb.t20/gdbme to get optimized away.
21455 * gdb.t00/teststrategy.exp: Added expected failure for mips-*-*.
21456 Check for written corefile upon timeout _and_ eof.
21460 * config/unix-gdb.exp: Add missing return 0.
21464 * gdb.t16/printcmds.exp: Remove misplaced xfail that caused an early
21469 * configure.in (subdirs): Put back gdb.t17 which mysteriously
21474 * gdb.t10/crossload.exp: Disable the i860-elf test until such
21475 time as i860 support works.
21477 * gdb.t15/funcargs.exp: Fix expected outputs to include
21478 "backtrace 100\r" rather than just "backtrace\r", to match last
21483 * config/udi-gdb.exp (gdb_exit): Remove close command.
21484 (gdb_target_udi): New procedure to set the UDI target.
21485 (gdb_start): Don't remove *_soc files. Use gdb_target_udi.
21486 * gdb.t00/default.exp: Added expected failures for a29k-*-udi.
21487 Added waits for prompts after several question responses. Added
21488 some more responses used by a29k-amd-udi-gdb.
21489 * gdb.t01/run.exp, gdb.t06/break.exp: Added a29k-*-udi support:
21490 pass different arguments, restart UDI connection after program
21492 * gdb.t02/whatis.exp, gdb.t03/ptype.exp, gdb.t07/watchpoint.exp,
21493 gdb.t08/opaque.exp, gdb.t11/list.exp, gdb.t12/scope.exp,
21494 gdb.t15/funcargs.exp, gdb.t16/printcmds.exp, gdb.t20/misc.exp,
21495 gdb.t21/cplusfuncs.exp: Added expected failures for a29k-*-*.
21496 * gdb.t04/setvar.exp, gdb.t05/expr.exp, gdb.t07/watchpoint.exp,
21497 gdb.t08/opaque.exp, gdb.t12/scope.exp, gdb.t13/bitfields.exp,
21498 gdb.t15/funcargs.exp, gdb.t16/printcmds.exp,
21499 gdb.t17/callfuncs.exp, gdb.t20/classes.exp, gdb.t20/inherit.exp,
21500 gdb.t20/misc.exp, gdb.t22/virtfuncs.exp: Restart UDI connection
21501 after program completion.
21502 * gdb.t10/crossload.exp: Does not work for a29k-*-*, since BFD is
21503 compiled with a SELECT_VECS setting.
21504 * gdb.t15/funcargs.exp: Use argument to backtrace to prevent
21505 infinite recursion.
21507 * gdb.t20/classes.exp, gdb.t20/inherit.exp, gdb.t22/virtfuncs.exp:
21508 Added checks for COFF results, and made them expected failures for
21509 all targets. It would be better to make them expected failures
21510 for COFF targets only.
21512 Wed Mar 24 14:43:38 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
21514 * Makefile.in: add null dvi target, don't bother to recurse
21515 through test directories for info and install-info; rename
21516 $(datadir) to be dejagnu instead of deja-gnu
21520 * gdb.t31/gdbme.ch: Re-enable code that previously caused
21521 compiler to coredump.
21522 * gdb.t31/chillvars.exp: Re-enable tests that depend on that
21527 * gdb.t31/gdbme.ch: Comment out code that causes chill compiler
21529 * gdb.t31/chillvars.exp: Comment out tests that depend on that
21532 Sun Mar 21 17:56:47 1993 Rob Savoye (rob at darkstar.cygnus.com)
21534 * gdb.t03/ptype.exp: tests for return code from gdb_test.
21535 * gdb.t00/teststrategy.exp: Uses which proc rather than spawning
21536 which in a shell. Deletes xgdb when done.
21537 * config/unix-gdb.exp: Won't try to spawn $GDB unless it exists.
21538 Tests the return from the "set height" or "set width" commands.
21539 Added a few return codes where needed.
21543 * Makefile.in (SUBDIRS): Add gdb.t17.
21544 * configure.in (subdirs): Add gdb.t17.
21545 * gdb.t17/{Makefile.in, callfuncs.exp, gdbme.c}: New test
21546 files to test gdb's calling of functions in the inferior with
21547 the correct arguments and gdb's ability to retrieve any
21552 * config/unix-gdb.exp (gdb_exit): Remove close commands that
21553 may be called after gdb goes away. Previous versions of expect
21554 needed these to avoid file descriptor leaks, but they cause
21555 errors with the current revision of expect.
21556 * gdb.t00/gdbvars.exp: Use -re on expected output after
21557 setting sevenbit-strings.
21558 * gdb.t04/setvar.exp, gdb.t13/bitfields.exp: Make commands
21559 to set sevenbit-strings consistent across tests.
21560 gdb.t30/chexp.exp, gdb.t31/chillvars.exp: Make commands to
21561 set sevenbit-strings consistent across tests.
21565 * gdb.t21/demangle.exp (proc demangle): Adjust quotes in an
21566 expected output to match current "expect" expectations.
21570 * gdb.t00/default.exp: Change expected output for default "source"
21571 command, to match new gdb behavior which requires a filename to
21576 * gdb.t07/watchpoint.exp (test_simple_watchpoint): Set up
21577 expected fail for i486-*-* that misses the marker2 function.
21578 * gdb.t10/crossload.exp (bfddefault): Allow successful
21579 recognition of a format to pass even if no symbols are found.
21580 Explicitly catch failures where the format is not recognized
21581 or is ambiguous, and add the reason to the fail message.
21582 * gdb.t10/crossload.exp (bfdexplicit): Catch failure where
21583 the cause is and invalid target and add reason to failure message.
21584 * gdb.t10/crossload.exp: Fix bfd target names for elf32-m68k,
21585 elf32-i386, elf32-sparc, and elf32-i860.
21586 * gdb.t12/scope.exp (test_at_main, test_at_foo, test_at_bar):
21587 Set up expected failure for 'filename'::variable scope resolution,
21588 which is now apparently broken on all targets.
21589 * gdb.t20/classes.exp, gdb.t20/inherit.exp, gdb.t20/misc.exp,
21590 gdb.t21/cplusfuncs.exp, gdb.t22/virtfunc.exp,
21591 gdb.t23/templates.exp: Change failure for missing binfile into
21593 gdb.t21/demangle.exp: Change all cfront references to 'arm'
21598 * gdb.t00/default.exp: Add expected output for default "source"
21599 command, to match new gdb behavior.
21600 * gdb.t09/corefile.exp: Use GDBFLAGS when spawning GDB.
21604 * config/*-gdb.exp: returns an error, rather than exiting on
21609 * gdb.t03/gdbme.c: Add pointer to struct variable.
21610 * gdb.t03/ptype.exp: Test equivalence of '.' and '->' for
21611 referencing struct members.
21615 * configure.in (mips-idt-ecoff): New target.
21616 * config/mips-gdb.exp: New file for remote board using MIPS remote
21617 debugging protocol.
21619 * Redid configuration scheme. Removed gdb.t*/configure.in.
21620 Renamed gdb.t*/in-gdbme* to gdb.t*/gdbme*. Changed to use CC, CXX
21621 instead of CC_FOR_TARGET, CXX_FOR_TARGET. Added mostlyclean and
21622 distclean targets. Built executables via .o files. Adjusted
21623 tests to account for source files in $(srcdir) rather than
21625 * lib/gdb.exp (runto): Don't expect () after the function name,
21626 because it may have arguments.
21630 * gdb.t00/default.exp, gdb.t01/run.exp, gdb.t02/whatis.exp,
21631 gdb.t03/ptype.exp, gdb.t06/break.exp, gdb.t12/scope.exp: Added
21632 expected failures for mips-idt-* and mips-sgi-*.
21633 * gdb.t00/default.exp (attach): Kill process if requested.
21634 * gdb.t00/help.exp (help target core, help target): Accept a gdb
21635 that does not read core files.
21636 * gdb.t01/run.exp: Removed checks for exit status code.
21637 * gdb.t03/in-gdbme.c: Make explicit call to malloc to ensure that
21639 * gdb.t03/ptype.exp: Increase timeout when calling malloc.
21640 * gdb.t04/setvar.exp, gdb.t05/expr.exp: Use runto function where
21641 appropriate, rather than doing it by hand.
21642 * gdb.t07/watchpoint.exp: If mips-idt-*, reload file after first
21644 * gdb.t10/crossload.exp: Kill existing program if needed.
21645 * gdb.t15/funcargs.exp: Use delete_breakpoints function where
21646 appropriate, rather than doing it by hand. Always increase
21647 timeout for this test, not just for VxWorks.
21651 * gdb.t31/chillvars.exp (test_structs): New proc to test printing
21652 of Chill STRUCT types and STRUCT values.
21653 * gdb.t31/chillvars.exp (test_strings): Expect "CHAR" now, rather
21655 * gdb.t31/in-gdbme.ch (simple_struct, nested_struct, struct1,
21656 struct2): New struct definitions and initializations to test
21657 simple Chill STRUCT types.
21661 * gdb.t00/teststrategy.exp: Track reversion in gdb to not print
21662 the null byte at the end of strings.
21663 * gdb.t00/default.exp: Make show version insensitive to copyright
21665 * gdb.t16/in-gdbme.c (ctable1, ctable2): Make explicitly unsigned
21666 to avoid dependencies on target char signedness.
21667 * gdb.t16/printcmds.exp: Update expected results for explicitly
21669 * gdb.t16/printcmds.exp: Remove setup_xfails for i960 that should
21671 * gdb.t21/demangle.exp: Add many more patterns for template
21672 demangling, most of them being expected failures.
21673 * gdb.t21/demangle.exp (proc demangle): Quote the demangled
21674 string we are matching for, to match on the whole string.
21675 * gdb.t21/demangle.exp: Add many new test strings to demangle,
21676 and fix a whole bunch that had incorrect expected output but were
21677 passing anyway because of the bug in "proc demangle".
21678 * gdb.t31/chillvars.exp: Remove setup_xfail for printing string
21680 * gdb.t31/in-gdbme.ch: Uncomment string4, now compiles.
21684 * gdb/testsuite: made modifications to testcases, etc., to allow
21685 them to work properly given the reorganization of deja-gnu and the
21686 relocation of the testcases from deja-gnu to a "tool" subdirectory.
21690 * gdb/testsuite: Initial creation of gdb/testsuite.
21691 Migrated dejagnu testcases and support files for testing nm to
21692 gdb/testsuite from deja-gnu. These files were moved "as is"
21693 with no modifications. This migration is part of a major overhaul
21694 of dejagnu. The modifications to these testcases, etc., which
21695 will allow them to work with the new version of dejagnu will be
21696 made in a future update.
21698 For additional changes see gdb.mi/ChangeLog-1999-2003.
21700 ;; Local Variables:
21701 ;; mode: change-log
21704 ;; version-control: never
21707 Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
21708 2003, 2004, 2005 Free Software Foundation, Inc.
21709 Copying and distribution of this file, with or without modification,
21710 are permitted provided the copyright notice and this notice are preserved.