aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-12-20config/:Andreas Schwab6-3/+16
* warnings.m4 (ACX_PROG_CC_WARNING_OPTS): Avoid leading dash in expr call. libdecnumber/: * configure: Regenerate. libiberty/: * configure: Regenerate.
2011-12-202011-12-20 Pedro Alves <alves.ped@gmail.com>Pedro Alves4-1/+41
Jan Kratochvil <jan.kratochvil@redhat.com> * linux-nat.c (add_lwp): Don't call linux_nat_new_thread on the first LWP. * amd64-linux-nat.c (update_debug_registers_callback): Instantiate `lwp->arch_private' if NULL. (amd64_linux_prepare_to_resume): Do nothing if `lwp->arch_private' is NULL. * i386-linux-nat.c (update_debug_registers_callback): Instantiate `lwp->arch_private' if NULL. (i386_linux_prepare_to_resume): Do nothing if `lwp->arch_private' is NULL.
2011-12-20 * python/py-auto-load.c (info_auto_load_scripts): Pass address ofDoug Evans2-3/+10
scripts vector to collect_matching_scripts. (collect_matching_scripts): Update.
2011-12-20*** empty log message ***gdbadmin1-1/+1
2011-12-19gdb/Jan Kratochvil5-22/+49
* symfile.c (reread_symbols): Move free_objfile_separate_debug, preserve_values, sym_finish and clear_objfile_data calls before BFD close. Move free_objfile_separate_debug as the very first call. New comment on the ordering. gdb/testsuite/ * gdb.base/reread.exp: If srcfile2 fails to build retry it with -DNO_SECTIONS. * gdb.base/reread2.c <!NO_SECTIONS>: New sections block.
2011-12-19 * s390-tdep.c (s390_push_dummy_call): Set addressing mode bitUlrich Weigand2-2/+13
in return PSWA.
2011-12-19 * object.h (Relobj::local_symbol_value): New function.Ian Lance Taylor11-264/+475
(Relobj::local_plt_offset): New function. (Relobj::local_has_got_offset): New function. (Relobj::local_got_offset): New function. (Relobj::set_local_got_offset): New function. (Relobj::do_local_symbol_value): New pure virtual function. (Relobj::do_local_plt_offset): Likewise. (Relobj::do_local_has_got_offset): Likewise. (Relobj::do_local_got_offset): Likewise. (Relobj::do_set_local_got_offset): Likewise. (Sized_relobj::do_local_has_got_offset): Rename from local_has_got_offset. (Sized_relobj::do_local_got_offset): Rename from local_got_offset. (Sized_relobj::do_set_local_got_offset): Rename from set_local_got_offset. (Sized_relobj_file::do_local_plt_offset): Rename from local_plt_offset. (Sized_relobj_file::do_local_symbol_value): New function. * object.cc (Sized_relobj_file::do_local_plt_offset): Rename from local_plt_offset. * output.cc (Output_data_got::Got_entry::write): Change object to Relobj. Use local_symbol_value. (Output_data_got::add_global_with_rel): Change rel_dyn to Output_data_reloc_generic*. Use add_global_generic. (Output_data_got::add_global_with_rela): Remove. Change all callers to use add_global_with_rel. (Output_data_got::add_global_pair_with_rel): Change rel_dyn to Output_data_reloc_generic*. Use add_global_generic. (Output_data_got::add_global_pair_with_rela): Remove. Change all callers to use add_global_pair_with_rel. (Output_data_got::add_local): Change object to Relobj*. (Output_data_got::add_local_plt): Likewise. (Output_data_got::add_local_with_rel): Change object to Relobj*, change rel_dyn to Output_data_reloc_generic*. Use add_local_generic. (Output_data_got::add_local_with_rela): Remove. Change all callers to use all_local_with_rel. (Output_data_got::add_local_pair_with_rel): Change object to Relobj*, change rel_dyn to Output_data_reloc_generic*. Use add_output_section_generic. (Output_data_got::add_local_pair_with_rela): Remove. Change all callers to use add_local_pair_with_rel. (Output_data_got::reserve_local): Change object to Relobj*. * output.h: (class Output_data_reloc_generic): Add pure virtual declarations for add_global_generic, add_local_generic, add_output_section_generic. (class Output_data_reloc) [SHT_REL, SHT_RELA]: Implement new functions for Output_data_reloc_generic. Update declarations for changes listed in output.cc. (class Output_data_got): Change template parameter to got_size. Don't define Rel_dyn or Rela_dyn. Update declarations per above. * incremental.h (Sized_relobj_incr::do_local_symbol_value): New function. (Sized_relobj_incr::do_local_plt_offset): New function. * copy-relocs.cc (Copy_relocs::Copy_reloc_entry::emit): Call add_global_generic.
2011-12-19 * symtab.h (add_minsym_to_hash_table): Don't declare.Tom Tromey3-5/+6
* minsyms.c (add_minsym_to_hash_table): Now static.
2011-12-19bfd:Iain Sandoe13-25/+137
* mach-o-i386.c (bfd_mach_o_section_type_valid_for_tgt): Define NULL. * mach-o-target.c (bfd_mach_o_backend_data): Initialize bfd_mach_o_section_type_valid_for_tgt * mach-o-x86-64.c (bfd_mach_o_section_type_valid_for_x86_64): New. (bfd_mach_o_section_type_valid_for_tgt): Set to bfd_mach_o_section_type_valid_for_x86_64. * mach-o.c (bfd_mach_o_section_type_name): Reorder and eliminate dup. (bfd_mach_o_section_attribute_name): Reorder. (bfd_mach_o_get_section_type_from_name): If the target has defined a validator for section types, then use it. * mach-o.h (bfd_mach_o_get_section_type_from_name): Alter declaration to include the bfd. gas: * config/obj-macho.c (obj_mach_o_section): Account for target-dependent section types. Improve error handling when wrong section types/attributes are specified. gas/testsuite: * gas/mach-o/err-sections-1.s: New. * gas/mach-o/err-sections-2.s: New. * gas/mach-o/sections-3.d: New. * gas/mach-o/sections-3.s: New.
2011-12-19gdb/testsuite/Jan Kratochvil3-2/+16
* gdb.cp/ptype-cv-cp.exp (ptype v_volatile_const_my_int): Make PR gcc/45997 XFAIL conditional for gcc <= 4.5. * gdb.python/py-type.exp (python print ttype.template_argument(2)): Change PR gcc/41736 to the more specific PR gcc/46955. Make it conditional for gcc <= 4.5.
2011-12-19gdb/doc/Jan Kratochvil7-10/+69
* gdbint.texinfo (Testsuite): Describe KFAIL and XFAIL in Writing tests. gdb/testsuite/ * gdb.cp/ptype-cv-cp.exp (ptype v_volatile_const_my_int): Replace KFAIL by XFAIL. * gdb.cp/static-method.exp (info addr A::func()) (list static-method.cc:xxx::(anonymous namespace)::A::func) (list 'static-method.cc:xxx::(anonymous namespace)::A::func') (list 'static-method.cc':'xxx::(anonymous namespace)::A::func') (list static-method.cc:'xxx::(anonymous namespace)::A::func'): Likewise. * gdb.cp/temargs.exp (test value of F in k2_m, test type of F in k3_m) (test value of F in k3_m): Likewise. * gdb.python/py-type.exp (python print ttype.template_argument(2)): Likewise.
2011-12-19Check for warning flags without no- prefixAndreas Schwab6-20/+60
config/: * warnings.m4 (ACX_PROG_CC_WARNING_OPTS) (ACX_PROG_CC_WARNING_ALMOST_PEDANTIC): Run the test without the no- prefix. libdecnumber/: * configure: Regenerate. libiberty/: * configure: Regenerate.
2011-12-19gdb/testsuite/Jan Kratochvil4-370/+11
* gdb.threads/attach-stopped.exp (continue (*: attach2 continue)) (*: attach2 stop interrupt, *: attach2, exit leaves process sleeping): Remove. * gdb.threads/attachstop-mt.c: Remove. * gdb.threads/attachstop-mt.exp: Remove.
2011-12-192011-12-19 Chung-Lin Tang <cltang@codesourcery.com>Chung-Lin Tang12-21/+727
gas/ * config/tc-mips.c (mips_pseudo_table): Add tprelword/tpreldword entries. (mips16_percent_op): Add MIPS16 TLS relocation ops. (md_apply_fix): Add BFD_RELOC_MIPS16_TLS_* switch cases. (s_tls_rel_directive): Rename from s_dtprel_internal(). Abstract out directive string and reloc type as function parameters. Update comments. (s_dtprelword,s_dtpreldword): Change to use s_tls_rel_directive(). (s_tprelword,s_tpreldword): New functions. include/ * elf/mips.h (elf_mips_reloc_type): Add R_MIPS16_TLS_* entries. bfd/ * reloc.c (BFD_RELOC_MIPS16_TLS_GD,BFD_RELOC_MIPS16_TLS_LDM, BFD_RELOC_MIPS16_TLS_DTPREL_HI16,BFD_RELOC_MIPS16_TLS_DTPREL_LO16, BFD_RELOC_MIPS16_TLS_GOTTPREL,BFD_RELOC_MIPS16_TLS_TPREL_HI16, BFD_RELOC_MIPS16_TLS_TPREL_LO16): New relocations for MIPS16 TLS. * bfd-in2.h (bfd_reloc_code_real): Regenerate. * libbfd.h (bfd_reloc_code_real_names): Regenerate. * elf32-mips.c (elf_mips16_howto_table_rel): Add R_MIPS16_TLS_* entries. (mips16_reloc_map): Add BFD_RELOC_MIPS16_TLS_* to R_MIPS16_TLS_* mappings. * elfn32-mips.c (elf_mips16_howto_table_rel, elf_mips16_howto_table_rela): Add R_MIPS16_TLS_* entries. (mips16_reloc_map): Add BFD_RELOC_MIPS16_TLS_* to R_MIPS16_TLS_* mappings. * elf64-mips.c (mips16_elf64_howto_table_rel, mips16_elf64_howto_table_rela): Add R_MIPS16_TLS_* entries. (mips16_reloc_map): Add BFD_RELOC_MIPS16_TLS_* to R_MIPS16_TLS_* mappings. * elfxx-mips.c (TLS_RELOC_P,mips16_reloc_p, _bfd_mips_elf_check_relocs): Add cases for R_MIPS16_TLS_* relocations. (tls_gd_reloc_p): Add R_MIPS16_TLS_GD case. (tls_ldm_reloc_p): Add R_MIPS16_TLS_LDM case. (tls_gottprel_reloc_p): Add R_MIPS16_TLS_GOTTPREL case. (mips_elf_calculate_relocation): Add cases for R_MIPS16_TLS_*, R_MIPS_TLS_DTPREL32/64, and R_MIPS_TLS_TPREL32/64 relocations.
2011-12-192011-12-19 Chung-Lin Tang <cltang@codesourcery.com>Chung-Lin Tang2-21/+83
Catherine Moore <clm@codesourcery.com> Sandra Loosemore <sandra@codesourcery.com> Richard Sandiford <rdsandiford@googlemail.com> * elfxx-mips.c (mips_elf_local_pic_function_p): Return true when H is a MIPS16 function with a kept 32-bit stub. Update comments. (mips_elf_get_la25_target): New function. (mips_elf_add_la25_intro): Change to use mips_elf_get_la25_target(). (mips_elf_add_la25_stub): Move compute of use_trampoline_p down, change to use mips_elf_get_la25_target(). (mips_elf_relocation_needs_la25_stub): Add target_is_16_bit_code_p parameter, add switch case for R_MIPS16_26. (mips_elf_calculate_relocation): Redirect relocation to point to the LA25 stub if it exists, instead of the MIPS16 stub. Update arguments of call to mips_elf_relocation_needs_la25_stub(), don't use la25 stub for mips16->mips16 calls. (_bfd_mips_elf_check_relocs): Update arguments of call to mips_elf_relocation_needs_la25_stub(). (mips_elf_create_la25_stub): Change to use mips_elf_get_la25_target().
2011-12-19try ignoring bad PLT entries in ELF symbol tablesJoel Brobecker2-0/+23
Comment says it all: /* On ia64-hpux, we have discovered that the system linker adds undefined symbols with nonzero addresses that cannot be right (their address points inside the code of another function in the .text section). This creates problems when trying to determine which symbol corresponds to a given address. We try to detect those buggy symbols by checking which section we think they correspond to. Normally, PLT symbols are stored inside their own section, and the typical name for that section is ".plt". So, if there is a ".plt" section, and yet the section name of our symbol does not start with ".plt", we ignore that symbol. */ gdb/ChangeLog: * elfread.c (elf_symtab_read): Ignore undefined symbols with nonzero addresses if they do not correspond to a .plt section when one is available in the objfile.
2011-12-19Work around Solaris bourne shell limitation when building the simJoel Brobecker2-2/+9
Building the sim on a sparc-solaris 2.8 machine fails when configured with no extra sim hardware: > for hw in ; do \ > echo "extern const struct hw_descriptor > dv_${hw}_descriptor[];" ; \ > done >> tmp-hw.h > echo 'const char version[] = "'"`sed q > /[...]/../../gdb/version.in`"'";' > >> version.c-tmp > /bin/sh: -c: line 1: syntax error near unexpected token `;' > /bin/sh: -c: line 1: `for hw in ; do \' > make[3]: *** [hw-config.h] Error 2 The same thing happens with the version of bash that we got from Sun as well (which is very old: 2.03.0(1)-release). The problems comes from the fact that both shells are buggy, and reject the following script: for hw in ; do [...] done The above is what sim/common/Makefile.in tries to execute when generating hw-config.h. In order to allow users to build out of the box on these machines, this patch works around this bug. It does rely on the fact that none of the tokens in SIM_HW contain whitespaces. sim/common/ChangeLog: * Make-common.in (hw-config.h): Work around bug in Solaris 2.8 system bourne shell.
2011-12-19*** empty log message ***gdbadmin1-1/+1
2011-12-18gdb/gdbserver/Jan Kratochvil2-3/+11
* linux-low.c (linux_create_inferior): Put empty if clause for write. Revert: 2011-12-18 Hui Zhu <teawater@gmail.com> * linux-low.c (linux_create_inferior): Save return value to ret.
2011-12-182011-12-18 Hui Zhu <teawater@gmail.com>Hui Zhu2-2/+7
* linux-low.c (linux_create_inferior): Save return value to ret.
2011-12-18 * configure: Regenerate.Eric Botcazou4-5/+13
config/ * acx.m4 (Test for GNAT): Update comment and add quotes in final test.
2011-12-18*** empty log message ***gdbadmin1-1/+1
2011-12-172011-12-17 Cary Coutant <ccoutant@google.com>Cary Coutant5-76/+104
* dwarf_reader.cc (Sized_dwarf_line_info::read_lines): Add casts. * resolve.cc (Symbol_table::resolve): Likewise. * i386.cc (Target_i386::do_code_fill): Use char constants for nop arrays. * x86_64.cc (Target_x86_64::do_code_fill): Likewise.
2011-12-17* cp-name-parser.y (cp_merge_demangle_parse_infos): Don't useAndreas Schwab2-3/+5
obstack_empty_p.
2011-12-17* amd64obsd-tdep.c (amd64obsd_init_abi): Don't setMark Kettenis2-4/+21
regset_from_core_section. (amd64obsd_core_init_abi): New function that sets regset_from_core_section. (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for traditional core dumps.
2011-12-17* gdb.arch/amd64-i386-address.exp: Skip on *-*-openbsd*.Mark Kettenis2-1/+6
2011-12-17* amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signalMark Kettenis2-3/+17
trampoline to be introduced in OpenBSD 5.0.
2011-12-17gdb/Jan Kratochvil2-2/+8
Fix build regression from the PR threads/10729 fix. * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP, not LP->PTID.
2011-12-17* mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' andAndrey Smirnov2-28/+36
`optarg' to `oind' and `oarg', respectively(-Wshadow). (mi_cmd_data_read_memory): Ditto. (mi_cmd_data_read_memory_bytes): Ditto.
2011-12-17* mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' toAndrey Smirnov2-17/+23
`oind' and `oarg', respectively(-Wshadow). (mi_valid_noargs): Ditto.
2011-12-17* mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' toAndrey Smirnov2-8/+13
`oind' and `oarg', respectively(-Wshadow).
2011-12-17* mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' andAndrey Smirnov2-17/+24
`optarg' to `oind' and `oarg', respectively(-Wshadow). (mi_cmd_target_file_put): Ditto. (mi_cmd_target_file_delete): Ditto.
2011-12-17* mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' andAndrey Smirnov2-13/+19
`optarg' to `oind' and `oarg', respectively(-Wshadow). (mi_cmd_env_dir): Ditto.
2011-12-17* mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and `optarg'Andrey Smirnov2-11/+16
to `oind' and `oarg', respectively(-Wshadow).
2011-12-17* mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' andAndrey Smirnov2-15/+21
`optparg' to `oind' and `oparg', respectively(-Wshadow). (mi_cmd_break_watch): Ditto.
2011-12-17*** empty log message ***gdbadmin1-1/+1
2011-12-16 * output.h (Output_data_reloc_generic::add): Only callIan Lance Taylor2-1/+7
add_dynamic_reloc if this is a dynamic reloc section.
2011-12-16daily updateAlan Modra1-1/+1
2011-12-16 * linespec.c (collect_symbols): Call maybe_add_address afterTom Tromey2-19/+15
calling symbol_to_sal. (minsym_found): Call maybe_add_address here. (search_minsyms_for_name): Don't call maybe_add_address.
2011-12-16 * linespec.c (struct collect_info) <objfile>: Remove field.Tom Tromey2-27/+130
(decode_objc): Update. (find_method): Update. (decode_variable): Update. (struct minsym_and_objfile): New. (struct collect_minsyms): New. (classify_mtype): New function. (compare_msyms): Likewise. (add_minsym): Likewise. (check_minsym): Remove. (search_minsyms_for_name): Sort minsyms and apply only those with top priority.
2011-12-16 * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.Tom Tromey2-1/+5
2011-12-162011-12-16 Pedro Alves <pedro@codesourcery.com>Pedro Alves4-36/+54
* inf-loop.c: Include top.h. (inferior_event_handler): Call check_frame_language. * top.c (check_frame_language_change): New, factored out from ... (execute_command): ... this. Use check_frame_language_change. * top.h (check_frame_language_change): Declare.
2011-12-16fix typo in previous entryDoug Evans1-1/+1
2011-12-16 * boards/native-stdiogdbserver.exp: New file.Doug Evans2-0/+139
2011-12-16 * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missingPierre Muller2-0/+7
prototypes.
2011-12-16 * boards/native-gdbserver.exp: New file.Doug Evans2-0/+78
2011-12-16 * linux-low.c (linux_create_inferior): If stdio connection,Doug Evans1-0/+14
redirect stdin from /dev/null, stdout to stderr. * remote-utils.c (remote_is_stdio): New static global. (remote_connection_is_stdio): New function. (remote_prepare): Handle stdio connection. (remote_open): Ditto. (remote_close): Don't close stdin for stdio connections. (read_prim,write_prim): New functions. Replace all calls to read/write to these. * server.c (main): Watch for "-" argument. Move call to remote_prepare before start_inferior. * server.h (STDIO_CONNECTION_NAME): New macro. (remote_connection_is_stdio): Declare.
2011-12-16 * NEWS: Add entry for stdio gdbserver.Doug Evans10-22/+165
gdbserver/ * linux-low.c (linux_create_inferior): If stdio connection, redirect stdin from /dev/null, stdout to stderr. * remote-utils.c (remote_is_stdio): New static global. (remote_connection_is_stdio): New function. (remote_prepare): Handle stdio connection. (remote_open): Ditto. (remote_close): Don't close stdin for stdio connections. (read_prim,write_prim): New functions. Replace all calls to read/write to these. * server.c (main): Watch for "-" argument. Move call to remote_prepare before start_inferior. * server.h (STDIO_CONNECTION_NAME): New macro. (remote_connection_is_stdio): Declare. doc/ * gdb.texinfo (Server): Document -/stdio argument to gdbserver. testsuite/ * lib/gdbserver-support.exp (gdb_target_cmd): Recognize stdio gdbserver output. (gdbserver_default_get_remote_address): New function. (gdbserver_start): Call gdb,get_remote_address to compute argument to "target remote" command.
2011-12-16 * remote-utils.c (prepare_resume_reply): Remove extraneous \nDoug Evans2-1/+6
in debugging output.
2011-12-162011-12-16 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon2-2/+2
* ChangeLog: Fix path typo. * doc/ChangeLog: Ditto.