binutils-gdb.git
12 years agold/testsuite/
Richard Sandiford [Sun, 13 May 2012 09:55:45 +0000 (09:55 +0000)]
ld/testsuite/
* ld-mips-elf/mips-elf.exp (mips16_call_global_test): Use the
no-shared-1.ld linker script.
* ld-mips-elf/mips16-call-global-1.s: Add alignment directive.
* ld-mips-elf/mips16-call-global-2.s: Likewise.
* ld-mips-elf/mips16-call-global-3.s: Likewise.
* ld-mips-elf/mips16-call-global.d: Use 50000 as the base address.

12 years agold/testsuite/
Richard Sandiford [Sun, 13 May 2012 09:51:40 +0000 (09:51 +0000)]
ld/testsuite/
* ld-mips-elf/attr-gnu-4-00.d: Remove assembler options and emulator
linker option.
* ld-mips-elf/attr-gnu-4-01.d, ld-mips-elf/attr-gnu-4-02.d,
ld-mips-elf/attr-gnu-4-03.d, ld-mips-elf/attr-gnu-4-04.d,
ld-mips-elf/attr-gnu-4-05.d, ld-mips-elf/attr-gnu-4-10.d,
ld-mips-elf/attr-gnu-4-11.d, ld-mips-elf/attr-gnu-4-12.d,
ld-mips-elf/attr-gnu-4-13.d, ld-mips-elf/attr-gnu-4-14.d,
ld-mips-elf/attr-gnu-4-15.d, ld-mips-elf/attr-gnu-4-20.d,
ld-mips-elf/attr-gnu-4-21.d, ld-mips-elf/attr-gnu-4-22.d,
ld-mips-elf/attr-gnu-4-23.d, ld-mips-elf/attr-gnu-4-24.d,
ld-mips-elf/attr-gnu-4-25.d, ld-mips-elf/attr-gnu-4-30.d,
ld-mips-elf/attr-gnu-4-31.d, ld-mips-elf/attr-gnu-4-32.d,
ld-mips-elf/attr-gnu-4-33.d, ld-mips-elf/attr-gnu-4-34.d,
ld-mips-elf/attr-gnu-4-35.d, ld-mips-elf/attr-gnu-4-40.d,
ld-mips-elf/attr-gnu-4-41.d, ld-mips-elf/attr-gnu-4-42.d,
ld-mips-elf/attr-gnu-4-43.d, ld-mips-elf/attr-gnu-4-44.d,
ld-mips-elf/attr-gnu-4-45.d, ld-mips-elf/attr-gnu-4-51.d: Likewise.

12 years agold/testsuite/
Richard Sandiford [Sun, 13 May 2012 09:45:45 +0000 (09:45 +0000)]
ld/testsuite/
* ld-mips-elf/eh-frame1.ld (.gcc_compiled_long32): Add KEEP.
* ld-mips-elf/eh-frame3.d: Move definition of foo to the link line
and change to a 32-bit value.  Expect CIEs to be marged.
* ld-mips-elf/eh-frame4.d: Move definition of foo to the link line.

12 years agodaily update
Alan Modra [Sun, 13 May 2012 00:00:05 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Sun, 13 May 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agogdb/doc/
Jan Kratochvil [Sat, 12 May 2012 14:20:31 +0000 (14:20 +0000)]
gdb/doc/
* gdb.texinfo (Separate Debug Files): Use plural form for global
debugging information directory.

12 years agoAdjust testcases for readelf addend change
H.J. Lu [Sat, 12 May 2012 13:46:26 +0000 (13:46 +0000)]
Adjust testcases for readelf addend change

gas/testsuite/

* gas/mips/elf-rel10.d: Updated.
* gas/mips/elf-rel22.d: Likewise.
* gas/mmix/comment-1.d: Likewise.

ld/testsuite/

* ld-alpha/tlspic.rd: Updated.
* ld-powerpc/tlsso.r: Likewise.
* ld-powerpc/tlsso32.r: Likewise.
* ld-powerpc/vxworks1-lib.rd: Likewise.
* ld-s390/tlspic.rd: Likewise.
* ld-s390/tlspic_64.rd: Likewise.
* ld-sh/shared-1.d: Likewise.
* ld-sh/tlspic-2.d: Likewise.
* ld-sparc/tlssunnopic32.rd: Likewise.
* ld-sparc/tlssunnopic64.rd: Likewise.
* ld-sparc/tlssunpic32.rd: Likewise.
* ld-sparc/tlssunpic64.rd: Likewise.

12 years agoRemove x32 addend overflow for BFD_RELOC_64
H.J. Lu [Sat, 12 May 2012 12:34:37 +0000 (12:34 +0000)]
Remove x32 addend overflow for BFD_RELOC_64

gas/

* config/tc-i386.c (tc_gen_reloc): Remove x32 addend overflow
for BFD_RELOC_64.

gas/testsuite/

* gas/i386/ilp32/ilp32.exp: Don't run reloc64-inval.

* gas/i386/ilp32/reloc64.s: Add test for -4294967295 addend.
* gas/i386/ilp32/reloc64.d: Updated.

* gas/i386/ilp32/reloc64-inval.l: Removed.
* gas/i386/ilp32/reloc64-inval.s: Likewise.

12 years ago2012-05-12 Pedro Alves <palves@redhat.com>
Pedro Alves [Sat, 12 May 2012 08:54:03 +0000 (08:54 +0000)]
2012-05-12  Pedro Alves  <palves@redhat.com>

* amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.

12 years ago src/inferior.c: Include completer.h
Eli Zaretskii [Sat, 12 May 2012 06:35:08 +0000 (06:35 +0000)]
 src/inferior.c: Include completer.h
 (initialize_inferiors): Set completer of add-inferior to filename_completer.

12 years agoMAINTAINERS: clarify policy with config/ (and other top level files)
Mike Frysinger [Sat, 12 May 2012 03:10:17 +0000 (03:10 +0000)]
MAINTAINERS: clarify policy with config/ (and other top level files)

Rather than copy & paste more text, just merge the existing config/
section with the existing intl/ section.  This ends up clarifying
the policy with that subdir (and top level files) that any commit
made to gcc's repo is allowed to be merged with the sourceware tree
without pre-approval.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoAdjust testcases for readelf addend change
H.J. Lu [Sat, 12 May 2012 01:12:14 +0000 (01:12 +0000)]
Adjust testcases for readelf addend change

* ld-cris/hiddef1.d: Updated.
* ld-cris/libdso-2.d: Likewise.
* ld-cris/tls-js1.d: Likewise.
* ld-cris/tls-local-63.d: Likewise.
* ld-cris/tls-local-64.d: Likewise.

12 years agodaily update
Alan Modra [Sat, 12 May 2012 00:00:05 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Sat, 12 May 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agoCheck gdbarch_ptr_bit for x32 core dump
H.J. Lu [Fri, 11 May 2012 22:33:28 +0000 (22:33 +0000)]
Check gdbarch_ptr_bit for x32 core dump

* amd64-linux-tdep.c (amd64_linux_core_read_description): Check
gdbarch_ptr_bit for x32 core dump.

12 years agoInclude 32-linux.c and x32-avx-linux.c
H.J. Lu [Fri, 11 May 2012 22:31:27 +0000 (22:31 +0000)]
Include 32-linux.c and x32-avx-linux.c

* amd64-linux-tdep.c: Include features/i386/x32-linux.c
and features/i386/x32-avx-linux.c.

12 years ago2012-05-11 Stan Shebs <stan@codesourcery.com>
Stan Shebs [Fri, 11 May 2012 22:24:24 +0000 (22:24 +0000)]
2012-05-11  Stan Shebs  <stan@codesourcery.com>
    Kwok Cheung Yeung  <kcy@codesourcery.com>

* NEWS: Describe new info os commands.
* common/linux-osdata.c (PID_T, TIME_T): Define.
(MAX_PID_T_STRLEN): New.
(linux_common_core_of_thread): Add comment.  Change to use PID_T and
MAX_PID_T_STRLEN.
(command_from_pid): Add comment.  Change to use PID_T.
(commandline_from_pid):  Change to use PID_T.
(user_from_pid): Add comment.
(get_process_owner): Add comment. Change to use PID_T and
MAX_PID_T_STRLEN.
(get_number_of_cpu_cores): Add comment.
(get_cores_used_by_process): Add comment.  Change to use PID_T and
MAX_PID_T_STRLEN.
(linux_xfer_osdata_processes): Change to use PID_T and
MAX_PID_T_STRLEN.
(compare_processes): New function.
(linux_xfer_osdata_processgroups): New function.
(linux_xfer_osdata_threads): Change to use PID_T.
(linux_xfer_osdata_fds): New function.
(format_socket_state, print_sockets): New functions.
(union socket_addr): New union.
(linux_xfer_osdata_isockets): New function.
(time_from_time_t, group_from_gid): New functions.
(linux_xfer_osdata_shm): New function.
(linux_xfer_osdata_sem): New function.
(linux_xfer_osdata_msg): New function.
(linux_xfer_osdata_modules): New function.
(osdata_table): Add new entries.
* common/buffer.c (buffer_xml_printf): Add support for long and
long long format specifiers.

* gdb.texinfo (Operating System Auxiliary Information): Document new
'info os' subcommands.

* gdb.base/info-os.exp: New file.
* gdb.base/info-os.c: New file.

12 years agoDeclare tdesc_x32_linux/tdesc_x32_avx_linux
H.J. Lu [Fri, 11 May 2012 22:02:29 +0000 (22:02 +0000)]
Declare tdesc_x32_linux/tdesc_x32_avx_linux

* amd64-linux-tdep.h (tdesc_x32_linux): New.
(tdesc_x32_avx_linux): Likewise.

12 years agogdb/doc/
Jan Kratochvil [Fri, 11 May 2012 18:23:11 +0000 (18:23 +0000)]
gdb/doc/
* gdb.texinfo (Auto-loading, Init File in the Current Directory)
(libthread_db.so.1 file, objfile-gdb.gdb file, objfile-gdb.py file)
(dotdebug_gdb_scripts section): Add reference
to 'Auto-loading safe path'.

12 years agogdb/
Jan Kratochvil [Fri, 11 May 2012 18:20:26 +0000 (18:20 +0000)]
gdb/
Implement multi-component --with-auto-load-dir.
* NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
entries.
(--with-auto-load-safe-path): Update the default value description.
* auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
New.
(auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
(_initialize_auto_load): Initialize also auto_load_dir.  Install new
"set auto-load scripts-directory".
* config.in: Regenerate.
* configure: Regenerate.
* configure.ac (--with-auto-load-dir): New configure option.
(--auto-load-safe-path): Change the default to --with-auto-load-dir.

gdb/doc/
Implement multi-component --with-auto-load-dir.
* gdb.texinfo (Auto-loading): New references
for 'set auto-load scripts-directory'
and 'show auto-load scripts-directory'.
(Auto-loading safe path): Describe the new default.  Move $ddir
substituation reference to 'objfile-gdb.py file'.
(objfile-gdb.py file): Describe script-name alias.  Change real-name to
script-name.  Describe new 'set auto-load scripts-directory'
and 'show auto-load scripts-directory'.

12 years ago * doc/binutils.texi: Add --dwarf-check option.
Cary Coutant [Fri, 11 May 2012 18:18:34 +0000 (18:18 +0000)]
* doc/binutils.texi: Add --dwarf-check option.
* dwarf.c (dwarf_check): New global flag.
(fetch_indexed_string): New function.
(fetch_indexed_value): New function.
(get_FORM_name): Add DW_FORM_GNU_str_index and DW_FORM_GNU_addr_index.
(decode_location_expression): Add DW_OP_GNU_addr_index.
(read_and_display_attr_value): Add DW_FORM_GNU_str_index,
DW_FORM_GNU_addr_index, DW_AT_GNU_addr_base, and DW_AT_GNU_ranges_base.
(get_AT_name): Add new attributes for Fission.
(process_debug_info): Load new debug sections for Fission.
(load_debug_info): Check for .debug_info.dwo section.
(display_loc_list, display_loc_list_dwo): New functions.
(display_debug_loc): Move logic to above two functions.
(display_debug_info): Choose abbrev section based on info section.
(display_debug_types): Likewise.
(display_trace_info): Likewise.
(comp_addr_base): New function.
(display_debug_addr): New function.
(display_debug_str_offsets): New function.
(display_debug_ranges): Allow missing range lists.  Suppress
diagnostics if dwarf_check not set.
(debug_displays): Add column to select abbrev section.
* dwarf.h (enum dwarf_section_display_enum): Add new debug sections
for Fission.
(struct dwarf_section): Add abbrev_sec field.
(struct dwarf_section_display): New type.
(debug_info): Add addr_base, ranges_base fields.
(dwarf_check): New global variable.
* objdump.c (usage): Add --dwarf-check option.
(enum option_values): Add OPTION_DWARF_CHECK.
(long_options): Add --dwarf-check.
(main): Likewise.
* readelf.c (OPTION_DWARF_CHECK): New macro.
(options): Add --dwarf-check.
(parse_args): Likewise.
(process_section_headers): Use const_strneq instead of
streq.

12 years agogdb/
Jan Kratochvil [Fri, 11 May 2012 18:13:26 +0000 (18:13 +0000)]
gdb/
Provide $ddir substitution for --with-auto-load-safe-path.
* NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
entries.
* auto-load.c: Include observer.h.
(auto_load_safe_path_vec_update): Call substitute_path_component for
each component.  New variable ddir_subst.
(auto_load_gdb_datadir_changed): New function.
(set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
AUTO_LOAD_SAFE_PATH.  New comment.
(_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
* config.in: Regenerate.
* configure: Regenerate.
* configure.ac (--auto-load-safe-path): Rename
DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
GDB_DATADIR/auto-load.
* defs.h (substitute_path_component): New declaration.
* top.c: Include observer.h.
(set_gdb_datadir): New function.
(init_main): Install it for "set data-directory".
* utils.c (substitute_path_component): New function.

gdb/doc/
Provide $ddir substitution for --with-auto-load-safe-path.
* gdb.texinfo (Auto-loading): Replace /usr/local by $ddir/auto-load.
(Auto-loading safe path): Likewise.  Mention the default value,
$ddir substitution, --with-auto-load-safe-path and
--without-auto-load-safe-path.
* observer.texi (gdb_datadir_changed): New.

12 years agogdb/
Jan Kratochvil [Fri, 11 May 2012 18:06:28 +0000 (18:06 +0000)]
gdb/
Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
* auto-load.c (auto_load_objfile_script): Remove check for NULL
DEBUG_FILE_DIRECTORY.  Handle multiple components of
DEBUG_FILE_DIRECTORY.

12 years agoAlways display addend as signed hex number
H.J. Lu [Fri, 11 May 2012 15:48:15 +0000 (15:48 +0000)]
Always display addend as signed hex number

binutils/

PR binutils/14088
* readelf.c (dump_relocations): Always display addend as
signed hex number.

ld/testsuite/

PR binutils/14088
* ld-ia64/tlspic.rd: Updated.
* ld-x86-64/tlsdesc-nacl.rd: Likewise.
* ld-x86-64/tlsdesc.rd: Likewise.
* ld-x86-64/tlspic-nacl.rd: Likewise.
* ld-x86-64/tlspic.rd: Likewise.

12 years ago PR binutils/14028
Nick Clifton [Fri, 11 May 2012 14:25:30 +0000 (14:25 +0000)]
PR binutils/14028
* configure.in: Invoke ACX_HEADER_STRING.
* configure: Regenerate.
* config.in: Regenerate.
* sysdep.h: If STRINGS_WITH_STRING is defined then include both
string.h and strings.h.

12 years ago2012-05-11 Yao Qi <yao@codesourcery.com>
Pedro Alves [Fri, 11 May 2012 13:34:34 +0000 (13:34 +0000)]
2012-05-11  Yao Qi  <yao@codesourcery.com>
    Pedro Alves  <palves@redhat.com>

* linux-low.c (enum stopping_threads_kind): New.
(stopping_threads): Change type to `enum stopping_threads_kind'.
(handle_extended_wait): If stopping and suspending threads, leave
the new_lwp suspended too.
(linux_wait_for_event): Adjust.
(stop_all_lwps): Set `stopping_threads' to
STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
whether we're suspending threads or just stopping them.  Assert no
recursion happens.

12 years ago PR 13503
Nick Clifton [Fri, 11 May 2012 12:59:23 +0000 (12:59 +0000)]
PR 13503
* reloc.c: Add new ENUM for BFD_RELOC_AVR_8_LO,
BFD_RELOC_AVR_8_HI, BFD_RELOC_AVR_8_HHI.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenrate.
* elf32-avr.c (elf_avr_howto_table): Add entries for
R_AVR_8_LO8, R_AVR_8_HI8, R_AVR_8_HHI8.
(avr_reloc_map): Add RELOC mappings for R_AVR_8_LO8, R_AVR_8_HI8,
R_AVR_8_HHI8.

* config/tc-avr.c (exp_mod_pm): Remove variable.
(exp_mod_data_t): New typedef.
(pexp_mod_data, exp_mod_data): New variables.
(avr_parse_cons_expression): Scan through exp_mod_data[] to find
data expression modifiers "pm", "gs", "lo8", hi8", "hhi8", "hh8"
and set pexp_mod_data accordingly to be used in avr_cons_fix_new.
(avr_cons_fix_new): Handle new data expression modifiers shipped
in pexp_mod_data.
(md_apply_fix): Handle BFD_RELOC_AVR_8_LO, BFD_RELOC_AVR_8_HI,
BFD_RELOC_AVR_8_HHI.

* elf/avr.h (RELOC_NUMBERS): Add values for R_AVR_8_LO8,
R_AVR_8_HI8, R_AVR_8_HHI8.

12 years agoHandle R_X86_64_64 properly for x32
H.J. Lu [Fri, 11 May 2012 11:10:19 +0000 (11:10 +0000)]
Handle R_X86_64_64 properly for x32

elfcpp/

PR gold/14091
* x86_64.h (R_X86_64_RELATIVE64): New.

gold/

PR gold/14091
* x86_64.cc (Target_x86_64::Scan::local): For x32, generate
R_X86_64_RELATIVE64 instead of R_X86_64_RELATIVE in case of
R_X86_64_64.

12 years ago PR binutils/14006
Nick Clifton [Fri, 11 May 2012 09:41:21 +0000 (09:41 +0000)]
PR binutils/14006
* arm-dis.c (print_insn): Fix detection of instruction mode in
files containing multiple executable sections.

12 years agoUse int and bfd_signed_vma in x32 addend overflow check
H.J. Lu [Fri, 11 May 2012 00:50:43 +0000 (00:50 +0000)]
Use int and bfd_signed_vma in x32 addend overflow check

bfd/

* elf64-x86-64.c (elf_x86_64_relocate_section): Use int in x32
addend overflow check.

gas/

* config/tc-i386.c (tc_gen_reloc): Use bfd_signed_vma in x32
addend overflow check.

12 years ago* elf32-rx.c (rx_elf_object_p): Ignore empty segments.
DJ Delorie [Fri, 11 May 2012 00:01:58 +0000 (00:01 +0000)]
* elf32-rx.c (rx_elf_object_p): Ignore empty segments.

12 years agodaily update
Alan Modra [Fri, 11 May 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Fri, 11 May 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agoDisplay signed hex number in x32 addend overflow check
H.J. Lu [Thu, 10 May 2012 20:46:34 +0000 (20:46 +0000)]
Display signed hex number in x32 addend overflow check

bfd/

* elf64-x86-64.c (elf_x86_64_relocate_section): Display signed
hex number in x32 addend overflow check.

gas/

* config/tc-i386.c (tc_gen_reloc): Display signed hex number in
x32 addend overflow check.

ld/testsuite/

* ld-x86-64/ilp32-11.d: Updated.

12 years ago * dwarf2read.c (recursively_write_psymbols): New function.
Tom Tromey [Thu, 10 May 2012 20:17:51 +0000 (20:17 +0000)]
* dwarf2read.c (recursively_write_psymbols): New function.
(write_psymtabs_to_index): Use it.

* dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
field.
(load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
(load_partial_comp_unit): Update.
(queue_comp_unit): Add argument 'pretend_language'.
(process_queue): Update.
(psymtab_to_symtab_1): Skip dependencies that have a user.
(load_partial_comp_unit_reader): Give meaning to the 'data'
argument.
(load_full_comp_unit): Add 'pretend_language' argument.
(process_full_comp_unit): Add 'pretend_language' argument.  Set
language on CU.
(process_imported_unit_die, read_file_scope, read_type_unit_scope):
Update.
(maybe_queue_comp_unit): Add 'pretend_language' argument.
(follow_die_offset, follow_die_sig, read_signatured_type_reader):
Update.
(prepare_one_comp_unit): Add 'pretend_language' argument.

* dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
(struct dwarf2_per_objfile) <just_read_cus>: New field.
(struct dwarf2_per_cu_data) <imported_symtabs>: New field.
(dw2_do_instantiate_symtab): Check whether symtab was read in
before queueing.
(dw2_instantiate_symtab): Add assertion.  Call
process_cu_includes.
(process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
(partial_symtab_p): New typedef.
(set_partial_user): New function.
(dwarf2_build_psymtabs_hard): Use set_partial_user.
(scan_partial_symbols): Add imported CU to imported_symtabs.
(dwarf2_psymtab_to_symtab): Call process_cu_includes.
(psymtab_to_symtab_1): Do nothing if psymtab is readin.
(get_symtab, recursively_compute_inclusions)
(compute_symtab_includes, process_cu_includes)
(process_imported_unit_die): New functions.
(process_die) <DW_TAG_imported_unit>: New case.
(dwarf2_per_objfile_free): Free 'imported_symtabs'.

* dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
comment.
(struct partial_die_info) <locdesc>: Remove.
<d>: New field.
(process_psymtab_comp_unit): Add 'read_partial' argument.
Update.
(process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
(scan_partial_symbols): Handle DW_TAG_imported_unit.
(add_partial_symbol): Update.
(process_die): Handle DW_TAG_partial_unit.
(read_file_scope): Update comment.
(load_partial_dies): Handle DW_TAG_imported_unit.
(read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
(determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.

12 years ago * cc-with-dwz.sh: New file.
Tom Tromey [Thu, 10 May 2012 20:07:02 +0000 (20:07 +0000)]
* cc-with-dwz.sh: New file.

12 years ago * symtab.h (struct symtab) <includes, user>: New fields.
Tom Tromey [Thu, 10 May 2012 20:04:00 +0000 (20:04 +0000)]
* symtab.h (struct symtab) <includes, user>: New fields.
* block.h (struct block_iterator) <d, idx, which>: New fields.
* block.c (initialize_block_iterator, find_iterator_symtab)
(block_iterator_step, block_iter_name_step)
(block_iter_match_step): New functions.
(block_iterator_first, block_iterator_next)
(block_iter_name_first, block_iter_name_next)
(block_iter_match_first, block_iter_match_next): Rewrite.
(get_block_symtab): New function.

12 years ago * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
Tom Tromey [Thu, 10 May 2012 19:59:12 +0000 (19:59 +0000)]
* jv-lang.c (get_java_class_symtab): Use allocate_global_block,
set_block_symtab.
* jit.c (finalize_symtab): Use allocate_global_block,
set_block_symtab.
* buildsym.c (finish_block_internal): New function, from old
finish_block.
(finish_block): Rewrite.
(end_symtab): Use finish_block_internal, set_block_symtab.
* block.h (struct global_block): New.
(allocate_global_block, set_block_symtab): Declare.
* block.c (allocate_global_block, set_block_symtab): New
functions.

12 years ago * psymtab.c (partial_map_expand_apply): Add assertion.
Tom Tromey [Thu, 10 May 2012 19:54:45 +0000 (19:54 +0000)]
* psymtab.c (partial_map_expand_apply): Add assertion.
(partial_map_symtabs_matching_filename): Skip included psymtabs.
(psymtab_to_symtab): Find unshared psymtab.
(dump_psymtab): Print including psymtabs.
(recursively_search_psymtabs): New function.
(expand_symtabs_matching_via_partial): Use it.
* psympriv.h (struct partial_symtab) <user, searched_flag>: New
fields.
(enum psymtab_search_status): New.

12 years ago * tracepoint.c (scope_info): Update.
Tom Tromey [Thu, 10 May 2012 19:50:09 +0000 (19:50 +0000)]
* tracepoint.c (scope_info): Update.
* symtab.c (lookup_block_symbol, iterate_over_symbols)
(find_pc_sect_symtab, search_symbols)
(default_make_symbol_completion_list_break_on)
(make_file_symbol_completion_list): Update.
* symmisc.c (dump_symtab_1): Update.
* stack.c (print_frame_args, iterate_over_block_locals)
(print_frame_labels, iterate_over_block_arg_vars): Update.
* python/py-block.c (block_object) <dict>: Remove.
<block>: New field.
<iter>: Change type.
(blpy_iter): Update.
(blpy_block_syms_iternext): Update.
* psymtab.c (map_block): Use block iterators.
* objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
* mi/mi-cmd-stack.c (list_args_or_locals): Update.
* mdebugread.c (parse_symbol, mylookup_symbol): Update.
* infrun.c (check_exception_resume): Update.
* cp-support.c (make_symbol_overload_list_block): Update.
* coffread.c (patch_opaque_types): Update.
* buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
* block.h (struct block_iterator): New.
(block_iterator_first, block_iterator_next, block_iter_name_first)
(block_iter_name_next, block_iter_match_first)
(block_iter_match_next): Declare.
(ALL_BLOCK_SYMBOLS): Redefine.
* block.c (block_iterator_first, block_iterator_next)
(block_iter_name_first, block_iter_name_next)
(block_iter_match_first, block_iter_match_next): New functions.
* ada-lang.c (ada_add_block_symbols)
(ada_make_symbol_completion_list): Use block iterator.

12 years ago * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
Tom Tromey [Thu, 10 May 2012 19:44:52 +0000 (19:44 +0000)]
* psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
(find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
(lookup_partial_symbol, find_last_source_symtab_from_partial)
(read_psymtabs_with_filename, map_matching_symbols_psymtab)
(expand_symtabs_matching_via_partial, maintenance_check_symtabs):
Update.

12 years agoCount R_X86_64_RELATIVE64 as reloc_class_relative
H.J. Lu [Thu, 10 May 2012 17:15:19 +0000 (17:15 +0000)]
Count R_X86_64_RELATIVE64 as reloc_class_relative

bfd/

* elf64-x86-64.c (elf_x86_64_reloc_type_class): Handle
R_X86_64_RELATIVE64.

ld/testsuite/

* ld-x86-64/pr13082-1a.d: Check RELACOUNT.
* ld-x86-64/pr13082-1b.d: Likewise.

12 years agoAdd print 'file'::var testcase with two libs defining the same global variable
Joel Brobecker [Thu, 10 May 2012 16:25:19 +0000 (16:25 +0000)]
Add print 'file'::var testcase with two libs defining the same global variable

gdb/testsuite/ChangeLog:

* gdb.base/print-file-var-lib1.c, gdb.base/print-file-var-lib2.c,
gdb.base/print-file-var-main.c, gdb.base/print-file-var.exp:
New files.

gdb/ChangeLog:

        * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
        print-file-var-lib2.c, print-file-var-main.c and
        print-file-var.exp (located in gdb/testsuite/gdb.base).

12 years agoNew testcase: gdb.base/ctxobj.exp
Joel Brobecker [Thu, 10 May 2012 16:24:58 +0000 (16:24 +0000)]
New testcase: gdb.base/ctxobj.exp

gdb/testsuite/ChangeLog:

        * gdb.base/ctxobj-f.c, gdb.base/ctxobj-m.c, gdb.base/ctxobj-v.c,
        gdb.base/ctxobj.exp: New files.

12 years agoSearch global symbols from the expression's block objfile first.
Joel Brobecker [Thu, 10 May 2012 16:24:40 +0000 (16:24 +0000)]
Search global symbols from the expression's block objfile first.

gdb/ChangeLog:

        * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
        try locating the symbol in the symbol's own objfile first, before
        extending the search to all objfiles.
        * symtab.c (lookup_symbol_aux_objfile): New function, extracted
        out of lookup_symbol_aux_symtabs.
        (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
        Replace extracted-out code by call to lookup_symbol_aux_objfile.
        Do not search EXCLUDE_OBJFILE.
        (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
        (lookup_symbol_global): Search for matches in the block's objfile
        first, before searching all other objfiles.

12 years ago2012-05-10 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 10 May 2012 14:10:38 +0000 (14:10 +0000)]
2012-05-10  Tristan Gingold  <gingold@adacore.com>

        * printcmd.c (set_command): Add pre/post inc/dec.

12 years ago PR bootstrap/50461
Nick Clifton [Thu, 10 May 2012 13:42:03 +0000 (13:42 +0000)]
PR bootstrap/50461
* configure.ac (mpfr-dir): When using in-tree MPFR sources
allow for the fact that from release v3.1.0 of MPFR the source
files were moved into a src sub-directory.
* configure: Regenerate.

12 years ago * dwarf.c (read_and_display_attr_value): Don't look up tag from
Jakub Jelinek [Thu, 10 May 2012 06:18:48 +0000 (06:18 +0000)]
* dwarf.c (read_and_display_attr_value): Don't look up tag from
abbrev for DW_FORM_ref_addr.

12 years agoUse fits_in_signed_long to check x32 addend overflow
H.J. Lu [Thu, 10 May 2012 03:48:33 +0000 (03:48 +0000)]
Use fits_in_signed_long to check x32 addend overflow

* config/tc-i386.c (tc_gen_reloc): Use fits_in_signed_long.

12 years agoCheck 64-bit relocation addend overflow for x32
H.J. Lu [Thu, 10 May 2012 03:25:17 +0000 (03:25 +0000)]
Check 64-bit relocation addend overflow for x32

bfd/

* elf64-x86-64.c (elf_x86_64_relocate_section): Check addend
overflow for R_X86_64_RELATIVE64.

gas/

* config/tc-i386.c (tc_gen_reloc): Check x32 addend overflow
for BFD_RELOC_64.

gas/testsuite/

* gas/i386/ilp32/ilp32.exp: Run reloc64-inval.

* gas/i386/ilp32/reloc64.s: Add tests for ".quad".
* gas/i386/ilp32/reloc64.d: Updated.

* gas/i386/ilp32/reloc64-inval.l: New file.
* gas/i386/ilp32/reloc64-inval.s: Likewise.

ld/testsuite/

* ld-x86-64/ilp32-11.d: New file.
* ld-x86-64/ilp32-11.s: Likewise.

* ld-x86-64/x86-64.exp: Run ilp32-11.

12 years ago*** empty log message ***
gdbadmin [Thu, 10 May 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Thu, 10 May 2012 00:00:05 +0000 (00:00 +0000)]
daily update

12 years ago2012-05-09 Frank Ch. Eigler <fche@redhat.com>
Frank Ch. Eigler [Wed, 9 May 2012 21:06:13 +0000 (21:06 +0000)]
2012-05-09  Frank Ch. Eigler  <fche@redhat.com>

* gdb.1: Document -ex option.

12 years ago * gdb.trace/strace.exp: Add 'quiet' to compiler flags.
Tom Tromey [Wed, 9 May 2012 20:24:08 +0000 (20:24 +0000)]
* gdb.trace/strace.exp: Add 'quiet' to compiler flags.

12 years agogdb/doc/
Jan Kratochvil [Wed, 9 May 2012 19:29:25 +0000 (19:29 +0000)]
gdb/doc/
* gdb.texinfo (Separate Debug Files, Auto-loading safe path): Replace
directory separator by path separator.

12 years agogdb/doc/
Jan Kratochvil [Wed, 9 May 2012 18:15:58 +0000 (18:15 +0000)]
gdb/doc/
* gdb.texinfo (Auto-loading): Wrap too long lines in @smallexample.
Twice.

12 years ago * lib/gdb.exp (gdb_test_multiple): Correct formatting.
Maciej W. Rozycki [Wed, 9 May 2012 14:29:49 +0000 (14:29 +0000)]
* lib/gdb.exp (gdb_test_multiple): Correct formatting.

12 years agoRemove AT_SYMBOL
Joel Brobecker [Wed, 9 May 2012 14:29:13 +0000 (14:29 +0000)]
Remove AT_SYMBOL

Now that this method is no longer used by any architecture,
we can remove its support.

gdb/ChangeLog:

        * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
        * inferior.h (AT_SYMBOL): Delete.

12 years agomips: Switch inferior function calls to ON_STACK method.
Joel Brobecker [Wed, 9 May 2012 14:29:02 +0000 (14:29 +0000)]
mips: Switch inferior function calls to ON_STACK method.

This patch switches the mips code to use the ON_STACK method
for function calls instead of AT_SYMBOL, which we want to remove.

gdb/ChangeLog:

        * mips-tdep.c (mips_push_dummy_code): New function.
        (mips_gdbarch_init): Set the gdbarch call_dummy_location to
        ON_STACK and install mips_push_dummy_code as our gdbarch
        push_dummy_code routine.

12 years ago2012-05-09 Pedro Alves <palves@redhat.com>
Pedro Alves [Wed, 9 May 2012 11:47:14 +0000 (11:47 +0000)]
2012-05-09  Pedro Alves  <palves@redhat.com>

* target.c (set_maintenance_target_async_permitted): Rename to ...
(set_target_async_command): ... this.
(show_maintenance_target_async_permitted): Rename to ...
(show_target_async_command): ... this.
(initialize_targets): Adjust.

12 years ago * go-exp.y (classify_name): Add missing assignment of fields of
Doug Evans [Wed, 9 May 2012 05:10:26 +0000 (05:10 +0000)]
* go-exp.y (classify_name): Add missing assignment of fields of
yylval.ssym.

12 years agoAdded log for a change I made in binutils/MAINTAINERS.
Sean Keys [Wed, 9 May 2012 00:36:46 +0000 (00:36 +0000)]
Added log for a change I made in binutils/MAINTAINERS.

12 years agoAdded my contact information to the maintainers section.
Sean Keys [Wed, 9 May 2012 00:33:37 +0000 (00:33 +0000)]
Added my contact information to the maintainers section.

12 years agodaily update
Alan Modra [Wed, 9 May 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Wed, 9 May 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agoDisplay the ">" prompt in interactive mode while reading canned
Eli Zaretskii [Tue, 8 May 2012 18:49:42 +0000 (18:49 +0000)]
Display the ">" prompt in interactive mode while reading canned
commands, even when the current interpreter is MI.

 interps.c (interp_set_temp): New function.
 interps.h (interp_set_temp): Add prototype.
 cli/cli-script.c (restore_interp): New cleanup function.
 (read_command_lines): Temporarily override the current interpreter
 with CLI and arrange for restoring the original one.

12 years agogold/
Cary Coutant [Tue, 8 May 2012 18:00:02 +0000 (18:00 +0000)]
gold/

* layout.cc (gdb_sections): Update GDB version, add .debug_addr.
(lines_only_debug_sections): Likewise.

12 years agobinutils/
Cary Coutant [Tue, 8 May 2012 17:49:36 +0000 (17:49 +0000)]
binutils/

* doc/binutils.texi (objcopy): Add --strip-dwo, --extract-dwo options.
(strip): Add --strip-dwo option.
* objcopy.c (enum strip_action): Add STRIP_DWO, STRIP_NONDWO.
(enum command_line_switch): Add OPTION_EXTRACT_DWO, OPTION_STRIP_DWO.
(strip_options): Add --strip-dwo option.
(copy_options): Add --extract-dwo, --strip-dwo options.
(copy_usage): Likewise.
(strip_usage): Add --strip-dwo option.
(is_dwo_section): New function.
(is_strip_section_1): Check for DWO sections.
(copy_object): Check for --strip-dwo, --extract-dwo options.
(copy_relocations_in_section): Discard relocations for DWO sections.
Discard entire relocation section when no relocations.
(strip_main): Add --strip-dwo option.
(copy_main): Add --strip-dwo, --extract-dwo options.

12 years ago2012-05-08 Ben Cheng <bccheng@google.com>
Doug Kwan [Tue, 8 May 2012 17:18:21 +0000 (17:18 +0000)]
2012-05-08  Ben Cheng  <bccheng@google.com>

* bfd/elf.c: Preserve the original p_align and p_flags if they are
valid.

12 years ago2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
Joel Sherrill [Tue, 8 May 2012 14:07:09 +0000 (14:07 +0000)]
2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>

    * microblaze-rom.c (_initialize_picobug_rom): Add prototype.

12 years ago * lib/gas-defs.exp (run_dump_test): Don't set LC_ALL here.
Alan Modra [Tue, 8 May 2012 12:15:06 +0000 (12:15 +0000)]
* lib/gas-defs.exp (run_dump_test): Don't set LC_ALL here.

12 years ago * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
Alan Modra [Tue, 8 May 2012 12:14:15 +0000 (12:14 +0000)]
* Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
LC and LANG environment vars.
* Makefile.in: Regenerate.

12 years ago * gdb.mi/mi-var-display.exp: Check for the existence of $fp
Maciej W. Rozycki [Tue, 8 May 2012 07:22:19 +0000 (07:22 +0000)]
* gdb.mi/mi-var-display.exp: Check for the existence of $fp
before using it.

12 years ago2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
Sergio Durigan Junior [Tue, 8 May 2012 01:35:35 +0000 (01:35 +0000)]
2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>

* probe.c (parse_probes): Move conditional to check for
debuginfo files from here...
* stap-probe.c (stap_get_probes): ... to here.

12 years agodaily update
Alan Modra [Tue, 8 May 2012 00:00:05 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Tue, 8 May 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago H.J. Lu <hongjiu.lu@intel.com>
Mark Kettenis [Mon, 7 May 2012 21:02:43 +0000 (21:02 +0000)]
H.J. Lu  <hongjiu.lu@intel.com>

* amd64-tdep.c (amd64_analyze_prologue): Additionally check for
`movl %esp, %ebp' for the X32 ABI.

12 years ago * dwarf2read.c (dwarf_tag_name): Return const char *. Use
Tom Tromey [Mon, 7 May 2012 15:18:38 +0000 (15:18 +0000)]
* dwarf2read.c (dwarf_tag_name): Return const char *.  Use
get_DW_TAG_name.
(dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
(dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
(dwarf_stack_op_name): Remove.
(dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
(decode_locdesc): Use get_DW_OP_name.
* dwarf2loc.c (unimplemented): Use get_DW_OP_name.
(dwarf2_compile_expr_to_ax): Likewise.
(disassemble_dwarf_expression): Likewise.
* dwarf2expr.h: (dwarf_stack_op_name): Remove.

12 years ago * dwarf.c (get_TAG_name): Use get_DW_TAG_name.
Tom Tromey [Mon, 7 May 2012 15:04:59 +0000 (15:04 +0000)]
* dwarf.c (get_TAG_name): Use get_DW_TAG_name.
(get_FORM_name): Use get_DW_FORM_name.
(get_AT_name): Use get_DW_AT_name.

12 years ago2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
Chung-Lin Tang [Mon, 7 May 2012 13:17:29 +0000 (13:17 +0000)]
2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>

* sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
(sh_linux_sigtramp_cache): New function.
(sh_linux_sigreturn_init): New function.
(sh_linux_rt_sigreturn_init): New function.
(SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
patterns.
(SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
syscall codes.
(sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
(sh_linux_rt_sigreturn_tramp_frame): Likewise.
(sh_linux_init_abi): Add init calls to register new tramp_frame
definitions under 32-bit SH, update comments.

12 years agoAdd PR number to ChangeLog entry.
Pedro Alves [Mon, 7 May 2012 10:59:25 +0000 (10:59 +0000)]
Add PR number to ChangeLog entry.

2012-05-07  Pedro Alves  <palves@redhat.com>

PR gdb/10952

* amd64-linux-tdep.c: Include glibc-tdep.h.
(amd64_linux_init_abi): Install glibc_skip_solib_resolver as
gdbarch_skip_solib_resolver callback.

12 years ago2012-05-07 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 7 May 2012 10:52:00 +0000 (10:52 +0000)]
2012-05-07  Tristan Gingold  <gingold@adacore.com>

* pe-dll.c (udef_table): Make it static.

12 years ago2012-05-07 Pedro Alves <palves@redhat.com>
Pedro Alves [Mon, 7 May 2012 10:47:22 +0000 (10:47 +0000)]
2012-05-07  Pedro Alves  <palves@redhat.com>

* amd64-linux-tdep.c: Include glibc-tdep.h.
(amd64_linux_init_abi): Install glibc_skip_solib_resolver as
gdbarch_skip_solib_resolver callback.

12 years ago * elf64-ia64-vms.c (elf64_ia64_relocate_section): Update
Alan Modra [Mon, 7 May 2012 09:25:27 +0000 (09:25 +0000)]
* elf64-ia64-vms.c (elf64_ia64_relocate_section): Update
RELOC_AGAINST_DISCARDED_SECTION invocation.

12 years ago * Makefile.am (check-DEJAGNU): Clear LC_COLLATE, LC_ALL and LANG.
Alan Modra [Mon, 7 May 2012 09:21:48 +0000 (09:21 +0000)]
* Makefile.am (check-DEJAGNU): Clear LC_COLLATE, LC_ALL and LANG.
* Makefile.in: Regenerate.

12 years ago * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Declare and use
Hans-Peter Nilsson [Mon, 7 May 2012 05:44:35 +0000 (05:44 +0000)]
* elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Declare and use
local variable i_ instead of assuming and using a variable i.

12 years ago * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Handle compound
Maciej W. Rozycki [Mon, 7 May 2012 03:27:52 +0000 (03:27 +0000)]
* elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Handle compound
relocations.
* elfxx-mips.c (mips_reloc_against_discarded_section): New
function.
(_bfd_mips_elf_relocate_section): Call it, in place of
RELOC_AGAINST_DISCARDED_SECTION.
* elf-m10200.c (mn10200_elf_relocate_section): Update arguments
to RELOC_AGAINST_DISCARDED_SECTION.
* elf-m10300.c (mn10300_elf_relocate_section): Likewise.
* elf32-arm.c (elf32_arm_relocate_section): Likewise.
* elf32-avr.c (elf32_avr_relocate_section): Likewise.
* elf32-bfin.c (bfin_relocate_section): Likewise.
(bfinfdpic_relocate_section): Likewise.
* elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
* elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
* elf32-cris.c (cris_elf_relocate_section): Likewise.
* elf32-crx.c (elf32_crx_relocate_section): Likewise.
* elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
* elf32-epiphany.c (epiphany_elf_relocate_section): Likewise.
* elf32-fr30.c (fr30_elf_relocate_section): Likewise.
* elf32-frv.c (elf32_frv_relocate_section): Likewise.
* elf32-h8300.c (elf32_h8_relocate_section): Likewise.
* elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
* elf32-i370.c (i370_elf_relocate_section): Likewise.
* elf32-i386.c (elf_i386_relocate_section): Likewise.
* elf32-i860.c (elf32_i860_relocate_section): Likewise.
* elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
* elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
* elf32-lm32.c (lm32_elf_relocate_section): Likewise.
* elf32-m32c.c (m32c_elf_relocate_section): Likewise.
* elf32-m32r.c (m32r_elf_relocate_section): Likewise.
* elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
* elf32-mcore.c (mcore_elf_relocate_section): Likewise.
* elf32-mep.c (mep_elf_relocate_section): Likewise.
* elf32-moxie.c (moxie_elf_relocate_section): Likewise.
* elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
* elf32-mt.c (mt_elf_relocate_section): Likewise.
* elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf32-rl78.c (rl78_elf_relocate_section): Likewise.
* elf32-rx.c (rx_elf_relocate_section): Likewise.
* elf32-s390.c (elf_s390_relocate_section): Likewise.
* elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
* elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
* elf32-sh.c (sh_elf_relocate_section): Likewise.
* elf32-spu.c (spu_elf_relocate_section): Likewise.
* elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
* elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
* elf32-v850.c (v850_elf_relocate_section): Likewise.
* elf32-vax.c (elf_vax_relocate_section): Likewise.
* elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
* elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
* elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
(elf64_alpha_relocate_section): Likewise.
* elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
* elf64-mmix.c (mmix_elf_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-sh64.c (sh_elf64_relocate_section): Likewise.
* elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
* elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
* elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.

12 years agodaily update
Alan Modra [Mon, 7 May 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Mon, 7 May 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agogdb/
Jan Kratochvil [Sun, 6 May 2012 15:31:04 +0000 (15:31 +0000)]
gdb/
* auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
(show_auto_load_safe_path): Check any-directory by comparison with "/".
(add_auto_load_safe_path): Change the error message.
(_initialize_auto_load): Change the "safe-path" help text.
* configure: Regenerate
* configure.ac (--without-auto-load-safe-path): Set
WITH_AUTO_LOAD_SAFE_PATH to /.

gdb/doc/
* gdb.texinfo (Auto-loading safe path): Make 'directories'
for 'set auto-load safe-path' optional.  Mention if it is omitted.
Change disabling security protection condition to "/", twice.

12 years ago2012-05-06 Arnold Metselaar <arnold_m@operamail.com>
Arnold Metselaar [Sun, 6 May 2012 10:56:25 +0000 (10:56 +0000)]
2012-05-06  Arnold Metselaar  <arnold_m@operamail.com>

* gas/z80/jr-forwf.s: New file, adapted from z8k version.
* gas/z80/jr-backf.s: Likewise.
* gas/z80/djnz-backf.s: Likewise.
* gas/z80/ill_op: New file, with illegal operand.
* gas/z80/z80.exp: Run new tests.

12 years ago2012-05-06 Arnold Metselaar <arnold_m@operamail.com>
Arnold Metselaar [Sun, 6 May 2012 09:49:21 +0000 (09:49 +0000)]
2012-05-06  Arnold Metselaar <arnold_m@operamail.com>

* config/tc-z80.h(md_register_arithmetic): Define as 0.
* config/tc-z80.c(md_begin): Store register names in symbol table, prevents usage as ordinary symbol.
* config/tc-z80.c(contains_register): New function.
* config/tc-z80.c(parse_exp2): Removed.
* config/tc-z80.c(parse_exp_not_indexed): New function.
* config/tc-z80.c(parse_exp): Add code to recogize indexed addressing after parsing.
* config/tc-z80.c(emit_byte, emit_word): Use contains_register.
* config/tc-z80.c(emit_jp): Use parse_exp_not_indexed, simplify condition for jump to register.
* config/tc-z80.c(emit_call, emit_jr, emit_ex, emit_rst): Use parse_exp_not_indexed.

12 years ago*** empty log message ***
gdbadmin [Sun, 6 May 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sun, 6 May 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years agoAdd a testcase for PR ld/14052
H.J. Lu [Sat, 5 May 2012 14:15:21 +0000 (14:15 +0000)]
Add a testcase for PR ld/14052

PR ld/14052
* ld-elf/pr14052.d: New file.
* ld-elf/pr14052.t: Likewise.

12 years ago2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
Sergio Durigan Junior [Sat, 5 May 2012 05:36:23 +0000 (05:36 +0000)]
2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>

* stap-probe.h: Do not include unecessary `probe.h'.

12 years ago PR ld/14052
Alan Modra [Sat, 5 May 2012 04:51:16 +0000 (04:51 +0000)]
PR ld/14052
PR ld/13621
bfd/
* linker.c (_bfd_nearby_section): Revert 2012-02-13 change.
ld/testsuite/
* ld-elf/warn2.d: Revert 2012-02-13 change.
* ld-elf/zerosize1.d, ld-elf/zerosize1.s: Delete.

12 years agoRegenerate.
Alan Modra [Sat, 5 May 2012 04:37:32 +0000 (04:37 +0000)]
Regenerate.

12 years agoReplace all uses of bfd_abs_section, bfd_com_section, bfd_und_section
Alan Modra [Sat, 5 May 2012 03:05:32 +0000 (03:05 +0000)]
Replace all uses of bfd_abs_section, bfd_com_section, bfd_und_section
and bfd_ind_section with their _ptr variants, or use corresponding
bfd_is_* macros.

12 years agodaily update
Alan Modra [Sat, 5 May 2012 00:00:04 +0000 (00:00 +0000)]
daily update