1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:27:35 +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:
Andreas Kling 2019-07-21 09:59:17 +02:00
parent 3965fcc484
commit d2b521f0ab
6 changed files with 18 additions and 1 deletions

View file

@ -526,4 +526,10 @@ int reboot()
int rc = syscall(SC_reboot);
__RETURN_WITH_ERRNO(rc, rc, -1);
}
void dump_backtrace()
{
syscall(SC_dump_backtrace);
}
}