Commit Graph

46697 Commits

Author SHA1 Message Date
Stephan Aßmus
686357a30c HaikuDepot: MainWindow: Class members for the created views 2013-07-28 14:12:37 +02:00
Stephan Aßmus
6d367ba439 HaikuDepot: Beginnings of Model class 2013-07-28 12:20:27 +02:00
Stephan Aßmus
f34f805b1a HaikuDepot: Added DepotInfo class 2013-07-28 12:20:00 +02:00
Stephan Aßmus
82bdec56d4 HaikuDepot: Implementation of model classes for package info representation 2013-07-28 11:57:56 +02:00
Stephan Aßmus
10ad1350c5 HaikuDepot: Removed unneeded includes. 2013-07-28 11:57:55 +02:00
Stephan Aßmus
e9e74b7bab List class which stores objects (not pointers) or plain old data. 2013-07-28 11:57:54 +02:00
Rene Gollent
8add07a8e1 Debugger: Fix some handling in DisassemblerX8664.
Take into account the operand and offset size as needed, otherwise
we'd potentially use the wrong value for our calculations.

Gets return values somewhat working on x86-64, though in some cases
looking up a PLT slot's destination fails, for as yet undetermined
reasons.
2013-07-27 22:58:13 -04:00
Rene Gollent
4dcab59fe7 Debugger: Implement ArchitectureX8664::GetReturnAddressLocation(). 2013-07-27 22:57:37 -04:00
Rene Gollent
d1189a6c75 Debugger: DwarfImageDebugInfo - fix potential crash.
If the subroutine address in question required us to in a different
image, that lookup would overwrite our pointer to the starting image.
If said lookup then also failed, a crash would occur when performing
operations to look up the next return value, since the image pointer
would then be NULL.
2013-07-27 22:55:51 -04:00
Rene Gollent
c0a7796007 Debugger: Fix step over on x86-64.
DisassemblerX8664::GetNextInstructionInfo() was mistakenly truncating the
instruction address due to a copy-and-paste bug when it was initially
spawned off DisassemblerX86. This would result in the temporary breakpoints
for skipping over function calls never getting set properly, leading to us
stepping into the PLT on a step over.
2013-07-27 19:10:55 -04:00
Ingo Weinhold
5163e1c62d Revert "Introduce vnode op supports_operation(), fix devfs_io()"
This reverts commit 98a5231fe5.
2013-07-27 23:31:23 +02:00
Stephan Aßmus
a2cc70e464 HaikuDepot: "Show" is better than "Category" for what it does. 2013-07-27 23:26:01 +02:00
Stephan Aßmus
1b28bb090d HaikuDepot: Populate menu fields (non-functional) 2013-07-27 23:14:43 +02:00
Stephan Aßmus
fade0fd59d HaikuDepot: Added PackageInfoView, moved buttons to bottom 2013-07-27 22:57:26 +02:00
Stephan Aßmus
713ce3be95 HaikuDepot: BTabView with About, Rating & comments and Changelog
Completely non-functional. Should be replaced by something visually
more unified. The selected package's title and icon should be always
visible above the three sections, and the sections should not be
tabs but something more subtle.
2013-07-27 22:57:26 +02:00
Stephan Aßmus
ac7d911bae HaikuDepot: Added new classes to build and main window. 2013-07-27 22:57:25 +02:00
Stephan Aßmus
f344b1dca6 HaikuDepot: BGroupView holding buttons for package actions...
... that can be applied to the selected package(s). Does nothing
except create the buttons and layout.
2013-07-27 22:57:24 +02:00
Stephan Aßmus
7fa83160f8 HaikuDepot: PackagesListView
BColumnListView derived class with code-duplication from
DriveSetup that should be refactored eventually (BIconStringColumn
and BColumn implementation to show it). Does nothing except create
some columns.
2013-07-27 22:57:23 +02:00
Stephan Aßmus
8608501abb HaikuDepot: BGroupView for the controls defining list contents 2013-07-27 22:57:22 +02:00
Stephan Aßmus
d9512848e4 Haiku-Depot: Initial skeleton application 2013-07-27 22:57:21 +02:00
Ingo Weinhold
98a5231fe5 Introduce vnode op supports_operation(), fix devfs_io()
devfs_io() can't fall back to calling vfs_synchronous_io(), if the
device driver doesn't support handling requests asynchronously. The
presence of the io() hook leads the VFS (do_iterative_fd_io()) to
believe that asynchronous handling is supported and set a
finished-callback on the request which calls the io() hook to start the
next chunk. Thus, instead of iterating through the request in a loop
the iteration happens recursively. For sufficiently fragmented requests
the stack may overflow (ticket #9900).

* Introduce a new vnode operation supports_operation(). It can be called
  by the VFS to determine whether a present hook is actually currently
  supported for a given vnode.
* devfs: implement the new hook and remove the fallback handling in
  devfs_io().
* vfs_request_io.cpp: use the new hook to determine whether the io()
  hook is really supported.
2013-07-27 17:45:59 +02:00
Alex Smith
b8130cf32d Removed Haiku64Image, it's not used any more. 2013-07-27 16:40:10 +01:00
Niels Sascha Reedijk
993d002f8a Update translations from Pootle 2013-07-27 06:14:23 +02:00
John Scipione
f59d62ffd3 Add BWindow documentation 2013-07-26 18:36:17 -04:00
John Scipione
323523c4b9 BWindow: style fixes only, no functional change. 2013-07-26 18:36:00 -04:00
Rene Gollent
e94c611961 Debugger: Implement ArchitectureX8664::CreateStackFrame().
This is for the most part a direct copy of the equivalent x86 function
with adjustments to deal with the difference in address sizes and
registers. This gets architectural (aka unassisted) backtraces working
on x86-64, assuming the code in question has been built with frame pointers
enabled.

Thanks to Alex Smith for his assistance in implementing the
function prologue and syscall iframe detection.
2013-07-25 20:13:12 -04:00
Rene Gollent
edffd6cde8 Debugger: Add interrupt vector CpuStateX8664. 2013-07-25 20:11:28 -04:00
Alex Smith
271b27d5a3 x86_64: Set vector in iframe/debug state to 99 for syscalls.
Although syscalls are done through SYSCALL and therefore don't actually
have an interrupt number, set it to 99 (the syscall vector on 32-bit)
in the iframe so that a syscall frame can be identified. Also added
vector/error_code to x86_64_debug_cpu_state for Debugger to use, not
sure why I didn't put them there in the first place.
2013-07-25 20:04:25 +01:00
Jérôme Duval
143cfee84c usb_asix: takes into account that received data is padded to 16bit
* also checks whether too little data is received.
2013-07-25 19:18:50 +02:00
Jérôme Duval
0994532db4 boot_loader: checks whether mapping rsdt header succeeded.
... and exits in case of failure. Reported by mt in #9895.
2013-07-25 18:52:06 +02:00
Pawel Dziepak
6972b91e17 servers/net: Make DHCP client more RFC 2131 compliant
* The client should enter state REBINDING only when RENEWING times
   out.
 * When in RENEWING or REBINDING state do not give up retrying
   unless the lease expires.
 * Fix bug sending 2^n DHCP requests at n-th lease renewal.
 * Use timeout values and renewal/rebinding times suggested by the
   RFC.
 * Use different XIDs in subsequent transactions.
2013-07-25 04:05:10 +02:00
Rene Gollent
3b2c8f50dc Debugger: Handle DW_TAG_GNU_template_template_param.
This is a GNU extension for identifying the case of a template parameter
that is itself a template. We don't currently make use of it, but this
allows us to parse/skip it correctly.

With this change, webcore is loadable/debuggable on x86-64 when built
with -gdwarf-4, with the caveat that ~3-4GB of RAM are currently required.
2013-07-23 18:08:40 -04:00
Jérôme Duval
b5ccadd7c2 Virtio: implemented indirect descriptors feature.
* indirect descriptors count hardcoded to 128.
* already activated for virtio_block driver.
2013-07-23 23:00:20 +02:00
Jérôme Duval
17c55998dc Virtio SCSI: add a description for CHANGE feature. 2013-07-23 22:59:01 +02:00
Rene Gollent
79a2f0c70c Debugger: Fix insets in BreakConditionConfigWindow. 2013-07-22 23:01:30 -04:00
Murai Takashi
a385c68ad7 Cortex: Fix forming reference to null pointer
* Style fix only for the lines involved.

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2013-07-22 21:15:15 +02:00
John Scipione
46cb3d3ea6 IconUtils: Add parens to fix warnings
Fixes #9888
2013-07-22 13:42:48 -04:00
Alex Wilson
e66e2a2535 Fix layout issue in Backgrounds preflet.
Add an extra column to the grid layout so that the menu fields are free
to be much bigger than the checkbox.

closes #9882
2013-07-21 23:52:55 -04:00
Rene Gollent
8e80ec6aaa Debugger: Handle some more v4 attributes.
- DIECompileUnit can also be marked with DW_AT_main_subprogram to
indicate that the main program resides within that particular unit.

- DIEBaseType and DIEMember now have the additional attribute
DW_AT_data_bit_offset which defines the offset in a somewhat different
manner than DWARF2/3's DW_AT_bit_offset, and deprecates the latter.

Unused/untested for the moment, as gcc 4.7.3 doesn't yet appear to be
generating either of the above attributes.
2013-07-21 21:19:26 -04:00
Rene Gollent
6dbd3ed18c Debugger: Fix X86 handling of larger return values.
For return values too large to fit into EAX:EDX, the address at which
the value is located is stored in EAX. We were incorrectly assuming
they were at the current stack pointer, which isn't necessarily the
case depending on what optimization/code generation options were
used, leading to us sometimes showing the wrong values for such case.
The same issue showed up with debug binaries generated by Clang.
2013-07-21 19:05:20 -04:00
Rene Gollent
49093da705 Debugger: Handle constant member offsets properly.
For DWARF4, gcc now sometimes emits member locations as constant
offsets from their parent rather than as location expressions.
We weren't handling this case properly, rather we were always
assuming that a constant offset implied we were dealing with a
bit field.

Fixes struct/class members not always having correct values on
version 4.
2013-07-21 18:45:12 -04:00
Rene Gollent
f1fb804608 Debugger: Add missed error check. 2013-07-20 23:48:18 -04:00
Rene Gollent
d950dcd9ab Debugger: Implement new expression operands.
DWARF4 adds two new expression operands for values that are known, but
not located anywhere in memory (e.g. a known constant or a value computed
from a composite of other values/locations in the program). These are
DW_OP_implicit_value, which supplies the value directly as an LEB128 +
data block, and DW_OP_stack_value, which indicates the top of the
expression stack is the value.

Implements corresponding support in DwarfExpressionEvaluator,
ValueLocation and ValueLoader.
2013-07-20 23:38:29 -04:00
Rene Gollent
a326afa3fc Debugger: Rework DIETypeUnit.
DIETypeUnit now inherits from DIECompileUnitBase in order to handle
things like setting the language info properly. This was previously
missing and would lead to occasional crashes with DWARF4.
2013-07-20 17:47:40 -04:00
Niels Sascha Reedijk
3436a840a3 Update translations from Pootle 2013-07-20 06:14:54 +02:00
Rene Gollent
104b28862d Debugger: DwarfFile: Fix DWARF4 signature handling.
Depending on how the type unit was actually set up hierarchically,
we sometimes ended up with the unit set to the wrong actual type
object. Instead, we now simply let the unit parse, and then look up
the entry by the offset specified in the header after all is said
and done. Fixes class/struct objects sometimes winding up resolving
to one of their members instead.

Some problems still remain with resolving variable values for such
types though, needs further investigation.
2013-07-19 21:44:48 -04:00
Rene Gollent
1c292f7eb4 ProcessController: Fix memory calculations.
On systems with > 4GB of memory, the calculations would overflow,
leading to the memory bars being drawn incorrectly.
2013-07-19 20:53:12 -04:00
Humdinger
8f79f5f3b8 Rebuild Paladin package.
Paladin relied on liblocale.so that was moved to libbe (I think).
An updated patch will be submitted to haikuporter shortly.
2013-07-19 22:06:33 +02:00
Philippe Saint-Pierre
0e95ac1797 CPUFreq: rewrite interpolation formula - division by zero (#9872) 2013-07-18 22:27:27 -04:00
Rene Gollent
2fab6ab728 Debugger: Fix handling of contained type attribute.
The DIEs generated by gcc sometimes pass a modified type for
DIEPointerToMember's containing type. As such, we need to resolve
the passed in type down to its base type before verifying that it's
indeed a compound type.
2013-07-18 21:37:02 -04:00