GDB (xrefs)

/tmp/gdb-8.1/gdb/target-float.h
Go to the documentation of this file.
1 /* Floating point definitions for GDB.
2
3 Copyright (C) 1986-2018 Free Software Foundation, Inc.
4
5 This file is part of GDB.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19
20 #ifndef TYPED_FLOAT_H
21 #define TYPED_FLOAT_H
22
23 #include "expression.h"
24
25 extern bool target_float_is_valid (const gdb_byte *addr,
26 const struct type *type);
27 extern bool target_float_is_zero (const gdb_byte *addr,
28 const struct type *type);
29
30 extern std::string target_float_to_string (const gdb_byte *addr,
31 const struct type *type,
32 const char *format = nullptr);
33 extern bool target_float_from_string (gdb_byte *addr,
34 const struct type *type,
35 const std::string &string);
36
37 extern LONGEST target_float_to_longest (const gdb_byte *addr,
38 const struct type *type);
39 extern void target_float_from_longest (gdb_byte *addr,
40 const struct type *type,
41 LONGEST val);
42 extern void target_float_from_ulongest (gdb_byte *addr,
43 const struct type *type,
44 ULONGEST val);
45 extern double target_float_to_host_double (const gdb_byte *addr,
46 const struct type *type);
47 extern void target_float_from_host_double (gdb_byte *addr,
48 const struct type *type,
49 double val);
50 extern void target_float_convert (const gdb_byte *from,
51 const struct type *from_type,
52 gdb_byte *to, const struct type *to_type);
53
54 extern void target_float_binop (enum exp_opcode opcode,
55 const gdb_byte *x, const struct type *type_x,
56 const gdb_byte *y, const struct type *type_y,
57 gdb_byte *res, const struct type *type_res);
58 extern int target_float_compare (const gdb_byte *x, const struct type *type_x,
59 const gdb_byte *y, const struct type *type_y);
60
61 #endif
string
const char * string
Definition: signals.c:50
target_float_compare
int target_float_compare(const gdb_byte *x, const struct type *type_x, const gdb_byte *y, const struct type *type_y)
Definition: target-float.c:2484
target_float_from_longest
void target_float_from_longest(gdb_byte *addr, const struct type *type, LONGEST val)
Definition: target-float.c:2388
target_float_binop
void target_float_binop(enum exp_opcode opcode, const gdb_byte *x, const struct type *type_x, const gdb_byte *y, const struct type *type_y, gdb_byte *res, const struct type *type_res)
Definition: target-float.c:2464
target_float_is_valid
bool target_float_is_valid(const gdb_byte *addr, const struct type *type)
Definition: target-float.c:2305
target_float_from_string
bool target_float_from_string(gdb_byte *addr, const struct type *type, const std::string &string)
Definition: target-float.c:2369
target_float_is_zero
bool target_float_is_zero(const gdb_byte *addr, const struct type *type)
Definition: target-float.c:2319
target_float_to_longest
LONGEST target_float_to_longest(const gdb_byte *addr, const struct type *type)
Definition: target-float.c:2379
expression.h
target_float_to_string
std::string target_float_to_string(const gdb_byte *addr, const struct type *type, const char *format=nullptr)
Definition: target-float.c:2334
type
Definition: gdbtypes.h:749
target_float_to_host_double
double target_float_to_host_double(const gdb_byte *addr, const struct type *type)
Definition: target-float.c:2408
gdb_byte
bfd_byte gdb_byte
Definition: common-types.h:38
exp_opcode
exp_opcode
Definition: expression.h:42
ULONGEST
unsigned long long ULONGEST
Definition: common-types.h:53
target_float_from_ulongest
void target_float_from_ulongest(gdb_byte *addr, const struct type *type, ULONGEST val)
Definition: target-float.c:2398
target_float_from_host_double
void target_float_from_host_double(gdb_byte *addr, const struct type *type, double val)
Definition: target-float.c:2418
LONGEST
long long LONGEST
Definition: common-types.h:52
target_float_convert
void target_float_convert(const gdb_byte *from, const struct type *from_type, gdb_byte *to, const struct type *to_type)
Definition: target-float.c:2429