Commit Graph

29685 Commits

Author SHA1 Message Date
Ingo Weinhold
7927ebb672 Moved the appending of '*'/'&' for pointer/reference parameters to the gcc 2
demangler, where it belongs. The gcc 4 stack traces look correct now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30955 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-04 02:00:45 +00:00
Ingo Weinhold
15394881a8 * Implemented demangling support for the current gcc ABI. Looks good so far
save for the additional '&'/'*' print_demangled_call() is printing for
  reference/pointer arguments.
* Moved the new demangler and the gcc 2 demangler into the same module
  always supporting both (the right one is chosen). In mixed gcc 2/gcc 4
  environments we obviously need both of them.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30954 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-04 01:47:05 +00:00
Axel Dörfler
cf2a26ea96 * Don't overwrite the history buffer when you issue the same command more than
once.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30953 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-03 21:05:29 +00:00
Jérôme Duval
ce684bcc33 Adding lrintf declarations conflicts on avcodec when building gcc4. Noticed by Michael Weirauch.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30952 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-03 20:36:29 +00:00
Rudolf Cornelissen
7843b5bfa3 re-enabled EDID native modeline grabbing with I2C bus 2 enabled. Now EDID is correctly fetched on all my cards, including G72 id0x1d1 and NV43 id0x141. info is stored in shared_info, not actually used yet though. (wip)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30951 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-03 19:20:04 +00:00
Ingo Weinhold
813d6a742f print_demangled_call(): Use a heap allocated buffer. This allows us to be more
generous with the size.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-03 13:36:35 +00:00
Ingo Weinhold
360d4974b9 Replaced the temporary storage used in the kernel debug command parser. We now
have a simple dedicated heap for the kernel debugger with stacked allocation
pools (deleting a pool frees all memory allocated in it). The heap should
eventually be used for all commands that need temporary storage too large for
the stack instead of each using its own static buffer.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30949 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-03 12:28:49 +00:00
Axel Dörfler
5734ece852 * Improved output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30948 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-03 12:16:25 +00:00
Axel Dörfler
e07e55403c * Removed debug output of the old pad fields that no longer exist.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30947 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-03 12:14:16 +00:00
Rudolf Cornelissen
c1db4db3cc modified I2C code to read the third bus on cards that can support it. Dumping EDID scanning results in logfile only for now (testing..) Bumped version to 0.92.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30946 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-02 20:37:59 +00:00
Jérôme Duval
59d67522ea added lrint and llrint functions to math.h
added generic implementations for ppc and m68k


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30945 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-02 20:24:18 +00:00
Gerasim Troeglazov
30bc84e971 Update NTFS-3g Library to stable 2009.4.4 version. Clean up code. Now write support enabled by default.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30944 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-02 12:21:10 +00:00
David McPaul
4cf2271b57 Bring matroska library up to latest version. Allows V2 matroska file playback
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30943 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-02 09:34:16 +00:00
David McPaul
938fd5a7e0 Update to v1.61 of MatroskaParser library
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30942 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-02 09:15:14 +00:00
Axel Dörfler
656341901e * Reintroduced the find_own_image() function, as I think this is the cleaner
approach.
* Made get_next_line() static as it should have been in the first place.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30941 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-01 20:47:41 +00:00
Axel Dörfler
e9c7d49aa0 * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30940 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-01 20:44:59 +00:00
imker
2e750f8bc8 Optional package for vim editor added.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30939 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-01 20:21:55 +00:00
Rudolf Cornelissen
dd67a9b2d4 added enabling I2C buses for NV40 arch cards. hopefully this makes the buses work on GF6100 (noted in bug #2780) and maybe others. added a few registerdefines (wip).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30938 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-01 20:06:21 +00:00
Ingo Weinhold
fa773c0ae5 vnode_path_to_vnode(): Don't propagate the traverseLeafLink flag, if we've
decided to recursively resolve a symlink. We only have to do the resolution
when the flag is true anyway or the symlink is not the last component of
our path, in which case we have to resolve it anyway. Fixes #3986.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30937 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-01 11:12:12 +00:00
imker
b2329f081e - added preprocessing of RDEF scripts during resource compilation;
- version of makefile template increased to 2.3 because of adding RDEFS list in previous commit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30936 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-01 10:26:58 +00:00
imker
02e7619126 - KeymapSwitcher package updated: recompiled without debug tracing.
Both gcc2 and gcc4 packages are available now for installation.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30935 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-31 19:38:25 +00:00
Rene Gollent
6a004bd33c When we dynamically create a mount point directory, add a special marker subdirectory in it so the disk system knows the directory was not created by the user. When unmounting, look for the marker and remove the mountpoint directory if found. This fixes the issue where mount / unmount / mounting a volume via Tracker would result in extra empty dirs in the rootfs. Ideally I'd rather solve this by being able to tag the mount points with attributes, but this isn't currently possible since the attribute overlay is a module and thus not available when mounting the rootfs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30934 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-31 05:55:54 +00:00
Oliver Tappe
f2e0ac2cd7 * Instead of moving bounds-height during paging, we now determine the exact
next position of the caret and only scroll the distance between the current
  and the next position. This fixes #3981
* When paging upwards, we need to compensate for the fact that the caret 
  position is always considered at the top of the line, as otherwise a
  page-up would pass one more line than a page-down


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30933 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 21:07:36 +00:00
Michael Lotz
93aba444aa Removed just a bit too much in r30927.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30932 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 20:10:12 +00:00
Michael Lotz
c89b0ea4c2 We need to update the name and parent directory when renaming/moving.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30930 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 19:25:43 +00:00
Michael Lotz
331f147bae * When removing entries properly call remove_vnode().
* Move notifications around so they are sent at the right time.
* Use notify_entry_moved() instead of generating a removal and creation
  notification.
* Allow replacing entries.
* Added a TODO regarding non-empty directories.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30929 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 18:31:33 +00:00
Oliver Tappe
4b6aea9b74 Fixed bug in BTextView reported by Matt:
* when selecting via mouse, the caret position now follows the direction of
  the selection - which is less surprising than not moving the caret at all

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30928 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 17:27:03 +00:00
Michael Lotz
f06f5d708c Make reading the write_overlay more efficient. Instead of always reading the
original file and then overwriting it with what we have in memory, just linearly
fill the buffer, closing gaps between our buffers with original file content as
needed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30927 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 17:21:10 +00:00
Stephan Aßmus
bc72ab054b I messed up the patch from ticket #3971, because I thought I could simplify it.
Sorry about that! This is now like in the original patch and fixes the ticket
for real.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30926 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 17:04:44 +00:00
Michael Lotz
5ab2eaabaa Only use read_pages() when we need to. Otherwise we bypass the cache of the
upper layer, degrading performance qutie a bit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30925 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 14:39:14 +00:00
Jérôme Duval
1f717fef4d applied patch from mmadia: fix extra ( )
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30924 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 14:32:01 +00:00
Jérôme Duval
8b20dbc8a7 addattr can now add attributes to directories and symlinks
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30923 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 14:12:00 +00:00
Ingo Weinhold
9738f996e3 * Removed unused find_own_image().
* sv_rewind(): Init the cookie to 0 before using it for get_next_image_info()
  iteration. This could cause the function not to find the libnetwork path and
  thus fail to open the "services" attribute. The getserv*() functions would
  always fail and the net server wouldn't be able to listen on the telnet and
  ftp ports.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30922 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 12:33:11 +00:00
Jérôme Duval
e81f1b80e9 copy attributes on symlinks (only testable with -P, --no-dereference), fixed bug #3539
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30921 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 12:20:11 +00:00
Jérôme Duval
a47e7e30e4 * merged Frame and Hidden properties (set and get) (bug #3493).
* changed Hidden set property to not check the current hidden state, as it's not exactly related.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30920 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 11:37:25 +00:00
Jérôme Duval
0aab2caf8e fixed usage of char* when const char* is expected, reported by ziomatto
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30919 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 11:10:23 +00:00
Stephan Aßmus
97566384f7 Applied patch by Stef Busking: Adjust the current keyboard focus field along
with the mouse, so that switching between using the keyboard and mouse is more
fluent. Fixes ticket #3971.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30918 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 10:39:17 +00:00
Stephan Aßmus
d73b4b33d3 Patch by Matt Madia: The DevelopmentBase optional package now
depends on CDRecord for mkisofs, which is used for building the
*-cd targets. Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30917 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 09:17:12 +00:00
Stephan Aßmus
81110fefcf Applied patch by Matt Madia: Enlarge the image size from 400 to 500 MB, since
the current optional packages require this much.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30916 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 09:03:03 +00:00
Ingo Weinhold
44bc724b39 Patch by Scott McCreary: Added/updated optional packages for APR[-util],
cdrecord, libiconv, libxml2, nano, neon, OpenSSH, python, sqlite, subversion.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30915 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 01:26:28 +00:00
Ingo Weinhold
0623b2e1e3 Patch by Scott McCreary: Repackaged flex and jam optional packages (fixed
license location).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30914 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 00:41:49 +00:00
Michael Lotz
3ecc528774 On Darwin/Mac OS X use diskutil to determine if the volume we configure on is a
case-sensitive one. If not, print out a message and a link to the guide that
describes how to set one up.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30913 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 00:38:43 +00:00
Ingo Weinhold
1ecab59008 Patch by Matt Madia: Added GNU LGPL v3 license.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30912 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 00:23:03 +00:00
Ingo Weinhold
eb0262fc4c * Reworked vm_soft_fault() and friends:
- While walking down the cache chain, we keep all upper caches locked.
  - When we have to unlock -- when waiting for a busy page or reading a page in
    -- we unlock completely, including the address space, and restart
    vm_soft_fault().
  - Folded fault_get_page() and fault_find_page() into one.
  This simplifies and improves things considerably:
  - We no longer need dummy pages.
  - We no longer need vm_area::no_cache_change.
  - #2710 is fixed, since we no longer hold the address space lock while
    waiting.
* vm_soft_fault(): When we have found our page, we first check whether a page
  is already mapped at the address. If it is already our page, we just change
  its protection. If not, we unmap it first. Fixes race conditions when multiple
  threads fault at the same address at the same time.
* fault_get_page(): When copying a read-only page from a lower cache, no longer
  mark it active, since at least for the fault area it is shadowed from then on.
* vm_set_area_protection(): Fixed potential overflow for in the
  vm_translation_map::protect() call.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30911 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-29 12:55:25 +00:00
Michael Lotz
57a5e69604 * Implement read/write_pages using Read()/Write(), io will follow later.
* Create a file cache for created overlay nodes. It is unused and disabled, but
  causes a vnode cache to be created. This is required for mapping a file, which
  in turn is required for executables to be loaded. With that copied or newly
  created executables should work on top of write_overlay. Will think about and
  implement a more direct way of getting that cache later today.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30910 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-29 02:52:11 +00:00
Ingo Weinhold
7515c32c1f Not sure, if this was only a gcc 4.3.3 bug or if I misunderstand something, but
gcc could apparently assume that the register assigned to the one in the
clobber list would keep its value (as can be observed when disassembling
add_debugger_command_etc()).
Using a dummy output register works around the problem and also avoids the
unnecessary initialization of the register.

Comments explaining the mystery welcome.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30909 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-29 01:17:53 +00:00
Ingo Weinhold
d9ea25c51d Fixed error handling in module initialization.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30908 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-29 01:04:17 +00:00
Michael Lotz
5740b42f36 Write can be called without cookie (in the CreateSymlink() case for example).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30907 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-28 21:58:42 +00:00
Axel Dörfler
41b1980691 * Added support for the io() hook. Not yet tested.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30906 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-28 21:37:39 +00:00
Axel Dörfler
f0c050f60e * Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30905 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-28 21:32:53 +00:00