aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-02-21bfd/Alan Modra19-144/+159
* elf-bfd.h (struct elf_obj_tdata): Rename segment_map to seg_map. Delete num_locals and num_globals. (elf_num_locals, elf_num_globals): Don't define. (elf_seg_map, elf_next_file_pos, elf_eh_frame_hdr, elf_linker, elf_stack_flags, elf_strtab_sec, elf_shstrtab_sec): Define. * bfd.c, * elf-eh-frame.c, * elf-nacl.c, * elf-vxworks.c, * elf.c, * elf32-arm.c, * elf32-lm32.c, * elf32-ppc.c, * elf32-rx.c, * elf32-spu.c, * elf64-hppa.c, * elfcode.h, * elflink.c, * elfnn-ia64.c, * elfxx-mips.c: Use newly defined elf_obj_tdata accessor macros. * elf.c (elf_map_symbols): Add pnum_locals param. Return number of locals syms via new param. (swap_out_syms): Adjust to suit elf_map_symbols change. ld/ * emultempl/elf-generic.em: Use newly defined elf_obj_tdata accessor macros.
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-20daily updateAlan Modra1-1/+1
2013-02-20 * Makefile.am: Use $(ELF_DEPS) on a number of eelf*.c rules.Alan Modra3-40/+43
* Makefile.in: Regenerate.
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-19daily updateAlan Modra1-1/+1
2013-02-19 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Also clearMaciej W. Rozycki2-2/+12
STO_MICROMIPS annotation.
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-19Implement Intel SMAP instructionsH.J. Lu15-2768/+2875
gas/ PR gas/15159 * config/tc-i386.c (cpu_arch): Add ".smap". * doc/c-i386.texi: Document smap. gas/testsuite/ PR gas/15159 * gas/i386/i386.exp: Run smap and x86-64-smap. * gas/i386/smap.d: New file. * gas/i386/smap.s: likewise. * gas/i386/x86-64-smap.d: likewise. opcodes/ PR gas/15159 * i386-dis.c (rm_table): Add clac and stac to RM_0F01_REG_1. * i386-gen.c (cpu_flag_init): Add CPU_SMAP_FLAGS. (cpu_flags): Add CpuSMAP. * i386-opc.h (CpuSMAP): New. (i386_cpu_flags): Add cpusmap. * i386-opc.tbl: Add clac and stac. * i386-init.h: Regenerated. * i386-tbl.h: Likewise.
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.
2013-02-19 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.Walter Lee2-1/+4
2013-02-19 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.Walter Lee2-8/+13
2013-02-19 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.Walter Lee5-7/+54
(tilegx_write_pc): New function. (tilegx_cannot_reference_register): Return zero if REGNO is TILEGX_FAULTNUM_REGNUM. (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc. (tilegx_register_name): Add handling of "faultnum" register. * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM. * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add handling of TILEGX_FAULTNUM_REGNUM. * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
2013-02-19 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stackWalter Lee2-17/+10
should be aligned to 64bit.
2013-02-19 * windows-nat.c (windows_xfer_memory): Fix debug-outputKai Tietz2-4/+9
for LLP64.
2013-02-192013-02-19 Lei Liu <lei.liu2@windriver.com>Lei Liu2-1/+6
* mips-linux-nat.c (mips64_linux_regsets_store_registers): Don't check DSP register number if HAVE_DSP is not set.
2013-02-192013-02-19 Lei Liu <lei.liu2@windriver.com>Lei Liu1-0/+1
* MAINTAINERS (Write After Approval): Add myself to the list.
2013-02-192013-02-19 Sandra Loosemore <sandra@codesourcery.com>Sandra Loosemore2-1/+8
PR ld/15146 ld/ * plugin.c (plugin_notice): Add null check before dereferencing pointer.
2013-02-19 * lib/ld-lib.exp (run_ld_link_tests): Add another argument, passMaciej W. Rozycki43-560/+613
its contents to ar_simple_create and ld_simple_link after objfiles. * ld-aarch64/aarch64-elf.exp: Adjust accordingly. * ld-alpha/alpha.exp: Likewise. * ld-arm/arm-elf.exp: Likewise. * ld-arm/export-class.exp: Likewise. * ld-elf/comm-data.exp: Likewise. * ld-elf/eh-group.exp: Likewise. * ld-elf/elf.exp: Likewise. * ld-elf/export-class.exp: Likewise. * ld-elfvers/vers.exp: Likewise. * ld-frv/tls.exp: Likewise. * ld-i386/export-class.exp: Likewise. * ld-i386/i386.exp: Likewise. * ld-ia64/ia64.exp: Likewise. * ld-libs/libs.exp: Likewise. * ld-m68k/m68k.exp: Likewise. * ld-metag/metag.exp: Likewise. * ld-mips-elf/comm-data.exp: Likewise. * ld-mips-elf/export-class.exp: Likewise. * ld-mips-elf/mips-elf.exp: Likewise. * ld-mn10300/mn10300.exp: Likewise. * ld-pe/pe-compile.exp: Likewise. * ld-pe/pe.exp: Likewise. * ld-plugin/plugin.exp: Likewise. * ld-powerpc/aix52.exp: Likewise. * ld-powerpc/export-class.exp: Likewise. * ld-powerpc/powerpc.exp: Likewise. * ld-s390/s390.exp: Likewise. * ld-sh/sh-vxworks.exp: Likewise. * ld-sh/sh64/sh64.exp: Likewise. * ld-sparc/sparc.exp: Likewise. * ld-tic6x/tic6x.exp: Likewise. * ld-tilegx/tilegx.exp: Likewise. * ld-tilepro/tilepro.exp: Likewise. * ld-undefined/entry.exp: Likewise. * ld-vax-elf/vax-elf.exp: Likewise. * ld-x86-64/dwarfreloc.exp: Likewise. * ld-x86-64/export-class.exp: Likewise. * ld-x86-64/x86-64.exp: Likewise. * ld-xc16x/xc16x.exp: Likewise. * ld-xstormy16/xstormy16.exp: Likewise. * ld-xtensa/xtensa.exp: Likewise.
2013-02-19*** empty log message ***gdbadmin1-1/+1
2013-02-18include/Alan Modra11-139/+179
* bfdlink.h (struct bfd_link_info): Delete emit_note_gnu_build_id. bfd/ * configure.in: Bump version to 2.23.52. * elf-bfd.h (struct elf_build_id_info): New. (struct elf_obj_tdata): Delete after_write_object_contents, after_write_object_contents_info and build_id_size. Make build_id a pointer to struct elf_build_id_info. * elf.c (_bfd_elf_write_object_contents): Style. Update after_write_ibject_contents invocation. (elfobj_grok_gnu_build_id): Update for new build_id struct. Don't allow zero size notes. * configure: Regenerate. gdb/ * elfread.c (struct build_id): Delete. Use struct elf_build_id throughout file instead. (build_id_bfd_get): Update to use new elf_tdata build_id field. Don't xmalloc return value. (build_id_verify): Similarly. Don't xfree. (build_id_to_debug_filename): Update. (find_separate_debug_file_by_buildid): Update, don't xfree. ld/ * emultempl/elf32.em (emit_note_gnu_build_id): New static var. Replace all info->emit_note_gnu_build_id refs. (id_note_section_size): Rename from gld${EMULATION_NAME}_id_note_section_size. (struct build_id_info): Delete. (write_build_id): Rename from gld${EMULATION_NAME}_write_build_id_section. Update elf_tdata usage. Style, formatting. (setup_build_id): New function. (gld${EMULATION_NAME}_after_open): Use setup_build_id.
2013-02-18 * ld-mips-elf/jalx-2.ld: Include .rel.plt in output, give .plt aMaciej W. Rozycki3-1/+11
mapping. * ld-mips-elf/jalx-2.dd: Adjust disassembly accordingly.
2013-02-18 * config/tc-mips.c (s_cpload): Call mips_mark_labels and setMaciej W. Rozycki2-0/+26
mips_assembling_insn appropriately. (s_cpsetup, s_cprestore, s_cpreturn, s_cpadd): Likewise.
2013-02-18 * elf64-mips.c (micromips_elf64_howto_table_rel): AddMaciej W. Rozycki3-0/+139
R_MICROMIPS_SCN_DISP and R_MICROMIPS_JALR. (micromips_elf64_howto_table_rela): Likewise. (micromips_reloc_map): Add BFD_RELOC_MICROMIPS_JALR. * elfn32-mips.c (elf_micromips_howto_table_rel): Add R_MICROMIPS_SCN_DISP and R_MICROMIPS_JALR. (elf_micromips_howto_table_rela): Likewise. (micromips_reloc_map): Add BFD_RELOC_MICROMIPS_JALR.
2013-02-18 * elfxx-mips.c (MICROMIPS_P): New macro.Maciej W. Rozycki2-1/+10
(_bfd_mips_elf_symbol_processing): Use it.
2013-02-18 * elfxx-mips.c (_bfd_mips_elf_create_dynamic_sections): ClarifyMaciej W. Rozycki2-1/+6
comment on _PROCEDURE_LINKAGE_TABLE_ creation.
2013-02-18daily updateAlan Modra1-1/+1
2013-02-18 PR gdb/15102:Tom Tromey4-5/+100
* dwarf2read.c (read_subrange_type): Use result of 'check_typedef'. gdb/testsuite * gdb.dwarf2/subrange.exp: New file.
2013-02-18gdb/gdbserverYao Qi2-1/+5
* linux-bfin-low.c (the_low_target): Use NULL instead of 0.
2013-02-18Fix ChangeLog typo.Maciej W. Rozycki1-1/+1
2013-02-18 * config/tc-mips.c (append_insn): Correcting indentation, removeMaciej W. Rozycki2-4/+7
extraneous braces.
2013-02-18 PR ld/12549Alan Modra4-7/+40
* elf-bfd.h (_bfd_elf_strtab_clear_refs): Delete. (_bfd_elf_strtab_clear_all_refs): Declare. (_bfd_elf_strtab_resize): Declare. * elf-strtab.c (_bfd_elf_strtab_clear_refs): Delete. (_bfd_elf_strtab_clear_all_refs): New function. (_bfd_elf_strtab_resize): Likewise. * elflink.c (elf_link_add_object_symbols): Use _bfd_elf_strtab_resize.
2013-02-18 * ld-plugin/lto.exp (Build pr15146b.so) Add -Wl,--no-as-needed.Alan Modra2-4/+10
(PR ld/15146 (1), (2)): Likewise. (LTO 7): Likewise.
2013-02-18missed from last commitAlan Modra1-0/+0
2013-02-18 * elf-bfd.h (struct elf_obj_tdata): Move find_line_info, local_stubs,Alan Modra4-59/+68
local_call_stubs, elf_data_symbol, elf_text_symbol, elf_data_section, and elf_text_section to.. * elfxx-mips.c (struct mips_elf_obj_tdata): ..here. Update all refs. * elf64-alpha.c (struct mips_elf_find_line): Rename to.. (struct alpha_elf_find_line): ..this. (struct alpha_elf_obj_tdata): Add find_line_info, update refs.
2013-02-18*** empty log message ***gdbadmin1-1/+1
2013-02-17daily updateAlan Modra1-1/+1
2013-02-17*** empty log message ***gdbadmin1-1/+1
2013-02-16daily updateAlan Modra1-1/+1
2013-02-16Don't add DT_NEEDED for references from the dummy bfdH.J. Lu10-2/+85
bfd/ PR ld/15146 * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED for references from the dummy bfd. ld/ PR ld/15146 * plugin.c (plugin_notice): Replace the undefined dummy bfd with the real one. ld/testsuite/ PR ld/15146 * ld-plugin/pr15146.d: New file. * ld-plugin/pr15146a.c: Likewise. * ld-plugin/pr15146b.c: Likewise. * ld-plugin/pr15146c.c: Likewise. * ld-plugin/pr15146d.c: Likewise. * ld-plugin/lto.exp: Add tests for PR ld/15146.
2013-02-16Also trace symbol from the IR bfdH.J. Lu2-5/+10
PR ld/15141 * plugin.c (plugin_notice): Also trace symbol from the IR bfd.
2013-02-16Also track weak referencesH.J. Lu2-9/+18
PR ld/15149 * elflink.c (elf_link_add_object_symbols): Also track weak references.
2013-02-16gdb/Yao Qi2-1/+6
2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com> * frame.c: Remove one extra white space after #include directive.
2013-02-16*** empty log message ***gdbadmin1-1/+1
2013-02-15daily updateAlan Modra1-1/+1