No description
Find a file
Michael Chastain 7f1659e652 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
2001-07-07 00:14:06 +00:00
bfd Fix ia64-linux fortran common linking problem. 2001-07-05 22:40:16 +00:00
binutils And remove the seconf accidental patch commission. 2001-07-06 08:05:27 +00:00
config Add s390 support 2001-02-10 00:58:38 +00:00
etc oops - omitted from previous delta 2001-03-26 21:42:48 +00:00
gas 2001-07-06 John Healy <jhealy@redhat.com> 2001-07-06 19:09:23 +00:00
gdb I'm using the obvious fix rule to commit this. 2001-07-07 00:14:06 +00:00
gprof Remove auot generated man pages 2001-06-19 11:57:29 +00:00
include 2001-07-07 Ben Elliston <bje@redhat.com> 2001-07-06 22:14:07 +00:00
intl
ld 2001-07-03 H.J. Lu <hjl@gnu.org> 2001-07-03 23:22:20 +00:00
libiberty merge from gcc 2001-07-05 17:29:17 +00:00
mmalloc * mmalloc/Makefile.in (install-info): Make sure $(infodir) exists. 2000-05-17 11:45:56 +00:00
opcodes 2001-07-05 Ben Elliston <bje@redhat.com> 2001-07-05 13:12:23 +00:00
readline 2001-06-15 Elena Zannoni <ezannoni@redhat.com> 2001-06-15 23:26:08 +00:00
sim 2001-07-05 Ben Elliston <bje@redhat.com> 2001-07-05 13:51:26 +00:00
texinfo Update texinfo.tex to version 2000-05-28.15. 2000-07-06 05:39:36 +00:00
.cvsignore Applied Stephane Carrez <Stephane.Carrez@worldnet.fr> patches to add support 2000-06-19 01:22:44 +00:00
ChangeLog * Makefile.in: Revert 2001-06-17. 2001-06-19 09:21:33 +00:00
config-ml.in * config-ml.in (CC, CXX): Avoid trailing whitespace. 2000-08-22 05:01:20 +00:00
config.guess 2001-03-22 Philip Blundell <philb@gnu.org> 2001-03-22 11:09:20 +00:00
config.if 2001-05-14 H.J. Lu <hjl@gnu.org> 2001-05-14 16:40:49 +00:00
config.sub 2001-03-22 Philip Blundell <philb@gnu.org> 2001-03-22 11:09:20 +00:00
configure * configure: Output host type to stdout, not stderr. 2001-02-07 01:06:43 +00:00
configure.in Support for xcoff64, enable ld for aix 2001-05-24 21:06:16 +00:00
COPYING
COPYING.LIB
COPYING.NEWLIB 2001-02-22 Jeff Johnston <jjohnstn@redhat.com> 2001-02-22 22:26:34 +00:00
djunpack.bat * djunpack.bat: Change the Sed script to replace @V@ in fnchange.lst 2000-05-08 15:13:30 +00:00
gettext.m4 * ltconfig, ltmain.sh: Updated from libtool multi-language branch. 2000-08-31 09:25:11 +00:00
install-sh
libtool.m4 * ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh, ltcf-cxx.sh, 2001-05-20 19:02:56 +00:00
ltcf-c.sh * ltcf-c.sh (archive_cmds, archive_expsym_cmds) [solaris, 2001-06-04 19:33:12 +00:00
ltcf-cxx.sh * ltcf-cxx.sh (osf3/osf4/osf5): Support creation of C++ shared 2001-05-28 21:05:35 +00:00
ltcf-gcj.sh * ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh, ltcf-cxx.sh, 2001-05-20 19:02:56 +00:00
ltconfig * ltconfig, ltmain.sh: Upgrade to libtool 1.4a 1.641.2.256. 2001-05-28 20:56:20 +00:00
ltmain.sh * ltconfig, ltmain.sh: Upgrade to libtool 1.4a 1.641.2.256. 2001-05-28 20:56:20 +00:00
MAINTAINERS General cleanup. 2001-01-16 05:30:31 +00:00
Makefile.in * Makefile.in: Revert 2001-06-17. 2001-06-19 09:21:33 +00:00
makefile.vms
missing
mkdep
mkinstalldirs
move-if-change
mpw-build.in
mpw-config.in
mpw-configure
mpw-install
mpw-README
README
README-maintainer-mode Add note about inability to use "make distclean" in maintainer mode. 2001-03-23 18:06:17 +00:00
setup.com
symlink-tree * symlink-tree: Check number of arguments. 2000-07-07 13:21:39 +00:00
ylwrap

		   README for GNU development tools

This directory contains various GNU compilers, assemblers, linkers, 
debuggers, etc., plus their support routines, definitions, and documentation.

If you are receiving this as part of a GDB release, see the file gdb/README.
If with a binutils release, see binutils/README;  if with a libg++ release,
see libg++/README, etc.  That'll give you info about this
package -- supported targets, how to use it, how to report bugs, etc.

It is now possible to automatically configure and build a variety of
tools with one command.  To build all of the tools contained herein,
run the ``configure'' script here, e.g.:

	./configure 
	make

To install them (by default in /usr/local/bin, /usr/local/lib, etc),
then do:
	make install

(If the configure script can't determine your type of computer, give it
the name as an argument, for instance ``./configure sun4''.  You can
use the script ``config.sub'' to test whether a name is recognized; if
it is, config.sub translates it to a triplet specifying CPU, vendor,
and OS.)

If you have more than one compiler on your system, it is often best to
explicitly set CC in the environment before running configure, and to
also set CC when running make.  For example (assuming sh/bash/ksh):

	CC=gcc ./configure
	make

A similar example using csh:

	setenv CC gcc
	./configure
	make

Much of the code and documentation enclosed is copyright by
the Free Software Foundation, Inc.  See the file COPYING or
COPYING.LIB in the various directories, for a description of the
GNU General Public License terms under which you can copy the files.

REPORTING BUGS: Again, see gdb/README, binutils/README, etc., for info
on where and how to report problems.