Commit Graph

33152 Commits

Author SHA1 Message Date
Jim Blandy 15002962be * mi-var-child.exp ("get children of struct_declarations", "get
children of struct_declarations.s2.u2.u1s2", "get children of
weird"): Tolerate argument types when they appear in function
types.  (Dwarf 2 includes prototype info; STABS does not.)
* mi0-var-child.exp: Same.
2002-02-05 23:56:45 +00:00
Jim Blandy 6bb7be4385 * solib-svr4.c (svr4_truncate_ptr): New function.
(svr4_relocate_section_addresses): Do the address arithmetic with
the appropriate truncation for target addresses, even when
CORE_ADDR is larger than a target address.
2002-02-05 23:28:13 +00:00
Alan Modra 91542be942 daily update 2002-02-05 23:00:06 +00:00
Daniel Jacobowitz e18651ecb3 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/linux-low.c (mywait): Cast second argument of waitpid
        to (int *).
2002-02-05 22:14:09 +00:00
Daniel Jacobowitz 6b2725be39 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/linux-low.c (kill_inferior): Remove commented out
        code.
2002-02-05 22:01:49 +00:00
Daniel Jacobowitz fca9e6033a 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
* c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
2002-02-05 21:41:29 +00:00
Frank Ch. Eigler cadaa5224a * opcodes disassembler extension
[includes]
2002-02-04  Frank Ch. Eigler  <fche@redhat.com>

	* dis-asm.h (disassemble_info): New field `insn_sets'.
	(INIT_DISASSEMBLE_INFO): Clear it.

[opcodes]
2002-02-04  Frank Ch. Eigler  <fche@redhat.com>

	* cgen-dis.in (print_insn_@arch@): Support disassemble_info.insn_sets.
2002-02-05 19:40:45 +00:00
Jim Blandy 39bf46527b * mi-cmd-stack.c (list_args_or_locals): Move declaration of
print_me inside the loop body, so it gets re-initialized every
iteration.  The cases for the different symbol kinds leave
print_me unchanged if they don't want the symbol printed.
2002-02-05 19:28:36 +00:00
Daniel Jacobowitz 6c537a5241 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/linux-low.c: Remove unused include files.
2002-02-05 19:09:34 +00:00
Daniel Jacobowitz d844cde6ca 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
        (read_inferior_memory): Use it.
        (write_inferior_memory): Likewise.
2002-02-05 19:06:26 +00:00
Daniel Jacobowitz d07c63e764 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/linux-low.c (create_inferior): Call strerror instead of
        grubbing through sys_errlist.
2002-02-05 18:49:55 +00:00
Daniel Jacobowitz da6d8c049c 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
2002-02-05 18:44:18 +00:00
DJ Delorie 44354ae183 merge from gcc 2002-02-05 17:53:17 +00:00
Nick Clifton c17aa31873 Modify previous patch so that it is only triggered for COFF format executables. 2002-02-05 11:22:26 +00:00
Nick Clifton 82f6addb56 Updated Turkish translations 2002-02-05 10:25:59 +00:00
Pierre Muller 5b421780f1 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
win32-nat.c (handle_exception): Handle Ctrl-Break exception.
2002-02-05 08:04:22 +00:00
Hans-Peter Nilsson 126730bd1c Forgot to ci ChangeLog 2002-02-05 07:14:26 +00:00
Hans-Peter Nilsson b479a82b15 Update copyright 2002-02-05 07:12:38 +00:00
Hans-Peter Nilsson 76dc39fe30 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
* emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2002-02-05 07:07:21 +00:00
Hans-Peter Nilsson e3dc884769 * ldlang.c (lang_reset_memory_regions): Rename from
reset_memory_regions.  Change all callers.  Make public.
	* ldlang.h (lang_reset_memory_regions): Prototype.
	* emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
	lang_reset_memory_regions before lang_size_sections.
2002-02-05 06:52:17 +00:00
Hans-Peter Nilsson b611beb043 * ld-selective/keepdot.d, ld-selective/keepdot.ld,
ld-selective/keepdot.s, ld-selective/keepdot0.d: New tests.
	* ld-selective/sel-dump.exp: New, driver for run_dump_test:s.
2002-02-05 06:45:16 +00:00
Ben Elliston f5e547d684 * config.guess: Import from master sources, rev 1.229.
* config.sub: Import from master sources, rev 1.240.
2002-02-05 04:40:53 +00:00
Andrew Cagney 9f60d481c2 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
(do_sfunc, set_cmd_sfunc): New functions.

* command.h (struct cmd_list_element): Add field func.
* cli/cli-decode.h (struct cmd_list_element): Ditto.
* command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
* cli/cli-decode.h: Ditto.

* cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
(help_all, help_cmd_list): Ditto.
(find_cmd, complete_on_cmdlist): Ditto.
* top.c (execute_command): Ditto.

* cli/cli-setshow.c (do_setshow_command): Call func instead of
function.sfunc.

* infcmd.c (notice_args_read): Fix function signature.

* cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
* cli/cli-decode.c (add_set_cmd): Ditto.
* utils.c (initialize_utils): Ditto.
* maint.c (_initialize_maint_cmds): Ditto.
* infrun.c (_initialize_infrun): Ditto.
* demangle.c (_initialize_demangler): Ditto.
* remote.c (add_packet_config_cmd): Ditto.
* mips-tdep.c (_initialize_mips_tdep): Ditto.
* cris-tdep.c (_initialize_cris_tdep): Ditto.
* proc-api.c (_initialize_proc_api): Ditto.
* kod.c (_initialize_kod): Ditto.
* valprint.c (_initialize_valprint): Ditto.
* top.c (init_main): Ditto.
* infcmd.c (_initialize_infcmd): Ditto.
* corefile.c (_initialize_core): Ditto.
* arm-tdep.c (_initialize_arm_tdep): Ditto.
* arch-utils.c (initialize_current_architecture): Ditto.
(_initialize_gdbarch_utils): Ditto.
* alpha-tdep.c (_initialize_alpha_tdep): Ditto.

* cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
* wince.c (_initialize_inftarg): Ditto.
* symfile.c (_initialize_symfile): Ditto.
* mips-tdep.c (_initialize_mips_tdep): Ditto.
* language.c (_initialize_language): Ditto.
* arc-tdep.c (_initialize_arc_tdep): Ditto.
2002-02-05 04:37:23 +00:00
Michael Snyder fe6fdd96e9 2002-02-04 Michael Snyder <msnyder@redhat.com>
* gdb.base/ovlymgr.c  (ovly_copy): Generalize for targets
          other than d10v and m32r.
2002-02-05 03:44:25 +00:00
Alan Modra 899f54f5ee * archures (bfd_mach_ppc64): Define.
(bfd_powerpc_arch): Rename to bfd_powerpc_archs.
	(bfd_powerpc_arch): Define.
	* bfd-in2.h: Regenerate.
	* cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
	(bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
	(bfd_powerpc_archs): Add default powerpc64 arch.

	* gas/ppc/test1elf64.d: Tweak arch name.
2002-02-05 03:35:19 +00:00
Michael Snyder b082f19936 2002-01-14 Michael Snyder <msnyder@redhat.com>
* gdb.base/gcore.exp: Remove extra debugging output.
2002-02-05 01:15:51 +00:00
Jeff Johnston 3813562989 2002-02-04 Jeff Johnston <jjohnstn@redhat.com>
* COPYING.NEWLIB: Remove advertising clause from
        Berkeley and Red Hat licenses.
2002-02-05 00:29:31 +00:00
Alan Modra 248866a8f5 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
against section syms in readonly sections.  Don't do the global
	sym check if we find one.
	* elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
	* elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
	* elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
	(elf_s390_grok_prstatus): Add missing prototype.
2002-02-05 00:00:23 +00:00
gdbadmin 7dc472abde *** empty log message *** 2002-02-05 00:00:03 +00:00
Michael Snyder f9ba071784 2002-02-04 Michael Snyder <msnyder@redhat.com>
* memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
2002-02-04 23:19:31 +00:00
Alan Modra 911a6141c7 daily update 2002-02-04 23:00:06 +00:00
Daniel Jacobowitz 0c74b2a77e 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
        Add rules for building the register data files.
2002-02-04 22:49:18 +00:00
Daniel Jacobowitz c638789ff8 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
* regformats/regdat.sh: Add braces to the definition of
        expedite_regs_${arch}.
2002-02-04 22:45:49 +00:00
Daniel Jacobowitz db2530270b 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
* regformats/regdef.h (struct reg): Add comment describing the
        requirements for offset and size fields.
2002-02-04 22:41:36 +00:00
Andreas Schwab 206be19c1b * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
* config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
2002-02-04 19:11:17 +00:00
gdbadmin 76016c325a *** empty log message *** 2002-02-04 19:10:41 +00:00
Richard Earnshaw 036fad3fdc * gdb.base/default.exp: Rewrite test patterns to reduce time
taken to match them.
2002-02-04 18:02:25 +00:00
Nick Clifton 25180f8aef If a v5 architecture is detected, assume it might be an XScale binary, since
there is no way to distinguish between    the two in the COFF file format.
2002-02-04 16:27:22 +00:00
Alexandre Oliva fdf4122d8d Ok, now the corrected ChangeLog entry 2002-02-04 12:32:46 +00:00
Alexandre Oliva 31c372aad2 * gas/testsuite/gas/sh/pcrel.d: New test.
* gas/testsuite/gas/sh/pcrel.s: Sources for new test.
* gas/testsuite/gas/sh/basic.exp: Run it.
2002-02-04 12:29:32 +00:00
Alexandre Oliva 7679ead9b5 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
A_DISP_PC only if it's an integral constant, and to
A_DISP_PC_ABS otherwise.
(get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
expected.
(build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
the operand type is not A_DISP_PC_ABS.
2002-02-04 12:29:15 +00:00
Alexandre Oliva 0b3301c329 * sh-opc.h (sh_arg_type): Added A_DISP_PC_ABS. 2002-02-04 12:29:01 +00:00
Richard Earnshaw 181c1381a5 * gdbarch.sh (copyright): Update years in generated header.
(SMASH_TEXT_ADDRESS): Add rule.
*gdbarch.h, gdbarch.c: Re-generate.
* coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
* dbxread.c: Likewise.
* dwarfread.c: Likewise.
* elfread.c: Likewise.
* somread.c: Likewise.

* arm-tdep.c (arm_smash_text_address): New function.
* config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
2002-02-04 11:55:36 +00:00
Pierre Muller fa4ba8da6c 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
Add support for hardware watchpoints on win32 native.
	* win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
	CONTEXT_DEBUG_REGISTERS.
	(dr variable): New variable. Static array containing a local copy
	of debug registers.
	(debug_registers_changed): New variable.  Reflects when debug registers
	are changed and need to be written to inferior.
	(debug_registers_used): New variable. Reflects when any debug register
	was set, used when new threads are created.
	(cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
	i386-nat code.
	(thread_rec): Set dr array if id is the thread of current_event .
	(child_continue, child_resume): Change the debug registers for all
	threads if debug_registers_changed.
	(child_add_thread): Change the debug registers if debug_registers_used.
	* config/i386/cygwin.mh: Add use of i386-nat.o file.
	Link nm.h to new nm-cygwin.h file.
	+ config/i386/nm-cygwin.h: New file. Contains the macros used for use
	of hardware registers.
2002-02-04 11:00:10 +00:00
Hans-Peter Nilsson 4fa5c2a8c0 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
(mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
	Call bfd_get_section_by_name only once.  Initialize
	bpodata->n_bpo_relocs_this_section.
	(_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
	referring to DSOs.
	(bpo_reloc_request_sort_fn): Don't use difference of values as
	return-value.
2002-02-04 04:45:08 +00:00
Hans-Peter Nilsson 8017dbcb39 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
arithmetic when checking for too many global registers.
2002-02-04 04:42:29 +00:00
Hans-Peter Nilsson a27be4d5bf * ld-mmix/bpo-18.d, ld-mmix/bpo64addr.ld, ld-mmix/bpo-18m.d,
ld-mmix/bpo-9.s, ld-mmix/bpo-19.d, ld-mmix/bpo-19m.d,
	ld-mmix/bpo-10.s, ld-mmix/bpo-20.d, ld-mmix/bpo-20m.d: New tests
	for on-demand global register allocation.
2002-02-04 04:38:53 +00:00
Hans-Peter Nilsson 5459d7a081 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
common and weak symbols.  Handle common and weak symbols as
	undefined symbols with regards to GREG handling and merging.
	(mmix_frob_file): Ditto.
2002-02-04 04:03:15 +00:00
Hans-Peter Nilsson c4a42e0f58 * gas/mmix/basep-8.d, gas/mmix/basep-9.s, gas/mmix/basep-9.d,
gas/mmix/err-bpo6.s, gas/mmix/basep-8.s, gas/mmix/basep-10.d,
	gas/mmix/basep-10.s, gas/mmix/basep-11.s, gas/mmix/basep-11.d: New
	tests for base-plus-offset relocations and global register
	allocations for weak and common symbols.
2002-02-04 04:01:32 +00:00
Andrew Cagney a73c86fb73 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
Restore behavour broken by 2002-01-20 Andrew Cagney
<ac131313@redhat.com> IEEE_FLOAT removal.
2002-02-04 02:22:41 +00:00