A module that hooks into the debugger to provide it with a demangle() so at least when using C++ in the kernel stack crawls are meaningful.

It does its job by using part of libsupc++, with fake malloc and friends to make sure it won't double fault.
Works here, but cp-demangle must be extracted by hand from the lib, can't get the rule to work as I want, Ingo ?
Maybe using it directly without malloc hack would be ok with 16KB buffer, but I'm not sure of that.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26581 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol
2008-07-23 16:08:16 +00:00
parent 4e99b4683e
commit 8881176ff3
6 changed files with 264 additions and 0 deletions
+3
View File
@@ -111,6 +111,9 @@ extern bool print_debugger_command_usage(const char* command);
extern void _user_debug_output(const char *userString);
extern void debug_set_demangle_hook(const char *(*hook)(const char *));
extern const char *debug_demangle(const char *);
#ifdef __cplusplus
}
#endif