aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2013-03-01gdb/Jan Kratochvil2-1/+7
* dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc, use it.
2013-03-01Use gdb_byte for bytes from the program being debugged.Pedro Alves36-93/+167
gdb_byte should be used for bytes from the program being debugged. We have many places using char or unsigned char instead all over the existing ports, and more ends up added over time due to copy/paste as new code is based on old code. I've greped the tree for "char buf[", and fixed all I found. Tested by building with --enable-targets=all. 2013-03-01 Pedro Alves <palves@redhat.com> Use gdb_byte for bytes from the program being debugged. * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target): Change type of local 'buf' to gdb_byte. * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise. * bfin-tdep.c (bfin_push_dummy_call): Likewise. * cris-tdep.c (cris_sigcontext_addr) (cris_sigtramp_frame_unwind_cache): Likewise. * frv-linux-tdep.c (frv_linux_pc_in_sigtramp) (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache): Likewise. * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise. * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer) (hppa32_hpux_search_dummy_call_sequence) (hppa_hpux_supply_save_state): Likewise. * hppa-linux-tdep.c (insns_match_pattern) (hppa_linux_find_global_pointer): Likewise. * hppa-tdep.c (hppa_in_function_epilogue_p) (skip_prologue_hard_way, hppa_frame_cache): Likewise. * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise. * i386fbsd-tdep.c (i386fbsd_supply_uthread) (i386fbsd_collect_uthread): Likewise. * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise. * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise. * ia64-tdep.c (examine_prologue, ia64_frame_cache) (ia64_frame_prev_register, ia64_sigtramp_frame_cache) (ia64_sigtramp_frame_prev_register, ia64_access_reg) (ia64_access_rse_reg, ia64_libunwind_frame_this_id) (ia64_libunwind_frame_prev_register) (ia64_libunwind_sigtramp_frame_this_id) (ia64_find_global_pointer_from_dynamic_section) (find_extant_func_descr, find_func_descr, ia64_dummy_id) (ia64_unwind_pc): Likewise. * iq2000-tdep.c (iq2000_store_return_value): Likewise. * m68hc11-tdep.c (m68hc11_push_dummy_call) (m68hc11_extract_return_value): Likewise. * m68klinux-nat.c (fetch_register, store_register): Likewise. * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write) (mep_get_insn, mep_push_dummy_call): Likewise. * mips-linux-tdep.c (mips_linux_get_longjmp_target) (mips_linux_in_dynsym_stub): Likewise. * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise. * ppc-linux-nat.c (fetch_register, store_register): Likewise. * regcache.c (dump_endian_bytes): Change type of parameter 'buf' to gdb_byte. * remote-mips.c (mips_set_register): Likewise. * remote-sim.c (gdbsim_fetch_register): Likewise. * score-tdep.c (score7_fetch_inst): Change type of parameter 'memblock' and local 'buf' to gdb_byte. (score7_malloc_and_get_memblock): Change return type to gdb_byte. Change type of local 'buf' to gdb_byte. Adjust. (score7_adjust_memblock_ptr): Change type of parameter 'memblock' to gdb_byte**. (score7_analyze_prologue): Change type of 'memblock' and 'memblock_ptr' locals to gdb_byte*. * sh64-tdep.c (sh64_extract_return_value) (sh64_store_return_value): Change type of local 'buf' to gdb_byte. * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr): * solib-pa64.c (pa64_solib_create_inferior_hook) (pa64_open_symbol_file_object): Remove local 'buf'. * solib-som.c (som_solib_create_inferior_hook, link_map_start) (som_open_symbol_file_object): Likewise. * solib-spu.c (spu_current_sos): Likewise. * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise. * spu-multiarch.c (parse_spufs_run, spu_fetch_registers) (spu_store_registers): Likewise. * target.c (debug_print_register): Likewise. * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise. * xstormy16-tdep.c (xstormy16_store_return_value) (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry) (xstormy16_find_jmp_table_entry): Likewise.
2013-03-01Revise the commit date of my ChangeLog entry.Jiong Wang1-1/+1
2013-03-01Implement get_longjmp_target for tilegx.Jiong Wang2-0/+29
gdb/ * tilegx-tdep.c (tilegx_get_longjmp_target): New function. (tilegx_gdbarch_init): Install it.
2013-03-01Add missing file from the previous commit.Jiong Wang1-0/+67
(forget to "cvs add" it)
2013-03-01*** empty log message ***gdbadmin1-1/+1
2013-02-28 * python/py-arch.c (archpy_disassemble): Use PyInt_Check andTom Tromey2-3/+8
PyLong_Check.
2013-02-28 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.Doug Evans3-2/+8
* python/python.c (gdbpy_find_pc_line): Ditto.
2013-02-28 * contrib/excheck.py: New file.Tom Tromey4-0/+515
* contrib/exsummary.py: New file. * contrib/gcc-with-excheck: New file.
2013-02-28 * python/python.c (gdbpy_print_stack): Call begin_line andTom Tromey2-10/+24
fprintf_filtered inside TRY_CATCH.
2013-02-28 * python/python.c (gdbpy_find_pc_line): Call find_pc_lineTom Tromey2-5/+19
inside TRY_CATCH.
2013-02-28 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to callTom Tromey2-35/+39
frame_object_to_frame_info inside TRY_CATCH.
2013-02-28 * py-block.c (gdbpy_block_for_pc): Call block_for_pc insideTom Tromey2-2/+9
TRY_CATCH.
2013-02-28 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.Tom Tromey2-1/+5
2013-02-28 * configure.ac: Invoke AC_SYS_LARGEFILE.Tom Tromey4-0/+212
* configure, config.in: Rebuild.
2013-02-28 * win32-low.c: Throughout, fix format strings and casts ofCorinna Vinschen2-15/+23
printf-like functions to avoid type related warnings on all platforms. (get_child_debug_event): Print dwDebugEventCode as hex since that's how it's usually documented.
2013-02-28gdb/gdbserver/Yao Qi2-1/+6
* tracepoint.c (cmd_qtbuffer): Call phex_nz instead of pulongest.
2013-02-28gdb/gdbserver/Yao Qi2-140/+181
* gdb.trace/report.exp: Move some code to ... (use_collected_data): New. (top level): Call use_collected_data once on the live target. Save at file of the current trace session, load it with target tfile, and call use_collected_data again.
2013-02-28*** empty log message ***gdbadmin1-1/+1
2013-02-27 * windows-nat.c: Throughout, fix format strings and casts ofCorinna Vinschen2-32/+42
printf-like functions to avoid type related warnings on all platforms. (handle_output_debug_string): Fetch context information address from debug string using string_to_core_addr.
2013-02-27gdb/testsuite/Jan Kratochvil2-0/+6
* gdb.threads/fork-thread-pending.c (main): Add alarm.
2013-02-27gdb/testsuite/Jan Kratochvil2-0/+9
* gdb.base/valgrind-infcall.exp (valgrind_pid): New variable. Add final kill of ${valgrind_pid}.
2013-02-27 gdb/Jiong Wang6-6/+48
* regformats/reg-tilegx.dat (name): Change abi name to "tilegx". * regformats/reg-tilegx32.dat: New. gdbserver/ * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c. (reg-tilegx32.c): New rule. * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj. * linux-tile-low.c (tile_arch_setup): New function. Invoke different register info initializer according to elf class. (init_registers_tilgx32): New function. The tilegx32 register info initializer. (tile_fill_gregset): Use "uint_reg_t" to represent register size. (tile_store_gregset): Likewise.
2013-02-27 gdb/Jiong Wang2-0/+5
* configure.tgt (tilegx-*-linux*): Enable gdbserver.
2013-02-27 gdb/Jiong Wang2-3/+7
* configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
2013-02-27gdb/gdbserver/Yao Qi2-1/+7
* server.c (process_point_options): Print debug message when debug_threads is true.
2013-02-27gdb/Yao Qi2-25/+43
2013-02-27 Yao Qi <yao@codesourcery.com> Pedro Alves <palves@redhat.com> * tracepoint.c (tfile_trace_find): For tfind pc/tp/range/outside, look for the next trace frame instead of always starting from frame 0.
2013-02-27*** empty log message ***gdbadmin1-1/+1
2013-02-26Add moxie-*-rtems* support.Anthony Green2-1/+5
2013-02-26gdb/gdbserver/Yao Qi2-1/+4
* tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
2013-02-26*** empty log message ***gdbadmin1-1/+1
2013-02-25Tweak warning output on Linux kernels with broken i386 NX support.Pedro Alves2-2/+8
The "you have broken" bit of this text reads to me as if I had broken it myself somehow. This patch eliminates that ambiguity. 2013-02-25 Pedro Alves <palves@redhat.com> * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change warning text.
2013-02-25*** empty log message ***gdbadmin1-1/+1
2013-02-24 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zeroMaciej W. Rozycki2-0/+6
if $fp is used as the virtual frame pointer.
2013-02-24*** empty log message ***gdbadmin1-1/+1
2013-02-23*** empty log message ***gdbadmin1-1/+1
2013-02-22 * elfread.c (elf_symtab_read): Do not use udata.p here to findAlan Modra6-13/+38
symbol size. * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function. * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare. * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above. * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
2013-02-22gdb/Jan Kratochvil2-6/+15
Code cleanup. * elfread.c (build_id_bfd_get): Make the return type const. (build_id_verify): Make the check parameter const. (build_id_to_debug_filename): Make the build_id parameter and variable data const. (find_separate_debug_file_by_buildid): Make the variable build_id const.
2013-02-22*** empty log message ***gdbadmin1-1/+1
2013-02-21 * gdb.texinfo: Remove bad @syncodeindex.Tom Tromey2-71/+34
(Values From Inferior, Types In Python, Inferiors In Python) (Events In Python, Threads In Python, Frames In Python, Blocks In Python, Symbols In Python, Symbol Tables In Python): Remove @tables. (Packets, General Query Packets, Tracepoint Packets) (Host I/O Packets): Use @w{} for empty @item.
2013-02-21bfd/Alan Modra2-3/+6
* elf-bfd.h (struct elf_build_id): Extracted from.. (struct elf_build_id_info): ..here. Delete. (struct output_elf_obj_tdata): New, extracted from.. (struct elf_obj_tdata): ..here. Reorganize for better packing. Add "o" field. (elf_program_header_size): Reference tdata->o. (elf_seg_map, elf_next_file_pos, elf_eh_frame_hdr, elf_linker, elf_stack_flags, elf_shstrtab, elf_strtab_sec, elf_shstrtab_sec, elf_section_syms, elf_num_section_syms, elf_flags_init): Likewise. * elf.c (bfd_elf_allocate_object): Allocate output_elf_obj_tdata when opening bfd in any mode that might write. (_bfd_elf_write_object_contents): Use build_id field in output_elf_obj_tdata. (_bfd_elf_close_and_cleanup): Tweak elf_shstrtab test. (elfobj_grok_gnu_build_id): Adjust for elf_tdata changes. gdb/ * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes. ld/ * emultempl/elf32.em (write_build_id, setup_build_id): Adjust for elf_tdata changes.
2013-02-21 Add a new method 'disassemble' to gdb.Architecture class.Siva Chandra Reddy8-1/+279
* python/py-arch.c (archpy_disassmble): Implementation of the new method gdb.Architecture.disassemble. (arch_object_methods): Add entry for the new method. * doc/gdb.texinfo (Architectures In Python): Add description about the new method gdb.Architecture.disassemble. * testsuite/gdb.python/py-arch.c: New test case * testsuite/gdb.python/py-arch.exp: New tests to test gdb.Architecture.disassemble * testsuite/gdb.python/Makefile.in: Add py-arch to the list of EXECUTABLES.
2013-02-21*** empty log message ***gdbadmin1-1/+1
2013-02-20 gdb/Jiong Wang2-3/+8
* MAINTAINERS (Write After Approval): Add myself to the list.
2013-02-20*** empty log message ***gdbadmin1-1/+1
2013-02-19gdbserver:server.c - use unpack_varlen_hex to extract hex numbers.Pedro Alves2-5/+17
Addresses, as most numbers in the RSP are hex encoded, with variable length (that just means the width isn't specified, and there's no top cap. So they should be extracted with unpack_varlen_hex. A couple spots in server.c are using strto(u)l, which doesn't work on LLP64 targets. This patch fixes it. Tested on x86_64 Fedora 17. 2013-02-19 Pedro Alves <palves@redhat.com> Kai Tietz <ktietz@redhat.com> PR gdb/15161 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex instead of strtoul to extract address from packet. (process_serial_event) <'z'>: Likewise.
2013-02-19Garbage collect struct monitor_ops::load_routine.Pedro Alves6-43/+43
While touching monitor_load in a previous patch, I noticed this method is no longer set to anything other than NULL in the tree, so we can remove it. Tested by building with --enable-targets=all. 2013-02-19 Pedro Alves <palves@redhat.com> Garbage collect 'struct monitor_ops'::load_routine. * monitor.h (struct monitor_ops) <load_routine>: Remove field. * monitor.c (monitor_load): No longer call current_monitor->load_routine. * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'. * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'. * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
2013-02-19Harmonize this monitor_load with generic_load.Pedro Alves2-11/+46
Harmonize this old-looking code with generic_load, which fixes several issues. 2013-02-19 Pedro Alves <palves@redhat.com> PR gdb/15161 Harmonize with generic_load. * monitor.c: Include "readline/readline.h". (monitor_load): Rename parameter 'file' to 'args'. Use build_argv instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned long/strtol for the 'load_offset' local. Error out if no argument is given or if too many arguments are given. Tilde expand the passed in file name.
2013-02-19 PR gdb/15161Kai Tietz2-3/+11
* symfile.c (load_section_data): Change type of load_offset to CORE_ADDR. (generic_load): User strtoulst instead of strtoul for conversion of load_offset.
2013-02-19 * tilegx-tdep.c (tilegx_analyze_prologue): add check forWalter Lee2-4/+24
for return address, "lr" register, saved on stack. * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg after we invoke tilegx_analyze_prologue.