Commit Graph

44621 Commits

Author SHA1 Message Date
Adrien Destugues afd7ded01e Debug Server: kill team when debug alert is escaped
B_CLOSE_ON_ESCAPE makes alert->Go return -1. Handle this correctly and
kill the team.

Fixes #9983.
2014-11-20 11:02:06 +01:00
Adrien Destugues 9b8e5185da UserlandFS: 64bit fix. 2014-11-20 10:50:35 +01:00
Murai Takashi 932b333fa2 Fix called C++ object pointer is null
Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>

Fixes #9904.
2014-11-20 10:45:15 +01:00
Adrien Destugues a730d2560c AboutSystem: credit taos only for German.
As requested on the mailing list.
Keep a comment to remember to not re-add him next time we update the
list.
2014-11-20 08:38:05 +01:00
Automatic Committer b64e832220 Update pci.ids from pciids.sourceforge.net 2014-11-20 05:20:22 +01:00
Adrien Destugues b02efcef88 MediaPlayer: reintroduce "stop" shortcut.
It turns out there are some people actually using it, mainly when
playing music. If you interrupt music, you often want to start listeing
from the start of the track again (unlike for video), so having a stop
button makes sense in that case.
2014-11-19 10:14:29 +01:00
Adrien Destugues 79d08c3bf1 BootManager: add a permanent "Quit" button.
As suggested on the mailing list by stippi and korli, it is important to
let the users know they can quit at any time, and it's sometimes the
only thing they can do.
2014-11-19 10:11:34 +01:00
Adrien Destugues b2a3f5b114 Terminal: initialize some variables
This is harmless, the sequence of states ensures they would be
initialized when needed anyway, but Coverity decides otherwise.

Fixes #10131 / CID743879.
2014-11-18 15:51:41 +01:00
Adrien Destugues dc7bdd5597 BootMan: Don't rename the "Install" button to "Quit"
... when there are no installable disks.

The button is disabled anyway, and it is not useful to rename it. The
program can be exited by closing the window anyway, so a "Quit" button
is useless.
2014-11-18 15:10:49 +01:00
Adrien Destugues c8dd5e4f27 Print page setup: use BButton with bitmap
... instead of BPictureButton.

* Replace bitmaps with zuMi's BToolbar themed ones
* Get a standard button look

Fixes #3592.
2014-11-18 13:49:00 +01:00
Adrien Destugues 6f08ef0ac2 MediaPlayer: some shortcuts tweaks
* F: toggle fullscreen (like tab)
* V: removed. Stopping the replay would lose the current position, and
we don't want non-undoable lossy operation on single keystrokes
* X: toggles play/pause instead of forcing play (like space)
* Alt+Shift+0/1/2/3 changes the aspecdt ratio to "raw", "default",
"4/3", "16/9".

Fixes remaining parts of #2495.
2014-11-18 11:08:30 +01:00
Adrien Destugues b0baaee653 Fix build. 2014-11-18 10:26:10 +01:00
Adrien Destugues 4a6c666d6b Update localization credits and add Puck Meerburg as a contributor
* Got the list from Pootle "contributors" page.
* I used the names as they show in Pootle, which may not be the best.
2014-11-18 10:04:28 +01:00
Jérôme Duval 20f046edb9 netfs: fixes some x86_64 build failures.
* long is used in vnode_ops in fs_proto.h whereas it should be int32.
* at least one reply object is casted an int32 cookie as a pointer.
2014-11-18 00:05:02 +01:00
Jérôme Duval 073da30265 ColumnListView: deselect the last selected row
when the shift movement goes back. This behavior feels better to me,
but opinions are welcome. Tested with HaikuDepot package listview.
Noticed that CLV uses Ctrl whereas Tracker uses Alt for single item
selection.
2014-11-17 20:18:00 +01:00
Jérôme Duval f3e381dd0c bios_ia32: for correctness, add clobber memory for asm invlpg.
* generated code is the same for x86_gcc2 and x86_64.
* fixed TRACE build for mmu.cpp.
2014-11-17 20:17:30 +01:00
Adrien Destugues da8f008d15 Add a amfile to build cdda for userlandfs.
It crashes early after mounting in get_vnode, but the UserlandFS won't
build in DEBUG=1 (see #8422), making this not very helpful...
2014-11-17 17:36:53 +01:00
Adrien Destugues a6d4e0b678 userlandfs: missing include. 2014-11-17 16:18:41 +01:00
Adrien Destugues 367ea4bd57 netfs: Fix build for gcc4. 2014-11-17 15:59:11 +01:00
Adrien Destugues 83b1a68c52 Move NetFS to a package
This is based on Jalopeura's patch to #10191, however, there are some
changes.
From the patch:
* Make userlandfs use separate "interface definition" files for each
filesystem, so the netfs package can provide a configuration file
* Add a short document on how to use NetFS
* Various fixes to netfs to make it build again (volatile atomics)
* The netfs_mount script for easier use of NetFS

Additional fixes:
* Move netfs_mount and the interface description file to data/ in the
source tree
* Use strlcat instead of strcat to avoid a buffer overflow
* Some parts were already applied in previous commits
2014-11-17 15:24:07 +01:00
Adrien Destugues 28627b28aa UserlandFS: avoid crash if module is not found.
If we can't find the name in the module list, we would try to
dereference the NULL pointer which terminates that list.
2014-11-17 11:49:26 +01:00
Adrien Destugues f0d46bd83c NetFS: fix build.
Fixes #11168.
2014-11-17 10:42:03 +01:00
Adrien Destugues 44f82a7875 Add a package for UserlandFS.
Fixes #10192.
2014-11-17 10:28:59 +01:00
Adrien Destugues 4ecb74f198 Session: reinit ioctl data before sending it again.
The structure is used as input and output from ioctl, so we must clean
it before doing the ioctl for the second try.

May fix #11477.
2014-11-17 09:22:17 +01:00
Adrien Destugues 8d67965f06 DiskProbe: use layouted view for StringEditor.
Fixes #11476.
2014-11-17 09:08:43 +01:00
Jessica Hamilton 447f97ced1 bfs: minor refactoring of hrev48308
- also additional error checks added, as suggested
  by Axel Dörfler
2014-11-17 14:38:36 +13:00
Oliver Tappe 532b7b60a9 Fix #11458, pt.2: invoking jam from source dir does not work.
* Adjust package_repo create command to check if each given package
  exists before adding it to the repository writer and fail with
  an appropriate message when it does not.
2014-11-16 15:56:14 +01:00
Rene Gollent c87c95791e Debugger: Fix CFI length computation.
- Due to a slight oversight during optimization refactoring, the length
  of the FDE's call frame instructions would sometimes be computed
  incorrectly, leading us to overflow past the end of the instructions,
  and fail to unwind the frame correctly if the address in question fell
  at the end. Fixes a regression introduced in commit
  d390ebee9e.
2014-11-16 00:17:11 -05:00
Alexander von Gluck IV a46669aa1c radeon_hd: Improve pitch width alignment 2014-11-15 16:19:45 -06:00
Jessica Hamilton cce8cb8ca3 bfs: only erase first sector when initializing
f9ac1e93fb didn't take
into account that the superblock gets written back
from places other than Initialize(), resulting in
unbootable volumes.

Now the first sector will only be erased if the volume
is being initialized.
2014-11-16 08:40:52 +13:00
Alexander von Gluck IV a9327b1110 radeon_hd: Add additional sanity checks
* Prevents negative array index read (again)
* Clear display_mode struct before lvds read - CID 1108403
2014-11-15 09:25:40 -06:00
Alexander von Gluck IV 6a716f63ae radeon_hd: Exit on GPIO pin space exhaustion
* Prevents negative array index read
* CID 1210885
2014-11-15 08:56:40 -06:00
Jessica Hamilton f9ac1e93fb bfs: erase first sector when initialising new partition
* When writing the superblock, because it's at sector 1,
  sector 0 doesn't get erased. As a result, if an
  existing file system was present, identifying details
  in sector 0 could cause the partition identifying code
  to detect an old file system instead.

Fixes #11136.
2014-11-15 22:49:03 +13:00
Rene Gollent 6f568acbc8 Fix x86-64 build. 2014-11-14 22:58:45 -05:00
Rene Gollent 02c7127cb9 Debugger: Implement #10671.
- The stack trace view now remembers the last selected frame index for stopped
  threads when switching between them.
2014-11-14 21:03:16 -05:00
Rene Gollent 46593adfbc Debugger: Fix #11459.
- When saving our view state, only save a new set of values if a stack
  frame clear is pending. Otherwise, check if there is a previously
  existing view state, and take over its values. This ensures that we
  correctly remember our previous values when the user is simply switching
  stack frames while in a stopped state.
2014-11-14 16:45:26 -05:00
Adrien Destugues efb618a273 CDDA: handle CP-1252 in CD-Text
I have at least one CD which does that. There is no problem in handling
it since CP-1252 is a superset of ISO-8859-15.

Also fix the possible buffer overflow in the CD-Text handling, which
could corrupt the stack in case a track title decodes to more than 256
bytes. Now it is properly truncated on a character boundary.
2014-11-14 18:10:53 +01:00
Adrien Destugues 8d9fab1be9 FirstBootPrompt: focus the language list
Make it possible to easily use the window with only the keyboard.
2014-11-14 16:51:44 +01:00
Adrien Destugues 3c3eb09760 Session: try harder to read the disc geometry.
On some discs and drives, the command may not work the first time.
Trying a second time succeeds more often.

Fixes #11467.
2014-11-14 16:00:37 +01:00
Adrien Destugues b31d5cd2b6 AHCI: make debug messages more compact
Put more information on a single line. This makes it easier to keep
track of things when debugging higher level parts of the disk stack
(partitionning and file systems).
2014-11-14 15:59:04 +01:00
PulkoMandy 8068b64b5c Fix build with guarded heap on x86_64
* Type mismatch.
2014-11-14 12:55:50 +01:00
Jessica Hamilton 29bce87707 StyledEdit: ensure caret position gets set correctly
* When opening documents without be:caret_position,
  StyledEdit would place the cursor at the end of
  the file. _LoadAttrs() intended to set it to the
  beginning; however, a check for an existing BRect
  for positioning the window would return early,
  preventing the caret position to be set.

Fixes #11463
2014-11-14 16:15:36 +13:00
Rene Gollent d390ebee9e Debugger: Call frame unwind optimizations.
- Pass address size to DwarfManager, and subsequently DwarfFile's Load()
  method, as that information is needed in order to parse the frame
  information correctly early on.
- When initially loading debug information, also do a quick pass through
  .{debug,eh}_frame, and build a lookup table of offsets. This is then
  used later when actual unwinding is requested in order to quickly find
  the corresponding FDE/CIE. Should noticeably improve performance when
  stepping through code, especially for larger/more complex executable images.

Implements #8613.
2014-11-13 21:18:55 -05:00
Stephan Aßmus 8507d262d8 HaikuDepot: Support wheel scrolling in featured packages
* Forward B_MOUSE_WHEEL_CHANGED to parent view from each package row view
 * Configure small/big steps on vertical scroll bar.
2014-11-13 22:58:24 +01:00
François Revol 642c5de7a8 virtualkeyboard: more TODO 2014-11-13 20:10:05 +01:00
François Revol 7dc43c256f virtualkeyboard: convert TODO to org-mode file 2014-11-13 20:07:44 +01:00
François Revol 953c6a0450 AboutSystem: add Freeman Lou to the contributors
I'm not sure which is first name and which is last though...
2014-11-13 18:08:49 +01:00
François Revol 280efb4202 virtualkeyboard: more TODO 2014-11-13 18:00:03 +01:00
François Revol e47787291d virtualkeyboard: mention needed code factorisation in TODO 2014-11-13 17:51:14 +01:00
Freeman Lou 67b3c67768 virtualkeyboard: code style fixes 2014-11-13 17:51:13 +01:00
Freeman Lou b8fe0b588d virtualkeyboard: fixed restart crash 2014-11-13 17:51:13 +01:00
Freeman Lou 5e0fb24359 virtualkeyboard: add to the build 2014-11-13 17:51:12 +01:00
Freeman Lou 0f451a9464 virtualkeyboard: use US international keys for now
Update TODO list.
2014-11-13 17:51:11 +01:00
Freeman Lou 48af6b9693 virtualkeyboard: Create README.md 2014-11-13 17:51:11 +01:00
Freeman Lou 246b061c9a virtualkeyboard: add TRACEing and make the keyboard work 2014-11-13 17:51:10 +01:00
Freeman Lou c2f4582357 virtualkeyboard: add TODO list 2014-11-13 17:51:09 +01:00
Freeman Lou 2071724c6f virtualkeyboard: fix input_server event loop crash 2014-11-13 17:51:09 +01:00
Freeman Lou a9fd76aefc virtualkeyboard: fixes; input_server now displays keyboard 2014-11-13 17:51:08 +01:00
Freeman Lou 2e4c86a4d2 virtualkeyboard: some fixes
Add initialization helpers.
2014-11-13 17:51:07 +01:00
Freeman Lou c099b74eac virtualkeyboard: Add input_server device add-on code 2014-11-13 17:51:06 +01:00
Freeman Lou 857688724e Start of a virtual keyboard input_server add-on
Done during GCI 2014.

Some files copied from the Keymap preferences.
2014-11-13 17:50:40 +01:00
Automatic Committer 694be58ab1 Update pci.ids from pciids.sourceforge.net 2014-11-13 05:20:31 +01:00
Rene Gollent 55ae46933b Debugger: Adapt x86_64 disassembler to newer udis API. 2014-11-12 21:53:48 -05:00
Rene Gollent dc257d1603 Debugger: Fix disassembler to handle newer udis86 API.
In newer versions of udis86, the ud_t.mnemonic field is deprecated,
and one must now call ud_insn_mnemonic() to retrieve that information.
This was causing Debugger to not correctly identify subroutine calls
and jump instructions, which broke the stepping code in various fun
ways.
2014-11-12 21:50:53 -05:00
Adrien Destugues 938c41a1aa cdda: fix possible buffer overrun
If the requested read was more than 32 frames, and reading them all at
once failed, we would try to read by chunk of 8 frames. But if the
original frame count was not a multiple of 8 we would not adjust the
count for the last read.

Unfortunately I could still panic the system after fixing this, so it is
not *the* cdda bug.
2014-11-12 16:22:48 +01:00
Adrien Destugues db214549c5 guarded_heap: fix build (volatile + atomic ops)
Unfortunately, the package manager uses more kernel memory and it's not
possible to boot to the desktop with the guarded heap anymore.
2014-11-12 16:20:24 +01:00
Adrien Destugues 1aa19cd3ec KDL disassembler: implement symbol lookup
The new udis makes it possible to hook a symbol lookup function, so we
can get symbol names and offsets instead of raw addresses in call and
jump instrucitons.
2014-11-12 12:06:37 +01:00
Adrien Destugues a358634d15 Update udis86 to current version. 2014-11-12 11:25:41 +01:00
Adrien Destugues 735ca4068d cdda: CID 610847: possibly uninitialized fields
In two cases:
* Out of memory and strdup on fName failed. Nothing would be
initialized (mostly harmless: InitCheck would detect this)
* There are no frames in the track: the wav header would be left
uninitialized, and this would be readable from userland (bad thing, but
needs a specifically crafted malicious CD to happen).
2014-11-12 09:15:48 +01:00
Adrien Destugues 7b4084f717 reject partitions with negative offset
I had a KDL when trying to read an audio CD which apparently uses this
as a copy protection scheme.
I don't know if this is the right place to do this, the KDL would happen
further down when the intel partitionning system or bfs would try to
read data from the disk at offset -2048.
2014-11-11 17:13:03 +01:00
Adrien Destugues a1e032c875 DiskProbe: rewrite to use layout code.
The main goal is to use a layout aware tab view in the attribute editor
window, removing some hacks that caused #10480.
2014-11-11 12:34:50 +01:00
Adrien Destugues 4a13af4977 Terminal: set B_NO_BORDER on the tab view.
This looks better and is what we want here. The difference is subtle,
just a few pixels on the left and right side of the tabview where it now
properly joins the window border.
2014-11-11 09:19:08 +01:00
Alexander von Gluck IV 44b9746039 radeon_hd: Fix Spread Spectrum clock decimal place
* As 104Mhz is stores as 10400 on atombios,
  and 104000 everywhere else... this conversion
  was going the wrong direction.
* Shrink the stored value to 10Khz units to properly
  compare to the AtomBIOS value
2014-11-10 22:16:49 -06:00
Alexander von Gluck IV 3de924d06c radeon_hd: Implement initial DP encoder service
* Used on older chipsets. Untested.
2014-11-10 22:01:36 -06:00
François Revol 747c2e9253 Add sniff rule to Gobe Productive MIME type
I'm not sure the 'DOC!' part isn't an endian marker but for now
it should be enough.
2014-11-11 00:41:22 +01:00
François Revol 645262ff2e Add MIME type for Gobe™ Productive™ Document 2014-11-11 00:31:42 +01:00
Adrien Destugues 467105d086 bfs_tools: fix NULL pointer dereference
Happened when the given path did not map to any device (for example
'/').

Fixes #11436.
2014-11-10 17:49:45 +01:00
Adrien Destugues 41bfed9f20 PackageInstaller: rewrite /boot/beos/system to /boot/system
Fixes #10603.
2014-11-10 15:27:46 +01:00
Adrien Destugues e0dbadfc4e Network prefs: update on tab switch
The rightmost part of the UI actually depends on which tab is selected
on the leftside. Intercept the tab change in the Show method, and
display the correct data.

Fixes #11400.
2014-11-10 14:04:52 +01:00
Adrien Destugues 43b65f2eac Netprefs: Remove "/dev/net/" from displayed interface names
The name overlaps the status string when it's too long, so keep it
shorter.
2014-11-10 13:15:13 +01:00
Adrien Destugues 396d0801a4 Network prefs: remove compile-time german localization
There are better way to achieve this, now.
2014-11-10 13:06:52 +01:00
Adrien Destugues a95a728ca0 Terminal: make sure window fits in screen.
Fixes #8414.
2014-11-10 12:52:01 +01:00
Adrien Destugues 482f0eeb01 add window size and encoding to terminal prefs
* The menu items now only set the values for the current window without
saving,
* The settings in the preference window are persistent,
* The "save as defaults" menu item is removed.

Fixes #5030.
2014-11-10 11:46:32 +01:00
Adrien Destugues defb82922a Terminal Prefs: replace "OK" with "Defaults"
Again, this is the more standard way to do things in Haiku.
2014-11-10 11:46:26 +01:00
Adrien Destugues cca6cae659 Terminal preferences: replace "Cancel" with "Revert"
This is the standard way in Haiku preference panels.
2014-11-10 11:46:20 +01:00
Adrien Destugues f5a3c8c48c Terminal: allow % in URLs. 2014-11-10 11:46:14 +01:00
Augustin Cavalier 0a74147e1d BToolbar: Allow the toolbar's orientation to be set by its creator.
I already made this patch in Heidi's clone of BToolbar. Adding it here
allows me to drop Heidi's version altogether.

I also relicensed the header file at the permission of Stephan. The .cpp
file still lists him as author and copyright holder.

Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2014-11-10 13:21:13 +13:00
Julian Harnath 97fb429c55 radeon_hd: fix typecast in atombios table header parser
* The pointer mdt should point to the start of the contents of the
  master data table. As defined in struct ATOM_MASTER_DATA_TABLE,
  the content begins 4 bytes after the beginning of the table
  (which in turn is ctx->data_table bytes from the start of the
  AtomBIOS). The wrong parantheses in the cast moved the pointer
  somewhere else completely.

* That this apparently worked on many cards is because the mdt
  pointer in this function is used just to make sure that the
  following dereference is not a NULL-pointer access.
  The actual dereference is then done using the CU16() and CU8()
  macros which do the casts correctly. However, it only worked when
  the wrong pointer plus index lead to some byte which was, by
  chance, not zero. For many chips, this was the case.

* For the AtomBIOS of a Radeon HD7850M (Heathrow Pro) it didn't work
  out though and the driver couldn't parse tables. With this fix, it
  now works on such chips as well.

* Also, fix the same problem in code for master command table.
2014-11-09 23:59:24 +01:00
Alexander von Gluck IV 6ab4ff112a accelerants: Fix warning introduced in hrev48265
* Align types for compare
* Fixes builds
2014-11-09 15:53:44 -06:00
Alexander von Gluck IV 57bc65034a Everything: Update lots of code to use B_COUNT_OF macro
* Likely not everything, but the obvious uses of B_COUNT_OF
2014-11-09 14:52:19 -06:00
Alexander von Gluck IV e0923fddba radeon_hd: 68f9 was present twice in the driver
* Keep older one as I have the card in-hand
2014-11-09 13:04:07 -06:00
Alexander von Gluck IV 3f84ea0c7e ScreenInfo: Include screeninfo in images
* Rename from screen_info to screeninfo to match
  screenmode
2014-11-09 12:20:04 -06:00
Rene Gollent 743d5dbeb5 Debugger: Fix potential crash.
VariablesView:
- Check to ensure the stack frame actually does have a function
  object associated with it before attempting to use it, as this
  isn't always the case.
2014-11-09 09:36:54 -05:00
Adrien Destugues d9e931526c SerialConnect: add scripting support
It's now possible to configure the serial port through scripting:
hey SerialConnect set databits to 8
hey SerialConnect set parity to even
etc.

More useful is the ability to connect and disconnect from the port:
hey SerialConnect get port # returns "usb0"
hey SerialConnect set port to usb0
hey SerialConnect delete port

This allows a script to automatically disconnect SerialConnect, do
something with the serial port, and then reconnect SerialConnect. This
can be used for example to run a bootloader and update a firmware
through the same serial port used for debugging, something that's not
easily possible on other systems.
2014-11-09 14:18:50 +01:00
Adrien Destugues 8007a392cf BMessage: add AddFlat taking a const BFlattenable
It seems the const was forgotten in the BeOS version. But there is no
reason not to have it.
2014-11-09 13:51:29 +01:00
Stephan Aßmus 664372ab49 HaikuDepot: Visualize selection in featured packages view 2014-11-09 12:04:50 +01:00
Stephan Aßmus ef40255d5d HaikuDepot: Make summary text non-selectable...
... in the rows of featured packages.
2014-11-09 12:04:48 +01:00
Stephan Aßmus 6e2ac1775e HaikuDepot: Added SetSelectable(bool) to TextDocumentView. 2014-11-09 12:04:47 +01:00
Rene Gollent 3ea675fc93 Debugger: Fix #11430.
InspectorWindow:
- Inherit from Team::Listener and implement hook for thread state
  change events.
- On thread state change, if the new state is stopped, and we have
  an active block, release it, and ask to re-inspect.
- Factor out helper function for updating the active block.
- Always ensure the MemoryView is updated when we change blocks.

MemoryView:
- Clean up acquisition of target memory block.

This ensures that the block data is kept up to date when stepping
through code with an inspector window open.
2014-11-08 23:35:35 -05:00
Rene Gollent d1c9ffed34 Debugger: Cleanup.
Team:
- Remove expression evaluation event / listener hook. This doesn't
  really belong to the Team anyways.

UserInterfaceListener:
- ExpressionEvaluationRequested() now takes an ExpressionInfo object
  rather than the individual subcomponents.

ExpressionEvaluationJob:
- Notification of expression evaluation completion is now handled
  via the info object's listener interface rather than the Team.

Others:
- Adjust all users of expressions to set themselves up as
  ExpressionInfo::Listener subclasses, and consequently add themselves
  to the respective info object when requesting evaluation. This
  significantly simplifies various things, and also ensures that no
  one accidentally gets notified of an expression they didn't actually
  ask for, which could occur with the previous Team-based listener
  interface. Make all other required adjustments for new interface
  usage.

No functional change intended.
2014-11-08 18:42:53 -05:00
Rene Gollent 05d1068c97 Debugger: Reorganization, no functional change.
- Move SyntheticPrimitiveType to model subdir, since more than just
  the UI will be making use of it.
2014-11-08 18:19:13 -05:00
Rene Gollent 329dd0af0b Debugger: Extend ExpressionInfo.
- Add setters for the individual subcomponents.
- Add listener interface. This will supplant the one
  currently attached to Team.
2014-11-08 18:15:31 -05:00
Rene Gollent e646545b60 Debugger: Save/restore expression node values.
- This allows expression results to be highlighted for value changes
  as we already do for regular variable values.
2014-11-08 11:16:44 -05:00
Rene Gollent b7e72db3cc Debugger: Implement first part of #11387.
VariablesView:
- The view now keeps a mapping of a list of expressions associated
  with functions.
- Add actions for adding/removing expressions to variables context menu.
- When setting up to show a new stack frame, also add corresponding expression
  nodes and request their evaluation.
- Extend VariablesView::Listener interface to also encompass expression
  evaluation requests.
- Don't add context actions for expression nodes.

TeamWindow:
- Implement VariablesView::Listener expression evaluation hook and forward
  responses along.
2014-11-08 11:00:27 -05:00
Rene Gollent 11832b28af Debugger: Add expression prompt window handling.
TeamWindow now handles the messages for summoning/dismissing
the expression prompt window.
2014-11-08 10:49:01 -05:00
Rene Gollent 8336fb8168 Debugger: Cleanup.
Refactor the expression windows to use the type code helper to simplify
building the type menus.
2014-11-08 10:49:01 -05:00
Rene Gollent 6d9f98fd95 Debugger: Add some type utility functions.
Add helper function for converting a type code to a type name.
2014-11-08 10:49:00 -05:00
Rene Gollent 0b21bf1038 Debugger: Add simple prompt window for adding expressions.
- Requests an expression + type from the user for use elsewhere.
  Intended to be used by VariablesView and possibly others.
2014-11-08 10:48:59 -05:00
Rene Gollent 6a7eaa2a75 Debugger: Add ExpressionValues to VariablesViewState.
- VariablesViewState is now able to optionally store previous values
  for expression nodes.
2014-11-08 10:48:59 -05:00
Rene Gollent 1904b0c99a Debugger: Add type subclass for artificial types.
- For expressions we need a Type object to represent their result
  type. However, this doesn't need to map to an actual DwarfType,
  as we won't need e.g. location and storage format information to
  read it out of the target team, so instead derive a simple subclass
  representing the appropriate result type.
2014-11-08 10:48:58 -05:00
Rene Gollent 1af58b2afd Debugger: Add expression-related model classes to build. 2014-11-08 10:48:57 -05:00
Rene Gollent 8a038c4440 Debugger: Add value node subclasses for expressions.
- Since expression value nodes need to be handled quite differently from
  other value nodes, and aren't specifically tied to variable object
  instances, create distinct implementing subclasses ExpressionValueNode{Child}
  to represent them.
2014-11-08 10:48:57 -05:00
Rene Gollent ba4cfb2439 Debugger: Add model classes for expression representation.
- Add class ExpressionInfo to encapsulate the expression string and result type
  of a particular expression instance.

- Add class ExpressionValues to map expression result values correlating to a
  function, thread and expression for later use in highlighting changes.
2014-11-08 10:48:56 -05:00
Rene Gollent d100f5b98d Debugger: Handle DW_AT_external for DIEVariable.
- This attribute flag indicates if a variable is visible outside of
  its compilation unit. Needed in order to handle global variable
  lookups.
2014-11-08 10:48:55 -05:00
Fredrik Holmqvist ae715b108d Add Todos for adapter and displays. 2014-11-08 13:04:07 +01:00
Fredrik Holmqvist b5be958727 WIP ACPI display adapters driver
Currently find display adapters and attached displays but nothing more.
I would like it to publish adapters and displays in dev tree, so that
you can open and control the adapter (get firmware, boot display) and
the adapter itself would have child devices for displays (brightness ..).

However that part could use some review, and since my time is limited it
is better to make it availble for others to work on as well.
2014-11-08 11:51:30 +01:00
Adrien Destugues a12bde1cf5 bluetooth: fix build.
Fixes #11184.
2014-11-07 21:24:04 +01:00
Adrien Destugues f496c617c6 MacDecorator: fix some drawing problems
* Make the buttons pixel-perfect clones of Mac OS 9
* Fix missing drawing of top border when inactive
* Some colors and size tweaks to be closer the Mac OS 9

Remaining problems:
* Does not work well for windows with no tab (eg alerts)
* Still missing the resize knob
* Does not show stack and tile
* Does not show command+opt resize/move highlights
2014-11-07 19:45:28 +01:00
Adrien Destugues 27fc6a70c6 Mandelbrot: allow zooming in any direction
Fixes #8679.
2014-11-07 17:33:50 +01:00
Adrien Destugues 3b218d2d82 Mandelbrot: remove unused file. 2014-11-07 17:24:06 +01:00
Adrien Destugues 053e02b45f Notifications: make "enable on startup" work.
Fixes #9425.
2014-11-07 16:40:14 +01:00
Adrien Destugues c6e1228c8e Fix unresolved catalog access.
The B_TRANSLATE_MARK macro was used before a translation context was
set.
2014-11-07 16:22:15 +01:00
Adrien Destugues 730344709a Patch libxml used ofr docbook to work with current zlib
Patch from https://git.gnome.org/browse/libxml2/commit/?id=a7e79f28689c574e0bbef17f4cb3da00249181ff

* Fixes #6958
* We should probably use the host libxml2 instead.
2014-11-07 11:14:51 +01:00
Adrien Destugues e8ceef7357 Fix typo in getaddrinfo test. 2014-11-06 18:32:23 +01:00
Adrien Destugues 5592b1d7e0 PatchBay: complain when there are no MIDI devices
The empty window that would show when no MIDI devices are found would
confuse Haiku users. This was not a problem on the BeBox or older PCs
where a sound card with MPU401 port was standard, so there would always
be something to show.

Fixes #9977.
2014-11-06 16:22:09 +01:00
Adrien Destugues fbd8b14ae7 SecureSocket: fix build without SSL. 2014-11-06 15:15:40 +01:00
Adrien Destugues b1b51eddee Network preferences: Set the "auto configuration" flag.
Fixes #11416.
2014-11-06 15:02:01 +01:00
Adrien Destugues bca1813626 Add test for getaddrinfo on empty host.
* This should fail immediately, but it timeouts after 22 seconds when
the network interfaces are not configured properly.
2014-11-06 15:02:00 +01:00
Adrien Destugues 5ee2151e2c BHttpRequest: propagate SSL errors to listener
This way it's possible to handle them in applications.
2014-11-06 15:02:00 +01:00
Adrien Destugues c86ad7f93b Add more features in BCertificate class
* Make it possible to extract more useful data from the certificate
* Also get the OpenSSL error message when a certificate can't be
validated. Send it to the verification failure callback so it can be
shown to the user.
2014-11-06 15:01:59 +01:00
Adrien Destugues 3b657701db BCertificate: fix parsing of date and name. 2014-11-06 15:01:58 +01:00
Automatic Committer b7f8d64d19 Update pci.ids from pciids.sourceforge.net 2014-11-06 05:20:25 +01:00
Jessica Hamilton 9f8197a872 BToolbar: move into BPrivate namespace, as it's not public yet 2014-11-06 16:44:02 +13:00
Adrien Destugues 6195bee580 GIF and WebP translators: force layout of parent window
Translators are now allowed to use the layout API, but this doesn't work
well when they are used in a non-layout aware window (the view ends up
with a size of 0x0 or some arbitrary size set with
SetExplicitPreferredSize).

To avoid this, detect the case where the translator settings are the
single child of a non-layout window, and force the window to become
layouted.

Fixes #7754.
2014-11-05 21:13:27 +01:00
Adrien Destugues e1ca0f4e32 BootManager: partition list scrolling with a BViewPort.
Fixes #7360.
2014-11-05 16:49:17 +01:00
Adrien Destugues 6f3ad852a3 CodyCam: Fix gcc4 build. 2014-11-05 16:16:16 +01:00
Adrien Destugues b3b96925f5 CodyCam: show fatal errors in the video view
... instead of using an alert.

Also add a fancy border and some style fixes.

Fixes #3320.
2014-11-05 15:42:46 +01:00
Adrien Destugues f98814b714 Network prefs: build fix. 2014-11-05 14:30:20 +01:00
Adrien Destugues e743f8460d CID 1251070: Use of uninitialized value 2014-11-05 14:09:47 +01:00
Adrien Destugues a84ff8f625 CID 1251073: unused member. 2014-11-05 14:07:15 +01:00
Adrien Destugues 0fd8f3463a CID 1251074: uninitialized member. 2014-11-05 14:05:58 +01:00
Adrien Destugues babb221d62 Network preferences: Uninitialized pointers.
CID 1251080, 1251077, 1251076, 1251075, 1251068
2014-11-05 14:04:37 +01:00
Adrien Destugues 81a96270e5 CID 1251078: uninitialized field. 2014-11-05 14:02:13 +01:00
Adrien Destugues 84f0fbbb61 CID1251079: unused member. 2014-11-05 14:02:10 +01:00
Adrien Destugues 332240b654 CID 1251081: unused value. 2014-11-05 13:50:52 +01:00
Rene Gollent 8b9099b1b2 Debugger: Fix #11411.
CliContext/CommandLineUserInterface:
- Process the debug report event asynchronously. The missing lock that
  was fixed in commit 5ac34e5a78 highlighted
  a problem in how the CLI was handling the case where it was intended to
  exit immediately after saving a report, since it issued the quit request
  directly from the report event handler. This resulted in locking issues,
  as the team debugger would then attempt to tear itself down, during which
  it needs to acquire the team lock. However, that was already being held
  by the thread in which the CLI was initiating the quit, resulting in a
  deadlock.
2014-11-04 19:21:20 -05:00
Michael Lotz 9a6331459f kernel: Fix build with KDEBUG_LEVEL < 2.
The lock caller info isn't available in such a configuration.
2014-11-04 23:00:59 +01:00
François Revol 76b8f002e1 Implement lseek(SEEK_END) on devices
While the partitioning system does publish partitions as block
devices and report their size in stat(), the old BeOS-style
drivers have no means of reporting it this way.
So we fall back to ioctl(B_GET_GEOMETRY) to find out the size.
2014-11-04 20:47:04 +01:00
François Revol b7ff6340ae U-Boot: always initialize args.arguments_count 2014-11-04 16:01:16 +01:00
Adrien Destugues 31c3214ef2 Revert "Intel partition: activate the first created partition."
This reverts commit d0a662e20a.

It is better to handle this in Installer when we know which partition
will actually be the system one.
2014-11-04 10:59:35 +01:00