Commit Graph
45592 Commits
Author SHA1 Message Date
Rene Gollent d281548a33 Debugger: Cleanups, no functional change.
- Add virtual hook to TeamMemory for retrieving area information
  from the target team.
- Implement said hook in DebuggerInterface.
- Adjust RetrieveMemoryBlockJob to use said hook to retrieve the
  writable state of the target block rather than calling
  get_memory_properties() directly.
2015-05-25 21:44:14 -04:00
Hamish Morrison d6d439f3f7 Reimplement unnamed POSIX semaphores using user_mutex
* Fixes sharing semantics, so non-shared semaphores in non-shared
  memory do not become shared after a fork.
* Adds two new system calls: _user_mutex_sem_acquire/release(),
  which reuse the user_mutex address-hashed wait mechanism.
* Named semaphores continue to use traditional sem_id semaphores.
2015-05-24 14:03:40 +01:00
Rene Gollent 03796a0cef Debugger: Add Inspector UI controls for edit mode.
InspectorWindow:
- Add buttons to control edit mode, and helper functions to maintain
  their state.
- Implement listener hook for memory change events, to track when
  requested memory writes are completed, and update the view accordingly.

Together with the previous batch of commits, this implements the first part
of #9708.
2015-05-23 16:54:18 -04:00
Rene Gollent 6ce909030d Debugger: Add edit mode support to MemoryView.
MemoryView:
- Add hooks and supporting status tracking members to enable edit mode.
  When editing is requested, we allocate a duplicate copy of the current
  block's data to perform edits in. Currently, editing is only supported from
  within the hex view, and when edit mode is enabled, the view is locked to
  8-bit hex mode in order to avoid any possible confusion with regards to
  source vs target endian orientation.
- Extend Draw() to determine whether to write data from the edit data store
  or the actual memory block. Also implement highlighting the current edit
  position caret when in edit mode, as well as highlighting bytes that have
  been changed compared to the block's original data.
2015-05-23 16:54:17 -04:00
Rene Gollent 76ada671ba Debugger: Extend MemoryView listener interface.
MemoryView::Listener:
- Add extra hooks for notifying listener of internal mode changes.
  Implement accordingly in InspectorWindow.
2015-05-23 16:54:16 -04:00
Rene Gollent 68e78ff841 Debugger: Add memory write support.
- Implements various support classes and functions that will be
  needed in order to marshal requests to write to memory in the
  target team.
2015-05-23 16:54:16 -04:00
Rene Gollent 5474c67270 Debugger: Add page protection indicator to inspector.
InspectorWindow:
- We now display a label indicating if the currently inspected block
  is writable or not, so the user knows whether it's possible to modify
  the contents.
2015-05-23 16:54:15 -04:00
Rene Gollent 82bf490fa6 Debugger: Fix MemoryView layout issues.
MemoryView:
- Implement {Min,Max,Preferred}Size() hooks. The default BView
  versions were causing the inspector to sometimes not be properly
  resizable after previous settings were restored.
2015-05-23 16:54:14 -04:00
Rene Gollent 40d8306053 Debugger: Fix inverted error check.
InspectorWindow:
- Fix inverted error check when retrieving settings. This was
  causing us to fail to successfully load/apply previously stored
  settings for the inspector.
2015-05-23 16:54:14 -04:00
nitishjoshi25 94e47209d8 US-International Keymap changed, column 'Cs'
Lowercase letters for letter characters e.g. Caps-Shift-A produces ‘a’,
Caps-Shift-‘Y’ produces ‘y’, etc. Numbers and punctuation shifted so
Caps-Shift-1 produces ‘!’ and Caps-Shift-; produces ‘:’ (colon).

Fixes ticket #11869

Signed-off-by: John Scipione <[email protected]>
2015-05-23 00:02:47 -07:00
Stefano Ceccherini 83a02adb5c BButton: Fix hover status glitch
A BButton didn't lose its hover status when another window partially covered
it and the mouse cursor left its bounds rectangle.
Check for B_EXITED_VIEW in MouseMoved to fix the problem.
This fixes ticket #11962. Thanks to X512 for the analysis of the problem.
2015-05-22 18:36:31 +02:00
Axel Dörfler fa6fca91e6 app_server: Fixed some send fake mouse event issues.
* Activating a window never send a faked mouse message. This was
  noticeable when switching windows using the keyboard; if you then
  scrolled with the mouse wheel you could scroll in the previous window
  still.
* Also, using MouseEventWindow() in _SendFakeMouseMoved() doesn't work
  when you click the window to send it to behind: it's moved on button
  press, but the mouse event window is only released on button release,
  ie. too late.
* This is fixed by always using the current window under the mouse as
  target for the fake event.
2015-05-22 00:25:08 +02:00
Axel Dörfler e711e6e42f Moved BJob, and JobQueue into the support kit.
* Put it in the BSupportKit namespace, following the style introduced
  with the package kit for now.
* The BSupportKit::BJob class no longer knows about the package kit's
  Context class. However, the BPackageKit::BJob class does.
* Due to the namespace juggling, a lot of files had to be touched.
* The JobQueue class remains private.
* Due to the way Haiku is built on itself, you cannot build this change
  under Haiku with an older release.
2015-05-21 21:37:01 +02:00
Automatic Committer 5f9f1ac662 Update pci.ids from pciids.sourceforge.net 2015-05-21 05:20:27 +02:00
Puck Meerburg 47c470c6d0 BeDecorator: Add Stack & Tile support 2015-05-16 20:23:59 +02:00
Janus 85892ec52f PoorMan: Autoresize window.
* Fix #9244.
2015-05-16 16:25:13 +02:00
Automatic Committer e71310a066 Update pci.ids from pciids.sourceforge.net 2015-05-14 05:20:28 +02:00
Axel Dörfler 5ce80a78c9 BMessage: implemented KMessage reply.
* When you receive a message from a KMessage, and reply to it,
  it will automatically reply as KMessage, too.
* This allows to communicate with BLoopers from within the kernel
  or libroot.so.
2015-05-13 23:06:51 +02:00
Axel Dörfler 446d4dca66 Looper.cpp: fixed include order. 2015-05-13 23:06:50 +02:00
Axel Dörfler 4d50aa327c MessageAdapter: cleanup, no functional change. 2015-05-13 23:06:49 +02:00
Jérôme Duval 06e2e74f41 usb_modeswitch: fixed gcc4/64bit build. 2015-05-12 20:16:31 +02:00
haiqu b4c466459f Update Huawei in usb_modeswitch
Signed-off-by: Jérôme Duval <[email protected]>
2015-05-12 20:16:31 +02:00
Axel Dörfler c2bc264987 HaikuDepot: use at least strcasecmp() for sorting.
* With localized/pretty titles, the formerly used strcmp() is not
  adequate anymore.
2015-05-11 22:55:57 +02:00
Axel Dörfler d0f27e418f DiskProbe: improved initial window size.
* Also some automatic whitespace cleanup.
2015-05-11 22:55:49 +02:00
Axel Dörfler 748c0f3021 kernel: Fixed broken port tracing.
* Broken since the scheduler merge.
2015-05-11 22:55:41 +02:00
Janus 8d1603cd54 Debugger: BColumnListView supports big fonts.
* Fix #9240.
2015-05-10 23:53:55 +02:00
Jérôme Duval 73de58376a Update icu x86_64 package with namespace renaming enabled.
"Renaming" means the icu namespace is suffixed with the version number,
atm icu_55. Using "renaming" allows to use two different versions of ICU,
thus easing upgrades. For instance haikuwebkit uses a current version of ICU,
while the system uses a newer one after an upgrade.

* Replace all uses of the icu namespace in our public headers, with a macro
defaulting to icu. As the namespace is only used for private fields pointers,
there should be no impact.
* Locale kit *.cpp have to import the macro from <unicode/uversion.h> *before*
including any locale headers. Ditto for a Time preferences cpp file. This way,
the correct current icu namespace is referenced.
* Fixes bug #12057.
2015-05-10 21:52:36 +02:00
Michael Lotz 87af13952c fat: Fix time format constant, fixing debug build of FAT fs. 2015-05-10 18:31:04 +02:00
Janus 86213fcb0d Printers: printers preferences uses layout.
* Partialy fix #4178.
2015-05-09 23:20:12 +02:00
Stephan Aßmus 0cbb6c11ee Icon-O-Matic: Make GradientTransformable a BReferenceable
* Switch to using support/Referenceable.h instead of using an older copy
   of this code.
 * Make GradientTransformable a BReferenceable and fix #12033.
2015-05-09 21:38:15 +02:00
Janus 8f1823774c Printers: PDF uses layout.
* Fix Advanced settings dialog.
* Fix Fonts dialog.
* Improve Page Setup.
* Partialy fix #4178.
2015-05-09 16:52:12 +02:00
Augustin Cavalier ae495ca8fe filesystems: we aren't BeOS, so we can safely use -O2(+). 2015-05-08 13:28:01 -04:00
Augustin Cavalier 4bb1fc1791 Tracker: get rid of fTrashContextMenu member from DeskWindow...
... as it's useless and shadowing the one in ContainerWindow.
No functional change intended, and none occurs (from my testing).

PVS message V703.
2015-05-08 13:07:35 -04:00
Augustin Cavalier eb8660457a Tracker: Model: use SetToFormat. 2015-05-08 13:02:10 -04:00
Hamish Morrison fb67dbf0a4 user mutex: dequeue waiters when waking them up
* This prevents the same waiter being woken multiple times, before it
  has a chance to run and dequeue itself.
2015-05-07 23:20:54 +01:00
Automatic Committer d1b6645b56 Update usb.ids from www.linux-usb.org 2015-05-07 05:20:32 +02:00
Automatic Committer 600f975f36 Update pci.ids from pciids.sourceforge.net 2015-05-07 05:20:30 +02:00
Janus 7a2aced4bf MediaPlayer: playlist uses system colors.
* Partialy fix #10840.
2015-05-06 18:59:24 +02:00
Janus d54a4f43cc BColumListView: uses system colors.
* Partialy fixes #10840.
2015-05-03 19:28:23 +02:00
Janus 8fceacff2d InterfaceDef: Use a lighter grey for list selection.
* Use the BColumnListView grey for list selection.
2015-05-03 19:28:16 +02:00
Hamish Morrison 10b4fed24f Add support for pthread_condattr_get/setclock()
* Allows use of either CLOCK_REALTIME or CLOCK_MONOTONIC as the time
  base for pthread_cond_timedwait().
2015-05-02 20:55:57 +01:00
Humdinger 59c0f3b6f9 Unify version output ("v" vs "Version", sentence casing. 2015-05-02 17:38:15 +02:00
Janus 99e015b439 BCalendarView: Use system color.
* This widget is used in Time and Deskbar.
* Partialy fixes #10840.
2015-05-02 17:33:08 +02:00
Janus 91a14c7c9b Time: reintroduces seconds for aesthetic reasons.
* Thanks to Humdinger for point out the problem.
* Problem discussed in #10840.
2015-05-02 17:33:00 +02:00
Michael Lotz 52bf63bbbb fat: Fix compiler warnings. 2015-05-02 15:49:55 +02:00
Michael Lotz 09592b1dcc fat: Fix stack corruption on 64 bit due to wrong count type.
On 64 bit platforms a 64 bit size_t was written at the (incorrect)
uint32 on the stack, causing the adjacent bytes variable to be
clobbered. Because of this, the vectors wouldn't actually be filled
with any file data, making the content of files inacessible.
2015-05-02 15:49:55 +02:00
Michael Lotz 110eea4517 fat: Print format, whitespace and style cleanup only.
I took the liberty to convert most of the debug output from hex to
decimal as unprefixed hex values are rather confusing.
2015-05-02 15:49:54 +02:00
Humdinger 3292b90274 Unify version output ("v" vs "Version", sentence casing. 2015-05-02 10:48:08 +02:00
Jérôme Duval 105c7e2737 tcpdump: use the outsourced packages.
* remove tcpdump and libpcap from the build and from the tree.
2015-05-01 12:15:09 +02:00
Adrien Destugues d3a46694d5 Fix "eject when unmounting".
It seems getting the device from the partition after it is unmounted
does not work reliably. Get the device much earlier in the function,
before actually unmounting it.

Fixes #2630.
2015-05-01 08:08:43 +02:00