48022 Commits

Author SHA1 Message Date
Jérôme Duval
b5ccadd7c2 Virtio: implemented indirect descriptors feature.
* indirect descriptors count hardcoded to 128.
* already activated for virtio_block driver.
hrev45896
2013-07-23 23:00:20 +02:00
Jérôme Duval
17c55998dc Virtio SCSI: add a description for CHANGE feature. 2013-07-23 22:59:01 +02:00
Ingo Weinhold
48b1ed4242 Add all bootstrap packages in DefaultBuildProfiles
* Don't handle the bootstrap case in the main Jamfile. Add all bootstrap
  packages to the image in the profile definition. That's less
  confusing, hopefully.
* Add the missing bootstrap packages (ncurses*, libtool_libltdl). The
  would normally be added in build_haiku_image when the package
  dependencies are resolved, but we don't do that for the bootstrap
  image, since we intentionally leave some dependencies out (e.g. perl)
  because they can be built.
2013-07-23 22:44:32 +02:00
Rene Gollent
79a2f0c70c Debugger: Fix insets in BreakConditionConfigWindow. hrev45895 2013-07-22 23:01:30 -04:00
Murai Takashi
a385c68ad7 Cortex: Fix forming reference to null pointer
* Style fix only for the lines involved.

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
hrev45894
2013-07-22 21:15:15 +02:00
John Scipione
46cb3d3ea6 IconUtils: Add parens to fix warnings
Fixes #9888
hrev45893
2013-07-22 13:42:48 -04:00
Alex Wilson
e66e2a2535 Fix layout issue in Backgrounds preflet.
Add an extra column to the grid layout so that the menu fields are free
to be much bigger than the checkbox.

closes #9882
hrev45892
2013-07-21 23:52:55 -04:00
Rene Gollent
8e80ec6aaa Debugger: Handle some more v4 attributes.
- DIECompileUnit can also be marked with DW_AT_main_subprogram to
indicate that the main program resides within that particular unit.

- DIEBaseType and DIEMember now have the additional attribute
DW_AT_data_bit_offset which defines the offset in a somewhat different
manner than DWARF2/3's DW_AT_bit_offset, and deprecates the latter.

Unused/untested for the moment, as gcc 4.7.3 doesn't yet appear to be
generating either of the above attributes.
hrev45891
2013-07-21 21:19:26 -04:00
Rene Gollent
6dbd3ed18c Debugger: Fix X86 handling of larger return values.
For return values too large to fit into EAX:EDX, the address at which
the value is located is stored in EAX. We were incorrectly assuming
they were at the current stack pointer, which isn't necessarily the
case depending on what optimization/code generation options were
used, leading to us sometimes showing the wrong values for such case.
The same issue showed up with debug binaries generated by Clang.
hrev45890
2013-07-21 19:05:20 -04:00
Rene Gollent
49093da705 Debugger: Handle constant member offsets properly.
For DWARF4, gcc now sometimes emits member locations as constant
offsets from their parent rather than as location expressions.
We weren't handling this case properly, rather we were always
assuming that a constant offset implied we were dealing with a
bit field.

Fixes struct/class members not always having correct values on
version 4.
hrev45889
2013-07-21 18:45:12 -04:00
Ingo Weinhold
81bd962f27 Add haikuporter and python to Haiku bootstrap image 2013-07-21 23:58:37 +02:00
Ingo Weinhold
26b0aa1ccd HaikuPortsCross repository: fix binutils, gcc revision mismatch
I don't think it makes that much sense to increment the revisions in
the cross recipes anyway, since there isn't any actual package
repository.
2013-07-21 21:34:02 +02:00
Ingo Weinhold
7b2174a27d BootstrapPackageRepository: serialize package creation
Since haikuporter uses a common directory for building the ports, we
can't build them concurrently. This makes jamming with multiple jobs
safe again.
2013-07-21 19:39:40 +02:00
Ingo Weinhold
a7ab22a0c0 HaikuPortsCross repository: icu_bootstrap is now available 2013-07-21 18:23:45 +02:00
Rene Gollent
f1fb804608 Debugger: Add missed error check. hrev45888 2013-07-20 23:48:18 -04:00
Rene Gollent
d950dcd9ab Debugger: Implement new expression operands.
DWARF4 adds two new expression operands for values that are known, but
not located anywhere in memory (e.g. a known constant or a value computed
from a composite of other values/locations in the program). These are
DW_OP_implicit_value, which supplies the value directly as an LEB128 +
data block, and DW_OP_stack_value, which indicates the top of the
expression stack is the value.

Implements corresponding support in DwarfExpressionEvaluator,
ValueLocation and ValueLoader.
hrev45887
2013-07-20 23:38:29 -04:00
Ingo Weinhold
e173a1ec1c Integrate building the HaikuPorts bootstrap packages
* Add configure option --bootstrap which allows specifying the
  haikuporter and HaikuPorts repository paths.
* Add rules for supporting a second repository type. The
  PackageRepository rule is now private and RemotePackageRepository is
  used for remote repositories. The new BootstrapPackageRepository rule
  is for defining a bootstrap repository (there will probably be only
  the HaikuPorts cross repository) whose packages can be built as needed
  via haikuporter.
* Rename DownloadPackage to FetchPackage.
* Define repository HaikuPortsCross.
* HaikuCrossDevel package(s): There are now two sets of packages: A
  "stage1" set with the same content as before and a final set
  additionally containing the libraries libbe, libnetwork, libpackage.
  Those are needed for building the libsolv bootstrap package while for
  building them we need other bootstrap packages (ICU, libz).

This is basically all that's required to build a bootstrap Haiku
completely from sources, with a few caveats:
* There's no ICU bootstrap recipe yet (so one has to cheat and use the
  prebuilt package ATM).
* Probably doesn't work on Haiku yet (tested on Linux only).
* A 32 bit environment must be used (otherwise building the gcc 2
  bootstrap package fails).
* Building with multiple jobs doesn't work yet, since haikuporter uses
  common directories for building different packages and there's no
  explicit serialization yet.
* Haven't tested the resulting image save for booting it. So it probably
  needs a bit more work before it can actually build the final
  HaikuPorts packages.
2013-07-21 04:10:48 +02:00
Ingo Weinhold
33f23ea80f Remove more stuff from the Haiku bootstrap packages/image
Namely GL/Mesa and libtiff.
2013-07-21 03:34:35 +02:00
Ingo Weinhold
b9eec5192d Include DefaultBuildProfiles earlier
DefaultBuildProfiles is now included earlier (right after BuildSetup).
This allows us to set HAIKU_BOOTSTRAP_BUILD earlier, so it can be used
for the repository selection. The actual build profile definitions,
which cannot be done that early, live in the rule
DefineDefaultBuildProfiles, which is invoked where the file was
previously included.
2013-07-21 03:20:26 +02:00
Ingo Weinhold
d1fe5b98d9 BuildFeature: get rid of hard-coded package versions
... using the new placeholder feature of ExtractBuildFeatureArchives.
2013-07-21 03:13:58 +02:00
Ingo Weinhold
67e84002a1 rule ExtractBuildFeatureArchives: implement placeholders
Add support for placeholders in the attribute values. The values of the
currently supported placeholders depend on the package file name
(package version, actual package and port name, etc.).
2013-07-21 03:12:45 +02:00
Rene Gollent
a326afa3fc Debugger: Rework DIETypeUnit.
DIETypeUnit now inherits from DIECompileUnitBase in order to handle
things like setting the language info properly. This was previously
missing and would lead to occasional crashes with DWARF4.
hrev45886
2013-07-20 17:47:40 -04:00
Niels Sascha Reedijk
3436a840a3 Update translations from Pootle hrev45885 2013-07-20 06:14:54 +02:00
Rene Gollent
104b28862d Debugger: DwarfFile: Fix DWARF4 signature handling.
Depending on how the type unit was actually set up hierarchically,
we sometimes ended up with the unit set to the wrong actual type
object. Instead, we now simply let the unit parse, and then look up
the entry by the offset specified in the header after all is said
and done. Fixes class/struct objects sometimes winding up resolving
to one of their members instead.

Some problems still remain with resolving variable values for such
types though, needs further investigation.
hrev45884
2013-07-19 21:44:48 -04:00
Rene Gollent
1c292f7eb4 ProcessController: Fix memory calculations.
On systems with > 4GB of memory, the calculations would overflow,
leading to the memory bars being drawn incorrectly.
hrev45883
2013-07-19 20:53:12 -04:00
Ingo Weinhold
fc8967f1a6 Determine HAIKU_CPU and HAIKU_PACKAGING_ARCH in configure
... instead of in BuildSetup.
2013-07-20 01:01:21 +02:00
Humdinger
8f79f5f3b8 Rebuild Paladin package.
Paladin relied on liblocale.so that was moved to libbe (I think).
An updated patch will be submitted to haikuporter shortly.
hrev45882
2013-07-19 22:06:33 +02:00
Ingo Weinhold
21b3820e86 Add libbsd to cross devel package 2013-07-19 15:14:07 +02:00
Philippe Saint-Pierre
0e95ac1797 CPUFreq: rewrite interpolation formula - division by zero (#9872) hrev45881 2013-07-18 22:27:27 -04:00
Rene Gollent
2fab6ab728 Debugger: Fix handling of contained type attribute.
The DIEs generated by gcc sometimes pass a modified type for
DIEPointerToMember's containing type. As such, we need to resolve
the passed in type down to its base type before verifying that it's
indeed a compound type.
hrev45880
2013-07-18 21:37:02 -04:00
Rene Gollent
fe07d32c75 Debugger: Reorder unit finishing.
Type units need to be finished before compilation units to ensure that e.g.
modified types have their base types already set by the time we get to
compilation unit attributes.
2013-07-18 21:37:01 -04:00
Philippe Saint-Pierre
d087b9ca15 CPUFreq: use transparent background when used as replicant hrev45879 2013-07-18 20:54:50 -04:00
Rene Gollent
a5bee83638 DwarfFile: Slight cosmetic change to trace output.
Output the DIE trace for a type unit after we've read the signature and
type offset so we can include those as well.
hrev45878
2013-07-18 19:07:59 -04:00
Jérôme Duval
f3b8787e91 virtio.h: remove trailing whitespaces. hrev45877 2013-07-18 18:27:01 +02:00
Jérôme Duval
9e88776c80 virtio_block: takes capacity change into account
* allows live resizing.
2013-07-18 18:25:59 +02:00
Jérôme Duval
2f2f475b1d virtio*: remove trailing spaces hrev45876 2013-07-18 17:57:56 +02:00
John Scipione
f1eb42958f BMenuField: Check if Frame() is valid, refactor hrev45875 2013-07-18 03:24:26 -04:00
John Scipione
8d75f14355 BMenuField: Style fixes 2013-07-18 03:24:26 -04:00
Alexander von Gluck IV
ae4da1002b netserver: Add EAP defines for WPA enterprise
* Working towards #8850
hrev45874
2013-07-17 20:16:49 -05:00
Rene Gollent
e042b11803 Debugger: implement support for section-global references.
- Add DwarfFile::_GetContainingCompilationUnit() to request a binary
search for the compilation unit containing the passed in global offset.
- DwarfFile::_ResolveReference(): handle global references by first
attempting to find a containing compilation unit, and then seeing if we
can find an entry for the corresponding relative offset within it.
hrev45873
2013-07-17 18:20:15 -04:00
Rene Gollent
9cd4e805e6 Debugger: Add convenience function to BaseUnit...
...to query if a given global offset is within its range.
2013-07-17 18:20:13 -04:00
Rene Gollent
142f7cabdc Debugger: DwarfFile: Clean up type units on delete. 2013-07-17 17:54:39 -04:00
Rene Gollent
6882d4b5d7 Debugger: Handle DW_FORM_exprloc.
Get rid of AC_EXPRESSION. DW_FORM_exprloc is for all practical intents
and purposes identical to DW_FORM_block except with a more explicit
intent. As such, simply treat it the same as a block attribute. Gets
value resolution working on DWARF4.
hrev45872
2013-07-17 17:12:37 -04:00
Philippe Saint-Pierre
f74ad62fd4 ICNS translator: use delete [] where new [] was used hrev45871 2013-07-17 17:08:28 -04:00
Philippe Saint-Pierre
a71f2ed86a TrackerReader: style fixes, no functional changes intended 2013-07-17 16:58:41 -04:00
Philippe Saint-Pierre
cd15d8c3d0 Style fix, no functional change intended hrev45870 2013-07-17 13:38:46 -04:00
Philippe Saint-Pierre
68aca9a477 Message screensaver: memory leak fix - CID 601698 2013-07-17 13:25:42 -04:00
Philippe Saint-Pierre
fa30ef5640 Message screensaver: close pipe with pclose - CID 990944 2013-07-17 13:06:10 -04:00
Philippe Saint-Pierre
f293052d9f Style fix, no functional change intended hrev45869 2013-07-17 12:44:40 -04:00
Murai Takashi
fa49409097 Use delete[] instead of delete
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
hrev45868
2013-07-17 18:31:28 +02:00