Philip Withnall 82adf7b5da tests: Work around a gdb bug in assert-msg-test
It seems that when GLib is compiled without CFLAGS=-g, gdb can’t work
out the size of __glib_assert_msg, so assumes it’s 4 bytes — even on
64-bit systems. This causes it to not read the most significant 4 bytes
of the assertion message pointer, and hence it can’t print the stored
assertion message. This causes assert-msg-test to fail.

The upstream gdb bug is
https://sourceware.org/bugzilla/show_bug.cgi?id=22501.

Work around that by referencing and dereferencing __glib_assert_msg so
that gdb treats it as a pointer of sizeof(char*) rather than of the size
it incorrectly calculated from the library’s symbol table (or through
some other mystical process).

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://bugzilla.gnome.org/show_bug.cgi?id=782057
2017-11-27 11:44:08 +00:00
..
2005-10-05 17:37:46 +00:00
2017-05-29 19:53:35 +02:00
2017-05-29 19:53:35 +02:00
2017-05-29 19:53:35 +02:00
2017-05-29 19:53:35 +02:00
2017-05-29 19:53:35 +02:00
2012-10-16 09:39:24 -04:00
2017-05-29 19:53:35 +02:00
2017-05-29 19:53:35 +02:00
2017-05-29 19:53:35 +02:00
2017-05-29 19:53:35 +02:00
2012-11-15 14:19:06 -05:00
2017-05-29 19:53:35 +02:00
2017-05-29 19:53:35 +02:00
2017-05-29 19:53:35 +02:00
2011-05-01 17:10:04 -04:00
2017-05-29 19:53:35 +02:00
2013-11-10 22:44:12 +01:00
2017-05-29 19:53:35 +02:00