]> www.infradead.org Git - mtd-utils.git/commit
fs-tests: integck: add debug compilation target
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 22 Apr 2011 14:40:52 +0000 (17:40 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 24 Apr 2011 16:12:30 +0000 (19:12 +0300)
commit548a96fa716666d0bb6095f1f38aa167c47215cd
treea0c095d149b6b4e1aff1971b007b47de8a527c35
parenta07624b1a909999aa7b053749eb2ed3f1a4da718
fs-tests: integck: add debug compilation target

I often need to use gdb to debug integck, or sometimes even attach
already running integck. But when it is compiled with optimizations, it
is nearly impossible to use gdb. Introduce 'debug' target to compile
integck without optimizations.

Additionally, to make the stack backtraces work, add a dirty hack to
integck.c to remove all the static keywords - this turns static
functions to non-static and makes them appear in stack backtraces.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
tests/fs-tests/integrity/Makefile
tests/fs-tests/integrity/integck.c