Commit Graph

39442 Commits

Author SHA1 Message Date
Jérôme Duval
60128b54b4 Icon-o-matic: some 64 bit fixes 2013-05-04 15:31:04 +02:00
Jérôme Duval
48350f1a72 bluetooth_server: some 64 bit fixes 2013-05-04 15:31:04 +02:00
Jérôme Duval
afcbccb9b5 Codycam: some 64 bit fixes 2013-05-04 15:31:03 +02:00
Jérôme Duval
843a122fd9 MediaPlayer: some 64 bit fixes 2013-05-04 11:15:41 +02:00
Rene Gollent
966966a38d Cleanups. 2013-05-03 20:51:06 -04:00
Rene Gollent
57745c4eb9 Minor tweak to allow window to be resizable. 2013-05-03 20:46:50 -04:00
Rene Gollent
aad822734d Add message for starting a new team. Implements #9682.
- The Debugger app now accepts a message asking it to start a new team.
  It attempts to do so given the path and arguments, and passes the
  result back to the sender if desired.
2013-05-03 20:37:48 -04:00
Rene Gollent
9b57eae7e6 Wire up Start new team button. 2013-05-03 20:35:55 -04:00
Rene Gollent
1953ec9d1d Add UI window for starting a new team. 2013-05-03 20:35:53 -04:00
Rene Gollent
72354d6759 Also disable Attach button for kernel. 2013-05-03 19:05:23 -04:00
John Scipione
5041cdf4d9 Fix a few minor BMenu issues, follup on hrev45610
Only AttachScrollers() and scroll if B_ITEMS_IN_COLUMN because if not we don't
support scrolling anyway. Also, rename superpoint variable to superPoint.
2013-05-03 16:27:05 -04:00
Jessica Hamilton
4898c615d6 BMenu: scroll marked item into view when menu has scrollers attached.
Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2013-05-03 21:10:51 +02:00
Jérôme Duval
e5d65858f2 Fix more GCC4 narrowing conversion warnings.
* Code style would be to fix.
2013-05-03 19:42:04 +02:00
Murai Takashi
2e1347b2bf Fix more GCC4 narrowing conversion warnings
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2013-05-03 19:34:40 +02:00
Rene Gollent
c7b441ac1e Cleanup. 2013-05-02 22:08:37 -04:00
Rene Gollent
22dc5f2bcd Add tooltips to breakpoint marker view.
- If the user hovers over a valid breakpoint marker location, emit a
  tooltip message indicating the action that can be taken.
2013-05-02 22:03:03 -04:00
Rene Gollent
12abf3b280 Various cleanups to Teams window.
- Convert to using layout APIs.
- Add buttons to attach to an existing team or create a new one (not
  implemented yet).
- Various minor style cleanups.
2013-05-02 22:02:52 -04:00
John Scipione
a56ddb2bea BOutlineListView: Refactor to eliminate repeat vars
The latch width, height and indent width are now all set in one
place in LatchRect() and then LatchRect() is used in multiple places.
2013-05-02 20:13:55 -04:00
Jerome Duval
c33b645d33 ext2: Return more than a single dirent at a time in ext2_read_dir().
* similar to what mmlr did in hrev45575 for bfs.
2013-05-02 23:44:03 +02:00
Jerome Duval
795f13d6f2 btrfs: Return more than a single dirent at a time in btrfs_read_dir().
* similar to what mmlr did in hrev45575 for bfs.
2013-05-02 23:44:02 +02:00
Michael Lotz
8a43cad2ef BPlusTree: Fix fCurrentKey in backward TreeIterator traversal.
When reaching the next node the current key should be set to the next
valid index within that node (0 for forward and NumKeys() - 1 for
backward). This did not cause any harm as BFS uses forward traversal
only.
2013-05-02 23:26:05 +02:00
Michael Lotz
50ef2db4a8 BPlusTree: Fix GCC4 false positive of possible unintialized use. 2013-05-02 23:26:04 +02:00
Michael Lotz
1a5e87cc64 haiku_loader: Reuse BPlusTree implementation of the BFS add-on.
Instead of having an almost exact, albeit read only, duplicate of the
implementation.
2013-05-02 23:26:03 +02:00
Michael Lotz
6b65a838e0 BPlusTree: Style cleanup only, no functional change. 2013-05-02 23:26:02 +02:00
Stefano Ceccherini
bb16974758 Cleanups.
Removed code path for be_control_look == NULL.
Improve comments.
2013-05-02 20:59:56 +02:00
Philippe Houdoin
ca4f3ba33c Patch by Pete Goodeve fixing #9311. Thanks.
* Respect device's declared max packet size.
  This improve support of USB midi controlers which don't support
  arbitrary bulk read size, like iCON ones.
* Fix an logic inversion regarding O_RDONLY/O_WRONLY
  and output or input ports only devices.
2013-05-02 09:06:20 +02:00
Jessica Hamilton
3bf528b59c Fix positioning of BPopUpMenu when a nested item is selected.
Signed-off-by: John Scipione <jscipione@gmail.com>
2013-05-02 00:44:07 -04:00
John Scipione
ecc0703995 Use a static_cast in place of a C cast 2013-05-01 22:32:41 -04:00
John Scipione
01b1b8bdaa BPopUpMenu style fixes 2013-05-01 22:18:56 -04:00
Rene Gollent
211e7b396d DwarfImageDebugInfo: Minor optimization.
In the fallback case where full debug information is unavailable,
query the underlying DWARF file to see if CFI is available at all.
If it isn't, skip creating function debug info objects.
2013-05-01 20:08:18 -04:00
Rene Gollent
9dce79360b DwarfFile: Add hook to query availability of frame unwind info. 2013-05-01 20:05:52 -04:00
Rene Gollent
99fac5a9dc Extend SpecificImageDebugInfo::GetFunctions() ...
...to also take the list of symbols in the image as a parameter.
This allows us to prefetch the symbols once in
ImageInfo::FinishInit() for each image and then let each specific info
subclass use them if/as needed, rather than having to do the entire
symbol lookup/sort twice for every image.

- Adjust callers accordingly.
2013-05-01 19:53:00 -04:00
John Scipione
c19cb4ddc6 Update BOutlineListView arrows to new style
...from BControlLook, and while I'm at it, use font-relative spacing dimensions.
2013-05-01 18:22:35 -04:00
Adrien Destugues
28a3906351 Web+ AboutWindow changes: fix build. 2013-05-01 15:44:41 +02:00
Adrien Destugues
df3b8173ee Fix Web+ for AboutBox API changes. 2013-05-01 15:09:30 +02:00
Adrien Destugues
df2257de36 Make BAboutWindow movable again.
Also fix build, forgot some files in previous commit.
2013-05-01 13:07:29 +02:00
Adrien Destugues
31535ac63b Make BAboutWindow modal
* Set its type to B_MODAL_WINDO, and also set B_NOT_MOVABLE
 * Since this removes the window tab, add an "Ok" button to close the window
 * Remove the GetWindow mess and just use it as any regular window
 * Adjust all callers again

The AlertPosition method doesn't seem to work right, the window pops up
offset to the right. I also noticed that some of our calls to BAboutWindow
are actually not reacable because we removed Abutrequested from the apps.
Maybe we should clean them up (locale preflet and activity monitor are examples)

More annoying is the fact that opening a modal window from a deskbar replicant
is modal against the whole deskbar. Not sure what to do about that.
2013-05-01 10:10:37 +02:00
Rene Gollent
196ab88d06 Extend debug_create_symbol_lookup_context().
- debug_create_symbol_lookup_context() now takes an image ID
  parameter that can optionally be used to restrict the symbols
  it gathers to only those of the targeted image rather than the
  entire team, allowing for significantly more lightweight usage
  when the desired image is known. The previous behavior can still
  be obtained if desired by passing -1 as said ID.

- Adjust callers.
2013-04-30 21:34:45 -04:00
John Scipione
f3decd2060 Fix #9726 Revert CenterIn() and CenterOnScreen()
... back to their previous void returning roles. AlertPosition() is used instead to
check that an alert fits within the sides of the screen and all that.

Also add another CenterOnScreen() method that takes a Screen ID
so you can center a window on another monitor that the one it is currently on
(theoretically someday anyway).
2013-04-30 20:15:33 -04:00
John Scipione
d4d842b4ed Style fix in BAlert, some sort of strange spaces got in there 2013-04-30 20:15:32 -04:00
John Scipione
6723d9fc94 Create a BWindow::AlertPosition() method and use it
...to position alert's and open/save dialogs nicely inside of the parent window,
or if that is unavailable, the screen frame.

AlertPosition() is private (for now) but BAlert and BFilePanel are BWindow's friends so
BWindow allows those classes to touch it's privates.
2013-04-30 20:15:32 -04:00
John Scipione
f74ff8d324 Remove this bit of code from StyledEdit
....as we're gonna do the work in BFilePanel instead.
2013-04-30 20:15:32 -04:00
Adrien Destugues
fd19c7366d Fix BAboutWindow lifecycle
BAboutWindow returned false in QuitRequested in order to hide instead of closing.
Not only this keeps a BLooper running for a rarely used window, but it also
prevents quitting an application in the window was not destroyed first.

 * Remove aforementioned QuitRequested method,
 * Add a static GetWindow method that returns the existing about window, if there
is one, or creates one if there is not. A boolean can be set to tell the caller
what happened,
 * Adjust all callers to use that new method, instead of managing the window themselves.
2013-04-30 21:50:24 +02:00
John Scipione
3a12979db2 FindPanel: Set the MIME type field to fixed width
...instead of based on the width of its contents which can make the window
grow too wide. Fixes #9719
2013-04-29 22:25:12 -04:00
John Scipione
c80aa6e4bc Simplication in Tracker Find Panel
If attribute mode and you select a mime type, Remove then add the rows first
with the first items marked, then go through and re-mark the selected item.
2013-04-29 22:22:06 -04:00
Jérôme Duval
2e00579938 bsnow: use uchar instead of char to avoid narrowing conversion warnings. 2013-04-29 21:44:01 +02:00
Jérôme Duval
cd749a7652 Terminal: use unsigned short instead of int to avoid a narrowing conversion warning.
* unsigned short is the type used in the struct winsize.
2013-04-29 21:40:34 +02:00
Jérôme Duval
e367c05620 SoundRecorder: fixed two warnings.
* warnings about comparison between signed and unsigned integer expressions.
* also use std::min() instead of min_c()
2013-04-29 21:35:40 +02:00
Jérôme Duval
a83d8d14b5 Installer: fixed two warnings.
* warnings about comparison between signed and unsigned integer expressions.
* also use std::min() instead of min_c()
2013-04-29 21:31:20 +02:00
Jérôme Duval
88499de190 attribute_overlay: fixed a warning.
* warning about comparison between signed and unsigned integer expressions.
2013-04-29 21:25:20 +02:00
Jérôme Duval
3756e0ac38 kernel: use uint64 instead of int64 to avoid narrowing conversion warnings.
* gdb_register is used only in arch_debug.cpp
2013-04-29 21:20:35 +02:00
Jérôme Duval
295cdbee6b keymap: use uchar instead of char to avoid narrowing conversion warnings. 2013-04-29 21:09:59 +02:00
Jérôme Duval
311e148798 vfs: fixed two warnings.
* warnings about comparison between signed and unsigned integer expressions.
2013-04-29 20:57:34 +02:00
Jérôme Duval
56efe80f85 nfs4: fixed two warnings.
* warnings about comparison between signed and unsigned integer expressions.
* the use of max_c() was superflous anyway as the result is only used for a comparison
with the left value.
2013-04-29 20:29:10 +02:00
Jérôme Duval
778d2528d6 write_overlay: fixed three warnings, I hope correctly.
* warnings about comparison between signed and unsigned integer expressions.
2013-04-29 20:22:13 +02:00
Jérôme Duval
d592954e3c app_server: avoids referencing a temporary IntRect instance.
* GCC lets us use a const reference to a temporary, but using it after it disappeared
  is incorrect.
* reverts hrev45576 as this patch seems more correct.
2013-04-29 20:17:14 +02:00
John Scipione
ed08c5287a Update CPUFrequency layout a bit
* Use font relative insets and spacing for window.
* Make the input box for Integration Time more reasonably sized and right
  align the label.
* Make the Install replicant into Deskbar button flush right.
* Use the standard amount of space between the Defaults and Revert buttons.
2013-04-29 01:20:52 -04:00
John Scipione
ec63fd3249 Use std::max instead of max_c 2013-04-29 01:18:13 -04:00
John Scipione
3c777060bc Fix gcc4 build, use max_c from SupportDefs instead of max 2013-04-29 01:10:06 -04:00
John Scipione
f542c5137d Fix bug involving the condition string being removed when it shouldn't
This bug occured when you selected from the mime type menu field while in
attribute mode. The rows are removed and added again but the condition string
view was left out because the menu item wasn't marked yet. Reordered to remove
row, then set marked, then add row checking if marked and adding the condition
string view based on the marked mime type. If no mime types are set it uses the
first mimetype instead which is what we want in that case.
2013-04-28 23:49:27 -04:00
John Scipione
2db4f1832a Make logic menu field more font dynamic, wasn't working for Japanese
Some style fixes and code simplications too.
2013-04-28 23:44:09 -04:00
John Scipione
e001e604b9 Consolidate strings so they are added to the catalog just once. 2013-04-28 23:41:34 -04:00
John Scipione
337a12f63f Another style fix 2013-04-28 23:39:49 -04:00
John Scipione
32994cb474 Style fixes and code simplifications 2013-04-28 23:38:04 -04:00
John Scipione
955d6389af Close window on Esc 2013-04-28 23:35:54 -04:00
John Scipione
72fb3d3984 Remove the alert dialog adjustements, they are now done in BAlert directly
The save panel adjustment has been kept and modified a bit to position the
window nicely. It too uses the BWindow::CenterIn() method that adjusts based
on the screen edges.
2013-04-28 20:30:22 -04:00
John Scipione
e894fbc0ac Adjust BAlert to position the alert using the revamped BWindow::CenterIn() method.
BAlert::AlertPosition() has been superceded by the new BWindow method and should
be considered deprecated. Note that the alert position is not in the direct center of the
screen, it is offset vertically like before.
2013-04-28 20:30:22 -04:00
John Scipione
54153cc8b2 Update CenterIn() and CenterOnScreen() methods in BWindow
* These methods now return the new point after centering.
* But more importantly CenterIn() does some new adjustments to keep the window
  position inside the screen edge. If you pass the screen frame into CenterIn()
  it skips these adjustments.
2013-04-28 20:30:21 -04:00
John Scipione
65e6ce6d53 Style changes in Alert and StyledEdit Find Window 2013-04-28 20:30:19 -04:00
Rene Gollent
23dfa8b82e Add column to threads list view for stop reason. 2013-04-28 13:53:46 -04:00
Jérôme Duval
849683f4c8 app_server: workaround for GCC 4.7 misbehavior in IntRect.
* moved the inlined BRect constructor of IntRect to the cpp file. GCC will inline the method
anyway.
* impacted methods were both AGGTextRenderer::RenderString() in
src/servers/app/drawing/Painter/AGGTextRenderer.cpp, calling the StringRenderer constructor
with a BRect reference.
* unless someone comes up with an explanation, I'll try to come with a smaller testcase to
submit this problem upstream.
2013-04-28 16:39:14 +02:00
Jérôme Duval
7db03c63a0 FontManager: fixed trace mode 2013-04-28 16:39:13 +02:00
Michael Lotz
a01dd96346 Return more than a single dirent at a time in bfs_read_dir().
Return as many dirents as fit into the provided buffer. The readdir()
implementation in libroot tries to get many dirents and caches them to
reduce the amount of syscalls and the associated overhead.

This reduces the syscall count dramatically for use cases where a lot
of directories are enumerated. A "git status" on a Haiku repository for
example goes from over 50k read dir syscalls down to just under 7k.
The performance gain is only around a moderate 5% in that use case
though.
2013-04-28 13:36:20 +02:00
Michael Lotz
91b4626a78 Check for and report an error on key buffer overrun.
This usually wasn't a problem as the key buffer is generally large
enough to hold a single value. Still on short buffers or very long
it could have silently overrun before.
2013-04-28 13:33:05 +02:00
Michael Lotz
c4dbefe0b4 Fix build with tracing turned on. 2013-04-28 03:45:55 +02:00
Michael Lotz
d057026dc4 Poll more frequently for the first explore.
This reduces needless waiting for the special case of the polled and
synchronous first explore.
2013-04-28 03:45:53 +02:00
Michael Lotz
22af7532d1 Reduce port reset recovery time from 250ms to 50ms.
The specs say the reset recovery time is 10ms only. The extra 40ms are
taken from the Linux hub driver.
2013-04-28 03:45:52 +02:00
Michael Lotz
827c7224a0 Implement debounce sequence according to USB 2.0 specs.
This replaces waiting a fixed time of 300ms for the device power to
stabilize. In the ideal case this reduces the boot time by 200ms per
connected device (including internal hubs).

This is very similar to what Linux implements and we use the same time
values. An interval of 25ms is used to check for connection state
changes, the stable time is at least 100ms as per the USB specs and the
whole process times out after 1.5 seconds.
2013-04-28 03:45:51 +02:00
John Scipione
e94d7e41e8 Remove the And/Or menu field when you remove a row 2013-04-27 20:26:46 -04:00
John Scipione
43f6509cd0 Turn off radio mode and set label from marked for fRecentQueries 2013-04-27 19:40:36 -04:00
John Scipione
35e34dda8a Use sentence case lowercasing the word "query" 2013-04-27 19:40:35 -04:00
John Scipione
0184cbec0a Eliminate variable, set directly 2013-04-27 19:40:34 -04:00
John Scipione
f7467fd1ff Set the PaneSwitch arrow rect based on the be_plain_font size 2013-04-27 19:40:32 -04:00
John Scipione
bedc69662e Put checkboxes under query box in more options 2013-04-27 19:40:31 -04:00
John Scipione
d3277fa8e7 Tweak the latch position 2013-04-27 19:40:28 -04:00
John Scipione
e8a78127bd Sentence case Recent queries, clip count from 0 to 10 2013-04-27 19:40:26 -04:00
John Scipione
1db0bf0058 Make the logic menu fields non-navigatable, tab order 2013-04-27 19:40:25 -04:00
John Scipione
16c46df9b1 Remove dead code, de-indent comment 2013-04-27 19:40:24 -04:00
John Scipione
c65c2a54bd Rename add and remove to add button and remove button 2013-04-27 19:40:22 -04:00
John Scipione
c00d064252 Right align Add and Remove buttons 2013-04-27 19:40:21 -04:00
John Scipione
56fe9fad23 Refactor attaching FindPanel to FindWindow 2013-04-27 19:40:19 -04:00
John Scipione
8e8b861c83 Set the initial rect to 0 and center the window on screen 2013-04-27 19:40:18 -04:00
John Scipione
a12df99d53 Use font relative spacing units 2013-04-27 19:40:15 -04:00
John Scipione
1b98948370 Style fixes 2013-04-27 19:40:13 -04:00
Jessica Hamilton
21fd5809a7 Update Tracker's Find Panel to use the Layout API.
Signed-off-by: John Scipione <jscipione@gmail.com>
2013-04-27 19:34:17 -04:00
Rene Gollent
a10aec9c5c Fix some cases where return values failed to resolve.
- Sometimes the return type doesn't appear to have a
  an associated byte size attribute. If so, simply
  revert to using the architecture's register width,
  since at least empirically all such cases appear
  to be primitive types that fit into one anyways.
2013-04-27 18:15:31 -04:00
Rene Gollent
6a2d6f5062 Fix a case where values wouldn't be requested properly.
- If a node was already expanded, and we then removed/replaced
  its children, those wouldn't automatically get their value nodes
  added. Consequently, value retrieval for them would fail until
  the parent was collapsed/re-expanded. If we encounter such a
  model node when receiving a value request, notify the table model so
  it can construct the value node appropriately.
2013-04-27 16:04:33 -04:00
Rene Gollent
7198436cc2 Fix several crash problems in Debugger.
- When removing a value node in response to ValueNodeChildrenDeleted,
  we need to recurse down and ensure that each node's children are
  likewise notified/removed. Otherwise we end up with deleted child
  nodes in the node table, which in turn led to potential crashes when
  either adjusting a node's type and/or its visible array range.
2013-04-27 15:11:04 -04:00
Rene Gollent
fc23dd2ca2 Implement ranged container hooks for B{Object}List handler. 2013-04-27 14:21:45 -04:00
Rene Gollent
920576bbfe Implement setting visible ranges on containers.
- Objects that act as ranged containers now expose a menu option
  which allows the user to input a comma-separated list of ranges to
  show. These need not be contiguous, ergo one can show only
  the first and last elements of an array, or some random set of
  indices in the middle as well.
2013-04-27 14:04:37 -04:00
Rene Gollent
7969833f35 Add utility functions for parsing a range expression.
- Fills out the supplied RangeList with the set of ranges that
  the expression stipulates.
2013-04-27 14:04:36 -04:00
Rene Gollent
874abbdaaf Remove unnecessary cast. 2013-04-27 14:04:35 -04:00
Rene Gollent
8a9423ee95 Add RangeList utility class.
- Tracks a set of ranges. Implicitly deals with collapsing overlapping
  ranges as they're added.
2013-04-27 14:04:35 -04:00
Rene Gollent
b11fd75b4b Fix broken ValueNodeChildrenDeleted() behavior.
- Due to the way the item list was being iterated,
  ValueNodeChildrenDeleted() would only actually remove every
  other child.
2013-04-27 14:04:34 -04:00
Rene Gollent
aa366c07b1 Add an information blurb option to PromptWindow.
- PromptWindow now takes a parameter which contains optional
  informational text to display above the text control.

- Adjust callers.
2013-04-27 14:04:33 -04:00
Ingo Weinhold
a83983a2cd acpi_cpuidle: Fix driver initialization
* For some reason the code in acpi_processor_init() assumed that the
  CPU index returned by ACPI was 1-based. On my machines it is 0-based
  and the syslogs on Trac from the last months don't show any
  exception. The code even contained a hack to force satisifying that
  assumption for a single-CPU machine.
* Instead of calling intel_cpuidle_init()/acpi_cpuidle_init() when
  initializing the driver for the device node for CPU 0 -- thus
  depending on the order the device manager iterates through the CPU
  device nodes -- rather check whether all CPU nodes have indeed been
  encountered.
* acpi_cpuidle_init_driver(): Don't leak the cookie in error case.
* acpi_cpuidle_uninit_driver(): Clear the sAcpiProcessor element for
  the uninitialized CPU node. We'd also have to unregister the idle
  callback when acpi_cpuidle_uninit_driver() is called for the first
  CPU device node, but there isn't any API for it ATM.

Fixes a crash on machines with multiple CPUs where acpi_cpuidle_setup()
wouldn't already fail early (apparently only mine).
2013-04-27 17:13:04 +02:00
Ingo Weinhold
b28421c927 acpi_cpuidle.cpp: Some style cleanup
Just what I spotted at the first glance. There's more general cleanup
to be done, e.g. regarding the public API.
2013-04-27 17:13:04 +02:00
Michael Lotz
a064168869 Fix truncation of comparison value introduced in 848acd67.
Casting the difference of the two off_t values to size_t may truncate
the result. Doing so before the comparison will therefore break it.
Instead cast the size to off_t to get around the signed versus unsigned
integer expression comparison and then cast the result of the comparison
to size_t again. Should fix #9714.
2013-04-27 18:42:05 +02:00
Jérôme Duval
32d7bcb470 VMAnonymousCache.cpp: use off_t instead of page_num_t
* use off_t instead of page_num_t to fit in swap_hash_key struct.
* this fixes narrowing conversion and signedness warnings on GCC 4.7.
2013-04-27 14:43:20 +02:00
Jerome Duval
dc0e22d800 Revert "VMAnonymousCache.cpp: changed page_index type to page_num_t"
This reverts commit f7176b0ee5. Citing Ingo:
"off_t is the correct type to use for addressing pages in a cache/file,
which page_num_t should only be used for physical pages." I'll see how to
fix the GCC 4.7 warnings differently :)
2013-04-27 13:36:49 +02:00
Alexander von Gluck IV
e514bc713c usb_asix: Add DUB-E100 rev.C1 USB ID 2013-04-27 00:28:49 +00:00
Jérôme Duval
f7176b0ee5 VMAnonymousCache.cpp: changed page_index type to page_num_t
* consistently use page_num_t for page numbers and off_t for offsets and sizes.
2013-04-26 21:17:39 +02:00
Jérôme Duval
cc3fb1f518 icon-o-matic: converts the result of round() to uint8 to fit in struct rgb_color.
* GCC 4.7 warning: narrowing conversion of '(int)(((ColorPickerView*)this)->ColorPickerView::r * 2.55e+2f)'
from 'int' to 'uint8 {aka unsigned char}' inside { } is ill-formed in C++11 [-Werror=narrowing]
2013-04-26 21:17:38 +02:00
Jérôme Duval
5f08555a59 GCC 4.7.x doesn't allow writes in a referenced packed struct.
* error: cannot bind packed field 'image->preloaded_elf64_image::elf_header'
    to 'ELFLoader<ELF64Class>::EhdrType& {aka Elf64_Ehdr&}'
2013-04-26 21:17:36 +02:00
Jérôme Duval
44d2f5f53e scsi bus manager: casts path_id to uint8.
* added a TODO about create_id() generating int32 ids when we need uint8.
* GCC 4.7 warning fixed: narrowing conversion.
2013-04-26 21:17:36 +02:00
Jérôme Duval
848acd672c devfs: casts as size_t before comparing.
* error: comparison between signed and unsigned integer expressions.
2013-04-26 21:17:34 +02:00
Jérôme Duval
8b9c0710cd PCI bus manager: changed the type of domain from int to uint8.
* fixed narrowing conversion problem found by GCC 4.7.
2013-04-26 21:17:33 +02:00
Jérôme Duval
d762df1df1 GCC 4.7.x doesn't allow setting a field in a referenced packed struct.
* error message: error: cannot bind packed field
'args->kernel_args::platform_args.platform_kernel_args::apm' to 'apm_info&'
* the reason would be that the reference doesn't have alignment information anymore.
* changed the reference to const for read access, and use the long form for setting a field.
2013-04-26 21:17:31 +02:00
Jérôme Duval
40cf1c0518 net_server: 0xff is out of the bound of char, use uint8 instead
* found by GCC 4.7.3
2013-04-26 21:17:29 +02:00
Rene Gollent
3e9e1e11b2 Resolve TODO: get team information via DebuggerInterface. 2013-04-25 18:54:59 -04:00
Rene Gollent
2a5d40cbe9 Add GetTeamInfo() call to DebuggerInterface.
- Abstracts out retrieving team information, since this may need to be
  done differently depending on the interface type.
2013-04-25 18:54:58 -04:00
Rene Gollent
aecef63c52 Add team information model class. 2013-04-25 18:54:58 -04:00
John Scipione
926535abb0 Style update to BListView.
Mostly rename msg argument of MessageReceived to message. Also a couple
of pointer style fixes.
2013-04-25 17:55:21 -04:00
Rene Gollent
95098f927d Fix some problems with typecast handling.
- If the given type had no modifiers specified, the base type string
  wasn't being moved out of the input buffer, leading to it mistakenly
  being parsed as a modifier. This would result in errors for simple
  cases such as a cast to size_t. Thanks Axel for reporting.
2013-04-24 22:07:27 -04:00
Rene Gollent
bbaaaf2eae Improve VariableView's tooltip handling.
- Make GetToolTipInfo() sensitive to the column being hovered over.
  If hovering over the variable name, we display its value location
  information as before. However, if hovering over the value column,
  the tooltip now displays the full value of the variable, if
  available.
2013-04-24 21:17:49 -04:00
Rene Gollent
7b6fd5d1a8 Some more report format fine tuning.
- Removed extraneous tabs.
- Shortened locking column in area/abbreviated some names.
2013-04-24 18:05:02 -04:00
Pawel Dziepak
26b2423794 runtime_loader: Always map program image at random position 2013-04-24 14:06:05 +02:00
Pawel Dziepak
902d41fc75 util: Use real_time_clock() in secure PRNG 2013-04-24 14:05:28 +02:00
Pawel Dziepak
c36a000cb4 vm: Fix off-by-one mistakes in _InsertAreaSlot 2013-04-24 14:05:27 +02:00
Rene Gollent
dd817ff93c Handle team deletion debug event.
When the target team exits, notify the user and shut down the debugger.
2013-04-23 23:05:36 -04:00
Rene Gollent
8b49cb7645 Rework report format as suggested in #9697.
- Areas, images and semaphores are now presented in a more readable
  tabular format.

- Areas: Columns now include base address, end address and size to
  make it easier to determine if e.g. an address easily falls within
  a given area, and are also sorted by base address. Protection flags
  and locking have been made more concise, with a corresponding key.
  Name has been moved to the last column to allow for a more compact
  format.

- Images: Name moved to last column for improved column formatting,
  purposes, and sorted by load address.

- Threads are now sorted such that all threads in exception states
  come at the tail end of the list, and the format has been revised
  to make them a bit easier to parse. State is only indicated if
  something other than running, along with any available exception
  state messages.
2013-04-23 21:31:18 -04:00
Jérôme Duval
8386448172 ControlLook: fixed wrong conversion to uint32 2013-04-23 23:29:51 +02:00
Alexander von Gluck IV
526232b6d8 usb_asix: Little additional style cleanup
* Things I missed the other day
* No functional change
2013-04-22 20:47:43 -05:00
Rene Gollent
2b7a67e7aa Fix #9700.
- CLI "threads" command now outputs the exception reason for stopped
  threads, if available.
2013-04-22 21:12:49 -04:00
Pawel Dziepak
0fef11f1a8 arch: some CPUID leaves may be not available 2013-04-23 02:43:26 +02:00
John Scipione
25ca105ebf Tiny style fix 2013-04-22 20:10:34 -04:00
Rene Gollent
c24adb2950 Rework DefaultNotificationService registration.
- Instead of implicitly registering and unregistering a service
  instance on construction/destruction, DefaultNotificationService
  now exports explicit Register()/Unregister() calls, which subclasses
  are expected to call when they're ready.

- Adjust all implementing subclasses. Resolves an issue with deadlocks
  when booting a DEBUG=1 build.
2013-04-22 18:42:21 -04:00
Pawel Dziepak
be573dcd88 arch: make sure not to set NX-bit when it is reserved 2013-04-22 17:36:36 +02:00
Philippe Saint-Pierre
3f0a22c88b Chart Demo: Fix for failure to detect already opened popup windows
Clicking on the FPS, color chart or any other buttons meant to make a popup
window appear was failing to detect and re-focus an already opened popup.
2013-04-21 20:51:02 -04:00
Rene Gollent
4b8a8922cb Reorder sections of debug reports. 2013-04-21 18:52:24 -04:00
Stefano Ceccherini
4ab260da80 Don't leak the socket.
BNetworkRoster::AddInterface and RemoveInterface did not close
the socket.
2013-04-21 21:16:52 +02:00
Rene Gollent
e33233713a Fix Web+ debug build. 2013-04-21 14:11:52 -04:00
Stefano Ceccherini
875b9f66d1 Use BNetworkDevice to get the current associated wireless network.
Use BNetworkDevice instead of using the driver settings api to get the
associated wireless network.
Also got rid of Settings::_PrepareRequest(), since it's no longer needed.
2013-04-21 18:26:14 +02:00
Rene Gollent
d519acd691 Some refactoring of Settings classes.
- Rename the current RangeSetting -> BoundedSetting and add an
  appropriate setting type enum, since that one actually describes
  a single value clamped to a range, rather than an actual range.

- Add RangeSetting class that has both a lower/upper bound and a pair
  of values representing the lower and upper ends of the range currently
  selected.
2013-04-21 12:01:17 -04:00
Rene Gollent
758a63dc70 Implement ranged container hooks in ArrayValueNode. 2013-04-21 11:46:12 -04:00
Rene Gollent
7d151f694c Extend ValueNode API.
- Add several new optional hook functions to ValueNode. These
  allow implementing subclasses to specify that they're a container
  type that can export a range of items (i.e. arrays, lists, etc.),
  and expose several operations on said ranges of child items.
2013-04-21 11:46:12 -04:00
Stefano Ceccherini
be1038406b Use the network kit api instead of talking to the netstack directly.
Use BNetworkInterface and BNetworkInterfaceAddress in the Settings class
instead of using ioctls. This works for everything except the default
route, for which there is no API yet.
2013-04-21 15:45:38 +02:00
Siarzhuk Zharski
bf88d81ea6 Fix GB18030 encoding support. And some cleanup ...
* Fix GB18030 Chinese encoding support for two and four bytes long
  characters. This finally resolves issue described in #6227;
* Processing of multi-byte characters was slightly refactored too;
* Remove the multi-byte 94/96 graphsets designation support for
  Japanese encodings. That looks like MuTerm rudiment, it had incomplete
  implementation and looked like abandoned. On the other hand multi-byte
  designation must be implemented in the same way as designation for
  single-byte graphsets was done. Note that this multi-byte graphsets
  designation has nothing to do with the normal encoding support for
  usual data flow conversion - so you will be on the safe side when
  use terminal encoding menu switch.
  The removed feature is the ancient technique to achieve different charsets
  support on 8-bit serial lines by assigning (designating) predefined
  sets of characters to G0, G1, G2 and G3 and selecting them during
  program life-time into GL (x20-x07E) or GR (xA0-xFF) areas by using LS
  or SS functions.
  For example xterm has no support for designation multi-byte graphsets
  at all. Anyway if this feature is required and you can provide the
  test environment - please let me know and I will be glad to implement
  this feature in more easy and consistent way;
* Remove unreferenced gSmbcsTable and gScsTable parsing tables that
  looks like is not used anymore;
* Remove gCS96GroundTable and gMbcsTable parsing tables that were used
  by multi-byte 94/96 Japanese graphsets support and now obsoleted by
  removing mentioned feature;
* Remove some obsoleted #defines, like HW statusline support for
  example, from parse tables definition.
2013-04-20 16:51:42 +02:00
Rene Gollent
8c1b20b862 return ESRCH when team isn't found by name. 2013-04-20 09:23:00 -04:00
Rene Gollent
87d33c4ff3 Slight refactoring.
- Factored out CppLanguage::ParseTypeExpression() into one that could
  be used in CLanguageFamily, with some hooks to help differentiate
  what's allowed in C vs C++. Makes the type parsing available for
  C files as well, and consequently allows typecasting to work for
  those.
2013-04-19 22:55:59 -04:00