aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-03-08 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.Pierre Muller2-1/+5
2010-03-08 * config/tc-i386.h [TE_SOLARIS] (ELF_TARGET_FORMAT): Define.Rainer Orth2-1/+11
(ELF_TARGET_FORMAT64): Define.
2010-03-082010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>Hui Zhu3-0/+19
Hui Zhu <teawater@gmail.com> * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and tmp_to_stopped_data_address. (record_open): Reset tmp_to_stopped_by_watchpoint and tmp_to_stopped_data_address. * target.c (init_dummy_target): Add to_stopped_by_watchpoint and to_stopped_data_address.
2010-03-082010-03-08 Hui Zhu <teawater@gmail.com>Hui Zhu2-1/+5
* i386-tdep.c (i386_process_record): Initialize regnum.
2010-03-08gdb/Jan Kratochvil2-3/+23
* symfile.c (addr_info_make_relative): New variable sect_name, use it. Do not warn on ".gnu.liblist" and ".gnu.conflict".
2010-03-08Memory error when reading wrong core file.Joel Brobecker2-2/+16
* solib-svr4.c (solib_svr4_r_map): catch and print all exception errors while reading the inferior memory, and return zero if an exception was raised.
2010-03-082010-03-07 Michael Snyder <msnyder@vmware.com>Michael Snyder2-3/+5
* record.c (record_restore): Rename tmpu8 to rectype.
2010-03-082010-03-07 Michael Snyder <msnyder@vmware.com>Michael Snyder2-73/+83
* i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64. (i386_record_push): Rename local tmpulongest to addr. (i386_process_record): Rename local tmpulongest to addr.
2010-03-082010-03-07 Michael Snyder <msnyder@vmware.com>Michael Snyder2-46/+50
* i386-tdep.c (i386_process_record): Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32, addr64.
2010-03-082010-03-07 Michael Snyder <msnyder@vmware.com>Michael Snyder2-31/+39
* i386-tdep.c (i386_process_record): Rename tmpu8 to opcode8 and regnum.
2010-03-08*** empty log message ***gdbadmin1-1/+1
2010-03-07daily updateAlan Modra1-1/+1
2010-03-07Assertion failure after Ada task switch (target remote).Joel Brobecker2-0/+16
* remote.c (remote_get_ada_task_ptid): New function. (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
2010-03-07*** empty log message ***gdbadmin1-1/+1
2010-03-06daily updateAlan Modra1-1/+1
2010-03-06* windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one block.Christopher Faylor2-102/+144
Define helper macros to reduce ifdefs in code. (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer size. Call unadorned GetModuleFileNameEx rather than GetModuleFileNameEx*. (windows_make_so): Use __PMAX to denote maximum buffer size and cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as appropriate. (get_image_name): Use __PMAX to denote maximum buffer size. (handle_load_dll): Likewise. (windows_pid_to_exec_file): Likewise. (windows_create_inferior): Add many accommodations for older Cygwin and non-Cygwin. (bad_GetModuleFileNameExW): Control inclusion of this function based on __USEWIDE conditional. (bad_GetModuleFileNameExA): Likewise. (_initialize_loadable): Just use real function names without the dyn_ part since they are defined earlier.
2010-03-06 * options.h (class General_options): Add --spare-dynamic-tags.Ian Lance Taylor3-3/+17
* output.cc (Output_data_dynamic::set_final_data_size): Implement --spare-dynamic-tags.
2010-03-062010-03-06 Simo Melenius <simo.melenius@iki.fi>Pedro Alves2-1/+7
* linux-low.c (linux_wait_for_lwp): Fetch the regcache after switching the current inferior, not before.
2010-03-06*** empty log message ***gdbadmin1-1/+1
2010-03-05 * incremental.cc: Include "libiberty.h".Ian Lance Taylor2-0/+5
2010-03-05 include:Rainer Orth9-9/+54
* elf/common.h (VER_FLG_*): Document. (VER_FLG_INFO): Define. gold: * dynobj.h (Verdef::Verdef): Add is_info arg, is_info member function, is_info_ member. * dynobj.cc (Verdef::write): Set VER_FLG_INFO if this->is_info_. (Versions::Versions): Update caller. (Versions::define_base_version): Likewise. (Versions::add_def): Likewise. elfcpp: * elfcpp.h (VER_FLG_INFO): Define. binutils: * readelf.c (get_ver_flags): Handle VER_FLG_INFO.
2010-03-05gdbTom Tromey25-73/+398
2010-03-05 Corinna Vinschen <vinschen@redhat.com> Tom Tromey <tromey@redhat.com> * utils.c (host_char_to_target): Add 'gdbarch' argument. (parse_escape): Likewise. * python/py-utils.c (unicode_to_target_string): Update. (unicode_to_target_python_string): Update. (target_string_to_unicode): Update. * printcmd.c (printf_command): Update. * p-exp.y (yylex): Update. * objc-exp.y (yylex): Update. * mi/mi-parse.c: Include charset.h. (mi_parse_escape): New function. (mi_parse_argv): Use it. * jv-exp.y (yylex): Update. * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New function. (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset. * gdbarch.sh (auto_charset, auto_wide_charset): New. * gdbarch.c: Rebuild. * gdbarch.h: Rebuild. * defs.h (parse_escape): Update. * cli/cli-setshow.c: Include arch-utils.h. (do_setshow_command): Update. * cli/cli-cmds.c (echo_command): Update. * charset.h (target_charset, target_wide_charset): Update. * charset.c: Include arch-utils.h. (target_charset_name): Default to "auto". (target_wide_charset_name): Likewise. (show_target_charset_name): Handle "auto". (show_target_wide_charset_name): Likewise. (be_le_arch): New global. (set_be_le_names): Add 'gdbarch' argument. (validate): Likewise. Don't call set_be_le_names. (set_charset_sfunc, set_host_charset_sfunc) (set_target_charset_sfunc, set_target_wide_charset_sfunc): Update. (target_charset): Add 'gdbarch' argument. (target_wide_charset): Likewise. Remove 'byte_order' argument. (auto_target_charset_name): New global. (default_auto_charset, default_auto_wide_charset): New functions. (_initialize_charset): Set auto_target_charset_name. Allow "auto" for target charsets. Copy result of nl_langinfo. Use GetACP if USE_WIN32API. * c-lang.c (charset_for_string_type): Add 'gdbarch' argument, remove 'byte_order' argument. Update. (classify_type): Likewise. (c_emit_char): Update. (c_printchar): Update. (c_printstr): Update. (c_get_string): Update. (evaluate_subexp_c): Update. * arch-utils.h (default_auto_charset, default_auto_wide_charset): Declare. * python/python.c (gdbpy_target_charset): New function. (gdbpy_target_wide_charset): Likewise. (GdbMethods): Update. * NEWS: Update. gdb/doc * gdb.texinfo (Basic Python): Document target_charset and target_wide_charset. gdb/testsuite * gdb.python/py-prettyprint.py (pp_nullstr.to_string): Use gdb.target_charset. (pp_ns.to_string): Likewise.
2010-03-05 * gdb.texinfo (Data): Link to pretty-printing.Tom Tromey2-3/+11
(Output Formats): Likewise. Correct text.
2010-03-05 ld:Rainer Orth17-18/+317
* Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o, eelf_i386_sol2.o. (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o. (eelf32_sparc_sol2.c): New rule. (eelf64_sparc_sol2.c): Likewise. (eelf_x86_64_sol2.c): Likewise. (eelf_i386_sol2.c): Likewise. * Makefile.in: Regenerate. * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to elf_i386_sol2. Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls. (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2. Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls. (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2. Add target_extra_emuls. (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2. Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls. (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2. Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls. * emulparams/elf32_sparc_sol2.sh: New file. * emulparams/elf64_sparc_sol2.sh: New file. * emulparams/elf_i386_sol2.sh: New file. * emulparams/elf_x86_64_sol2.sh: New file. * emultempl/solaris2.em: New file. bfd: * elflink.c (bfd_elf_size_dynamic_sections): Don't emit base version twice. Skip it when constructing def.vd_next. * elf32-i386.c (TARGET_LITTLE_SYM): Redefine to bfd_elf32_i386_sol2_vec. (TARGET_LITTLE_NAME): Redefine to elf32-i386-sol2. (elf32_bed): Redefine to elf32_i386_sol2_bed. (elf_backend_want_plt_sym): Redefine to 1. * elf64-x86-64.c (TARGET_LITTLE_SYM): Redefine to bfd_elf64_x86_64_sol2_vec. (TARGET_LITTLE_NAME): Redefine to elf64-x86-64-sol2. (elf64_bed): Redefine to elf64_x86_64_sol2_bed. (elf_backend_want_plt_sym): Redefine to 1. * config.bfd (i[3-7]86-*-solaris2*): Set targ_defvec to bfd_elf32_i386_sol2_vec. Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in targ64_selvecs. (x86_64-*-solaris2*): Set targ_defvec to bfd_elf32_i386_sol2_vec. Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in targ_selvecs. * configure.in: Handle bfd_elf32_i386_sol2_vec, bfd_elf64_x86_64_sol2_vec. * configure: Regenerate. * targets.c (bfd_elf32_i386_sol2_vec): Declare. (bfd_elf64_x86_64_sol2_vec): Declare. (_bfd_target_vector): Add bfd_elf32_i386_sol2_vec, bfd_elf64_x86_64_sol2_vec.
2010-03-05 * symfile.c (build_section_addr_info_from_objfile): Do not maskUlrich Weigand2-6/+6
off high address bits.
2010-03-05 * python/py-lazy-string.c (gdbpy_extract_lazy_string): ExtractUlrich Weigand2-1/+6
address as UnsignedLongLong, not LongLong.
2010-03-05 * remote-mips.c (gdbthread.h): Include.Kevin Buettner2-15/+68
(remote_mips_ptid): Declare. (mips_error): Only mourn the inferior when inferior_ptid is non-null. (common_open): Set inferior_ptid, add it as an inferior, and as a thread too. Delete FIXME comment regarding start_remote(). (mips_close): Invoke generic_mourn_inferior(). (mips_kill): Make sure that target_mourn_inferior is invoked. (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as it's now invoked from mips_close(). (mips_load): Don't null out inferior_ptid. Don't call clear_symtab_users(). (mips_thread_alive, mips_pid_to_str): New functions. (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize to_thread_alive and to_pid_to_str operations.
2010-03-052010-03-05 Paul Brook <paul@codesourcery.com>Paul Brook2-0/+5
gas/ * config/tc-arm.c (arm_cpu_option_table): Add cortex-m4.
2010-03-05*** empty log message ***gdbadmin1-1/+1
2010-03-04daily updateAlan Modra1-1/+1
2010-03-04 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset sizeTom Tromey2-2/+21
in DWARF 3 and later. (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
2010-03-04 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,Doug Evans2-2/+3
unwound_fp.
2010-03-04 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.Keith Seitz2-7/+32
If the filename portion of the linespec was quoted, recheck the remainder for additional quoting. (locate_first_half): Skip over completer chars, too.
2010-03-04 * gdb.cp/overload.exp: Test that the filename portion of a linespecKeith Seitz2-0/+8
can be quoted. Test that both the filename and function/line portions can be quoted at the same time.
2010-03-04 * printcmd.c (printf_command): Pass dummy argument toTom Tromey2-2/+9
printf_filtered.
2010-03-04 * elf32-arm.c (elf32_arm_output_arch_local_syms): Skip non-programDaniel Jacobowitz2-0/+7
sections.
2010-03-04 PR libstdc++/32499Rainer Orth3-7/+15
* configure.ac (RANLIB): Default to true. (STRIP): Likewise. (RANLIB_FOR_TARGET): Remove superfluous : argument. * configure: Regenerate.
2010-03-04 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.Doug Evans2-0/+6
2010-03-04 gdb/Pedro Alves5-1/+98
* breakpoint.c (update_watchpoint): Create a sentinel location if the software watchpoint isn't watching any memory. (breakpoint_address_bits): Skip dummy software watchpoint locations. gdb/testsuite/ * gdb.base/watch-non-mem.c, gdb.base/watch-non-mem.exp: New.
2010-03-04 * utils.c (fputs_maybe_filtered): Check if there's already a topPedro Alves2-0/+7
level interpreter before dereferencing it. If there isn't one, don't paginate either.
2010-03-042010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>Daniel Jacobowitz2-48/+80
* arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get the state right when single stepping. (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions. Get the next PC along with the instruction state. (thumb_get_next_pc): Remove. (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
2010-03-042010-03-04 Hui Zhu <teawater@gmail.com>Hui Zhu2-1/+5
* i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
2010-03-04 PR 11302Alan Modra2-60/+130
* dwarf2.c (read_abbrevs): Return NULL on alloc failures. (read_attribute_value, decode_line_info): Likewise. (add_line_info, read_rangelist): Return FALSE on alloc failures. (arange_add, sort_line_sequences): Likewise. (find_abstract_instance_name): Handle failures from called funcs. (scan_unit_for_symbols, parse_comp_unit, decode_line_info): Likewise. (find_line): Realloc to a temp, and handle alloc fail.
2010-03-04 * i386.cc (Target_i386::can_check_for_function_pointers): New function.Sriraman Tallam7-36/+148
(Scan::possible_function_pointer_reloc): New function. (Scan::local_reloc_may_be_function_pointer): Change to call possible_function_pointer_reloc. (Scan::global_reloc_may_be_function_pointer): Ditto. * icf.h (Icf::check_section_for_function_pointers): Change to reject relocations in ".data.rel.ro._ZTV" section. * testsuite/icf_safe_so_test.sh: Change to pass i386. * testsuite/icf_safe_so_test.cc: Ditto. * testsuite/icf_safe_test.cc: Ditto. * testsuite/icf_safe_test.sh: Ditto.
2010-03-04 * utils.c (fputs_maybe_filtered): Always disable pagination if thePedro Alves2-3/+11
top level interpreter is MI.
2010-03-042010-03-03 Stan Shebs <stan@codesourcery.com>Stan Shebs3-148/+182
* remote.c (remote_download_tracepoint): Iterate over locations. * tracepoint.c (validate_actionline): Ditto. (encode_actions): Add location argument. (trace_dump_command): Check all locations to see if stepping frame.
2010-03-04*** empty log message ***gdbadmin1-1/+1
2010-03-03daily updateAlan Modra1-1/+1
2010-03-03 * lib/gdb.exp (gdb_compile_pthreads): Handle case whereDoug Evans2-1/+4
libc contains libpthread.
2010-03-03 * gdb.threads/linux-dp.c (shared_random): Call rand instead of rand_r.Doug Evans3-5/+10
* gdb.threads/linux-dp.exp: Compile with gdb_compile_pthreads instead of gdb_compile. Add another pattern to match android backtrace.