aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2011-11-28*** empty log message ***gdbadmin1-1/+1
2011-11-27remove use of sprintf_vma in remote_get_tracepoint_statusJoel Brobecker2-5/+8
This function takes a VMA and was forcing us to perform a cast to compile without warning on one platform. Except that the cast caused a warning on sparc-solaris. This patch fixes the problem by using phex_nz instead. gdb/ChangeLog: * remote.c (remote_get_tracepoint_status): Delete addrbuf local variable. Avoid use of sprintf_vma.
2011-11-27gdb/Sanjoy Das2-7/+19
Fix regression in jit.exp. * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab) (jit_register_code): Set the jit_objfile_data field to the correct value.
2011-11-27*** empty log message ***gdbadmin1-1/+1
2011-11-26*** empty log message ***gdbadmin1-1/+1
2011-11-25gdb/testsuite/Jan Kratochvil2-5/+9
Code cleanup. * gdb.reverse/i386-sse-reverse.exp (continue to end of sse4_test): Convert send_gdb and gdb_expect to gdb_test_multiple.
2011-11-25gdb/testsuite/Jan Kratochvil2-1/+9
PR testsuite/12649 * gdb.reverse/i386-sse-reverse.exp (continue to end of sse_test #2): Wrap send_gdb into a new gdb_test.
2011-11-25gdb/testsuite/Jan Kratochvil2-1/+5
* gdb.base/jit-so.exp (one_jit_test): Add testcase name to log message.
2011-11-252011-11-25  Uros Bizjak  <ubizjak@gmail.com>Ulrich Weigand2-0/+100
* alpha-tdep.c (br_opcode): New. (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto. (alpha_deal_with_atomic_sequence): New function. (alpha_gdbarch_init): Handle single stepping of atomic sequences with alpha_deal_with_atomic_sequence.
2011-11-252011-11-24 Stan Shebs <stan@codesourcery.com>Stan Shebs2-2/+6
* tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
2011-11-25*** empty log message ***gdbadmin1-1/+1
2011-11-242011-11-24 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-281/+483
* machoread.c (oso_el): Remove num_Sections, symbols, offsets fields. Add oso_sym, end_sym and nbr_syms. (macho_register_oso): Change interface. (macho_symtab_add_minsym): New function. (macho_symtab_read): Rewritten. (get_archive_prefix_len): Remove trailing blanks. (oso_el_compare_name): Add comment. (struct macho_sym_hash_entry): New structure. (macho_relocate_common_syms): Remove. (macho_sym_hash_newfunc): New function. (macho_resolve_oso_sym_with_minsym): Likewise. (macho_add_oso_symfile): Rewritten. (macho_symfile_read_all_oso): Remove trailing blanks. Adjust code to free oso vector. (macho_symfile_read): Likewise. Move code to initialize minimal symbol
2011-11-24 * mips-tdep.c (extended_offset): Fix formatting.Maciej W. Rozycki2-3/+9
2011-11-24*** empty log message ***gdbadmin1-1/+1
2011-11-23 * lib/mi-support.exp (varobj_tree): New namespace and procs.Keith Seitz2-0/+316
(mi_varobj_tree_test_children_callback): New proc. (mi_walk_varobj_tree): New proc.
2011-11-23 * dwarf2read.c (dw2_lookup_symtab): Add comment.Doug Evans2-0/+12
(dw2_expand_symtabs_with_filename): Ditto. (dw2_expand_symtabs_matching): Ditto. (dw2_map_symbol_filenames): Ditto.
2011-11-23Minor reformatting in ada-lang.c:assign_aggregateJoel Brobecker2-16/+20
No code change. gdb/ChangeLog: From Andrey Smirnov <andrew.smirnov@gmail.com>: * ada-lang.c (assign_aggregate): Minor reformatting.
2011-11-23fix -Wshadow warning inside ada-lang.c:assign_aggregateJoel Brobecker2-2/+6
gdb/ChangeLog: From Andrey Smirnov <andrew.smirnov@gmail.com>: * ada-lang.c (assign_aggregate): Remove declaration of local variable `i' which is shadowing another variable with the same name declared in the outer scope.
2011-11-23ada-lang.c: Rename function base_type into get_base_typeJoel Brobecker2-7/+12
This avoids shadowing issues with variables named base_type. gdb/ChangeLog: * ada-lang.c (get_base_type): Renames base_type. Adjust all calls throughout this file.
2011-11-23Fix compilation error in gdb-dlfcn.c (on Windows)Joel Brobecker2-1/+6
gdb/ChangeLog: * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to FormatMessage.
2011-11-23*** empty log message ***gdbadmin1-1/+1
2011-11-22gdbTom Tromey14-41/+288
PR mi/8444: * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK) (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY) (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants. * mi/mi-common.c (async_reason_string_lookup): Add new reasons. * breakpoint.c (print_it_catch_fork, print_it_catch_vfork) (print_it_catch_syscall, print_it_catch_exec) (internal_bkpt_print_it): Use ui_out. Emit stop reason. (bpstat_print): Add 'kind' argument. Handle TARGET_WAITKIND_LOADED. * infrun.c (normal_stop): Update for bpstat_print change. Don't handle TARGET_WAITKIND_LOADED here. * breakpoint.h (bpstat_print): Update. gdb/testsuite * lib/mi-support.exp (mi_run_cmd_full): Rename from mi_run_cmd. Add "use_mi_command" argument. (mi_run_cmd, mi_run_with_cli): New procs. * gdb.mi/solib-lib.c: New file. * gdb.mi/solib-main.c: New file. * gdb.mi/mi-solib.exp: New file. gdb/doc * gdb.texinfo (GDB/MI Async Records): Document new *stopped reasons.
2011-11-22 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.Tom Tromey2-0/+5
2011-11-22 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.Tom Tromey3-11/+16
Use static_assert to check the size of async_reason_string_lookup. * common/gdb_assert.h (static_assert): New macro.
2011-11-22 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branchAlan Modra2-8/+13
destination calculation. Don't expect >> to sign extend. Don't add a break if branch lands inside the sequence anywhere.
2011-11-22*** empty log message ***gdbadmin1-1/+1
2011-11-21 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,Keith Seitz3-6/+8
-var-evaluate-expression of an enumeration and fix expected result. * gdb.mi/mi2-varvdisplay.exp: Likewise.
2011-11-21 * gdb.cp/nextoverthrow.exp: Skip test if debug info forDoug Evans2-0/+10
_Unwind_DebugHook is missing.
2011-11-212011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>Kwok Yeung2-17/+42
* osdata.c (info_osdata_command): Rename nprocs to nrows. Handle the case where osdata->items is empty. Rename column names to a canonical form to avoid problems with unusual column names.
2011-11-21gdb/Yao Qi2-1/+5
* MAINTAINERS (Write After Approval): Keep list in alphabetical order.
2011-11-21Fix a 32-bit compile error in the previous checkinStan Shebs1-6/+12
2011-11-21*** empty log message ***gdbadmin1-1/+1
2011-11-20 * NEWS: Mention tracepoint additions.Stan Shebs18-65/+962
* breakpoint.h (struct tracepoint): New field traceframe_usage. * breakpoint.c (print_one_breakpoint_location): Identify tracepoints as such when reporting hit counts, report trace buffer usage. (create_tracepoint_from_upload): Copy status info. * tracepoint.h (struct trace_status): Rename error_desc to stop_desc, add fields user_name, notes, start_time, stop_time. (struct uploaded_tp): Add fields hit_count, traceframe_usage. * tracepoint.c (trace_user): New global. (trace_notes): New global. (trace_stop_notes): New global. (start_tracing): Add argument and trace note handling. (stop_tracing): Ditto. (trace_start_command): Add notes argument. (trace_stop_command): Ditto. (trace_status_command): Report additional status info. (trace_status_mi): Similarly. (trace_save): Update, record tracepoint status. (set_disconnected_tracing): Call target method directly. (send_disconnected_tracing_value): Remove. (set_trace_user): New function. (set_trace_notes): New function. (set_trace_stop_notes): New function. (parse_trace_status): Handle additional status. (parse_tracepoint_status): New function. (parse_tracepoint_definition): Call it. (tfile_get_tracepoint_status): New function. (init_tfile_ops): Use it. (_initialize_tracepoint): Add new setshows. * target.h (struct target_ops): New methods to_get_tracepoint_status and to_set_trace_notes. (target_get_tracepoint_status): New macro. (target_set_trace_notes): New macro. * target.c (update_current_target): Add new methods. * remote.c (remote_get_tracepoint_status): New function. (remote_set_trace_notes): New function. (init_remote_ops): Add them. * mi/mi-main.c (mi_cmd_trace_start): Add argument to call. (mi_cmd_trace_stop): Ditto. * tracepoint.c (struct tracepoint): New field traceframe_usage. (tracing_start_time): New global. (tracing_stop_time): New global. (tracing_user_name): New global. (tracing_notes): New global. (tracing_stop_note): New global. (cmd_qtstart): Set traceframe_usage, start_time. (stop_tracing): Set stop_time. (cmd_qtstatus): Report additional status. (cmd_qtp): New function. (handle_tracepoint_query): Call it. (cmd_qtnotes): New function. (handle_tracepoint_general_set): Call it. (get_timestamp): Rename from tsv_get_timestamp. * gdb.texinfo (Starting and Stopping Trace Experiments): Document note-related options and variables. (Tracepoint Packets): Document packet changes. * gdb.trace/tstatus.exp: New. * gdb.trace/actions.c: Include string.h.
2011-11-20gdb/doc/Sanjoy Das2-0/+123
* gdb.texinfo (JIT Interface): Add documentation on writing and usind JIT debug info readers. (Custom Debug Info, Using JIT Debug Info Readers, Writing JIT Debug Info Readers): New nodes.
2011-11-20gdb/Sanjoy Das2-0/+272
* jit.c: Include regcache.h. (jit_gdbarch_data, jit_frame_unwind): New static variables. (jit_unwind_reg_set_impl, free_reg_value_impl) (jit_unwind_reg_get_impl, jit_frame_sniffer) (jit_frame_unwind_stop_reason, jit_frame_this_id) (jit_frame_prev_register, jit_dealloc_cache) (jit_prepend_unwinder, jit_gdbarch_data_init): New functions. (jit_inferior_init): Prepend (new) pseudo unwinder by calling jit_prepend_unwinder. (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
2011-11-20gdb/Sanjoy Das2-13/+480
* jit.c: Include block.h, dictionary.h and frame-unwind.h. (add_objfile_entry, jit_target_read_impl, jit_object_open_impl) (jit_symtab_open_impl, compare_block, jit_block_open_impl) (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl) (finalize_symtab, jit_object_close_impl) (jit_reader_try_read_symtab, jit_bfd_try_read_symtab) (free_objfile_data): New functions. (_initialize_jit): Register jit_objfile_data with a proper cleanup function.
2011-11-20gdb/Sanjoy Das2-0/+109
* jit.c: Include gdb-dlfcn.h. (loaded_jit_reader, reader_init_fn_sym): New static variables. (jit_reader_load, jit_reader_load_command) (jit_reader_unload_command): New functions. (_initialize_jit): Add commands "jit-reader-load" and "jit-reader-unload".
2011-11-20gdb/Sanjoy Das7-5/+268
* Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system. * config.in: Add new #define HAVE_LIBDL. * configure.ac: Add check for -ldl. * configure: Re-generated by autoconf. * gdb-dlfcn.c: New file. * gdb-dlfcn.h: New file.
2011-11-20gdb/Sanjoy Das5-0/+74
* config.in: Add new #defines: JIT_READER_DIR and JIT_READER_DIR_RELOCATABLE. * configure.ac: New GDB directory entry for jit-reader-dir. * configure: Re-generated by autoconf. * jit.c: New static variable: const char *jit_reader_dir. (_initialize_jit): Relocate jit_reader_dir.
2011-11-20gdb/Sanjoy Das6-4/+511
* Makefile.in: Add jit-reader.h as a header. Have it installed in $(includedir)/gdb. * configure.ac: Generate a correct value for TARGET_PTR for jit-reader.h. Tell configure to generate jit-reader.h from jit-reader.in. * configure: Re-generated by autoconf. * jit-reader.in: New file. * jit.c: Include jit-reader.h.
2011-11-20gdb/Sanjoy Das2-0/+5
* MAINTAINERS (Write After Approval): Add myself to the list.
2011-11-20*** empty log message ***gdbadmin1-1/+1
2011-11-19*** empty log message ***gdbadmin1-1/+1
2011-11-18 * findvar.c (read_frame_register_value): Respect value_offsetUlrich Weigand2-12/+23
of the register value. Remove big-endian special case.
2011-11-18 PR build/7196:Tom Tromey2-1/+15
* remote.c (putpkt_for_catch_errors): New function. (remote_kill): Use it.
2011-11-18gdb/Yao Qi11-18/+875
* breakpoint.c (create_breakpoint): Produce query message according to breakpoint's type. Allocate tracepoint per correct type. Don't check SALs for pending fast tracepoints. * tracepoint.c (process_tracepoint_on_disconnect): New. (disconnect_tracing): Call process_tracepoint_on_disconnect. gdb/doc/ * gdb.texinfo (Create and Delete Tracepoints): Mention pending tracepoint. gdb/testsuite/ * gdb.trace/pending.exp: New. * gdb.trace/pending.c: New. * gdb.trace/pendshr1.c: New. * gdb.trace/pendshr2.c: New. * gdb.trace/change-loc.exp (tracepoint_change_loc_1): Check one tracepoint location becomes pending. (tracepoint_change_loc_2): New.
2011-11-18 * breakpoint.c (install_breakpoint): Add one more parameter so thatYao Qi4-11/+27
update_global_location_list is called conditionally. (create_fork_vfork_event_catchpoint): Update. (create_syscall_event_catchpoint): Update. (create_breakpoint_sal): Update. (create_breakpoint_sal): Update. Call do_cleanups before install_breakpoint. * ada-lang.c (create_ada_exception_catchpoint): Update. * breakpoint.h (install_breakpoint): Update declaration.
2011-11-18*** empty log message ***gdbadmin1-1/+1
2011-11-17*** empty log message ***gdbadmin1-1/+1
2011-11-16 * spu-tdep.c (spu_return_value): Fix handling ofUlrich Weigand2-5/+18
TYPE_CALLING_CONVENTION annotation.