Source Activity

Syndicate content
Haiku's main repository
Updated: 46 min 33 sec ago

Debugger: More work on expression variables.

Thu, 2014-10-30 02:44
- If the current frame belongs to a class function, and the requested name doesn't match that of any of the parameters/local variables, attempt to find it in the member list as well. - If the current frame belongs to a class function, and the requested name doesn't match that of any of the parameters/local variables, attempt to find it in the member list as well.
Categories: Development

btreeTest: Change include for debug helpers.

Wed, 2014-10-29 23:40
Including BPlusTree.h pulls in the common versions of the debug macros (via the Debug.h from BFS) and therefore avoids redefinition warnings. Including BPlusTree.h pulls in the common versions of the debug macros (via the Debug.h from BFS) and therefore avoids redefinition warnings.
Categories: Development

btreeTest: Remove equal sign from preinclude argument.

Wed, 2014-10-29 23:38
No separator at all (no space and no equal sign) seems to be the only version that is accepted by both GCC versions. No separator at all (no space and no equal sign) seems to be the only version that is accepted by both GCC versions.
Categories: Development

string.h: include strings.h for compatibility.

Wed, 2014-10-29 23:17
* Partly reverting hrev47655, as the moved declarations are expected by many ports to be accessable via string.h. Following standards is a good thing in general, but not if it causes more problems than it helps ... * Partly reverting hrev47655, as the moved declarations are expected by many ports to be accessable via string.h. Following standards is a good thing in general, but not if it causes more problems than it helps ...
Categories: Development

btreeTest: Fix build with gcc2.

Wed, 2014-10-29 22:47
Categories: Development

Fix build of intel partitioning add-on by building its own MBR.

Wed, 2014-10-29 22:25
It previously shared the same generated MBR header with bin/writembr, but they have incompatible needs. The intel partitioning add-on only wants the MBR code, while writembr wants the whole sector. Build the desired version of the MBR separately for each target instead of sharing a single header. It previously shared the same generated MBR header with bin/writembr, but they have incompatible needs. The intel partitioning add-on only wants the MBR code, while writembr wants the whole sector. Build the desired version of the MBR separately for each target instead of sharing a single header.
Categories: Development

Avoid space after -include.

Wed, 2014-10-29 22:17
This seems to make cpp unhappy. Note that other fixes seems to be needed to get the build running with gcc2 (missing includes and the like.) This seems to make cpp unhappy. Note that other fixes seems to be needed to get the build running with gcc2 (missing includes and the like.)
Categories: Development

Re-enable raw audio ffmpeg output.

Wed, 2014-10-29 21:47
Categories: Development

writembr: Fix too short MBR due to wrong compile flags.

Wed, 2014-10-29 21:38
The compile flags were set so that only the boot code itself would be produced, excluding the (dummy) partition table and signature. The code in writembr still assumed that the MBR would be 512 bytes however and therefore access the data array out of bounds. Fix flags to produce the full 512 byte MBR sector and add a STATIC_ASSERT so that the size assumption is checked on compilation. Also fix a typo in mbr.nasm, mostly to trigger re-generation of the MBR data that one would otherwise need to remove manually... The two out of bounds array accesses were pointed out by CID 1249923 and CID 1249924, the insufficiently large target buffer of the memcpy by CID 1249901. The compile flags were set so that only the boot code itself would be produced, excluding the (dummy) partition table and signature. The code in writembr still assumed that the MBR would be 512 bytes however and therefore access the data array out of bounds. Fix flags to produce the full 512 byte MBR sector and add a STATIC_ASSERT so that the size assumption is checked on compilation. Also fix a typo in mbr.nasm, mostly to trigger re-generation of the MBR data that one would otherwise need to remove manually... The two out of bounds array accesses were pointed out by CID 1249923 and CID 1249924, the insufficiently large target buffer of the memcpy by CID 1249901.
Categories: Development

Debugger: Implement expression variable value resolution.

Wed, 2014-10-29 21:32
General: - Resolving variable values requires both a stack frame and a CPU state. Adjust all interfaces and callers accordingly. ExpressionEvaluationJob: - Pass additional parameters needed for variable value resolution. - If variable resolution is desired, ExpressionEvaluationJob now creates a temporary ValueNodeManager for that purpose. - If the expression parser returns a value node pointer that needs to be resolved, schedule a corresponding job and wait. CLanguageExpressionEvaluator: - Clean up some leftovers that were preventing variable names from being handled properly in some cases. - Implement handling of identifier names. These are now looked up against the value node graph of the active node manager, and if found, corresponding values are retrieved. If the value has not yet been resolved, an exception is thrown to ask that to be done. This gets value resolution working for basic local variables and function parameters, and consequently, #9712. Structure/class members and/or pointer indirection aren't yet handled. General: - Resolving variable values requires both a stack frame and a CPU state. Adjust all interfaces and callers accordingly. ExpressionEvaluationJob: - Pass additional parameters needed for variable value resolution. - If variable resolution is desired, ExpressionEvaluationJob now creates a temporary ValueNodeManager for that purpose. - If the expression parser returns a value node pointer that needs to be resolved, schedule a corresponding job and wait. CLanguageExpressionEvaluator: - Clean up some leftovers that were preventing variable names from being handled properly in some cases. - Implement handling of identifier names. These are now looked up against the value node graph of the active node manager, and if found, corresponding values are retrieved. If the value has not yet been resolved, an exception is thrown to ask that to be done. This gets value resolution working for basic local variables and function parameters, and consequently, #9712. Structure/class members and/or pointer indirection aren't yet handled.
Categories: Development

NetworkSetup: move renegociate and disable buttons to HardwareView

Wed, 2014-10-29 21:15
The idea is making the interface list a generic list to add some stuff that are not interfaces there (ie services: DNS, FTP, SSH, ...) The idea is making the interface list a generic list to add some stuff that are not interfaces there (ie services: DNS, FTP, SSH, ...)
Categories: Development

Increase the size of the kernel FD table

Wed, 2014-10-29 20:06
With packagefs potentially opening quite a few packages the default of 256 slots is a bit tight. It's 4096 now, which should be safe for a while, but we might want to consider resizing the table dynamically and probably even switching to another algorithm for allocating the slots. Should fix #11328. With packagefs potentially opening quite a few packages the default of 256 slots is a bit tight. It's 4096 now, which should be safe for a while, but we might want to consider resizing the table dynamically and probably even switching to another algorithm for allocating the slots. Should fix #11328.
Categories: Development

Make vfs_resize_fd_table() accessible in the kernel

Wed, 2014-10-29 20:01
Also update some types from int to uint32. Also update some types from int to uint32.
Categories: Development

Add an app server test for stack&tile

Wed, 2014-10-29 18:35
Should help with debugging #8569. Should help with debugging #8569.
Categories: Development

Debugger: Fix CID 1249931.

Wed, 2014-10-29 16:30