Commit Graph

28818 Commits

Author SHA1 Message Date
Stephan Aßmus
962bcf7da1 Patch by stpere:
* Make DiskUsage use Tracker's "Get Info" panel instead of it's own (still
  falls back to it's own when Tracker isn't running...)
* Fixed some drawing issues.
* Removed the window aspect constraints.

Thanks a lot! Philippe, please have a look how I changed the license, and the
only coding style violation is that you need to watch out for the 80 chars per
line limit. :-) Great work!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30171 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-15 14:49:06 +00:00
Ingo Weinhold
afa231acb8 * Reorganized the image management. Introduced a SharedImage which knows the
symbols and is identified by name. Image does still represent a team-bound
  image, but it refers to a SharedImage for the symbols, now. This allows us
  to load the symbols for a shared object only once and share the data for all
  teams referring to it.
* Made the area used for system profiling writable. "-a -f" would segfault
  since the return addresses are sorted in-place.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30170 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-15 13:41:40 +00:00
Ingo Weinhold
998210b432 Missed in the previous commit: Added debug_get_symbol_iterator_image_info().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30169 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-15 13:30:58 +00:00
Ingo Weinhold
39df634176 Added debug_get_symbol_iterator_image_info() to get an image_info from a
symbol iterator.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30168 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-15 13:30:14 +00:00
Axel Dörfler
0e9ddc9350 * The initial ARP entry for interfaces without an address were never removed.
* arp_update_local() was called without holding the sCacheLock, but did not take
  care about locking either. Now the caller has to lock.
* Updating the local ARP entry is now done while holding the sCacheLock the
  whole time, thus it's now atomic to the outside.
* Fixed a potential deadlock: the arp_entry destructor must not be called with
  the sCacheLock being held as long as there is a potential timer running.
* Fixed a potential double delete in case the arp_entry destructor was called
  with a pending ARP_STATE_REMOVE_FAILED or ARP_STATE_STALE. Now, we set the
  new flag ARP_FLAG_REMOVED to check for that condition (it's now set when an
  entry is removed from the hash).
* arp_start_resolve() would leak non-functional ARP entries around when
  something went wrong during the initialization. It will now remove them via
  their timer.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30167 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-15 10:29:33 +00:00
Axel Dörfler
a96e91db3b * Added TRACE macro to see what timers are set/cancelled.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30166 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-15 10:21:58 +00:00
Axel Dörfler
b4a57bf88b * Now makes sure the timer is properly shutdown when deleting the arp_entry.
* This fixes a crashing bug that could be triggered when switching IP addresses
  often.
* Also added a TODO about another possible crashing problem I won't look into
  today anymore.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30165 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-14 21:24:43 +00:00
Jérôme Duval
36f4b5cc7b build fix
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30164 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-14 21:09:58 +00:00
Jérôme Duval
311206eed7 gcc4 build fix
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30163 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-14 20:37:21 +00:00
Ingo Weinhold
e52c3559d3 * Renamed debug_delete_image_symbol_iterator() to
debug_delete_symbol_iterator().
* Added debug_create_file_symbol_iterator() which opens a shared object file.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30162 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-14 18:03:24 +00:00
Stephan Aßmus
d35b3513de Updated Pe optional package with a newer one (GCC2 only).
* The Save file panel has no more overlapping controls. (patch by Maxime Simon,
  Thanks a lot!)
* Functions at the top can now be jumped to via function popup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30161 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-14 17:24:14 +00:00
Axel Dörfler
1db58389c6 * {read|write}_pages() does not have a "reenter" argument. This could let both
commands run without proper locking.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30160 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-14 17:05:15 +00:00
Axel Dörfler
3553f323a6 * Allow a sector size of 4096 as well; this change allows Haiku to mount an
iPod.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30159 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-14 17:04:05 +00:00
Ingo Weinhold
60dd191612 Removed the SymbolLookup dependency in debug_next_image_symbol().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30158 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-14 16:52:08 +00:00
Axel Dörfler
5f1b31debd * Made the intel disk_systems add-on independent from the block size as well.
* This also fixes the build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30157 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-14 14:46:26 +00:00
Axel Dörfler
fc2c8b88a5 * Cleanup, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30156 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-14 12:43:54 +00:00
Axel Dörfler
199f33248d * Removed SECTOR_SIZE in the read-only part of the intel partition scanner;
however, it's still used in the write part.
* Made the read-only code block size agnostic. Only tested with an Apple
  iPod so far, and it recognizes its partition fine now. Next test on real
  hardware.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30155 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-14 12:33:01 +00:00
Axel Dörfler
b41bbb4a46 * Renamed partition_table_sector to partition_table, and PTS* to
PartitionTable*; the sector is not really a sector, but only the first
  512 bytes of it.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30154 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-14 11:56:21 +00:00
Clemens Zeidler
d88bc21991 Catch a potential crash.
Small coding style cleanup.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30153 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-14 09:15:46 +00:00
Ingo Weinhold
92696166d0 * Removed debug output accidentally committed.
* Also allow yasm 0.7.{0,1} -- they have been reported to successfully build
  at least.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30152 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-14 00:07:31 +00:00
Ingo Weinhold
81f87f58ed When clearing a device we do now ignore an error when we could write anything
at all.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30151 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-13 23:57:12 +00:00
Rene Gollent
dd0e375f41 Fix build break I introduced in previous commit. Add some extra behavior for OutlineListView's right arrow: if the item has children and is expanded, right arrow now jumps to the first child.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30150 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-13 22:20:49 +00:00
Rene Gollent
86656c6b30 When checking double click with jitter threshold, make sure that both clicks are also on the same list item. Thanks stippi for pointing out this oversight!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30149 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-13 22:10:24 +00:00
Axel Dörfler
ad491b436f * Moved _CreateBlocks() back into the constructor. That used to make bug #3572
more reproducible, but it doesn't work for me anymore.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30148 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-13 13:12:09 +00:00
Rene Gollent
2b110c144b Modify double click check to allow some fuzz in the pointer placement, as is done in Tracker. BTextView likely needs a similar adjustment.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30147 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-13 12:47:13 +00:00
Ingo Weinhold
77e84f219a configure does now check the yasm version for target architecture x86, and
sets the HAIKU_YASM build variable, which will be checked in BuildSetup.
Re-running configure or adding the variable manually to
generated/build/BuildConfig is required.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30145 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-13 10:50:17 +00:00
David McPaul
4e5a71dd76 add h264 and ac3 support in matroska
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30144 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-13 06:14:30 +00:00
David McPaul
c1ee694618 Add seeking support (my first commit from haiku)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30143 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-13 05:45:32 +00:00
Ingo Weinhold
73677f785a * Some refactoring: There are three ways to access the symbols of an image.
Formerly two were implemented in ImageFile (from file, via syscalls) and one
  in SymbolLookup (via the debugger interface). Now there's a base class Image
  and respective derived classes implementing those methods.
* Simplified SymbolIterator.
* Moved the classes into sub-namespace BPrivate::Debug.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30142 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-12 23:57:35 +00:00
Michael Lotz
db9ff5bfb8 Fix wrong preprocessor line.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30141 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-12 22:48:39 +00:00
Rene Gollent
979786f1e6 Don't show the total number of items if 0 (as will happen in the case of move operations since we skip the pre-flight count for those). Fixes ticket #3722.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30140 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-12 22:33:21 +00:00
Jonas Sundström
3e62a75547 humble mips beginnings
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30139 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-12 21:17:18 +00:00
Rene Gollent
010f5aa422 Possibly less than ideal, but gets ape_reader building on both gcc2 and 4. (The previous gcc4 fixes broke it again on gcc2). I'm uncertain as to why the include order of <algorithm> seems to matter though.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30138 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-12 12:45:12 +00:00
Rene Gollent
be878f6087 These were using CR/LF for some reason.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30137 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-12 12:32:49 +00:00
Ingo Weinhold
0b8b543af8 Build fixes (gcc4).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30136 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-12 10:08:22 +00:00
Ingo Weinhold
1e855c376c * Patch by Fredrik Ekdahl: gcc 4 build fixes (missing headers).
* Added missing header for mountvolume.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30135 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-12 09:57:26 +00:00
Ingo Weinhold
b8f38f28ae Re-added avcodec.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30134 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-12 09:55:55 +00:00
Ingo Weinhold
526d707eb6 Added new build tool create_image which is now used to create and/or clear a
raw image. This fixes the problem that an existing image couldn't be resized.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-12 09:18:18 +00:00
David McPaul
25b3d00ba8 finally h264 decoding
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30132 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-12 03:34:24 +00:00
Rene Gollent
11c511b999 Make BListView's doubleclick handling a bit more sane. Should fix ticket #3724.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30131 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-12 03:28:39 +00:00
Rene Gollent
fcdaa0c79d If an item does not have an expand/collapse latch, let the left arrow jump to its parent (if any). Implements ticket #3725.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30130 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-12 03:13:08 +00:00
Ingo Weinhold
0f37915687 * debug_create_symbol_lookup_context() gets a team ID instead of a
debug context now. That's all it needs.
* Added the option "-a" to the profile command line tool. It triggers profiling
  of the whole system. There are still some issues, particularly image related
  ones.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30129 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-11 22:59:31 +00:00
David McPaul
2ad2768adc ifdef out another function that causes issues under linux
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30128 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-11 22:53:43 +00:00
Ingo Weinhold
e2ae69da52 The kernel side of a new system-wide sampling-based profiling mechanism.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30127 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-11 22:20:51 +00:00
Ingo Weinhold
efd536ff89 * Cleared up a misconception in the notification mechanism. We already had
methods that used an "event mask" field. There was no need to introduce
  a "flags" field for the same purpose.
* Renamed protected DefaultNotificationService methods (removed "_" prefix).
* Adjusted the code providing a notification service accordingly.
* Changed the event message several notification services generated by renaming
  the "opcode" field to "event".
* Implemented the TEAM_ADDED event and also added a TEAM_EXEC event.
* Added notifications for threads and images.
* Added visitor-like iteration functions for teams, threads, and images.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30126 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-11 21:45:25 +00:00
Axel Dörfler
78c00a4a53 * Applied patch by sil2001 that fixes bug #3666 (handling of existing symlinks).
* Refactored PkgItem classes, and pulled out a PackageItem base class. Renamed
  other classes to Package*.
* The ItemExists() method should really get a "Apply this choice to all files"
  kind of option...
* Style cleanups.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30125 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-11 21:37:51 +00:00
Ingo Weinhold
60bfde6e0f Added data accessors for B_POINTER_TYPE.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30124 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-11 21:29:22 +00:00
Ingo Weinhold
4fba3522e0 * Removed src/kits/tracker/OpenHashTable.h. The shared version in
headers/private/shared is newer, though with small interface changes.
* Removed the unnecessary Debug.h include in
  headers/private/shared/ObjectList.h.
* Adjusted sources using these headers, mostly by adding missing includes.
* Lots of automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30123 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-11 21:24:32 +00:00
Ingo Weinhold
a76d4f314c Removed avcodec from the build as long as it is broken.
gcc 2.95.3 build:

Cc /home/bonefish/develop/haiku/haiku/generated-gcc2/objects/haiku/x86/release/add-ons/media/plugins/avcodec/libavcodec/dsputil_mmx.o
In file included from /home/bonefish/develop/haiku/haiku/src/add-ons/media/plugins/avcodec/libavcodec/x86/dsputil_mmx.c:31:
/home/bonefish/develop/haiku/haiku/src/add-ons/media/plugins/avcodec/libavcodec/x86/mmx.h:24: warning: #warning Everything in this header is deprecated, use plain __asm__()! New code using this header will be rejected.
/home/bonefish/develop/haiku/haiku/src/add-ons/media/plugins/avcodec/libavcodec/x86/dsputil_mmx.c: In function `gmc_mmx':
/home/bonefish/develop/haiku/haiku/src/add-ons/media/plugins/avcodec/libavcodec/x86/dsputil_mmx.c:1753: Invalid `asm' statement:
/home/bonefish/develop/haiku/haiku/src/add-ons/media/plugins/avcodec/libavcodec/x86/dsputil_mmx.c:1753: fixed or forbidden register 6 (bp) was spilled for class GENERAL_REGS.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30122 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-11 20:22:10 +00:00
Stephan Aßmus
c3f8b9752e Patch by Chico CHEN: Just use the new path of the userguide in DiskUsage and
the help button comes to live. Thanks a lot!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30121 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-11 19:42:01 +00:00