projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add constructor to stap_static_probe_ops
[deliverable/binutils-gdb.git]
/
gdb
/
stap-probe.c
diff --git
a/gdb/stap-probe.c
b/gdb/stap-probe.c
index ea206cbb80f3016db7e30e65db751892b7cd7415..39da2900e7af30d0c24702019c8b835038b0b646 100644
(file)
--- a/
gdb/stap-probe.c
+++ b/
gdb/stap-probe.c
@@
-1,6
+1,6
@@
/* SystemTap probe support for GDB.
/* SystemTap probe support for GDB.
- Copyright (C) 2012-20
19
Free Software Foundation, Inc.
+ Copyright (C) 2012-20
20
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-101,6
+101,12
@@
struct stap_probe_arg
class stap_static_probe_ops : public static_probe_ops
{
public:
class stap_static_probe_ops : public static_probe_ops
{
public:
+ /* We need a user-provided constructor to placate some compilers.
+ See PR build/24937. */
+ stap_static_probe_ops ()
+ {
+ }
+
/* See probe.h. */
bool is_linespec (const char **linespecp) const override;
/* See probe.h. */
bool is_linespec (const char **linespecp) const override;
@@
-1435,8
+1441,8
@@
stap_modify_semaphore (CORE_ADDR address, int set, struct gdbarch *gdbarch)
return;
}
return;
}
- value = extract_unsigned_integer (bytes, TYPE_LENGTH (type),
-
gdbarch_byte_order (gdbarch)
);
+ enum bfd_endian byte_order = type_byte_order (type);
+
value = extract_unsigned_integer (bytes, TYPE_LENGTH (type), byte_order
);
/* Note that we explicitly don't worry about overflow or
underflow. */
if (set)
/* Note that we explicitly don't worry about overflow or
underflow. */
if (set)
@@
-1444,8
+1450,7
@@
stap_modify_semaphore (CORE_ADDR address, int set, struct gdbarch *gdbarch)
else
--value;
else
--value;
- store_unsigned_integer (bytes, TYPE_LENGTH (type),
- gdbarch_byte_order (gdbarch), value);
+ store_unsigned_integer (bytes, TYPE_LENGTH (type), byte_order, value);
if (target_write_memory (address, bytes, TYPE_LENGTH (type)) != 0)
warning (_("Could not write the value of a SystemTap semaphore."));
if (target_write_memory (address, bytes, TYPE_LENGTH (type)) != 0)
warning (_("Could not write the value of a SystemTap semaphore."));
This page took
0.029148 seconds
and
4
git commands to generate.