binutils-gdb.git
22 years agoEnable 16 byte alignment for .bss, .data and .text sections so that sse and
Nick Clifton [Fri, 14 Jun 2002 11:24:12 +0000 (11:24 +0000)]
Enable 16 byte alignment for .bss, .data and .text sections so that sse and
sse2 code will work.

22 years agofix attribution in previous changelog entry
Chris Demetriou [Fri, 14 Jun 2002 04:49:15 +0000 (04:49 +0000)]
fix attribution in previous changelog entry

22 years ago2002-06-13 Chris Demetriou <cgd@broadcom.com>
Chris Demetriou [Fri, 14 Jun 2002 04:44:11 +0000 (04:44 +0000)]
2002-06-13  Chris Demetriou  <cgd@broadcom.com>

* cp1.c (FP_PS_upper, FP_PS_lower, FP_PS_cat, FPQNaN_PS): New macros.
(value_fpr, store_fpr, fp_cmp, fp_unary, fp_binary, fp_mac)
(fp_inv_sqrt, fpu_format_name): Add paired-single support.
(convert): Note that this function is not used for paired-single
format conversions.
(ps_lower, ps_upper, pack_ps, convert_ps): New functions.
* mips.igen (FMT, MOVtf.fmt): Add paired-single support.
(check_fmt_p): Enable paired-single support.
(ALNV.PS, CVT.PS.S, CVT.S.PL, CVT.S.PU, PLL.PS, PLU.PS, PUL.PS)
(PUU.PS): New instructions.
(CVT.S.fmt): Don't use this instruction for paired-single format
destinations.
* sim-main.h (FP_formats): New value 'fmt_ps.'
(ps_lower, ps_upper, pack_ps, convert_ps): New prototypes.
(PSLower, PSUpper, PackPS, ConvertPS): New macros.

22 years ago*** empty log message ***
gdbadmin [Fri, 14 Jun 2002 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

22 years agodaily update
Alan Modra [Fri, 14 Jun 2002 00:00:05 +0000 (00:00 +0000)]
daily update

22 years agoIndividual processor configurations for sh-elf / sh-linux:
Joern Rennecke [Thu, 13 Jun 2002 20:11:35 +0000 (20:11 +0000)]
Individual processor configurations for sh-elf / sh-linux:

gcc:
* config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
* config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
* sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
(SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
(SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
(SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
(SELECT_SH5_COMPACT_NOFPU): Likewise.
(TARGET_SWITCHES): Use them.
(TARGET_CPU_DEFAULT): Define if not already defined.
(TARGET_DEFAULT): Use it.
(LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
* config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
* config/sh/t-monolib: New file.

bfd:
config.bfd: Add support for sh[1234]l*-*-elf* | sh3el*-*-elf*,
sh[1234]*-elf*.

ld:
* configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.

Still outstanding:
config.sub:
* config.sub: Add support for sh[12], sh3e, sh[1234]le, sh3ele,
shle, sh[1234]le, sh3ele, sh64le.

22 years ago2002-06-13 Daniel Jacobowitz <drow@mvista.com>
Daniel Jacobowitz [Thu, 13 Jun 2002 19:46:19 +0000 (19:46 +0000)]
2002-06-13  Daniel Jacobowitz  <drow@mvista.com>

        * NEWS: Mention multithreaded debug support for gdbserver.

22 years ago2002-06-13 Daniel Jacobowitz <drow@mvista.com>
Daniel Jacobowitz [Thu, 13 Jun 2002 19:35:04 +0000 (19:35 +0000)]
2002-06-13  Daniel Jacobowitz  <drow@mvista.com>

        * MAINTAINERS: Mention NEWS.

22 years ago2002-06-13 Daniel Jacobowitz <drow@mvista.com>
Daniel Jacobowitz [Thu, 13 Jun 2002 19:29:46 +0000 (19:29 +0000)]
2002-06-13  Daniel Jacobowitz  <drow@mvista.com>

        * gdbserver/regcache.c: Add comment.

22 years ago2002-06-13 Daniel Jacobowitz <drow@mvista.com>
Daniel Jacobowitz [Thu, 13 Jun 2002 19:16:25 +0000 (19:16 +0000)]
2002-06-13  Daniel Jacobowitz  <drow@mvista.com>

        * mips-tdep.c (PROC_SYMBOL): Add warning comment.
        (struct mips_objfile_private, compare_pdr_entries): New.
        (non_heuristic_proc_desc): Read the ".pdr" section if it
        is present.

22 years agoDisplay the symbol's size and use it for sorting.
Nick Clifton [Thu, 13 Jun 2002 17:04:39 +0000 (17:04 +0000)]
Display the symbol's size and use it for sorting.

22 years ago* config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
Maciej W. Rozycki [Thu, 13 Jun 2002 10:10:51 +0000 (10:10 +0000)]
* config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
value twice for RELA relocations.

22 years ago2002-06-12 H.J. Lu <hjl@gnu.org>
H.J. Lu [Thu, 13 Jun 2002 02:43:23 +0000 (02:43 +0000)]
2002-06-12  H.J. Lu <hjl@gnu.org>

* emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
false if xvec doesn't match.

22 years ago*** empty log message ***
gdbadmin [Thu, 13 Jun 2002 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

22 years agodaily update
Alan Modra [Thu, 13 Jun 2002 00:00:06 +0000 (00:00 +0000)]
daily update

22 years ago2002-06-12 Chris Demetriou <cgd@broadcom.com>
Chris Demetriou [Wed, 12 Jun 2002 23:32:05 +0000 (23:32 +0000)]
2002-06-12  Chris Demetriou  <cgd@broadcom.com>

        * mips.igen: Fix formatting of function calls in
        many FP operations.

22 years ago2002-06-12 Chris Demetriou <cgd@broadcom.com>
Chris Demetriou [Wed, 12 Jun 2002 23:20:56 +0000 (23:20 +0000)]
2002-06-12  Chris Demetriou  <cgd@broadcom.com>

        * mips.igen (MOVN, MOVZ): Trace result.
        (TNEI): Print "tnei" as the opcode name in traces.
        (CEIL.W): Add disassembly string for traces.
        (RSQRT.fmt): Make location of disassembly string consistent
        with other instructions.

22 years ago2002-06-12 Chris Demetriou <cgd@broadcom.com>
Chris Demetriou [Wed, 12 Jun 2002 22:22:41 +0000 (22:22 +0000)]
2002-06-12  Chris Demetriou  <cgd@broadcom.com>

        * mips.igen (X): Delete unused function.

22 years ago* arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
Andrew Cagney [Wed, 12 Jun 2002 21:46:05 +0000 (21:46 +0000)]
* arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
(arm_debug): New static variable.
(_initialize_arm_tdep): Add ``set debug arm'' command.

22 years agoAdd the file include/gdb/sim-arm.h defining an enum that specifies the
Andrew Cagney [Wed, 12 Jun 2002 21:19:43 +0000 (21:19 +0000)]
Add the file include/gdb/sim-arm.h defining an enum that specifies the
register numbering used by the GDB<->SIM interface.

22 years ago2002-06-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
Jeff Law [Wed, 12 Jun 2002 18:14:48 +0000 (18:14 +0000)]
2002-06-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>

* ld-scripts/cross1.t: Add .hash, .dynstr and .dynsym sections to
script.

22 years ago * elflink.h (elf_bfd_final_link): Improve error handling for missing
Jeff Law [Wed, 12 Jun 2002 18:14:05 +0000 (18:14 +0000)]
* elflink.h (elf_bfd_final_link): Improve error handling for missing
dynamic sections.

22 years ago * elf64-hppa.c (allocate_global_data_opd): We don't need an opd entry
Jeff Law [Wed, 12 Jun 2002 18:12:25 +0000 (18:12 +0000)]
* elf64-hppa.c (allocate_global_data_opd): We don't need an opd entry
for a symbol that has no output section.
(allocate_dynrel_entries): Correct comment.
(elf64_hppa_finalize_dynreloc): Likewise.  Don't create an opd entry
unless we want one.
(elf64_hppa_finalize_opd): Prevent segfault if dyn_h is NULL.
(elf64_hppa_finalize_dlt): Likewise.  Prevent segfault for symbols
with no section.  Remove unnecessary parentheses.

22 years ago * symbols.c (resolve_symbol_value): Initialise final_val.
Ben Elliston [Wed, 12 Jun 2002 16:39:29 +0000 (16:39 +0000)]
* symbols.c (resolve_symbol_value): Initialise final_val.
* subsegs.c (subsegs_print_statistics): Cast frchp to void *.

22 years agoChange default csect alignment to 4 bytes.
Tom Rix [Wed, 12 Jun 2002 16:14:02 +0000 (16:14 +0000)]
Change default csect alignment to 4 bytes.

22 years agoAdd and fix tests to reflect changing text alignment to 4 bytes.
Tom Rix [Wed, 12 Jun 2002 16:10:11 +0000 (16:10 +0000)]
Add and fix tests to reflect changing text alignment to 4 bytes.

22 years agoChange text alignement to 4 bytes.
Tom Rix [Wed, 12 Jun 2002 16:04:39 +0000 (16:04 +0000)]
Change text alignement to 4 bytes.

22 years ago* Makefile.in (CFLAGS_FOR_TARGET): Add -O2.
DJ Delorie [Wed, 12 Jun 2002 15:04:45 +0000 (15:04 +0000)]
* Makefile.in (CFLAGS_FOR_TARGET): Add -O2.

22 years ago2002-06-09 Aldy Hernandez <aldyh@redhat.com>
Aldy Hernandez [Wed, 12 Jun 2002 00:55:35 +0000 (00:55 +0000)]
2002-06-09  Aldy Hernandez  <aldyh@redhat.com>

        * MAINTAINERS: Add self.

22 years agomissed 2 in 2002. oops.
Aldy Hernandez [Wed, 12 Jun 2002 00:46:41 +0000 (00:46 +0000)]
missed 2 in 2002.  oops.

22 years ago002-06-09 Aldy Hernandez <aldyh@redhat.com>
Aldy Hernandez [Wed, 12 Jun 2002 00:46:11 +0000 (00:46 +0000)]
002-06-09  Aldy Hernandez  <aldyh@redhat.com>

        * sim-fpu.c (unpack_fpu): Initialize exponent for
        sim_fpu_class_zero.
        (i2fpu): Same.
        (sim_fpu_sqrt): Same.

22 years ago*** empty log message ***
gdbadmin [Wed, 12 Jun 2002 00:00:06 +0000 (00:00 +0000)]
*** empty log message ***

22 years agodaily update
Alan Modra [Wed, 12 Jun 2002 00:00:05 +0000 (00:00 +0000)]
daily update

22 years ago* gdb/source.c (source_info): Mention whether the symtab has
Jim Blandy [Tue, 11 Jun 2002 20:37:05 +0000 (20:37 +0000)]
* gdb/source.c (source_info): Mention whether the symtab has
information about preprocessor macros.

* gdb/testsuite/lib/gdb.exp (get_debug_format): Tolerate message
saying whether preprocessor macro information is present.

* gdb/doc/gdb.texinfo (Symbols): Update documentation for `info
source' command.

22 years ago* macscp.exp, macscp1.c, macscp2.h, macscp3.h, macscp4.h: New
Jim Blandy [Tue, 11 Jun 2002 20:27:50 +0000 (20:27 +0000)]
* macscp.exp, macscp1.c, macscp2.h, macscp3.h, macscp4.h: New
tests.

22 years agoCall the command `info macro', not `show macro'.
Jim Blandy [Tue, 11 Jun 2002 20:05:03 +0000 (20:05 +0000)]
Call the command `info macro', not `show macro'.

* gdb/macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
Fix error message.
(_initialize_macrocmd): Register `info_macro_command' in
`infolist', not `showlist'.

* gdb/doc/gdb.texinfo (Macros): Call the command `info macro', not
`show macro'.

22 years ago2002-06-11 Daniel Jacobowitz <drow@mvista.com>
Daniel Jacobowitz [Tue, 11 Jun 2002 17:51:56 +0000 (17:51 +0000)]
2002-06-11  Daniel Jacobowitz  <drow@mvista.com>

        * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
        (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
        (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
        (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
        (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
        unconditionally.
        (set_mipsfpu_single_command, set_mipsfpu_double_command)
        (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
        (_initialize_mips_tdep): Remove dead code.
        * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
        (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
        * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
        (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
        * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
        MIPS_LAST_FP_ARG_REGNUM): Remove.

22 years ago2002-06-11 Daniel Jacobowitz <drow@mvista.com>
Daniel Jacobowitz [Tue, 11 Jun 2002 17:32:40 +0000 (17:32 +0000)]
2002-06-11  Daniel Jacobowitz  <drow@mvista.com>

* gdbserver/thread-db.c: New file.
* gdbserver/proc-service.c: New file.
* gdbserver/acinclude.m4: New file.
* gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
proc-service.o, and thread-db.o.
(linux-low.o): Add USE_THREAD_DB.
* gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
* gdbserver/aclocal.m4: Regenerated.
* gdbserver/config.in: Regenerated.
* gdbserver/configure: Regenerated.
* gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
thread_db.h, and linux/elf.h headrs.
Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
PRFPREGSET_T_BROKEN.  Introduce srv_thread_depfiles and USE_THREAD_DB.
Check for -lthread_db and thread support.
* gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
PowerPC, and SuperH.
* gdbserver/i387-fp.c: Constify arguments.
* gdbserver/i387-fp.h: Likewise.
* gdbserver/inferiors.c: (struct thread_info): Renamed from
`struct inferior_info'.  Remove PID member.  Use generic inferior
list header.  All uses updated.
(inferiors, signal_pid): Removed.
(all_threads): New variable.
(get_thread): Define.
(add_inferior_to_list): New function.
(for_each_inferior): New function.
(change_inferior_id): New function.
(add_inferior): Removed.
(remove_inferior): New function.
(add_thread): New function.
(free_one_thread): New function.
(remove_thread): New function.
(clear_inferiors): Use for_each_inferior and free_one_thread.
(find_inferior): New function.
(find_inferior_id): New function.
(inferior_target_data): Update argument type.
(set_inferior_target_data): Likewise.
(inferior_regcache_data): Likewise.
(set_inferior_regcache_data): Likewise.
* gdbserver/linux-low.c (linux_bp_reinsert): Remove.
(all_processes, stopping_threads, using_thrads)
(struct pending_signals, debug_threads, pid_of): New.
(inferior_pid): Replace with macro.
(struct inferior_linux_data): Remove.
(get_stop_pc, add_process): New functions.
(linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
Use add_process and add_thread.
(linux_attach_lwp): New function, based on old linux_attach.  Use
add_process and add_thread.  Set stop_expected for new threads.
(linux_attach): New function.
(linux_kill_one_process): New function.
(linux_kill): Kill all LWPs.
(linux_thread_alive): Use find_inferior_id.
(check_removed_breakpoints, status_pending_p): New functions.
(linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
Update.  Use WNOHANG.  Wait for cloned processes also.  Update process
struct for the found process.
(linux_wait_for_event): New function.
(linux_wait): Use it.  Support LWPs.
(send_sigstop, wait_for_sigstop, stop_all_processes)
(linux_resume_one_process, linux_continue_one_process): New functions.
(linux_resume): Support LWPs.
(REGISTER_RAW_SIZE): Remove.
(fetch_register): Use register_size instead.  Call supply_register.
(usr_store_inferior_registers): Likewise.  Call collect_register.
Fix recursive case.
(regsets_fetch_inferior_registers): Improve error message.
(regsets_store_inferior_registers): Add debugging.
(linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
(unstopped_p, linux_signal_pid): New functions.
(linux_target_ops): Add linux_signal_pid.
(linux_init_signals): New function.
(initialize_low): Call it.  Initialize using_threads.
* gdbserver/regcache.c (inferior_regcache_data): Add valid
flag.
(get_regcache): Fetch registers lazily.  Add fetch argument
and update all callers.
(regcache_invalidate_one, regcache_invalidate): New
functions.
(new_register_cache): Renamed from create_register_cache.
Return the new regcache.
(free_register_cache): Change argument to a void *.
(registers_to_string, registers_from_string): Call get_regcache
with fetch flag set.
(register_data): Make static.  Pass fetch flag to get_regcache.
(supply_register): Call get_regcache with fetch flag clear.
(collect_register): Call get_regcache with fetch flag set.
(collect_register_as_string): New function.
* gdbserver/regcache.h: Update.
* gdbserver/remote-utils.c (putpkt): Flush after debug output and use
stderr.
Handle input interrupts while waiting for an ACK.
(input_interrupt): Use signal_pid method.
(getpkt): Flush after debug output and use stderr.
(outreg): Use collect_register_as_string.
(new_thread_notify, dead_thread_notify): New functions.
(prepare_resume_reply): Check using_threads.  Set thread_from_wait
and general_thread.
(look_up_one_symbol): Flush after debug output.
* gdbserver/server.c (step_thread, server_waiting): New variables.
(start_inferior): Don't use signal_pid.  Update call to mywait.
(attach_inferior): Update call to mywait.
(handle_query): Handle qfThreadInfo and qsThreadInfo.
(main): Don't fetch/store registers explicitly.  Use
set_desired_inferior.  Support proposed ``Hs'' packet.  Update
calls to mywait.
* gdbserver/server.h: Update.
(struct inferior_list, struct_inferior_list_entry): New.
* gdbserver/target.c (set_desired_inferior): New.
(write_inferior_memory): Constify.
(mywait): New function.
* gdbserver/target.h: Update.
(struct target_ops): New signal_pid method.
(mywait): Removed macro, added prototype.

* gdbserver/linux-low.h (regset_func): Removed.
(regset_fill_func, regset_store_func): New.
(enum regset_type): New.
(struct regset_info): Add type field.  Use new operation types.
(struct linux_target_ops): stop_pc renamed to get_pc.
Add decr_pc_after_break and breakpoint_at.
(get_process, get_thread_proess, get_process_thread)
(strut process_info, all_processes, linux_attach_lwp)
(thread_db_init): New.

* gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
(the_low_target): Add new members.
* gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
(i386_store_fpxregset): Constify.
(target_regsets): Add new kind identifier.
(i386_get_pc): Renamed from i386_stop_pc.  Simplify.
(i386_set_pc): Add debugging.
(i386_breakpoint_at): New function.
(the_low_target): Add new members.
* gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
(mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
(mips_breakpoint_at): New.
(the_low_target): Add new members.
* gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
(ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
(the_low_target): Add new members.
* gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
(sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
(the_low_target): Add new members.
* gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
identifier.

22 years agoImport latest version of texi2pod.pl from FSF GCC sources.
Nick Clifton [Tue, 11 Jun 2002 15:34:33 +0000 (15:34 +0000)]
Import latest version of texi2pod.pl from FSF GCC sources.

22 years agoRevoke adding mh-s390xpic. Doesn't make any sense because it is not
Martin Schwidefsky [Tue, 11 Jun 2002 13:34:24 +0000 (13:34 +0000)]
Revoke adding mh-s390xpic. Doesn't make any sense because it is not
referenced from anywhere.

22 years agoAJ found the problem and created the patch.
Martin Schwidefsky [Tue, 11 Jun 2002 13:16:01 +0000 (13:16 +0000)]
AJ found the problem and created the patch.

22 years ago2002-06-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
Martin Schwidefsky [Tue, 11 Jun 2002 09:50:44 +0000 (09:50 +0000)]
2002-06-11  Martin Schwidefsky  <schwidefsky@de.ibm.com>

        * ld-undefined/undefined.exp: Add s390x to dwarf2 xfails.

22 years ago2002-06-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
Martin Schwidefsky [Tue, 11 Jun 2002 09:46:38 +0000 (09:46 +0000)]
2002-06-11  Martin Schwidefsky  <schwidefsky@de.ibm.com>

        * mh-s390xpic: New file.

22 years ago* dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c')
Michal Ludvig [Tue, 11 Jun 2002 08:45:05 +0000 (08:45 +0000)]
* dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c')

22 years ago2002-06-11 Michal Ludvig <mludvig@suse.cz>
Michal Ludvig [Tue, 11 Jun 2002 08:32:33 +0000 (08:32 +0000)]
2002-06-11  Michal Ludvig  <mludvig@suse.cz>

* dwarf2cfi.c (unwind_tmp_obstack_init): New.
(unwind_tmp_obstack_free, parse_frame_info)
(update_context, cfi_read_fp, cfi_write_fp)
(cfi_frame_chain, cfi_init_extra_frame_info)
(cfi_virtual_frame_pointer): Use the above function.

22 years ago * v850-tdep.c (v850_type_is_scalar): New function.
Corinna Vinschen [Tue, 11 Jun 2002 07:01:12 +0000 (07:01 +0000)]
* v850-tdep.c (v850_type_is_scalar): New function.
(v850_use_struct_convention): Match current gcc implementation
as close as possible.
(v850_push_arguments): Fix stack_offset handling.  Don't write
struct_addr into register.  This is done by v850_store_struct_return.
(v850_extract_return_value): Care for structs.
(v850_store_return_value): Ditto.
(v850_store_struct_return): Actually write address.

22 years ago2002-06-11 Michal Ludvig <mludvig@suse.cz>
Michal Ludvig [Tue, 11 Jun 2002 06:11:31 +0000 (06:11 +0000)]
2002-06-11  Michal Ludvig  <mludvig@suse.cz>

* x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
without debug information too.

22 years agoMake print_float_info() multi-arch pure. Add ui_file and frame parameters.
Andrew Cagney [Tue, 11 Jun 2002 02:30:59 +0000 (02:30 +0000)]
Make print_float_info() multi-arch pure.  Add ui_file and frame parameters.

22 years agoForce gdbarch.c to be initialized first.
Andrew Cagney [Tue, 11 Jun 2002 01:31:36 +0000 (01:31 +0000)]
Force gdbarch.c to be initialized first.

22 years ago*** empty log message ***
gdbadmin [Tue, 11 Jun 2002 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

22 years agodaily update
Alan Modra [Tue, 11 Jun 2002 00:00:06 +0000 (00:00 +0000)]
daily update

22 years ago* infrun.c (struct inferior_status): Replace fields
Andrew Cagney [Mon, 10 Jun 2002 23:25:50 +0000 (23:25 +0000)]
* infrun.c (struct inferior_status): Replace fields
selected_frame_address and selected_level with field
selected_frame_id.
(save_inferior_status): Update.  Use get_frame_id.
(struct restore_selected_frame_args): Delete.
(restore_selected_frame): Update.  Use frame_find_by_id.
(restore_inferior_status): Update.

* breakpoint.h (struct breakpoint): Change type of
watchpoint_frame to frame_id.
* breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
call to get_current_frame.
(do_enable_breakpoint): Use frame_find_by_id.  Remove call to
get_current_frame.
(watchpoint_check): Use frame_find_by_id.

* frame.h (record_selected_frame): Delete declaration.
* stack.c (record_selected_frame): Delete function.

* frame.h (struct frame_id): Define.
(get_frame_id): Declare.
(frame_find_by_id): Declare.
* frame.c (frame_find_by_id): New function.
(get_frame_id): New function.

22 years agoser-e7kpc.c: Fix duplicated define and call of _initialize_ser_e7000pc
Andrey Volkov [Mon, 10 Jun 2002 19:19:37 +0000 (19:19 +0000)]
ser-e7kpc.c: Fix duplicated define and call of _initialize_ser_e7000pc

22 years ago * ld-mips-elf/region1a.s,
Richard Sandiford [Mon, 10 Jun 2002 16:14:08 +0000 (16:14 +0000)]
* ld-mips-elf/region1a.s,
* ld-mips-elf/region1b.s,
* ld-mips-elf/region1.t,
* ld-mips-elf/region1.d: New test.
* ld-mips-elf/mips-elf.exp: Run it.

22 years ago * ldlang.c (lang_size_sections_1): Skip removed output sections.
Richard Sandiford [Mon, 10 Jun 2002 16:12:04 +0000 (16:12 +0000)]
* ldlang.c (lang_size_sections_1): Skip removed output sections.

22 years ago * section.c (_bfd_strip_section_from_output): Set SEC_EXCLUDE
Richard Sandiford [Mon, 10 Jun 2002 16:10:43 +0000 (16:10 +0000)]
* section.c (_bfd_strip_section_from_output): Set SEC_EXCLUDE
for removed output sections.

22 years agoUse htab_create_alloc with calloc, not htab_alloc.
Nick Clifton [Mon, 10 Jun 2002 10:18:33 +0000 (10:18 +0000)]
Use htab_create_alloc with calloc, not htab_alloc.

22 years ago*** empty log message ***
gdbadmin [Mon, 10 Jun 2002 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

22 years agodaily update
Alan Modra [Mon, 10 Jun 2002 00:00:06 +0000 (00:00 +0000)]
daily update

22 years ago2002-06-09 Daniel Jacobowitz <drow@mvista.com>
Daniel Jacobowitz [Sun, 9 Jun 2002 19:42:11 +0000 (19:42 +0000)]
2002-06-09  Daniel Jacobowitz  <drow@mvista.com>

        * signals/signals.c (target_signal_from_host): Fix #ifdef
        SIGRTMIN case.
        (do_target_signal_to_host): Likewise.

22 years ago2002-06-09 Daniel Jacobowitz <drow@mvista.com>
Daniel Jacobowitz [Sun, 9 Jun 2002 19:36:15 +0000 (19:36 +0000)]
2002-06-09  Daniel Jacobowitz  <drow@mvista.com>

        * mips-tdep.c (mips_find_abi_section): New function.
        (mips_gdbarch_init): Call it.

22 years ago * config/tc-avr.c (mcu_types): Update.
Marek Michalkiewicz [Sun, 9 Jun 2002 17:57:09 +0000 (17:57 +0000)]
* config/tc-avr.c (mcu_types): Update.

22 years ago* gdbint.texinfo (Coding): Add section ``Per-architecture module
Andrew Cagney [Sun, 9 Jun 2002 17:15:40 +0000 (17:15 +0000)]
* gdbint.texinfo (Coding): Add section ``Per-architecture module
data''.

22 years ago* solib-svr4.c (init_fetch_link_map_offsets): Simply return
Mark Kettenis [Sun, 9 Jun 2002 16:39:00 +0000 (16:39 +0000)]
* solib-svr4.c (init_fetch_link_map_offsets): Simply return
legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
after Andrew's 2002-06-08 gdbarch change.

22 years ago* i386-linux-nat.c (suppy_gregset): Don't supply
Mark Kettenis [Sun, 9 Jun 2002 16:06:48 +0000 (16:06 +0000)]
* i386-linux-nat.c (suppy_gregset): Don't supply
I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
register cache.
(fill_gregset): Don't fetch it under the same circumstances.

22 years agoMove include/callback.h and include/remote-sim.h to include/gdb/.
Andrew Cagney [Sun, 9 Jun 2002 15:45:54 +0000 (15:45 +0000)]
Move include/callback.h and include/remote-sim.h to include/gdb/.
Update accordingly.

22 years ago* osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
Mark Kettenis [Sun, 9 Jun 2002 15:11:47 +0000 (15:11 +0000)]
* osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
* osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".

22 years ago2002-06-08 H.J. Lu <hjl@gnu.org>
H.J. Lu [Sun, 9 Jun 2002 03:08:54 +0000 (03:08 +0000)]
2002-06-08  H.J. Lu <hjl@gnu.org>

* elf.c (copy_private_bfd_data): Don't cast to bfd_size_type to
work around a long long bug in gcc 2.96 on mips.

22 years ago* gdbint.texinfo (Releasing GDB): Fix typos in @itemize @bullet
Andrew Cagney [Sun, 9 Jun 2002 02:11:12 +0000 (02:11 +0000)]
* gdbint.texinfo (Releasing GDB): Fix typos in @itemize @bullet
lists.

22 years ago* configure.in (vax-*-netbsd*): Re-enable gas.
Jason Thorpe [Sun, 9 Jun 2002 01:32:19 +0000 (01:32 +0000)]
* configure.in (vax-*-netbsd*): Re-enable gas.

22 years ago2002-06-08 Matt Thomas <matt@3am-software.com>
Jason Thorpe [Sun, 9 Jun 2002 00:45:42 +0000 (00:45 +0000)]
2002-06-08  Matt Thomas  <matt@3am-software.com>

* configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
(vax-*-netbsd*): New targets.
* configure: Regenerate.
* config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
* config/tc-vax.c: Add support for ELF and PIC.
(flag_want_pic): New flag.
(float_cons): Fix prototype.
(md_apply_fix3): Adjust for BFD_ASSEMBLER.
(md_assemble): Introduce a new is_absolute local, and use it
rather than repeating the test.  Make fatal errors actually
fatal by using as_fatal as appropriate.  Adjust for BFD_ASSEMBLER.
Add support for ELF.  Add support for PIC.
(md_convert_frag): Adjust for BFD_ASSEMBLER.
(tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
BFD_ASSEMBLER.
(vax_reg_parse): Make the % register prefix mandatory for ELF,
optional for a.out, and not allowed for VMS.  Adjust all callers.
(md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
(md_create_long_jump): Likewise.
(md_undefined_symbol): Likewise.
(md_section_align): Likewise.
(md_shortopts): Allow -k and -K for ELF.
(md_parse_option): Set flag_want_pic if -k or -K.
(tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
(tc_gen_reloc): New function if BFD_ASSEMBLER.
* config/tc-vax.h (tc_headers_hook): Remove.
(TARGET_FORMAT): Set according to object format and target
environment.
(BFD_ARCH, TARGET_ARCH): Define.
(NO_RELOC): Adjust for BFD_ASSEMBLER.
(TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
(tc_fix_adjustable): Define if BFD_ASSEMBLER.
* config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.

22 years agodaily update
Alan Modra [Sun, 9 Jun 2002 00:00:03 +0000 (00:00 +0000)]
daily update

22 years ago*** empty log message ***
gdbadmin [Sun, 9 Jun 2002 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

22 years ago* Makefile.am (BFD32_BACKENDS): Add vax1knetbsd.lo.
Jason Thorpe [Sat, 8 Jun 2002 23:23:08 +0000 (23:23 +0000)]
* Makefile.am (BFD32_BACKENDS): Add vax1knetbsd.lo.
(BFD32_BACKENDS_CFILES): Add vax1knetbsd.c.
Regenerate dependency lists.
* Makefile.in: Regenerate.
* config.bfd (vax-*-netbsdelf*, vax-*-netbsdaout*): Add
vax1knetbsd_vec to targ_selvecs.
* configure.in: Add vax1knetbsd_vec.
* configure: Regenerate.
* targets.c (_bfd_target_vector): Add vax1knetbsd_vec.
* vax1knetbsd.c: New file.
* vaxnetbsd.c: Update copyright years.
(TARGET_PAGE_SIZE): Set to 0x1000.
(DEFAULT_MID): Set to M_VAX4K_NETBSD.

22 years ago2002-06-08 Matt Thomas <matt@3am-software.com>
Jason Thorpe [Sat, 8 Jun 2002 23:01:10 +0000 (23:01 +0000)]
2002-06-08  Matt Thomas  <matt@3am-software.com>

* libaout.h (enum machine_type): Add M_VAX4K_NETBSD.

22 years agoFix name of enum used in cast (sim_fetch_register, sim_store_register).
Andrew Cagney [Sat, 8 Jun 2002 22:19:56 +0000 (22:19 +0000)]
Fix name of enum used in cast (sim_fetch_register, sim_store_register).

22 years ago* sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
Andrew Cagney [Sat, 8 Jun 2002 20:34:41 +0000 (20:34 +0000)]
* sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
* rdi-share/serpardr.c: Ditto.
* rdi-share/unixcomm.c: Ditto.
* rdi-share/serdrv.c: Ditto.
* rdi-share/hostchan.h: Ditto.
* rdi-share/hostchan.c: Ditto.
* rdi-share/host.h: Ditto.
* rdi-share/devsw.c: Ditto.

22 years ago* objfiles.h: Change type of obj_private to void pointer.
Andrew Cagney [Sat, 8 Jun 2002 20:02:51 +0000 (20:02 +0000)]
* objfiles.h: Change type of obj_private to void pointer.
* pa64solib.c: Update copyright.  Don't include "assert.h", use
strcmp instead of STREQ, use LONGEST, do not use PTR
* somsolib.c: Ditto.

22 years ago* config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
Andrew Cagney [Sat, 8 Jun 2002 19:34:00 +0000 (19:34 +0000)]
* config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.

22 years ago* frame.c (GET_SAVED_REGISTER): Delete macro definition.
Andrew Cagney [Sat, 8 Jun 2002 18:57:38 +0000 (18:57 +0000)]
* frame.c (GET_SAVED_REGISTER): Delete macro definition.
(default_get_saved_register): Delete function.
* gdbarch.sh (GET_SAVED_REGISTER): Set default to
generic_unwind_get_saved_register.
* gdbarch.h, gdbarch.c: Re-generate.

22 years ago* gdbarch.sh (FRAME_CHAIN_VALID): Set default to
Andrew Cagney [Sat, 8 Jun 2002 18:30:14 +0000 (18:30 +0000)]
* gdbarch.sh (FRAME_CHAIN_VALID): Set default to
generic_func_frame_chain_valid.
* gdbarch.h, gdbarch.c: Re-generate.
* blockframe.c (generic_func_frame_chain_valid): Only check
PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
passing FP to PC_IN_CALL_DUMMY.
Fix PR gdb/360.

22 years agoOops, missed DanielJ's tipo.
Andrew Cagney [Sat, 8 Jun 2002 18:11:06 +0000 (18:11 +0000)]
Oops, missed DanielJ's tipo.

22 years ago* gdbarch.sh (struct gdbarch_data): Add field init_p.
Andrew Cagney [Sat, 8 Jun 2002 18:09:01 +0000 (18:09 +0000)]
* gdbarch.sh (struct gdbarch_data): Add field init_p.
(register_gdbarch_data): Initialize init_p.
(gdbarch_data): Initialize data pointer using the init function.
(init_gdbarch_data): Delete function.
(gdbarch_update_p): Update.
(initialize_non_multiarch): Update.
(struct gdbarch): Add field initialized_p.
* gdbarch.h, gdbarch.c: Re-generate.

22 years ago* gdbint.texinfo (Releasing GDB): Revise the section ``Cut the
Andrew Cagney [Sat, 8 Jun 2002 17:50:59 +0000 (17:50 +0000)]
* gdbint.texinfo (Releasing GDB): Revise the section ``Cut the
Branch''.

22 years ago2002-06-08 Daniel Jacobowitz <drow@mvista.com>
Daniel Jacobowitz [Sat, 8 Jun 2002 16:04:35 +0000 (16:04 +0000)]
2002-06-08  Daniel Jacobowitz  <drow@mvista.com>

        Based on patch from Matt Green:
        * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
        * config/tc-mips.c (s_mips_file): Renamed from s_file.
        (s_mips_loc): New function.
        (mips_nonecoff_pseudo_table): Call them.
        (append_insn): Call dwarf2_emit_insn.

22 years ago * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Make static.
Alan Modra [Sat, 8 Jun 2002 12:27:33 +0000 (12:27 +0000)]
* elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Make static.

22 years ago * Makefile.am: Fix quote style in last change.
Alan Modra [Sat, 8 Jun 2002 08:50:44 +0000 (08:50 +0000)]
* Makefile.am: Fix quote style in last change.
* Makefile.in: Regenerate.

22 years ago * Makefile.am: Run "make dep-am".
Alan Modra [Sat, 8 Jun 2002 08:45:03 +0000 (08:45 +0000)]
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.

22 years ago * Makefile.am: Run "make dep-am".
Alan Modra [Sat, 8 Jun 2002 08:44:18 +0000 (08:44 +0000)]
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
* doc/Makefile.in: Regnerate.

22 years ago * ldexp.c: Replace CONST with const.
Alan Modra [Sat, 8 Jun 2002 07:39:45 +0000 (07:39 +0000)]
* ldexp.c: Replace CONST with const.
* ldfile.c: Likewise.
* ldfile.h: Likewise.
* ldlex.l: Likewise.
* mri.c: Likewise.
* pe-dll.h: Likewise.

22 years ago * bucomm.c: Replace CONST with const.
Alan Modra [Sat, 8 Jun 2002 07:38:30 +0000 (07:38 +0000)]
* bucomm.c: Replace CONST with const.
* nm.c: Likewise.
* objdump.c: Likewise.

22 years ago * as.c: Replace CONST with const.
Alan Modra [Sat, 8 Jun 2002 07:37:16 +0000 (07:37 +0000)]
* as.c: Replace CONST with const.
* write.c: Likewise.
* config/obj-coff.c: Likewise.
* config/tc-a29k.c: Likewise.
* config/tc-arm.c: Likewise.
* config/tc-dlx.c: Likewise.
* config/tc-h8300.c: Likewise.
* config/tc-h8500.c: Likewise.
* config/tc-i370.c: Likewise.
* config/tc-i860.c: Likewise.
* config/tc-i960.c: Likewise.
* config/tc-m68hc11.c: Likewise.
* config/tc-m68k.c: Likewise.
* config/tc-m88k.c: Likewise.
* config/tc-mcore.c: Likewise.
* config/tc-mips.c: Likewise.
* config/tc-ns32k.c: Likewise.
* config/tc-pdp11.c: Likewise.
* config/tc-pj.c: Likewise.
* config/tc-s390.c: Likewise.
* config/tc-sh.c: Likewise.
* config/tc-sparc.c: Likewise.
* config/tc-tahoe.c: Likewise.
* config/tc-tic80.c: Likewise.
* config/tc-v850.c: Likewise.
* config/tc-vax.c: Likewise.
* config/tc-w65.c: Likewise.
* config/tc-z8k.c: Likewise.

22 years ago * a29k.h: Replace CONST with const.
Alan Modra [Sat, 8 Jun 2002 07:32:12 +0000 (07:32 +0000)]
* a29k.h: Replace CONST with const.
(CONST): Don't define.
* convex.h: Replace CONST with const.
(CONST): Don't define.
* dlx.h: Replace CONST with const.
* or32.h (CONST): Don't define.

22 years ago * a29k-dis.c: Replace CONST with const.
Alan Modra [Sat, 8 Jun 2002 07:29:27 +0000 (07:29 +0000)]
* a29k-dis.c: Replace CONST with const.
* h8300-dis.c: Likewise.
* m68k-dis.c: Likewise.
* or32-dis.c: Likewise.
* sparc-dis.c: Likewise.

22 years ago * armnetbsd.c: Replace CONST with const.
Alan Modra [Sat, 8 Jun 2002 07:27:52 +0000 (07:27 +0000)]
* armnetbsd.c: Replace CONST with const.
* corefile.c: Likewise.
* elf32-dlx.c: Likewise.
* elf64-mips.c: Likewise.
* mmo.c: Likewise.
* ns32knetbsd.c: Likewise.

22 years ago2002-06-08 Daniel Jacobowitz <drow@mvista.com>
Daniel Jacobowitz [Sat, 8 Jun 2002 05:37:29 +0000 (05:37 +0000)]
2002-06-08  Daniel Jacobowitz  <drow@mvista.com>

        Based on patch from Matt Green:
        * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
        * config/tc-mips.c (s_mips_file): Renamed from s_file.
        (s_mips_loc): New function.
        (mips_nonecoff_pseudo_table): Call them.
        (append_insn): Call dwarf2_emit_insn.

22 years ago2002-06-07 Chris Demetriou <cgd@broadcom.com>
Chris Demetriou [Sat, 8 Jun 2002 03:05:23 +0000 (03:05 +0000)]
2002-06-07  Chris Demetriou  <cgd@broadcom.com>
            Ed Satterthwaite  <ehs@broadcom.com>

* cp1.c (inner_mac, fp_mac, inner_rsqrt, fp_inv_sqrt)
(fp_rsqrt, fp_madd, fp_msub, fp_nmadd, fp_nmsub): New functions.
* sim-main.h (fp_rsqrt, fp_madd, fp_msub, fp_nmadd)
(fp_nmsub): New prototypes.
(RSquareRoot, MultiplyAdd, MultiplySub, NegMultiplyAdd)
(NegMultiplySub): New defines.
* mips.igen (RSQRT.fmt): Use RSquareRoot().
(MADD.D, MADD.S): Replace with...
(MADD.fmt): New instruction.
(MSUB.D, MSUB.S): Replace with...
(MSUB.fmt): New instruction.
(NMADD.D, NMADD.S): Replace with...
(NMADD.fmt): New instruction.
(NMSUB.D, MSUB.S): Replace with...
(NMSUB.fmt): New instruction.

22 years ago * elf64-sparc.c (sparc64_elf_add_symbol_hook): Check the hash
Alan Modra [Sat, 8 Jun 2002 03:01:47 +0000 (03:01 +0000)]
* elf64-sparc.c (sparc64_elf_add_symbol_hook): Check the hash
table is elf64-sparc.

22 years ago*** empty log message ***
gdbadmin [Sat, 8 Jun 2002 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

22 years agodaily update
Alan Modra [Sat, 8 Jun 2002 00:00:04 +0000 (00:00 +0000)]
daily update