30255 Commits

Author SHA1 Message Date
Ryan Leavengood
71896c7386 Created an icon for the cddb_daemon. I wonder if it is too complicated, but
hopefully it makes sense. It is definitely pushing it size-wise (997 bytes.) It
is based on an item in my house (I even set it up on my desk to draw it in
IOM.) If anyone wants to tweak it, feel free.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31497 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31497
2009-07-10 04:30:30 +00:00
Rene Gollent
b644566e31 Don't append the demangled function name twice. This fixes symbols incorrectly being shown doubled when DWARF info was unavailable.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31496 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31496
2009-07-10 03:27:19 +00:00
Ingo Weinhold
a4b0c19209 * Finished the transformation of the SourceCode interface:
- Replaced StatementAtLine() by GetStatementLocationRange(), which doesn't
    return a statement (i.e. also target addresses), but just a range in the
    source code. This can also be implemented by FileSourceCode, which can
    therefore be used for more than one instance of a function.
  - Added GetStatementAtLocation() which kind of is also a replacement for
    StatementAtLine(), but is optional and only provided by
    DisassembledSourceCode.
  - Added GetSourceFile(), which has to be provided when
    GetStatementAtLocation() is not implemented.
  - Kicked the statement stuff out of FileSourceCode. It only knows source
    ranges, now.
* Team: Added GetStatementAtSourceLocation(), which is the real replacement for
  SourceCode::StatementAtLine() in cases where a statement is actually
  needed. It uses SourceCode::GetStatementAtLocation(), if available and
  otherwise finds a function at the source location, and gets a statement for
  one of its instances.
* TeamDebugInfo: Does now manage a source file -> functions map allowing to
  look up functions at source file locations.
* DwarfImageDebugInfo:
  - Switched the path in the source code hash table key for a LocatableFile,
    which is cheaper to hash and to compare.
  - Fixed bugs where the relocation delta was ignored.
  - Replace a -1 in the SourceLocation column component by 0 to avoid
    mismatches.
* SourceLocation: Changed component types from uint32 to int32. Otherwise -1 is
  not representable.

Things mostly work as before starting the refactoring to support function
instances. All is not well yet, though. E.g. we don't merge the source code
information for common source files (like headers) provided by different
compilation units (or even images) yet. We need to do that, since the debug
info for a compilation unit only contains line number information for inline
functions (in headers) that are actually used.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31495 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31495
2009-07-10 00:08:45 +00:00
Ingo Weinhold
7d095b893a Incorrect check -- user-defined breakpoints would be ignored.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31494 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31494
2009-07-09 23:34:34 +00:00
Ingo Weinhold
c5056cd86d * DebugInfoEntry: Allow access to the individual declaration location
attributes returning for each whether it was set on the entry.
* DwarfUtils::GetDeclarationLocation(): Entries can just override individual
  declaration location attributes. E.g. for a specification entry file, line,
  and column can be given, while the entry for the implementation could just
  override the line, if it is implemented in the same file (like inline methods
  in a header).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31493 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31493
2009-07-09 23:33:32 +00:00
Ingo Weinhold
2e064580d6 Fixed broken Insert().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31492 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31492
2009-07-09 23:27:21 +00:00
Ingo Weinhold
3edae90975 Added BinarySearchIndexByKey().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31491 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31491
2009-07-09 23:24:55 +00:00
Clemens Zeidler
29f659f283 Close the file handle if it is not the cpu frequency driver.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31490 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31490
2009-07-09 18:43:14 +00:00
Clemens Zeidler
4ce5127b79 Also I missed this file.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31489 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31489
2009-07-09 18:39:15 +00:00
Clemens Zeidler
ceaa15b6a7 Forgot this, thanks to Andrea Bernardi!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31488 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31488
2009-07-09 18:24:27 +00:00
Ingo Weinhold
5d0e14e988 Link bfs_fuse against the static host libroot.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31487 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31487
2009-07-09 18:06:53 +00:00
Oliver Tappe
33cd079785 * revert libtool to an older version that doesn't expect sed to live
in /boot/common/bin (why does it care where sed lives?)
* revert subversion to 1.6.2, as that does not depend on the expat optional
  package
I think we (well, I) should be more thorough when testing new packages,
it would probably be a good idea to test each package on a new, minimal
image.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31486 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31486
2009-07-09 17:54:33 +00:00
Clemens Zeidler
a635614420 Battery interface for the driver.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31485 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31485
2009-07-09 17:53:09 +00:00
Clemens Zeidler
6aed176c09 Add a ACPI battery driver interface to the PowerStatus app. If there is anyone with a working APM please test if its still working!
TODO:
- Get along with the Layout engine, the extended info window looks "no very nice".
- Reading the battery status takes too long so put it into a thread or cache it.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31484 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31484
2009-07-09 17:16:31 +00:00
Clemens Zeidler
34fc10ad1f Work in progress of the battery driver.
TODO: 
- Move watching stuff from driver to device cookie so it can be used by multiple instances. 
- Find out why we only get notified about AC / battery changes.
- Fetch _BMD info.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31483 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31483
2009-07-09 16:42:30 +00:00
Clemens Zeidler
8c042be3d7 - Fix the timeout from millisecond to our microsecond spin/ wait functions.
- The timeout in Wait was ignored because B_RELATIVE_TIMEOUT was missing.
- Some cleanup.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31482 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31482
2009-07-09 16:25:54 +00:00
Clemens Zeidler
2f0441f7e3 Already get the DCP module when init the ACPI modul.
Doing it on demand in AcpiOsExecute leads to kernel panic on my machine.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31481 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31481
2009-07-09 16:06:40 +00:00
Stephan Aßmus
c85e773511 Forgot to remove invalid TODO.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31480 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31480
2009-07-09 13:10:29 +00:00
Stephan Aßmus
0f3f344fb4 * Implemented calculating the correct display aspect ratio.
* Removed some dead code.
* Fixed a style violation.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31479 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31479
2009-07-09 13:09:23 +00:00
Stephan Aßmus
f9aac21f11 Define the proper FFmpeg flag.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31478 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31478
2009-07-09 13:08:00 +00:00
Stephan Aßmus
a920a6e2a0 Use media_format pixel_width/height_aspect as it was meant to be used. This
avoids rounding issues (1440x1080 -> 1920x1080 instead of 1921x1080).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31477 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31477
2009-07-09 13:05:55 +00:00
Stephan Aßmus
591ce51a9c Improved error logging.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31476 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31476
2009-07-09 13:04:40 +00:00
Rene Gollent
a41067fcb4 When initializing a file panel, check if the view is being targetted at the desktop. If so we need to flag appropriately as we need a different iterator which will also return the volume poses. Fixes ticket #4073.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31472 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31472
2009-07-08 23:22:38 +00:00
Ingo Weinhold
4d12369dce Use unsafe character access to avoid a gcc 4 warning. We check the range
ourselves anyway.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31469 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31469
2009-07-08 21:55:12 +00:00
Jérôme Duval
1001e99388 This file is based on previous work in fwcontrol from FreeBSD. Adjusted the header accordingly.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31468 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31468
2009-07-08 21:52:54 +00:00
Oliver Tappe
1aea6ab6e5 * updated URL of subversion - built by Scott (like so many others), thanks!
* adjusted sorting of sqlite/rsync


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31467 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31467
2009-07-08 21:52:43 +00:00
Jérôme Duval
c7ec967019 added raw dv format support. tested with PAL DV, I don't know for NTSC though
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31466 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31466
2009-07-08 21:41:31 +00:00
Oliver Tappe
be1f4fe800 * find_symbol_breadth_first() didn't ever set _foundInImage, although
it's signature indicates that it should - the callers just never use
  the value currently, so it caused no harm
* squashed a TODO in the runtime_loader about the resolving strategy
  for undefined symbols in add-ons: I've implemented the breadth-first
  strategy (leaving out the add-on itself), as that one made most sense to
  me.
This avoids loader problems with older optional packages of Pe on gcc4, as some
add-ons (e.g. "Expand Tabs") could not be loaded due to them containing undefined
symbols that are found in second level dependencies (libstdc++.so in this case).

Ingo: please review.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31465 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31465
2009-07-08 21:22:12 +00:00
Oliver Tappe
3a111f3310 Fixed what seems to be a typo:
* the default ABI for gcc2 builds should be B_HAIKU_ABI_GCC_2_HAIKU, not B_HAIKU_ABI_GCC_2, as the latter 
  is equal to B_HAIKU_ABI_GCC_2_ANCIENT and enforces the old symbol resolving behaviour.
  If our build isn't ..._HAIKU, what is? ;-)
This fixes a whole lot of perl tests, which failed because the required shared libs could not be loaded
(as they contained undefined symbols that are only found in second level dependencies).
Note: the existing perl optional package works, since it does not contain any ABI specification symbol yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31464 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31464
2009-07-08 20:28:23 +00:00
Ingo Weinhold
1cc5e46925 Added offset and size parameters to create_child_partition() and
KPartition::CreateChild(). CreateChild() calls AddChild(), which publishes
the new partition, though at that point offset and size were not set, so that
the published devices would not be usable.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31463 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31463
2009-07-08 20:26:43 +00:00
Oliver Tappe
967294dbd8 * Turns out that the "upper" half of the old (gcc2) libio - the C++ classes -
keeps its own idea about what a wchar_t is and that was still a short.
  This of course made the data structure of a streambuf incompatible with the
  "lower" half - the glibc part - causing (potentially all sorts of) crashes
  when these classes were used.
  This should fix the crash of gensyscalls when building haiku natively
  on a gcc2-haiku.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31462 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31462
2009-07-08 16:31:01 +00:00
Joachim Seemer
3dcda2693e * Fixed typos.
* Added links to bug tracker and mailing list etiquettes. I don't think those
  have to be available offline. Other opinions?
* Moved warning about the alpha status in welcome.html into a warning box.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31461 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31461
2009-07-08 16:26:00 +00:00
Ingo Weinhold
4dceabd707 * Publish the newly added child partition, not the (already published) parent
partition.
* Don't fail, if publishing failed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31460 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31460
2009-07-08 12:50:13 +00:00
Ingo Weinhold
eff35b90f2 Patch by Bryce Groff: Fixed the partition size slider. It had the partition
offset as minimum and the maximum partition size as maximum value. It's now
the partition start and end offset.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31459 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31459
2009-07-08 12:35:24 +00:00
Stephan Aßmus
dec28f85e0 * Better debug output.
* We can actually tell libavformat to discard packets for streams that
  we are not interested in. Found this in the ffplay code. This should hopefully
  avoid the efficiency impact of using one AVFormatContext per stream.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31458 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31458
2009-07-08 11:09:49 +00:00
Stephan Aßmus
12a9eb5d93 * Coding style cleanup, some removal of dead code.
* Refactored NegotiateOutputFormat() and Decode() into two separate private
  methods each, one for video and one for audio.
* Keep reading chunks when video decoding, until we have got a picture. This
  gets us scrambled video instead of a black picture for h264 in mpegts.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31457 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31457
2009-07-08 09:43:06 +00:00
Stephan Aßmus
0c4d88d353 Added "mpegts" to the supported demuxers.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31456 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31456
2009-07-08 09:41:00 +00:00
Axel Dörfler
82a8a20999 Made the template Haiku vmx file a bit more useful:
* Added (disabled) settings for sound, and CD-ROM.
* Added commented options "numvcpus", and "msg.autoAnswer".


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31455 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31455
2009-07-08 09:26:44 +00:00
Stephan Aßmus
274f43b917 * Virtualize the stream index and implement finding streams when the
context has AVPrograms. I gather this feature is for container streams
  that contain multiple "groups of streams" like how it would work for
  satilite mpeg-ts streams with multiple TV channels in one stream. For this
  to be properly supported, we should extend the BMediaFile/Track API. For
  now, the AVFormatReader uses the first program, if one is there. This
  was also needed to get make mpegts demuxer work, but it is not yet enabled
  for other reasons.
* Read more probe data. 1024 bytes were not enough to detect "mpegts" properly
  for example.
* For now, I disabled the locking in the AVFormatReader hooks themselves,
  this should not be necessary, though I hope libavformat is reentrant as
  long as you have your own AVFormatContext for each thread. So far everything
  hints that it is the case.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31454 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31454
2009-07-08 08:51:31 +00:00
Ingo Weinhold
f379415697 Partition type strings that we hand out we should also be able to handle. I.e.
we need to parse the "Unrecognized Type ..." strings we produce for partition
type IDs we can't match to a name. This fixes the "Failed to prepare
modifications" error the userland tools would produce when a partition with
such a type was encountered.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31453 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31453
2009-07-08 01:32:09 +00:00
Oliver Tappe
f612278f55 * switched back libiconv to a static library and remove all references to
it (headers and library) from the image. The libiconv in our tree is 
  only used internally as a backend for libtextencoding. The real libiconv
  is provided as an optional package.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31452 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31452
2009-07-08 01:00:22 +00:00
Oliver Tappe
2180971924 * adjusted wchar-related defines in config.h of libiconv, coreutils, findutils and tar to match
the new reality


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31451 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31451
2009-07-08 00:56:55 +00:00
Oliver Tappe
f6ed6c11cb fixed two mishaps with new optional packages:
* gcc-4.3.3 did contain too-far-stripped versions of static libraries, missing all symbols.
  Now only the unneeded ones have been removed - fixing the build of the kernel on haiku natively
* libiconv was missing the shared versions of the libraries. I have updated the package to 1.13.1
  and built it with shared libs (which took me considerable time to get right - the auto*-suite 
  basically sucks)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31450 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31450
2009-07-07 23:56:50 +00:00
Oliver Ruiz Dorantes
8fe1949531 Patch by Monni, wrong debug output for btCoreData module pointer
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31449 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31449
2009-07-07 21:45:46 +00:00
Oliver Ruiz Dorantes
6d8521b1f4 - Fix brackets to not perform a delete on a missing instance
- Security checks on dissapeared devices


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31448 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31448
2009-07-07 21:38:36 +00:00
Ingo Weinhold
f66bd6256a Very much work in progress, not in a particularly working state. Haiku munged
a good part of the source tree, so I rather get those changes into the
repository before continuing.
The general aim of the work is to deal with multiple instances of the same
function, e.g. inlined or non-inlined inline functions or those weird duplicates
gcc (4 at least) seems to be generating for no apparent reason.
* Added classes FunctionInstance (wrapping FunctionDebugInfo) and Function.
  FunctionInstance represents a physical instance of a function (e.g. inlined
  function at a particular address). A Function collects all FunctionInstances
  referring to the same source code location.
* Moved the SourceCode property from FunctionDebugInfo to Function accordingly.
* Since SourceCode is no longer associated with a concrete function instance,
  several methods dealing with statements have been removed and the
  functionality has been provided through other means (e.g. TeamDebugModel or
  SpecificImageDebugModel). This part is not yet completed.
* Introduced UserBreakpoint and UserBreakpointInstance. The user sets a
  breakpoint at a source code location, which is represented by a
  UserBreakpoint. Since that source location can be mapped to one address per
  instance of the respective function, UserBreakpoint has a
  UserBreakpointInstance per such function instance, which in turn refers to a
  Breakpoint (an actual breakpoint at an address).
* Adjusted Breakpoint, BreakpointManager, and TeamDebugger accordingly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31447 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31447
2009-07-07 20:47:39 +00:00
Oliver Ruiz Dorantes
ccf28e4dd1 - Unregister the device when appears any error Issuing any command. Now at least we realize in userland when a dongle has been unplugged with the first problem appears.
- Move code between parent & children classes of the Accessors
- a bit Styling



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31446 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31446
2009-07-07 19:46:40 +00:00
Ingo Weinhold
ff1a0e63f8 Linking kernel add-ons against the shared libsupc++ really spoils the fun. :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31445 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31445
2009-07-07 18:34:34 +00:00
Ingo Weinhold
34bc7f03ed Patch by Bryce Groff:
* SetBusy(): Use AddFlags() instead of SetFlags() so that the other flags
  aren't cleared.
* AddChild(): Publish the newly added child partition. Otherwise no-one can do
  anything with it without rebooting first. Other children may need to be
  republished under a new name, if their index changes, which doesn't happen
  yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31444 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31444
2009-07-07 13:10:52 +00:00
Oliver Tappe
16d5c24e53 * merged 32bit-wchar_t branches of buildtools and haiku back into
the respective trunk

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31443 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev31443
2009-07-07 10:30:09 +00:00