aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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.
2011-12-162011-12-16 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon9-100/+168
* testsuite/gdb.python/py-function.exp: Change "on" to "full" for python print-stack. Add set/show python print-stack off|full|message tests. 2011-12-16 Phil Muldoon <pmuldoon@redhat.com> * python/python.c: Define python_excp_enums. (eval_python_from_control_command): Do not call gdbpy_print_stack. (python_command): Ditto. (gdbpy_print_stack): Rewrite to use new enum constants. (maint_set_python): Remove function. (maint_show_python): Ditto. (_initialize_python): Do not add "maint" commands. Add "set/show python print-stack commands". * NEWS: Update to reflect removal for "maint set/show print-stack" 2011-12-16 Phil Muldoon <pmuldoon@redhat.com> * doc/gdb.texinfo (Python Commands): Remove "maint set/show print stack". Add documentation for "set/show python print-stack".
2011-12-162011-12-16 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>Tristan Gingold5-12/+19
* mach-o-i386.c (TARGET_PRIORITY): Define as 0 (top priority) * mach-o-target.c (TARGET_NAME): Use TARGET_PRIORITY * mach-o-x86-64.c (TARGET_PRIORITY): Define as 0 (top priority) * mach-o.c (bfd_mach_o_header_p): Remove special handling for mach-o-i386. (TARGET_PRIORITY) Set 1 for mach-o-be and mach-o-le, and set 0 for mach-o-fat.
2011-12-16binutils/Tristan Gingold4-7/+332
2011-12-16 Tristan Gingold <gingold@adacore.com> * od-macho.c: Include mach-o/codesign.h (OPT_CODESIGN): Define. (options): Add an entry for codesign. (mach_o_help): Likewise. (dump_header): Fix indentation. (dump_thread): Do not test result of xmalloc. (bfd_mach_o_cs_magic, bfd_mach_o_cs_hash_type): New. (dump_code_signature_superblob): New function. (swap_code_codedirectory_v1_in): Likewise. (hexdump): Likewise. (dump_code_signature_codedirectory): Likewise. (dump_code_signature_blob, dump_code_signature): Likewise. (dump_load_command): Dump code signature. (mach_o_dump): Likewise. include/mach-o/ 2011-12-16 Tristan Gingold <gingold@adacore.com> * codesign.h: New file.
2011-12-162011-12-15 David Daney <david.daney@cavium.com>David Daney6-7/+56
Nick Clifton <nickc@redhat.com> * ld-elfvers/vers.exp (picflag): Set to -fpic for mips*-*-* when using GCC-4.3 or later. (pic): Set to "yes" for mips*-*-linux*. * ld-elfvsb/elfvsb.exp: Don't test non-PIC shared libraried on mips*-*-linux*. (picflag): Set to -fpic for mips*-*-* when using GCC-4.3 or later. * ld-elfweak/elfweak.exp (picflag): Set to -fpic for mips*-*-* when using GCC-4.3 or later. * ld-shared/shared.exp (picflag): Same. * lib/ld-lib.exp (at_least_gcc_version): New proc.
2011-12-16 * elf32-am33lin.c (elf32_am33lin_grok_prstatus): Add caseKevin Buettner2-0/+6
to correspond to a smaller ELF_NGREG defined by the kernel.
2011-12-16*** empty log message ***gdbadmin1-1/+1
2011-12-15Replace <64, false> with <size, big_endian>H.J. Lu2-6/+12
2011-12-15 H.J. Lu <hongjiu.lu@intel.com> PR gold/13505 * target-reloc.h (apply_relocation): Replace <64, false> with <size, big_endian>.
2011-12-15daily updateAlan Modra1-1/+1
2011-12-152011-12-15 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-0/+41
* COPYING.LIBGLOSS: Add GPL with exception license.
2011-12-15 * exceptions.c (catcher_list_size): New function.Doug Evans2-7/+58
(last_message): Delete. (exception_messages, exception_messages_size): New static globals. (throw_it): Use exception_messages array to handle nested calls.
2011-12-15Set the default x32 interpreter to "/lib/ldx32.so.1"H.J. Lu2-1/+6
2011-12-15 H.J. Lu <hongjiu.lu@intel.com> * elf64-x86-64.c (ELF32_DYNAMIC_INTERPRETER): Set to "/lib/ldx32.so.1".
2011-12-15 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove badTom Tromey2-2/+5
do_cleanups call.
2011-12-152011-12-15 Iain Sandoe <iains@gcc.gnu.org>Tristan Gingold2-3/+11
* mach-o.c (bfd_mach_o_mkobject_init): Initialize dyn_reloc_cache. (bfd_mach_o_close_and_cleanup): Only cleanup Mach-O private data for object files.