Commit Graph

44689 Commits

Author SHA1 Message Date
Corinna Vinschen 47216e5118 * win32-nat.c (child_pid_to_exec_file): New function.
(init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
	functionality.
2004-06-29 15:37:31 +00:00
Andrew Cagney f03b584349 fix scrambled changelog 2004-06-29 15:22:28 +00:00
Andrew Cagney e623b5041f 2004-06-28 Andrew Cagney <cagney@gnu.org>
* defs.h (xstrvprintf): Declare.
	* utils.c (xstrvprintf): New function.
	(internal_vproblem, xstrprintf, xasprintf)
	(vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
	* serial.c (serial_printf): Ditto.
	* complaints.c (vcomplaint): Ditto.
2004-06-29 14:57:39 +00:00
Alan Modra 3874ed78d9 * ld-elf/frame.exp: Don't run on mcore. 2004-06-29 14:44:25 +00:00
Alan Modra 62b51c0b7b * gas/m68k/mode5.s: Pad section.
* gas/m68k/mode5.d: Update.
2004-06-29 14:43:55 +00:00
Alan Modra 1a23a9e613 bfd/
* elf64-mmix.c (mmix_set_relaxable_size): Save original size in
	rawsize.
	(mmix_elf_perform_relocation): Adjust for above change.
	(mmix_elf_relocate_section): Likewise.
	(mmix_elf_relax_section): Likewise.  Use output_section->rawsize.
	(mmix_elf_get_section_contents): Delete.
	(bfd_elf64_get_section_contents): Delete.
	(mmix_elf_relocate_section): Zero stub area.
	* linker.c (default_indirect_link_order): Alloc max of section size
	and rawsize.
	* simple.c (bfd_simple_get_relocated_section_contents): Likewise.
	* section.c (bfd_malloc_and_get_section): Likewise.
	(struct bfd_section): Update rawsize comment.
	* bfd-in2.h: Regenerate.
ld/
	* ldlang.c (lang_reset_memory_regions): Save last relax pass section
	size in rawsize.
2004-06-29 14:13:47 +00:00
Alan Modra e87a64e1f0 * reloc16.c (bfd_coff_reloc16_relax_section): Set rawsize. 2004-06-29 13:51:20 +00:00
Alan Modra 075154045b * bfd-in.h (bfd_get_section_limit): Define.
* reloc.c (bfd_perform_relocation, bfd_install_relocation)
	(_bfd_final_link_relocate): Use bfd_get_section_limit.
	* aout-tic30.c (tic30_aout_final_link_relocate): Likewise.
	* coff-arm.c (coff_arm_relocate_section): Likewise.
	* coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): Likewise.
	* cpu-ns32k.c (do_ns32k_reloc): Likewise.
	(bfd_ns32k_final_link_relocate): Likewise.
	* elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): Likwise.
	* elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): Likewise.
	* elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc)
	(i860_howto_highadj_reloc, i860_howto_splitn_reloc): Likewise.
	* elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc)
	(m32r_elf_generic_reloc, m32r_elf_relocate_section): Likewise.
	* elf32-m68hc1x.c (m68hc11_elf_special_reloc): Likewise.
	* elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc): Likewise.
	* elf32-or32.c (or32_elf_consth_reloc): Likewise.
	* elf32-ppc.c (ppc_elf_addr16_ha_reloc): Likewise.
	* elf32-s390.c (s390_elf_ldisp_reloc): Likewise.
	* elf32-sh.c (sh_elf_reloc_loop): Likewise.
	* elf32-sparc.c (sparc_elf_wdisp16_reloc): Likewise.
	(sparc_elf_hix22_reloc, sparc_elf_lox10_reloc): Likwise.
	* elf32-v850.c (v850_elf_reloc): Likewise.
	* elf32-xstormy16.c (xstormy16_elf_24_reloc): Likewise.
	* elf32-xtensa.c (bfd_elf_xtensa_reloc): Likewise.
	* elf64-alpha.c (elf64_alpha_reloc_gpdisp): Likewise.
	* elf64-mips.c (mips_elf64_gprel32_reloc)
	(mips16_gprel_reloc): Likewise.
	* elf64-mmix.c (mmix_elf_reloc): Likewise.
	* elf64-s390.c (s390_elf_ldisp_reloc): Likewise.
	* elf64-sparc.c (init_insn_reloc): Likewise.
	* elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc): Likewise.
	* elfxx-mips.c (_bfd_mips_elf_gprel16_with_gp)
	(_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_lo16_reloc)
	(_bfd_mips_elf_generic_reloc): Likewise.
	* bfd-in2.h: Regenerate.
2004-06-29 13:46:34 +00:00
DJ Delorie 950ad202a5 merge from gcc 2004-06-29 12:51:56 +00:00
Corinna Vinschen 79acc9b3cc * infcmd.c (attach_command): Move call to target_terminal_inferior
behind loading symbol table.
2004-06-29 06:39:06 +00:00
Corinna Vinschen cc98411666 * gdb.base/bigcore.exp: Skip test on Cygwin. 2004-06-29 06:34:50 +00:00
Andrew Cagney 1daf35d984 2004-06-28 Andrew Cagney <cagney@gnu.org>
* rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
	change - add back extern deprecated_ui_loop_hook declaration.
2004-06-29 01:01:32 +00:00
Andrew Cagney 0aaa4a81b0 Index: mn10200/ChangeLog
2004-06-28  Andrew Cagney  <cagney@gnu.org>

	* interp.c: Rename ui_loop_hook to deprecated_ui_loop_hook.

Index: d10v/ChangeLog
2004-06-28  Andrew Cagney  <cagney@gnu.org>

	* interp.c (sim_resume): Rename ui_loop_hook to
	deprecated_ui_loop_hook.

Index: arm/ChangeLog
2004-06-28  Andrew Cagney  <cagney@gnu.org>

	* armemu.c: Rename ui_loop_hook to deprecated_ui_loop_hook.

Index: common/ChangeLog
2004-06-28  Andrew Cagney  <cagney@gnu.org>

	* run.c: Rename ui_loop_hook to deprecated_ui_loop_hook.
2004-06-29 00:54:00 +00:00
Alan Modra 243374f656 daily update 2004-06-29 00:00:06 +00:00
gdbadmin 37ab888827 *** empty log message *** 2004-06-29 00:00:03 +00:00
Andrew Cagney b435e160dd 2004-06-26 Andrew Cagney <cagney@gnu.org>
* xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
	xstrprintf.
	* varobj.c (varobj_gen_name, create_child, c_name_of_child)
	(c_value_of_variable): Ditto.
	* utils.c (internal_vproblem): Ditto.
	* solib-aix5.c (build_so_list_from_mapfile): Ditto.
	* remote.c (add_packet_config_cmd): Ditto.
	* remote-rdp.c (rdp_set_command_line): Ditto.
	* regcache.c (regcache_dump): Ditto.
	* frv-tdep.c (new_variant, new_variant): Ditto.
	* fbsd-proc.c (child_pid_to_exec_file): Ditto.
	(fbsd_find_memory_regions): Ditto.
	* breakpoint.c (create_thread_event_breakpoint)
	(create_breakpoints): Ditto.
	* aix-thread.c (aix_thread_pid_to_str): Ditto.
	* ada-lang.c (is_package_name): Ditto.  Also delete xmalloc call.

Index: doc/ChangeLog
2004-06-26  Andrew Cagney  <cagney@gnu.org>

	* gdbint.texinfo (Coding): Replace xasprintf with xstrprintf.
2004-06-28 23:59:29 +00:00
Alexandre Oliva e073c4747a sim/h8300/ChangeLog:
2003-07-23  Richard Sandiford  <rsandifo@redhat.com>
* compile.c (sim_resume): Make sure that dst.reg refers to the
right register byte in mova/sz.l @(dd,RnL),ERn.
2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
* compile.c (sim_resume): Zero-extend immediate to muls, mulsu,
mulxs, divs and divxs.
sim/testsuite/sim/h8300/ChangeLog:
2003-07-22  Michael Snyder  <msnyder@redhat.com>
* mul.s: Don't try to use negative immediate (it's always
unsigned).
* div.s: Ditto.
2004-06-28 19:26:37 +00:00
Alexandre Oliva e4d3c499f5 * compile.c (sim_load): Update sd->memory_size. 2004-06-28 19:25:43 +00:00
Jim Blandy 71d39cfcfd * e500_registers.h (EVR): Cast the 32-bit value of the GPR to an
unsigned type before or-ing it with a 64-bit value.
2004-06-28 19:02:49 +00:00
Joel Brobecker 06d5cf63af * ada-lang.c: Re-indent file, with some massaging to help indent
a bit when the result is otherwise really too ugly.
2004-06-28 18:59:14 +00:00
Michael Chastain c279b077e0 2004-06-28 Michael Chastain <mec.gnu@mindspring.com>
* gdb.hp/gdb.base-hp/reg.exp: Accept both old and new gdb output
	formats for "info register".  Use gdb_test_multiple.  Fix
	the "invalid register" test.
2004-06-28 18:19:47 +00:00
DJ Delorie a21da8bff0 merge from gcc 2004-06-28 18:01:46 +00:00
Maciej W. Rozycki 8ffc9dd4f4 * Makefile.in: Regenerate to clean up breakage. 2004-06-28 15:11:14 +00:00
Alan Modra 98e6987548 opcodes/
* ppc-opc.c (insert_fxm): Handle mfocrf and mtocrf.
	(extract_fxm): Don't test dialect.
	(XFXFXM_MASK): Include the power4 bit.
	(XFXM): Add p4 param.
	(powerpc_opcodes): Add mfocrf and mtocrf.  Adjust mtcr.

gas/testsuite/
	* gas/ppc/power4.d: Update.
2004-06-28 14:08:08 +00:00
Alan Modra 3722b82f10 * bfd-in.h (struct stab_info): Move from stabs.c.
* stabs.c (struct stab_link_includes_table): Delete.
	(stab_link_includes_lookup): Delete.
	(_bfd_write_section_stabs, _bfd_write_stab_strings): Remove one
	level of indirection from sinfo parm.
	(_bfd_link_section_stabs): Likewise.  Set SEC_LINKER_CREATED on
	stabstr section.  Adjust hash table accesses.
	* coff-ppc.c (ppc_bfd_coff_final_link): Do include rawsize in contents
	alloc.  Adjust stab_info test.
	* cofflink.c (_bfd_coff_link_hash_table_init): Clear stab_info.
	(_bfd_coff_final_link): Adjust stab_info test.
	(_bfd_coff_link_input_bfd): Ignore SEC_LINKER_CREATED sections.
	* elf-bfd.h (struct elf_link_hash_table): Include struct stab_info
	in place.
	* libcoff-in.h (struct coff_link_hash_table): Likewise.
	* elf.c (_bfd_elf_link_hash_table_init): Clear stab_info.
	* elflink.c (bfd_elf_final_link): Don't attempt to link linker created
	stabstr section.  Adjust stab_info test.
	* libbfd-in.h (_bfd_link_section_stabs, _bfd_write_section_stabs)
	(_bfd_write_stab_strings): Adjust prototypes.
	* libbfd.h: Regenerate.
	* libcoff.h: Regenerate.
	* bfd-in2.h: Regenerate.
2004-06-28 13:57:59 +00:00
Corinna Vinschen 0e9157473d * gdb.base/attach.exp: Fix copyright date. Set testpid to Windows
PID for Cygwin.  Add Cygwin specific strings to check for in some
	tests.
	(do_attach_tests): Add a test for user interaction when attaching
	to a process with no matching symbol table already loaded.
2004-06-28 11:15:31 +00:00
Alan Modra c2b37aa518 daily update 2004-06-28 00:00:06 +00:00
gdbadmin b2cc3700eb *** empty log message *** 2004-06-28 00:00:02 +00:00
Ulrich Weigand 35809fad09 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
code_addr_p and special_addr_p to 'unsigned int'.
2004-06-27 22:26:34 +00:00
Mark Kettenis 40e2047218 * i386v4-nat.c: Update copyright year and tweak comment.
(regmap): Remove trailing comma.
(supply_gregset): Rename local variable i to regnum.  Call
regcache_raw_supply instead of supply_register.
(fill_gregset): Rename argument regno to regnum.  Call
regcache_raw_collect instead of regcache_collect.
2004-06-27 21:52:21 +00:00
Ulrich Weigand 12b0b6deed * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
and special_addr_p.
	(frame_id_build, frame_id_build_special): Update comments.
	(frame_id_build_wild): New prototype.
	* frame.c (frame_id_build, frame_id_build_special): Fill in new
	struct frame_id fields.
	(frame_id_build_wild): New function.
	(frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2004-06-27 20:45:05 +00:00
Mark Kettenis 47b42a3eac * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
hppabsd-tdep.c.
2004-06-27 20:37:36 +00:00
Joel Brobecker 1265e4aaa2 * ada-lang.c: Minor reformatting to conform to GNU coding standards. 2004-06-27 19:28:20 +00:00
Joel Brobecker 76a01679f8 * ada-lang.c: Re-indent file. 2004-06-27 19:06:23 +00:00
Joel Brobecker 7aca490a78 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
(no_symtab_msg): Likewise.
2004-06-27 18:55:48 +00:00
Andreas Schwab 5e9879684c * source.c: Fix whitespace. 2004-06-27 18:36:15 +00:00
Mark Kettenis d15be92637 * configure.in: Include <sys/param.h> for td_pcb test.
* configure: Regenerated.
2004-06-27 16:41:21 +00:00
Mark Kettenis 9062529b14 * i386nbsd-nat.c: New file.
* Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
i386obsd-nat.c and i386obsd-tdep.c.
(i386nbsd-nat.o): New dependency.
* config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
bsd-kvm.o.
(LOADLIBES): New variable.
* config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
bsd-kvm.o.
(LOADLIBES): New variable.
2004-06-27 16:22:43 +00:00
Mark Kettenis 8010310edb * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
(LOADLIBES): New variable.
2004-06-27 15:59:25 +00:00
Mark Kettenis efe1d7b9b0 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
fetching from BSD_KVM_PADDR.  Correctly lookup address for
"_thread0".
2004-06-27 15:56:20 +00:00
Mark Kettenis 315c4276b1 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
"bsd-kvm.h".
(amd64fbsd_supply_pcb): New funcion.
(_initialize_amd64fbsd_nat): Enable libkvm interface.
2004-06-27 15:44:22 +00:00
Mark Kettenis 727e493d45 From Miod Vallat <miod@online.fr>:
* aoutx.h (NAME(aout,machine_type)): Handle bfd_arch_m88k.
2004-06-27 15:08:05 +00:00
David Lecomber 399cfac618 2004-06-27 <david@streamline-computing.com>
Partial fix for PR cli/1056.
	* valarith.c (value_binop): Check for zero in division and
	remainder evaluation.
2004-06-27 07:57:15 +00:00
Alexandre Oliva a53b85e216 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
* disassemble.c (disassembler): Handle bfd_mach_h8300sxn.
2004-06-27 06:31:22 +00:00
Joern Rennecke 0242f9ea60 * callback.c (os_shutdown): Fix bug in last change: actually
mark file descriptors as available on startup.
2004-06-27 03:14:51 +00:00
Alexandre Oliva 146ccdbb23 * elf-m10300.c (struct elf_mn10300_pcrel_relocs_copied): Delete.
(struct elf32_mn10300_link_hash_entry): Remove
pcrel_relocs_copied.
(mn10300_elf_check_relocs): Only reserve dynamic relocations for
R_MN10300_32.  Don't adjust pcrel_relocs_copied.
(mn10300_elf_final_link_relocate): Fail for direct, pc-relative
and gotoff relocations if the symbol doesn't bind locally.  Use
_bfd_elf_symbol_refs_local_p to test.  Don't create dynamic
relocation for PCREL32.
(mn10300_elf_relocate_section): Use _bfd_elf_symbol_refs_local_p
to test whether a symbol binds locally.
(elf32_mn10300_link_hash_newfunc): Don't initialize
pcrel_relocs_copied.
(_bfd_mn10300_elf_discard_copies): Delete.
(_bfd_mn10300_elf_size_dynamic_sections): Don't call it.
2004-06-27 03:02:21 +00:00
Andrew Cagney 11422c8666 2004-06-26 Andrew Cagney <cagney@gnu.org>
Test PR java/1567 and PR java/1565.
	* gdb.java/jmain.exp, gdb.java/jmain.java: New files.
	* gdb.java/jmisc2.exp: Delete file.
2004-06-27 00:41:39 +00:00
Alan Modra f01132fe7f daily update 2004-06-27 00:00:05 +00:00
gdbadmin 10415c8572 *** empty log message *** 2004-06-27 00:00:04 +00:00
Mark Kettenis 6235f9c8f2 * i387-tdep.c: Remove excessive whitespace. 2004-06-26 23:20:30 +00:00