46360 Commits

Author SHA1 Message Date
Jerome Duval
c01fadcadb AHCI: add MSI support. 2013-07-31 00:39:59 +02:00
Jérôme Duval
656e05ec86 FreeBSD compat layer: implement MSI-X support. 2013-07-31 00:39:13 +02:00
Stephan Aßmus
cdbf478fbf HaikuDepot: PackageInfo, added SharedBitmap and BitmapRef classes
* Use in UserInfo for avatar field.
 * Use in PackageInfo for icon.
 * Use in PackageListView.
hrev45931
2013-07-30 22:57:30 +02:00
Stephan Aßmus
3a98600e80 HaikuDepot: Tweak default, min and max column widths 2013-07-30 22:28:09 +02:00
Stephan Aßmus
46d5f6b433 HaikuDepot: PackageInfo: Split description into short and full 2013-07-30 22:27:31 +02:00
Stephan Aßmus
28538208de HaikuDepot: PackageInfoView, use more views and layouts...
... instead of re-inventing the weel. Add simple BitmapView
implementation that can later be used for the package icon
and other icons.
hrev45930
2013-07-30 22:02:44 +02:00
John Scipione
8c660dab60 WonderBrush Translator: fix warnings
src/add-ons/translators/wonderbrush/WonderBrushView.cpp: In constructor 'WonderBrushView::WonderBrushView(const BRect&, const char*, uint32, uint32, TranslatorSettings*)':
src/add-ons/translators/wonderbrush/WonderBrushView.cpp:58:8: warning: variable 'xbold' set but not used [-Wunused-but-set-variable]
src/add-ons/translators/wonderbrush/WonderBrushView.cpp:58:15: warning: variable 'ybold' set but not used [-Wunused-but-set-variable]
src/add-ons/translators/wonderbrush/WonderBrushView.cpp:64:8: warning: variable 'yplain' set but not used [-Wunused-but-set-variable]
hrev45929
2013-07-29 19:58:39 -04:00
Rene Gollent
3d286f4454 Debugger: Fix BMessage handling on x86-64.
Unlike the header or field members, the 'what' field is always a 32-bit
integer, rather than being arch-dependent. This would cause us to bail
out early without ever trying to process/resolve children.
hrev45928
2013-07-29 19:11:13 -04:00
Jérôme Duval
6391a955fc PCI-x86: merge MSI-X unconfigure and disable with MSI.
* get rid of unconfigure_msix and disable_msix from the API.
hrev45927
2013-07-29 22:48:00 +02:00
Humdinger
be92485f65 Fixed default vertical alignment of BTextControl.
Courtesy of Rene who broke it a while back and remote
controlled me on IRC to commit the fix...
hrev45926
2013-07-29 18:56:46 +02:00
Jérôme Duval
46f7a54d8c MSI: Use the effective APIC id of the boot CPU for the address destination.
* This should only affect systems where the CPU ids aren't sequential (mostly
non Intel).
* Fixes #9807.
hrev45925
2013-07-29 17:36:03 +02:00
Rene Gollent
e52af6a9e1 Add LibLayout and BePDF x86-64 packages.
Thanks to Chris Roberts for contributing the former.
hrev45924
2013-07-28 22:09:20 -04:00
Rene Gollent
998b880a61 libbe: Fix MessageAdapter on x86-64.
When unflattening an R5 formatted message, explicitly use int32 rather
than ssize_t, since the latter's size differs by architecture.
hrev45923
2013-07-28 21:29:25 -04:00
Rene Gollent
293d5b1ede Add 64-bit package for CMake. hrev45922 2013-07-28 19:33:18 -04:00
Rene Gollent
f270c76a2e Debugger: Cleanups.
ResolvePICFunctionAddress() needs to restore the CPUState object back
to how it was when it was originally passed in. Fixes various issues
that would occur as a result.
hrev45921
2013-07-28 18:59:36 -04:00
Rene Gollent
aef9e4fce2 Debugger: Fix return value for PIC functions on x86-64.
- Add Architecture::ResolvePICFunctionAddress() and pull out the
previous code in DwarfImageDebugInfo into the x86-specific
implemementation.

- PIC handling works a bit differently on x86-64 than it does on x86
since x86-64 is likely to use RIP-relative addressing. Implement
ArchitectureX8664::ResolvePICFunctionAddress() accordingly.
hrev45920
2013-07-28 17:30:49 -04:00
Rene Gollent
0a1334de28 Fix wget on x86-64.
Define HAVE_ARPA_INET_H for the wget build. Otherwise, e.g. inet_ntoa
would get an implicit declaration with a return type of int, leading to
the returned character pointer getting truncated on x86-64, and
consequently random crashes.
hrev45919
2013-07-28 14:14:22 -04:00
Rene Gollent
e7c4ad324e Add 64-bit Pe package. hrev45918 2013-07-28 13:19:03 -04:00
Rene Gollent
5eb4aaba42 Add 64-bit Vision package. hrev45917 2013-07-28 11:28:15 -04:00
Murai Takashi
7f98c6653e Fix double free
Signed-off-by: Ingo Weinhold <ingo_weinhold@gmx.de>
hrev45916
2013-07-28 16:22:13 +02:00
Stephan Aßmus
0aea921993 HaikuDepot: Show package in info area when selected in list
* Includes fixes along the way. Shows only package title as of
   now.
hrev45915
2013-07-28 15:46:54 +02:00
Stephan Aßmus
cc4fa3bf29 HaikuDepot: Beginnings of transformation from BTabView 2013-07-28 15:30:53 +02:00
Stephan Aßmus
6c28726eab HaikuDepot: Moved some extra classes into .cpp file 2013-07-28 15:30:20 +02:00
Stephan Aßmus
3883c02097 HaikuDepot: Create dummy model (2 items)
* Added methods to fill the package list view, creating PackageRows
   from PackageInfos, various TODOs.
 * Some additions in the info classes, UserRating needs language.
hrev45914
2013-07-28 14:59:11 +02:00
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 hrev45913 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 hrev45912 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.
hrev45911
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.
hrev45910
2013-07-27 19:10:55 -04:00
Ingo Weinhold
5163e1c62d Revert "Introduce vnode op supports_operation(), fix devfs_io()"
This reverts commit 98a5231fe5497c526849f2d84b1a9bbcbdfd2dbc.
hrev45909
2013-07-27 23:31:23 +02:00
Stephan Aßmus
a2cc70e464 HaikuDepot: "Show" is better than "Category" for what it does. hrev45908 2013-07-27 23:26:01 +02:00
Stephan Aßmus
1b28bb090d HaikuDepot: Populate menu fields (non-functional) hrev45907 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.
hrev45906
2013-07-27 17:45:59 +02:00
Alex Smith
b8130cf32d Removed Haiku64Image, it's not used any more. hrev45905 2013-07-27 16:40:10 +01:00
Niels Sascha Reedijk
993d002f8a Update translations from Pootle hrev45904 2013-07-27 06:14:23 +02:00
John Scipione
f59d62ffd3 Add BWindow documentation hrev45903 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.
hrev45902
2013-07-25 20:13:12 -04:00