diff options
author | Maria Matejka <mq@ucw.cz> | 2019-01-23 17:08:27 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2019-02-20 22:30:54 +0100 |
commit | 713658798dfafabcd0a74f510c1639f6e3c9c820 (patch) | |
tree | fa18519b2a5b7684bb22d557ea9c836e63d6b5aa /lib/birdlib.h | |
parent | 9b46748d5b50d1e8c242a571e80fe1f9f33aeb73 (diff) |
GDB pretty printers: f_inst and f_val.
Diffstat (limited to 'lib/birdlib.h')
-rw-r--r-- | lib/birdlib.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/birdlib.h b/lib/birdlib.h index 7cd78032..6fcc202f 100644 --- a/lib/birdlib.h +++ b/lib/birdlib.h @@ -164,6 +164,15 @@ void debug(const char *msg, ...); /* Printf to debug output */ #define ASSERT(x) do { if (!(x)) log(L_BUG "Assertion '%s' failed at %s:%d", #x, __FILE__, __LINE__); } while(0) #endif +#ifdef DEBUGGING +asm( + ".pushsection \".debug_gdb_scripts\", \"MS\",@progbits,1\n" + ".byte 1\n" /* Python */ + ".asciz \"bird-gdb.py\"\n" + ".popsection\n" + ); +#endif + /* Pseudorandom numbers */ u32 random_u32(void); |