Commit Graph

56395 Commits

Author SHA1 Message Date
Rene Gollent
b7012e6c46 libdebugger: Fix #12914.
DwarfImageDebugInfo:
- While computing return value locations, we need to re-evaluate
  the availability of debug information as we're forced to traverse
  around images to resolve the location of a function call. Otherwise,
  we may crash as one of the called functions may belong to an image
  that wasn't compiled with debug info.
2016-08-13 21:23:11 -04:00
Augustin Cavalier
4fecb09f14 libroot: Ship empty libpthread.a and libm.a for POSIX and general compatibility.
A few weeks back, I spotted in the Musl FAQ that they apparently ship
empty libm.a and libpthread.a files (https://www.musl-libc.org/faq.html),
which they said was for POSIX compatibility. A bit of digging got me to
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html which
says:

> It is unspecified whether the libraries libc.a, libl.a, libm.a, libpthread.a,
> librt.a, [OB] [Option Start] libtrace.a, [Option End] libxnet.a, or liby.a
> exist as regular files. The implementation may accept as -l option-arguments
> names of objects that do not exist as regular files.

So to follow the letter of the law, we only need to have the "c99" command
accept these; however, it appears all Linux and BSD cstdlibs accept them
no matter what compliance mode is in effect.

Discussed with PulkoMandy. This will make HaikuPorts' job a lot easier...
2016-08-13 11:16:06 -04:00
John Scipione
2fd8e2811a Keymap: Add layout files to beginnning of menu
...so they are sorted alphabetically.
2016-08-12 12:37:03 -07:00
John Scipione
2cad94c1c3 Whitespace only changes in jam files 2016-08-12 12:37:03 -07:00
Humdinger
715298cb2b Updated youtube-dl package to 2016.08.12 2016-08-12 10:34:39 +02:00
John Scipione
bd4ea6563f BMenuItem: Style fixes
* explict NULL check
* explicit boolean comparison and pointer style fixes
2016-08-09 16:08:59 -07:00
John Scipione
b0a7a75ab1 Webpositive: 80-char limit style fix 2016-08-09 16:08:18 -07:00
Jérôme Duval
d216db039f Rebuild libwebp package on x86_64. 2016-08-09 23:01:58 +02:00
Adrien Destugues
0ac4c71da3 Add icons to more of the servers.
These are not perfect, but better than using the default app icon. Feel
free to improve.

- DNS resolver: phonebook icon
- App-server: hand + app icon
- Keystore: key lock
- Launch daemon: croissant (to get the day started)
- Net server: hand + earth
- Package daemon: hand + package
- Power daemon: CF lightbulb
2016-08-07 22:06:24 +02:00
Jérôme Duval
1e2bf1417a Update libvorbis package for x86_gcc2. 2016-08-07 21:22:34 +02:00
Adrien Destugues
02cb3dd440 netconsole: style fixes, add FIXME 2016-08-07 13:46:12 +02:00
Adrien Destugues
c2ddcb7957 elf.h: also define SELFMAG
- Used by distcc when it detects elf.h.
2016-08-07 13:39:27 +02:00
Adrien Destugues
289e59b770 jpeg: update to version 9b.
- Packages for version 9 has a broken "provides" entry (version 9
  instead of 9.0.0 for the lib) which confuses haikuporter.
2016-08-07 13:25:46 +02:00
Fredrik Holmqvist
74ffd18dd5 Update ACPICA to 20160729
Changelog: https://acpica.org/sites/acpica/files/changes_34.txt

Mostly minor fixes and ACPI 6.0 work since latest update.
2016-08-07 10:07:25 +02:00
Fredrik Holmqvist
e5ebfda19d Enable power button on 64 bit.
Works here. You may need to hold in for a second or two.
2016-08-07 00:46:27 +02:00
François Revol
8ddcab705e geode: fix build (atomics not volatile anymore) 2016-08-06 22:12:20 +02:00
Adrien Destugues
8efb6db7b9 elf.h: rename ELF_MAGIC to ELFMAG
- This is how it is named in other versions of elf.h (Linux, glibc, possibly more)
- ELF_MAGIC is used by libelf for the same thing, and the defines conflicts,
  breaking libelf build on Haiku.
2016-08-06 20:32:47 +02:00
Adrien Destugues
b4aed463ac add WIP "netconsole" KDL add-on
Similar to Linux netconsole, this should send all debug output over UDP
to the broadcast address. It can be listened to with netcat or similar tools.
This could be an easy way to extract KDL info from a crashing machine
when no serial ports are available.

Does not work yet, help welcome.
2016-08-06 20:29:08 +02:00
Adrien Destugues
766f682338 Fix build and first runtime problem in network boot
The boot still crashes some time later, but at least it is easier to
test now.

- PackageFS included in the net boot archive
- Tell the system it is booted "from image" when netbooting
2016-08-06 20:29:08 +02:00
François Revol
d4cfae74c9 opensound: quit the node threads before recycling buffers on dtor
This works around a KDL in the driver due to the buffer address passed
to write() being unmapped in the destructor, and the driver doesn't
properly checks those yet (BeOS used to lock_memory() on read/write buffers).
2016-08-06 20:10:28 +02:00
John Scipione
6f222a3312 Drag and drop color from Appearance ColorPreview
You can drag a color square from the color preview and drop it
anywhere that accepts a color drop.

This allows you to use the color drop feature more readily
for example to change the desktop background color or change the
color of Deskcalc.

Also did some refactoring of ColorPreview class. Make it a BControl
which eliminates the enabled bool and invoker which both are handled
by the inherited BControl class.

Did some refactoring.
* Renamed a couple of class variables following convention
* Also renamed a couple of method parameters for the same reason

Don't call Draw() directly, this is frowned upon, instead use
Invalidate() so app server can draw at the appropriate time.
2016-08-04 21:21:41 -07:00
Axel Dörfler
eb69155bbf app_server: Fixed/documented uses of new without nothrow.
* This should fix all occurrences except for those in the drawing
  sub directory.
* In some cases, the use of new without nothrow was okay, though.
2016-08-04 22:52:40 +02:00
Axel Dörfler
f744935b65 app_server: Fixed broken ServerApp allocation.
* Did not use std::nothrow, but exceptions were not catched.
* MessageLooper::Run() now returns a status code.
* There are a lot more cases of a new without nothrow that need to
  be investigated.
2016-08-04 22:52:30 +02:00
Jérôme Duval
7503f9a84f Add packages for fluidlite. 2016-08-04 19:04:31 +02:00
Automatic Committer
9f4c879660 Update pci.ids from pciids.sourceforge.net 2016-08-04 05:20:22 +02:00
François Revol
63b8635e04 pc_serial: add some references 2016-08-03 20:09:51 +02:00
Jérôme Duval
cc1a880d6e Add docbook*, gtk_doc, itstool, libsamplerate packages for x86. 2016-08-02 20:27:39 +02:00
Humdinger
e65072a83e Updated WebPositiveBookmarks
Added Giovanni's Software Depot (http://softwaredepot.altervista.org/)
2016-08-02 17:09:04 +02:00
John Scipione
9d37e7411c Tracker FindPanel: Make a copy of fDeviceIcon
... so that it gets deleted by destructor and not the original
2016-07-31 19:42:39 -07:00
John Scipione
4a319b9c40 Tracker FindPanel: SetMarked() and SetTargetForItems()
in AttachedToWindow() rather than the constructor.

This does the action at the appropriate time to draw the initial
state correctly.
2016-07-31 19:42:39 -07:00
John Scipione
d7fa9d357b Tracker FindPanel: Use const char* instead of BString
Use String() to get the const char* out of the BString where appropriate

Also rename msg variable to message
2016-07-31 19:42:39 -07:00
John Scipione
717b47e75d Tracker: Style fixes
indentation, spaces, explicitly compare to B_OK
2016-07-31 19:42:39 -07:00
John Scipione
d8c4f7b54a IconMenuItem: Make icon_size B_MINI_ICON by default 2016-07-31 19:42:39 -07:00
John Scipione
caf0a129d6 Tracker: Draw IconMenuItem in closed state
Add an Icon() and SetIcon() method. Override SetMarked() to set the
parent menu field icon.

Don't move the label right if icon is NULL. Make the first menu item
an IconMenuItem with a NULL icon. This allows the icon to draw in the
closed menu state.

icon gets updated even if you select an item in a submenu
2016-07-31 19:42:39 -07:00
John Scipione
837d7501ef Use ColorMenuItem in Spider saver 2016-07-31 19:42:39 -07:00
John Scipione
b2f8925b33 Add ColorMenuItem in Nebula saver 2016-07-31 19:42:39 -07:00
John Scipione
81364c9d82 BColorMenuItem: add custom color menufield
http://insightfactory.tumblr.com/image/142366356207

* Make the color box a rectangle with proportions of golden ratio.
* Override GetContentSize() to make menu item area larger.
* Label should never truncate since I make sure there is enough room.
* Draw the label using BMenuItem parent class
* Carefully adjust the spacing so that there is an attractive amount of
  padding between the checkmark and color box and the color box and label.

Add _AddMenu method to BMenuField that adds BColorMenuItem as its
base menu item. This shows the BColorMenuItem in the closed state.

Create BPrivate::MenuItemPrivate

Add a SetSubmenu() method to MenuItemPrivate that gives you
the ability to add a submenu after creating the object. This
method should be public

Skip disabled items

Color gets updated even if you select an item in a submenu
2016-07-31 19:42:39 -07:00
John Scipione
ca766a50fe BMenu: Offset the menu field's menu window left 8px
...so that the text when the menu is closed lines up with the text
when the menu is open.

The checkmark is draw to the left of left edge of the closed menufield.
2016-07-31 19:42:39 -07:00
John Scipione
e8d4db8e0b MenuPrivate: Add SetItemMargins() method 2016-07-31 19:42:39 -07:00
John Scipione
b75a2e9d22 BMenu: Add default padding to ctor 2016-07-31 19:42:39 -07:00
John Scipione
dcecaf60ad BMenu: Remove _ from protected method _DrawItems 2016-07-31 19:42:39 -07:00
John Scipione
61dfdec415 BMenu and friends: style fixes
BMenuBar: style fix: msg => message

MenuPrivate: style fixes

MenuItem: 80 char limit style fix

MenuBar: tiny style fix

Menu: tiny style fix, indentation

Menu: Small refactor

Implement _SetIgnoreHidden() in header
Change on to ignoreHidden
Change on in _SetStickyMode to sticky

_BMCItem_: tiny whitespace style fix

Menu: style fixes, rename msgr => messenger

BMenu: style fix, pointer != NULL

BMenu::Archive rename ret to status

Also check pointer against NULL explicitly

BMenuItem style fixes: rename abbreviation, pointer style
2016-07-31 19:42:39 -07:00
Rene Gollent
17954f2e22 libdebugger: Initial work for remote support.
- Introduce base classes RemoteDebug{Request,Response} and the first set of
  implementing subclasses for the various types of debug requests. These
  encapsulate the information needed to make a request to the target debugger
  interface, as well as a means to flatten/unflatten to a BMessage. These will
  be used to marshal the relevant information for transmission across the
  eventual transport interface. Not used anywhere yet since there still remain
  some requests and responses to implement, among other things.
2016-07-31 17:30:23 -04:00
Rene Gollent
9c9c24ce08 libdebugger: Add accessor for cpu state size.
Architecture:
- Store and provide accessor for the size in bytes of the low-level
  debug_cpu_state size of the respective target CPU. Adjust subclasses
  to pass in the appropriate size information.
2016-07-31 17:30:12 -04:00
Rene Gollent
b02ee147b1 libdebugger: Reorganize debugger_interface subdir.
- Split into separate subdirectories for each interface type, as is done in
  the target_host_interface subdir. Preparation for the remote interfaces,
  which will have quite a few more components than the existing local ones.
2016-07-31 17:30:04 -04:00
Augustin Cavalier
ebb20270fd Tracker: Don't show warning alert when working in /system/cache/tmp.
Originally, the tmp folder was in /boot/common, where it didn't show
an alert box. Since the move to /system, it simply fell into the general
"is in system directory" case.

Fixes #10173.
2016-07-29 20:41:46 -04:00
Augustin Cavalier
c397198f33 WebPositive: Ensure the downloads window is onscreen.
Fixes #12704.
2016-07-29 19:58:18 -04:00
Augustin Cavalier
a055d42d5b pkgman: Change the update prompt to be "yes/no" instead of "y/n".
Matches the text used elsewhere on the system (and that of the "add-repo"
command.) You can still type a single character to confirm/deny.

Fixes #11260.
2016-07-29 19:39:55 -04:00
Alexander von Gluck IV
95b6439eec intel_extreme: Implement Snb PCH FDI link training 2016-07-29 17:49:59 -05:00
Augustin Cavalier
b070edd867 packages/HaikuDevel: Add GLUT header to image.
We've shipped libglut.so since a long time ago, so let's ship the header
too. Fixes #11739.
2016-07-29 18:41:30 -04:00