aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2011-10-03* python/py-value.c (valpy_get_address): Use Py_XINCREF.Paul Koning2-1/+14
(value_to_value_object): Fetch value if it was lazy.
2011-10-03*** empty log message ***gdbadmin1-1/+1
2011-10-02gdb/Jan Kratochvil2-20/+20
Code cleanup. * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr. Rearrange the code for it.
2011-10-02thread-specific breakpoints not saved properly by save-breakpointJoel Brobecker5-0/+115
Initially, I noticed that the save command was often missing new lines in the file that it generated. For instance, consider: % gdb save-bp (gdb) b break_me (gdb) b save-bp.c:27 (gdb) save breakpoints bps The contents of the bps file would be: % cat bps break break_mebreak save-bp.c:27 Looking further into the problem, I realized that the missing newlines are just a consequence of a missing call to print_recreate_thread. After having generated the breakpoint location in the break command, we cannot put a new line until we have looked at whether we need to add a 'thread NUM' argument. gdb/ChangeLog: * breakpoint.c (bkpt_print_recreate): Add call to print_recreate_thread. gdb/testsuite/ChangeLog: * gdb.base/save-bp.exp, gdb.base/save-bp.c: New files.
2011-10-02*** empty log message ***gdbadmin1-1/+1
2011-10-01gdb/testsuite/Jan Kratochvil2-1/+27
* gdb.python/py-value.exp (test_value_in_inferior): New variable can_read_0, test for it. (python print gdb.parse_and_eval('*(int*)0')): Rename to ... (parse_and_eval with memory error): ... here, make it untested if can_read_0.
2011-10-01*** empty log message ***gdbadmin1-1/+1
2011-09-30gdb.python/python.exp: fix up raceMarek Polacek2-2/+19
2011-09-30gdbserver: add support for FDPIC loadmapsMike Frysinger4-11/+50
The DSBT support is very close to the FDPIC code, so extend the existing loadmap support to work with FDPIC loadmaps too. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-09-30*** empty log message ***gdbadmin1-1/+1
2011-09-29 * lib/gdb.exp (is_amd64_regs_target, is_x86_like_target): AllowJoseph Myers2-5/+7
for 64-bit multilibs from i?86-* targets.
2011-09-29lib/gdb.exp: Fix a typoMarek Polacek2-1/+5
2011-09-29gdb.base/foll-fork.exp: fix up raceMarek Polacek2-2/+7
2011-09-29gdb/doc/Yao Qi2-2/+7
* gdb.texinfo (Files): Update options for `add-symbol-file'. Add one space after option `-s'. Remove @r{} markup.
2011-09-29gdb/Yao Qi2-1/+5
* symfile.c (add_symbol_file_command): Update message on usage.
2011-09-29*** empty log message ***gdbadmin1-1/+1
2011-09-28* gdb.python/py-type.c (enum E): New.Paul Koning3-1/+40
* gdb.python/py-type.exp (test_fields): Add tests for Python mapping access to fields. (test_enums): New test for field access on enums.
2011-09-28* python/py-type.c (make_fielditem, typy_field_names, typy_items)Paul Koning4-25/+425
(typy_length, typy_get, typy_has_key, typy_make_iter) (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter) (typy_iterator_iter, typy_iterator_iternext) (typy_iterator_dealloc): New functions to implement standard Python mapping methods on gdb.Type object. (gdb.TypeIterator): New Python type. * python/python-internal.h (gdbpy_iter_kind): New enum. * doc/gdb.texinfo (gdb.Type): Document field access by dictionary key syntax.
2011-09-28Fix complex floats on sparc.David S. Miller4-10/+97
* sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM, SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums. * sparc-tdep.c (sparc_complex_floating_p): New function. (sparc32_store_arguments): Handle complex floats. (sparc32_extract_return_value): Likewise. (sparc32_store_return_value): Likewise. (sparc32_stabs_argument_has_addr): Likewise. * sparc64-tdep.c (sparc64_complex_floating_p): New function. (sparc64_store_floating_fields): Handle complex floats. (sparc64_store_arguments): Likewise. (sparc64_store_return_value): Likewise.
2011-09-28Support "set environment" and "unset environment" in MinGW builds.Eli Zaretskii2-1/+52
* windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from before the change on 2006-12-09. (windows_create_inferior) [!__CYGWIN__]: Restore code that generates the environment block for CreateProcessA, modulo the Cygwin-specific parts that are not needed here.
2011-09-28*** empty log message ***gdbadmin1-1/+1
2011-09-272011-09-27 Tristan Gingold <gingold@adacore.com>Tristan Gingold4-39/+109
* target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO. * solib-darwin.c (DYLD_VERSION_MAX): Update number. (darwin_solib_get_all_image_info_addr_at_init): New function. (darwin_solib_read_all_image_info_addr): Likewise. (darwin_solib_create_inferior_hook): Use the above two functions. * darwin-nat.c (darwin_execvp): Renames retval to res. (darwin_read_write_inferior): Update comment. (darwin_read_dyld_info): New function. (darwin_xfer_partial): Handle DYLD_INFO.
2011-09-27 Add return address collection for tracepoints.Stan Shebs15-4/+250
* tracepoint.c (encode_actions_1): Add case for $_ret. (validate_actionline): Check for $_ret. (trace_dump_actions): Ditto. * ax-gdb.h (gen_trace_for_return_address): Declare. * ax-gdb.c: Include arch-utils.h. (gen_trace_for_return_address): New function. (agent_command): Add return address special case. * amd64-tdep.c: Include ax.h and ax-gdb.h. (amd64_gen_return_address): New function. (amd64_init_abi): Call it. * i386-tdep.c: Include ax.h and ax-gdb.h. (i386_gen_return_address): New function. (i386_init_abi): Call it. * arch-utils.h (default_gen_return_address): Declare. * arch-utils.c (default_gen_return_address): New function. * gdbarch.sh (gen_return_address): New method. * gdbarch.h, gdbarch.c: Regenerate. * gdb.texinfo (Tracepoint Action Lists): Document $_ret. * gdb.trace/collection.exp: Test collection of $_ret.
2011-09-27*** empty log message ***gdbadmin1-1/+1
2011-09-26*** empty log message ***gdbadmin1-1/+1
2011-09-25*** empty log message ***gdbadmin1-1/+1
2011-09-24*** empty log message ***gdbadmin1-1/+1
2011-09-23 PR gdb/13079Joseph Myers2-0/+16
* i386-tdep.c (i386_frame_align): New. (i386_gdbarch_init): Use i386_frame_align.
2011-09-23gdb/Yao Qi2-1/+7
* i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer to get address.
2011-09-23*** empty log message ***gdbadmin1-1/+1
2011-09-222011-09-22 Tristan Gingold <gingold@adacore.com>Tristan Gingold8-8/+65
* fork-child.c (fork_inferior): Add exec_fun parameter. Call exec_fun or execvp. * inferior.h: Adjust prototype. * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call. * inf-ttrace.c (inf_ttrace_create_inferior): Ditto. * inf-ptrace.c (inf_ptrace_create_inferior): Ditto. * procfs.c (procfs_create_inferior): Ditto. * darwin-nat.c (darwin_execvp): New function. (darwin_create_inferior): Use it.
2011-09-222011-09-22 Andreas Tobler <andreast@fgznet.ch>Andreas Tobler2-1/+6
* lib/gdb.exp (gdb_compile): Set rpath and remove -ldl from the list of compilation switches for <*-*-freebsd*>.
2011-09-22gdb/Yao Qi2-1/+6
* infrun.c (context_switch): Print debug message when switching to a different thread.
2011-09-22*** empty log message ***gdbadmin1-1/+1
2011-09-21 * s390-tdep.c (s390_function_arg_pass_by_reference): HandleUlrich Weigand2-10/+29
complex and vector types. (s390_return_value_convention): Likewise. (s390_value_from_register): Call check_typedef. (extend_simple_arg): Likewise. (alignment_of): Likewise. (s390_push_dummy_call): Likewise. (s390_return_value): Likewise.
2011-09-21Fix ChangeLog dates.Ulrich Weigand1-2/+2
2011-09-21 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.Ulrich Weigand2-51/+43
(arm_linux_hwbp_cap): New static variable. (arm_linux_get_hwbp_cap): Replace by ... (arm_linux_init_hwbp_cap): ... this new function. (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap. (arm_linux_get_hw_watchpoint_count): Likewise. (arm_linux_get_hw_watchpoint_max_length): Likewise. (arm_arch_setup): Call arm_linux_init_hwbp_cap. (arm_prepare_to_resume): Use perror_with_name instead of error.
2011-09-21 * event-top.c (async_disconnect): If an exception is thrown fromJoseph Myers4-7/+30
quit_cover, call pop_all_targets. Use TRY_CATCH instead of catch_errors. * top.c (quit_cover): Return void and take no arguments. * top.h (quit_cover): Update prototype.
2011-09-21 * linux-arm-low.c: Include <signal.h>.Ulrich Weigand2-0/+527
(PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary. (struct arm_linux_hwbp_cap): New data type. (arm_hwbp_type, arm_hwbp_control_t): New typedefs. (struct arm_linux_hw_breakpoint): New data type. (MAX_BPTS, MAX_WPTS): Define. (struct arch_process_info, struct arch_lwp_info): New data types. (arm_linux_get_hwbp_cap): New function. (arm_linux_get_hw_breakpoint_count): Likewise. (arm_linux_get_hw_watchpoint_count): Likewise. (arm_linux_get_hw_watchpoint_max_length): Likewise. (arm_hwbp_control_initialize): Likewise. (arm_hwbp_control_is_enabled): Likewise. (arm_hwbp_control_is_initialized): Likewise. (arm_hwbp_control_disable): Likewise. (arm_linux_hw_breakpoint_equal): Likewise. (arm_linux_hw_point_initialize): Likewise. (struct update_registers_data): New data structure. (update_registers_callback: New function. (arm_insert_point): Likewise. (arm_remove_point): Likewise. (arm_stopped_by_watchpoint): Likewise. (arm_stopped_data_address): Likewise. (arm_new_process): Likewise. (arm_new_thread): Likewise. (arm_prepare_to_resume): Likewise. (the_low_target): Register arm_insert_point, arm_remove_point, arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process, arm_new_thread, and arm_prepare_to_resume.
2011-09-21*** empty log message ***gdbadmin1-1/+1
2011-09-20 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value toJoseph Myers2-1/+6
current_uiout, not uiout.
2011-09-20*** empty log message ***gdbadmin1-1/+1
2011-09-19 * python/py-auto-load.c (source_section_scripts): Fix fileDoug Evans3-11/+18
descriptor leak. * python/python.c (source_python_script_for_objfile): Tweak comments.
2011-09-19 * gdb.trace/tspeed.exp: New file.Stan Shebs3-0/+329
* gdb.trace/tspeed.c: New file.
2011-09-19[OBV] fix typos in ChangeLogKevin Pouget1-2/+2
2011-09-19*** empty log message ***gdbadmin1-1/+1
2011-09-18 Support displaced stepping for Thumb 16-bit insns.Yao Qi5-69/+1651
gdb/ * arm-tdep.c (THUMB_NOP) Define. (thumb_copy_unmodified_16bit): New. (thumb_copy_b, thumb_copy_bx_blx_reg): New. (thumb_copy_alu_reg): New. (arm_copy_svc): Move some common code to ... (install_svc): ... here. New. (thumb_copy_svc): New. (install_pc_relative): New. (thumb_copy_pc_relative_16bit): New. (thumb_decode_pc_relative_16bit): New. (thumb_copy_16bit_ldr_literal): New. (thumb_copy_cbnz_cbz): New. (cleanup_pop_pc_16bit_all): New. (thumb_copy_pop_pc_16bit): New. (thumb_process_displaced_16bit_insn): New. (thumb_process_displaced_32bit_insn): New. (thumb_process_displaced_insn): process thumb instruction. Support displaced stepping for Thumb 32-bit insns. gdb/ * arm-tdep.c (thumb_copy_unmodified_32bit): New. (thumb2_copy_preload): New. (thumb2_copy_copro_load_store): New. (thumb2_copy_b_bl_blx): New. (thumb2_copy_alu_imm): New. (thumb2_copy_load_reg_imm): New. (thumb2_copy_load_literal): New (thumb2_copy_block_xfer): New. (thumb_32bit_copy_undef): New. (thumb_32bit_copy_unpred): New. (thumb2_decode_ext_reg_ld_st): New. (thumb2_decode_svc_copro): New. (decode_thumb_32bit_store_single_data_item): New. (thumb_copy_pc_relative_32bit): New. (thumb_decode_pc_relative_32bit): New. (decode_thumb_32bit_ld_mem_hints): New. (thumb2_copy_table_branch): New (thumb_process_displaced_32bit_insn): Process Thumb 32-bit instructions. gdb/testsuite/ * gdb.arch/arm-disp-step.S (test_ldr_literal): Test for Thumb instructions. (test_adr_32bit, test_pop_pc): Likewise. (test_ldr_literal_16, test_cbz_cbnz, test_adr): New test for Thumb instructions. * gdb.arch/arm-disp-step.exp (test_ldm_stm_pc): Match $gdb_prompt in gdb_test_multiple. (test_ldr_literal_16, test_cbz_cbnz, test_adr): New.
2011-09-18 gdb/Yao Qi2-2/+14
* arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned. (install_b_bl_blx): Likewise.
2011-09-18 gdb/testsuite/Yao Qi3-0/+28
* lib/gdb.exp (can_single_step_to_signal_handler): New. * gdb.base/kill-after-signal.exp: Call it. Skip if target doesn't support single step to signal handler.
2011-09-18*** empty log message ***gdbadmin1-1/+1