aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2010-04-01 * linux-low.c (linux_wait_1): Avoid setting need_step_over isPedro Alves6-95/+362
there's a GDB breakpoint at stop_pc. Always report a trap to GDB if we could tell there's a GDB breakpoint at stop_pc. (need_step_over_p): Don't do a step over if we find a GDB breakpoint at the resume PC. * mem-break.c (struct raw_breakpoint): New. (enum bkpt_type): New type `gdb_breakpoint'. (struct breakpoint): Delete the `PC', `old_data' and `inserted' fields. New field `raw'. (find_raw_breakpoint_at): New. (set_raw_breakpoint_at): Handle refcounting. Create a raw breakpoint instead. (set_breakpoint_at): Adjust. (delete_raw_breakpoint): New. (release_breakpoint): New. (delete_breakpoint): Rename to... (delete_breakpoint_1): ... this. Add proc parameter. Use release_breakpoint. Return ENOENT. (delete_breakpoint): Reimplement. (find_breakpoint_at): Delete. (find_gdb_breakpoint_at): New. (delete_breakpoint_at): Delete. (set_gdb_breakpoint_at): New. (delete_gdb_breakpoint_at): New. (gdb_breakpoint_here): New. (set_reinsert_breakpoint): Use release_breakpoint. (uninsert_breakpoint): Rename to ... (uninsert_raw_breakpoint): ... this. (uninsert_breakpoints_at): Adjust to handle raw breakpoints. (reinsert_raw_breakpoint): Change parameter type to raw_breakpoint. (reinsert_breakpoints_at): Adjust to handle raw breakpoints instead. (check_breakpoints): Adjust. Use release_breakpoint. (breakpoint_here): Rewrite using find_raw_breakpoint_at. (breakpoint_inserted_here): Ditto. (check_mem_read): Adjust to iterate over raw breakpoints instead. Don't trust the breakpoint's shadow if it is not inserted. (check_mem_write): Adjust to iterate over raw breakpoints instead. (delete_all_breakpoints): Adjust. (free_all_breakpoints): Mark all breakpoints as uninserted, and use delete_breakpoint_1. * mem-break.h (breakpoints_supported): Delete declaration. (set_gdb_breakpoint_at): Declare. (gdb_breakpoint_here): Declare. (delete_breakpoint_at): Delete. (delete_gdb_breakpoint_at): Declare. * server.h (struct raw_breakpoint): Forward declare. (struct process_info): New field `raw_breakpoints'. * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0 breakpoints.
2010-04-01 gdb/Pedro Alves8-34/+90
* breakpoint.c (multi_start, multi_end, last_was_multi): Delete. (prev_breakpoint_count): New. (set_breakpoint_count): Adjust. (rbreak_start_breakpoint_count): New. (start_rbreak_breakpoints): Adjust. (end_rbreak_breakpoints): Adjust. (struct commands_info) <arg>: New field. (do_map_commands_command): Tweak output to include breakpoint spec range. (commands_command_1): Adjust. Avoid setting an xfree cleanup if ARG was empty on entry. Set INFO's arg. (create_breakpoint): Adjust. * NEWS: Clarify `commands' changes. gdb/doc/ * gdb.texinfo (Break Commands): Clarify `commands' changes, and add cross reference. gdb/testsuite/ * gdb.base/commands.exp: Adjust. * gdb.cp/extern-c.exp: Adjust.
2010-04-01 gdb/Pedro Alves6-69/+195
* tracepoint.c: Include stack.h. (struct add_local_symbols_data): New. (do_collect_symbol): New. (add_local_symbols): Rewrite using iterate_over_block_arg_vars and iterate_over_block_local_vars. * stack.c (print_block_frame_locals): Rewrite as ... (iterate_over_block_locals): ... this. Take a callback function pointer and generic data pointer, and call that instead of print_variable_and_value. (struct print_variable_and_value_data): New. (do_print_variable_and_value): New. (iterate_over_block_local_vars): New, abstracted out from print_frame_local_vars. (print_frame_local_vars): Rewrite using iterate_over_block_local_vars. (iterate_over_block_arg_vars): New, abstracted out from print_frame_arg_vars. (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars. * stack.h (iterate_over_block_arg_local_vars_cb): New typedef. (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare. gdb/testsuite/ * gdb.trace/collection.c (local_test_func): Define a local struct, and instanciate it.
2010-04-01 * gdb.trace/collection.exp (gdb_collect_args_test)Pedro Alves2-0/+36
(gdb_collect_argarray_test): XFAIL the tests that assume the argarray argument's elements are collected.
2010-04-01*** empty log message ***gdbadmin1-1/+1
2010-03-31 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBHRichard Earnshaw2-6/+23
instructions. Use the PC+4 if the base of the TBB or TBH is the PC register.
2010-03-31gdb/Jan Kratochvil5-2/+138
Fix crash on reading wrong function declaration DWARF. * dwarf2read.c (read_subroutine_type): New variable void_type. Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization more close to their use. gdb/testsuite/ * gdb.dwarf2/dw2-bad-parameter-type.exp, gdb.dwarf2/dw2-bad-parameter-type.S: New.
2010-03-312010-03-31 Stan Shebs <stan@codesourcery.com>Stan Shebs6-5/+62
* breakpoint.c (tracepoint_save_command): Include variables, conditionals, tracepoint types, and default-collect. * tracepoint.c (save_trace_state_variables): New function. * tracepoint.h (save_trace_state_variables): Declare it. * gdb.trace/save-trace.exp: Test save/restore of default-collect and tracepoint conditionals. (gdb_verify_tracepoints): Delete unused return.
2010-03-31 * src/gdb/remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.Pierre Muller2-1/+5
2010-03-31 * gdb.texinfo (TUI Commands): Mention that in some cases, thesePedro Alves2-0/+11
commands error out.
2010-03-31 * c-typeprint.c (c_type_print_args): Don't print "void"Keith Seitz3-6/+26
for java, regardless of whether it is TYPE_PROTOTYPED. Use the passed-in language instead of current_language. (c_type_print_varspec_suffix): Use current_language instead of assuming language_c. * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off any return type specifier from the physname.
2010-03-31 * gdb.java/jmisc.exp (ptype jmisc): Allow the constructor toKeith Seitz2-5/+8
appear in the output before main. Remove KFAIL for gdb/2215 aka bz 9320.
2010-03-31*** empty log message ***gdbadmin1-1/+1
2010-03-30 * gdb.arch/amd64-word.exp: Rename hex to hexr, the former is definedDoug Evans3-8/+12
by dejagnu. * gdb.arch/amd64-dword.exp: Ditto.
2010-03-30 * tui/tui-interp.c (tui_is_toplevel): New.Pedro Alves4-0/+33
(tui_init): Set it. (tui_allowed_p): New. * tui/tui.c (tui_enable): Check if the TUI is allowed before enabling it. * tui/tui.h (tui_allowed_p): Declare.
2010-03-30 * gdb.base/annota1.exp (break handle_USR1): Make fail and pass textDoug Evans2-5/+11
match. (break printf): Ditto.
2010-03-30Add org.gnu.gdb.i386.avx.H.J. Lu2-0/+15
2010-03-30 H.J. Lu <hongjiu.lu@intel.com> * gdb.texinfo (i386 Features): Add org.gnu.gdb.i386.avx.
2010-03-302010-03-30 Ozkan Sezer <sezeroz@gmail.com>Tom Tromey2-0/+5
* serial.h: Include winsock2.h before windows.h.
2010-03-30Add xmlRegisters= to qSupported packet.H.J. Lu7-61/+143
gdb/ 2010-03-30 H.J. Lu <hongjiu.lu@intel.com> * NEWS: Mention xmlRegisters= in qSupported packet. * i386-tdep.c: Include "remote.h". (_initialize_i386_tdep): Call register_remote_support_xml. * remote.c (remote_support_xml): New. (register_remote_support_xml): Likewise. (remote_query_supported_append): Likewise. (remote_query_supported): Support remote_support_xml. * remote.h (register_remote_support_xml): New. gdb/doc/ 2010-03-30 H.J. Lu <hongjiu.lu@intel.com> * gdb.texinfo (General Query Packets): Add xmlRegisters.
2010-03-302010-03-29 Stan Shebs <stan@codesourcery.com>Stan Shebs2-21/+6
* tracepoint.c (trace_find_line_command): Remove dead code.
2010-03-30*** empty log message ***gdbadmin1-1/+1
2010-03-292010-03-29 Stan Shebs <stan@codesourcery.com>Stan Shebs2-11/+52
Nathan Sidwell <nathan@codesourcery.com> * gdb.texinfo (GDB/MI Tracepoint Commands): Add notes about the GDBN equivalent. (Set Tracepoints): Remove mention that conditional tracepoints don't exist. (Tracepoint Actions): Clarify when while-stepping collection happens, note that while-stepping does not automatically collect $pc.
2010-03-292010-03-29 Stan Shebs <stan@codesourcery.com>Stan Shebs7-38/+315
* tracepoint.h (struct uploaded_string): New struct. (struct uploaded_tp): New fields for source strings. * breakpoint.c (this_utp, next_cmd): New globals. (read_uploaded_action): New function. (create_tracepoint_from_upload): Fill in more parts of a tracepoint. * tracepoint.c (encode_source_string): New function. (trace_save): Write out source strings, fix error checks. (parse_tracepoint_definition): Add source string parsing. * remote.c (PACKET_TracepointSource): New packet type. (remote_download_command_source): New function. (remote_download_tracepoint): Download source pieces also. (_initialize_remote): Add packet config command. * gdb.texinfo (Tracepoint Packets): Describe QTDPsrc. (General Query Packets): Describe TracepointSource.
2010-03-292010-03-29 Sami Wagiaalla <swagiaal@redhat.com>Sami Wagiaalla3-0/+20
* gdb.cp/nsusing.exp: Marked imported declaration test as xfail with gcc < 4.4. * gdb.cp/shadow.exp: Ditto.
2010-03-292010-03-29 Stan Shebs <stan@codesourcery.com>Stan Shebs2-2/+6
* tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to expression handler.
2010-03-292010-03-29 Stan Shebs <stan@codesourcery.com>Stan Shebs2-9/+33
* tracepoint.c (start_tracing): Check tracepoints before sending commands to target, don't start if all tracepoints disabled.
2010-03-29 * gdb.trace/collection.exp (run_trace_experiment): Make surePedro Alves2-3/+14
"tstart" is silent.
2010-03-29*** empty log message ***gdbadmin1-1/+1
2010-03-28 * gdb.trace/collection.exp (executable): New.Pedro Alves2-81/+83
(binfile): Use it. (fpreg, spreg, pcreg): New. (test_register): Use gdb_test_multiple. Pass /x to print. (prepare_for_trace_test): New. (run_trace_experiment): Use "continue", not gdb_run_cmd. (gdb_collect_args_test, gdb_collect_argstruct_test) (gdb_collect_argarray_test, gdb_collect_locals_test): Use prepare_for_trace_test. (gdb_collect_registers_test): Use prepare_for_trace_test. Use fpreg, spreg and pcreg. (gdb_collect_expression_test, gdb_collect_globals_test): Use prepare_for_trace_test. (gdb_trace_collection_test): Use fpreg, spreg and pcreg. Don't try to detect tracing support here. Don't set breakpoints at `begin' or `end' here. <global scope>: Use clean_restart. Run to main before checking for tracing support. Check for for tracing support here.
2010-03-28gdb/testsuite/Jan Kratochvil2-3/+8
* gdb.base/break-interp.exp (test_core, test_attach, test_ld): Add " as $displacement" to "seen displacement message".
2010-03-28Whoops. Use tab, not spaces.Pedro Alves1-1/+1
2010-03-28 gdb/Pedro Alves4-30/+58
* cli/cli-script.c (process_next_line): Handle 'stepping'. gdb/testsuite/ * gdb.trace/while-dyn.exp (executable): New variable. (binfile): Use it. (test_while_stepping): New function. Move most tests here. Call it once for each of the while-stepping, stepping and ws aliases.
2010-03-28*** empty log message ***gdbadmin1-1/+1
2010-03-27 * gdb.texinfo (ARM): Document arguments to "target sim".Eli Zaretskii2-2/+26
(Set Catchpoints): Use @dots{} instead of @r{...}.
2010-03-272010-03-26 Stan Shebs <stan@codesourcery.com>Stan Shebs2-0/+11
* tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
2010-03-27*** empty log message ***gdbadmin1-1/+1
2010-03-262010-03-26 Tom Tromey <tromey@redhat.com>Stan Shebs2-1/+9
* breakpoint.c (commands_command_1): Duplicate 'arg'.
2010-03-26 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.Ulrich Weigand5-144/+124
(skip_prologue_sal): Remove local definition. (resolve_sal_pc): Remove now unnecessary code. * linespec.c (minsym_found): Call skip_prologue_sal. * symtab.c (find_function_start_pc): Remove. (find_function_start_sal): Extract prologue skipping into ... (skip_prologue_sal): ... this new function. Handle code both with and without debug info. Respect SAL's explicit_pc and explicit_line flags. Inline old find_function_start_pc. * symtab.h (find_function_start_pc): Remove. (skip_prologue_sal): Add prototype.
2010-03-26 * dwarf2read.c (read_func_scope): Also scan specification DIEsUlrich Weigand2-0/+30
for DW_TAG_imported_module children.
2010-03-26ChangeLog:Ulrich Weigand5-24/+55
* dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by ignoring spurious DW_AT_name attributes for unnamed structs or unions. * completer.c (add_struct_fields): Fix inverted logic. testsuite/ChangeLog: * gdb.cp/inherit.exp (test_ptype_si): XFAIL test for GCC versions that do not provide the tagless_struct type name at all. (test_print_anon_union): Do not check value of uninitialized union member. Do not use cp_test_ptype_class, so we can accept "long" as well as "long int".
2010-03-26 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.Ulrich Weigand2-0/+5
2010-03-26 * tracepoint.c (current_trace_status): Don't make sure error_descPedro Alves2-4/+13
is non-NULL here. (parse_trace_status): Release a previous error_desc string, and set it to NULL by default. If stop reason is tracepoint_error, make sure error_desc is not left NULL.
2010-03-26 gdb/Pedro Alves4-3/+46
* tracepoint.c (trace_save): Remove X from tracepoint error description. gdb/testsuite/ * gdb.trace/tfile.c (tohex, bin2hex): New. (write_error_trace_file): Hexify error description.
2010-03-26 gdb/Pedro Alves4-16/+14
* tracepoint.c (parse_trace_status): Don't allow plain strings in the terror description. Don't expect an X prefix. gdb/doc/ * gdb.texinfo (Tracepoint Packets): Remove mention that terror:string may be plain text, and drop mention of X prefix.
2010-03-26 * gdb.texinfo (GDB/MI Tracepoint Commands): Add comma after @xref.Vladimir Prus2-1/+5
2010-03-262010-03-25 Stan Shebs <stan@codesourcery.com>Stan Shebs8-24/+175
* tracepoint.h (trace_stop_reason): Add tracepoint_error. (struct trace_status): New field error_desc. * tracepoint.c (stop_reason_names): Add terror. (current_trace_status): Ensure non-NULL error description. (trace_status_command): Add error report. (trace_status_mi): Ditto. (trace_save): Add special case for error description. (parse_trace_status): Add case for errors. * gdb.texinfo (Tracepoint Packets): Document trace error status. * gdb.trace/tfile.c: Generate an additional trace file, improve portability. * gdb.trace/tfile.exp: Test trace file with an error stop, delete files in a better way.
2010-03-26*** empty log message ***gdbadmin1-1/+1
2010-03-25 * dwarf2read.c (read_subroutine_type): If the compilation unitKeith Seitz2-1/+47
language is Java, mark any formal parameter named "this" as artificial (GCC/43521). (dwarf2_name): Add special handling for Java constructors.
2010-03-25 * gdb.java/jprint.exp: XFAIL printing of static class membersKeith Seitz2-0/+8
because of GCC debuginfo problem.
2010-03-25 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:Tom Tromey7-53/+192
* infrun.c (handle_inferior_event): Change initialization of stop_stack_dummy. (handle_inferior_event): Change assignment to stop_stack_dummy. (normal_stop): Update use of stop_stack_dummy. (struct inferior_status) <stop_stack_dummy>: Change type. * inferior.h (stop_stack_dummy): Update. * infcmd.c (stop_stack_dummy): Change type. * infcall.c (cleanup_delete_std_terminate_breakpoint): New function. (call_function_by_hand): Call set_std_terminate_breakpoint. Rewrite std::terminate handling. * breakpoint.h (enum bptype) <bp_std_terminate, bp_std_terminate_master>: New. (enum stop_stack_kind): New. (struct bpstat_what) <call_dummy>: Change type. (set_std_terminate_breakpoint, delete_std_terminate_breakpoint): Declare. * breakpoint.c (create_std_terminate_master_breakpoint): New function. (update_breakpoints_after_exec): Handle bp_std_terminate_master. Call create_std_terminate_master_breakpoint. (print_it_typical): Handle new breakpoint kinds. (bpstat_stop_status): Handle bp_std_terminate_master. (bpstat_what): Correctly set call_dummy field. Handle bp_std_terminate_master and bp_std_terminate. (print_one_breakpoint_location): Update. (allocate_bp_location): Update. (set_std_terminate_breakpoint): New function. (delete_std_terminate_breakpoint): Likewise. (create_thread_event_breakpoint): Update. (delete_command): Update. (breakpoint_re_set_one): Update. (breakpoint_re_set): Call create_std_terminate_master_breakpoint.