mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:08:11 +00:00
Kernel+LibC: Add a dump_backtrace() syscall.
This is very simple but already very useful. Now you're able to call to dump_backtrace() from anywhere userspace to get a nice symbolicated backtrace in the debugger output. :^)
This commit is contained in:
parent
3965fcc484
commit
d2b521f0ab
6 changed files with 18 additions and 1 deletions
|
@ -2718,3 +2718,9 @@ int Process::sys$mknod(const char* pathname, mode_t mode, dev_t dev)
|
|||
|
||||
return VFS::the().mknod(StringView(pathname), mode, dev, current_directory());
|
||||
}
|
||||
|
||||
int Process::sys$dump_backtrace()
|
||||
{
|
||||
dump_backtrace();
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue