Commit Graph

37058 Commits

Author SHA1 Message Date
David Carlton 8155455b32 2002-11-05 David Carlton <carlton@math.stanford.edu>
* symtab.c (lookup_symbol_aux): Move chunks of code into separate
	functions.
	(lookup_symbol_aux_local): New function.
	(lookup_symbol_aux_symtabs): New function.
	(lookup_symbol_aux_psymtabs): New function.
2002-11-05 20:33:01 +00:00
David Carlton 29924310ab 2002-11-05 David Carlton <carlton@math.stanford.edu>
* symtab.c (lookup_symbol_aux): In minsym sections, don't use the
	previous values of 'objfile' and 'block'.
2002-11-05 16:59:57 +00:00
Elena Zannoni 6afa27b08c 2002-11-04 Elena Zannoni <ezannoni@redhat.com>
* mi-console.exp: Use mi_runto, mi_run_to_main, mi_next_to,
	mi_step_to wherever possible.  Update copyright notices.
	* mi-disassemble.exp: Ditto.
	* mi-eval.exp: Ditto.
	* mi-read-memory.exp: Ditto.
	* mi-regs.exp: Ditto.
	* mi-return.exp: Ditto.
	* mi-stack.exp: Ditto.
	* mi-stepi.exp: Ditto.
	* mi-var-block.exp: Ditto.
	* mi-var-cmd.exp: Ditto.
	* mi-watch.exp: Ditto.
	* mi1-console.exp: Ditto.
	* mi1-disassemble.exp: Ditto.
	* mi1-eval.exp: Ditto.
	* mi1-read-memory.exp: Ditto.
	* mi1-regs.exp: Ditto.
	* mi1-return.exp: Ditto.
	* mi1-stack.exp: Ditto.
	* mi1-stepi.exp: Ditto.
	* mi1-var-block.exp: Ditto.
	* mi1-var-cmd.exp: Ditto.
        * mi1-watch.exp: Ditto.
2002-11-05 15:43:18 +00:00
Klee Dienes 69266111ec Correct the ChangeLog entry for 2002-10-11 from:
* findvar.c (read_memory_typed_address): New function.
to
        * corefile.c (read_memory_typed_address): New function.
2002-11-05 09:20:13 +00:00
Pierre Muller cc303028fc 2002-10-07 Pierre Muller <muller@ics.u-strasbg.fr>
* values.c (value_change_enclosing_type): Set
	enclosing_type field correctly also for the case where
	more memory needs to be allocated.
2002-11-05 08:25:13 +00:00
Alan Modra 911b232a92 * elf32-arm.h (t2a1_push_insn, t2a2_ldr_insn, t2a3_mov_insn,
t2a4_bx_insn, t2a5_pop_insn, t2a6_bx_insn): Remove.
2002-11-05 05:01:11 +00:00
Alan Modra 08f740041a * config.bfd (sh-*-linux*): Use bfd_elf*_sh64*lin_vec as sh64
vectors in target_selvecs.
	(shle-*-netbsdelf*): Use bfd_elf*_sh64*nbsd_vec as sh64 vectors
	in target_selvecs.
	(sh-*-netbsdelf*): Likewise.
	* configure.in (assocvecs): New variable.  Handle assocvecs like
	selvecs.
	* configure: Regenerate.
	* format.c (bfd_check_format_matches): Store bfd_target pointers
	in matching_vector instead of target names.  Select first target
	from bfd_associated_vector that matches a list of ambiguous targets.
	* targets.c (_bfd_associated_vector): New array.
	(bfd_associated_vector): New variable.
	(_bfd_target_vector): Add bfd_elf*_sh64*lin_vec.
	* libbfd-in.h (bfd_associated_vector): Declare.
	* libbfd.h: Regenerate.
2002-11-05 01:18:56 +00:00
Alan Modra 89117aabb3 * vms-gsd.c (_bfd_vms_write_gsd): Check that symbol->udata.p is
non-NULL before dereferencing.
2002-11-05 01:08:18 +00:00
gdbadmin 226acd2e46 *** empty log message *** 2002-11-05 00:00:02 +00:00
Alan Modra b88b8dd891 daily update 2002-11-04 23:00:04 +00:00
Kaz Kojima 5e9aae3e09 * vms.c (vms_object_p): Restore the start address when returning
NULL.
2002-11-04 21:44:36 +00:00
Kevin Buettner dd2768ffd5 Top level configury changes for RDA. 2002-11-04 18:41:14 +00:00
Nick Clifton e96c546430 Set SEC_DATA and SEC_LOAD flags for sections marked as 's'. 2002-11-04 16:10:56 +00:00
Alan Modra c97e73ddb6 * elflink.h (struct elf_final_link_info): Add shndxbuf_size.
(elf_bfd_final_link): Don't bother zeroing symtab_hdr fields.
	Set up a larger symshndxbuf, and write it out.  Free it on
	exit rather than freeing symbuf twice.  Correct section index
	on output section symbol loop.
	(elf_link_output_sym): Accumulate symbol extension section
	indices, reallocating symshndxbuf rather than writing it out.
	(elf_link_flush_output_syms): Don't flush symshndxbuf.
	* elf.c (assign_section_numbers): Init i_shdrp to all zero.
	Use bfd_zalloc to clear i_shdrp[0] too.
2002-11-04 13:20:56 +00:00
Alan Modra f1ef08cb01 * readelf.c (byte_get_little_endian): Comment typo fix.
(print_symbol): Constify "symbol" arg.  Don't pass "symbol" to printf
	as the format string.
	(dump_relocations): Correct section sym names.
	(process_section_headers): Clear symtab_shndx_hdr.
	(read_and_display_attr_value): Don't pass indirect string to printf
	as the format string.
	(display_debug_frames): Indicate when zero terminator found.  Decode
	DW_EH_PE_pcrel addresses.
2002-11-04 03:18:41 +00:00
Kaz Kojima 935cac6e77 * ld-sh/rd-sh.exp: Add -isa=SHcompact to ASFLAGS for SH-5.
* ld-sh/tlsbin-1.d: Handle GOT_BIAS appropriately for SH-5.
	* ld-sh/tlspic-1.d: Likewise.
	* ld-sh/tlspic-2.d: Likewise.
	* ld-sh/tlsbin-2.d: Likewise. Make it robust for the symbols
	defined by the linker scripts.
2002-11-04 01:18:13 +00:00
Stephen Clarke 3463048e40 * elf32-sh64-com.c (sh64_address_in_cranges): Use
_raw_size of cranges section if _cooked_size not yet set.
2002-11-04 00:02:13 +00:00
gdbadmin 299b302755 *** empty log message *** 2002-11-04 00:00:03 +00:00
Alan Modra b2d3a55a49 daily update 2002-11-03 23:00:08 +00:00
Mark Kettenis f16a25aee9 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
of puts_filtered.
2002-11-03 13:04:47 +00:00
Mark Kettenis 1d70089aec * i387-tdep.c (i387_print_float_info): Replace calls to
register_read and deprecated_read_register_gen with calls to
frame_register_read, and make the necessary adjustments to the
surrounding code.
2002-11-03 12:32:42 +00:00
Hans-Peter Nilsson 63a2379942 * elf32-v850.c (v850_elf_relax_delete_bytes): Correct parameters
for bfd_elf32_swap_symbol_out.
2002-11-03 10:43:44 +00:00
Andrew Cagney 7e20f3fbea 2002-11-02 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (register_reggroup_p): Allow default value.
	* gdbarch.h, gdbarch.c: Regenerate.
2002-11-03 00:30:33 +00:00
gdbadmin f9712b716c *** empty log message *** 2002-11-03 00:00:02 +00:00
Alan Modra b793562e43 daily update 2002-11-02 23:00:05 +00:00
Andrew Cagney 192dbe3389 2002-11-02 Andrew Cagney <ac131313@redhat.com>
* regcache.h: Add coment indicating replacements for deprecated
	functions.
2002-11-02 20:06:56 +00:00
Andrew Cagney b59ff9d5ff 2002-11-02 Andrew Cagney <cagney@redhat.com>
* reggroups.h, reggroups.c: New files.
	* regcache.c: Include "reggroups.h".
	(enum regcache_dump_what): Add `regcache_dump_groups'.
	(regcache_dump): Contract size of the "Type" column.  When
	specified, dump the register's groups.
	(maintenance_print_register_groups): New function.
	(_initialize_regcache): Add command `maint print register-groups'.
	* Makefile.in (COMMON_OBS): Add reggroups.o
	(SFILES): Add reggroups.c.
	(reggroups_h): Define.
	(regcache.o, gdbarch.o): Update dependencies.
	(reggroups.o): Specify dependencies.
	* gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
	Add opaque declaration for `struct reggroup' in generated .h file.
	Include "reggroups.h" in generated .c file.
	gdbarch.h, gdbarch.c: Re-generate.
2002-11-02 15:13:34 +00:00
Andrew Cagney 4caf0990c1 2002-11-02 Andrew Cagney <cagney@redhat.com>
* regcache.h (deprecated_read_register_gen): Rename
	read_register_gen.
	(deprecated_write_register_gen): Rename write_register_gen.
	* i387-tdep.c: Update.
	* x86-64-linux-nat.c: Update
	* wince.c: Update.
	* thread-db.c: Update.
	* win32-nat.c: Update.
	* mips-tdep.c: Update.
	* d10v-tdep.c: Update.
	* cris-tdep.c: Update.
	* remote-sim.c: Update.
	* remote-rdi.c: Update.
	* remote-rdp.c: Update.
	* frame.c: Update.
	* target.c: Update.
	* blockframe.c: Update.
	* x86-64-tdep.c: Update.
	* xstormy16-tdep.c: Update.
	* sh-tdep.c: Update.
	* s390-tdep.c: Update.
	* rs6000-tdep.c: Update.
	* sparc-tdep.c: Update.
	* i386-tdep.c: Update.
	* dwarf2cfi.c: Update.
	* regcache.c: Update.
2002-11-02 14:59:10 +00:00
gdbadmin 8f104e6b1f *** empty log message *** 2002-11-02 00:00:02 +00:00
Alan Modra 856695231a daily update 2002-11-01 23:00:07 +00:00
Joel Brobecker 7a7adcdf1d New interix-specific files:
* config/i386/nm-interix.h: New file.
       * config/i386/interix.mh: New file.
       * config/i386/interix.mt: New file.
       * i386-interix-nat.c: New file.
       * i386-interix-tdep.c: New file.
2002-11-01 22:08:44 +00:00
Andrew Cagney bdcdd53569 2002-11-01 Andrew Cagney <cagney@redhat.com>
* frame.h (deprecated_generic_get_saved_register): Rename
	generic_get_saved_register.
	* blockframe.c (deprecated_generic_get_saved_register): Update.
	* xstormy16-tdep.c (xstormy16_get_saved_register): Update.
	(xstormy16_frame_saved_register): Update.
	* sh-tdep.c (sh_gdbarch_init): Update.
	* m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
	* ia64-tdep.c (ia64_get_saved_register): Update.
	* cris-tdep.c (cris_gdbarch_init): Update.
	* config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
	* arm-tdep.c (arm_gdbarch_init): Update.
2002-11-01 21:21:49 +00:00
H.J. Lu 4dd8d67b6a 2002-11-01 H.J. Lu <hjl@gnu.org>
* gas/i386/i386.exp: Add "sub".

	* gas/i386/sub.d: New.
	* gas/i386/sub.s: New.
2002-11-01 20:41:48 +00:00
Alan Modra 4f3cafa2eb * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
(TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
	* doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
	default.
2002-11-01 10:42:26 +00:00
Alan Modra 4d0b322074 * dep-in.sed: Fix typo. 2002-11-01 10:35:43 +00:00
gdbadmin 36b3ec1e7f *** empty log message *** 2002-11-01 00:00:03 +00:00
Daniel Jacobowitz 2a4b7c459e * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step. 2002-10-31 21:00:08 +00:00
Daniel Jacobowitz ef17e74bbb * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
trampolines in sigaction.
2002-10-31 20:51:15 +00:00
Andrew Cagney 4904ba5b9a 2002-10-31 Andrew Cagney <cagney@redhat.com>
* h8300-tdep.c: Include "gdb_assert.h".
	(h8300_print_register): Add gdbarch, file and frame parameters.
	Use frame_read_unsigned_register to read the register's value.
	Use fprintf_filtered to display output.
	(h8300_print_registers_info): Replace h8300_do_registers_info.
	(h8300_gdbarch_init): Set print_registers_info.
2002-10-31 20:22:45 +00:00
Andrew Cagney f908a0eb77 2002-10-31 Andrew Cagney <cagney@redhat.com>
* frame.c (frame_read_unsigned_register): New function.
	(frame_read_signed_register): New function.
	* frame.h (frame_read_unsigned_register): Declare.
	(frame_read_signed_register): Declare.
2002-10-31 20:14:33 +00:00
Andrew Cagney c5646e1120 2002-10-31 Andrew Cagney <cagney@redhat.com>
* h8500-tdep.c (h8500_print_registers_info): New static function,
	clone of infcmd.c's default_print_registers_info.
	(h8500_do_registers_info): New funtion.
	(h8500_print_register_hook): Rename print_register_hook, make
	static.

	* config/h8500/tm-h8500.h: Update copyright.
	(DEPRECATED_DO_REGISTERS_INFO): Define.
	(h8500_do_registers_info: Declare.
	(PRINT_REGISTER_HOOK): Delete macro.
	(print_register_hook): Delete function.
2002-10-31 19:49:34 +00:00
Andrew Cagney 0bdd672b8c 2002-10-31 Andrew Cagney <cagney@redhat.com>
* z8k-tdep.c (z8k_print_register_hook): Make static.
	(z8k_print_registers_info): New static function, clone of
	infcmd.c's default_print_registers_info.
	(z8k_do_registers_info): New function.  Wrap
	z8k_print_registers_info.
	* config/z8k/tm-z8k.h: Update copyright.
	(PRINT_REGISTER_HOOK): Delete macro.
	(z8k_print_register_hook): Delete declaration.
	(DEPRECATED_DO_REGISTERS_INFO): Define.
	(z8k_do_registers_info): Declare.
2002-10-31 19:14:07 +00:00
David O'Brien e68cc12e04 2002-10-31 David O'Brien <obrien@FreeBSD.org>
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't mix
	signed and unsigned in comparison.

Approved by:  Alan Modra <amodra@bigpond.net.au>
              Message-ID: <20021012185224.Y979@bubble.sa.bigpond.net.au>
2002-10-31 09:18:48 +00:00
gdbadmin 0727d3d1f0 *** empty log message *** 2002-10-31 00:00:02 +00:00
Joel Brobecker bf9c25dc04 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
as this is already provided by value.h, and was actually causing
       a compilation error because of a conflict in parameter type
       declaration due to a missing const keyword.
       (low_text_segment_addres): Fix a compilation warning.
2002-10-30 20:42:54 +00:00
Daniel Jacobowitz 54847c7622 * configure.in: Update ARM CPU patterns.
* configure: Regenerated.
2002-10-30 17:05:41 +00:00
Daniel Jacobowitz db4b6d0145 * coffcode.h: Remove extraneous '\'. 2002-10-30 15:50:17 +00:00
Daniel Jacobowitz 2c665b51d2 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
registers without a name.
        (mips_linux_cannot_store_register): Don't store registers without
        a name.
2002-10-30 04:10:06 +00:00
Daniel Jacobowitz df2a731323 * emultempl/aix.em: Use include <> for generated headers.
* emultempl/beos.em: Likewise.
	* emultempl/elf32.em: Likewise.
	* emultempl/pe.em: Likewise.
	* ldctor.c: Likewise.
	* ldexp.c: Likewise.
	* ldfile.c: Likewise.
	* ldlang.c: Likewise.
	* ldlex.c: Likewise.
	* ldlex.l: Likewise.
	* ldmain.c: Likewise.
	* ldmisc.c: Likewise.
	* ldwrite.c: Likewise.
	* lexsup.c: Likewise.
	* mri.c: Likewise.
	* pe-dll.c: Likewise.
2002-10-30 03:57:39 +00:00
Daniel Jacobowitz 3d82a647ca * itbl-lex.l: Use #include <> for generated headers.
* itbl-ops.c: Likewise.
2002-10-30 03:56:39 +00:00