Commit Graph

49979 Commits

Author SHA1 Message Date
Julian Harnath
e815ef0795 DriveSetup: check if editor view exists in AbstractParametersPanel
* Base class needs to check this as well because the subclass might
  not override it (e.g. InitParametersPanel).

* Fixes crash when trying to initialize partition map. Thanks to
  jessicah for pointing this out.
2014-03-17 20:50:35 +01:00
Jessica Hamilton
181948a678 libbe_build: fix unterminated string in BEntry::set. Fixes #10686.
Signed-off-by: Stephan Aßmus <superstippi@gmx.de>
2014-03-17 18:21:39 +01:00
Pawel Dziepak
b167307526 kernel: Properly synchronize suspending new thread
After load_image() the child thread is suspended and the parent is
expected to resume it later. However, it is possible that the parent
attempts to resume its child after it has been notified that the image
had been loaded but before the child managed to suspend itself. In such
case the child would suspends itself after that wake up attempt and,
consequently will not be ever resumed.

To mitigate that problem flag Thread::going_to_suspend has been added
which helps synchronizing thread suspension and continuation in a similar
way that "traditional" thread blocking is performed. This means that
the child should behave in a following manner: set its going_to_suspend flag,
notify the parent (i.e. any thread that may want to resume it), acquire
its scheduler_lock and suspend itself if the going_to_suspend flag is set.
The parent should follow pattern: clear going_to_suspend flag of the thread
that is about to be resumed, acquire that thread scheduler_lock and enqueue
it in a run queue if it is suspended.

Thanks Oliver for reporting the bug and identifying what causes it.
2014-03-17 02:40:12 +01:00
Pawel Dziepak
d7e1e3e012 kernel/UserEvent: Make sure UserEvent object is valid during DPC
Most of the actual UserEvent work is done in DPC so that we don't have
to care about the limitations of the context in which UserEvent::Fire()
is invoked. This requires appropriate management of lifetime of UserEvent
instances to make sure that DoDPC() method is always called on a valid
object.
2014-03-17 02:40:12 +01:00
Oliver Tappe
dff7d3a0f2 Add files missing in last commit, sorry. 2014-03-16 21:21:41 +01:00
Oliver Tappe
ff35d6c18a Refactor definition of Haiku image contents.
* Move actual definitions of respective image contents to files
  underneath build/jam/images/definitions (minimum, bootstrap, regular).
* HaikuImage now only includes the image definitions for the selected
  build profile and adds the Haiku packages.
* Simplified topmost Jamfile to some extent.
* Move definition of DESKBAR_APPLICATIONS and DESKBAR_DESKTOP_APPLETS
  from build/jam/packages/Haiku to the respective image definition file.
* Sort and reformat several lists to make them more readable.
2014-03-16 21:17:22 +01:00
Oliver Tappe
1d50d90fbe Drop extra packages and note which no longer applies.
* now that haikuporter resolves the dependencies correctly, there's no
  need to add texi2html and htmldoc explicitly
2014-03-16 14:48:30 +01:00
Oliver Tappe
72e677911f Make set of source packages for bootstrap-image configurable.
* Add new build profile 'minimum', which defines a minimum set of
  packages.
* Introduce HAIKU_BOOTSTRAP_SOURCES_PROFILE and let it default to
  '@minimum-raw'. This can be overruled in UserBuildConfig, setting
  it to '@release-raw' will cause all source packages required for a
  full release to be put onto the bootstrap-image.
* Add new image HaikuImageMinimum, which is meant to define the minimum
  useful Haiku image (yeah, I know that's vague).
* Add HAIKU_MINIMUM_BUILD, which indicates that HaikuImageMinimum should
  be used (it would be better to merge this with HAIKU_BOOTSTRAP_BUILD
  into something like HAIKU_BUILD_TYPE)
* Cleanup duplicate references to basic packages - those are now added
  by the topmost Jamfile (no longer referenced by the build profiles).
2014-03-16 01:17:55 +01:00
Oliver Tappe
bef384b058 Don't copy over package versions into package-list for bootstrap.
* This decouples the versions referenced by the architecture-specific
  repository file from the actual versions available in the haikuports
  branch that happens to be used for the bootstrap build.
2014-03-16 01:17:54 +01:00
Jonathan Schleifer
998f404369 Use B_PRI* instead of PRI*
Sorry, didn't realize they're not the same on 32 bit systems.
2014-03-16 00:08:10 +01:00
Jonathan Schleifer
a10ad54c6b Fix a few %l* instead of PRI*32 2014-03-15 23:37:57 +01:00
Jonathan Schleifer
fee49d2f35 haiku3d: Fix type mismatches on x86_64 2014-03-15 23:37:56 +01:00
autonielx
9530f75bf3 Update translations from Pootle 2014-03-15 06:17:19 +01:00
Jonathan Schleifer
88d550e67e histedit.h: Add missing #include <sys/cdefs.h>
This fixes building openssh on the bootstrap image.

The real problem is that it picks up this file instead of the histedit.h
from libedit, though. But since this include was missing anyway, it
makes sense to fix this file, too.
2014-03-15 04:34:46 +01:00
Jonathan Schleifer
a5fba62e21 HaikuImageBootstrap: Add random
This is required for scons, which is required to build Mesa.
2014-03-15 02:46:22 +01:00
Adrien Destugues
0d53b1893e Fix text alignment in jam help.
Thanks to stippi for noticing the problem...
2014-03-13 12:46:34 +01:00
Arvind S Raj
c5b4edb222 Fixed typo in help information of a nightly build target
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2014-03-13 08:05:03 +01:00
Axel Dörfler
634c2c68b2 HaikuDepot: added "available" filter.
* That's the only one I would ever want to see (in most cases).
* I must admit that I don't really understand why the lists are created
  and updated only for filtering, instead of just testing against the
  package state.
* However, I also have no idea, why the NotContainedInFilter does not
  work. I left it in because someone might see what I didn't, and maybe,
  if the first confusion is cleared, it might even find some use.
2014-03-12 21:49:09 +01:00
Axel Dörfler
5f448959ec HaikuDepot: Minor style cleanup. 2014-03-12 21:49:09 +01:00
Adrien Destugues
c6b4918597 Add Qt and Qupzilla packages.
Packages built a while ago by Arfonzo, which never were uploaded.
Thanks, and sorry for the delay.
2014-03-12 16:03:52 +01:00
Rene Gollent
c418e8f101 x86_64: Update bison, libtool, python and readline packages. 2014-03-11 21:49:18 -04:00
Rene Gollent
57ea16dd0c Update x86-64 bzip2, openssl and vision packages. 2014-03-11 17:19:43 -04:00
Jonathan Schleifer
36ab9ee174 Use correct gawk_bootstrap version
This prevents rebuilding it every time jam is called.
2014-03-11 22:13:24 +01:00
Stephan Aßmus
1e625a2b08 app_server: Removed duplicate line of code...
for setting the filling rule. There are only two different rasterizers.
2014-03-11 22:11:08 +01:00
Oliver Tappe
f69f5a44a1 Filter non-rigged source packages from bootstrap image.
* Before, we were putting both rigged and standard source packages
  onto the bootstrap image, which caused the build to fail (because
  non-rigged source packages can only be built with git available).
2014-03-11 22:05:27 +01:00
Oliver Tappe
526132b58d Add missgin gawk_bootstrap, it is required on the bootstrap image. 2014-03-11 22:05:26 +01:00
Stephan Aßmus
b74fecd7aa app_server: Update and use the fill rule in all cases.
* It was previously not used for gradient rendering.
 * It was not updated when the DrawState was set.
 * Not actually tested, yet.
2014-03-11 21:06:26 +01:00
Adrien Destugues
eb43166326 app_server & interface kit: support fill rules.
* BView gets SetFillRule/FillRule methods. The fill rule is part of the
view state.
* The B_NONZERO rule is the default. This is what we implemented before.
* The B_EVEN_ODD rule is the other common possibility for this, and
we need to support it to help WebKit to render properly.
2014-03-11 17:27:42 +01:00
Philippe Saint-Pierre
98e26ff242 Hey: more style fixes, no functionnal changes intended 2014-03-10 22:15:36 -04:00
Arvind S Raj
fd468340f1 Add more build profiles to "jam help" list.
* fixes #10655

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
(with some style fixes)
2014-03-10 08:24:35 +01:00
Jonathan Schleifer
98ae6f2784 Update HaikuPortsCross repo for all archs 2014-03-10 04:24:55 +01:00
Jonathan Schleifer
92bd26ce8e stdio.h: Add missing *_unlocked declarations
Configure scripts would find the symbols and thus use them and assume
our headers declare them.

This fixes building gcc_bootstrap.
2014-03-09 23:08:51 +01:00
Adrien Destugues
ba5172cccb pthread: allow NULL thread to compare equal.
- POSIX says the behavior for pthread_equal is undefined for
uninitialized arguments.
- However, gcc C++11 threads supports expects C++-compatible behavior,
that is, two uninitialized pthread_t should compare equal.

Avoids some runtime asserts in latest WebKit version.
2014-03-09 22:26:36 +01:00
Pawel Dziepak
0012ba6a87 scheduler/low_latency: Try harder to balance load
In low latency mode the scheduler would not attempt to balance load
on not heavily loaded cores unless difference in load exceeded
kLoadDifference * 2 (i.e. 40 percentage points), which does not seem
to be good enough.
2014-03-09 19:58:11 +01:00
Pawel Dziepak
a57a7a8c6d scheduler: Fix load update on idle cores
To make sure that load statistics are accurate on idle cores each time
idle thread is scheduled a timer is set to update load when current
load measurement interval elapses. However, core load is defined as the
average load during last measurement interval and idle core may be still
considered busy if it was not idle during entire measurement interval.
Since, load update timer is a one shot timer that information will not be
updated until the core becomes active again.

To mitigate that issue load update timer is set to fire after two load
measurement intervals had elapsed.
2014-03-09 19:58:11 +01:00
Pawel Dziepak
5df1ecb2ab x86_64: Relax ltr operand constraint
Any 16 bit general puprose register can be a ltr operand, no need
to force AX.
2014-03-09 19:58:10 +01:00
Pawel Dziepak
1700e825b1 scheduler: Always protect gCore[High]LoadHeap with spinlock
Should fix #10628. If there is a race condition with a writer getting
minimum or maximum from double ended heap may incorrectly result NULL.
Which is not expected in the most of the thread migration logic. Apart
from that, because of the race condition heap state may be observed as
inconsistent thus failing assertions.
ended heap
2014-03-09 19:58:10 +01:00
Rene Gollent
198fd05030 Debugger: Handle DW_AT_signature.
- Per DWARF4's specification, if a type's complete definition is
  contained in a .debug_types unit, it should be referenced via the
  DW_AT_signature attribute. 4.8 now actually does this rather than
  setting e.g. DW_AT_attribute_origin to a signature ref, and
  consequently we weren't finding said reference any more.

Gets .debug_types section support working again.
2014-03-09 10:10:34 -04:00
Rene Gollent
0da0db4da0 Debugger: Partly rework hrev46696.
- Various other places in Debugger expect the highpc attribute to be
  an address rather than an offset. As such, resolve it to one when
  setting the attribute in the corresponding DIE so the resolved value
  is available everywhere. Fixes variable scopes not being computed
  properly, and consequently the missing variables mentioned in the
  previous commit.

This gets things working properly again under gcc4.8.
2014-03-08 23:00:51 -05:00
Rene Gollent
3414d0b64d Debugger: Fix program counter handling issue.
- For DWARF4, lowpc/highpc can be specified as constants in addition
  to addresses. Furthermore, they can also be specified such that highpc
  is a relative offset from lowpc rather than an absolute address. We
  weren't handling this case, which gcc4.8 is now using when emitting
  version 4 debug information. Fixes another part of #10659.

There still remains a problem with regards to class/structure variables not
showing up in the local variables view.
2014-03-08 22:40:33 -05:00
Murai Takashi
982b4e9809 Fix mismatching allocation and deallocation
Fixes ticket #10374

Signed-off-by: Philippe Saint-Pierre <stpere@gmail.com>
2014-03-08 20:29:53 -05:00
Julian Harnath
119bf0013c Fix empty parameter dialog in DriveSetup
* When the add-on provides no parameter editor, still add the set of
  of default controls instead of just bailing out of the Init()
  method.

* Before, DriveSetup never added the default controls in such cases
  and simply showed an empty window. This happened when e.g. trying
  to create a new partition inside an extended partition (because
  ExtendedPartitionAddOn provides no parameter editor).

* Fixes #10569
2014-03-08 23:27:11 +01:00
John Scipione
5d98ee1e4d Revert "BScrollView: Increase small scroll step size from 1 to 3"
This reverts commit bdcfc07617.
2014-03-08 15:18:35 -05:00
Philippe Saint-Pierre
1166849963 Hey: use delete[] instead of free (CID #990947 and CID #990948) 2014-03-08 13:34:44 -05:00
Philippe Saint-Pierre
6fef592d6b Hey: Style fixes, code clean up
No functional changes intended
2014-03-08 13:31:29 -05:00
Rene Gollent
c9eb4468ca Debugger: Add handling for rvalue reference type entries.
Fixes part of #10659.
2014-03-08 12:44:46 -05:00
Rene Gollent
84e7206b05 Style fix. 2014-03-08 09:46:13 -05:00
Rene Gollent
b7282c5f2e Fix #10610.
Added missing initializer for fContext in PackageInfoErrorListener whose
absence was leading to crashes when generating the error string.
2014-03-08 09:44:13 -05:00
Julian Harnath
b3892782a6 Look at the internal encoder to pick the link
* When determining the output link, look at the internal encoder in
  the transmitter setup.

* Fixes getting no picture on digital output of certain systems.
2014-03-08 10:47:14 +01:00
autonielx
0af7f3c1c2 Update translations from Pootle 2014-03-08 06:16:12 +01:00