aboutsummaryrefslogtreecommitdiff
path: root/gdb/btrace.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2025-04-03 08:33:58 -0600
committerTom Tromey <tromey@adacore.com>2025-04-03 10:56:32 -0600
commit973c575967442da470ad56efbfb897753f0de68e (patch)
treed6c08a13b58fab17b6dec93da4beabf4af102b2d /gdb/btrace.c
parent2d458da9a8e1927275589c308ae19eae577d2b3c (diff)
downloadbinutils-973c575967442da470ad56efbfb897753f0de68e.zip
binutils-973c575967442da470ad56efbfb897753f0de68e.tar.gz
binutils-973c575967442da470ad56efbfb897753f0de68e.tar.bz2
Many minor typo fixes
I ran codespell on gdb/*.[chyl] and fixed a bunch of simple typos. Most of what remains is trickier, i.e., spots where a somewhat natural name of something in the code is flagged as a typo. Reviewed-By: Tom de Vries <tdevries@suse.de>
Diffstat (limited to 'gdb/btrace.c')
-rw-r--r--gdb/btrace.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/btrace.c b/gdb/btrace.c
index 152f6f2..4a056d2 100644
--- a/gdb/btrace.c
+++ b/gdb/btrace.c
@@ -1531,23 +1531,23 @@ handle_pt_insn_events (struct btrace_thread_info *btinfo,
if (event.variant.vmexit.has_vmxr != 0)
{
- std::string seperator = aux_string.back () == ':' ? "" : ",";
- aux_string += seperator + std::string (" vmxr = ")
+ std::string separator = aux_string.back () == ':' ? "" : ",";
+ aux_string += separator + std::string (" vmxr = ")
+ hex_string (event.variant.vmexit.vmxr);
}
if (event.variant.vmexit.has_vmxq != 0)
{
- std::string seperator = aux_string.back () == ':' ? "" : ",";
- aux_string += seperator + std::string (" vmxq = ")
+ std::string separator = aux_string.back () == ':' ? "" : ",";
+ aux_string += separator + std::string (" vmxq = ")
+ hex_string (event.variant.vmexit.vmxq);
}
if (event.ip_suppressed == 0)
{
pc = event.variant.vmexit.ip;
- std::string seperator = aux_string.back () == ':' ? "" : ",";
- aux_string += seperator + std::string (" ip = ")
+ std::string separator = aux_string.back () == ':' ? "" : ",";
+ aux_string += separator + std::string (" ip = ")
+ hex_string (*pc);
}
@@ -2136,7 +2136,7 @@ btrace_stitch_bts (struct btrace_data_bts *btrace, struct thread_info *tp)
/* Adjust the block trace in order to stitch old and new trace together.
BTRACE is the new delta trace between the last and the current stop.
TP is the traced thread.
- May modifx BTRACE as well as the existing trace in TP.
+ May modify BTRACE as well as the existing trace in TP.
Return 0 on success, -1 otherwise. */
static int