Jonathon Hall e0b46d086a
functions: TRACE_FUNC and DEBUG_STACK
Add TRACE_FUNC to trace the file, line, and name of the calling
function.  File and function names don't have to be duplicated in a
TRACE statement with this (they tend to become inaccurate as functions
are renamed and the TRACE statement is forgotten).

Add DEBUG_STACK to dump the bash stack to debug output.

Configure bash with --enable-debugger.  Bash doesn't actually include
the entire debugger, this is just some supporting variables for it.
Evidently, BASH_SOURCE[n] is only set within a function if this is
enabled.  I couldn't find this indicated in any documentation, but it
happened in practice.

Compressed initrd size only increased by 2560 bytes for librem_mini_v2,
I think that is fine.  This also gives us BASH_ARGC/BASH_ARGV which
might be useful for diagnostics.

Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
2024-01-17 16:32:37 -05:00
..
2024-01-17 16:32:37 -05:00
2022-08-25 20:55:39 +03:00
2023-09-29 15:29:18 -04:00
2018-02-05 11:30:39 -05:00
2024-01-10 18:28:24 -05:00
2023-09-05 17:13:56 +02:00
2023-06-27 11:40:09 -04:00
2023-10-10 12:06:18 -04:00
2023-06-27 11:39:36 -04:00
2022-08-25 20:55:39 +03:00
2023-06-27 11:39:39 -04:00
2024-01-10 18:28:24 -05:00
2020-01-16 09:30:48 -08:00
2022-08-25 20:55:39 +03:00
2023-03-10 17:07:00 -05:00
2022-08-25 20:55:39 +03:00
2024-01-10 18:28:24 -05:00
2023-06-07 01:10:13 +03:00
2022-08-25 20:55:39 +03:00
2022-04-01 09:47:39 -04:00