Commit Graph

46344 Commits

Author SHA1 Message Date
Murai Takashi
ddc2a758e6 Chunk::Chunk(), Fix Null pointer argument in call to memory copy function
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2013-07-15 17:25:13 +02:00
Murai Takashi
517050adb5 BCollator::Archive(), use free() instead of delete
Signed-off-by: Oliver Tappe <zooey@hirschkaefer.de>
2013-07-15 13:13:22 +02:00
Murai Takashi
10dbe57ef3 PackageItem::ParseAttribute(), use delete[] for deleing *attrData.
Signed-off-by: Oliver Tappe <zooey@hirschkaefer.de>
2013-07-15 13:09:26 +02:00
Murai Takashi
aa419051e6 Fix memory leak for LocalePreflet.cpp
Signed-off-by: Oliver Tappe <zooey@hirschkaefer.de>
2013-07-15 13:04:04 +02:00
Murai Takashi
e5ab37ae70 Fix "Called C++ object pointer is null" for EditableCatalog.cpp
Signed-off-by: Oliver Tappe <zooey@hirschkaefer.de>
2013-07-14 14:36:17 +02:00
Philippe Saint-Pierre
4ba4d40bb2 Addons shortcuts: fix override
Under some specific circumstances (changing the key and the modifier in a specific way
at the same time), Tracker would get confused and not change the shortcut.

Thanks Diver
2013-07-13 16:57:40 -04:00
Philippe Saint-Pierre
073218a8ae Mail kit: use KiB unit (and localize) 2013-07-13 14:55:20 -04:00
Philippe Saint-Pierre
fffc0e2a7b DiskUsage: reuse string_for_size in libshared.a 2013-07-13 14:19:09 -04:00
Philippe Saint-Pierre
3fe416173c Tracker add-on shortcuts, move resource to BEOS: namespace 2013-07-13 14:19:09 -04:00
Philippe Saint-Pierre
1cac1bebcb ActivityMonitor: use new units KiB/MiB for display (#5378) 2013-07-13 14:19:08 -04:00
Rene Gollent
07438277e7 Expander settings: Fix text control alignment. 2013-07-13 11:12:45 -04:00
Niels Sascha Reedijk
cf5c715a4a Update translations from Pootle 2013-07-13 06:13:35 +02:00
John Scipione
747612e390 ExpressionParser: Simplify pi detection 2013-07-12 22:39:37 -04:00
John Scipione
786b0f8f1e DeskCalc: Resize a bit more efficiently.
Remove B_FULL_UPDATE_ON_RESIZE flag from view.

We already Invalidate() on FrameResized() which redraws the
view on resize for us. This reduces the number of times Draw() is called
from 3+ in some cases to just one. Unfortunately Draw() is still called
multiple times in some cases producing noticable flickering and drawing
artifacts but it is marginally better.
2013-07-12 22:19:16 -04:00
John Scipione
49620f7b7d DeskCalc: Preserve selection on resize 2013-07-12 22:19:15 -04:00
John Scipione
fbc8aeaac8 DeskCalc: Replace comment with equivalent code 2013-07-12 22:19:14 -04:00
John Scipione
43f09adbe2 DeskCalc: Add private _IsEmbedded() method 2013-07-12 22:19:14 -04:00
John Scipione
d2577d74af DeskCalc: Remove ResizeTo() 2013-07-12 22:19:14 -04:00
John Scipione
ed7d3e22f9 DeskCalc: Remove pre-ControlLook drawing code 2013-07-12 22:19:13 -04:00
John Scipione
29fbfe3110 DeskCalc: Style fixes 2013-07-12 22:19:13 -04:00
John Scipione
b98de092d8 DeskCalc: Update copyright headers
Style fixes to header, update copyright years, remove my name
from files that I didn't have anything to do with besides style fixes,
add myself to ExpressionTextView.cpp
2013-07-12 22:19:12 -04:00
Philippe Saint-Pierre
8f9c2223a3 Shortcut catcher: crash fix, better monitoring of setting file
* Fix bad memory cleaning I introduced in earlier commit, causing crash in add-on
* Upon detecting the deletion of setting file, shortcuts weren't properly removed
* The node monitoring would not filter the right file on every case

Thanks Diver.
2013-07-12 15:35:59 -04:00
Philippe Saint-Pierre
29cfb63041 Regression fix in Tracker
A delay on Tracker quit request was wrongly introduced
(via reboot, or hey Tracker quit, for example)
2013-07-11 15:47:35 -04:00
Jérôme Duval
8dfd68e0f8 Virtio PCI: added support for MSI-X interrupts
* make use of MSI/MSI-X PCI x86 API
* MSI support untested because QEmu only offers MSI-X
* changed a bit the Virtio bus API by adding a queue count parameter
for the setup_interrupt() hook.
2013-07-11 20:37:37 +02:00
Philippe Saint-Pierre
d058a4aed2 Tracker: store default add-ons shortcuts in resource
* Default shortcuts for add-ons are now stored within the binary as a resource
(it was previously appended to the file name, as Open Terminal-T, for example)
* Use ~/config/shortcuts_settings to override those default shortcuts
(editable with Shortcuts preflet)
* Tracker avoid rescanning the add-ons directories when unnecessary
* Monitor the shortcuts_settings to apply changes on the fly
* Fallback to default shortcuts whenever appropriate (settings file deleted, etc.)
* Should fix #4446 (with resource rather than attributes)
2013-07-11 12:38:41 -04:00
Philippe Saint-Pierre
41e6527c1f Tracker addons: strip shortcut from name, instead use resource 2013-07-11 12:38:41 -04:00
Philippe Saint-Pierre
1412a36abc Shortcut add-on: change to accomodate tracker add-ons
* Ignore shortcuts regardings tracker add-ons. Its settings file is now shared
with Tracker, and those are now handled by Tracker.
* Use a BPathMonitor as specified in a TODO to check the presence and changes on
the settings file. (#6278)
* Use a message to ask Tracker to launch/open folders as specified in TODO
2013-07-11 12:38:41 -04:00
Philippe Saint-Pierre
56ea7a1e19 Rename Tracker add-ons to remove shortcut suffix 2013-07-11 12:38:40 -04:00
Ingo Weinhold
02b151d3e3 MultiAddressSpaceLocker::AddAreaCacheAndLock(): race condition
* Add a VMArea* version of AddArea().
* AddAreaCacheAndLock(): Use the new AddArea() version. This not only
  saves the ID hash table lookup, but also fixes a race condition with
  delete_area(). delete_area() removes the area from the hash before
  removing it from its cache, so iterating through the cache's areas
  can turn up an area that no longer is in the hash. In that case we
  would fail immediately. The new AddArea() won't fail in this
  situation, though.

Fixes #9686: vm_copy_area() could fail for the "commpage" area. That's
an area all teams share, so any team terminating while another one was
fork()ing could trigger it.
2013-07-11 17:56:26 +02:00
Ingo Weinhold
7bea0205ed vm_page_allocate_page_run(): fix debug output 2013-07-11 17:56:20 +02:00
Ingo Weinhold
c53508b730 kernel tracing: implement fallback for meta data allocation
We the meta data area couldn't be allocated in any of the supported
(reattachable) places, just use a static allocation. The tracing feature
wouldn't be available at all in such a case.
2013-07-11 17:56:13 +02:00
Ingo Weinhold
8a8a325a1e Terminal: work-around missing/out-of-order modifiers events
... more aggressively than before:
* Only use modifiers().
* Before forwarding any relevant event to the active state, first check
  whether the modifiers have changed.

While the issues should really be fixed where they originate (app
server?), this hopefully fixes all situations where the hyperlink mode
gets stuck.
2013-07-11 17:55:36 +02:00
Rene Gollent
8832917f2c Debugger: SourceView: Fix several drawing bugs.
- MarkerView: If the view was resized, and the newly revealed region was
after the last source line, it wouldn't be redrawn properly.
- TextView: Reset low color for painting the region after the
source.  Otherwise, if either the instruction pointer or a breakpoint
were at the last line of the current source, the empty space after would
be filled in that color rather than the background color.
2013-07-11 07:35:06 -04:00
Rene Gollent
8b2fbc4fa0 Debugger: minor tweak.
Also ensure the custom image list controls are appropriately
shown/hidden when enabling the top-level stop on image load setting.
2013-07-10 21:54:12 -04:00
Rene Gollent
94dbabb056 Debugger: Cleanups for BreakConditionConfigWindow.
- When switching between breaking on all images vs a custom list, rather
than enabling/disabling the controls individually, which wasn't
necessarily obvious from a visibility standpoint, simply show/hide the
entire group of controls as needed.
- Update state of add/remove buttons properly.
- Sanitize input for leading/trailing whitespace.
2013-07-10 19:53:18 -04:00
Jérôme Duval
5994a55ab9 PCI: added a HyperTransport mapping info for x86
* fill it with HT MSI mapping capability information.
* enable/disable mapping on the device accordingly in enable_msi(),
disable_msi(), enable_msix(), disable_msix().
* untested. The mapping could instead be enabled/disabled on the HT PCI bus,
aka the parent device of the device passed to enable_msi/disable_msix().
2013-07-10 22:19:30 +02:00
Jérôme Duval
8986cafc46 PCI: added some missing subclasses definitions
* also renamed the HT capability mask
2013-07-10 20:57:06 +02:00
Jérôme Duval
ca5654d898 PCI: added FindHTCapability() for HyperTransport capabilities.
* untested.
* as it's possible to have several HyperTransport capability blocks, the offset parameter
is used as the start pointer for the search in case it's non zero.
2013-07-10 20:21:35 +02:00
Jérôme Duval
7164302bb6 PCI: added definitions for NVM Express storage controller subclass. 2013-07-10 20:21:33 +02:00
Alex Smith
d1a2f6371a sysinfo: Fixed incorrect memory stats on PAE systems.
Memory statistics were calculated as 32-bit values, so they were incorrect
on machines with more than 4GB RAM (and on x86_64).
2013-07-10 14:02:05 +01:00
Rene Gollent
8f5729e1b9 Debugger: ValueLoader: Add TODO note. 2013-07-09 22:01:52 -04:00
Jérôme Duval
25b723638d PCI: the x86 module now exports an MSI-X API. 2013-07-09 23:53:29 +02:00
Jérôme Duval
8cd7d43670 PCI: implemented reading, configuring and enabling MSI-X. 2013-07-09 23:53:28 +02:00
Jérôme Duval
0c0f333a67 PCI: added MSI-X and HyperTransport definitions
* renamed PCI_cap_id_ldt to PCI_cap_id_ht
2013-07-09 23:53:27 +02:00
Jérôme Duval
86340fcef3 kernel/int.cpp: typo fix 2013-07-09 23:53:26 +02:00
Rene Gollent
91c6c2ec21 Debugger: fix value reading problem.
When reading a variable value from a register, if the value's size is
smaller than the size of the register and the architecture is little
endian, we need to adjust the bit offset we read from in addition to
byte swapping, otherwise we wind up reading the wrong bytes.

This was mainly noticeable in the case of functions that returned
boolean values, which would consequently sometimes show up incorrectly.
2013-07-09 17:37:35 -04:00
Alexander von Gluck IV
991183511b RadeonHD: Drop marketing names
* They are all over the place.. I give up
* Going off of engineering names and DCE is more accurate
* A lot of this info came from the x.org wiki
* I'd like to transition some of the engineering
  name checks to use DCE versions.. they tend to be more
  accurate and exact. (in some cases we can't, but most of
  the time we can)
2013-07-09 12:40:29 -05:00
Alexander von Gluck IV
7de678860d RadeonHD: Fix some marketing names
* Finally got Sea Islands sorted out
  (unless they add new chipsets to the line)
2013-07-09 11:59:43 -05:00
Ingo Weinhold
e141e67596 Debugger: ElfFile::_CheckRange(): fix check 2013-07-08 21:24:26 -04:00
John Scipione
080bf8fe19 Fix rest of warnings, doxygen now runs cleanly.
The BTextView::SetText() methods were included twice, update the first and
remove the second.
2013-07-08 19:30:45 -04:00