a2e2270fc5
News from: http://sourceware.org/gdb/news: August 30th, 2013: GDB 7.6.1 Released! The latest version of GDB, version 7.6.1, is available for download. This is a minor corrective release over GDB 7.6, fixing the following issues: PR tdep/15420 (Cannot debug threaded programs on newer versions of x86-solaris - Solaris 10, Update 10 or later) PR remote/15455 (QTro remote packet broken) PR build/15476 (Build failure due to incomplete enum type in utils.h) PR server/15594 (tls support in 64x32 x86 gdbserver doesn't extend address to 64 bit) PR server/15075 (dprintf inteferes with "next") PR server/15434 (dprintf uses a synchronous 'continue' even in non-stop mode) PR tui/14880 (In split register layouts, up results in assertion failure in value.c) PR c++/15519 (GDB 7.6 is 94x slower than GDB 7.5.1 using a certain core file) PR gdb/15837 (GDB prints entry values for local variables) PR gdb/15415 (gdb resolves symbolic links when passing argv[0]) PR cli/15603 (CTRL-C can no longer interrupt inferior) PR gdb/15604 (gdbserver socket leak 7.5 regression) April 26th, 2013: GDB 7.6 Released! The latest version of GDB, version 7.6, is available for download. Changes in this release include: New native configurations (ARM AArch64 GNU/Linux, FreeBSD/powerpc, 86_64/Cygwin and Tilera TILE-Gx GNU/Linux) New target configurations (ARM AArch64, ARM AArch64 GNU/Linux, Lynx 178 PowerPC, x86_64/Cygwin, and Tilera TILE-Gx GNU/Linux) Support for the "mini debuginfo" section, .gnu_debugdata The C++ ABI now defaults to the GNU v3 ABI More Python scripting improvements Some GDB/MI improvements New configure options, new commands, and options New remote packets A new "target record-btrace" has been added while the "target record" command has been renamed to "target record-full" See the NEWS file for a more complete and detailed list of what this release includes. March 12th, 2013: GDB 7.6 branch created The GDB 7.6 branch (gdb_7_6-branch) has been created. To check out a copy of the branch use: cvs -d :pserver:anoncvs@sourceware.org:/cvs/src co -r gdb_7_6-branch gdb November 29th, 2012: GDB 7.5.1 Released! The latest version of GDB, version 7.5.1, is available for download. This is a minor corrective release over GDB 7.5, fixing the following issues: An "Attempt to dereference a generic pointer" errors (-var-create). Backtrace problems on x32 (PR backtrace/14646). next/step/finish problems on x32 (PR gdb/14647). A "malformed linespec error: unexpected keyword, [...]" error (PR breakpoints/14643). GDB crash while stepping through powerpc (32bits) code. A failed assertion in linux_ptrace_test_ret_to_nx. A "!frame_id_inlined_p (frame_id)" failed assertion. A "No more reverse-execution history." error during reverse "next" execution (PR 14548). Incomplete command descriptions in "apropos" output. PR gdb/14494 (a GDB crash difficult to characterize). Various build warnings. August 17th, 2012: GDB 7.5 Released! The latest version of GDB, version 7.5, is available for download. Changes in this release include: Go language support. New targets (x32 ABI, microMIPS, Renesas RL78, HP OpenVMS ia64). More Python scripting improvements. SDT (Static Defined Tracing) probes support with SystemTap probes. GDBserver improvements (stdio connections, target-side evaluation of breakpoint conditions, remote protocol improvements). Other miscellaneous improvements (ability to stop when a shared library is loaded/unloaded, dynamic printf, etc). Reverse debugging on ARM. The binary "gdbtui" has been abandoned and can no longer be built. Use "gdb -tui" instead. See the NEWS file for a more complete and detailed list of what this release includes. July 17th, 2012: GDB 7.5 branch created The GDB 7.5 branch (gdb_7_5-branch) has been created. To check out a copy of the branch use: cvs -d :pserver:anoncvs@sourceware.org:/cvs/src co -r gdb_7_5-branch gdb April 26th, 2012: GDB 7.4.1 Released! The latest version of GDB, version 7.4.1, is available for download. This is a minor corrective release over GDB 7.4, fixing the following issues: [GDB/MI] Error when resuming program execution in all-stop mode ("Cannot execute this command without a live selected thread"). [Pascal] Polluted display of class methods parameters. [target remote] Errror when connecting to remote target where disconnected tracing is in effect. [AVX] Float and ymm* register values not available. [GDB] Crash when using the "finish" command. [build] makeinfo should not be required to build GDB. January 24th, 2012: GDB 7.4 Released! The latest version of GDB, version 7.4, is available for download. Changes in this release include: Many Python scripting improvements Better support for ambiguous linespecs Masked watchpoints Tracepoint support improvements Support for Texas Instruments TMS320C6x (tic6x-*-*) A Renesas RL78 simulator (rl78-*-elf) Some minor Remote protocol extensions and GDB/MI changes See the NEWS file for a more complete and detailed list of what this release includes. Note that the gdbtui binary is deprecated, starting with GDB 7.5. Use "gdb -tui" instead. January 9, 2012: Extensibility support using Guile GDB ought to support extensibility using Guile, the GNU extensibility package (an implementation of Scheme). We are looking for people to write the code to interface the two. Please write to gdb-patches AT sourceware DOT org if you are interested. December 13, 2011: GDB 7.4 branch created The GDB 7.4 branch (gdb_7_4-branch) has been created. To check out a copy of the branch use: cvs -d :pserver:anoncvs@sourceware.org:/cvs/src co -r gdb_7_4-branch gdb September 30, 2011: Release Mistakes in GDB Versions 6.0 - 7.3 A mistake has been detected in the release tar files for all GDB releases from version 6.0 to version 7.3 (included). The mistake has been corrected, and the FSF issued the following announcements: Making up for a release mistake in GDB versions 6.0 - 6.6 Making up for a release mistake in GDB versions 6.7 - 7.3
99 lines
4.7 KiB
C
99 lines
4.7 KiB
C
/* decSingle module header for the decNumber C Library.
|
|
Copyright (C) 2005-2013 Free Software Foundation, Inc.
|
|
Contributed by IBM Corporation. Author Mike Cowlishaw.
|
|
|
|
This file is part of GCC.
|
|
|
|
GCC is free software; you can redistribute it and/or modify it under
|
|
the terms of the GNU General Public License as published by the Free
|
|
Software Foundation; either version 3, or (at your option) any later
|
|
version.
|
|
|
|
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
for more details.
|
|
|
|
Under Section 7 of GPL version 3, you are granted additional
|
|
permissions described in the GCC Runtime Library Exception, version
|
|
3.1, as published by the Free Software Foundation.
|
|
|
|
You should have received a copy of the GNU General Public License and
|
|
a copy of the GCC Runtime Library Exception along with this program;
|
|
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
|
<http://www.gnu.org/licenses/>. */
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* decSingle.h -- Decimal 32-bit format module header */
|
|
/* ------------------------------------------------------------------ */
|
|
|
|
#if !defined(DECSINGLE)
|
|
#define DECSINGLE
|
|
|
|
#define DECSINGLENAME "decSingle" /* Short name */
|
|
#define DECSINGLETITLE "Decimal 32-bit datum" /* Verbose name */
|
|
#define DECSINGLEAUTHOR "Mike Cowlishaw" /* Who to blame */
|
|
|
|
/* parameters for decSingles */
|
|
#define DECSINGLE_Bytes 4 /* length */
|
|
#define DECSINGLE_Pmax 7 /* maximum precision (digits) */
|
|
#define DECSINGLE_Emin -95 /* minimum adjusted exponent */
|
|
#define DECSINGLE_Emax 96 /* maximum adjusted exponent */
|
|
#define DECSINGLE_EmaxD 3 /* maximum exponent digits */
|
|
#define DECSINGLE_Bias 101 /* bias for the exponent */
|
|
#define DECSINGLE_String 16 /* maximum string length, +1 */
|
|
#define DECSINGLE_EconL 6 /* exponent continuation length */
|
|
#define DECSINGLE_Declets 2 /* count of declets */
|
|
/* highest biased exponent (Elimit-1) */
|
|
#define DECSINGLE_Ehigh (DECSINGLE_Emax + DECSINGLE_Bias - (DECSINGLE_Pmax-1))
|
|
|
|
/* Required includes */
|
|
#include "decContext.h"
|
|
#include "decQuad.h"
|
|
#include "decDouble.h"
|
|
|
|
/* The decSingle decimal 32-bit type, accessible by all sizes */
|
|
typedef union {
|
|
uint8_t bytes[DECSINGLE_Bytes]; /* fields: 1, 5, 6, 20 bits */
|
|
uint16_t shorts[DECSINGLE_Bytes/2];
|
|
uint32_t words[DECSINGLE_Bytes/4];
|
|
} decSingle;
|
|
|
|
/* ---------------------------------------------------------------- */
|
|
/* Routines -- implemented as decFloat routines in common files */
|
|
/* ---------------------------------------------------------------- */
|
|
|
|
#include "decSingleSymbols.h"
|
|
|
|
/* Utilities (binary argument(s) or result, extractors, etc.) */
|
|
extern decSingle * decSingleFromBCD(decSingle *, int32_t, const uint8_t *, int32_t);
|
|
extern decSingle * decSingleFromPacked(decSingle *, int32_t, const uint8_t *);
|
|
extern decSingle * decSingleFromPackedChecked(decSingle *, int32_t, const uint8_t *);
|
|
extern decSingle * decSingleFromString(decSingle *, const char *, decContext *);
|
|
extern decSingle * decSingleFromWider(decSingle *, const decDouble *, decContext *);
|
|
extern int32_t decSingleGetCoefficient(const decSingle *, uint8_t *);
|
|
extern int32_t decSingleGetExponent(const decSingle *);
|
|
extern decSingle * decSingleSetCoefficient(decSingle *, const uint8_t *, int32_t);
|
|
extern decSingle * decSingleSetExponent(decSingle *, decContext *, int32_t);
|
|
extern void decSingleShow(const decSingle *, const char *);
|
|
extern int32_t decSingleToBCD(const decSingle *, int32_t *, uint8_t *);
|
|
extern char * decSingleToEngString(const decSingle *, char *);
|
|
extern int32_t decSingleToPacked(const decSingle *, int32_t *, uint8_t *);
|
|
extern char * decSingleToString(const decSingle *, char *);
|
|
extern decDouble * decSingleToWider(const decSingle *, decDouble *);
|
|
extern decSingle * decSingleZero(decSingle *);
|
|
|
|
/* (No Arithmetic routines for decSingle) */
|
|
|
|
/* Non-computational */
|
|
extern uint32_t decSingleRadix(const decSingle *);
|
|
extern const char * decSingleVersion(void);
|
|
|
|
/* decNumber conversions; these are implemented as macros so as not */
|
|
/* to force a dependency on decimal32 and decNumber in decSingle. */
|
|
/* decSingleFromNumber returns a decimal32 * to avoid warnings. */
|
|
#define decSingleToNumber(dq, dn) decimal32ToNumber((decimal32 *)(dq), dn)
|
|
#define decSingleFromNumber(dq, dn, set) decimal32FromNumber((decimal32 *)(dq), dn, set)
|
|
|
|
#endif
|