David Carlton
79c2c32df4
2003-09-25 David Carlton <carlton@kealia.com>
...
* c-exp.y: Include cp-support.h. Add qualified_type.
(yylex): Delete nested type hack; add comments.
* cp-namespace.c (cp_lookup_nested_type): New function.
* cp-support.h: Declare cp_lookup_nested_type.
* eval.c (evaluate_subexp_standard): Call value_aggregate_elt
instead of value_struct_elt_for_reference.
* valops.c: Include cp-support.h.
(value_aggregate_elt): New function.
(value_namespace_elt): Ditto.
(value_struct_elt_for_reference): Make static.
* value.h: Delete declaration of value_struct_elt_for_reference;
add declaration for value_aggregate_elt.
* Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
(valops.o): Ditto.
2003-09-25 David Carlton <carlton@kealia.com>
* gdb.cp/namespace.exp: Tweak comments. Add non-quoted versions
of some print tests, where appropriate. Add tests for C::D::cd,
E::ce, F::cXfX, G::XgX.
* gdb.cp/namespace.cc: Add XgX, cXfX, ce.
2003-09-25 16:39:39 +00:00
Richard Earnshaw
594e6d67cd
* lib/java.exp (java_init): Import target_alias before using it.
2003-09-25 16:25:56 +00:00
David Carlton
10f0d45173
2003-09-25 David Carlton <carlton@kealia.com>
...
* gdb.base/corefile.exp: Delete obsolete setup_xfail.
2003-09-25 15:40:20 +00:00
Elena Zannoni
274bcba01c
2003-09-23 Elena Zannoni <ezannoni@redhat.com>
...
* gdb.base/selftest.exp: Accomodate more instruction reordering
weirdness.
2003-09-23 19:19:48 +00:00
Michael Chastain
cdbf20f734
2003-09-17 Michael Chastain <mec@shout.net>
...
* gdb.cp/gdb1355.exp: New file.
* gdb.cp/gdb1355.c: New file.
2003-09-18 00:04:39 +00:00
David Carlton
bd45b7af67
Fix ChangeLog entry to read 'gdb.cp' instead of 'gdb.c++'.
2003-09-17 20:40:15 +00:00
Corinna Vinschen
71e06f8034
* gdb.asm/asm-source.exp: Add sh*-*-* as supported target.
...
* gdb.asm/sh.inc: New file.
2003-09-15 09:52:56 +00:00
David Carlton
5c4e30cabe
2003-09-11 David Carlton <carlton@kealia.com>
...
* gdbtypes.h: Add TYPE_CODE_NAMESPACE.
* gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
(recursive_dump_type): Ditto.
* printcmd.c (print_formatted): Ditto.
* typeprint.c (print_type_scalar): Ditto.
* c-typeprint.c (c_type_print_varspec_prefix): Ditto.
(c_type_print_varspec_suffix, c_type_print_base): Ditto.
* cp-support.h: Declare cp_check_possible_namespace_symbols,
maint_cplus_cmd_list.
* cp-support.c: Make maint_cplus_cmd_list extern.
* cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
command.h.
(lookup_symbol_file): Look in possible namespace blocks when
appropriate.
(initialize_namespace_symtab): New.
(get_possible_namespace_block, free_namespace_block)
(check_possible_namespace_symbols)
(check_possible_namespace_symbols_loop)
(check_one_possible_namespace_symbol)
(lookup_possible_namespace_symbol, maintenance_cplus_namespace)
(_initialize_cp_namespace): Ditto.
* block.h: Declare allocate_block.
* block.c (allocate_block): New.
* jv-lang.c (get_java_class_symtab): Allocate blocks via
allocate_block.
* symfile.h: Update declaration of add_psymbol_to_list.
* symfile.c (add_psymbol_to_list): Return the partial symbol in
question.
* dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
scan_partial_symbols_call.
(scan_partial_symbols): Add NAMESPACE argument; update calls to
helper functions.
(add_partial_symbol): If necessary, scan mangled names for names
of namespaces.
(add_partial_namespace): Add NAMESPACE argument; generate partial
symbols associated to namespaces.
(add_partial_enumeration): Add NAMESPACE argument.
(new_symbol): Allow namespace syms.
(read_namespace): Generate namespace syms.
* objfiles.h: Add opaque declaration of struct symtab.
(struct objfile): Add cp_namespace_symtab member.
* objfiles.c (allocate_objfile): Set
objfile->cp_namespace_symtab.
* Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
dictionary_h, command_h.
2003-09-11 David Carlton <carlton@kealia.com>
* gdb.c++/namespace.exp: Add tests for namespace types.
* gdb.c++/maint.exp (test_help): Test 'help maint cp namespace'.
(test_namespace): New.
2003-09-11 19:49:20 +00:00
Elena Zannoni
3fcf0ced03
2003-09-11 Elena Zannoni <ezannoni@redhat.com>
...
* gdb.stabs/weird.exp: Ditto.
2003-09-11 19:09:46 +00:00
Elena Zannoni
1c19974635
2003-09-11 Elena Zannoni <ezannoni@redhat.com>
...
* gdb.base/relocate.exp: Handle new gdb output at startup.
2003-09-11 18:59:02 +00:00
Michael Chastain
04ed252fc1
2003-09-08 Michael Chastain <mec@shout.net>
...
* gdb.base/gdb1250.c: Rename 'gamma' to 'my_gamma'.
2003-09-08 21:30:52 +00:00
Michael Chastain
d8a2d9e7ba
2003-09-07 Michael Chastain <mec@shout.net>
...
* gdb.cp/classes.exp: Accommodate both 'syntax error' and
'parse error'.
2003-09-08 02:00:11 +00:00
Mark Kettenis
161afb2472
* gdb.arch/i386-prologue.exp: Add checks for saved registers.
2003-09-07 16:38:00 +00:00
Michael Chastain
49f2741a0a
2003-08-30 Michael Chastain <mec@shout.net>
...
* gdb.base/selftest.exp: Remove support for m68k*-*-hpux.
* gdb.gdb/observer.exp: Ditto.
* gdb.gdb/xfullpath.exp: Ditto.
2003-08-30 04:58:21 +00:00
Mark Kettenis
8afa723e83
* gdb.base/interrupt.exp: XFAIL "call function when asleep" for
...
*-*-*bsd*.
2003-08-29 11:42:28 +00:00
Jeff Johnston
f31dfe3b88
2003-08-28 Jeff Johnston <jjohnstn@redhat.com>
...
* gdb.base/dump.exp: Skip for ia64.
2003-08-28 18:01:50 +00:00
Jason Merrill
ef043731f4
switch to changelog mode
2003-08-26 05:18:23 +00:00
Jeff Johnston
4630e4987c
2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
...
* gdb.asm/asm-source.exp: Add ia64 support.
* gdb.asm/ia64.inc: New file.
2003-08-25 23:43:40 +00:00
Michael Chastain
1105b7eff4
2003-08-22 Michael Chastain <mec@shout.net>
...
* gdb.cp: New directory.
* gdb.cp/*: Copy from gdb.c++/*.
* gdb.c++/*: Remove.
* Makefile.in: Change gdb.c++ to gdb.cp.
* configure.in: Ditto.
* configure: Regnerate.
2003-08-23 03:55:59 +00:00
Mark Kettenis
c945b932a4
* gdb.arch/i386-prologue.exp: Add testcase for PR backtrace/1338.
...
* gdb.arch/i386-prologue.c (gdb1338): Add function.
2003-08-17 23:18:31 +00:00
Daniel Jacobowitz
2b66634bab
* mi-var-display.exp (-var-list-children weird): Accept function
...
pointers with argument types.
* mi1-var-display.exp (-var-list-children weird): Likewise.
* mi2-var-display.exp (-var-list-children weird): Likewise.
2003-08-17 17:23:13 +00:00
Daniel Jacobowitz
a356f73bbf
* gdb.base/annota3.exp: Add missing newline.
2003-08-17 16:50:59 +00:00
Michael Chastain
483417b818
2003-08-06 Michael Chastain <mec@shout.net>
...
* gdb.java/jmisc1.exp: Add test for pr gdb/1322.
2003-08-14 19:11:10 +00:00
Michael Snyder
c99c59c39d
2003-08-12 Michael Snyder <msnyder@redhat.com>
...
* gdb.base/float.exp: Add test for SH.
2003-08-12 22:27:19 +00:00
Michael Snyder
3d67be836a
2003-07-22 Michael Snyder <msnyder@redhat.com>
...
* gdb.disasm/8300s.s: Fix syntax of bsr insn.
* gdb.disasm/h8300s.exp : Minor changes in disassembler output require
patterns to be more general, accepting old and new output.
Some output chars (such as '+') also must be quoted.
Some addresses are displayed numerically instead of
symbolically.
2003-08-11 23:20:05 +00:00
Mark Kettenis
55ed75018d
* gdb.arch/i386-prologue.c, gdb.arch/i386-prologue.exp: New files.
2003-08-10 11:55:58 +00:00
Elena Zannoni
1a371f2e64
2003-08-07 Elena Zannoni <ezannoni@redhat.com>
...
* gdb.base/completion.exp: Remove reduntant completion test
on filename.
2003-08-07 17:58:44 +00:00
Elena Zannoni
e0f353ceed
2003-08-07 Elena Zannoni <ezannoni@redhat.com>
...
* gdb.base/attach.exp, gdb.base/detach.exp, gdb.base/gcore.exp,
gdb.mi/mi-basics.exp, gdb.threads/gcore-thread.exp,
gdb.trace/save-trace.exp: Make sure that full pathnames are
escaped correctly.
2003-08-07 17:55:41 +00:00
Elena Zannoni
5710a1afa9
2003-08-07 Elena Zannoni <ezannoni@redhat.com>
...
* configure.in: Don't generate config.h from config.hin.
* configure: Regenerate.
* config.hin: Remove file.
* gdb.mi/pthreads.c: Remove include of config.h, and other ifdefs.
* gdb.threads/pthreads.c: Ditto.
2003-08-07 17:49:22 +00:00
Andrew Cagney
2fcf52f0db
Index: ChangeLog
...
2003-08-07 Andrew Cagney <cagney@redhat.com>
* interps.h (INTERP_MI2, INTERP_MI3): Define.
Index: doc/ChangeLog
2003-08-07 Andrew Cagney <cagney@redhat.com>
* gdb.texinfo (Mode Options): Mention that "mi2" was included in
GDB 6.0.
Index: mi/ChangeLog
2003-08-07 Andrew Cagney <cagney@redhat.com>
* mi-interp.c (_initialize_mi_interp): Register "mi2" and "mi3".
Make "mi" select "mi2".
Index: testsuite/gdb.mi/ChangeLog
2003-08-07 Andrew Cagney <cagney@redhat.com>
* mi2-basics.exp: Copy base MI .exp file, set MIFLAGS to -i=mi2.
* mi2-break.exp, mi2-cli.exp, mi2-console.exp: Ditto.
* mi2-disassemble.exp, mi2-eval.exp, mi2-file.exp: Ditto.
* mi2-hack-cli.exp, mi2-pthreads.exp, mi2-read-memory.exp: Ditto.
* mi2-regs.exp, mi2-return.exp, mi2-simplerun.exp: Ditto.
* mi2-stack.exp, mi2-stepi.exp, mi2-syn-frame.exp: Ditto.
* mi2-until.exp, mi2-var-block.exp, mi2-var-child.exp: Ditto.
* mi2-var-cmd.exp, mi2-var-display.exp, mi2-watch.exp: Ditto.
2003-08-07 17:47:42 +00:00
Daniel Jacobowitz
dcd81ce97c
From Kei Sakamoto <sakamoto.kei@renesas.com>:
...
* gdb.asm/asm-source.exp : Add -lgloss to link-flags.
* gdb.asm/m32r.inc : Remove an illegal nop after bl instruction.
Replace ld24 with seth/add3.
2003-08-07 04:04:57 +00:00
Andrew Cagney
6009d8848e
2003-08-02 Andrew Cagney <cagney@redhat.com>
...
* gdb.base/annota3.exp: New file.
* gdb.base/annota3.c: New file.
* gdb.c++/annota3.exp: New file.
* gdb.c++/annota3.cc: New file.
2003-08-03 01:57:13 +00:00
Michael Chastain
51514e061b
2003-07-29 Michael Chastain <mec@shout.net>
...
* gdb.threads/tls.c (spin): Check errno only if sem_wait
actually failed.
(do_pass): Likewise.
* gdb.threads/tls.exp: Always initialize no_of_threads.
2003-07-29 21:51:25 +00:00
Daniel Jacobowitz
4ee6625b53
* gdb.threads/print-threads.exp (test_all_threads): Loosen KFAIL
...
pattern.
* gdb.threads/tls-shared.exp: Don't use gdb_suppress_entire_file.
* gdb.threads/tls.exp: Recognize one case of the host library not
supporting TLS.
2003-07-28 00:57:29 +00:00
Andrew Cagney
225f2bf663
2003-07-27 Andrew Cagney <cagney@redhat.com>
...
* gdb.base/fileio.exp: Use SH when running commands using
remote_exec.
2003-07-27 21:24:09 +00:00
Daniel Jacobowitz
bcb27c9f96
From Kei Sakamoto <sakamoto.kei@renesas.com>:
...
* gdb.base/relocate.c (dummy): New padding array.
2003-07-24 18:45:43 +00:00
Michael Snyder
686d097cef
2003-07-23 Michael Snyder <msnyder@redhat.com>
...
* gdb.base/return2.exp: Don't test long-long return.
2003-07-23 18:53:34 +00:00
Michael Snyder
57ba3b854e
2003-07-23 Michael Snyder <msnyder@redhat.com>
...
* gdb.disasm/t01_mov.s: New file, h8300sx disassembly tests.
* gdb.disasm/t01_mov.exp: Ditto.
* gdb.disasm/t02_mova.s: Ditto.
* gdb.disasm/t02_mova.exp: Ditto.
* gdb.disasm/t03_add.s: Ditto.
* gdb.disasm/t03_add.exp: Ditto.
* gdb.disasm/t04_sub.s: Ditto.
* gdb.disasm/t04_sub.exp: Ditto.
* gdb.disasm/t05_cmp.s: Ditto.
* gdb.disasm/t05_cmp.exp: Ditto.
* gdb.disasm/t06_ari2.s: Ditto.
* gdb.disasm/t06_ari2.exp: Ditto.
* gdb.disasm/t07_ari3.s: Ditto.
* gdb.disasm/t07_ari3.exp: Ditto.
* gdb.disasm/t08_or.s: Ditto.
* gdb.disasm/t08_or.exp: Ditto.
* gdb.disasm/t09_xor.s: Ditto.
* gdb.disasm/t09_xor.exp: Ditto.
* gdb.disasm/t10_and.s: Ditto.
* gdb.disasm/t10_and.exp: Ditto.
* gdb.disasm/t11_logs.s: Ditto.
* gdb.disasm/t11_logs.exp: Ditto.
* gdb.disasm/t12_bit.s: Ditto.
* gdb.disasm/t12_bit.exp: Ditto.
* gdb.disasm/t13_otr.s: Ditto.
* gdb.disasm/t13_otr.exp: Ditto.
2003-07-23 18:46:14 +00:00
Elena Zannoni
e00759efb0
2003-07-22 Elena Zannoni <ezannoni@redhat.com>
...
* gdb.threads/tls.exp :Add kfail for 'info address' case.
2003-07-23 03:08:26 +00:00
Elena Zannoni
8bc2021fdc
2003-07-22 Elena Zannoni <ezannoni@redhat.com>
...
* gdb.threads/tls.c : New file.
* gdb.threads/tls.exp : New file.
* gdb.threads/tls-main.c : New file.
* gdb.threads/tls-shared.c : New file.
* gdb.threads/tls-shared.exp : New file.
2003-07-22 15:49:45 +00:00
Andreas Schwab
89320c4c5d
* gdb.asm/powerpc.inc (gdbasm_startup): Force alignment.
2003-07-22 12:16:37 +00:00
Andreas Schwab
180dea7cce
* gdb.base/selftest.exp (do_steps_and_nexts): Add more patterns
...
due to insn reordering.
2003-07-20 17:39:16 +00:00
Andrew Cagney
0714963c79
2003-07-15 Andrew Cagney <cagney@redhat.com>
...
* frame.c (get_prev_frame): Move disabled inside_entry_func to
before code inhibiting repeated unwind attempts. Add to
commentary on that test's problems.
* blockframe.c (inside_main_func): Look for "main" in the minimal
symbol table.
* d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
identical.
Index: testsuite/ChangeLog
2003-07-15 Andrew Cagney <cagney@redhat.com>
* gdb.asm/asm-source.exp: Do not allow "start" in the backtrace.
2003-07-15 17:23:32 +00:00
Michael Chastain
98a23b3f74
2003-07-15 Michael Chastain <mec@shout.net>
...
* gdb.base/gdb1250.exp: New file.
* gdb.base/gdb1250.c: New file.
2003-07-15 16:28:21 +00:00
Michal Ludvig
27e417a2c4
2003-07-09 Michal Ludvig <mludvig@suse.cz>
...
* gdb.c++/templates.exp (test_ptype_of_templates): Recognize
expansion of size_t to 'unsigned long', not only to 'unsigned'.
2003-07-11 06:44:34 +00:00
Elena Zannoni
d99968dcc1
2003-07-09 Elena Zannoni <ezannoni@redhat.com>
...
* gdb.base/annota1.exp: Make sure that we properly escape the
full path of the source file. Xfail more permissive patterns,
due to a compiler debug info problem.
2003-07-09 13:19:08 +00:00
Andreas Schwab
2705e97210
* gdb.asm/m68k.inc: New file.
...
* gdb.asm/asm-source.exp: Use it for m68k-*-*.
2003-07-07 14:48:50 +00:00
Andreas Schwab
83876b3be5
* gdb.objc/basicclass.exp ("Call an Objective-C method with no
...
arguments"): Also match negative number.
* gdb.base/float.exp ("info float"): Add test for m68k-*-*.
2003-07-06 22:27:34 +00:00
Daniel Jacobowitz
3a871b371b
* gdb.base/store.c (charest): New typedef.
...
(add_char): Rename to add_charest, update.
(wack_char): Rename to wack_charest, update types. Return l + r
to keep r live across the call.
(wack_short, wack_int, wack_long, wack_longest, wack_float)
(wack_double, wack_doublest): Return l + r to keep r live across
the call.
* gdb.base/store.exp: Accomodate store.c changes.
2003-07-03 13:55:22 +00:00
David Carlton
b2a7f303a2
2003-06-30 David Carlton <carlton@kealia.com>
...
Band-aid for PR c++/1245.
* Makefile.in (cp-support.o): Depend on complaints_h.
* cp-support.c: Include complaints.h. Add declaration for
find_last_component.
(cp_find_first_component): Separate code into
cp_find_first_component_aux.
(cp_find_first_component_aux): Call demangled_name_complaint.
(demangled_name_complaint): New.
2003-06-30 David Carlton <carlton@kealia.com>
* gdb.c++/maint.exp (test_invalid_name): New.
(test_first_component): Add tests for invalid names.
2003-06-30 16:21:16 +00:00