Commit Graph

48633 Commits

Author SHA1 Message Date
gdbadmin 9b4676ab41 *** empty log message *** 2005-06-16 00:00:34 +00:00
Alan Modra 3052d83e15 daily update 2005-06-16 00:00:05 +00:00
Mark Kettenis 3ab8e615c9 Fix my e-mail address in previous commit. 2005-06-15 16:35:28 +00:00
Mark Kettenis 0d559b9924 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
(hppa_hpux_store_register): Add casts in extract_unsigned_integer
  and store_usigned_integer calls.
2005-06-15 16:34:27 +00:00
Dave Brolley ac18822241 2005-06-15 Dave Brolley <brolley@redhat.com>
Contribute Morpho ms1 on behalf of Red Hat
        * ms1-asm.c, ms1-desc.c, ms1-dis.c, ms1-ibld.c, ms1-opc.c,
        ms1-opc.h: New files, Morpho ms1 target.

        2004-05-14  Stan Cox  <scox@redhat.com>

        * disassemble.c (ARCH_ms1): Define.
        (disassembler): Handle bfd_arch_ms1

        2004-05-13  Michael Snyder  <msnyder@redhat.com>

        * Makefile.am, Makefile.in: Add ms1 target.
        * configure.in: Ditto.
2005-06-15 16:23:54 +00:00
Dave Brolley b081650bb6 2005-06-15 Dave Brolley <brolley@redhat.com>
Contributed by Red Hat.
        * ms1.cpu: New file.  Written by Nick Clifton, Stan Cox.
        * ms1.opc: New file.  Written by Stan Cox.
2005-06-15 15:33:07 +00:00
Nick Clifton 4676756165 * elf32-v850.c (ELF_MACHINE_ALT2): Define so that binaries produced by the
GreenHills toolchain can be assimilated.
2005-06-15 08:22:45 +00:00
Dave Anglin 580a09db88 * som.c (som_find_inliner_info): New. 2005-06-15 00:16:10 +00:00
Alan Modra 2859bc09e9 daily update 2005-06-15 00:00:06 +00:00
gdbadmin ba056bb6eb *** empty log message *** 2005-06-15 00:00:03 +00:00
Mark Kettenis ccbd49121b * configure.ac: Simplify and improve check for socklen_t.
* configure, config.in: Regenerate.
2005-06-14 21:36:29 +00:00
Tom Tromey dfdbbcafa7 PR libgcj/19877:
* no-executables.m4: Call real AC_FUNC_MMAP when cache variable
	is set but not 'no'.
2005-06-14 20:27:38 +00:00
Mark Kettenis 45e11c33f1 Fix typo. 2005-06-14 20:13:00 +00:00
H.J. Lu 91134c823b 2005-06-14 H.J. Lu <hongjiu.lu@intel.com>
* elflink.c (_bfd_elf_merge_symbol): Fix a typo in comment.
2005-06-14 19:25:45 +00:00
H.J. Lu 77f762d6e4 2005-06-14 H.J. Lu <hongjiu.lu@intel.com>
PR 995
	* ar.c (BUFSIZE): Moved to ...
	* bucomm.h (BUFSIZE): Here.

	* bucomm.c: Include <assert.h>.
	(bfd_get_archive_filename): New.
	* bucomm.h (bfd_get_archive_filename): New.

	* objcopy.c (copy_unknown_object): New.
	(copy_object): Use bfd_get_archive_filename when reporting input
	error. Don't call fatal on unknown arch.
	(copy_archive): Call copy_unknown_object on unknown format or
	arch.
2005-06-14 13:26:42 +00:00
Jakub Jelinek c256ffe730 * readelf.c (cmalloc, xcmalloc, xcrealloc): New functions.
(get_data): Add nmemb argument.  Return NULL if nmemb * size
	overflows.  If var == NULL, allocate one extra byte and
	clear it.
	(slurp_rela_relocs, slurp_rel_relocs, get_32bit_program_headers,
	get_64bit_program_headers, get_program_headers,
	get_32bit_section_headers, get_64bit_section_headers,
	get_32bit_elf_symbols, get_64bit_elf_symbols, process_section_headers,
	process_section_groups, process_relocs, slurp_ia64_unwind_table,
	ia64_process_unwind, slurp_hppa_unwind_table, hppa_process_unwind,
	get_32bit_dynamic_section, get_64bit_dynamic_section,
	process_dynamic_section, process_version_sections, get_dynamic_data,
	process_symbol_table, dump_section, load_debug_str, load_debug_loc,
	load_debug_range, read_and_display_attr_value, process_debug_info,
	get_debug_info, frame_need_space, display_debug_frames,
	display_debug_section, process_mips_specific, process_gnu_liblist,
	process_corefile_note_segment): Adjust get_data callers.  Use
	cmalloc, xcmalloc and xcrealloc instead of {m,xm,xre}alloc where
	passed size is a product of 2 numbers.

	* readelf.c (print_mode): Fix comment typo.
	(slurp_rela_relocs, slurp_rel_relocs): Fix memory leaks.
	(dump_relocations): Fix a thinko in check for invalid st_name.
	(process_program_headers): Don't crash if string_table is NULL.
	(process_section_headers): Don't crash if e_shstrndx is invalid.
	Ensure string_table_length is 0 if string_table == NULL.
	Don't return just because string_table is NULL.
	(process_section_groups): Don't crash if symtab's sh_link or
	symbol's st_name is invalid.  Fix a memory leak.  Fix check for
	invalid section number entry.
	(process_relocs): Don't crash if relocation or symbol section's
	sh_link is invalid.
	(slurp_ia64_unwind_table, slurp_hppa_unwind_table): Don't crash if
	relocation section's sh_info is invalid.
	(ia64_process_unwind, hppa_process_unwind): Don't crash if symbol
	table's sh_link is invalid.
	(process_version_sections): Don't crash on version or symbol
	section's sh_link is invalid.  Don't crash if symbol's st_shndx
	is invalid.
	(process_symbol_table): Don't crash if string table is corrupt
	or symbol's st_name, st_shndx, vna_name or vda_name is invalid.
	(debug_apply_rela_addends): Don't crash if relocation section's
	sh_info or sh_link is invalid.
	(display_debug_loc): Warn for unterminated .debug_loc section
	or start offsets not within .debug_loc section boundaries.
	(process_gnu_liblist): Don't crash if liblist section's sh_link
	or entry's l_name is invalid.
2005-06-14 11:06:28 +00:00
Jakub Jelinek 933d961a3c * elf.c (bfd_section_from_shdr): Fail if name is NULL.
Prevent endless recursion on broken objects.

	* archive.c (do_slurp_coff_armap): Check for overflows.
2005-06-14 11:04:22 +00:00
gdbadmin 58b9a773e1 *** empty log message *** 2005-06-14 00:01:03 +00:00
Alan Modra 23ecb406a7 daily update 2005-06-14 00:00:06 +00:00
Nick Roberts 603189cbf0 (mi_cmd_data_list_register_values): Remove test for
registers now that mi_execute_command rewinds after an error.
2005-06-13 22:21:57 +00:00
Nick Roberts c20099015b *** empty log message *** 2005-06-13 22:21:19 +00:00
Mark Kettenis 3be60c3d27 * configure.ac: Use AC_CHECK_TYPES to check for uintptr_t.
* configure, config.in: Regenerate.
2005-06-13 21:59:38 +00:00
Mark Kettenis f9f87d2ca6 * ser-tcp.c: Tewak comment.
[!HAVE_SOCKLEN_T]: Typedef socklen_t.
* configure.ac: Add check for socklen_t.
* configure, config.in: Regenerate.
2005-06-13 21:32:01 +00:00
H.J. Lu 43259571ac 2005-06-13 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/linux64.mt (TDEPFILES): Add symfile-mem.o.
2005-06-13 20:52:08 +00:00
Richard Sandiford d738fe6d01 * MAINTAINERS: Update my email address. 2005-06-13 19:09:12 +00:00
Mark Mitchell 9f76c2cd17 * corelow.c (core_open): Use bfd_fopen, not bfd_fdopenr.
* exec.c (exec_file_attach): Likewise.
	* solib-frv.c (enable_break2): Likewise.
	* solib-svr4.c (enable_break): Likewise.
	* solib.c (solib_map_sections): Likewise.
	* symfile.c (symfile_bfd_open): Likewise.
2005-06-13 18:39:11 +00:00
Daniel Jacobowitz 26585198a1 * gdb.base/bigcore.exp: Correct checks for systems which can
not dump a large core file.
2005-06-13 18:11:01 +00:00
DJ Delorie 0e8e484a07 * depstand.m4, lead-dot.m4: New files. 2005-06-13 18:06:59 +00:00
DJ Delorie e5fbed214f * depcomp: Update from automake CVS. Add 'ia64hp' stanza.
In 'cpp' stanza, support '#line' as well as '# '.
2005-06-13 18:01:01 +00:00
Daniel Jacobowitz c1bd25fd1d gdb/
* Makefile.in (symfile.o): Add $(exec_h).
	* exec.h (exec_set_section_address): Add prototype.
	* exec.c (exec_set_section_address): New function.
	* symfile.c: Include "exec.h".
	(struct place_section_arg, place_section): New.
	(default_symfile_offsets): Call place_section for each
	section of a relocatable file.
gdb/testsuite/
	* gdb.base/relocate.c: Add a copyright notice.
	(dummy): Remove.
	* gdb.base/relocate.exp: Test printing the values of variables
	from a relocatable file.
2005-06-13 16:15:40 +00:00
Zack Weinberg 37f6032b85 gas:
* config/tc-arm.c (find_real_start): Check S_IS_LOCAL on
	symbolP as well as for names with a leading dot.  Use ACONCAT.
	(md_apply_fix): For branch relocations, only replace value
	with fixP->fx_offset (under #ifdef OBJ_ELF) when !fixP->fx_done.
	(arm_force_relocation): Remove #ifdef OBJ_ELF case.
	* config/tc-arm.h (LOCAL_LABEL): Remove unnecessary parentheses.
	(LOCAL_LABEL_PREFIX): Don't define.
gas/testsuite:
	* gas/arm/thumb.s: Only branch to labels defined in this file.
	* gas/arm/thumb.d, gas/arm/thumb32.d: Adjust expected output.
2005-06-13 15:34:39 +00:00
Joel Brobecker 7b5c6b52e4 * hppa-tdep.c (hppa_pc_requires_run_before_use): Really test all
bits of top byte in address.
2005-06-13 13:43:33 +00:00
Wu Zhou df0ca54784 * eval.c (evaluate_subexp_standard): Add code to check the target
type of a TYPE_CODE_PTR value when we encounter a f77 undetermined
	arglist.  If it is array, string or function, work on the target
	value instead.
2005-06-13 07:23:15 +00:00
Daniel Jacobowitz 589e074d2e gdb/
* mi/mi-main.c (register_changed_p, get_register): Use
	get_selected_frame.
	(mi_execute_command): Call mi_out_rewind after an error.
testsuite/
	* gdb.mi/mi-syn-frame.exp, gdb.mi/mi2-syn-frame.exp: Don't expect
	excess MI output after an error.
2005-06-13 02:41:51 +00:00
Daniel Jacobowitz f450004a28 * acconfig.h: Remove.
* configure.ac: Add a test for socklen_t.  Use three-argument
	AC_DEFINE throughout.
	* config.in: Regenerated using autoheader 2.59.
	* configure: Regenerated.

	* gdbreplay.c (socklen_t): Provide a default.
	(remote_open): Use socklen_t.
	* remote-utils.c (socklen_t): Provide a default.
	(remote_open): Use socklen_t.
	(convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
	unsigned char.

	* i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
	char for buffers.
	* linux-low.c (linux_read_memory, linux_write_memory)
	(linux_read_auxv): Likewise.
	* mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
	(check_mem_write): Likewise.
	* mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
	Likewise.
	* regcache.c (struct inferior_rgcache_data, registers_to_string)
	(registers_from_string, register_data): Likewise.
	* server.c (handle_query, main): Likewise.
	* server.h (convert_ascii_to_int, convert_int_to_ascii)
	(decode_M_packet): Likewise.
	* target.c (read_inferior_memory, write_inferior_memory): Likewise.
	* target.h (struct target_ops): Update read_memory, write_memory,
	and read_auxv.
	(read_inferior_memory, write_inferior_memory): Update.
	* linux-low.h (struct linux_target_ops): Change type of breakpoint
	to unsigned char *.
	* linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
	linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
	linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
	linux-s390-low.c, linux-sh-low.c: Update for changes in
	read_inferior_memory and the_low_target->breakpoint.
2005-06-13 01:59:22 +00:00
Alan Modra 2087f04778 daily update 2005-06-13 00:00:09 +00:00
gdbadmin d61c03eedf *** empty log message *** 2005-06-13 00:00:03 +00:00
Mark Kettenis e127f0db71 * hppa-tdep.c (hppa_frame_prev_register)
(hppa_fallback_frame_prev_register)
(hppa_stub_frame_prev_register): Change type of last argument to
`gdb_byte *'.
(hppa_fetch_pointer_argument): Tweak comment.  Use
get_frame_register_unsigned instead of get_frame_register.
(hppa32_return_value, hppa64_return_value): Change type of readbuf
and writebuf arguments to `gdb_byte *'.  Remove unecessary casts
and local variables.
(hppa_pseudo_register_read): Change type of last argument to
`gdb_byte *'.
2005-06-12 19:54:25 +00:00
Daniel Jacobowitz e185dd5153 * ld.texinfo (Command Line Options): Add @item for --hash-size. 2005-06-12 18:38:39 +00:00
Mark Kettenis 60b04da5be * m68k-tdep.c (m68k_frame_prev_register): Change type of last
argument to `gdb_byte *'.
2005-06-12 13:37:39 +00:00
Mark Kettenis 4bd7b4271e * arm-tdep.c (set_disassembly_style, _initialize_arm_tdep):
Consitify regnames.
2005-06-12 12:57:21 +00:00
Mark Kettenis 5b81956883 * alpha-tdep.c (alpha_sigtramp_frame_prev_register)
(alpha_heuristic_frame_prev_register): Change type of last
argument to `gdb_byte *'.
(alpha_register_to_value, alpha_value_to_register)
(alpha_extract_return_value, alpha_store_return_value): Likewise.
* alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
2005-06-12 12:53:55 +00:00
Mark Kettenis 9af75ef6c3 * arm-tdep.c (arm_prologue_prev_register)
(arm_sigtramp_prev_register): Change type of last argument to
`gdb_byte *'.
2005-06-12 12:15:31 +00:00
Mark Kettenis 2c7ff8e102 * m88k-tdep.c (m88k_frame_prev_register): Change type of last
argument to `gdb_byte *'.
2005-06-12 11:53:00 +00:00
Mark Kettenis 81e51e700b * vax-tdep.c (vax_frame_prev_register): Change type of last
argument to `gdb_byte *'.
2005-06-12 11:17:57 +00:00
Mark Kettenis 47ef841b87 * sparc-tdep.c (sparc32_frame_prev_register): Change type of last
argument to `gdb_byte *'.
* sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
Likewise.
* sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Likewise.
* sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
Likewise.
* sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
* sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
Likewise.
* sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
Likewise.
* sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Likewise.
* sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind):
Likewise.
2005-06-12 11:10:56 +00:00
Mark Kettenis 5323dd1d03 * amd64-tdep.c (amd64_frame_prev_register)
(amd64_sigtramp_frame_prev_register): Change type of last argument
to `gdb_byte *'.
2005-06-12 09:19:07 +00:00
gdbadmin 7466dde533 *** empty log message *** 2005-06-12 00:00:06 +00:00
Alan Modra 7391a870ba daily update 2005-06-12 00:00:05 +00:00
Mark Kettenis ab53358752 * i386-tdep.c (i386_register_type): Return
builtin_type_void_func_ptr for %eip and builtin_type_void_data_ptr
for %ebp and %esp.
2005-06-11 19:11:32 +00:00