Willy Tarreau d480b7be96 MINOR: debug: make ABORT_NOW() store the caller's line number when using abort
Placing DO_NOT_FOLD() before abort() only works in -O2 but not in -Os which
continues to place only 5 calls to abort() in h3.o for call places. The
approach taken here is to replace abort() with a new function that wraps
it and stores the line number in the stack. This slightly increases the
code size (+0.1%) but when unwinding a crash, the line number remains
present now. This is a very low cost, especially if we consider that
DEBUG_USE_ABORT is almost only used by code coverage tools and occasional
debugging sessions.
2024-02-02 17:12:06 +01:00
..
2023-08-01 10:49:06 +02:00
2023-01-27 15:18:59 +01:00
2023-04-13 16:57:51 +02:00
2021-11-18 10:50:58 +01:00
2022-04-22 15:45:47 +02:00
2023-10-13 10:05:06 +02:00
2022-11-29 15:14:39 +01:00
2024-01-26 17:29:27 +01:00
2023-10-06 15:34:31 +02:00
2023-05-04 18:09:50 +02:00
2023-12-05 16:19:35 +01:00