aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2009-08-12*** empty log message ***gdbadmin1-1/+1
2009-08-11 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make a cleanup.Tom Tromey5-3/+39
(dwarf2_loc_desc_needs_frame): Likewise. * dwarf2expr.h (make_cleanup_free_dwarf_expr_context): Declare. * dwarf2expr.c (free_dwarf_expr_context_cleanup): New function. (make_cleanup_free_dwarf_expr_context): Likewise. * dwarf2-frame.c (execute_stack_op): Make a cleanup.
2009-08-11 * gdb.arch/altivec-abi.exp (altivec_abi_tests): Turn on printing ofNathan Froyd3-0/+9
all frame arguments. * gdb.arch/altivec-regs.exp: Likewise.
2009-08-11*** empty log message ***gdbadmin1-1/+1
2009-08-10gdb/Jan Kratochvil4-3/+12
* objfiles.c (gdb_bfd_unref): Use the bfd_usrdata accessor. * solib.c (symbol_add_stub): Likewise. * symfile.c (symfile_bfd_open): Assert BFD_USRDATA is NULL.
2009-08-102009-08-10 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov2-5/+59
* objfiles.c (qsort_cmp): Remove assert. (preferred_obj_section): New function. (update_section_map): Filter duplicates.
2009-08-102009-08-10 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-21/+17
* solib-darwin.c (find_program_interpreter): Simplify the code by looking up for the load_dylinker command instead of reading the corresponding (but deprecated) section. (darwin_solib_create_inferior_hook): Adjust: do not free the interpreter path.
2009-08-102009-08-10 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-1/+153
* i386-darwin-tdep.c (i386_m128_p): New function. (i386_darwin_arg_type_alignment): Ditto. (i386_darwin_push_dummy_call): Ditto. (i386_darwin_init_abi): Define Darwin specific push_dummy_call. Adjust long_double size. Adjust pc offset in setjump buffer.
2009-08-102009-08-10 Hui Zhu <teawater@gmail.com>Hui Zhu2-0/+1308
Add Linux AMD64 process record support. * amd64-linux-tdep.c (amd64_linux_record_tdep): New variable. This struct has the argument for the function "record_linux_system_call". (amd64_linux_syscall_record): New function. Parse the system call instruction and call function "record_linux_system_call" to record execute log. (i386_linux_init_abi): Initialize "amd64_linux_record_tdep". Set "amd64_linux_syscall_record" to "i386_syscall_record".
2009-08-102009-08-10 Hui Zhu <teawater@gmail.com>Hui Zhu4-1117/+1509
Add process record Linux system call 64 bits support. * linux-record.h (linux_record_tdep): Add size_pointer, size_size_t, size_iovec and arg6. Change the values of size_int, size_long and size_ulong to gdbarch_int_bit (gdbarch) / TARGET_CHAR_BIT, gdbarch_long_bit (gdbarch) / TARGET_CHAR_BIT, gdbarch_long_bit (gdbarch) / TARGET_CHAR_BIT. * i386-linux-tdep.c (i386_linux_init_abi): Ditto. (i386_linux_intx80_sysenter_record): Add a check for system call number. * linux-record.c (record_linux_system_call): Make this function support 64 bits.
2009-08-102009-08-10 Hui Zhu <teawater@gmail.com>Hui Zhu4-659/+858
Add AMD64 process record instruction set support. * i386-tdep.h (gdbarch_tdep): Add record_regmap for registers because the AMD64's registers order in GDB is not same with I386 instructions. Add i386_syscall_record to be the syscall function handle interface. (record_i386_regnum): Number for record_regmap. * i386-tdep.c (OT_QUAD): For 64 bits. (i386_record_s): Add rex_x, rex_b, rip_offset and popl_esp_hack for AMD64 instruction set. And regmap for record_regmap. (i386_record_lea_modrm_addr): Support AMD64 instruction set 64 bits lea. (i386_record_lea_modrm): Ditto. (i386_record_push): New function. Record the execution log of push. (I386_RECORD_ARCH_LIST_ADD_REG): New macro to record the register. (i386_process_record): Support AMD64 instruction set. * amd64-tdep.c (amd64_record_regmap): For record_regmap. (amd64_init_abi): Set amd64_record_regmap to record_regmap.
2009-08-10*** empty log message ***gdbadmin1-1/+1
2009-08-09*** empty log message ***gdbadmin1-1/+1
2009-08-08 * bfd-target.c (struct target_bfd_data): New.Pedro Alves2-14/+41
(target_bfd_xfer_partial): Adjust to get at the section table from the new structure. (target_bfd_get_section_table): Ditto. (target_bfd_xclose): Ditto. Get the bfd pointer from the target_bfd_data structure, from the section table. (target_bfd_reopen): Store a struct target_bfd_data in the target_ops to_data field, instead of a target_section_table.
2009-08-082009-08-08 Aleksandar Ristovski <aristovski@qnx.com>Hui Zhu2-1/+5
Hui Zhu <teawater@gmail.com> * record.c (record_store_registers): Remove unused variable.
2009-08-08*** empty log message ***gdbadmin1-1/+1
2009-08-07gdbTom Tromey4-3/+68
* language.c (set_language_command): Strip whitespace. (set_type_command): Likewise. (set_range_command): Likewise. gdb/testsuite * gdb.base/setshow.exp: Add tests for changes to set language, set check range, and set check type.
2009-08-07 PR gdb/8869:Tom Tromey4-107/+181
* language.c (language_completer): New function. (range_or_type_completer): New function. (case_completer): New function. (_initialize_language): Set completers. * cli/cli-decode.c (add_setshow_string_cmd): Return the "set" command. (add_setshow_string_noescape_cmd): Likewise. (add_setshow_integer_cmd): Likewise. (add_setshow_uinteger_cmd): Likewise. (add_setshow_zinteger_cmd): Likewise. (add_setshow_zuinteger_cmd): Likewise. * command.h (add_setshow_string_cmd, add_setshow_string_noescape_cmd, add_setshow_uinteger_cmd, add_setshow_zinteger_cmd, add_setshow_zuinteger_cmd): Update.
2009-08-07*** empty log message ***gdbadmin1-1/+1
2009-08-062009-08-06 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov2-2/+16
gold/10400 * dwarf2-frame.c (qsort_fde_cmp): Use stable sort.
2009-08-062009-08-06 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov2-56/+185
* dwarf2-frame.c (struct dwarf2_cie): Remove 'next'. (struct dwarf2_cie_table): New. (struct dwarf2_fde): Remove 'next'. (struct dwarf2_fde_table): New. (struct comp_unit): Remove 'cie'. (bsearch_cie_cmp, bsearch_fde_cmp): New function. (find_cie, dwarf2_frame_find_fde): Use bsearch. (add_cie, add_fde): Use array instead of linked list. (decode_frame_entry, decode_frame_entry_1): New parameters. (qsort_fde_cmp): New function. (dwarf2_build_frame_info): Adjust.
2009-08-06(Server Prefix): Explain that server prefix suppressesNick Roberts1-3/+8
confirmation request.
2009-08-06*** empty log message ***Nick Roberts1-0/+5
2009-08-06 * score-tdep.c: Support a new Sunplus CT S+core variant, S+core 3.Don Lee6-338/+972
* score-tdep.h: Ditto. * NEWS: Ditto. * configure.tgt: Test do we have a simulator. * MAINTAINERS: Add myself under target score
2009-08-06(defaulted_query): Don't ask for confirmation if serverNick Roberts1-2/+2
prefix is used.
2009-08-06*** empty log message ***Nick Roberts1-1/+6
2009-08-06*** empty log message ***gdbadmin1-1/+1
2009-08-05 * gdb.texinfo (Separate Debug Files, Remote Protocol): ClarifiedEli Zaretskii2-18/+71
CRC definitions.
2009-08-05 * spu-tdep.h (SPUADDR_SPU): Cast result to int.Tom Tromey2-1/+7
2009-08-05*** empty log message ***gdbadmin1-1/+1
2009-08-042009-08-04 Thiago Jung Bauermann <thiago.bauermann@gmail.com>Thiago Jung Bauermann3-0/+123
gdb/ * linux-tdep.c (check_is_pie_binary, _initialize_linux_tdep): New functions. gdb/testsuite/ * gdb.base/pie-support.exp: New file. * gdb.base/pie-support.c: New file.
2009-08-042009-08-04 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov4-29/+51
* objfiles.h (OBJF_KEEPBFD): Delete. (gdb_bfd_unref): New prototype. * objfiles.c (gdb_bfd_unref): New function. (free_objfile): Call gdb_bfd_unref. * solib.c (free_so): Likewise. (symbol_add_stub): Set refcount.
2009-08-042009-08-04 Hui Zhu <teawater@gmail.com>Michael Snyder2-26/+62
Michael Snyder <msnyder@vmware.com> * record.c (record_mem_entry): New field 'mem_entry_not_accessible'. (record_arch_list_add_mem): Initialize 'mem_entry_not_accessible'. (record_wait): Set 'mem_entry_not_accessible' flag if target memory not readable. Don't try to change target memory if 'mem_entry_not_accessible' is set.
2009-08-04*** empty log message ***gdbadmin1-1/+1
2009-08-03gdb/Jan Kratochvil2-2/+19
Fix memory corruption on reread of file through a symbolic link. * symfile.c (find_separate_debug_file): Initialize CANON_NAME earlier. Allocate DEBUGFILE with length based on CANON_NAME. Free CANON_NAME on all the return paths.
2009-08-03 Implement -break-commandsVladimir Prus11-11/+173
* breakpoint.c (get_breakpoint, breakpoint_set_commands): New. (commands_command): Use breakpoint_set_commands. * breakpoint.h (get_breakpoint, breakpoint_set_commands): Declare. * mi/mi-cmds.h (mi_cmd_break_commands): New. * mi/mi-cmds.c: Register -break-commands. * mi/mi-cmd-break.c (mi_cmd_break_commands, mi_read_next_line) (mi_command_line_array, mi_command_line_array_cnt) (mi_command_line_array_ptr): New.
2009-08-03 Refactor reading of commandsVladimir Prus4-32/+80
* defs.h (read_command_lines_1): Declare. * cli/cli-script.c (read_next_line): Only return string, do not process. (process_next_line): New, extracted from read_next_line. (recurse_read_control_structure): Take a function pointer to the read function. (get_command_line) Pass the read_next_line as reader function into recurse_read_control_structure. (read_command_lines_1): New, extracted from... (read_command_lines): ...here.
2009-08-03*** empty log message ***gdbadmin1-1/+1
2009-08-02*** empty log message ***gdbadmin1-1/+1
2009-08-01 * procfs.c (proc_set_current_signal): Populate mysinfo beforeKazu Hirata2-22/+29
copying it to arg. (proc_clear_current_signal): Likewise. (proc_set_watchpoint): Populate pwatch before copying it to arg.
2009-08-01*** empty log message ***gdbadmin1-1/+1
2009-07-312009-07-31 Michael Snyder <msnyder@vmware.com>Michael Snyder2-6/+13
* remote.c (store_register_using_P): Make error msg more verbose. (store_registers_using_G): Ditto. (fetch_register_using_p): Ditto.
2009-07-312009-07-29 Michael Snyder <msnyder@vmware.com>Michael Snyder2-4/+17
* remote.c (store_register_using_P): Call putpkt and getpkt directly instead of calling remote_send. (store_register_using_G): Ditto. (fetch_register_using_p): Ditto.
2009-07-31Fix previous check-in.Ulrich Weigand1-0/+182
2009-07-31 * configure.ac: Run gdb.cell tests when appropriate.Ulrich Weigand39-0/+4999
* configure: Regenerate. * lib/cell.exp: New file. * gdb.cell: New directory. * gdb.cell/configure.ac: New file. * gdb.cell/configure: New file. * gdb.cell/Makefile.in: New file. * gdb.cell/arch.exp: New file. * gdb.cell/break.c: New file. * gdb.cell/break.exp: New file. * gdb.cell/break-spu.c: New file. * gdb.cell/bt.c: New file. * gdb.cell/bt2-spu.c: New file. * gdb.cell/bt-spu.c: New file. * gdb.cell/bt.exp: New file. * gdb.cell/coremaker.c: New file. * gdb.cell/coremaker-spu.c: New file. * gdb.cell/core.exp: New file. * gdb.cell/gcore.exp: New file. * gdb.cell/data.c: New file. * gdb.cell/data.exp: New file. * gdb.cell/data-spu.c: New file. * gdb.cell/ea-cache.exp: New file. * gdb.cell/ea-cache.c: New file. * gdb.cell/ea-cache-spu.c: New file. * gdb.cell/ea-standalone.c: New file. * gdb.cell/ea-standalone.exp: New file. * gdb.cell/ea-test.c: New file. * gdb.cell/ea-test.exp: New file. * gdb.cell/f-regs.exp: New file. * gdb.cell/mem-access.c: New file. * gdb.cell/mem-access.exp: New file. * gdb.cell/mem-access-spu.c: New file. * gdb.cell/ptype.exp: New file. * gdb.cell/registers.exp: New file. * gdb.cell/size.c: New file. * gdb.cell/sizeof.exp: New file. * gdb.cell/size-spu.c: New file. * gdb.cell/solib.exp: New file. * gdb.cell/solib-symbol.exp: New file.
2009-07-31ChangeLog:Ulrich Weigand5-2/+178
* spu-tdep.c: Include "infcall.h". (spu_address_class_type_flags): New function. (spu_address_class_type_flags_to_name): Likewise. (spu_address_class_name_to_type_flags): Likewise. (spu_pointer_to_address): Handle __ea pointers. (spu_auto_flush_cache_p): New static variable. (spu_objfile_from_frame): New function. (flush_ea_cache, spu_attach_normal_stop): Likewise. (show_spu_auto_flush_cache): Likewise. (spu_gdbarch_init): Install address class handlers. (_initialize_spu_tdep): Attach to normal_stop observer. Install "set spu auto-flush-cache" / "show spu auto-flush-cache" commands. * NEWS: Mention "set/show spu auto-flush-cache" commands. doc/ChangeLog: * gdb.texinfo (Cell Broadband Engine SPU architecture): Document the "set spu auto-flush-cache" and "show spu auto-flush-cache" commands.
2009-07-31ChangeLog:Ulrich Weigand5-0/+157
* spu-tdep.c: Include "block.h". (setspucmdlist, showspucmdlist): New static variables. (spu_stop_on_load_p): Likewise. (spu_catch_start): New function. (show_spu_command, set_spu_command): New functions. (show_spu_stop_on_load): Likewise. (_initialize_spu_tdep): Attach spu_catch_start to new_objfile observer. Install "set spu" / "show spu" prefix command handler. Install "set spu stop-on-load" / "show spu stop-on-load" command. * NEWS: Mention "set/show spu stop-on-load" commands. doc/ChangeLog: * gdb.texinfo (Cell Broadband Engine SPU architecture): Document the "set spu stop-on-load" and "show spu stop-on-load" commands.
2009-07-31 * ppc-linux-tdep.c: Include "solib.h", "solist.h", "exceptions.h",Ulrich Weigand3-0/+433
"arch-utils.h", and "spu-tdep.h". (spu_context_objfile, spe_context_lm_addr, spe_context_offset): New static variables. (spe_context_cache_ptid, spe_context_cache_address): Likewise. (ppc_linux_spe_context_lookup): New function. (ppc_linux_spe_context_inferior_created): Likewise. (ppc_linux_spe_context_solib_loaded): Likewise. (ppc_linux_spe_context_solib_unloaded): Likewise. (ppc_linux_spe_context): Likewise. (struct ppu2spu_cache, struct ppu2spu_data): New data types. (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register, ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache): New functions. (ppu2spu_unwind): New static variable. (ppc_linux_init_abi): Install cross-architecture unwinder. (_initialize_ppc_linux_tdep): Attach to observers. * spu-tdep.c (struct spu2ppu_cache): New data type. (spu2ppu_prev_arch, spu2ppu_this_id, spu2ppu_prev_register, spu2ppu_sniffer, spu2ppu_dealloc_cache): New functions. (spu2ppu_unwind): New static variable. (spu_gdbarch_init): Install cross-architecture unwinder.
2009-07-31 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.Ulrich Weigand2-7/+97
(parse_spufs_run): New function. (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC. (ppc_breakpoint_at): Handle SPU breakpoints.
2009-07-31ChangeLog:Ulrich Weigand14-47/+1176
* target.h (enum strata): New value arch_stratum. * target.c (target_require_runnable): Skip arch_stratum targets. * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add solib-spu.o and spu-multiarch.o to gdb_target_obs. * Makefile.in (ALL_TARGET_OBS): Add solib-spu.o and spu-multiarch.o. (ALLDEPFILES): Add solib-spu.c and spu-multiarch.c. * solib-spu.c: New file. * solib-spu.h: New file. * spu-multiarch.c: New file. * spu-tdep.h (SPUADDR, SPUADDR_SPU, SPUADDR_ADDR): New macros. * spu-tdep.c (struct gdbarch_tdep): New member id. (spu_gdbarch_id): New function. (spu_lslr): New function. (spu_address_to_pointer): New function. (spu_pointer_to_address): Support SPU ID address encoding. Use spu_gdbarch_id and spu_lslr. (spu_integer_to_address): Likewise. (spu_frame_unwind_cache): Update for encoded addresses. (spu_unwind_pc, spu_unwind_sp): Likewise. (spu_read_pc, spu_write_pc): Likewise. (spu_push_dummy_call): Likewise. (spu_software_single_step): Likewise. (spu_get_longjmp_target): Likewise. (spu_overlay_update_osect): Likewise. (spu_dis_asm_print_address): New function. (gdb_print_insn_spu): Likewise. (spu_gdbarch_init): Store SPU ID in tdep structure. Install spu_address_to_pointer and gdb_print_insn_spu. * ppc-linux-tdep.c: Include "observer.h", "auxv.h", "elf/common.h" and "solib-spu.h". (ppc_linux_entry_point_addr): New static variable. (ppc_linux_inferior_created): New function. (ppc_linux_displaced_step_location): Likewise. (ppc_linux_init_abi): Enable Cell/B.E. support if supported by the target. (_initialize_ppc_linux_tdep): Attach to inferior_created observer. * NEWS: Mention multi-architecture and Cell/B.E. debugging capabilities. testsuite/ChangeLog: * gdb.xml/tdesc-regs.exp: Skip for SPU targets.