Willy Tarreau 4710ab5604 BUILD: debug: only dump/reset glitch counters when really defined
If neither DEBUG_GLITCHES nor DEBUG_STRICT is set, we end up with
no dbg_cnt section, resulting in debug_parse_cli_counters not
building due to __stop_dbg_cnt and __start_dbg_cnt not being defined.
Let's just condition the end of the function to these conditions.
An alternate approach (less elegant) is to always declare a dummy
entry of type DBG_COUNTER_TYPES in debug.c.

This must be backported to 3.1 since it was brought with glitches.
2024-12-17 16:46:25 +01:00
..
2024-11-18 15:15:54 +01:00
2024-04-02 07:27:33 +02:00
2024-11-26 16:12:05 +01:00
2024-11-26 16:12:05 +01:00
2024-10-04 21:38:14 +02:00
2024-10-04 21:38:14 +02:00