History log of /haiku/src/add-ons/kernel/debugger/Jamfile
Revision Date Author Comments
# b4aed463 06-Aug-2016 Adrien Destugues <pulkomandy@gmail.com>

add WIP "netconsole" KDL add-on

Similar to Linux netconsole, this should send all debug output over UDP
to the broadcast address. It can be listened to with netcat or similar tools.
This could be an easy way to extract KDL info from a crashing machine
when no serial ports are available.

Does not work yet, help welcome.


# ce79b4c4 30-Jun-2012 Michael Lotz <mmlr@mlotz.ch>

Add qrencode kernel debugger add-on to the build.

The defines in the Jamfile remap the memory allocation functions to use
debug heap versions of the corresponding functions.


# 3613bfc8 08-Apr-2009 Michael Lotz <mmlr@mlotz.ch>

Adding a run_on_exit kernel debugger add-on. It installs a debugger command
"on_exit" with which you can add commands to run when exiting the debugger.
With this you could for example "on_exit sync" and "on_exit shutdown -r" when
your app_server crashed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30016 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6eba0636 22-Feb-2009 Michael Lotz <mmlr@mlotz.ch>

* Added simplified possibility to schedule UHCI transfers from within KDL.
* Added debugger commands to resolve usb_ids to pipes.
* Adjusted the physical memory allocator to be usable in a slimmed down mode
when running inside the kernel debugger.
* Implemented USB keyboard support for KDL through a kernel debugger add-on.
* Added kgetc() and made use of it where previously individual methods were used
to ensure that reading characters always goes through the kernel debugger
add-ons and the other methods.

This has some preconditions to meet though:
1) The keyboard must be in the boot protocol (currently the case but needs to
be revisited once we have a full usb_hid).
2) The keyboard must be attached to a UHCI root port (i.e. not use EHCI or OHCI,
also not through hubs unless those are USB 1.1).
3) the usb_hid driver has to be opened for this to work. This means that for the
time between initializing USB and when usb_hid is opened by the input_server
there is no keyboard support.

Also note that this has no way of detecting hot-plug, meaning that you can't
re-attach your USB keyboard from the hub to the root port once in KDL.

On the bright side of things, since this is a non-destructive mechanism it is
possible to enter and leave KDL without loosing the USB state.

Tested OK in QEMU, not tested on real hardware yet, will see in a few minutes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29291 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 76c9eb5b 24-Jul-2008 François Revol <revol@free.fr>

disasm kernel debugger module providing a dis addr [count] command, currently only for x86, using Udis86.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26618 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8881176f 23-Jul-2008 François Revol <revol@free.fr>

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


# ed6250c9 21-Feb-2008 François Revol <revol@free.fr>

* Bochs debug output
* laplink low level debug output I wrote for zeta, needs some work.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24055 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b582e0a7 19-Feb-2008 Michael Lotz <mmlr@mlotz.ch>

I really thought that such a small change wouldn't break the build...

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24028 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3cec75dc 30-Jan-2008 Axel Dörfler <axeld@pinc-software.de>

* Debugger modules now have two methods: enter_debugger() and exit_debugger().
* The kernel now opens up to 8 debugger modules (and puts them into an array;
maybe we'll want to switch to a doubly linked list when there is the need).
* Implemented an example debugger module that prints a stack trace of the
current thread when the kernel debugger is entered (not included in the
image).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23794 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4dca8fed 28-Jan-2007 François Revol <revol@free.fr>

AddSubdir...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19999 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0223d2d0 28-Jan-2007 François Revol <revol@free.fr>

Move your body...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19997 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c49e0c68 18-Sep-2006 Jérôme Duval <korli@users.berlios.de>

dropped a useless arg of the KernelAddon rule, hope I don't mess anything


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18879 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7e6e175b 30-May-2006 François Revol <revol@free.fr>

the source code for the best KDL game ever (yet), hangman.
WIP, doesn't compile atm, must be changed to a module


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17658 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ce79b4c428a6d71bb51ffc209dbdb87cc90799b2 30-Jun-2012 Michael Lotz <mmlr@mlotz.ch>

Add qrencode kernel debugger add-on to the build.

The defines in the Jamfile remap the memory allocation functions to use
debug heap versions of the corresponding functions.


# 3613bfc87170c9da09d0099ae3dba622487d9616 08-Apr-2009 Michael Lotz <mmlr@mlotz.ch>

Adding a run_on_exit kernel debugger add-on. It installs a debugger command
"on_exit" with which you can add commands to run when exiting the debugger.
With this you could for example "on_exit sync" and "on_exit shutdown -r" when
your app_server crashed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30016 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6eba063647cc4ff5aa863e1b5dc5093c22a3acb0 22-Feb-2009 Michael Lotz <mmlr@mlotz.ch>

* Added simplified possibility to schedule UHCI transfers from within KDL.
* Added debugger commands to resolve usb_ids to pipes.
* Adjusted the physical memory allocator to be usable in a slimmed down mode
when running inside the kernel debugger.
* Implemented USB keyboard support for KDL through a kernel debugger add-on.
* Added kgetc() and made use of it where previously individual methods were used
to ensure that reading characters always goes through the kernel debugger
add-ons and the other methods.

This has some preconditions to meet though:
1) The keyboard must be in the boot protocol (currently the case but needs to
be revisited once we have a full usb_hid).
2) The keyboard must be attached to a UHCI root port (i.e. not use EHCI or OHCI,
also not through hubs unless those are USB 1.1).
3) the usb_hid driver has to be opened for this to work. This means that for the
time between initializing USB and when usb_hid is opened by the input_server
there is no keyboard support.

Also note that this has no way of detecting hot-plug, meaning that you can't
re-attach your USB keyboard from the hub to the root port once in KDL.

On the bright side of things, since this is a non-destructive mechanism it is
possible to enter and leave KDL without loosing the USB state.

Tested OK in QEMU, not tested on real hardware yet, will see in a few minutes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29291 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 76c9eb5b42cd8de19a6fc41967346bc9d2ba086f 24-Jul-2008 François Revol <revol@free.fr>

disasm kernel debugger module providing a dis addr [count] command, currently only for x86, using Udis86.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26618 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8881176ff3ff0a868ebf53e25858864153edfc9f 23-Jul-2008 François Revol <revol@free.fr>

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


# ed6250c95736c0b55da79d6e9dd01369532260c0 21-Feb-2008 François Revol <revol@free.fr>

* Bochs debug output
* laplink low level debug output I wrote for zeta, needs some work.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24055 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b582e0a75eae2753db0f416c0a605b9723d24281 19-Feb-2008 Michael Lotz <mmlr@mlotz.ch>

I really thought that such a small change wouldn't break the build...

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24028 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3cec75dc33dd1cda148e057d91b48989f6f3a0c1 30-Jan-2008 Axel Dörfler <axeld@pinc-software.de>

* Debugger modules now have two methods: enter_debugger() and exit_debugger().
* The kernel now opens up to 8 debugger modules (and puts them into an array;
maybe we'll want to switch to a doubly linked list when there is the need).
* Implemented an example debugger module that prints a stack trace of the
current thread when the kernel debugger is entered (not included in the
image).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23794 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4dca8fed0d4192b7f19fb950f81bfa11edcacceb 28-Jan-2007 François Revol <revol@free.fr>

AddSubdir...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19999 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0223d2d0bba3234c21d18927396d983cf0281b46 28-Jan-2007 François Revol <revol@free.fr>

Move your body...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19997 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c49e0c68b013ebe90a3a48d5e98b5788ba2e6542 18-Sep-2006 Jérôme Duval <korli@users.berlios.de>

dropped a useless arg of the KernelAddon rule, hope I don't mess anything


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18879 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7e6e175b9efc8e0d82219fe85b8461672fd98446 30-May-2006 François Revol <revol@free.fr>

the source code for the best KDL game ever (yet), hangman.
WIP, doesn't compile atm, must be changed to a module


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17658 a95241bf-73f2-0310-859d-f6bbb57e9c96