Nick Clifton
2f62977e68
Handle binaries with corrupt section or segment headers
2002-11-14 14:38:39 +00:00
Svein Seldal
51908eee4e
* coff-tic4x.c (tic4x_howto_table): Formatting fixup
2002-11-14 11:02:30 +00:00
Andrew Cagney
d25b15536c
Index: common/ChangeLog
...
2002-11-13 Andrew Cagney <cagney@redhat.com>
* run.c (main): Remove SIM_HAVE_ENVIRONMENT from #endif.
Index: d10v/ChangeLog
2002-11-13 Andrew Cagney <cagney@redhat.com>
* simops.c: Include <string.h>.
2002-11-14 02:54:14 +00:00
Hans-Peter Nilsson
3416d2e743
* elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs):
...
For bpo_gregs_section->contents, allocate _raw_size, not
_cooked_size.
2002-11-14 01:32:28 +00:00
Andrew Cagney
6411e720c0
Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
...
* utils.c (gdb_realpath): Add comment mentioning realpath with a
NULL buffer.
2002-11-14 00:50:04 +00:00
Andrew Cagney
73937e031a
2002-11-13 Andrew Cagney <cagney@redhat.com>
...
* regcache.h (deprecated_read_register_bytes): Rename
read_register_bytes.
(deprecated_write_register_bytes): Rename write_register_bytes.
* alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
* dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
* m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
* ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
* remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
* sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
* xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
* config/nm-m3.h, config/h8500/tm-h8500.h: Update.
* config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
* config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
* config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
* config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
* config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
* config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2002-11-13 Andrew Cagney <ac131313@redhat.com>
* mi-main.c (mi_cmd_data_write_register_values): Use
deprecated_write_register_bytes instead of write_register_bytes.
2002-11-14 00:25:05 +00:00
gdbadmin
2c85904f5a
*** empty log message ***
2002-11-14 00:00:01 +00:00
Alan Modra
7b580b4aba
daily update
2002-11-13 23:00:05 +00:00
Jim Blandy
fb0cd46ee8
* findvar.c (read_var_value): Doc fix.
2002-11-13 18:13:17 +00:00
Andrew Cagney
2d28509afb
2002-11-13 Andrew Cagney <cagney@redhat.com>
...
* regcache.c (struct regcache): Replace passthough_p with
readonly_p.
(regcache_xmalloc): Initialize readonly_p.
(build_regcache): Initialize readonly_p.
(regcache_save): New function.
(regcache_restore): New function.
(regcache_cpy): Re-implement using regcache_save and
regcache_restore.
(regcache_raw_read): Update.
(regcache_cooked_read): When a read-only cache, checked for cached
pseudo register values.
(regcache_raw_write): Assert that the cache is not read-only.
Remove code handling a non-passthrough cache.
* regcache.h (regcache_save): Declare.
(regcache_restore): Declare.
2002-11-13 17:59:40 +00:00
Andrew Cagney
067df2e5b4
2002-11-13 Andrew Cagney <cagney@redhat.com>
...
* regcache.c (struct regcache_descr): Add fields
sizeof_cooked_registers and sizeof_cooked_register_valid_p.
(init_legacy_regcache_descr): Compute the size of a cooked
register cache and then assign that to sizeof_raw_registers. Set
sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
(init_legacy_regcache_descr): Ditto.
2002-11-13 16:57:36 +00:00
Andrew Cagney
51b1fe4e63
2002-11-13 Andrew Cagney <cagney@redhat.com>
...
* regcache.c (register_buffer): Move to near start of file, update
description.
(regcache_raw_read): Use.
(regcache_raw_write): Use.
(struct regcache): Rename raw_registers to registers and
raw_register_valid_p to register_valid_p.
(regcache_xmalloc): Update.
(regcache_xfree): Update.
(register_buffer): Update.
(regcache_cpy): Update.
(regcache_cpy_no_passthrough): Update.
(regcache_valid_p): Update.
(deprecated_grub_regcache_for_registers): Update.
(deprecated_grub_regcache_for_register_valid): Update.
(set_register_cached): Update.
(regcache_raw_write): Update.
2002-11-13 16:07:03 +00:00
Pierre Muller
80b4c67709
2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
...
* p-exp.y (name_not_typename): Use copy_name to
set current_type variable for fields of THIS.
2002-11-13 09:13:39 +00:00
Alan Modra
b1c58715b4
* config.bfd: Add entries for powerpc-*-darwin and cousins.
2002-11-13 01:45:42 +00:00
gdbadmin
700c7a2951
*** empty log message ***
2002-11-13 00:00:03 +00:00
Alan Modra
a7f8412542
Missed commit in last change.
2002-11-12 23:25:42 +00:00
Alan Modra
0b74bc7784
daily update
2002-11-12 23:00:04 +00:00
H.J. Lu
077ca68b4c
2002-11-13 H.J. Lu <hjl@gnu.org>
...
* elfcode.h (elf_object_p): Don't restore abfd->arch_info.
2002-11-12 22:49:45 +00:00
Daniel Jacobowitz
0f3fafde68
* gnu-nat.c (init_gnu_ops): Remove NULL initializations.
...
* monitor.c (init_base_monitor_ops): Likewise.
* ppc-bdm.c (init_bdm_ppc_ops): Likewise.
* remote-array.c (init_array_ops): Likewise.
* remote-e7000.c (init_e7000_ops): Likewise.
* remote-es.c (init_es1800_ops): Likewise.
(init_es1800_child_ops): Likewise.
* remote-rdp.c (init_remote_rdp_ops): Likewise.
* remote-sim.c (init_gdbsim_ops): Likewise.
* remote-st.c (init_st2000_ops): Likewise.
* sol-thread.c (init_sol_core_ops): Likewise.
(init_sol_thread_ops): Likewise.
* v850ice.c (init_850ice_ops): Likewise.
* win32-nat.c (init_child_ops): Likewise.
* wince.c (init_child_ops): Likewise.
2002-11-12 21:43:55 +00:00
Andrew Cagney
82c0260ec6
2002-11-12 Andrew Cagney <ac131313@redhat.com>
...
* utils.c (gdb_realpath): Make rp a constant pointer.
2002-11-12 20:26:05 +00:00
Andrew Cagney
70d358198f
2002-11-12 Andrew Cagney <ac131313@redhat.com>
...
* utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
a constant buffer; cannonicalize_file_name(); realpath() with a
pathconf() defined buffer, xstrdup().
2002-11-12 17:19:06 +00:00
Andrew Cagney
9835a8b012
2002-11-12 Andrew Cagney <ac131313@redhat.com>
...
* config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
to hang2.C; hang3.c to hang3.C.
2002-11-12 16:30:08 +00:00
Alan Modra
e84d6fca26
* bfd.c (struct bfd_preserve): New.
...
(bfd_preserve_save): New function.
(bfd_preserve_restore): Ditto.
(bfd_preserve_finish): Ditto.
* bfd-in2.h: Regenerate.
* mach-o.c: Formatting.
(bfd_mach_o_scan_read_symtab_symbol): Make "value" unsigned.
(bfd_mach_o_object_p): Use bfd_preserve_save/restore/finish.
(bfd_mach_o_core_p): Ditto.
(bfd_mach_o_scan): Pass in mdata.
* mach-o.h (bfd_mach_o_scan): Update prototype.
* pef.c: Formatting.
(bfd_pef_object_p): Use bfd_preserve_save/restore/finish.
(bfd_pef_xlib_object_p): Ditto.
(bfd_pef_scan): Pass in mdata. Move version check to bfd_pef_object_p.
* pef.h (bfd_pef_scan): Update prototype.
* xsym.c: Formatting, K&R fixes.
(bfd_sym_object_p): Use bfd_preserve_save/restore/finish.
(bfd_sym_scan): New function split out from bfd_sym_object_p.
* xsym.h (bfd_sym_scan): Declare.
* elfcode.h (elf_object_p): Use bfd_preserve_save/restore/finish.
(elf_core_file_p): Likewise.
* targets.c (_bfd_target_vector): Revert 2002-11-08 change.
2002-11-12 15:44:24 +00:00
Alan Modra
c4c4121963
* ldlang.c (lang_add_section): Discard debugging sections that have
...
been marked SEC_EXCLUDE.
2002-11-12 11:31:43 +00:00
Nick Clifton
cd24c22246
Add new/updated Danish translations
2002-11-12 10:08:25 +00:00
Alan Modra
836c6af1fd
* emultempl/ppc64elf.em (ppc_before_allocation): New function.
...
(LDEMUL_BEFORE_ALLOCATION): Define.
(gld${EMULATION_NAME}_finish): Run discard_info for relocatable
linking.
* emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
2002-11-12 07:56:38 +00:00
Alan Modra
d6fe2dc102
* elflink.h (elf_link_add_object_symbols): Optimize stabs for
...
relocatable link too.
(elf_link_input_bfd): When emitting relocs, adjust offsets for
eh_frame and stab sections. Zap deleted relocs.
(elf_reloc_symbol_deleted_p): Return true for zero r_symndx.
(elf_bfd_discard_info): Run for relocatable link too.
* elf64-ppc.c (ppc64_elf_edit_opd): Rename from edit_opd. Make global.
Handle ld -r case.
(ppc64_elf_size_dynamic_sections): Don't call edit_opd from here.
* elf64-ppc.h (ppc64_elf_edit_opd): Declare.
2002-11-12 07:55:43 +00:00
Alan Modra
126495ed15
* elf-bfd.h (struct cie_header): Move from elf_eh-frame.c.
...
(struct cie, struct eh_cie_fde, struct eh_frame_sec_info): Likewise.
(struct eh_frame_array_ent, struct eh_frame_hdr_info): Likewise.
(enum elf_link_info_type): Remove ELF_INFO_TYPE_EH_FRAME_HDR.
(struct eh_frame_hdr_info): Add "hdr_sec", remove "split".
(struct elf_link_hash_table): Add eh_info.
(struct elf_obj_tdata): Change eh_frame_hdr to an asection *.
(_bfd_elf_discard_section_eh_frame): Update prototype.
(_bfd_elf_discard_section_eh_frame_hdr): Likewise.
(_bfd_elf_write_section_eh_frame): Likewise.
(_bfd_elf_write_section_eh_frame_hdr): Likewise.
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Remove "ehdrsec"
param. Get "hdr_info" from link hash table.
(_bfd_elf_discard_section_eh_frame_hdr): Remove "sec" param. Get
header section from link hash table. Save header section to elf_tdata.
(_bfd_elf_maybe_strip_eh_frame_hdr): Remove local "sec". Use
header section from link hash table. Don't alloc hdr_info. Clear
hdr_sec instead of setting "strip".
(_bfd_elf_eh_frame_section_offset): Formatting.
(_bfd_elf_write_section_eh_frame): Remove "ehdrsec", add "info" param.
Get header section from link hash table.
(_bfd_elf_write_section_eh_frame_hdr): Remove "sec", add "info" param.
Get header section from link hash table.
* elf.c (map_sections_to_segments): Use cached eh_frame_hdr.
(get_program_header_size): Likewise.
(_bfd_elf_section_offset): Formatting.
* elflink.h (elf_link_create_dynamic_sections): Stash eh frame header
section pointer in link hash table.
(elf_bfd_final_link): Adjust _bfd_elf_write_section_eh_frame_hdr
and _bfd_elf_write_section_eh_frame calls. Update comment about
eh_frame entries.
(elf_bfd_discard_info): Adjust _bfd_elf_discard_section_eh_frame and
_bfd_elf_discard_section_eh_frame_hdr calls. Remove "ehdr".
* po/SRC-POTFILES.in: Regenerate.
2002-11-12 07:35:26 +00:00
Alan Modra
99eb2ac83d
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't zero
...
relocs for discarded FDEs. Remove dead code.
(_bfd_elf_write_section_eh_frame_hdr): Remove dead code.
* elflink.h (elf_bfd_discard_info): Don't save edited relocs.
Tidy conditions under which stabs are edited. Formatting.
* elf64-sparc.c (sparc64_elf_relocate_section): Ignore overflows
from discarded relocs.
* elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Add reloc output
section adjustments after testing magic values.
2002-11-12 06:21:05 +00:00
Alan Modra
852f55ac64
* gas/ppc/booke.d: Adjust output for corrected condition reg.
2002-11-12 04:04:13 +00:00
Alan Modra
8b4fa15520
* ppc-dis.c (print_insn_powerpc): Correct condition register display.
2002-11-12 04:03:31 +00:00
Christopher Faylor
f8b0dbb817
* configure.tgt (LIB_PATH): Default to searching w32api directory under cygwin.
2002-11-12 03:48:43 +00:00
Elena Zannoni
3f47be5ca1
2002-11-11 Elena Zannoni <ezannoni@redhat.com>
...
* findvar.c (read_var_value): Reenable TLS code.
2002-11-11 Elena Zannoni <ezannoni@redhat.com>
Jim Blandy <jimb@redhat.com>
* gdb_thread_db.h (enum): Add TD_NOTALLOC.
* target.c (update_current_target): Add
to_get_thread_local_address.
* target.h (to_get_thread_local_address): Export.
(target_get_thread_local_address): Define.
(target_get_thread_local_address_p): Define.
* thread-db.c: Include solib-svr4.h.
(td_thr_tls_get_addr_p): Define.
(thread_db_load): Get a pointer to td_thr_tls_get_addr.
(thread_db_get_thread_local_address): New function.
(init_thread_db_ops): Initialize to_get_thread_local_address.
* configure.in: Add test for TD_NOTALLOC in thread_db.h.
* configure: Regenerate.
* config.in: Regenerate.
2002-11-12 02:39:41 +00:00
gdbadmin
4894709537
*** empty log message ***
2002-11-12 00:00:04 +00:00
Alan Modra
7c319a271c
* elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Correct
...
references to large plt symbols.
2002-11-11 23:42:29 +00:00
David Carlton
636b1a6d8e
2002-11-11 David Carlton <carlton@math.stanford.edu>
...
* linespec.c (set_flags): New function.
(decode_line_1): Move code into set_flags.
2002-11-11 23:20:07 +00:00
Alan Modra
a95a455043
* mach-o.c (bfd_mach_o_scan_read_thread): Don't re-use 'i' when
...
looking for an unused section name.
2002-11-11 23:19:03 +00:00
Alan Modra
f39315758c
* rddbg.c (read_section_stabs_debugging_info): Also recognize
...
LC_SYMTAB.stab/LC_SYMTAB.stabstr as a valid pair of sections.
2002-11-11 23:15:38 +00:00
Alan Modra
c9fcedcf17
daily update
2002-11-11 23:01:15 +00:00
David Carlton
44fe14ab8c
2002-11-11 David Carlton <carlton@math.stanford.edu>
...
* linespec.c (decode_line_1): Move chunks of code to separate
functions.
(initialize_defaults): New function.
(decode_indirect): New function.
2002-11-11 21:18:55 +00:00
Christopher Faylor
9e8d33e774
* pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list of
...
restricted auto-export libs.
2002-11-11 21:16:28 +00:00
Christopher Faylor
75c2ea5b08
* pe-dll.c (autofilter_liblist): Generalize library names to catch more
...
creative library naming instances like, e.g., libstdc++-2.a.
2002-11-11 17:42:36 +00:00
Christopher Faylor
591d46894b
* configure.in: Use .gdbinit under Cygwin.
...
* configure: Regenerate.
2002-11-11 17:21:33 +00:00
Christopher Faylor
1a89f85f47
* config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if STRICT_PE_FORMAT.
2002-11-11 17:11:53 +00:00
Jeff Johnston
46ae13f0c9
2002-11-11 Jeff Johnston <jjohnstn@redhat.com>
...
* gdbmi.texinfo (-var-assign): Add comments about interaction
with -var-update and add an example. Part of fix for gdb/702.
2002-11-11 17:09:50 +00:00
Christopher Faylor
b54e74606e
* MAINTAINERS: Reinstate DJ Delorie as COFF maintainer. Drop COFF from cgf
...
maintainership.
2002-11-11 16:53:19 +00:00
Andrew Cagney
8971b011f4
2002-11-11 Andrew Cagney <ac131313@redhat.com>
...
* blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
instead of void_code_ptr.
(sigtramp_saved_pc): Ditto.
2002-11-11 16:23:58 +00:00
Christopher Faylor
4f17cc1330
* MAINTAINERS: Replace DJ Delorie as PE/COFF maintainer.
2002-11-11 16:06:50 +00:00
Andrew Cagney
e6f181f51f
2002-11-11 Andrew Cagney <ac131313@redhat.com>
...
* x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
i386_fp_regnum_p.
2002-11-11 16:00:57 +00:00
Svein Seldal
98199d8f1c
* Makefile.am: Added tic4x dependecy
...
* Makefile.in: Regenerate
2002-11-11 14:58:49 +00:00