Skip to content

Commit f30744b

Browse files
authored
Merge pull request #267 from krystian-wojtas/fix-typos
typos
2 parents 74184aa + 3be07e8 commit f30744b

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

backward.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
// #define BACKWARD_HAS_UNWIND 1
102102
// - unwind comes from libgcc, but I saw an equivalent inside clang itself.
103103
// - with unwind, the stacktrace is as accurate as it can possibly be, since
104-
// this is used by the C++ runtine in gcc/clang for stack unwinding on
104+
// this is used by the C++ runtime in gcc/clang for stack unwinding on
105105
// exception.
106106
// - normally libgcc is already linked to your program by default.
107107
//
@@ -277,7 +277,7 @@
277277
// #define BACKWARD_HAS_UNWIND 1
278278
// - unwind comes from libgcc, but I saw an equivalent inside clang itself.
279279
// - with unwind, the stacktrace is as accurate as it can possibly be, since
280-
// this is used by the C++ runtine in gcc/clang for stack unwinding on
280+
// this is used by the C++ runtime in gcc/clang for stack unwinding on
281281
// exception.
282282
// - normally libgcc is already linked to your program by default.
283283
//
@@ -838,7 +838,7 @@ template <typename F> class Unwinder {
838838
uintptr_t ip = _Unwind_GetIPInfo(ctx, &ip_before_instruction);
839839

840840
if (!ip_before_instruction) {
841-
// calculating 0-1 for unsigned, looks like a possible bug to sanitiziers,
841+
// calculating 0-1 for unsigned, looks like a possible bug to sanitizers,
842842
// so let's do it explicitly:
843843
if (ip == 0) {
844844
ip = std::numeric_limits<uintptr_t>::max(); // set it to 0xffff... (as
@@ -1460,7 +1460,7 @@ class TraceResolverLinuxImpl<trace_resolver_tag::libbfd>
14601460
// line of the function that was called. But if the code is optimized,
14611461
// we might get something absolutely not related since the compiler
14621462
// can reschedule the return address with inline functions and
1463-
// tail-call optimisation (among other things that I don't even know
1463+
// tail-call optimization (among other things that I don't even know
14641464
// or cannot even dream about with my tiny limited brain).
14651465
find_sym_result details_adjusted_call_site = find_symbol_details(
14661466
fobj, (void *)(uintptr_t(trace.addr) - 1), symbol_info.dli_fbase);
@@ -1491,7 +1491,7 @@ class TraceResolverLinuxImpl<trace_resolver_tag::libbfd>
14911491
// this time we get the name of the function where the code is
14921492
// located, instead of the function were the address is
14931493
// located. In short, if the code was inlined, we get the
1494-
// function correspoding to the code. Else we already got in
1494+
// function corresponding to the code. Else we already got in
14951495
// trace.function.
14961496
trace.source.function = demangle(details_selected->funcname);
14971497

@@ -1706,7 +1706,7 @@ class TraceResolverLinuxImpl<trace_resolver_tag::libbfd>
17061706

17071707
// are we in the boundaries of the section?
17081708
if (addr < sec_addr || addr >= sec_addr + size) {
1709-
addr -= base_addr; // oups, a relocated object, lets try again...
1709+
addr -= base_addr; // oops, a relocated object, lets try again...
17101710
if (addr < sec_addr || addr >= sec_addr + size) {
17111711
return;
17121712
}
@@ -4372,7 +4372,7 @@ class SignalHandling {
43724372
static const constexpr int signal_skip_recs =
43734373
#ifdef __clang__
43744374
// With clang, RtlCaptureContext also captures the stack frame of the
4375-
// current function Below that, there ar 3 internal Windows functions
4375+
// current function Below that, there are 3 internal Windows functions
43764376
4
43774377
#else
43784378
// With MSVC cl, RtlCaptureContext misses the stack frame of the current

0 commit comments

Comments
 (0)