Wu Zhou [Tue, 21 Jun 2005 08:36:30 +0000 (08:36 +0000)]
* MAINTAINERS (Write After Approval): Add myself.
Mark Kettenis [Tue, 21 Jun 2005 05:32:00 +0000 (05:32 +0000)]
* hppabsd-tdep.c: Include "symtab.h", "objfiles.h", "target.h",
"value.h" and "elf/common.h".
(hppabsd_supply_gregset): Use `gdb_byte *' for byte buffer.
(hppabsd_find_global_pointer): New function.
(hppabsd_init_abi): Set TDEP->find_global_pointer to
hppabsd_find_global_pointer.
* Makefile.in (hppabsd-tdep.o): Update dependencies.
Geoffrey Keating [Tue, 21 Jun 2005 00:28:25 +0000 (00:28 +0000)]
Index: include/ChangeLog
2005-06-20 Geoffrey Keating <geoffk@apple.com>
* libiberty.h (strverscmp): Prototype.
Index: libiberty/ChangeLog
2005-06-20 Geoffrey Keating <geoffk@apple.com>
* strverscmp.c: New.
* Makefile.in (CFILES): Add strverscmp.c.
(CONFIGURED_OFILES): Add strverscmp.o.
(strverscmp.o): New rule.
(stamp-functions): Add $(srcdir) to files in source directory.
* configure.ac (funcs): Add strverscmp.
(AC_CHECK_FUNCS): Add strverscmp.
* configure: Regenerate.
* functions.texi: Regenerate.
Alan Modra [Tue, 21 Jun 2005 00:00:06 +0000 (00:00 +0000)]
daily update
gdbadmin [Tue, 21 Jun 2005 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***
H.J. Lu [Mon, 20 Jun 2005 23:18:39 +0000 (23:18 +0000)]
gas/
2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
PR 1013
* config/tc-i386.c (md_assemble): Don't call optimize_disp on
movabs.
(optimize_disp): Optimize only if possible. Don't use 64bit
displacement on non-constants and do same on constants if
possible.
gas/testsuite/
2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
PR 1013
* i386/x86_64.s: Add absolute 64bit addressing tests for mov.
* i386/x86_64.s: Updated.
include/opcode/
2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
PR 1013
* i386.h (i386_optab): Update comments for 64bit addressing on
mov. Allow 64bit addressing for mov and movq.
H.J. Lu [Mon, 20 Jun 2005 18:12:11 +0000 (18:12 +0000)]
2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
PR 1025
* elf-m10300.c (mn10300_elf_check_relocs): Handle indirect
symbol.
* elf32-arm.c (elf32_arm_check_relocs): Likewise.
* elf32-avr.c (elf32_avr_check_relocs): Likewise.
* elf32-cris.c (cris_elf_check_relocs): Likewise.
* elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
* elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
* elf32-fr30.c (fr30_elf_check_relocs): Likewise.
* elf32-frv.c (elf32_frv_check_relocs): Likewise.
* elf32-i370.c (i370_elf_check_relocs): Likewise.
* elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
* elf32-m32r.c (m32r_elf_check_relocs): Likewise.
* elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
* elf32-m68k.c (elf_m68k_check_relocs): Likewise.
* elf32-mcore.c (mcore_elf_check_relocs): Likewise.
* elf32-ms1.c (ms1_elf_check_relocs): Likewise.
* elf32-msp430.c (elf32_msp430_check_relocs): Likewise.
* elf32-openrisc.c (openrisc_elf_check_relocs): Likewise.
* elf32-ppc.c (ppc_elf_check_relocs): Likewise.
* elf32-s390.c (elf_s390_check_relocs): Likewise.
* elf32-sh.c (sh_elf_check_relocs): Likewise.
* elf32-v850.c (v850_elf_check_relocs): Likewise.
* elf32-vax.c (elf_vax_check_relocs): Likewise.
* elf64-mmix.c (mmix_elf_check_relocs): Likewise.
* elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
* elf64-s390.c (elf_s390_check_relocs): Likewise.
* elf64-sh64.c (sh_elf64_check_relocs): Likewise.
* elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
H.J. Lu [Mon, 20 Jun 2005 13:06:27 +0000 (13:06 +0000)]
2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
PR 1022
* elf32-hppa.c (elf32_hppa_check_relocs): Handle indirect
symbol.
H.J. Lu [Mon, 20 Jun 2005 12:59:49 +0000 (12:59 +0000)]
2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
PR 1025:
* elf32-i386.c (elf_i386_check_relocs): Handle indirect symbol.
* elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
Nick Roberts [Mon, 20 Jun 2005 03:38:20 +0000 (03:38 +0000)]
(test_stack_locals_listing): Remove test for -stack-select-frame without
arguments.
(test_stack_frame_listing): Add test for newly implemented command
-stack-info-frame.
Nick Roberts [Mon, 20 Jun 2005 03:37:15 +0000 (03:37 +0000)]
*** empty log message ***
gdbadmin [Mon, 20 Jun 2005 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Mon, 20 Jun 2005 00:00:06 +0000 (00:00 +0000)]
daily update
Mark Kettenis [Sun, 19 Jun 2005 21:25:47 +0000 (21:25 +0000)]
* hppa-tdep.c (hppa_pointer_to_address_hack): Remove function.
(unwind_command): Use %lx to print pointer.
Mark Kettenis [Sun, 19 Jun 2005 20:08:37 +0000 (20:08 +0000)]
* remote-sim.c (gdbsim_xfer_inferior_memory): Remove prototype.
Change type of second argument to`gdb_byte *'.
Nick Roberts [Sun, 19 Jun 2005 03:16:32 +0000 (03:16 +0000)]
(GDB/MI Stack Manipulation):
Re-instate -stack-info-frame with example. Say that it gets
info on selected frame, not current frame.
Nick Roberts [Sun, 19 Jun 2005 03:14:46 +0000 (03:14 +0000)]
*** empty log message ***
Nick Roberts [Sun, 19 Jun 2005 03:12:39 +0000 (03:12 +0000)]
(mi_cmds): Replace entry for -stack-info-frame.
Make it use mi_cmd_stack_info_frame
Nick Roberts [Sun, 19 Jun 2005 03:12:15 +0000 (03:12 +0000)]
(mi_cmd_stack_info_frame): New declaration.
Nick Roberts [Sun, 19 Jun 2005 03:11:47 +0000 (03:11 +0000)]
(mi_cmd_stack_info_frame): New function.
gdbadmin [Sun, 19 Jun 2005 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 19 Jun 2005 00:00:06 +0000 (00:00 +0000)]
daily update
Mark Kettenis [Sat, 18 Jun 2005 22:03:41 +0000 (22:03 +0000)]
* hppa-tdep.c (hppa_fallback_frame_cache): Don't error out if we
can't find the bounds of the current function. Wrap some long
lines in the process.
Mark Kettenis [Sat, 18 Jun 2005 15:22:55 +0000 (15:22 +0000)]
* regcache.c (regcache_raw_supply, regcache_raw_collect): Change
type of last argument back to `void *'.
* regcache.h (regcache_raw_supply, regcache_raw_collect): Likewise.
H.J. Lu [Sat, 18 Jun 2005 13:23:06 +0000 (13:23 +0000)]
2005-06-18 H.J. Lu <hongjiu.lu@intel.com>
* reloc.c: Add BFD_RELOC_X86_64_GOTOFF64 and
BFD_RELOC_X86_64_GOTPC32.
* bfd-in2.h: Regenerated.
Eli Zaretskii [Sat, 18 Jun 2005 13:12:04 +0000 (13:12 +0000)]
(Backtrace): Document that free-standing environments do not need
to have a `main' function.
Eli Zaretskii [Sat, 18 Jun 2005 12:54:36 +0000 (12:54 +0000)]
(Machine Code): Document possible problems with locations in
shared libraries.
Eli Zaretskii [Sat, 18 Jun 2005 12:40:48 +0000 (12:40 +0000)]
(Files): Add more indexing for solib-absolute-prefix and --with-sysroot.
Eli Zaretskii [Sat, 18 Jun 2005 12:36:06 +0000 (12:36 +0000)]
(Files): Document the possibility of loading unlinked object files.
Eli Zaretskii [Sat, 18 Jun 2005 12:18:25 +0000 (12:18 +0000)]
(Threads): Add an @cindex entry for "thread apply".
Eli Zaretskii [Sat, 18 Jun 2005 12:10:55 +0000 (12:10 +0000)]
(Output Formats): More detailed description of the `c' format.
(Memory): List explicitly all the formats supported by `x'.
Eli Zaretskii [Sat, 18 Jun 2005 11:39:36 +0000 (11:39 +0000)]
(Server): Clarify that `file' should be used before connecting to the server.
(Files): Add an xref to the above description.
Nick Roberts [Sat, 18 Jun 2005 03:01:48 +0000 (03:01 +0000)]
(GDB/MI Stack Manipulation): Remove reference to
-stack-info-frame.
Nick Roberts [Sat, 18 Jun 2005 02:51:55 +0000 (02:51 +0000)]
*** empty log message ***
Nick Roberts [Sat, 18 Jun 2005 02:49:50 +0000 (02:49 +0000)]
(mi_cmds): Remove entry for -stack-info-frame.
Nick Roberts [Sat, 18 Jun 2005 02:49:18 +0000 (02:49 +0000)]
(mi_cmd_stack_list_frames, mi_cmd_stack_info_depth):
Don't test for stack.
(mi_cmd_stack_select_frame): Make the argument mandatory.
Don't test for stack.
Daniel Jacobowitz [Sat, 18 Jun 2005 00:56:23 +0000 (00:56 +0000)]
Correct a typo.
Alan Modra [Sat, 18 Jun 2005 00:00:08 +0000 (00:00 +0000)]
daily update
gdbadmin [Sat, 18 Jun 2005 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***
Jakub Jelinek [Fri, 17 Jun 2005 15:48:25 +0000 (15:48 +0000)]
* elf.c (bfd_section_from_shdr): Kill bogus warning.
Jakub Jelinek [Fri, 17 Jun 2005 13:39:56 +0000 (13:39 +0000)]
* elf.c (bfd_section_from_shdr): Fail if sh_entsize is bogus for
symbol, relocation, group or versym sections.
* coffcode.h (coff_slurp_reloc_table): Don't crash if native_relocs
is NULL.
* peXXigen.c (pe_print_idata): Don't crash if dll_name or start_address
doesn't point into the section.
Jakub Jelinek [Fri, 17 Jun 2005 13:37:26 +0000 (13:37 +0000)]
* elf/external.h (GRP_ENTRY_SIZE): Define.
* readelf.c (CHECK_ENTSIZE_VALUES, CHECK_ENTSIZE): Define.
(process_section_headers): Use it.
(process_relocs): Don't crash if symsec is not SHT_SYMTAB
or SHT_DYNSYM.
(process_version_sections): Use sizeof (Elf_External_Versym)
instead of sh_entsize.
Jan Beulich [Fri, 17 Jun 2005 08:03:59 +0000 (08:03 +0000)]
bfd/
2005-06-17 Jan Beulich <jbeulich@novell.com>
* bfd-in2.h (elf_x86_64_reloc_type): Add BFD_RELOC_X86_64_GOTOFF64
and BFD_RELOC_X86_64_GOTPC32.
* libbfd.h (bfd_reloc_code_real_names): Likewise.
* elf64-x86-64.c (x86_64_elf_howto_table): Add entries for
R_X86_64_PC64, R_X86_64_GOTOFF64, and R_X86_64_GOTPC32.
(x86_64_reloc_map): Add entries for R_X86_64_PC64, R_X86_64_GOTOFF64,
and R_X86_64_GOTPC32.
(elf64_x86_64_info_to_howto): Adjust bounding relocation type.
(elf64_x86_64_check_relocs): Also handle R_X86_64_PC64,
R_X86_64_GOTOFF64, and R_X86_64_GOTPC32.
(elf64_x86_64_relocate_section): Likewise.
(elf64_x86_64_gc_sweep_hook): Also handle R_X86_64_PC64.
gas/
2005-06-17 Jan Beulich <jbeulich@novell.com>
* config/tc-i386.c (reloc): Also handle BFD_RELOC_64_PCREL.
(tc_i386_fix_adjustable): Include BFD_RELOC_X86_64_GOTOFF64,
BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64.
(output_disp): Do GOTPC conversion also for BFD_RELOC_X86_64_32S
and BFD_RELOC_32_PCREL. Use BFD_RELOC_X86_64_GOTPC32 instead of
aborting.
(output_imm): Do GOTPC conversion also for BFD_RELOC_X86_64_32S.
Use BFD_RELOC_X86_64_GOTPC32 instead of aborting.
(tc_gen_reloc): Do GOTPC conversion also for BFD_RELOC_32_PCREL.
Use BFD_RELOC_X86_64_GOTPC32 instead of aborting. Also handle
BFD_RELOC_X86_64_GOTOFF64, BFD_RELOC_X86_64_GOTPC32,
BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64. Also
convert 8-byte pc-relative relocations.
(lex_got): Use BFD_RELOC_X86_64_GOTOFF64 for 64-bit @gotoff.
(i386_validate_fix): Likewise.
(x86_cons): Also handle quad values in 64-bit mode.
(i386_displacement): Also handle BFD_RELOC_X86_64_GOTOFF64.
(md_apply_fix): Include BFD_RELOC_X86_64_DTPOFF64 and
BFD_RELOC_X86_64_TPOFF64 in the TLS check. Also convert BFD_RELOC_64
to pc-relative variant. Also check for BFD_RELOC_64_PCREL.
gas/testsuite/
2005-06-17 Jan Beulich <jbeulich@novell.com>
* gas/i386/x86-64-pcrel.s: Add insn requiring 64-bit pc-relative
relocation. Add insns for all widths of non-pc-relative relocations.
* gas/i386/x86-64-pcrel.d: Adjust.
include/elf/
2005-06-17 Jan Beulich <jbeulich@novell.com>
* x86-64.h (elf_x86_64_reloc_type): Adjust comment for
R_X86_64_GOTPCREL. Add R_X86_64_PC64, R_X86_64_GOTOFF64, and
R_X86_64_GOTPC32.
Wu Zhou [Fri, 17 Jun 2005 05:18:12 +0000 (05:18 +0000)]
* gdb.fortran/array_element.f: New file.
* gdb.fortran/array_element.exp: New testcase.
Daniel Jacobowitz [Fri, 17 Jun 2005 04:01:05 +0000 (04:01 +0000)]
* linux-low.c (linux_wait, linux_send_signal): Don't test
an unsigned long variable for > 0 if it could be MAX_ULONG.
* server.c (myresume): Likewise.
* target.c (set_desired_inferior): Likewise.
Wu Zhou [Fri, 17 Jun 2005 03:53:15 +0000 (03:53 +0000)]
* remote.c (set_thread, remote_thread_alive): Replace sprintf
call with xsnprintf.
(remote_threads_extra_info, extended_remote_restart)
(remote_check_symbols, store_register_using_P)
(compare_sections_command): Ditto.
Wu Zhou [Fri, 17 Jun 2005 03:42:24 +0000 (03:42 +0000)]
* remote.c (set_thread, remote_thread_alive): Replace sprintf
call with xsnprintf.
(remote_threads_extra_info, extended_remote_restart)
(remote_check_symbols, store_register_using_P)
(compare_sections_command): Ditto.
Daniel Jacobowitz [Fri, 17 Jun 2005 03:13:07 +0000 (03:13 +0000)]
* gencode.c (tab): Avoid lvalue casts. Suggested by
Ralf Corsepius <ralf.corsepius@rtems.org>.
Alan Modra [Fri, 17 Jun 2005 00:00:08 +0000 (00:00 +0000)]
daily update
gdbadmin [Fri, 17 Jun 2005 00:00:07 +0000 (00:00 +0000)]
*** empty log message ***
David Ung [Thu, 16 Jun 2005 17:01:12 +0000 (17:01 +0000)]
* mips16-opc.c (mips16_opcodes): Add the following MIPS16e
instructions to the table; seb/seh/sew/zeb/zeh/zew.
David Ung [Thu, 16 Jun 2005 15:15:49 +0000 (15:15 +0000)]
* mips.igen: New mips16e model and include m16e.igen.
(check_u64): Add mips16e tag.
* m16e.igen: New file for MIPS16e instructions.
* configure.ac (mipsisa32*-*-*, mipsisa32r2*-*-*, mipsisa64*-*-*,
mipsisa64r2*-*-*): Change sim_gen to M16, add mips16 and mips16e
models.
* configure: Regenerate.
David Ung [Thu, 16 Jun 2005 15:04:39 +0000 (15:04 +0000)]
* MAINTAINERS (Write After Approval): Add self.
Nick Clifton [Thu, 16 Jun 2005 09:46:10 +0000 (09:46 +0000)]
Add quotes to avoid a null test expression.
Nick Clifton [Thu, 16 Jun 2005 09:18:19 +0000 (09:18 +0000)]
rename.c (simple_copy): Only define if it is going to be used.
(smart_rename): Mark the preserve_dates parameter as possibly being unused.
resres.c (write_res_data): Prevent a potential compile time warning by casting
the return value from fwrite.
Mark Kettenis [Thu, 16 Jun 2005 08:05:39 +0000 (08:05 +0000)]
* archive.c: Include "libiberty.h".
gdbadmin [Thu, 16 Jun 2005 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Thu, 16 Jun 2005 00:00:05 +0000 (00:00 +0000)]
daily update
Mark Kettenis [Wed, 15 Jun 2005 16:35:28 +0000 (16:35 +0000)]
Fix my e-mail address in previous commit.
Mark Kettenis [Wed, 15 Jun 2005 16:34:27 +0000 (16:34 +0000)]
* hppa-hpux-nat.c (hppa_hpux_fetch_register)
(hppa_hpux_store_register): Add casts in extract_unsigned_integer
and store_usigned_integer calls.
Dave Brolley [Wed, 15 Jun 2005 16:23:54 +0000 (16:23 +0000)]
2005-06-15 Dave Brolley <brolley@redhat.com>
Contribute Morpho ms1 on behalf of Red Hat
* ms1-asm.c, ms1-desc.c, ms1-dis.c, ms1-ibld.c, ms1-opc.c,
ms1-opc.h: New files, Morpho ms1 target.
2004-05-14 Stan Cox <scox@redhat.com>
* disassemble.c (ARCH_ms1): Define.
(disassembler): Handle bfd_arch_ms1
2004-05-13 Michael Snyder <msnyder@redhat.com>
* Makefile.am, Makefile.in: Add ms1 target.
* configure.in: Ditto.
Dave Brolley [Wed, 15 Jun 2005 15:33:07 +0000 (15:33 +0000)]
2005-06-15 Dave Brolley <brolley@redhat.com>
Contributed by Red Hat.
* ms1.cpu: New file. Written by Nick Clifton, Stan Cox.
* ms1.opc: New file. Written by Stan Cox.
Nick Clifton [Wed, 15 Jun 2005 08:22:45 +0000 (08:22 +0000)]
* elf32-v850.c (ELF_MACHINE_ALT2): Define so that binaries produced by the
GreenHills toolchain can be assimilated.
Dave Anglin [Wed, 15 Jun 2005 00:16:10 +0000 (00:16 +0000)]
* som.c (som_find_inliner_info): New.
Alan Modra [Wed, 15 Jun 2005 00:00:06 +0000 (00:00 +0000)]
daily update
gdbadmin [Wed, 15 Jun 2005 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Mark Kettenis [Tue, 14 Jun 2005 21:36:29 +0000 (21:36 +0000)]
* configure.ac: Simplify and improve check for socklen_t.
* configure, config.in: Regenerate.
Tom Tromey [Tue, 14 Jun 2005 20:27:38 +0000 (20:27 +0000)]
PR libgcj/19877:
* no-executables.m4: Call real AC_FUNC_MMAP when cache variable
is set but not 'no'.
Mark Kettenis [Tue, 14 Jun 2005 20:13:00 +0000 (20:13 +0000)]
Fix typo.
H.J. Lu [Tue, 14 Jun 2005 19:25:45 +0000 (19:25 +0000)]
2005-06-14 H.J. Lu <hongjiu.lu@intel.com>
* elflink.c (_bfd_elf_merge_symbol): Fix a typo in comment.
H.J. Lu [Tue, 14 Jun 2005 13:26:42 +0000 (13:26 +0000)]
2005-06-14 H.J. Lu <hongjiu.lu@intel.com>
PR 995
* ar.c (BUFSIZE): Moved to ...
* bucomm.h (BUFSIZE): Here.
* bucomm.c: Include <assert.h>.
(bfd_get_archive_filename): New.
* bucomm.h (bfd_get_archive_filename): New.
* objcopy.c (copy_unknown_object): New.
(copy_object): Use bfd_get_archive_filename when reporting input
error. Don't call fatal on unknown arch.
(copy_archive): Call copy_unknown_object on unknown format or
arch.
Jakub Jelinek [Tue, 14 Jun 2005 11:06:28 +0000 (11:06 +0000)]
* readelf.c (cmalloc, xcmalloc, xcrealloc): New functions.
(get_data): Add nmemb argument. Return NULL if nmemb * size
overflows. If var == NULL, allocate one extra byte and
clear it.
(slurp_rela_relocs, slurp_rel_relocs, get_32bit_program_headers,
get_64bit_program_headers, get_program_headers,
get_32bit_section_headers, get_64bit_section_headers,
get_32bit_elf_symbols, get_64bit_elf_symbols, process_section_headers,
process_section_groups, process_relocs, slurp_ia64_unwind_table,
ia64_process_unwind, slurp_hppa_unwind_table, hppa_process_unwind,
get_32bit_dynamic_section, get_64bit_dynamic_section,
process_dynamic_section, process_version_sections, get_dynamic_data,
process_symbol_table, dump_section, load_debug_str, load_debug_loc,
load_debug_range, read_and_display_attr_value, process_debug_info,
get_debug_info, frame_need_space, display_debug_frames,
display_debug_section, process_mips_specific, process_gnu_liblist,
process_corefile_note_segment): Adjust get_data callers. Use
cmalloc, xcmalloc and xcrealloc instead of {m,xm,xre}alloc where
passed size is a product of 2 numbers.
* readelf.c (print_mode): Fix comment typo.
(slurp_rela_relocs, slurp_rel_relocs): Fix memory leaks.
(dump_relocations): Fix a thinko in check for invalid st_name.
(process_program_headers): Don't crash if string_table is NULL.
(process_section_headers): Don't crash if e_shstrndx is invalid.
Ensure string_table_length is 0 if string_table == NULL.
Don't return just because string_table is NULL.
(process_section_groups): Don't crash if symtab's sh_link or
symbol's st_name is invalid. Fix a memory leak. Fix check for
invalid section number entry.
(process_relocs): Don't crash if relocation or symbol section's
sh_link is invalid.
(slurp_ia64_unwind_table, slurp_hppa_unwind_table): Don't crash if
relocation section's sh_info is invalid.
(ia64_process_unwind, hppa_process_unwind): Don't crash if symbol
table's sh_link is invalid.
(process_version_sections): Don't crash on version or symbol
section's sh_link is invalid. Don't crash if symbol's st_shndx
is invalid.
(process_symbol_table): Don't crash if string table is corrupt
or symbol's st_name, st_shndx, vna_name or vda_name is invalid.
(debug_apply_rela_addends): Don't crash if relocation section's
sh_info or sh_link is invalid.
(display_debug_loc): Warn for unterminated .debug_loc section
or start offsets not within .debug_loc section boundaries.
(process_gnu_liblist): Don't crash if liblist section's sh_link
or entry's l_name is invalid.
Jakub Jelinek [Tue, 14 Jun 2005 11:04:22 +0000 (11:04 +0000)]
* elf.c (bfd_section_from_shdr): Fail if name is NULL.
Prevent endless recursion on broken objects.
* archive.c (do_slurp_coff_armap): Check for overflows.
gdbadmin [Tue, 14 Jun 2005 00:01:03 +0000 (00:01 +0000)]
*** empty log message ***
Alan Modra [Tue, 14 Jun 2005 00:00:06 +0000 (00:00 +0000)]
daily update
Nick Roberts [Mon, 13 Jun 2005 22:21:57 +0000 (22:21 +0000)]
(mi_cmd_data_list_register_values): Remove test for
registers now that mi_execute_command rewinds after an error.
Nick Roberts [Mon, 13 Jun 2005 22:21:19 +0000 (22:21 +0000)]
*** empty log message ***
Mark Kettenis [Mon, 13 Jun 2005 21:59:38 +0000 (21:59 +0000)]
* configure.ac: Use AC_CHECK_TYPES to check for uintptr_t.
* configure, config.in: Regenerate.
Mark Kettenis [Mon, 13 Jun 2005 21:32:01 +0000 (21:32 +0000)]
* ser-tcp.c: Tewak comment.
[!HAVE_SOCKLEN_T]: Typedef socklen_t.
* configure.ac: Add check for socklen_t.
* configure, config.in: Regenerate.
H.J. Lu [Mon, 13 Jun 2005 20:52:08 +0000 (20:52 +0000)]
2005-06-13 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/linux64.mt (TDEPFILES): Add symfile-mem.o.
Richard Sandiford [Mon, 13 Jun 2005 19:09:12 +0000 (19:09 +0000)]
* MAINTAINERS: Update my email address.
Mark Mitchell [Mon, 13 Jun 2005 18:39:11 +0000 (18:39 +0000)]
* corelow.c (core_open): Use bfd_fopen, not bfd_fdopenr.
* exec.c (exec_file_attach): Likewise.
* solib-frv.c (enable_break2): Likewise.
* solib-svr4.c (enable_break): Likewise.
* solib.c (solib_map_sections): Likewise.
* symfile.c (symfile_bfd_open): Likewise.
Daniel Jacobowitz [Mon, 13 Jun 2005 18:11:01 +0000 (18:11 +0000)]
* gdb.base/bigcore.exp: Correct checks for systems which can
not dump a large core file.
DJ Delorie [Mon, 13 Jun 2005 18:06:59 +0000 (18:06 +0000)]
* depstand.m4, lead-dot.m4: New files.
DJ Delorie [Mon, 13 Jun 2005 18:01:01 +0000 (18:01 +0000)]
* depcomp: Update from automake CVS. Add 'ia64hp' stanza.
In 'cpp' stanza, support '#line' as well as '# '.
Daniel Jacobowitz [Mon, 13 Jun 2005 16:15:40 +0000 (16:15 +0000)]
gdb/
* Makefile.in (symfile.o): Add $(exec_h).
* exec.h (exec_set_section_address): Add prototype.
* exec.c (exec_set_section_address): New function.
* symfile.c: Include "exec.h".
(struct place_section_arg, place_section): New.
(default_symfile_offsets): Call place_section for each
section of a relocatable file.
gdb/testsuite/
* gdb.base/relocate.c: Add a copyright notice.
(dummy): Remove.
* gdb.base/relocate.exp: Test printing the values of variables
from a relocatable file.
Zack Weinberg [Mon, 13 Jun 2005 15:34:39 +0000 (15:34 +0000)]
gas:
* config/tc-arm.c (find_real_start): Check S_IS_LOCAL on
symbolP as well as for names with a leading dot. Use ACONCAT.
(md_apply_fix): For branch relocations, only replace value
with fixP->fx_offset (under #ifdef OBJ_ELF) when !fixP->fx_done.
(arm_force_relocation): Remove #ifdef OBJ_ELF case.
* config/tc-arm.h (LOCAL_LABEL): Remove unnecessary parentheses.
(LOCAL_LABEL_PREFIX): Don't define.
gas/testsuite:
* gas/arm/thumb.s: Only branch to labels defined in this file.
* gas/arm/thumb.d, gas/arm/thumb32.d: Adjust expected output.
Joel Brobecker [Mon, 13 Jun 2005 13:43:33 +0000 (13:43 +0000)]
* hppa-tdep.c (hppa_pc_requires_run_before_use): Really test all
bits of top byte in address.
Wu Zhou [Mon, 13 Jun 2005 07:23:15 +0000 (07:23 +0000)]
* eval.c (evaluate_subexp_standard): Add code to check the target
type of a TYPE_CODE_PTR value when we encounter a f77 undetermined
arglist. If it is array, string or function, work on the target
value instead.
Daniel Jacobowitz [Mon, 13 Jun 2005 02:41:51 +0000 (02:41 +0000)]
gdb/
* mi/mi-main.c (register_changed_p, get_register): Use
get_selected_frame.
(mi_execute_command): Call mi_out_rewind after an error.
testsuite/
* gdb.mi/mi-syn-frame.exp, gdb.mi/mi2-syn-frame.exp: Don't expect
excess MI output after an error.
Daniel Jacobowitz [Mon, 13 Jun 2005 01:59:22 +0000 (01:59 +0000)]
* acconfig.h: Remove.
* configure.ac: Add a test for socklen_t. Use three-argument
AC_DEFINE throughout.
* config.in: Regenerated using autoheader 2.59.
* configure: Regenerated.
* gdbreplay.c (socklen_t): Provide a default.
(remote_open): Use socklen_t.
* remote-utils.c (socklen_t): Provide a default.
(remote_open): Use socklen_t.
(convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
unsigned char.
* i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
char for buffers.
* linux-low.c (linux_read_memory, linux_write_memory)
(linux_read_auxv): Likewise.
* mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
(check_mem_write): Likewise.
* mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
Likewise.
* regcache.c (struct inferior_rgcache_data, registers_to_string)
(registers_from_string, register_data): Likewise.
* server.c (handle_query, main): Likewise.
* server.h (convert_ascii_to_int, convert_int_to_ascii)
(decode_M_packet): Likewise.
* target.c (read_inferior_memory, write_inferior_memory): Likewise.
* target.h (struct target_ops): Update read_memory, write_memory,
and read_auxv.
(read_inferior_memory, write_inferior_memory): Update.
* linux-low.h (struct linux_target_ops): Change type of breakpoint
to unsigned char *.
* linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
linux-s390-low.c, linux-sh-low.c: Update for changes in
read_inferior_memory and the_low_target->breakpoint.
Alan Modra [Mon, 13 Jun 2005 00:00:09 +0000 (00:00 +0000)]
daily update
gdbadmin [Mon, 13 Jun 2005 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Mark Kettenis [Sun, 12 Jun 2005 19:54:25 +0000 (19:54 +0000)]
* hppa-tdep.c (hppa_frame_prev_register)
(hppa_fallback_frame_prev_register)
(hppa_stub_frame_prev_register): Change type of last argument to
`gdb_byte *'.
(hppa_fetch_pointer_argument): Tweak comment. Use
get_frame_register_unsigned instead of get_frame_register.
(hppa32_return_value, hppa64_return_value): Change type of readbuf
and writebuf arguments to `gdb_byte *'. Remove unecessary casts
and local variables.
(hppa_pseudo_register_read): Change type of last argument to
`gdb_byte *'.
Daniel Jacobowitz [Sun, 12 Jun 2005 18:38:39 +0000 (18:38 +0000)]
* ld.texinfo (Command Line Options): Add @item for --hash-size.
Mark Kettenis [Sun, 12 Jun 2005 13:37:39 +0000 (13:37 +0000)]
* m68k-tdep.c (m68k_frame_prev_register): Change type of last
argument to `gdb_byte *'.
Mark Kettenis [Sun, 12 Jun 2005 12:57:21 +0000 (12:57 +0000)]
* arm-tdep.c (set_disassembly_style, _initialize_arm_tdep):
Consitify regnames.
Mark Kettenis [Sun, 12 Jun 2005 12:53:55 +0000 (12:53 +0000)]
* alpha-tdep.c (alpha_sigtramp_frame_prev_register)
(alpha_heuristic_frame_prev_register): Change type of last
argument to `gdb_byte *'.
(alpha_register_to_value, alpha_value_to_register)
(alpha_extract_return_value, alpha_store_return_value): Likewise.
* alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
Mark Kettenis [Sun, 12 Jun 2005 12:15:31 +0000 (12:15 +0000)]
* arm-tdep.c (arm_prologue_prev_register)
(arm_sigtramp_prev_register): Change type of last argument to
`gdb_byte *'.
Mark Kettenis [Sun, 12 Jun 2005 11:53:00 +0000 (11:53 +0000)]
* m88k-tdep.c (m88k_frame_prev_register): Change type of last
argument to `gdb_byte *'.