Commit Graph

42380 Commits

Author SHA1 Message Date
Christopher Faylor d6dc804979 * win32-nat.c: Add some comments about below change. 2003-12-26 14:56:45 +00:00
Christopher Faylor 3ade53336e Fix for PR threads/1048
* win32-nat.c (thread_info_struct): Add reload_context flag.
(thread_rec): Don't reload thread context here.  Just set a flag.
(do_child_fetch_inferior_registers): Reload thread context here if appropriate.
Avoid doing anything if current_thread is NULL thanks to strange Windows
behavior.
(child_fetch_inferior_registers): Avoid doing anything if current_thread is
NULL.
(do_child_store_inferior_registers): Ditto.
(child_store_inferior_registers): Ditto.
(child_kill_inferior): Ditto.
(fake_create_process): Pretend to create a process for pathological windows
attach situation.
(get_child_debug_event): Call fake_create_process when the first event noticed
is thread creation rather than process creation.
(child_attach): Always set attach_flag when attaching.
(child_create_inferior): Set attach_flag to zero since we're not attaching.
2003-12-26 04:29:22 +00:00
Christopher Faylor 87a45c9606 * win32-nat.c (get_child_debug_event): Keep main thread id around even after
thread exits since Windows insists on continuing to report events against it.
2003-12-26 00:39:04 +00:00
gdbadmin ffeaf0e8c6 *** empty log message *** 2003-12-26 00:00:02 +00:00
Alan Modra c08c023bab daily update 2003-12-25 23:00:06 +00:00
gdbadmin 3acdd7e208 *** empty log message *** 2003-12-25 00:00:31 +00:00
Alan Modra faa0c22979 daily update 2003-12-24 23:00:05 +00:00
gdbadmin eb4dbeda06 *** empty log message *** 2003-12-24 00:00:02 +00:00
Alan Modra a1512051a0 daily update 2003-12-23 23:00:04 +00:00
Paul Brook c5f9820468 * doc/c-arm.texi: Document -march=armv6. 2003-12-23 18:48:02 +00:00
Paul Brook 84255574d4 * config/tc-arm.c (arm_archs): Add armv6. 2003-12-23 18:41:58 +00:00
Maciej W. Rozycki 4087920c2b * objcopy.c (bfd_flags_to_set, bfd_flags_to_clear): New variables
to handle flags for tweaking.
(copy_options): New options: impure, pure, readonly-text,
writable-text.
(copy_usage, copy_object, command_line_switch): Handle the new
options.
* doc/binutils.texi: Document the new options.
2003-12-23 13:01:11 +00:00
gdbadmin 231bc717e9 *** empty log message *** 2003-12-23 00:00:02 +00:00
Alan Modra d1b866b239 daily update 2003-12-22 23:00:04 +00:00
Mark Kettenis 79c4cb80ee * dwarf2-frame.c (dwarf2_frame_cache): Don't skip the return
address column.
2003-12-22 20:32:51 +00:00
Daniel Jacobowitz 4fd47f10ae * Makefile.in (lbasename.o): Depend on filenames.h.
* lbasename.c: Include "filenames.h" instead of defining
	its macros locally.
2003-12-22 19:22:57 +00:00
DJ Delorie b6fb00c07b merge from gcc 2003-12-22 16:03:32 +00:00
Jakub Jelinek 68b3b8dc9e * objdump.c (disassemble_bytes): Subtract rel_offset from printed
reloc address.
	(disassemble_section): Set rel_offset to section->vma instead of
	pinfo->buffer_vma.
2003-12-22 10:49:59 +00:00
Nick Clifton ad50f575f3 Fix tests to eliminated unexpected failures 2003-12-22 09:01:48 +00:00
Nick Clifton 46797b779b For v6 tests use -march=armv6j 2003-12-22 08:43:41 +00:00
Jim Blandy 6c50ab1c7f * breakpoint.c (bpstat_do_actions): To ensure that
clear_proceed_status doesn't free the command tree we're
evaluating out from under us, zero the bpstat's pointer to it, and
take care of freeing it ourselves.
* cli/cli-script.c (make_cleanup_free_command_lines): Make this
function externally visible.
* cli/cli-script.h (make_cleanup_free_command_lines): New
declaration.
2003-12-22 03:43:19 +00:00
DJ Delorie c196818164 * configure.in (*-*-uclinux): Exclude newlib, libgloss and rda.
* configure: Regenerated.
2003-12-22 00:59:55 +00:00
gdbadmin 7d0c64e53f *** empty log message *** 2003-12-22 00:00:31 +00:00
Alan Modra 7bf5c88cf2 daily update 2003-12-21 23:00:04 +00:00
gdbadmin f65333104b *** empty log message *** 2003-12-21 00:00:01 +00:00
Alan Modra aedd317cf6 daily update 2003-12-20 23:00:05 +00:00
DJ Delorie 2730f65149 merge from gcc 2003-12-20 16:06:10 +00:00
Mark Kettenis 59207364ed * x86-64-tdep.c (x86_64_dwarf_regmap): Map the Return Address to
RIP.
2003-12-20 13:36:00 +00:00
Nick Clifton 31a91399d1 (md_apply_fix3): Handle the case where a .byte directive generates a
pc-relative relocation.
2003-12-20 08:01:47 +00:00
gdbadmin 6c55c395b7 *** empty log message *** 2003-12-20 00:00:34 +00:00
Alan Modra f6b61ddab3 daily update 2003-12-19 23:00:35 +00:00
DJ Delorie d4edd1123b merge from gcc 2003-12-19 22:03:41 +00:00
DJ Delorie ae1cc67dd4 merge from gcc 2003-12-19 16:50:48 +00:00
Nick Clifton 5a1964ecbd Fix calls to as_perror() so that the errno system message will be printed.
Fix as_perror() so that errno is not corrupted.
2003-12-19 15:23:41 +00:00
Nathanael Nerode 10ecffb9b2 2003-12-19 Nathanael Nerode <neroden@gcc.gnu.org>
Port change over from GCC:
	2003-11-20  Kelley Cook  <kcook@gcc.gnu.org>
	* Makefile.tpl (BASE_FLAGS_TO_PASS): Pass along CONFIG_SHELL.
	(configure-build-[+module+], configure-[+module+]): Likewise.
	(configure-target-[+module+], configure-gcc, config.status): Likewise.
	* Makefile.in: Regenerate.
2003-12-19 15:13:56 +00:00
Nick Clifton 7653c69b3f oops - omitted from the previous checkin. 2003-12-19 11:59:20 +00:00
Nick Clifton 6edf0760c5 Add support for m32r-linux target, including a RELA ABI and PIC. 2003-12-19 11:44:01 +00:00
Nick Clifton c4bf77942d Do not mark .reloc sections as containing debug info. 2003-12-19 10:01:59 +00:00
Michael Chastain a2379359b4 2003-12-18 Michael Chastain <mec.gnu@mindspring.com>
* hppa-tdep.c (hppa_gdbarch_init): Set long double floating
	point type to floatformat_ia64_quad_big.
2003-12-19 06:45:03 +00:00
DJ Delorie 35f075b6ea merge from gcc 2003-12-19 04:04:44 +00:00
Kevin Buettner d40fcd7bc1 * frv-tdep.c (skip_prologue_using_sal): New function. Taken verbatim
from mips-tdep.c.
	(frv_analyze_prologue): Rework to account for intermixed prologue /
	body instructions.
2003-12-19 00:34:26 +00:00
gdbadmin a53cf7226d *** empty log message *** 2003-12-19 00:00:01 +00:00
Alan Modra daa6e61bf8 daily update 2003-12-18 23:00:05 +00:00
Michael Chastain 8e8b2dbaae 2003-12-18 Michael Chastain <mec.gnu@mindspring.com>
* hppa-tdep.c (hppa_gdbarch_init): Set sizeof(long_double) to 128.
	Document type sizes for hppa*-*-hpux* compilers available to me.
2003-12-18 22:13:48 +00:00
Michael Chastain e584bbaf70 2003-12-18 Michael Chastain <mec.gnu@mindspring.com>
* hppam3-nat.c: Delete obsolete file.
	* hppab-nat.c: Delete obsolete file.
	* Makefile.in: Remove references.
2003-12-18 18:22:35 +00:00
Nick Clifton 19e7825f04 (input_file_open): Remove call to stat(). Add a check for getc() failing, and
catch the case where the failure is due to an attempt to read a directory.
2003-12-18 18:03:08 +00:00
Michael Chastain 850742db45 2003-12-18 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/sect-cmd.exp: Handle compiling test case from multiple
	source files.
2003-12-18 16:25:21 +00:00
Nick Clifton 44dbf3639f When scanning MS import libraries allow for the possible presence of static
objects.
2003-12-18 14:56:44 +00:00
Richard Sandiford 18ab192184 * ld-mips-elf/reloc-1[ab].s: New source files.
* ld-mips-elf/reloc-1-{n32,n64,rel}.d: New tests.
	* ld-mips-elf/reloc-2[ab].s: New source files.
	* ld-mips-elf/reloc-2.{d,ld}: New test.
	* ld-mips-elf/reloc-3[ab].s: New source files.
	* ld-mips-elf/reloc-3-{r,srec}.d: New tests.
	* ld-mips-elf/mips-elf.exp: Run them.
2003-12-18 10:25:12 +00:00
Richard Sandiford 30ac9238df bfd/
* elf32-mips.c (elf_mips_howto_table_rel): Replace all uses of
	mips_elf_generic_reloc with _bfd_mips_elf_generic_reloc.  Use
	_bfd_mips_elf_hi16_reloc for R_MIPS_HI16 and R_MIPS_GNU_REL_HI16,
	_bfd_mips_elf_lo16_reloc for R_MIPS_LO16 and R_MIPS_GNU_REL_LO16,
	and _bfd_mips_elf_got16_reloc for R_MIPS_GOT16.  Change rightshift
	to 16 for R_MIPS_HI16 and R_MIPS_GNU_REL_HI16.
	(mips_elf_generic_reloc, struct mips_hi16, mips_elf_hi16_reloc)
	(mips_elf_lo16_reloc, mips_elf_got16_reloc): Delete.
	(_bfd_mips_elf32_gprel16_reloc): Remove special case.
	(mips_elf_gprel32_reloc, mips32_64bit_reloc): Likewise.

	* elf64-mips.c (mips_elf64_howto_table_rel): Replace all uses of
	mips_elf_generic_reloc with _bfd_mips_elf_generic_reloc.  Use
	_bfd_mips_elf_hi16_reloc for R_MIPS_HI16, _bfd_mips_elf_lo16_reloc
	for R_MIPS_LO16 and _bfd_mips_elf_got16_reloc for R_MIPS_GOT16.
	Change R_MIPS_HI16's rightshift to 16.
	(mips_elf64_howto_table_rela): Replace all uses of
	mips_elf_generic_reloc with _bfd_mips_elf_generic_reloc.
	Use _bfd_mips_elf_generic_reloc for R_MIPS_GOT16 as well.
	(mips_elf64_hi16_reloc, mips_elf64_got16_reloc): Delete.
	(mips_elf64_shift6_reloc): Remove special case.  Use
	_bfd_mips_elf_generic_reloc instead of returning bfd_reloc_continue.

	* elfn32-mips.c (prev_reloc_section): Delete.
	(prev_reloc_address, prev_reloc_addend): Delete.
	(elf_mips_howto_table_rel, elf_mips_howto_table_rela): As for
	elf64-mips.c
	(GET_RELOC_ADDEND, SET_RELOC_ADDEND): Delete.
	(mips_elf_generic_reloc, struct mips_hi16, mips_elf_hi16_reloc)
	(mips_elf_lo16_reloc, mips_elf_got16_reloc): Delete.
	(mips_elf_gprel16_reloc): Delete use of GET_RELOC_ADDEND.
	(mips_elf_literal_reloc, mips_elf_gprel32_reloc): Likewise.
	(mips16_jump_reloc, mips16_gprel_reloc): Likewise.
	(mips_elf_shift6_reloc): Likewise.  Delete use of SET_RELOC_ADDEND.

	* elfxx-mips.c (_bfd_mips_elf_gprel16_with_gp): Use
	_bfd_relocate_contents to install an in-place addend.
	(mips_hi16): New structure.
	(mips_hi16_list): Moved from elf32-mips.c.
	(_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_got16_reloc): New functions.
	(_bfd_mips_elf_lo16_reloc, _bfd_mips_elf_generic_reloc): New functions.
	(mips_elf_calculate_relocation): Assume addend is unshifted.
	(_bfd_mips_elf_relocate_section): Don't apply the howto rightshift
	on top of the usual high-part shift.  Don't shift the addend right
	before calling mips_elf_calculate_relocation.

	* elfxx-mips.h (_bfd_mips_elf_hi16_reloc): Declare.
	(_bfd_mips_elf_got16_reloc, _bfd_mips_elf_lo16_reloc): Declare.
	(_bfd_mips_elf_generic_reloc): Declare.

gas/
	* config/tc-mips.c (mips_need_elf_addend_fixup): Delete.
	(md_apply_fix3): Remove bfd_install_relocation workarounds.
	(tc_gen_reloc): Likewise. Factor handling of pc-relative relocations
	and treat fx_addnumber as relative to the relocation address.

gas/testsuite/
	* gas/mips/mips16-jalx.d: Use -mabi=o64.
	* gas/mips/mips16.d: Likewise.
	* gas/mips/elf-rel17.[sd]: New test.
	* gas/mips/mips.exp: Run it.
2003-12-18 10:23:10 +00:00