Commit Graph

52421 Commits

Author SHA1 Message Date
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
François Revol
58cd1a5fb3 Update simh package 2014-11-11 00:15:32 +01:00
Adrien Destugues
946a694e70 Update OpenSSH to 6.6p1. 2014-11-10 18:25:33 +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
François Revol
44d31dca37 Update intltool package
To properly require cmd:file.
2014-11-10 01:12:04 +01:00
François Revol
4dcad4ed72 Add package for file
Required for intltool.
2014-11-10 01:11:05 +01: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
f2b20f8804 SupportDef: Add B_COUNT_OF to get array element count.
* We implement this in a lot of places in a lot of
  ways. Lets add it to the SupportDef
2014-11-09 14:47:39 -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
91c0454716 3rdparty: Add a quick doc on how to use IOMMU on Linux
* Drop my old script, didn't work well anymore.
2014-11-09 12:58:55 -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
600c0527d5 *actually* update libsdl_x86
I failed to rebuild the package in the previous try...

Fixes #11429.
2014-11-09 13:51:30 +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
François Revol
1436fe7448 Add TIOCM_CAR as a synonym for TIOCM_CD
Gnokii uses it.
2014-11-09 02:28:06 +01:00
François Revol
2356253278 Update libusb_compat package 2014-11-09 02:21:48 +01: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