platform/upstream/binutils.git
23 years ago* config/nm-linux.h: Fix comments.
Mark Kettenis [Wed, 11 Jul 2001 10:03:32 +0000 (10:03 +0000)]
* config/nm-linux.h: Fix comments.

23 years agoDon't merge if the storage class of the non-debug symbol is C_NULL.
Nick Clifton [Wed, 11 Jul 2001 09:26:27 +0000 (09:26 +0000)]
Don't merge if the storage class of the non-debug symbol is C_NULL.

23 years ago* thread-db.c (enable_thread_event_reporting): Correct warning
Mark Kettenis [Wed, 11 Jul 2001 09:14:51 +0000 (09:14 +0000)]
* thread-db.c (enable_thread_event_reporting): Correct warning
message about getting thread death breakpoint.
Reported by John S Kallal <jskallal@home.com>.

23 years agoAdd notes about branch checkins
Nick Clifton [Wed, 11 Jul 2001 09:06:49 +0000 (09:06 +0000)]
Add notes about branch checkins

23 years ago* i386-tdep.c (i386_extract_return_value): "Fix" comment.
Mark Kettenis [Wed, 11 Jul 2001 08:43:41 +0000 (08:43 +0000)]
* i386-tdep.c (i386_extract_return_value): "Fix" comment.
(i386_store_return_value): Frob FPU status and tag word to make
sure the return value is the only value on the FPU stack.

23 years ago* config/tm-linux.h: Do not include <signal.h>. Instead provide
Mark Kettenis [Wed, 11 Jul 2001 08:15:36 +0000 (08:15 +0000)]
* config/tm-linux.h: Do not include <signal.h>.  Instead provide
reasonable defaults for REALTIME_LO and REALTIME_HI if they're not
already defined.
* config/nm-linux.h: Include <signal.h>.
[__SIGRTMIN] (REALTIME_LO, REALTIME_HI): Define to __SIGRTMIN and
(__SIGRTMAX + 1) respectively.

23 years agoCheck for the output_bfd not having any coff_data structure allocated to it.
Nick Clifton [Wed, 11 Jul 2001 08:11:16 +0000 (08:11 +0000)]
Check for the output_bfd not having any coff_data structure allocated to it.

23 years agomerge from gcc
DJ Delorie [Wed, 11 Jul 2001 00:15:54 +0000 (00:15 +0000)]
merge from gcc

23 years ago*** empty log message ***
gdbadmin [Wed, 11 Jul 2001 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

23 years ago* mcore-rom.c: Include "serial.h".
Andrew Cagney [Tue, 10 Jul 2001 23:08:12 +0000 (23:08 +0000)]
* mcore-rom.c: Include "serial.h".
* Makefile.in (mcore-rom.o): Depends on "serial.h".

23 years agoZap botched merge.
Andrew Cagney [Tue, 10 Jul 2001 23:02:29 +0000 (23:02 +0000)]
Zap botched merge.

23 years ago* Makefile.in (gencode): Provide explicit path to gencode.c.
Andrew Cagney [Tue, 10 Jul 2001 22:46:59 +0000 (22:46 +0000)]
* Makefile.in (gencode): Provide explicit path to gencode.c.

23 years agom88k builds. Tweek remote-bug.c to include "serial.h".
Andrew Cagney [Tue, 10 Jul 2001 22:38:38 +0000 (22:38 +0000)]
m88k builds.  Tweek remote-bug.c to include "serial.h".

23 years ago2001-07-10 John Healy <jhealy@redhat.com>
John Healy [Tue, 10 Jul 2001 21:49:11 +0000 (21:49 +0000)]
2001-07-10  John Healy  <jhealy@redhat.com>

* config/obj-elf.c (obj_elf_section): md_elf_section_change_data_hook
added to grab section information after it's been extracted from the
.section directive.

23 years agoClean up the D10V port so that GDB and the target program no
Jim Blandy [Tue, 10 Jul 2001 21:24:48 +0000 (21:24 +0000)]
Clean up the D10V port so that GDB and the target program no
longer disagree on how big pointers are.
* findvar.c (value_from_register): Remove special case code for D10V.
* printcmd.c (print_frame_args): Same.
* valops.c (value_at, value_fetch_lazy): Same.
* values.c (unpack_long): Same.
* gdbarch.sh: Changes to effect the following:
* gdbarch.h (GDB_TARGET_IS_D10V, D10V_MAKE_DADDR,
gdbarch_d10v_make_daddr_ftype, gdbarch_d10v_make_daddr,
set_gdbarch_d10v_make_daddr, D10V_MAKE_IADDR,
gdbarch_d10v_make_iaddr_ftype, gdbarch_d10v_make_iaddr,
set_gdbarch_d10v_make_iaddr, D10V_DADDR_P,
gdbarch_d10v_daddr_p_ftype, gdbarch_d10v_daddr_p,
set_gdbarch_d10v_daddr_p, D10V_IADDR_P,
gdbarch_d10v_iaddr_p_ftype, gdbarch_d10v_iaddr_p,
set_gdbarch_d10v_iaddr_p, D10V_CONVERT_DADDR_TO_RAW,
gdbarch_d10v_convert_daddr_to_raw_ftype,
gdbarch_d10v_convert_daddr_to_raw,
set_gdbarch_d10v_convert_daddr_to_raw, D10V_CONVERT_IADDR_TO_RAW,
gdbarch_d10v_convert_iaddr_to_raw_ftype,
gdbarch_d10v_convert_iaddr_to_raw,
set_gdbarch_d10v_convert_iaddr_to_raw): Delete declarations.
* gdbarch.c: Delete the corresponding definitions.
(struct gdbarch): Delete members d10v_make_daddr,
d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
d10v_convert_daddr_to_raw, and d10v_convert_iaddr_to_raw.
(startup_gdbarch): Remove initializers for the above.
(verify_gdbarch, gdbarch_dump): Don't verify or dump them any
more.
* d10v-tdep.c (d10v_register_virtual_type): Rather that
claiming the stack pointer and PC are 32 bits long (which they
aren't), say that the stack pointer is an int16_t, and the
program counter is a function pointer.  This allows the rest
of GDB to make the appropriate conversions between the code
pointer format and real addresses.
(d10v_register_convertible, d10v_register_convert_to_virtual,
d10v_register_convert_to_raw): Delete function; no registers
are convertible now, so we use
generic_register_convertible_not instead.
(d10v_address_to_pointer, d10v_pointer_to_address): New gdbarch
methods.
(d10v_push_arguments, d10v_extract_return_value): Remove special
cases for code and data pointers.
(d10v_gdbarch_init): Set gdbarch_ptr_bit to 16, so that GDB and
the target agree on how large pointers are.  Say that addresses
are 32 bits long.  Register the address_to_pointer and
pointer_to_address conversion functions.  Since no registers are
convertible now, register generic_register_convertible_not as the
gdbarch_register_convertible method instead of
d10v_register_convertible.  Remove registrations for
d10v_register_convert_to_virtual,
d10v_register_convert_to_raw, gdbarch_d10v_make_daddr,
gdbarch_d10v_make_iaddr, gdbarch_d10v_daddr_p,
gdbarch_d10v_iaddr_p, gdbarch_d10v_convert_daddr_to_raw, and
gdbarch_d10v_convert_iaddr_to_raw.

23 years ago* printcmd.c (print_scalar_formatted): If we are printing an
Jim Blandy [Tue, 10 Jul 2001 21:17:49 +0000 (21:17 +0000)]
* printcmd.c (print_scalar_formatted): If we are printing an
address, remember that TARGET_ADDR_BIT is not always equal to
TARGET_PTR_BIT.

23 years ago* valops.c (value_cast): When casting a pointer to an integer,
Jim Blandy [Tue, 10 Jul 2001 21:15:28 +0000 (21:15 +0000)]
* valops.c (value_cast): When casting a pointer to an integer,
don't convert it to an address.

23 years ago* remote-utils.h (struct serial): Declare as opaque. Remove
Andrew Cagney [Tue, 10 Jul 2001 21:06:34 +0000 (21:06 +0000)]
* remote-utils.h (struct serial): Declare as opaque.  Remove
include of "serial.h".
* Makefile.in (remote_utils_h): Update.
* monitor.h (struct serial): Declare as opaque.  Remove include of
"serial.h".
(struct monitor_ops): Replace serial_t with `struct serial *'.
* monitor.c (monitor_desc): Ditto.

23 years agoMIPS/Linux support
Daniel Jacobowitz [Tue, 10 Jul 2001 20:41:54 +0000 (20:41 +0000)]
MIPS/Linux support

23 years agoFix grammatical errors
Nick Clifton [Tue, 10 Jul 2001 10:11:35 +0000 (10:11 +0000)]
Fix grammatical errors

23 years agoUse FOPEN_.. macros in calls to fopen().
Nick Clifton [Tue, 10 Jul 2001 09:45:50 +0000 (09:45 +0000)]
Use FOPEN_.. macros in calls to fopen().

23 years ago2001-07-09 David O'Brien <obrien@FreeBSD.org>
David O'Brien [Tue, 10 Jul 2001 00:38:16 +0000 (00:38 +0000)]
2001-07-09  David O'Brien  <obrien@FreeBSD.org>
* emultempl/elf32.em: Do not assuming that contents of the buffer
returned from basename function will remain unchanged accross other
function calls.

NOTE: DJ Delorie recomends doing a basename()->lbasename() conversion.

Approved by:  DJ Delorie
              <200107100030.UAA01223@envy.delorie.com>

23 years ago*** empty log message ***
gdbadmin [Tue, 10 Jul 2001 00:00:08 +0000 (00:00 +0000)]
*** empty log message ***

23 years ago* mi-out.c (mi_out_new): Initialize suppress_ouput field of newly
Mark Kettenis [Mon, 9 Jul 2001 22:19:50 +0000 (22:19 +0000)]
* mi-out.c (mi_out_new): Initialize suppress_ouput field of newly
created `struct ui_out_data'.

23 years ago2001-06-24 Michael Chastain <chastain@redhat.com>
Michael Chastain [Mon, 9 Jul 2001 21:42:52 +0000 (21:42 +0000)]
2001-06-24  Michael Chastain  <chastain@redhat.com>

* gdb.base/arithmet.exp: Remove some tests to make all test names
unique.

23 years agoFix memory leak and compilation problems using AIX 5 native compiler.
Kevin Buettner [Mon, 9 Jul 2001 16:53:03 +0000 (16:53 +0000)]
Fix memory leak and compilation problems using AIX 5 native compiler.

23 years ago* mi-main.c (mi_cmd_data_evaluate_expression): Replace value_ptr
Andrew Cagney [Mon, 9 Jul 2001 14:50:37 +0000 (14:50 +0000)]
* mi-main.c (mi_cmd_data_evaluate_expression): Replace value_ptr
with `struct value *'.

23 years agos/struct _serial_t/struct serial/
Andrew Cagney [Mon, 9 Jul 2001 14:38:49 +0000 (14:38 +0000)]
s/struct _serial_t/struct serial/

23 years ago2001-07-09 Andreas Jaeger <aj@suse.de>, Karsten Keil <kkeil@suse.de>
Andreas Jaeger [Mon, 9 Jul 2001 14:22:11 +0000 (14:22 +0000)]
2001-07-09  Andreas Jaeger  <aj@suse.de>, Karsten Keil <kkeil@suse.de>

* i386-dis.c (set_op): Handle 64 bit and 32 bit mode.
(OP_J): Use bfd_vma for mask to work properly with 64 bits.
(op_address,op_riprel): Use bfd_vma to handle 64 bits.

23 years agoAdd .incbin pseudo op
Nick Clifton [Mon, 9 Jul 2001 08:19:18 +0000 (08:19 +0000)]
Add .incbin pseudo op

23 years agoMake function declarators match function declarations.
Kevin Buettner [Mon, 9 Jul 2001 05:53:44 +0000 (05:53 +0000)]
Make function declarators match function declarations.

23 years ago*** empty log message ***
gdbadmin [Mon, 9 Jul 2001 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

23 years ago* gdbtypes.h (builtin_type_void_data_ptr): Rename
Andrew Cagney [Sun, 8 Jul 2001 20:42:15 +0000 (20:42 +0000)]
* gdbtypes.h (builtin_type_void_data_ptr): Rename
builtin_type_ptr.
* gdbtypes.c (builtin_type_void_data_ptr): Update.
(build_gdbtypes): Update.
(_initialize_gdbtypes): Update.
* values.c (value_as_pointer): Update.
* utils.c (host_pointer_to_address): Update.
(address_to_host_pointer): Update.

23 years ago* remote-udi.c (udi_wait): Make type, instead of name, of first
Andrew Cagney [Sun, 8 Jul 2001 20:21:36 +0000 (20:21 +0000)]
* remote-udi.c (udi_wait): Make type, instead of name, of first
parameter a ptid_t.

23 years ago* ser-mac.c: Make obsolete.
Andrew Cagney [Sun, 8 Jul 2001 20:11:12 +0000 (20:11 +0000)]
* ser-mac.c: Make obsolete.
* Makefile.in (ser-mac.o): Ditto.

23 years ago * go32-nat.c (go32_get_windows_version, print_mem, go32_sysinfo)
Eli Zaretskii [Sun, 8 Jul 2001 10:28:20 +0000 (10:28 +0000)]
* go32-nat.c (go32_get_windows_version, print_mem, go32_sysinfo)
(read_memory_region, get_descriptor, display_descriptor)
(go32_sldt, go32_sgdt, go32_sidt): New functions.
(top-level): Include ctype.h, utsname.h, dos.h, and go32.h.  Ifdef
away `disable' from dos.h, since breakpoint.h defines an enum
member of the same name, and GCC 2.7.2 barfs.
(_initialize_go32_nat): Provide new commands dos-sysinfo, dos-ldt,
dos-gdt, and dos-idt, all of them in the "info" class

23 years ago*** empty log message ***
gdbadmin [Sun, 8 Jul 2001 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***

23 years agoAllocate/free space associated with saved_entryset and saved_exitset.
Kevin Buettner [Sat, 7 Jul 2001 22:02:51 +0000 (22:02 +0000)]
Allocate/free space associated with saved_entryset and saved_exitset.

23 years agoAllocate/free space associated with saved_entryset and saved_exitset.
Kevin Buettner [Sat, 7 Jul 2001 21:55:28 +0000 (21:55 +0000)]
Allocate/free space associated with saved_entryset and saved_exitset.

23 years agoUpdates.
Andrew Cagney [Sat, 7 Jul 2001 17:39:35 +0000 (17:39 +0000)]
Updates.

23 years ago* symtab.c (main_name): New function.
Andrew Cagney [Sat, 7 Jul 2001 17:19:50 +0000 (17:19 +0000)]
* symtab.c (main_name): New function.
(set_main_name): New function.
* symtab.h: Declare.
* TODO: Update

From 2000-03-05 Anthony Green <green@redhat.com>:
* dbxread.c (process_one_symbol): Handle the N_MAIN stab by
setting main_name.
* blockframe.c (inside_main_func): Use main_name instead of
"main".
* symtab.c (find_main_psymtab): Ditto.
* source.c (select_source_symtab): Ditto.
* nlmread.c (nlm_symfile_read): Ditto.
* rs6000-tdep.c (skip_prologue): Ditto.

23 years ago* gdbint.texinfo (User Interface): Update ui-out documentation to
Andrew Cagney [Sat, 7 Jul 2001 16:20:57 +0000 (16:20 +0000)]
* gdbint.texinfo (User Interface): Update ui-out documentation to
refelect recent UI/MI updates.

23 years agoTODO: Convert most items into PRs.
Andrew Cagney [Sat, 7 Jul 2001 16:12:19 +0000 (16:12 +0000)]
TODO: Convert most items into PRs.

23 years agoOnly set debug_type to DEBUG_NONE if it is DEBUG_UNSPECIFIED.
Nick Clifton [Sat, 7 Jul 2001 15:43:04 +0000 (15:43 +0000)]
Only set debug_type to DEBUG_NONE if it is DEBUG_UNSPECIFIED.

23 years ago* lin-lwp.c (status_to_str): New function.
Mark Kettenis [Sat, 7 Jul 2001 10:58:37 +0000 (10:58 +0000)]
* lin-lwp.c (status_to_str): New function.
(lin_lwp_wait): Use it to print debug messages where appropriate.

23 years agoI'm using the obvious fix rule to commit this.
Michael Chastain [Sat, 7 Jul 2001 00:14:06 +0000 (00:14 +0000)]
I'm using the obvious fix rule to commit this.

Testing: I tested on native Red Hat Linux 7 using gcc 3.0.
The "info float" command exercises print_i387_value.

2001-07-06  Michael Chastain  <chastain@redhat.com>

* i387-tdep.c (print_i387_value): Fix pointer glitch.

===

Index: i387-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i387-tdep.c,v
retrieving revision 1.11
diff -c -1 -0 -p -r1.11 i387-tdep.c
*** gdb/i387-tdep.c 2001/07/04 21:14:05 1.11
--- gdb/i387-tdep.c 2001/07/06 12:47:00
*************** print_i387_value (char *raw)
*** 163,184 ****
    DOUBLEST value;
    int len = TARGET_LONG_DOUBLE_BIT / TARGET_CHAR_BIT;
    char *tmp = alloca (len);

    /* This code only works on targets where ... */
    gdb_assert (TARGET_LONG_DOUBLE_FORMAT == &floatformat_i387_ext);

    /* Take care of the padding.  FP reg is 80 bits.  The same value in
       memory is 96 bits.  */
    gdb_assert (FPU_REG_RAW_SIZE < len);
!   memcpy (&tmp, raw, FPU_REG_RAW_SIZE);
!   memset (&tmp + FPU_REG_RAW_SIZE, 0, len - FPU_REG_RAW_SIZE);

    /* Extract the value as a DOUBLEST.  */
    /* Use extract_floating() rather than floatformat_to_doublest().
       The latter is lossy in nature.  Once GDB gets a host/target
       independent and non-lossy FP it will become possible to bypass
       extract_floating() and call floatformat*() directly.  Note also
       the assumptions about TARGET_LONG_DOUBLE above.  */
    value = extract_floating (tmp, len);

    /* We try to print 19 digits.  The last digit may or may not contain
--- 163,184 ----
    DOUBLEST value;
    int len = TARGET_LONG_DOUBLE_BIT / TARGET_CHAR_BIT;
    char *tmp = alloca (len);

    /* This code only works on targets where ... */
    gdb_assert (TARGET_LONG_DOUBLE_FORMAT == &floatformat_i387_ext);

    /* Take care of the padding.  FP reg is 80 bits.  The same value in
       memory is 96 bits.  */
    gdb_assert (FPU_REG_RAW_SIZE < len);
!   memcpy (tmp, raw, FPU_REG_RAW_SIZE);
!   memset (tmp + FPU_REG_RAW_SIZE, 0, len - FPU_REG_RAW_SIZE);

    /* Extract the value as a DOUBLEST.  */
    /* Use extract_floating() rather than floatformat_to_doublest().
       The latter is lossy in nature.  Once GDB gets a host/target
       independent and non-lossy FP it will become possible to bypass
       extract_floating() and call floatformat*() directly.  Note also
       the assumptions about TARGET_LONG_DOUBLE above.  */
    value = extract_floating (tmp, len);

    /* We try to print 19 digits.  The last digit may or may not contain

23 years ago*** empty log message ***
gdbadmin [Sat, 7 Jul 2001 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

23 years ago2001-07-02 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Fri, 6 Jul 2001 22:51:21 +0000 (22:51 +0000)]
2001-07-02  Michael Snyder  <msnyder@redhat.com>

        * gdb.base/completion.exp: Don't assume that break.c is the only
source file that may contain functions named "marker".

23 years ago* lin-lwp.c (count_events_callback): Fix formatting. Turn check
Mark Kettenis [Fri, 6 Jul 2001 22:31:47 +0000 (22:31 +0000)]
* lin-lwp.c (count_events_callback): Fix formatting.  Turn check
commented with "paranoia" into gdb_assert.
(select_event_lwp_callback): Likewise.
(cancel_breakpoints_callback): Bail out early if LP is the event
LWP.  Add comment about backup up breakpoints.  Fix formatting and
debug message.
(select_event_lwp): Make solely repsonsible for switching event
LWP.  Fix formatting and remove bogus "ERROR" debug message.
Don't backup breakpoints from here.
(lin_lwp_wait): Don't touch LP->status, let select_event_lwp
handle that.  Only call select_event_lwp if we're not waiting for
a specific LWP, i.e. when PID == -1.  Backup breakpoints from here.

23 years ago2001-07-07 Ben Elliston <bje@redhat.com>
Ben Elliston [Fri, 6 Jul 2001 22:14:07 +0000 (22:14 +0000)]
2001-07-07  Ben Elliston  <bje@redhat.com>

* m88k.h: Clean up and reformat. Remove unused code.

23 years ago2001-07-06 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Fri, 6 Jul 2001 21:31:04 +0000 (21:31 +0000)]
2001-07-06  Michael Snyder  <msnyder@redhat.com>

* procfs.c (procfs_resume): Silence noisy warning.

23 years ago2001-07-06 John Healy <jhealy@redhat.com>
John Healy [Fri, 6 Jul 2001 19:09:23 +0000 (19:09 +0000)]
2001-07-06  John Healy  <jhealy@redhat.com>

        * cgen.c (gas_cgen_save_fixups): Modified to allow more than one
        set of fixups to be stored.
        (gas_cgen_restore_fixups): Modified to allow the fixup chain to be
        restored to be chosen from any that are saved.
        (gas_cgen_swap_fixups): Modified to allow the current set of
        fixups to be swapped with any other set that has been saved.
        (gas_cgen_initialize_saved_fixups_array): New routine.
        * cgen.h: Modifed prototypes for gas_cgen_save_fixups,
        gas_cgen_restore_fixups, and gas_cgen_swap_fixups.  Added definitions
        or MAX_SAVED_FIXUP_CHAINS.
        * config/tc-m32r.c (assemble_two_insns): Changed calls to fixup
        store, swap and restore fuctions to reflect the new interface.

23 years ago2001-06-12 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Fri, 6 Jul 2001 19:06:24 +0000 (19:06 +0000)]
2001-06-12  Michael Snyder  <msnyder@redhat.com>

* lin-lwp.c: Prevent thread starvation by using a monte carlo
method to choose which of several event threads to handle next.

(stop_wait_callback): Defer pushback of breakpoint events until
later; add SIGTRAP events to the queue of unhandled events.
Keep calling waitpid until SIGSTOP retrieved.  If more than one
non-SIGSTOP event is retrieved, push them back onto the process
queue using kill.
(count_events_callback, select_singlestep_lwp_callback,
select_event_lwp_callback, cancel_breakpoints_callback,
select_event_lwp): New functions.  Implement monte carlo method
for selecting which of several SIGTRAP threads to handle next.
Push back the breakpoint event for all threads other than the
selected one.
(lin_lwp_wait): Call select_event_lwp to decide which of several
sigtrapped lwps to handle next.
(resume_callback): Disable code that attempts to handle
step_resume breakpoints.  Let core gdb handle this.

23 years ago* gdbtypes.h (builtin_type_void_func_ptr): New builtin type.
Jim Blandy [Fri, 6 Jul 2001 14:44:19 +0000 (14:44 +0000)]
* gdbtypes.h (builtin_type_void_func_ptr): New builtin type.
* gdbtypes.c (builtin_type_void_func_ptr): Define the variable.
(build_gdbtypes): Initialize it.
(_initialize_gdbtypes): Swap it.

23 years agoCatch and ignore empty, ineffectual alignment frags when deciding if a
Nick Clifton [Fri, 6 Jul 2001 08:21:35 +0000 (08:21 +0000)]
Catch and ignore empty, ineffectual alignment frags when deciding if a
branch can be short.

23 years agoAnd remove the seconf accidental patch commission.
Nick Clifton [Fri, 6 Jul 2001 08:05:27 +0000 (08:05 +0000)]
And remove the seconf accidental patch commission.

23 years agoRemove patch accidentally checked in with readelf.c patch
Nick Clifton [Fri, 6 Jul 2001 08:01:17 +0000 (08:01 +0000)]
Remove patch accidentally checked in with readelf.c patch

23 years ago32-bit unwind data for ia64-hpux, from Steve Ellcey
Jim Wilson [Fri, 6 Jul 2001 07:32:42 +0000 (07:32 +0000)]
32-bit unwind data for ia64-hpux, from Steve Ellcey
* config/tc-ia64.c (special_section): Add SPECIAL_SECTION_INIT_ARRAY
and SPECIAL_SECTION_FINI_ARRAY.
(special_section_name): Add .init_array and .fini_array.
(md_pseudo_table): Add init_array and fini_array.
(md): Add pointer_size and pointer_size_shift fields.
(setup_unwind_header): New static function.
(output_unw_records): Modify to use setup_unwind_header.
(generate_unwind_image, dot_endp): Modify to use md.pointer_size and
md.pointer_size_shift.
(md_begin): Initialize md.pointer_size and md.pointer_size_shift.

23 years agoBranch prediction code cleanup
Daniel Jacobowitz [Fri, 6 Jul 2001 05:35:17 +0000 (05:35 +0000)]
Branch prediction code cleanup

23 years agoMention mi0 and mi1 as --interpreter options.
Andrew Cagney [Fri, 6 Jul 2001 04:07:29 +0000 (04:07 +0000)]
Mention mi0 and mi1 as --interpreter options.

23 years agoReplace:
Andrew Cagney [Fri, 6 Jul 2001 03:53:11 +0000 (03:53 +0000)]
Replace:
  if (interpreter_p && strncmp (interpreter_p, "mi", 2) == 0)
with:
  if (ui_out_is_mi_like_p (uiout))

23 years agoOops, missed committing entry for 2001-07-05 change.
Alan Modra [Fri, 6 Jul 2001 02:02:42 +0000 (02:02 +0000)]
Oops, missed committing entry for 2001-07-05 change.

23 years ago*** empty log message ***
gdbadmin [Fri, 6 Jul 2001 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

23 years ago * mips-tdep.c (mips_software_single_step): New function.
Daniel Jacobowitz [Thu, 5 Jul 2001 23:30:43 +0000 (23:30 +0000)]
    * mips-tdep.c (mips_software_single_step): New function.
        * config/mips/tm-mips.h: Add prototype for
        mips_software_single_step.

23 years ago * ppc-linux-nat.c (supply_gregset): Use elf_greg_t instead
Daniel Jacobowitz [Thu, 5 Jul 2001 23:22:04 +0000 (23:22 +0000)]
    * ppc-linux-nat.c (supply_gregset): Use elf_greg_t instead
        of greg_t.
        (fill_gregset): Likewise.

23 years agoFix ia64-linux fortran common linking problem.
Jim Wilson [Thu, 5 Jul 2001 22:40:16 +0000 (22:40 +0000)]
Fix ia64-linux fortran common linking problem.
* linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
the section of the bigger symbol.

23 years agos/basename/lbasename/
Andrew Cagney [Thu, 5 Jul 2001 21:32:39 +0000 (21:32 +0000)]
s/basename/lbasename/

23 years ago* d10v-tdep.c (d10v_frame_chain, d10v_frame_init_saved_regs,
Jim Blandy [Thu, 5 Jul 2001 21:27:08 +0000 (21:27 +0000)]
* d10v-tdep.c (d10v_frame_chain, d10v_frame_init_saved_regs,
show_regs, d10v_read_pc, d10v_write_pc, d10v_read_sp,
d10v_write_sp, d10v_write_fp, d10v_read_fp,
d10v_push_return_address): Call the functions d10v_make_daddr,
d10v_make_iaddr, d10v_convert_iaddr_to_raw, and
d10v_convert_daddr_to_raw, not the global macros D10V_MAKE_DADDR,
D10V_MAKE_IADDR, D10V_CONVERT_IADDR_TO_RAW, and
D10V_CONVERT_DADDR_TO_RAW.

23 years agoFix ia64-linux binutils readelf -s testsuite failure.
Jim Wilson [Thu, 5 Jul 2001 18:27:55 +0000 (18:27 +0000)]
Fix ia64-linux binutils readelf -s testsuite failure.
* syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.

23 years agomerge from gcc
DJ Delorie [Thu, 5 Jul 2001 17:29:17 +0000 (17:29 +0000)]
merge from gcc

23 years ago* dwarf2read (dwarf2_build_psymtabs_hard): Doc fix.
Jim Blandy [Thu, 5 Jul 2001 16:45:48 +0000 (16:45 +0000)]
* dwarf2read (dwarf2_build_psymtabs_hard): Doc fix.

23 years ago* config/i386/xm-go32.h (HOST_I386): Removed.
Mark Kettenis [Thu, 5 Jul 2001 14:40:51 +0000 (14:40 +0000)]
* config/i386/xm-go32.h (HOST_I386): Removed.
* config/i386/xm-linux.h (HOST_I386): Removed.

23 years ago2001-07-05 Ben Elliston <bje@redhat.com>
Ben Elliston [Thu, 5 Jul 2001 13:51:26 +0000 (13:51 +0000)]
2001-07-05  Ben Elliston  <bje@redhat.com>

* Make-common.in (srccgen): Remove.
(CGEN_CPU_DIR): Define.
(CGEN_READ_SCM): Redefine without $(srccgen).
(CGEN_ARCH_SCM): Ditto.
(CGEN_CPU_SCM): Ditto.
(CGEN_DECODE_SCM): Ditto.
(CGEN_DESC_SCM): Ditto.

* $arch/Makefile.in: Use $(CGEN_CPU_DIR) where applicable.

23 years ago2001-07-05 Ben Elliston <bje@redhat.com>
Ben Elliston [Thu, 5 Jul 2001 13:12:23 +0000 (13:12 +0000)]
2001-07-05  Ben Elliston  <bje@redhat.com>

* Makefile.am (CPUDIR): Define.
(stamp-m32r): Update dependencies.
(stamp-fr30): Ditto.
(stamp-openrisc): Ditto.
* Makefile.in: Regenerate.

23 years ago2001-07-05 Ben Elliston <bje@redhat.com>
Ben Elliston [Thu, 5 Jul 2001 11:28:57 +0000 (11:28 +0000)]
2001-07-05  Ben Elliston  <bje@redhat.com>

* README (Supported platforms): m88k no longer suffers bitrot.

23 years ago2001-07-05 Ben Elliston <bje@redhat.com>
Ben Elliston [Thu, 5 Jul 2001 11:00:28 +0000 (11:00 +0000)]
2001-07-05  Ben Elliston  <bje@redhat.com>

* lib/utils-lib.exp (target_assemble): Remove duplicate copy.
(default_target_assemble): Likewise.

23 years agoFor sections containing uninitialised data, only set their size to s_paddr
Nick Clifton [Thu, 5 Jul 2001 10:52:25 +0000 (10:52 +0000)]
For sections containing uninitialised data, only set their size to s_paddr
if this does not reset their size to zero.  MS's latest compilers will set
s_paddr to zero.

23 years agoDisplay the contents of a .debug.macinfo section
Nick Clifton [Thu, 5 Jul 2001 07:49:05 +0000 (07:49 +0000)]
Display the contents of a .debug.macinfo section

23 years ago2001-07-05 Ben Elliston <bje@redhat.com>
Ben Elliston [Thu, 5 Jul 2001 07:28:06 +0000 (07:28 +0000)]
2001-07-05  Ben Elliston  <bje@redhat.com>

* config/tc-m88k.c (md_pseudo_table): Remove redundant "global".

23 years ago2001-07-05 H.J. Lu <hjl@gnu.org>
H.J. Lu [Thu, 5 Jul 2001 07:27:16 +0000 (07:27 +0000)]
2001-07-05  H.J. Lu  <hjl@gnu.org>

* objcopy.c (filter_symbols): Don't turn undefined symbols
into local.

23 years ago * struc-symbol.h (struct local_symbol): Rename lsy_offset to
Alan Modra [Thu, 5 Jul 2001 05:49:13 +0000 (05:49 +0000)]
* struc-symbol.h (struct local_symbol): Rename lsy_offset to
lsy_value.  Correct typos in comments.
* symbols.c (local_symbol_make): Update for name change.
(local_symbol_convert): Likewise.
(colon): Likewise.
(S_GET_VALUE): Likewise.
(S_SET_VALUE): Likewise.
(print_symbol_value_1): Likewise.
(resolve_symbol_value): Likewise.  Don't divide local sym values
by OCTETS_PER_BYTE twice.

23 years agoFix ia64-linux gas ehopt testsuite failure.
Jim Wilson [Thu, 5 Jul 2001 03:34:42 +0000 (03:34 +0000)]
Fix ia64-linux gas ehopt testsuite failure.
* config/tc-ia64.c (md_pseudo_table): Add 2byte, 4byte, and 8byte.

23 years agoFix 2 ia64-linux gas testsuite failures.
Jim Wilson [Thu, 5 Jul 2001 02:30:21 +0000 (02:30 +0000)]
Fix 2 ia64-linux gas testsuite failures.
* config/tc-ia64.c (is_conditional_branch): Rewrite to exclude mod
sched branches.

23 years ago2001-07-05 Ben Elliston <bje@redhat.com>
Ben Elliston [Thu, 5 Jul 2001 00:36:50 +0000 (00:36 +0000)]
2001-07-05  Ben Elliston  <bje@redhat.com>

* read.c (s_fill): Correct spelling error in comments.

23 years ago2001-07-05 Ben Elliston <bje@redhat.com>
Ben Elliston [Thu, 5 Jul 2001 00:25:28 +0000 (00:25 +0000)]
2001-07-05  Ben Elliston  <bje@redhat.com>

* doc/c-m88k.texi: New file.
* doc/Makefile.am (CPU_DOCS): Add c-m88k.texi.
* doc/Makefile.in: Regenerate.
* doc/all.texi: Set M880X0.
* doc/as.texinfo: Hook in m88k-dependent documentation.

23 years ago*** empty log message ***
gdbadmin [Thu, 5 Jul 2001 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

23 years ago* i387-tdep.c (print_i387_value): Add extra space after final full
Mark Kettenis [Wed, 4 Jul 2001 21:14:05 +0000 (21:14 +0000)]
* i387-tdep.c (print_i387_value): Add extra space after final full
stop in comment.

23 years ago* gdbint.texinfo (Target Architecture Definition): GDBARCH is a C
Andrew Cagney [Wed, 4 Jul 2001 20:52:14 +0000 (20:52 +0000)]
* gdbint.texinfo (Target Architecture Definition): GDBARCH is a C
structure and not macros.
(Host Definition): Document that much of this chapter is obsolete.
(Target Architecture Definition): Update list of files that make
up a target architecture.
(Coding): Update.

23 years ago* config/arm/tm-arm.h: Include "floatformat.h".
Andrew Cagney [Wed, 4 Jul 2001 19:57:53 +0000 (19:57 +0000)]
* config/arm/tm-arm.h: Include "floatformat.h".

23 years ago* i387-tdep.c: Include "gdb_assert.h".
Andrew Cagney [Wed, 4 Jul 2001 19:19:58 +0000 (19:19 +0000)]
* i387-tdep.c: Include "gdb_assert.h".
(print_i387_value): Use extract_floating to extract the FP value
from a zero padded local buffer.

23 years ago* TODO: Delete all thread items. The thread code was overhauled.
Andrew Cagney [Wed, 4 Jul 2001 18:51:51 +0000 (18:51 +0000)]
* TODO: Delete all thread items.  The thread code was overhauled.

23 years ago2001-07-04 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Wed, 4 Jul 2001 18:06:02 +0000 (18:06 +0000)]
2001-07-04  Elena Zannoni  <ezannoni@redhat.com>

* memattr.c (create_mem_region): Move n to next memory region,
to avoid infinite loop.

23 years ago2001-07-04 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Wed, 4 Jul 2001 17:59:02 +0000 (17:59 +0000)]
2001-07-04  Elena Zannoni  <ezannoni@redhat.com>

* memattr.h: Add copyright statement.
* memattr.c: Ditto.

23 years ago* dwarf2read.c (struct partial_die_info): New member: has_pc_info.
Jim Blandy [Wed, 4 Jul 2001 16:08:20 +0000 (16:08 +0000)]
* dwarf2read.c (struct partial_die_info): New member: has_pc_info.
(read_partial_die): Delete fourth argument; we return this info in
the struct partial_die_info object itself now.
(dwarf2_build_psymtabs_hard, scan_partial_symbols): Use the
has_pc_info field of the partial die struct, rather than passing a
variable by reference to read_partial_die.

23 years agoDoc fix.
Jim Blandy [Wed, 4 Jul 2001 16:00:35 +0000 (16:00 +0000)]
Doc fix.

23 years ago* dwarf2read.c (dwarf2_build_psymtabs_hard): Remove extraneous
Jim Blandy [Wed, 4 Jul 2001 16:00:08 +0000 (16:00 +0000)]
* dwarf2read.c (dwarf2_build_psymtabs_hard): Remove extraneous
code in loop condition.  This seemed to be trying to round
info_ptr up to the next four-byte boundary, but that's not what it
actually did.  If we discover the problem the old code was really
trying to address, we can fix it properly.

23 years ago2001-07-04 Eric Christopher <echristo@redhat.com>
Eric Christopher [Wed, 4 Jul 2001 12:32:07 +0000 (12:32 +0000)]
2001-07-04  Eric Christopher  <echristo@redhat.com>

* doc/c-mips.texi (MIPS Opts): Document 12000 as valid cpu.

* config/tc-mips.c (mips_cpu_info_table): Add rm5200, rm5231, rm5261,
and rm5721 as valid cpu strings.
(md_show_usage): Add rm5200, rm5231, rm5261, rm5721.

23 years ago[gas]
Richard Sandiford [Wed, 4 Jul 2001 09:49:29 +0000 (09:49 +0000)]
[gas]
* config/tc-mips.c (md_apply_fix): Prevent addend from becoming zero
if it's expected to be non-zero.
[gas/testsuite]
* gas/mips/elf-rel3.s: Add zero word to end of file.

23 years ago2001-07-04 H.J. Lu <hjl@gnu.org>
H.J. Lu [Wed, 4 Jul 2001 07:15:20 +0000 (07:15 +0000)]
2001-07-04  H.J. Lu  <hjl@gnu.org>

* bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
Handle bfd_mach_mips4400, bfd_mach_mips4600 and
bfd_mach_mips5000.

23 years ago*** empty log message ***
gdbadmin [Wed, 4 Jul 2001 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***