Commit Graph

30098 Commits

Author SHA1 Message Date
Ingo Weinhold
5bf75a6f2b Last minute change that, of course, broke the build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31543 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-13 20:05:17 +00:00
Stephan Aßmus
9ce9e6e458 Resetting the width/height and aspect all at once in my last commit was buggy.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31542 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-13 20:04:06 +00:00
Stephan Aßmus
f186fa405c * Improvements to the aspect ratio handling. The "Keep Aspect Ratio" setting
is now superfluous.
* When switching aspect ratio and the current video size is 100%, always
  resize such that one side stays at 100% (which would be the height mostly)
  and the other is scaled up (mostly the width).
* In _SetupWindow(), which is triggered by a new stream for example, also
  check if the aspect ratio changed and resize accordingly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31541 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-13 19:58:07 +00:00
Ingo Weinhold
f7526300d9 * DWARF: Implemented parsing the DWARF frame info and evaluating it (save for
DWARF expressions). Several related new classes: CfaRule[Set], CfaContext,
  DwarfTargetInterface (for accessing target registers and memory).
* Implemented DwarfImageDebugInfo::CreateFrame(), so the DWARF frame info is
  used for unwinding the stack.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31540 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-13 18:54:11 +00:00
Ingo Weinhold
614e1dc42f * Register:
- Added a type constant describing the format of the register value.
  - Added flag "is callee-preserved" indicating whether the ABI requires the
    register to be preserved by a called function.
* CpuState: Added SetRegisterValue(), made GetRegisterValue() const.
* Added RegisterMap interface for mapping register indices between different
  models.
* Architecture:
  - Added CreateCpuState() version to create a clean CpuState.
  - Added GetDwarfRegisterMaps(), which returns to RegisterMaps, converting
    from and to DWARF register indices.
  - Added ReadValueFromMemory() reading a value from the target team's memory.
    The value type is specified by a type constant and the value return via a
    BVariant.
  - CreateStackTrace: No longer decide whether to adjust the instruction pointer
    of the previous CPU state depending on who created the CPU state. Instead
    compare it with the return address of the next frame. If they are equal it
    obviously has to be adjusted.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31539 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-13 18:45:49 +00:00
Ingo Weinhold
3b859de22e Added handy static method SizeOfType().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31538 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-13 18:33:06 +00:00
Rene Gollent
000dfcbcf3 Draw the selection highlight. Still has some issues when shrinking the selection region, but will deal with that after work.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31537 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-13 13:05:10 +00:00
Rene Gollent
366f83ad41 Add partially functional mouse selection support. Doesn't yet draw the selection highlight or handle scrolling.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31534 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-13 00:19:26 +00:00
Jérôme Duval
7e1a9f1583 applied from idefix to fix the tab order for the Expander app (bug #4076). Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-12 22:05:38 +00:00
Jérôme Duval
7096765716 added quotes around the mount point parameter, should fix #4063
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31532 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-12 21:57:11 +00:00
Rene Gollent
c4ee57cfe2 Make source view navigable and scrollable via the usual keyboard shortcuts. Still lots to do including drawing a focus highlight and text selection/copying via keyboard and/or mouse.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31531 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-12 20:29:18 +00:00
Oliver Tappe
2b5f70fcad * updated python optional package, which was built by Scott
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31530 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-12 17:15:57 +00:00
Fredrik Modeen
d0da5b576f Fix compile of BeServed on Zeta but could not get it to work on Zeta - Windows xp combination. I will not do much more work on this. I have a pkg that I intend to make public.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31528 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-12 14:03:58 +00:00
Stephan Aßmus
7f96d6194d Fixed accidental removal of licenses in previous commit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31527 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-12 10:34:19 +00:00
Fredrik Modeen
fcab391bbc Fixes #2314.
* Check if ProcessController are already installed in deskbar, If so don't try to install again.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31526 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-12 10:25:18 +00:00
Rene Gollent
008ec58d9f When building the block cache for UserlandFS's haiku emulation lib, don't include tracing since that's unavailable outside of the kernel. Fixes ticket #4092. Axel or Ingo, please review.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31525 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-12 03:52:52 +00:00
Ingo Weinhold
50ffb0b27e Fixed Includes invocation for .def files. The wrong variable was used.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31524 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-11 20:27:44 +00:00
Ingo Weinhold
6cba4149a1 Announce y.tab.h inclusion of parse.h to jam.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31523 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-11 20:25:39 +00:00
Ingo Weinhold
31af373488 Patch by Bryce Groff with small changes by myself:
* Fixed _Create(): Now it correctly supports nested partitions and uses the
  selected partitionable space.
* Fixed _Delete(): Should also work for nested partitions, now.
* Changes to keep the disk view and menu item state in sync.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31522 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-11 16:50:57 +00:00
Michael Pfeiffer
504033fbbe Clean up. Renamed spool_file to spoolFile.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31521 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-11 14:37:11 +00:00
Ingo Weinhold
a365e1cfbb Patch by Bryce Groff, some changes by myself:
* devfs:
  - devfs_[un]publish_partition(): They no longer get the partition path as
    parameter, but rather the device path and the partition name.
  - Added devfs_rename_partition(), which renames an already published
    partition node.
* KPartition/KDiskDevice:
  - Replaced the fPublished flag by fPublishedName, the name under which the
    partition is published. This simplifies UnpublishDevice() and makes it
    practically infallible.
  - Added GetFileName(), which only returns the partition's file name.
    Simplified GetPath() by using it.
  - When a partition is added/removed the subsequent sibling partitions get a
    new index. Now we also rename their published device nodes (and those of
    their descendents). When something goes wrong we unpublish the concerned
    partition's device to be on the safe side. Would be a shame to accidentally
    format the wrong partition, eh? :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31520 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-11 14:35:04 +00:00
Michael Pfeiffer
3db3c417f0 Fixed ticket #2935: Background of preview window should be gray.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31519 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-11 14:23:35 +00:00
Michael Pfeiffer
b3491b369f After showing the preview window the print output was empty, because file position was wrong.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31518 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-11 14:00:53 +00:00
Clemens Zeidler
e391ec67b7 - extended info window looks a little bit better now.
- cache the battery status and read it out in the polling thread
- fix time label



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31517 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-11 10:53:29 +00:00
Michael Pfeiffer
9a443f6c06 Added yasm and cdrtools to list of dependencies.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31516 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-11 10:17:06 +00:00
Ingo Weinhold
37e2eea0d8 Remove duplicates in the function list view.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31515 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-11 00:15:39 +00:00
Ingo Weinhold
18ca318a3d * Since disassembled code is actually function instance specific,
FunctionInstance does now also have a (DisassembledCode) source code
  attribute. Function keeps its attribute, but it explicitly is a
  FileSourceCode now.
* SourceCode:
  - Removed GetStatementAtLocation(). Instead DisassembledCode has a
    StatementAtLocation() now. As well as a StatementAtAddress() and
    StatementAddressRange(). Rather cast to the subclass (in two instances)
    instead of having those methods in the base class. In most cases we already
    have the subclasses now, anyway.
  - Added Lock()/Unlock(), which are implemented in FileSourceCode. The
    statement ranges are no longer immutable, so we have to lock.
* TeamDebugModel:
  - Revived GetBreakpointsInAddressRange().
  - GetBreakpointsForSourceCode(): Optimized for DisassembledCode and fixed
    in the FileSourceCode case. We need to compare with the functions' source
    file instead of their source code, since they might not have the source
    code set yet. Fixed two instances of the same problem in SourceView. Setting
    breakpoints in functions that have no associated source code yet, works now.
* Team:
  - GetStatementAtAddress(): Optimized by using the DisassembledCode, if
    available.
  - GetStatementAtSourceLocation(): If the supplied source code is
    DisassembledCode, we have to get the statement from it directly, since
    we can't get that information from the image debug info.
* TeamDebugInfo: Added LoadSourceCode() and DisassembleFunction(), the new way
  to get FileSourceCode respectively DisassembledCode. SpecificTeamDebugInfo
  has lost LoadSourceCode() and gained service methods AddSourceCodeInfo() and
  ReadCode(). This avoids unnecessary code duplication in the subclasses.
  Moreover it allows for joining source location info source files from
  different images (and compilation units) -- interesting for inline functions
  in headers.
* Adjusted LoadSourceCodeJob and TeamDebugger::FunctionSourceCodeRequested()
  accordingly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31514 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-11 00:05:26 +00:00
Stephan Aßmus
1dc94c6b69 Fix spelling error in comment. Thanks Joseph!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31513 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-10 18:51:33 +00:00
Stephan Aßmus
b07121279f Keep the mouse at the same location when preventing the screen saver to go
off... solves some weird issues.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31512 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-10 18:08:30 +00:00
Stephan Aßmus
3621c97fdf Most of our Readers place 1:1 as pixel aspect ratio for undistorted video,
which doesn't seem to be correct from how I read the BeBook. Ignore it for
now which is pretty unlikely to be a problem.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31511 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-10 17:59:34 +00:00
Stephan Aßmus
691c650397 Do not set the pixel_*_aspect fields wrongly, just leave them at 0, which
hopefully any app interpretes as to be ignored.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31510 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-10 17:49:50 +00:00
Stephan Aßmus
c463715d25 Fix the GCC2 build, though I have no idea why this worked on Haiku.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31509 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-10 16:56:13 +00:00
Oliver Ruiz Dorantes
111d946099 - Patch by Michael Weirauch, Finally a deskbar addon for bluetooth
- Functionality to stop services, start preferences, and show debug console
- Cleanups in signatures

-This line, and those below, will be ignored--

M    headers/private/bluetooth/bluetoothserver_p.h
M    src/servers/bluetooth/BluetoothServer.h
A    src/servers/bluetooth/DeskbarReplicant.cpp
A    src/servers/bluetooth/DeskbarReplicant.h
M    src/servers/bluetooth/Jamfile
M    src/servers/bluetooth/BluetoothServer.cpp
M    src/preferences/bluetooth/BluetoothMain.cpp
M    src/preferences/bluetooth/Jamfile
M    src/preferences/bluetooth/defs.h
M    src/preferences/bluetooth/BluetoothWindow.cpp


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31508 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-10 15:12:51 +00:00
Stephan Aßmus
4cc0f297e9 This seems to be the only change required for the GCC2 build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31507 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-10 14:41:02 +00:00
Stephan Aßmus
4c3fe04bd3 * More cleanup and removal of code duplication in the Jamfiles. Moved
the HAIKU_FFMPEG_DEFINES and friends to the toplevel ffmpeg Jamfile.
* Define the X86 CPU acceleration features in global Jamfile variables,
  so that we can build specific source files depending on those defines
  later (used for libavcodec_x86.a).
* In config.h, a whole bunch of parsers were defined off, which was the
  actual reason why plain old .MPG files and also my .MTS streams with
  H.264 video gave only scrambled video.
* Removed some files from the build by comparing which files are build
  by a pristine FFmpeg libavcodec Makefile.

Attention: The following changes may break the GCC2 build:
* Remove Haiku specific changes from
	- libavcodec/x86/cavsdsp_mmx.c
	- libavcodec/x86/dsputil_mmx.c
	- libavcodec/x86/h264dsp_mmx.c

I will test this next after switching my GCC. If you are impatiant, the
following changes were previously done to the pristine FFmpeg 0.5 files:

libavcodec/x86/cavsdsp_mmx.c:
* commented out line 426 to 429

libavcodec/x86/h264dsp_mmx.c
* h264_loop_filter_strength_mmx2() was commented out.

libavcodec/x86/dsputil_mmx.c
* gmc_mmx() was commented out.
* commented out line 2665 (assigning c->gmc)
* commented out line 2786 (assigning c->h264_loop_filter_strength)

However, I would now make similar changes by checking the GCC version. Also,
the libavcodec/x86/dsputil_mmx.c:2786 was still assigning the dummy
h264_loop_filter_strength_mmx2() version.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31506 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-10 14:34:11 +00:00
Oliver Ruiz Dorantes
41077a99de Make debug window bigger
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31505 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-10 14:29:33 +00:00
Stephan Aßmus
8ca0ccd187 * Fixed compilation with TRACE_IO defined.
* Improved Seek(). If wence is not SEEK_SET, make sure to check the current
  source position and adjust it to what the stream points to. Also, return
  just -1 on error since this is used for libavformat code. And don't set
  the stream position to the error return value.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31504 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-10 14:23:47 +00:00
Stephan Aßmus
219858ad31 * Simplified "extra data" handling/allocation code a bit.
* Added debugging facility to dump the first 100 packets of a video stream
  to a debug file on the Desktop.
* When needing to flush packets, avcodec_flush_buffers() is unfortunately
  not reliable. For audio codecs, the work around was to close and reopen
  the codec in Seek(). Do this also for video codecs. Makes H.264 more
  reliable here.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31503 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-10 14:20:48 +00:00
Oliver Ruiz Dorantes
981f1b1135 - Add method in LocalDevice class to write its class to the dongle
- Rework and style the DeviceClass class
- Implement option "Identify host as..." in preferences with mentioned method, this should allow us to be visible to more RemoteDevices



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31502 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-10 14:19:17 +00:00
Oliver Ruiz Dorantes
2a3b755cbe Add handling for write device class event
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31501 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-10 13:43:35 +00:00
Axel Dörfler
a9b9937a3d * Fixed remove(): it should behave like rmdir() for directories.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31500 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-10 13:31:02 +00:00
Axel Dörfler
3f7eb638dc * Ah, well. Now it's really replaced.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31499 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-10 13:04:13 +00:00
Axel Dörfler
6de41102e5 * Replaced the broken BSD realpath() that is neither thread-safe nor POSIX
compliant with one that is both, and magnitudes faster at that, too.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31498 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-10 12:27:05 +00:00
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
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
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
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
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
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
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
2009-07-09 23:24:55 +00:00