Commit Graph

45361 Commits

Author SHA1 Message Date
Siarzhuk Zharski
e0fcd62916 Code style fixes. No functional changes.
Fix for some code style issues pointed out by Axel. Thanks.
2013-03-29 14:10:46 +01:00
John Scipione
e13f5676a0 Cache app icons in BarInfo to make them load faster.
This turns an IO bound problem into a CPU bound problem. In my testing this
speeds up icon resizing dramatically although the CPU is quickly pegged at
100% trying to redraw the Deskbar if you whip the icon size slider back and
forth with a dozen or so apps open and soon the CPU can't keep up and Deskbar
lags behind.
2013-03-28 20:56:06 -04:00
Rene Gollent
c844f6e030 Style fixes. 2013-03-28 20:54:33 -04:00
Rene Gollent
8557931349 Add sanity check.
- The info list can in fact be NULL so we need to guard against that. This
  wouldn't currently get hit though, since the cases where the list isn't
  passed in are those where we only want a minimal frame anyways, so
  variable/return value creation wouldn't even be attempted.
2013-03-27 23:38:27 -04:00
Rene Gollent
4bc52e9f78 Remove no longer needed member. 2013-03-27 23:34:44 -04:00
Rene Gollent
76ed6d72a5 Refactoring to handle multiple return values.
- Replace use of address + CpuState pair in Thread,
  SpecificImageDebugInfo::CreateStackTrace() with a ReturnValueInfoList.
  Adjust all implementing subclasses and callers accordingly.

- DwarfImageDebugInfo::CreateReturnValue() -> CreateReturnValues().
  Now processes a list of return value information structures rather
  than just a single one. This means we can now handle multiple return
  values in a single statement. This still isn't entirely correct though,
  since, e.g. for functions whose return types fit in a register we need
  to either retrieve them immediately after function return, or store the
  CPU state at that point in time for later use in value retrieval,
  otherwise the return values will all be those of the last called function.
2013-03-27 23:27:49 -04:00
Rene Gollent
3fa429781c Add ReturnValueInfo class for storing function return information. 2013-03-27 23:27:48 -04:00
Matt Madia
5a6b854033 Add Cc: text field to mails shown when it's not empty.
Patch by Sean Healy 'jalopeura'. Fixes #2446.
2013-03-27 18:32:33 -04:00
Murai Takashi
2c74d7a458 Printserver: Add JIS B5 paper size
Signed-off-by: Matt Madia <mattmadia@gmail.com>
2013-03-27 18:12:42 -04:00
Dancsó Róbert
043f96686e Fix translation for "Scroll bar:" on Look and Feel panel.
Signed-off-by: Matt Madia <mattmadia@gmail.com>
2013-03-27 18:04:35 -04:00
Murai Takashi
37cdde518c Fix signature duplication of printer drivers
Signed-off-by: Matt Madia <mattmadia@gmail.com>
2013-03-27 17:51:56 -04:00
Matt Madia
7e1e5bb6ca Whitespace cleanup. No functional change. 2013-03-27 17:47:27 -04:00
Matt Madia
cf2f912782 Implement rule AddDirectoryToHaikuImage in installoptionalpackage.
Fixes #9584.
2013-03-27 17:45:03 -04:00
Rene Gollent
2b41b37891 Build fix. 2013-03-26 23:30:35 -04:00
Rene Gollent
1efa0a42f6 Fix return value handling.
- In the case of position independent code, the initial call isn't to
  the function we want, but rather to a PLT slot which resolves the
  function's location. As such, find that slot and use it to determine
  the corresponding GOT offset for the function's real location.

Still need some further refactoring of return value handling to properly
handle the case of stepping over a single line that makes multiple calls,
but this fixes the basic case at least.
2013-03-26 18:50:45 -04:00
Rene Gollent
029fcc4ad6 Add CPU state at time of function call to Thread.
- When we detect that we're stepping over a function call, also store
  the CPU state at the time it occurred. This information is needed
  in order to correctly reconstruct target addresses later since some
  operands may be register-based.

- Add the aforementioned CPU state to CreateFrame()'s arguments and
  adjust implementations and callers accordingly.
2013-03-26 18:50:44 -04:00
Rene Gollent
04c919f9d6 Fix incorrect target address calculation for memory operands. 2013-03-26 18:50:44 -04:00
Pawel Dziepak
469f13fdfe nfs4: support hard links properly
The main purpose of this patch is to prevent VFS from removing a vnode to early
what might have happened if the NFS client knew it had more than one name but
then one of them was deleted. Moreover, all discovered and still valid names
are stored what may be useful in proper file handle recovery when they are
volatile.

This patch fixes both #9558 and #9561.
2013-03-26 20:51:37 +01:00
Pawel Dziepak
efc29cc57a nfs4: update vnode objects and cached data when rename overrides a file
* this patch also fixes unnecessary cache invalidation when a file is renamed
   without changing its parent directory
2013-03-26 02:45:48 +01:00
Pawel Dziepak
4c2a56efe8 nfs4: we can not use LOOKUPP on regular files when recovering file handle 2013-03-26 02:45:47 +01:00
Pawel Dziepak
bbd26dbf1e nfs4: Fix #9558: in some cases sending SETATTR without open owner is legal 2013-03-26 02:45:46 +01:00
Rene Gollent
a198eedcc7 Fix incorrect version checks.
It's sufficient to simply check if the gcc version is 4 or higher since
we enforce the use of the latest ported compiler for the build anyways,
and these multi-level checks would fail in their current state if gcc
moved to e.g. version 5.0.
2013-03-25 21:14:17 -04:00
Fredrik Holmqvist
a54db680ba Revert "Remove fno-tree-vrp compile flag."
This reverts commit e8d6e3fe3b.
Also added a comment pointing to the recent discussion.
See http://www.freelists.org/post/haiku-development/hrev45320-Yet-another-nonobvious-effect-of-ftreevrp-optimization
2013-03-25 22:29:15 +01:00
Siarzhuk Zharski
daebca78f8 More standard handling G0,G1,G2,G3 graph.char sets
Handling of graphic character sets G0-G3 is fixed and implemented in
more consistent, extensible way.
2013-03-25 10:34:10 +01:00
Rene Gollent
9595506fb8 Fix typo. 2013-03-24 21:33:57 -04:00
Jérôme Duval
f097e26bf3 iprowifi4965: updated iwlwifi-6000g2a firmware to 18.168.6.1 2013-03-24 22:25:32 +01:00
Rene Gollent
5787587d53 Disable array bounds warnings on gcc 4.6. Fixes #9522. 2013-03-24 11:27:49 -04:00
Alexander von Gluck IV
d31319b941 swpipe: Cleanup; Store GalliumContext
* Store GalliumContext in st_manager_private
2013-03-24 03:46:40 +00:00
Alexander von Gluck IV
2b69feb92e swpipe: Update for new Mesa
* Fix swpipe build.
* DriverCtx went away.. lovely.
2013-03-24 01:56:24 +00:00
Michael Lotz
066ca38aea Include the actual error message in usb_disk debug output. 2013-03-23 21:42:24 +01:00
John Scipione
53ec5d1f33 Rebuild application menu bar less. Fixes #8539 (I hope)
Instead of destroying and rebuilding the application menu bar each time we
change state, create it at startup and then only update it from there on. This
means that bugs that rely on the app bar being constantly destroyed and rebuilt
will be much less likely to occur.

Unfortunatly, there is still one case where the application menu bar is being
destroyed and recreated and that is when you are switching between horizontal
and vertical mode, and that is because a menu bar cannot be altered from
B_ITEMS_IN_ROWS to B_ITEMS_IN_COLUMNS anywhere but in the constructor.

* Renamed fExpando to fExpandoMenuBar
* Updated TExpandoMenuBar to be more flexible after construction, the menu
  items are built in the new BuildItems() method. Also, don't pass the BarView
  object in at contruction, that can happen in AttachedToWindow(). Also, set
  fDeskbarMenuWidth just once at constructor, no reason to keep setting it over   and over again.
2013-03-23 14:59:09 -04:00
Niels Sascha Reedijk
7b8c0971ce Update translations from Pootle 2013-03-23 06:23:03 +01:00
Axel Dörfler
40440e7419 Clarified why the documentation does not belong into headers.
* Haiku is slow, and that's why we do not put documentation in headers???
  Hell yeah.
2013-03-22 20:56:17 +01:00
Alex Smith
e6a0c79790 CID 608055: Fixed unintended sign extension. 2013-03-22 19:41:57 +00:00
Alex Smith
5e0c3db286 Account for the physical map area in the kernel VM space. Fixes #9547.
The physical memory map area was not included in the kernel virtual
address space range (it was below KERNEL_BASE). This caused problems
if an I/O operation took place on physical memory mapped there (the
bad address error seen in #9547 was occurring in lock_memory_etc()).
Changed KERNEL_BASE and KERNEL_SIZE to cover the area and add a null
area that covers all of it. Also changed X86VMTranslationMap64Bit to
handle large pages in Query(), as the physical map area uses large
pages.
2013-03-22 18:30:01 +00:00
Alex Smith
8627383bf7 Fixed compilation errors with ENABLE_TRACING set. 2013-03-22 16:46:09 +00:00
Alex Smith
1aef6664d1 Fixed compilation of VFS/IORequest trace messages. 2013-03-22 14:14:33 +00:00
Alex Smith
27aafb14d7 CID 712421: Missed some other occurrences, fixed them as well. 2013-03-22 11:45:13 +00:00
Alex Smith
ee8f0ab0dc CID 712421: Fix unintended sign extension. 2013-03-22 11:38:50 +00:00
Axel Dörfler
928001cea9 Further tuned AMD CPU identifier parsing.
* Thanks to a list of 1384 entries with AMD CPU identifiers from Alex.
2013-03-22 09:37:47 +01:00
Pawel Dziepak
b6868c6e78 nfs4: Fix CID 991756: do not delete RPC::Request if (re)sending fails 2013-03-21 03:16:42 +01:00
Pawel Dziepak
edb1255117 nfs4: Fix CID 991494: memory leak if acquiring a lock fails 2013-03-21 02:48:46 +01:00
Pawel Dziepak
ce6f81f7b2 nfs4: Fix CID 991503: memory leak in handling callback requests 2013-03-21 02:46:04 +01:00
Pawel Dziepak
65389e2f2b nfs4: Fix CID 991755: break the loop after finding required element 2013-03-21 02:36:58 +01:00
Pawel Dziepak
18d2a3609e nfs4: Fix #9556: wrong error handling in CreateObject 2013-03-21 02:32:00 +01:00
Pawel Dziepak
3d064796c7 nfs4: Allow customization of DirectoryCache expiration time 2013-03-21 00:44:59 +01:00
Pawel Dziepak
1ca8178c52 nfs4: Fix #9555: wrong relational operator used 2013-03-21 00:20:11 +01:00
Axel Dörfler
df4d35e837 Added a parse_amd() for CPU identification.
* This parses the reported CPU name, and tries to translate it to a normal
  and concise identifier.
* For example, it will translate "AMD FX(tm)-8320 Eight-core Processor" into
  "FX™ 8320" or "Dual Core AMD Opteron(tm) Processor 275 HE" into
  "Opteron™ 275 HE".
* This means we can remove AMD strings for those models for which this
  function produces useful results.
2013-03-20 21:04:23 +01:00
Alexander von Gluck IV
190423a656 cpu_type: Add model 2 AMD FX CPU 2013-03-20 13:15:28 -05:00
Alexander von Gluck IV
5d8d472d1a GL: Upgrade to Mesa 9.1.1
* Somefix-ups and repairs for
  changes to how Mesa works internally
* _Flush and _Error need additional
  work as DriverCtx was removed
* Tested working
2013-03-20 01:38:43 -05:00