Commit Graph

44647 Commits

Author SHA1 Message Date
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
Jessica Hamilton
f94a1a703c usb_hid: correct the device path for publishing usb tablet devices
Thanks to X512 for producing a patch that highlighted the real
cause of the problem.

Fixes #8338
2014-11-04 18:54:56 +13:00
Augustin Cavalier
6d93638b37 ToolBarView: rename to BToolbar and move to libshared.
Also adjust ShowImage for this, it's the only thing that's using ToolBarView
right now.

Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2014-11-04 12:45:47 +13:00
François Revol
361f5a857f ARM: OMAP3: dynamically allocate the framebuffer
It seems to work on overo at least, which has only 128MB by default in QEMU.
2014-11-03 21:06:20 +01:00
François Revol
1cac4300c3 ARM: Add an mmu_get_virtual_mapping() call to bootloader
Will be needed to figure out the framebuffer address
once we allocate it properly instead of hardcoding.
2014-11-03 20:49:01 +01:00
François Revol
cb3ea122d3 U-Boot: delay checking /chosen:bootargs after remapping FDT
This avoids having to copy the strings.
For now we disregard argv[] as it is not remapped before
being used in add_stage2_driver_settings() and is not used
by the linux entry point.

This makes the overo loader panic at the same place as
the beagle xm one now, even though it fails to display
anything with the default RAM size since we allocate
the framebuffer beyond 128MB...
2014-11-03 19:41:38 +01:00
Rene Gollent
2a6c54fb47 Debugger: Slight tweak to changed value highlighting.
VariablesView::ModelNode:
- Only check if a variable's value has changed if we actually have a
  valid previous value to compare against. Otherwise, e.g. variables
  that just came into scope but haven't yet been initialized would
  show up as changed, while their value is, at that point completely
  uninteresting.
2014-11-02 09:09:57 -05:00
Michael Lotz
3fe7b3f72c BString: Add ScanWithFormat convenience method. 2014-11-02 11:38:45 +01:00
Humdinger
5e654f6ab8 Localize keystore_server
Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>
Fixes #11404.
2014-11-02 09:46:44 +01:00
Adrien Destugues
a7459df4c9 Revert fixing warnings in acpica.
This is an external library so it should not be modified. It should be
moved to src/libs to make this clear, or even better, be outsourced as a
package.
2014-11-02 09:40:19 +01:00
Stephan Aßmus
0a9c902921 HaikuDepot: Show a "Featured packages" label
Also remove the left-over separator in the Tools menu.
2014-11-02 02:00:51 +01:00
Stephan Aßmus
6f6ad9153b HaikuDepot: Improve featured package items
Show the summary instead of the version. The layout still sucks, but I will
have to implement some kind of row/flow BLayout to get what I initially had
in mind. Another TODO is to highlight the clicked item somehow.
2014-11-02 01:38:34 +01:00
Stephan Aßmus
dfbf4d3885 HaikuDepot: Fix click detection in featured packages
Take window activation and parent bounds (a featured package scrolled outside
the visible region within the parent) into account.
2014-11-02 01:38:33 +01:00
Stephan Aßmus
1f3c1ef1c5 HaikuDepot: Select clicked featured packages 2014-11-02 01:38:32 +01:00
Stephan Aßmus
a3056e412a HaikuDepot: Move selection message constant to MainWindow.h 2014-11-02 01:38:30 +01:00
Stephan Aßmus
419dc642f5 HaikuDepot: Feature packages with prominence <= 200 2014-11-02 01:38:29 +01:00
Stephan Aßmus
da6511046d HaikuDepot: Properly add featured packages.
* Rework existing package listener mechanism to report any interesting
   changes. Listen for prominence changes in addition to package state.
 * Add featured packages to the FeaturedPackagesView when their prominence
   is retrived, and also in _AdoptModel().
 * In _AdoptModel(), show the featured packages view when no search filters
   are active and installed packages are not shown either. Otherwise show
   the list of all packages matching the current filtering.
2014-11-02 01:38:28 +01:00
Stephan Aßmus
64458d227c HaikuDepot: Only list featured packages once. 2014-11-02 01:38:27 +01:00
Stephan Aßmus
0c169ace2e HaikuDepot: Add some getters to Model.
For category, depot and search terms filter.
2014-11-02 01:38:25 +01:00
Stephan Aßmus
3d869af5e4 HaikuDepot: Separate MessagePackageListener...
...into MessagePackageListener and OnePackageMessagePackageListener.
The first one doesn't know which package(s) it's listening to. But it
can filter the change notifications now and only react to certain changes.
The second one knows which package it's listening to.
2014-11-02 01:38:24 +01:00
Stephan Aßmus
9f40cd4121 HaikuDepot: Retrieve prominence values from web app 2014-11-02 01:38:23 +01:00
Stephan Aßmus
6072a7e417 HaikuDepot: Added "prominence" member to PackageInfo 2014-11-02 01:38:21 +01:00
Michael Lotz
eac94f5db9 kernel: Also push lock caller in acquire_spinlock_nocheck. 2014-11-02 00:04:28 +01:00
Michael Lotz
41418981f4 kernel: Sync panic messages across acquire_spinlock versions.
* Always include last caller and lock value on both UP and MP path.
* Change lock value printing to hex format, as 0xdeadbeef is more
  obvious than its decimal counterpart.
2014-11-02 00:04:27 +01:00
Rene Gollent
b6c4fc962c Debugger: Implement #9946.
TableCellValueRenderer{Utils}:
- The rendering calls now take a boolean indicating if the value
  being rendered differs from its previous state. This is taken
  into account by rendering it in a different color to indicate
  the change. Adjust all implementing subclasses accordingly.

VariablesView::ModelNode:
- Now stores the previous value of the corresponding value node,
  and can be queried if its value has changed. Used by renderers.

VariablesView::_{Add,Apply}ViewStateDescendentInfos():
- When walking the model, also store/restore the values of nodes in the
  history.

In summation of all the above changes, when stepping through a function,
we now display values that have changed since the last step, or that have
appeared for the first time in a different color.
2014-11-01 18:51:57 -04:00
Rene Gollent
f40556afab Debugger: Cleanups, no functional change. 2014-11-01 18:51:56 -04:00
François Revol
2bbd623a48 ps: fix warnings 2014-11-01 21:42:32 +01:00
Rene Gollent
46ebcc8cb4 Debugger: Fix type issues in CLanguageExpressionEvaluator.
- When using variable values in an expression, we weren't ensuring
  that the resulting value type matched up with the requested
  type for the expression, leading to unpredictable results in some
  cases.
2014-11-01 16:10:27 -04:00
Rene Gollent
e2a22217e2 Number: Add accessor for underlying type. 2014-11-01 16:10:26 -04:00
Jessica Hamilton
22ea34153f access: fix to be POSIX compliant 2014-11-02 08:51:24 +13:00
François Revol
564a073b01 ARM: move uEnv.txt content to BoardSetup file
That's really where it belongs. Not all boards will need it,
but for now it's always created.
2014-11-01 19:57:48 +01:00
François Revol
95e9515c4b U-Boot: drop the bind on the flash image action 2014-11-01 19:08:57 +01:00
François Revol
92fcf262ff ARM: Check for RAM size in FDT
We skip the check when we already have ranges inserted,
like from the raspberry Pi start code, and we fall back to
32MB at SDRAM_BASE is not found.
2014-11-01 18:53:48 +01:00
François Revol
8d8bda071f U-Boot: generate a separate uImage for the boot tgz as well
We need this when using the linux entry point.
2014-11-01 17:11:01 +01:00
François Revol
d1ebf9716d U-Boot: ARM: Add a linux entry point to asm shell code
While the NetBSD entry point is handy as we can use a single uImage
with all 3 blobs, it bypasses U-Boot's own patching of the FDT since
it's not visible to it, so we won't get the RAM size and other things
through it.
2014-11-01 17:09:09 +01:00
François Revol
5de5d59d78 U-Boot: move gUImage and gFDT back to BSS section
No need for this trick anymore.
2014-11-01 16:39:44 +01:00
François Revol
909a14bb55 U-Boot: introduce a start_gen() catch-all entry
So we can pass it all the optional stuff instead of playing tricks
to initialize them outside of BSS.
2014-11-01 16:39:44 +01:00
Michael Lotz
bf685cdf2e kernel: Fix missing reference release in CreateThreadEvent.
CreateThreadEvent::DoDPC() missed a reference release to balance the
acquired reference before queuing the DPC, resulting in the
CreateThreadEvent objects being leaked.

This also removes the destructor that tried to cancel the DPC. Since
the class is reference counted and only destroyed when the DPC has
run and released the last reference, this didn't make much sense.
2014-11-01 16:32:04 +01:00
Michael Lotz
f00353a519 posixtestsuite: Normalize line endings. 2014-11-01 15:43:43 +01:00
Michael Lotz
91e3b80197 {app|input}_server: Provide app_server team id to input_server.
For cases where a BMessage is passed by area, the remote team id needs
to be passed into BMessage::_SendMessage() so it can transfer the area
to the target team. It falls back to detecting the port owner if said
information is missing. However, since the input_server owns the port
in this situation, the remote team needs to be specified explicitly.
Add the app_server team id to the input acquire message, so input_server
gets the needed info.

As messages that exceed the pass by area threshold are rather rare in
general and shouldn't happen at all in this situation, this does not
fix any immediate problem.
2014-11-01 10:26:38 +01:00
Michael Lotz
a0b6efc8c0 BMessage: Check message area is owned by the current team.
When a message is passed by area, the sender is supposed to transfer
area ownership to the target team. If the area is not mapped within
the current team, accessing the area address would be invalid.

Also mark the area as read-only so accidental writes to the area would
become obvious.
2014-11-01 10:26:37 +01:00
Michael Lotz
d3344ffccf BMessage: Check the return of _CopyForWrite().
When a message is passed by area, any modification to the message must
first trigger a copy of the message content. The success of this
operation was not checked however, possibly leading to later reallocs
on non-heap memory.
2014-11-01 10:26:37 +01:00
François Revol
1309cdade9 U-Boot: rework flash image rule to be more flexible
We can now specify arbitrary content and offsets for each.

Change the default block size to 1k.
2014-11-01 05:37:06 +01:00
François Revol
f680a1a723 U-Boot: skip flash-image targets if no U-Boot image is passed
When building flash images we want a U-Boot binary for now.
Testing for it avoids dd waiting for input on stdin
instead leaving no clue.
2014-11-01 02:15:09 +01:00
François Revol
7b0ec176cb ARM: add required FDT files for Overo and Tobi board 2014-11-01 02:05:39 +01:00
Adrien Destugues
f381456740 Fix errors when building with DEBUG=2
Fixes #8306. Please define DEBUG in UserBuildConfig or Jamfiles if
needed.
2014-10-31 16:49:36 +01:00
François Revol
960598d4c3 norflash: Fix warning 2014-10-31 16:28:49 +01:00
François Revol
88d51506d0 Move ARM device tree files to an arch-specific subfolder
FDT are also used on PPC at least, and at least skeleton.dtsi
might clash since there is a different one for PPC.
2014-10-31 16:28:48 +01:00
Michael Lotz
6a80e6889a kernel: Fix missing reference to team/thread in signal events.
The signal to the team/thread is only actually sent in a deferred
procedure. To ensure that the team/thread stays valid between the DPC
being queued and it actually running, we need to acquire a reference.

Fixes #11390, where the DPC was run after the team was already
destroyed.
2014-10-31 16:16:37 +01:00
Adrien Destugues
6109f53bc6 App_server: fix various issues with hardware cursors
* X and Y coordinates of hot point were swapped for 1-bit cursors
* Prefer color cursor over 1-bit one if possible
* Adjust the XOR/AND masks for 1-bit cursors to what the hardware
expects
* Handle switching etween hardware and software cursor.

Patch by Looncraz and Ziusudra, fixes #9261.
2014-10-31 14:54:48 +01:00
Adrien Destugues
d0a662e20a Intel partition: activate the first created partition.
The default MBR relies on at least one partition being active. The first
one sounds like a good choice.

Fixes #7930.
2014-10-31 14:12:44 +01:00
Adrien Destugues
a62c3f918c usb_webcam: fix build. 2014-10-31 13:46:47 +01:00
Adrien Destugues
dff211d8a6 Build media add-ons for secondary arch.
Fixes #10049.
2014-10-31 12:20:52 +01:00
Ithamar R. Adema
5d8ce4733c ARM: u-boot: Generate DTB and include in uImage 2014-10-31 12:08:03 +01:00
Ithamar R. Adema
a52dd58d2d ARM: kernel: introduce SoC abstraction
This introduces InterruptController and HardwareTimer classes to
handle the SoC specific implementations of timers and ints for
the ARM platform.

These could be improved and moved to a more 'generic' level once
we're confident they are 'good enough'.

NOTE: The OMAP timer implementation is fully untested and probably
      completely non-functional....
2014-10-31 11:37:02 +01:00
Ithamar R. Adema
1628632584 ARM: u-boot: fixup FDT handling
If we find an FDT (either from uImage or otherwise) we make sure
we map it after mmu_init() and use kernel_args to pass it to the
kernel (so it is available at all times there).
2014-10-31 11:21:38 +01:00
Ithamar R. Adema
b794d1f947 ARM: platform: grab the FDT from the bootloader 2014-10-31 11:19:00 +01:00
Ithamar R. Adema
778611c7e6 fdt: humble beginnings of Flattened Device Tree
This isn't really a bus_manager yet, but just minimal support so
we can get rid of hardcoded ARM SoC support from the core kernel
code.

Needs lots of work, like proper handling of #address-cells and
the like. Also, generic attribute handling, device_manager
integration, and I could go on for hours ;)
2014-10-31 11:14:05 +01:00
Ithamar R. Adema
f4c28fe71f loader: make sure bfs debug output ends up in log
Use dprintf instead of printf so any debug output ends up in
bootloader log instead of only being displayed on-screen.
2014-10-31 10:53:28 +01:00
Jessica Hamilton
47db8ac7d6 pkgman: add missing padding for percentage display 2014-10-31 20:01:29 +13:00
Rene Gollent
b13d824927 Debugger: MarkerView tweaks.
- Draw conditional breakpoints in a different color from regular
  ones for easy visual differentiation.
- Right clicking on an existing breakpoint marker now brings up the
  condition editing window.
2014-10-30 20:59:52 -04:00
Rene Gollent
fe47f15fb4 Debugger: ThreadHandler cleanups.
- Ask the architecture for a stack trace directly, as we only
  need the top frame.
- Properly update thread state before we go into condition
  evaluation. Otherwise, other parts of the debugger potentially
  wouldn't notice that we had continued execution in the case
  where the condition evaluates to false, and would indicate a
  program stop at the breakpoint erroneously.
2014-10-30 20:59:52 -04:00
Henry Harrington
601b2f7eda vm: Try harder to allocate early physical pages.
* On UEFI, pages are allocated top-down; previously,
  VM would fail to allocate early pages due to
  running into pages allocated at the top and
  assume it had run out of pages to map.

Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2014-10-31 13:42:48 +13:00
Adrien Destugues
87d0590f60 pkgman: better download progress bar
* Use Unicode block drawing characters to provide sub-character accuracy
* Also display the download progress percentage as a number

When downloading big packages this helps seeing that the bar continues
moving and that the download is not stalled.
2014-10-30 23:21:02 +01:00
Rene Gollent
a5ce4678c0 Debugger: Implement conditional breakpoints.
ThreadHandler:
- When a breakpoint event is hit, we now check if there is an
  associated UserBreakpoint with a condition attached. If so,
  we schedule an evaluation request, and only stop the thread if
  that one evaluates to true (or if evaluation fails in some way).

This implements #9713.
2014-10-30 16:54:33 -04:00
Rene Gollent
43060a58fa Debugger: Minor tweak to ExpressionEvaluationJob.
- ExpressionEvaluationJob now stores the final result value,
  and provides an accessor to it.
2014-10-30 16:54:32 -04:00
Rene Gollent
942226c711 Debugger: Add UI for configuring breakpoint conditions.
General:
- Add message codes for requesting breakpoint configuration.

UserInterfaceListener/TeamDebugger:
- Add/implement hooks for requesting breakpoint condition changes.

BreakpointsView:
- Add button to request editing the currently selected breakpoint's
  condition.

TeamWindow:
- Handle request to show breakpoint edit window.

BreakpointEditWindow:
- Implement simple radio-based UI for modifying the current breakpoint's
  condition.

Still missing: Actually handling/evaluating the breakpoint conditions in
the ThreadHandler when the breakpoint is hit.
2014-10-30 16:54:31 -04:00
Rene Gollent
3dfdc98cd1 Debugger: Show breakpoint conditions in list view.
- Adjust breakpoint table and model to also show breakpoint conditions,
  if set.
2014-10-30 16:54:31 -04:00
Rene Gollent
65a10b5000 Debugger: Add condition expression member to UserBreakpoint.
- UserBreakpoint and its corresponding settings classes now
  store/recall an optional condition expression.
2014-10-30 16:54:30 -04:00
Rene Gollent
854b341612 Debugger: Minor tweak to expression window.
- If the expression result is an integer, display it in both hex and decimal
  format.
2014-10-30 16:54:29 -04:00
Adrien Destugues
a13654e089 Network: add field for setting the domain. 2014-10-30 21:24:23 +01:00
Adrien Destugues
8aaad21dea Change the new net preflet mimetype to match the old one
This lets NetworkStatus and possibly other apps find it again.
2014-10-30 19:52:43 +01:00
Adrien Destugues
c00e34900a Network: 64bit fix. 2014-10-30 16:15:25 +01:00
Adrien Destugues
1508dc5c41 network prefs: fix jamfiles and include into image.
* There are some rough edges, but the functions from the existing
preflet are all available now.
2014-10-30 15:49:08 +01:00
Adrien Destugues
a0c8a64b47 Move the new network preflet at the right place. 2014-10-30 15:49:07 +01:00