aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2010-03-182010-03-17 Stan Shebs <stan@codesourcery.com>Stan Shebs2-0/+11
* ax-gdb.c (require_rvalue): Disallow non-scalars.
2010-03-182010-03-17 Stan Shebs <stan@codesourcery.com>Stan Shebs4-2/+42
* infcall.c: Include tracepoint.h. (call_function_by_hand): Disallow calls in tfind mode. * infcmd.c: Include tracepoint.h. (ensure_not_tfind_mode): New function. (continue_1): Call it. (step_1) Ditto. (jump_command): Ditto. (signal_command): Ditto. (advance_command): Ditto. (until_command): Ditto. (finish_command): Ditto. * tracepoint.h (disconnect_or_stop_tracing): Declare.
2010-03-18*** empty log message ***gdbadmin1-1/+1
2010-03-172010-03-17 Stan Shebs <stan@codesourcery.com>Stan Shebs5-66/+210
* ax-gdb.h (struct axs_value): New field optimized_out. (gen_trace_for_var): Add gdbarch argument. * ax-gdb.c (gen_trace_static_fields): New function. (gen_traced_pop): Call it, add gdbarch argument. (gen_trace_for_expr): Update call to it. (gen_trace_for_var): Ditto, and report optimized-out variables. (gen_struct_ref_recursive): Check for optimized-out value. (gen_struct_elt_for_reference): Ditto. (gen_static_field): Pass gdbarch instead of expression, assume optimization if field not found. (gen_var_ref): Set the optimized_out flag. (gen_expr): Error on optimized-out variable. * tracepoint.c (collect_symbol): Handle struct-valued vars as expressions, skip optimized-out variables with computed locations. * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of erroring out if location expression missing. (loclist_tracepoint_var_ref): Don't error out here.
2010-03-17 * dwarf2read.c (dwarf2_get_section_info): Handle case where noTom Tromey2-0/+15
DWARF data is available.
2010-03-17 * symfile.c (generic_load): Reset breakpoints after loading.Daniel Jacobowitz2-0/+14
2010-03-17 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.Tom Tromey2-4/+9
2010-03-17gdb/Jan Kratochvil2-5/+12
* spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the create_breakpoint call, adjust the parameters.
2010-03-17*** empty log message ***gdbadmin1-1/+1
2010-03-16gdb/Jan Kratochvil3-1/+15
* dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED. * valarith.c (value_subscripted_rvalue): Suppress error if TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
2010-03-16Avoid switch to invalid ptid during Ada task switch.Joel Brobecker2-0/+18
This is to prevent an internal error during an Ada task switch. A task switch is simply a thread switch under the hood. What we do is collect the info from the Ada Task Control Block, deduce the associated thread ptid, and then switch to that thread. If the thread ptid computation routine has not been implemented for the target, of if there is a bug, then we end up computing a bogus ptid which GDB does not know about, which eventually leads to an assertion failure: (gdb) task 1 [New Thread 5715] /[...]/gdb/thread.c:595: internal-error: is_thread_state: Assertion `tp' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) When this happens, it's just nicer for the user to print an error message, and cancel the task switch. After this patch is applied, this is what we get: (gdb) task 1 [New Thread 10250] Unable to compute thread ID for task 1. Cannot switch to this task. gdb/ChangeLog: * ada-tasks.c (task_command_1): Check that the task ptid is valid before doing the associated thread switch.
2010-03-16 gdb/gdbserver/Pedro Alves3-0/+52
* server.h (internal_error): Declare. (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define. * utils.c (internal_error): New function.
2010-03-162010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>Hui Zhu2-2/+6
* linux-record.c (record_linux_msghdr): Remove unintended semicolons.
2010-03-16 * MAINTAINERS: Update my email address.Daniel Jacobowitz2-5/+9
2010-03-16 Simplify MI breakpoint setting.Vladimir Prus4-139/+115
* breakpoint.c (break_command_really): Make nonstatic and rename to... (create_breakpoint): ...this. Rename prior function by this name to... (create_breakpoint_sal): ...this. (create_breakpoints): Rename to... (create_breakpoints_sal): ...this. (set_breakpoint): Remove. * breakpoint.h: Adjust to above changes. * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
2010-03-16Fix a commit snafuStan Shebs1-1/+1
2010-03-16*** empty log message ***gdbadmin1-1/+1
2010-03-152010-03-15 Stan Shebs <stan@codesourcery.com>Stan Shebs2-53/+269
* ax-gdb.c: Include cp-support.h. (find_field): Remove. (gen_primitive_field): New function. (gen_struct_ref_recursive): New function. (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead of find_field. (gen_static_field): New function. (gen_struct_elt_for_reference): New. (gen_namespace_elt): New. (gen_maybe_namespace_elt): New. (gen_aggregate_elt_ref): New. (gen_expr): Add OP_SCOPE, display opcode name in error message.
2010-03-15 * dwarf2read.c (die_needs_namespace): Also return 0 forTom Tromey2-1/+7
DW_TAG_subprogram.
2010-03-15Requalify Ralf Corsepius' change as a "tiny change".Joel Brobecker1-1/+1
Ralf's copyright assignment does not cover GDB for the moment. He only contributed one other change, in 2005, so this should be fine.
2010-03-15 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>Sami Wagiaalla11-44/+156
PR c++/7936: * cp-support.h: Added char *declaration element to using_direct data struct. (cp_add_using): Added char *declaration argument. (cp_add_using_directive): Ditto. (cp_lookup_symbol_imports): made extern. * cp-namespace.c: Updated with the above changes. * dwarf2read.c (read_import_statement): Ditto. (read_namespace): Ditto. (read_import_statement): Support import declarations. * cp-namespace.c (cp_lookup_symbol_imports): Check for imported declarations. Added support for 'declaration_only' search. (cp_lookup_symbol_namespace): Attempt to search for the name as is before consideration of imports. * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only' search at every block level search. Now takes language argument. (lookup_symbol_aux): Updated. 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com> * gdb.cp/shadow.exp: Removed kfail; test has been fix. * gdb.cp/nsusing.exp: Ditto.
2010-03-15gdbTom Tromey5-0/+31
* c-exp.y (name_not_typename): Add 'operator' clause. gdb/testsuite * gdb.cp/userdef.exp: Add tests for explicit calls to operator==. * gdb.cp/userdef.cc (operator==): New function. (main): New locals mem1, mem2.
2010-03-15Fix date in latest entry.Joel Brobecker1-1/+1
2010-03-15Fail gdb configure if target is not supported.Joel Brobecker3-0/+12
* configure.ac: Exit if ${gdb_target_obs}" is not set. * configure: Regenerate.
2010-03-15* configure.srv: Fix typo setting srv_regobj.Andreas Schwab2-2/+6
2010-03-15gdb/Jan Kratochvil2-8/+16
* symfile.c (addr_info_make_relative): Ignore also missing ".dynbss" and ".sdynbss". Update the comment.
2010-03-15 * MAINTAINERS: Update my email address.Jie Zhang2-1/+5
2010-03-15 * lib/mi-support.exp (mi_gdb_target_load): Delete unused timeout var.Jie Zhang2-11/+21
Declare and use new loadtimeout variable.
2010-03-15 * gdb.base/printcmds.exp: Use gdb_file_cmd instead of gdb_load.Daniel Jacobowitz2-1/+7
Use gdb_load later.
2010-03-15 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.Daniel Jacobowitz2-1/+6
2010-03-15 * linux-low.c (fetch_register): Avoid passing a non string literalPedro Alves2-19/+8
format to `error'. (usr_store_inferior_registers): Ditto.
2010-03-15*** empty log message ***gdbadmin1-1/+1
2010-03-14 * charset.c [USE_WIN32API]: Include <windows.h>.Daniel Jacobowitz2-1/+9
(_initialize_charset): Correct type of w32_host_default_charset.
2010-03-14 * linux-low.c (linux_write_memory): Bail out early if peekingPedro Alves2-4/+14
memory failed.
2010-03-14 * linux-low.h (struct lwp_info): New fieldsPedro Alves3-9/+76
`stopped_by_watchpoint' and `stopped_data_address'. * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers here, and cache them in the lwp object. (wait_for_sigstop): Check stopped_by_watchpoint lwp field directly. (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint field. (linux_stopped_by_watchpoint): Rewrite. (linux_stopped_data_address): Rewrite.
2010-03-14 * gdb.base/solib-disc.c (main): Make format of fprintf a stringPedro Alves2-2/+7
literal. Add missing endlines to prints to stderr.
2010-03-14 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.Pedro Alves2-2/+5
2010-03-14*** empty log message ***gdbadmin1-1/+1
2010-03-13gdbTom Tromey5-7/+52
PR c++/9708: * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable in a lexical block does not need a namespace. (new_symbol) <DW_TAG_variable>: Put extern variables on list_in_scope in all cases. gdb/testsuite PR c++/9708: * gdb.cp/m-static.exp: Add regression test. * gdb.cp/m-static.cc (method): New method. (main): Call it.
2010-03-13*** empty log message ***gdbadmin1-1/+1
2010-03-122010-03-12 Stan Shebs <stan@codesourcery.com>Stan Shebs2-0/+15
* ax-gdb.c (gen_expr): Add shift expressions. (gen_expr_binop_rest): Ditto.
2010-03-122010-03-12 Sami Wagiaalla <swagiaal@redhat.com>Sami Wagiaalla5-0/+17
* buildsym.c (finish_block): Reset using_directives pointer after block initialization. 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com> * gdb.cp/gdb2384-base.h: Created 'namespace B'. * gdb.cp/gdb2384-base.cc: Use 'namespace B'.
2010-03-12 gdb/testsuite/Pedro Alves2-2/+16
* lib/gdb.exp (gdb_test_multiple): Handle -timeout.
2010-03-12 gdb/testsuite/Pedro Alves15-30/+90
* lib/gdb.exp (skip_stl_tests): New. (gdb_compile): Symbian needs -ldl. (shlib_target_file): New. (shlib_symbol_file): New. (gdb_load_shlibs): Use shlib_target_file. * lib/mi-support.exp (mi_load_shlibs): Use shlib_target_file. * gdb.cp/exception.exp: Use skip_stl_tests. * gdb.cp/bs15503.exp: Use skip_stl_tests. Use untested. * gdb.cp/try_catch.exp: Use skip_stl_tests. * gdb.cp/mb-templates.exp: Ditto. * gdb.base/commands.exp: Relax regexes. * gdb.base/watchpoint-solib.exp: Don't skip on symbian. Use shlib_target_file and shlib_symbol_file. * gdb.base/maint.exp: Allow lowercase t. Allow .rodata in sections. * gdb.base/ending-run.exp: Accept E32Main for symbian. * gdb.base/solib-disc.exp: Use shlib_target_file and shlib_symbol_file. * gdb.base/unload.exp: Don't skip on symbian. Use shlib_target_file and shlib_symbol_file. * gdb.base/list.exp: Check use_gdb_stub instead of is_remote.
2010-03-122010-03-12 Stan Shebs <stan@codesourcery.com>Stan Shebs2-4/+78
Nathan Sidwell <nathan@codesourcery.com> * gdb.texinfo (Tracepoint Actions): Clarify that while-stepping is doing instruction stepping. (Tracepoint Restrictions): New node.
2010-03-12Restore sp for x86.H.J. Lu3-2/+7
2010-03-12 H.J. Lu <hongjiu.lu@intel.com> * amd64-tdep.c (amd64_word_names): Replace "sp" with "". * i386-tdep.c (i386_word_names): Likewise.
2010-03-12 * gdb.trace/backtrace.exp: Adjust for x86 and x86_64.Pedro Alves5-11/+58
* gdb.trace/report.exp: Adjust for x86 and x86_64. Issue a tfind end before looking for a tracepoint frame. * gdb.trace/tfind.exp: Adjust tstatus output. Adjust disassembly output. * gdb.trace/while-dyn.exp: Adjust for x86 and x86_64.
2010-03-12 * target.c (memory_xfer_partial): Don't use the stack cache ifPedro Alves3-0/+13
inspecting trace frames. * tracepoint.c (finish_tfind_command): Invalidate the target dcache.
2010-03-12*** empty log message ***gdbadmin1-1/+1
2010-03-11gdb/Jan Kratochvil5-41/+221
* solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered for the PIC displacement, print also the displacement value. (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE. gdb/testsuite/ * gdb.base/break-interp.exp: Create new displacement parameter value for the test_ld calls. (reach): New parameter displacement, verify its content. New push of pf_prefix "reach-$func:". Import global expect_out. (test_core): New parameter displacement, verify its content. New push of pf_prefix "core:". New command "set verbose on". Import global expect_out. (test_attach): New parameter displacement, verify its content. New push of pf_prefix "attach:". New command "set verbose on". Import global expect_out. (test_ld): New parameter displacement, pass it to the reach, test_core and test_attach calls and verify its content in the "ld.so exit" test. * gdb.base/prelink.exp: Remove gdb_exit and final return. (prelink): Update expected text, use gdb_test.