Vladimir Prus
dbc5282291
Introduce test setup helpers.
...
* lib/gdb.exp (build_executable, clean_restart)
(prepare_for_testing): New.
* gdb.base/break.exp: Use prepare_for_testing, and clean_restart.
* gdb.base/return.exp: Likewise.
* gdb.base/ending-run.exp: Likewise.
2008-04-07 16:32:44 +00:00
Pedro Alves
effa26a936
* alphanbsd-tdep.c: Include "target.h".
...
* mn10300-tdep.c: Include "target.h".
* Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
2008-04-07 11:45:58 +00:00
gdbadmin
3bd77c3906
*** empty log message ***
2008-04-07 00:00:33 +00:00
Nick Roberts
473591da7a
*** empty log message ***
2008-04-06 22:44:47 +00:00
Nick Roberts
fd0e64da87
New test for asynchronous Machine Interface (MI) responses.
2008-04-06 22:41:19 +00:00
Vladimir Prus
2b2d9e11a0
Fix breakpoint condition that use member variables.
...
* valops.c (check_field): Remove.
(check_field_in): Rename to check_field.
(value_of_this): Use la_name_of_this.
* value.h (check_field): Adjust prototype.
* language.h (la_value_of_this): Rename to la_name_of_this.
* language.c (unknown_language_defn): Specify "this" for
name_of_this.
(auto_language_defn): Likewise.
(local_language_defn): Likewise.
* ada-lang.c (ada_language_defn): Adjust comment.
* c-lang.c (c_language_defn): Adjust comment.
(cplus_language_defn): Specify "this" for name_of_this.
(asm_language_defn): Adjust comment.
(minimal_language_defn): Adjust comment.
* f-lang.c (f_language_defn): Specify NULL for name_of_this.
* jv-lang.c (java_language_defn): Specify "this" for name_of_this.
* m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
* objc-lang.c (objc_language_defn): Specify "self" for
name_of_this.
* p-lang.c (pascal_language_defn): Specify "this" for
name_of_this.
* scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
* symtab.c (lookup_symbol_aux): Lookup "this" in the
proper scope, and check for field in type of "this", without
trying to create a value.
2008-04-06 08:56:37 +00:00
gdbadmin
29bc1f05ad
*** empty log message ***
2008-04-06 00:00:03 +00:00
Vladimir Prus
bb3784283e
* lib/mi-support.exp (mi_expect_stop): New.
...
(mi_run_cmd): Change the
token. Use mi_send_resuming_command, use
mi_expect_stop.
(mi_execute_to_helper): Rename to mi_execute_to.
(mi_send_resuming_command): Add more error patterns.
(mi_wait_for_stop): Renamed to...
(mi_get_stop_line): ...this.
(mi_run_inline_test): Adjust.
* gdb.mi/mi-cli.exp: Use mi_execute_to/mi_expect_stop.
* gdb.mi/mi-console.exp: Likewise.
* gdb.mi/mi-pending.exp: Likewise.
* gdb.mi/mi-simplerun.exp: Likewise.
* gdb.mi/mi-stack.exp: Likewise.
* gdb.mi/mi-stepi.exp: Likewise.
* gdb.mi/mi-syn-frame.exp: Add comment.
* gdb.mi/mi-until.exp: Likewise.
* gdb.mi/mi-var-display.exp: Likewise.
* gdb.mi/mi-watch.exp: Likewise.
* gdb.mi/mi2-cli.exp: Likewise.
* gdb.mi/mi2-console.exp: Likewise.
* gdb.mi/mi2-simplerun.exp: Likewise.
* gdb.mi/mi2-stack.exp: Likewise.
* gdb.mi/mi2-stepi.exp: Likewise.
* gdb.mi/mi2-until.exp: Likewise.
* gdb.mi/mi2-var-display.exp: Likewise.
* gdb.mi/mi2-watch.exp: Likewise.
2008-04-05 17:12:46 +00:00
gdbadmin
051568b4d0
*** empty log message ***
2008-04-05 00:00:02 +00:00
Ulrich Weigand
62172bb981
* gdb.base/watch_thread_num.exp: Use gdb_compile_pthreads.
...
* gdb.cp/mb-templates.exp: Skip test on spu*-*-* targets.
2008-04-04 22:59:28 +00:00
Pedro Alves
a13e061a1b
gdb/
...
2008-04-04 Pedro Alves <pedro@codesourcery.com>
* mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
(mi_error_message): Delete declaration.
* mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
returning MI_CMD_ERROR.
* mi/mi-main.c (mi_error_message): Delete.
(mi_cmd_exec_interrupt):
(mi_cmd_thread_select, mi_cmd_thread_list_ids)
(mi_cmd_thread_info): Call error instead of returning
MI_CMD_ERROR.
(mi_cmd_data_list_register_values): Call error instead of
returning MI_CMD_ERROR. Adapt to new get_register interface.
(get_register): Change return typo to void. Call error instead of
returning MI_CMD_ERROR.
(mi_cmd_data_write_register_values): Call error instead of
returning MI_CMD_ERROR.
(mi_cmd_list_features): Return MI_CMD_DONE.
(captured_mi_execute_command): Remove MI_CMD_ERROR handling.
(mi_execute_command): Always print exceptions with -error.
gdb/testsuite/
2008-04-04 Pedro Alves <pedro@codesourcery.com>
* gdb.mi/mi-disassemble.exp, gdb.mi/mi-stack.exp,
gdb.mi/mi-syn-frame.exp, gdb.mi/mi-var-block.exp,
gdb.mi/mi-var-cmd.exp, gdb.mi/mi-var-display.exp,
gdb.mi/mi2-disassemble.exp, gdb.mi/mi2-stack.exp,
gdb.mi/mi2-syn-frame.exp, gdb.mi/mi2-var-block.exp,
gdb.mi/mi2-var-cmd.exp, gdb.mi/mi2-var-display.exp: Update to not
expect an mi error duplicated in stderr.
2008-04-04 21:59:25 +00:00
Ulrich Weigand
4536995d8b
* server.c (handle_query): Never return "unsupported" for
...
qXfer:features:read queries.
2008-04-04 19:19:11 +00:00
Joel Brobecker
aad4b0482f
* NEWS: Mention new commands set/show multiple-symbols.
2008-04-04 15:51:15 +00:00
gdbadmin
f0d6a43c52
*** empty log message ***
2008-04-04 00:00:03 +00:00
Joel Brobecker
6ba66d6a97
* gdb.texinfo (Breakpoint Menus): Delete. Contents moved inside
...
new node "Ambiguous Expressions". Replace references to this
node by references to "Ambiguous Expressions" throughout.
(Ambiguous Expressions): New node.
2008-04-03 21:51:12 +00:00
Joel Brobecker
eae06beb6d
* gdb.cp/ovldbreak.cc: Add missing bodies for methods foo::foofunc.
...
* gdb.cp/ovldbreak.exp: Set multiple-symbols to "ask".
Add a couple of tests that verify the behavior when the new setting
is set to "cancel" and "all".
* gdb.cp/method2.exp, gdb.cp/templates.exp: Set multiple-symbols to
"ask" before we start the testing.
2008-04-03 21:42:33 +00:00
Joel Brobecker
717d2f5a05
* symtab.c (multiple_symbols_ask, multiple_symbols_all)
...
(multiple_symbols_cancel): New constants.
(multiple_symbols_modes, multiple_symbols_mode): New static globals.
(multiple_symbols_select_mode): New function.
(_initialize_symtab): Add new set/show multiple-symbols commands.
* symtab.h (multiple_symbols_ask, multiple_symbols_all)
(multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
* ada-lang.c (user_select_syms): Add handling of new multiple-symbols
setting.
* linespec.c (decode_line_2): Likewise.
2008-04-03 21:39:16 +00:00
Doug Evans
f73634e546
* symtab.h (enum free_code): Delete free_contents, unused.
...
* symmisc.c (free_symtab_block): Delete.
(free_symtab, case free_code): Delete.
2008-04-03 18:19:16 +00:00
gdbadmin
b1dba75dfe
*** empty log message ***
2008-04-03 00:00:03 +00:00
gdbadmin
5caffa0e9b
*** empty log message ***
2008-04-02 00:00:03 +00:00
Aleksandar Ristovski
79c6ced6ea
* gdb.cp/casts.cc: Add class reference variables.
...
* gdb.cp/casts.exp: New test cases for up/down casting references.
2008-04-01 18:05:13 +00:00
Aleksandar Ristovski
f0050c2089
* gdb.cp/casts.cc: Add class reference variables.
...
* gdb.cp/casts.exp: New test cases for up/down casting references.
2008-04-01 16:16:43 +00:00
Aleksandar Ristovski
6af87b0348
* valops.c (value_cast_structs): New function. Cast related
...
STRUCT types up/down and return cast value. The body of this
function comes mostly from value_cast_pointers.
(value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
to value_cast_structs. Now value_cast_pointers needs only create
appropriate reference after using value_cast_structs for actual
casting.
(value_cast): Handle references.
2008-04-01 16:12:49 +00:00
Marc Khouzam
6c2d1a6bc9
2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
...
* gdb.mi/mi-var-display.exp: Stop at end of do_special_tests
instead of beginning to make an extra test pass.
* gdb.mi/mi2-var-display.exp: Likewise.
2008-04-01 15:18:30 +00:00
Marc Khouzam
61ad90e1f5
2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
...
* MAINTAINERS: Added myself to section Write After Approval.
2008-04-01 15:15:07 +00:00
gdbadmin
2e0b9bc5fd
*** empty log message ***
2008-04-01 00:00:33 +00:00
Maciej W. Rozycki
55b411d998
* gdb.base/break.exp: Mark failures as such. Fix formatting.
2008-03-31 10:46:17 +00:00
Markus Deuling
c6140da2ff
2008-03-31 Markus Deuling <deuling@de.ibm.com>
...
Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* gdb.arch/spu-info.exp (info spu mailbox): Check for correct initial
value. Add xfail for older kernels.
2008-03-31 08:34:42 +00:00
Daniel Jacobowitz
b7d038ae9f
* ia64-tdep.c (examine_prologue): Correct array access.
2008-03-31 03:38:48 +00:00
gdbadmin
11a0b582b3
*** empty log message ***
2008-03-31 00:00:33 +00:00
gdbadmin
8c56b5dbda
*** empty log message ***
2008-03-30 00:00:03 +00:00
gdbadmin
7cc70d1017
*** empty log message ***
2008-03-29 00:00:34 +00:00
Aleksandar Ristovski
c836824f38
* cp-support.c (first_component_command): Return if no arguments.
2008-03-28 19:52:23 +00:00
Carlos O'Donell
df3ac60635
gdb/
...
2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
* ser-mingw.c (ser_windows_open): Open requested name.
2008-03-28 17:30:45 +00:00
Aleksandar Ristovski
ca9334856c
2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
...
* MAINTAINERS: Added myself.
2008-03-28 16:43:14 +00:00
Pedro Alves
5f667f2da0
* target.c (find_default_run_target): Allow a NULL `do_mesg'
...
parameter. If it is NULL, don't call error.
(find_default_can_async_p, find_default_is_async_p): Pass NULL as
`do_mesg' parameter to find_default_run_target. If no target was
found, return 0.
2008-03-28 16:37:08 +00:00
Aleksandar Ristovski
79732189ea
2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
...
Bring mi-support in line with gdb.exp.
* lib/mi-support.exp (default_mi_gdb_start): Rename from mi_gdb_start.
(mi_gdb_start): New function.
2008-03-28 16:32:11 +00:00
Daniel Jacobowitz
e741f4d4e4
* mips-linux-tdep.c: Update N32/N64 signal frame comments.
...
(N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
(N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
Delete.
(mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
2008-03-28 14:53:53 +00:00
Maciej W. Rozycki
33c3676e65
* gdb.mi/mi-var-cmd.exp: Fix a typo.
2008-03-28 14:01:36 +00:00
gdbadmin
82afd1eff5
*** empty log message ***
2008-03-28 00:00:03 +00:00
gdbadmin
f66d820539
GDB 6.8 released.
2008-03-27 19:37:04 +00:00
Ulrich Weigand
221c031fac
ChangeLog:
...
* features/Makefile (%.dat): Set xmltarget to the base filename
of the XML source, without subdirectory.
* regformats/rs6000/powerpc-32.dat: Regenerate.
* regformats/rs6000/powerpc-64.dat: Regenerate.
* regformats/rs6000/powerpc-e500.dat: Regenerate.
gdbserver/ChangeLog:
* server.c (get_features_xml): Fix inverted condition.
(handle_query): Always support qXfer:feature:read.
2008-03-27 13:11:52 +00:00
Markus Deuling
40c58d9579
* xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
...
objfile arch.
2008-03-27 12:28:48 +00:00
Nick Roberts
42972f502e
(enum captured_mi_execute_command_actions):
...
Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
2008-03-27 03:45:22 +00:00
Nick Roberts
bb1ec7d204
*** empty log message ***
2008-03-27 03:45:01 +00:00
gdbadmin
fd5511cf80
*** empty log message ***
2008-03-27 00:00:32 +00:00
Daniel Jacobowitz
1e26b4f86a
* gdb.texinfo (MIPS Features, PowerPC Features): Add @node.
2008-03-26 18:37:47 +00:00
Ulrich Weigand
5e2b427df3
* objfiles.h (struct objfile): New GDBARCH member.
...
(get_objfile_arch): Add prototype.
* objfiles.c: Include "arch-utils.h".
(allocate_objfile): Look up gdbarch associated with bfd.
(get_objfile_arch): New function.
* Makefile (objfiles.o): Update dependencies.
* dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
by objfile arch.
* dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
by frame arch.
(locexpr_describe_location): Replace current_gdbarch by
objfile arch.
* dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
(dwarf2_add_field): Likewise.
(read_tag_pointer_type): Likewise.
(read_base_type): Likewise.
(new_symbol): Likewise.
* coffread.c (decode_type): Add OBJFILE argument. Update callers.
(decode_base_type, decode_function_type): Likewise.
(coff_read_struct_type, coff_read_enum_type): Likewise.
(coff_symtab_read): Replace current_gdbarch by objfile arch.
(decode_base_type): Likewise.
(coff_read_enum_type): Likewise.
(coff_read_struct_type): Replace current_objfile by OBJFILE argument.
(coff_read_enum_type): Likewise.
* dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
(end_psymtab): Likewise.
(process_one_symbol): Likewise.
* mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
(parse_procedure): Likewise.
(parse_partial_symbols): Likewise.
* somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
* stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
built-in types.
(read_range_type): Replace current_gdbarch by objfile arch. Replace
static range_index_type by built-in type.
(read_one_struct_field): Replace current_gdbarch by objfile arch.
(read_enum_type): Likewise.
* xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
objfile arch.
2008-03-26 14:53:28 +00:00
Vladimir Prus
5a413362ba
* varobj.h (varobj_floating_p): Declare.
...
* varobj.c (varobj_floating_p): New.
* mi/mi-cmd-var.c (mi_cmd_var_update): When passed
'@' as the name, update all floating varobjs.
2008-03-26 14:51:28 +00:00
Vladimir Prus
a5defcdc21
* varobj.c (struct varobj_root): Rename use_selected_frame to
...
floating, and clarify the meaning.
(varobj_create, varobj_update, new_root_variable): Adjust.
(value_of_root): Don't use type_changed as in variable,
adjust comment.
(c_value_of_root): Adjust.
2008-03-26 14:11:18 +00:00