Commit Graph

32314 Commits

Author SHA1 Message Date
Axel Dörfler
6242fd5977 * Added the possibility to debug latency issues with spinlocks.
* When DEBUG_SPINLOCK_LATENCIES is 1, the system will panic if any spinlock is
  held longer than DEBUG_LATENCY micro seconds (currently 200). If your system
  doesn't boot anymore, a new safemode setting can disable the panic.
* Besides some problems during boot when the MTRRs are set up, 200 usecs work
  fine here if all debug output is turned off (the output stuff is definitely
  problematic, though I don't have a good idea on how to improve upon it a lot).
* Renamed the formerly BeOS compatible safemode settings to look better; there
  is no need to be compatible there.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33953 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-08 20:26:48 +00:00
Axel Dörfler
bec53b590f * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33952 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-08 20:20:27 +00:00
Axel Dörfler
01ce3f26d2 * Cleanup, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33951 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-08 17:31:39 +00:00
Stefano Ceccherini
9a72152e73 When colors are changed, also invalidate the container view.
Fixes bug #2855


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-08 15:48:05 +00:00
Axel Dörfler
2b1296e8c4 * Expander now searches its rules file in the data directory, no longer in /etc.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33949 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-08 13:57:04 +00:00
Stefano Ceccherini
b6c92a3779 If no item is selected, select the first item.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33948 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-08 12:33:50 +00:00
Stefano Ceccherini
fba4e002b1 Also set a default style in the preferences. Mark the menuitem with the
default family/style.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33947 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-08 12:30:01 +00:00
Stefano Ceccherini
e3b9a828db When building the font menu, also include font styles.
Now it's possible to select bold or oblique font styles.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33946 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-08 12:22:57 +00:00
Stefano Ceccherini
57bd46cca2 Fix for bug #4489. Terminal wasn't using the saved font style, only the
font family. Moreover, it defaulted to be_plain_font, instead of be_fixed_font.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33945 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-08 11:47:04 +00:00
François Revol
a0f0ed1b94 Add missing argument to usage string.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33944 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-08 08:06:03 +00:00
Rene Gollent
763bb42897 Fix build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33943 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-08 00:41:47 +00:00
Jonas Sundström
529ff59fed Activate already showing, possibly unfocused window if Backgrounds gets launched while already running. Small clean-up.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33942 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-08 00:25:48 +00:00
Ingo Weinhold
9669d0859b GCC 2 .eh_frame: The CIE offset in an FDE isn't always relative to the
beginning of the section, but probably relative to the beginning of the data
for the respective compilation unit (which might even make it useful again,
since it could be used as negative offset to the CIE). Relaxed the check even
more, so we always override the CIE offset when parsing .eh_frame sections.
This makes the variables appear in another test app Axel kindly provided.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33941 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-07 20:55:21 +00:00
Michael Lotz
8665c30ace That was not such a good destruction order in the error case. As the scheduler
accesses the scheduler data inside the thread structure, freeing it first lead
to a crash when a thread couldn't be created.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33940 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-07 16:33:29 +00:00
Axel Dörfler
c42474cb03 * Set B_AVOID_FRONT on status windows, this should fix bug #4914.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33939 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-07 11:53:34 +00:00
Axel Dörfler
1a29279301 * Disabled overlay for the G4x series. This works around bug #4898.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33938 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-07 11:29:54 +00:00
Axel Dörfler
bde1f75946 * Cleanup, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33937 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-07 10:58:18 +00:00
Axel Dörfler
93e60b1a4f * Hide() was called too early, and wasn't reverted in case the mail couldn't
be encoded, either. This fixes bug #4613.
* Ideally, the mail would automatically be changed to an encoding that can
  express all characters silently. Added a TODO comment for this.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33936 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-07 10:53:19 +00:00
Axel Dörfler
ea0ba618c5 * "bitmap" can actually be NULL at that point, so calling ReleaseReference()
on it unconditionally is not a good idea. This fixes bug #4904.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33935 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-07 10:44:11 +00:00
Axel Dörfler
ebcdd1fc61 * r33436 broke user_strlcpy() semantics: with a size of 0, "to" can be ignored,
and it's still a valid call.
* This fixes ktrace_printf() from userland.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33934 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-07 10:42:39 +00:00
Axel Dörfler
fec0112f9a * Dunno what triggered this now, but we do have <stdint.h>, and declaring
otherwise let the build fail.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33933 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-07 10:00:34 +00:00
Axel Dörfler
89b0b8025c * Stupid zip has a "#define local static" which now breaks since OS.h includes
pthread.h.
* If zip is not actively maintained anymore, I would suggest correcting this
  issue by removing that useless define. Maybe they accept patches, too.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33932 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-07 09:53:35 +00:00
Axel Dörfler
d99900143c * Fixed a few operator precedence bugs (&& ... & ... &&).
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33931 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-07 09:14:01 +00:00
Ingo Weinhold
4663f6d46a Fixed incorrect check. Spotted by Axel.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33930 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-07 08:43:32 +00:00
Ingo Weinhold
4914357d9d Automatic trailing whitespace removal.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33929 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-07 08:21:14 +00:00
Ingo Weinhold
d0b21f13dd Removed obsolete comment.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33928 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-07 08:20:00 +00:00
Ingo Weinhold
9c7b2520c2 Added get_pthread_thread_id() function returning the Haiku thread_id of a
pthread.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33927 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-07 08:19:24 +00:00
François Revol
72e3211d51 - fix BeOS build,
- add handling of svn: and svn+ssh: urls.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33926 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-06 23:47:53 +00:00
Rene Gollent
99c422fda8 Fix gcc4 build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33925 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-06 22:14:11 +00:00
Ingo Weinhold
3ac8569f3c Handle the "eh" CIE augmentation which can appear in a .eh_frame section.
Hopefully the last hurdle gcc 2 has prepared for preventing variables to show
up.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33924 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-06 18:29:27 +00:00
Alexandre Deckner
accec9a7ae * Style fixes. Encountered ambiguous cases, please see my following questions
in the commit ml.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33923 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-06 17:32:07 +00:00
Alexandre Deckner
f7ace4e827 * Style fixes (pointer style)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33922 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-06 16:12:53 +00:00
Alexandre Deckner
2ec4a3b13f * Use os.path.walk to visit directories
* Use \w instead of [a-zA-Z0-9] in some regex's
* Add switch to the "space after control statement" rule
* Added pointer/reference style rule


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33921 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-06 15:55:44 +00:00
Axel Dörfler
df989eb2bb * Improved default column sizes. Maybe the table view class should be able to
do so automatically?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33920 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-06 15:47:35 +00:00
Ingo Weinhold
3a1b098bc8 _CreateSubrangeType(): Squashed TODO: If no base type entry is available, we
create a base type on the fly. This gets array types working with gcc 2
generated files.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33919 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-06 15:40:57 +00:00
Ingo Weinhold
e438c2d761 A Type suffices as base type for DwarfSubrangeType.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33918 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-06 15:36:21 +00:00
Axel Dörfler
5569f33367 * Someone obviously forgot to check in some header changes. Build fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33917 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-06 15:32:55 +00:00
Ingo Weinhold
0b7f2d9924 Work-around for a gcc 2.95.3 peculiarity: The DW_OP_reg* are incorrectly used
in non-location expressions.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33916 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-06 14:59:22 +00:00
Ingo Weinhold
c9b58a7313 More debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33915 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-06 14:56:32 +00:00
Ingo Weinhold
797aaa4bde gcc 2.95.3 doesn't generate a .debug_frame section. Fortunately it generates a
.eh_frame section which seems to have almost identical contents (haven't found
any specification). So now we use .eh_frame with minor tweaks, when
.debug_frame is not available.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33914 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-06 14:56:10 +00:00
Oliver Tappe
5f917b22c8 Implement a suggestion of Humdinger in the aftermath of #4785:
* make word-wise navigation via cursor keys match Pe, such that it is consistent
  throughout haiku (unless some applications brew their own)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33913 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-06 14:21:21 +00:00
Axel Dörfler
be12bce74a * Fixed GCC2 build, and a warning that should have fired in GCC4 as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33912 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-06 08:46:42 +00:00
Jonas Sundström
71a1ec0dd3 Partial clean-up.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33911 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-06 00:28:44 +00:00
Jonas Sundström
dca191e9b7 Partial clean-up.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33910 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-05 23:39:57 +00:00
Axel Dörfler
abf272eedb * Cleanup, looks better this way.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33909 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-05 19:40:52 +00:00
Axel Dörfler
6e48ebf446 * "next" & "previous" could be NULL, but were still referenced - based on
Oliver's patch for bug #4896 which this one fixes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33908 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-05 19:29:24 +00:00
Ingo Weinhold
59ea286fac * EnumerationValue -> EnumeratorValue
* Since some types don't have names (e.g. pointer types or anonymous structs or
  unions), each type does now also have a unique ID. The global type cache
  registers types by ID and by name (if they have one). This fixes clashes of
  types with empty names.
* Completely refactored the code dealing with variable values. Formerly we had
  Variable and TypeComponentPath to navigate to a component, mapped to a
  BVariant representing the value. Now we have:
  * Interface Value with various subclasses (BoolValue, IntegerValue, etc.) to
    represent a value, with the flexibility for more esoteric values.
  * A tree of ValueNode+ValueNodeChild objects to represent the components of a
    variable. On top of each ValueNodeChild sits a ValueNode representing the
    value of the component, potentially having ValueNodeChild children. This
    should allow casting a component value, simply by replacing its ValueNode.
  * Interface ValueHandler and various implementations for the different value
    types. It is basically a factory for classes allowing to format/display a
    value.
  * ValueHandlerRoster -- a registry for ValueHandlers, finding the best one
    for a given value.
  * Interface TypeHandler and various implementions for the different type
    kinds (primitive, compound, address, etc.). It is basically a factory for
    ValueNodes for that type.
  * TypeHandlerRoster -- a registry for TypeHandlers, finding the best one
    for a given type.

  That's still a bit work in progress. It introduces at least one regression:
  The VariablesView doesn't save/restore its state anymore. Will take a while
  until that is added back.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33907 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-05 18:15:21 +00:00
Ingo Weinhold
173227dd53 Added SetIndexAt(), replacing an existing index.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33906 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-05 17:50:37 +00:00
Ingo Weinhold
7d4508b161 Utility class to format integer values.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33905 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-05 17:39:09 +00:00
Ingo Weinhold
c9d768d913 Interface and implementation for simplifying editing of Settings via a menu.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33904 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-05 17:35:08 +00:00