Commit Graph

38395 Commits

Author SHA1 Message Date
Vlad Slepukhin
0f4985d884 StyledEdit:Implemented StatusLine and R5-like ReadOnly mode
This work was done during GCI2012.

Fixes #3655

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2012-12-22 22:57:14 +01:00
Rene Gollent
523a87a5d2 64-bit fixes for WebPositive. 2012-12-22 16:24:16 -05:00
Evgeny Abdraimov
944235ddd4 Initialization of net_device_interface::monitor_count corrected
Fixes #8839

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2012-12-22 22:19:55 +01:00
John Scipione
e9191cc2d1 Add BFile documentation to the Haiku Book.
Remove the documentation from the cpp file also. Keep the brief
description as a regular comment though.
2012-12-22 15:01:17 -05:00
Stefano Ceccherini
e76262c879 Fix build. 2012-12-22 14:34:26 +01:00
Rene Gollent
83a522213e Cleanup.
- Rename _ParseCIEAugmentation to _ParseCIEHeader since that more
  accurately reflects what it does.

- Refactor a bit to avoid having to parse the header twice, and
  simplify various places as a result.
2012-12-22 00:07:36 -05:00
Alexander von Gluck IV
a892e43ee3 OpenGL: Fix library dependencies
* Fixes gcc2 build
2012-12-21 22:55:56 -06:00
Rene Gollent
96a4619b92 Make use of augmentation if available.
- Pull out a _ParseCIEAugmentation() from _ParseCIE().

- If .eh_frame is being used, do a quick parse of the CIE up front
  in order to determine the augmentation (if any), and use it to
  retrieve addresses in the appropriate format. This fixes stack
  unwinding on x86-64, and possibly other cases where the address
  encoding didn't correspond to architectural target size in absolute
  address format.
2012-12-21 23:32:51 -05:00
Rene Gollent
54531e9f97 Allow CfaContext to be initialized lazily. 2012-12-21 23:32:50 -05:00
Rene Gollent
b510524436 Resolve TODO.
- We now handle augmentation 'zR', which in the case of gcc's
  .eh_frame format specifies how the addresses in the FDEs are
  encoded. Not actually used yet though since that will require
  some refactoring of _UnwindCallFrame(), since we currently parse
  the CIE too late to apply the above address size rules to the
  initial offset + range. This is also the reason x86-64 stack unwind
  currently fails, since the addresses there are, for most current tests
  actually being encoded in 32-bit format rather than architecture
  address size as should be the case for a standard DWARF debug_frame.
2012-12-21 22:40:58 -05:00
John Scipione
57ec88b651 Fix build, forgot to replace the variable names after renaming them. 2012-12-21 22:07:04 -05:00
John Scipione
78c12508e3 Rename the bounds parameter of the BDragger class to frame matching the BeBook 2012-12-21 21:24:46 -05:00
John Scipione
aabb148183 Rename the resizingMask parameter of the BDragger constructor to resizingMode matching the BeBook. 2012-12-21 21:22:54 -05:00
Alexander von Gluck IV
cd76737442 swrast_legacy: Fix build (libglsl isn't in Mesa 7.x) 2012-12-21 19:23:47 -06:00
Alexander von Gluck IV
9c48978b6f swrast: Remove cpu feature check
* gcc4 swrast is boring an doesn't do rtasm anymore
2012-12-21 19:23:46 -06:00
Alexander von Gluck IV
83b716e3d9 swpipe: Make softpipe optional
* If we're using llvmpipe, don't reference
  softpipe. Reduce bloat.
2012-12-21 19:23:44 -06:00
Alexander von Gluck IV
b9d7097111 swpipe: Don't dereference pointer 2012-12-21 19:23:42 -06:00
Alexander von Gluck IV
ecbdee63cf Mesa 9.0.1: Build cleanup
* Try to keep each renderer designed
  the same.
* swrast will build... swpipe won't
  build until we have an llvm build
  package. (should in a few days once
  llvm 3.2 is released)
2012-12-21 19:23:41 -06:00
Alexander von Gluck IV
e685ddf799 libGL: Major shakeup
* libmesa and libgallium no longer live in libGL
* opengl kit gets libglapi for dispatch
* swrast will get libmesa
* swpipe will get libmesagallium + gallium drivers + llvm
2012-12-21 19:23:39 -06:00
John Scipione
cd03d7c120 Remove locking from TrackerSettingsWindow::QuitRequested()
Like Deskbar it isn't needed here either since the window is already
locked. The return value seems to be totally ignored, so, just leave
as is.
2012-12-21 16:42:37 -05:00
John Scipione
7ff146fdc0 On second thought, don't delete fPreferenecesWindow here 2012-12-21 16:26:45 -05:00
John Scipione
879fe42c09 Refactor Deskbar preferences window.
* Remove locking from Prefs window QuitRequested(), thanks Axel.
* Remove kConfigClose message, no longer needed since window sticks
  around and is hidden on close instead of being deleted.
* delete fPreferencesWindow on BarApp QuitRequested() so it will
  remove the memory used by preference window when Deskbar quits.
2012-12-21 16:16:39 -05:00
John Scipione
ee70bd8b1f Hide and show Deskbar preference window
... instead of destroying and creating it each time.

This is taking another page from Tracker's book. It allows the prefs
window to maintain it's current state as long as the application
remains open. Since both Tracker and Deskbar are meant to always be
open this means that the state is kept all the time unless the app
crashes, quite useful.
2012-12-20 19:57:13 -05:00
John Scipione
08c0a78ff4 (Tiny) style fix only 2012-12-20 19:55:10 -05:00
John Scipione
0eacc85bc2 Style fixes, no functional change indented 2012-12-20 19:43:22 -05:00
John Scipione
defcf2ebc4 Add newline at the end of PreferencesWindow.cpp
This completes the move of clock preferences from Deskbar to Time.

This closes #7331. Also closing #8769 as invalid as it has been
discussed to death and 12/24 hour setting seems to belong in Locale
prefs only.

Clock preferences have been moved into their own settings file as
well so perhaps will be moved to their own replicant in the future.
2012-12-20 18:58:09 -05:00
John Scipione
37fb25e0f8 On second thought, AddGlue to all 3 so the window stays the same height 2012-12-20 18:31:43 -05:00
John Scipione
9fd9f94dcc Make prefs window height depend on content 2012-12-20 18:31:42 -05:00
John Scipione
c5b556a080 Rearrange Deskbar preferences to use a list view like Tracker
Instead of showing all Deskbar preferences at once, show them one
at a time using a list view to switch between them like Tracker
preferences.
2012-12-20 18:31:42 -05:00
John Scipione
31c0024d1b Add Deskbar clock settings to Time Preferences
* Added a new Clock tab to the Time preflet. Added Clock related
  controls there. They all function by communicating with Deskbar.
* Put controls in a BBox controlled by the Show clock checkbox.
  This more clearly shows that all the clock settings are dependent
  on the show clock setting since it doesn't matter what your clock
  settings are if you don't show the clock.
* Make revert work.
* Split clock settings into it's own file and struct.
* Re-add the time zone setting.
* Remove the clock settings from the Deskbar preference window, they
  are in Time now.
* Make Locale preferences accepts B_LOCALE_CHANGED message, although
  not used.
2012-12-20 18:31:42 -05:00
Alex Smith
9a538a294c A few x86_64 debugger fixes + style fixes. 2012-12-20 19:24:04 +00:00
Alex Smith
6c6fcaf95b Some build fixes for DEBUG=1. 2012-12-20 19:22:16 +00:00
Alex Smith
e7bcffbb59 Take target address size into account in MemoryView, fixes #9307. 2012-12-20 19:20:31 +00:00
Rene Gollent
7024fac220 Clean up _RegisterCommands().
- _RegisterCommand() now accepts a space separated list of names
  to register a command by and creates a registration for each.
2012-12-19 22:27:45 -05:00
Rene Gollent
cef640f784 Fix missing line break. 2012-12-19 22:01:51 -05:00
Rene Gollent
64f5c19ebf Add copyright attributions from originating code. 2012-12-19 22:01:33 -05:00
Alex Smith
c8d82cf6db Started adding x86_64 support to Debugger.
Stack tracing doesn't work yet, nor does single stepping (somehow
manages to completely freeze the system).
2012-12-19 19:54:20 +00:00
Rene Gollent
bbdb605224 Switch over to using Debugger as the primary system debugger.
- When a crash occurs that requires using consoled, use Debugger
  in CLI mode.

- Closes #1078.
2012-12-18 23:55:49 -05:00
Rene Gollent
3e441f885e Add frame dumping capabilities to report generator.
- If the top frame of a stopped thread has no arguments or variables
  available, dump the memory block to which the stack frame belongs,
  starting at the current stack pointer and extending to the end of
  the block.
2012-12-18 23:31:08 -05:00
Rene Gollent
9a4802db55 Add an indent parameter to DumpMemory().
- Adjust callers.
2012-12-18 23:30:55 -05:00
Rene Gollent
ec7c59ca09 Add memory dumping commands similar to those in KDL. 2012-12-18 21:37:55 -05:00
Rene Gollent
c7f5dd6207 Add support for memory block events to CliContext. 2012-12-18 21:37:54 -05:00
Rene Gollent
779b84b17b Add memory dumping helper to UiUtils.
- Adapted from KDL's db/dw et al.
2012-12-18 21:37:17 -05:00
Rene Gollent
55751d083a Move Tokenizer/Token into ExpressionParser's namespace. 2012-12-18 21:31:43 -05:00
Rene Gollent
03289a339c More adjustments to CliContext.
- CliContext now listens for value node container events so that
  commands can request such a wait as well
- Implement an event wait mechanism for commands to make use of.
  Adjust CliStackTrace and CliPrintVariable accordingly.
2012-12-18 18:11:55 -05:00
Rene Gollent
486c4d38b2 Revert unintended change in previous commit. 2012-12-18 18:11:54 -05:00
Rene Gollent
eceaf78610 Remove unnecessary code.
- ResolveValueNodeJob() already handles location resolution for the
  NodeChild so this step is unnecessary.
2012-12-18 17:38:19 -05:00
Rene Gollent
68359a7361 Fix missing newline in some cases. 2012-12-18 17:38:19 -05:00
Sergei Reznikov
b7b5d7636b 64-bit fixes for kernel with KDEBUG_LEVEL = 0
Signed-off-by: Alex Smith <alex@alex-smith.me.uk>
2012-12-18 14:56:16 +00:00
Rene Gollent
596922bb7f Add CLI print variable command. 2012-12-17 20:46:27 -05:00
Rene Gollent
c56757fb7c Remove unnecessary frame parameter. Adjust callers. 2012-12-17 20:46:14 -05:00
John Scipione
7fe8b2bf2a Also lock fAboutWindow before Quit()ting in other apps 2012-12-17 16:46:41 -05:00
John Scipione
a4d5ac6a25 Lock Webpositive about window before Quit()ting, thanks Axel. 2012-12-17 16:31:25 -05:00
Rene Gollent
1d0383b862 Add file mistakenly missed in previous commits. 2012-12-16 23:21:48 -05:00
Rene Gollent
a4df762f17 Fix #9294.
- Fix incorrect order of operations in ValueNodeManager.
- Upon receiving a changed notification, VariableTableModel needs to
  make tree table aware that the previous nodes have been removed.
2012-12-16 23:04:52 -05:00
Rene Gollent
287cda6f72 Add some more commands to the CLI.
- Added 'frame' command for setting/printing the context's current stack
  frame within the active stack trace.
- Added 'variables' command for printing the list of variables visible
  within the current frame.
2012-12-16 22:03:35 -05:00
Rene Gollent
1325ad5fe8 Various improvements to CliContext.
- CliContext now tracks the current stack trace and frame if applicable.

- CliContext now carries a value node manager. This allows it to track
  the variables in the currently active frame.
2012-12-16 22:03:35 -05:00
Siarzhuk Zharski
74f911be74 Gently guessing prev. line caret pos on UP_ARROW
Fixes #3656
2012-12-16 20:29:04 +01:00
Siarzhuk Zharski
0d3bd614c7 Do not include CR-terminator in line width-height calculations
Fixes #3658
2012-12-16 17:59:57 +01:00
Rene Gollent
5bda396ef4 Refactor Dwarf*DebugInfo to be able to work with limited info.
- DwarfImageDebugInfo and DwarfFile will now allow us to construct
  DWARF debug info objects even if the only section available for
  use is .eh_frame. This essentially allows us to use CFI-based
  unwinding even for release executables (assuming C++ is involved),
  which means we can properly unwind the stack even for binaries
  compiled with fomit-frame-pointer. This becomes more important
  for x86-64, since omit is the ABI default there.

- Pull a GetFunctionsFromSymbols() out of DebuggerImageDebugInfo. This
  is shared between DebuggerImageDebugInfo and DwarfImageDebugInfo for
  creating debug information entries in the absence of debugging
  information.
2012-12-16 11:21:52 -05:00
Alexander von Gluck IV
dc95dfe60b package kit: Fix independent build
* ZlibCompressionBase.cpp isn't the only
  source / header to required zlib
* Just add zlib as a dep for all kit sources
2012-12-15 18:27:10 +00:00
Fredrik Holmqvist
f236b941d0 Display controls driver stub.
Work I did at Begeistert, trying to use the new driver manager and
detecting display controls. It should probably be a good example of
how a new driver is built. It currently loads and detects
display controls correctly but doesn't do any actual work yet.
Not sure when I have the time to finish the driver, it shouldn't be
that hard but I currently have have other priorities. Feel free to
work on it in the meantime.
2012-12-15 14:44:13 +01:00
Fredrik Holmqvist
92d766df7c Pass a handle to evaluate_object as start point. 2012-12-15 14:10:11 +01:00
Tri-Edge AI
69eca70155 WebPositive: Search engine string now gets encoded. 2012-12-15 01:38:24 +01:00
John Scipione
6084a1e1a4 Update the about window of WebPositive.
Also update the version number to 1.1-alpha in the rdef file
matching the text on the old about window.
2012-12-14 19:28:05 -05:00
Janus
9e265b3329 Fixes #7639 - the redraw issue in ColumListView.
Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2012-12-14 20:54:14 +01:00
Philippe Saint-Pierre
8a24526e3f LaunchBox: remove redundant Locking. Thanks Stippi! 2012-12-13 19:38:08 -05:00
Tri-Edge AI
bafbb92901 WebPositive: Smart URL handling improvements (GCI task)
- Fixed: WebPositive now successfuly detects foreign protocols and
launches their respective applications.
 - Improved: The decision whether to use a search engine or a DNS lookup
for the text entered in the address bar, including for internationalized
names (IDN) (though we do not handle them correctly later on yet).
 - TODO: escape the query string before passing it to webkit
(for example for: "3+4")
2012-12-14 00:40:03 +01:00
Philippe Saint-Pierre
4b84a0b5c8 Mail: don't require a subject to save a draft (#9218)
Also :
 * if the body of message changes, ask to save draft when closing window
 * disable save button when successfully saving draft
2012-12-12 23:10:02 -05:00
Philippe Saint-Pierre
53b234eb1c Mail: Reworking of the unique filename discovery (drafts) 2012-12-12 21:49:20 -05:00
Philippe Saint-Pierre
55ef15c45a Mail: use B_FILE_NAME_LENGTH as limit when saving drafts 2012-12-12 19:41:57 -05:00
Philippe Saint-Pierre
4d6bb87ea7 LaunchBox: finish saving settings before closing the window (#6347) 2012-12-12 18:05:18 -05:00
Humdinger
d7250540e0 Using a variable instead of translating a string twice.
Thanks John for the guidance.
2012-12-12 21:25:10 +01:00
Humdinger
748378c826 Renamed cusor colour settings.
"Cursor text" and "Cursor background" in the Color popup menu are
a bit unintuitive. Changed to "Text under cursor" and "Cursor".
2012-12-12 18:50:13 +01:00
Humdinger
f7c33e7ff9 Fixes case style of a label, "Sound file:" 2012-12-12 18:33:05 +01:00
Gleb Posobin
a51eefdd08 Hint to layout manager for window width estimation
Fixes #5289

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2012-12-12 12:06:07 +01:00
Rene Gollent
be56273bbb Refactor DebugReportGenerator to use jobs.
- Instead of asking nodes to resolve themselves directly,
  DebugReportGenerator now uses the interface listener to ask the
  debugger's workers to resolve them on its behalf.
2012-12-11 22:56:47 -05:00
Rene Gollent
00e7e607ef Always forward ValueChanged() event.
- If creating children failed, we wouldn't forward the event on
  to the listeners.
2012-12-11 22:56:46 -05:00
Rene Gollent
9403439347 Ensure that node pointer is valid before traversing. 2012-12-11 22:56:46 -05:00
Alexander von Gluck IV
8f06ba2f84 swpipe: Improve llvmpipe environment
* Only call correct public llvmpipe includes
* Clean up tracing
2012-12-12 03:04:43 +00:00
Jérôme Duval
f1a3e05d8c style fix as suggested by axeld and jscipione. 2012-12-11 23:21:45 +01:00
Sam Toyer
3cdae65125 sem_timedwait: fix errno, return value and NULL behaviour
* Takes into account remarks from Ingo.

Signed-off-by: Jerome Duval <jerome.duval@gmail.com>
Signed-off-by: Ingo Weinhold <ingo_weinhold@gmx.de>
2012-12-11 19:23:17 +01:00
Rene Gollent
154b1dd2bf Refactor DebugReportGenerator to use PrintValueNodeGraph. 2012-12-10 23:19:10 -05:00
Rene Gollent
2f50903e1d Factor out a PrintValueNodeGraph() helper from DebugReportGenerator.
- Intended to also be used by CLI to print variables there.
2012-12-10 23:18:37 -05:00
Rene Gollent
e8a837faac Fix crash in BListValueNode.
- Don't try to create children if location resolution failed.
2012-12-10 23:12:53 -05:00
Siarzhuk Zharski
0cc8d8ab3e Node monitoring and on-the-fly textencoding change
This work is based on the draft node monitoring implementation
created by Vlad Slepukhin during GCI 2012 and includes following:

* Refactoring of the document "Reload" feature - it replaces
"Revert to saved" one because do the same things and a bit more.
Looks like we have to keep "Reload" menu entry alive until
StyledEdit will get more functional Undo/Redo features. Reload
functionality is also heavily used in node monitoring and
on-the-fly text encoding changing. Fixes #6887;

* Support for text encoding on-the-fly switching. This make
life easier for those who lives in countires with multiple
popular 8-bit encodings. Russia is the sample of such
de facto standards' clash (KOI-8R vs CP1251 etc.);

* Node Monitoring support with alerting user in case the file
size or modification time were changed. Another alert is shown
in case edited file was removed or moved outside of the current
volume. Moving file inside of current volume silently changes
references. Choosing "Ignore" will supress new change alerts
until next Reload or Save user request;

* Do not nag user on quiting window with zero-length untitled
document. Not a Big Deal but annoys in some cases using this
editor session as temporary storage.
2012-12-10 16:27:53 +01:00
Alexander von Gluck IV
1d95a50e05 Haiku: Fix check of bitmap size.
* We now have basic Gallium software rendering!
* Still lots more work to do.
2012-12-10 02:37:30 +00:00
Rene Gollent
ad99f882d3 Print parameters/local variables if available..
- If debug information is present, then for each stack frame we now
  also dump all function parameters and local variables and their
  respective values, as well as their first level of children if
  applicable.
2012-12-09 16:09:15 -05:00
Rene Gollent
84a00bf887 Make string size available in value location. 2012-12-09 16:09:14 -05:00
Rene Gollent
2c32e74360 64-bit fixes. 2012-12-09 16:09:14 -05:00
Rene Gollent
13c04a36b0 Adapt VariablesView to use the ValueNodeManager. 2012-12-09 16:09:13 -05:00
Rene Gollent
c1034c63fb Pull a ValueNodeManager class out of VariableTableModel.
- The intention is to have a class which handles the actual management
  of the variable node graph, creating child nodes and such. This way
  the GUI, CLI and report generator don't have to each reimplement
  these low-level parts and can instead concentrate on their relevant
  representations thereof.
2012-12-09 16:09:12 -05:00
Adrien Destugues
1c3ccf8d39 usb_floppy: handle B_GET_DEVICE_{NAME,SIZE} 2012-12-09 17:54:48 +01:00
Przemysław Buczkowski
47f015cc94 Polish default keymap change
Swapped Polish typist's keymap with much more frequently used programmer's
keymap.

Signed-off-by: Przemysław Buczkowski <przemub@yahoo.pl>
Signed-off-by: Matt Madia <mattmadia@gmail.com>
2012-12-09 08:59:23 -05:00
Matt Madia
5644d283b6 Manually applied: Fix typos: super block -> superblock (#8974)
by: Przemysław Buczkowski <przemub@yahoo.pl>
2012-12-09 08:51:58 -05:00
Przemysław Buczkowski
46cf7a5a73 Fix typos: super block -> superblock (#8974)
Signed-off-by: Przemysław Buczkowski <przemub@yahoo.pl>
Signed-off-by: Matt Madia <mattmadia@gmail.com>
2012-12-09 08:47:46 -05:00
Olivier Coursière
a6f39df3f7 Poorman : avoid a double free in ls method. Should fix #8617.
Signed-off-by: Matt Madia <mattmadia@gmail.com>
2012-12-09 08:38:08 -05:00
Ingo Weinhold
f0cacbb32b OptionalBuildFeatures -> BuildFeatures, make use of new rules
Got rid of X86_ONLY and friends in HaikuImage, FloppyBootImage, etc.
Instead we use build feature specification annotated lists with
FFilterByBuildFeatures (either explicitly or implicitly where passing
the list directly to the image rules).

I just translated the variables to the respective annotatation in most
cases, though in some cases different annotation would be more correct
(e.g. for the OpenGL stuff).

Provides a simple framework for addressing #3798. The interested reader
may add the build features and add/adjust the annotations accordingly.
2012-12-09 04:07:48 +01:00
Jeremy Clifford
e01243816e Add Geforce 7900 GS to nvidia driver & accelerant. Tested with DELL U2312UM 1920x1080x32 @60Hz on gcc2hybrid nightly 44579.
Signed-off-by: Matt Madia <mattmadia@gmail.com>
2012-12-08 20:58:54 -05:00
Janus
a154553c0b Fix #8963. Fixes Sounds focus cycling using Tab
Signed-off-by: Matt Madia <mattmadia@gmail.com>
2012-12-08 20:21:26 -05:00
John Scipione
1eccdc25fe Increase the font size options in Terminal
Sizes range from 8 to 36 but not all sizes are represented. The
progression is not linear, the font size increases first by 1,
then 2, and finally by 4.

Works by keying command-(plus)/command-(minus) or selecting
from Font size menu, or from selecting from Font menu in Terminal
settings. If you alter the settings file to put in some other font
size it should still work, but the menu item won't be checked.

Fixes #8849
2012-12-08 15:24:21 -05:00
Siarzhuk Zharski
6993d26c7a Revert of hrev44979 and real fix for #6453
Thanks Stefano Ceccherini for opening my eyes. ;-)
2012-12-08 09:43:56 +01:00
Vlad Slepukhin
5eb2d70fa7 Preserve font size on changing font family of selection.
This task was completed during GCI 2012
Fixes #6453

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2012-12-08 08:20:42 +01:00
John Scipione
cce0076a72 When you change the font size, update all tabs...
on the window, not just the active tab. Also fix window resizing
with tabs open. It wasn't taking into account the height of the
tab bar.

This fixes #8108
2012-12-07 23:28:40 -05:00
John Scipione
1bb31e6473 When you set the Font size in the settings, mark the menu
Also store the font size as a string instead of an int32 in the
message, consistent with the setting window.
2012-12-07 21:00:13 -05:00
John Scipione
bfbcec141e Unify the Font menu and Font size menu into one.
The Font size menu becomes a submenu of Font so that you can set
both the font and font size at once.

This fixes #4198
2012-12-07 19:57:59 -05:00
John Scipione
9e4281adaf Make font size dropdown in settings windows work again 2012-12-07 19:57:58 -05:00
John Scipione
dc1456f662 Add font sizes to Font Size menu in addition to in settings 2012-12-07 19:57:58 -05:00
Rene Gollent
e206ff5692 Fix crash in TeamDebugger.
- TeamDebugger's destructor was assuming the report generator object
  had always been created, which might not be the case. Fixes second
  part of #9273.
2012-12-07 17:36:30 -05:00
Rene Gollent
093b89ba6e Fix uninitialized variable that could lead to crashes.
- Fixes first part of #9273.
2012-12-07 17:36:29 -05:00
Rene Gollent
f2ebf00cc2 Fix delete vs release issues in BMessageValueNode. 2012-12-07 17:36:28 -05:00
John Scipione
8ccd1d0386 Make the default cursor fore color white 2012-12-07 02:39:14 -05:00
John Scipione
587caece75 Revert "Make Default color scheme match default settings..."
This reverts commit 72bf9c4e48.

I fixed this the wrong way.
2012-12-07 02:35:09 -05:00
John Scipione
d2091d8876 Change the cursor from white to yellow for blue theme
matching the text color. The white was a little off.
2012-12-07 01:38:29 -05:00
John Scipione
992c7397cf Remove ugly const_cast, thanks Ingo 2012-12-07 01:08:34 -05:00
John Scipione
5ddf877be6 More style fixes, return true or false directly 2012-12-06 19:38:15 -05:00
John Scipione
72bf9c4e48 Make Default color scheme match default settings...
So that it gets selected, well, by default. Before Custom was
being selected initially.
2012-12-06 19:34:12 -05:00
John Scipione
715c56d454 Style fixes only, no functional changes intended
including converting a while loop into a for loop.
2012-12-06 19:16:04 -05:00
Dariusz Knociński
690a7f3d47 BStringList: Fix compare_private_data[ignore_case]()
Signed-off-by: Ingo Weinhold <ingo_weinhold@gmx.de>
2012-12-07 00:24:57 +01:00
Rene Gollent
0c8935498e Fix one more case of deleting instead of reference releasing. 2012-12-06 17:59:49 -05:00
Rene Gollent
a34020ba21 A bit more fine-tuning to BReferenceable debugging.
- Rework quick stack range check as suggested by Ingo.
- If the ref count is > 1 we invoke the debugger unconditionally.
- If equal to 1, we first perform a quick heuristic check to see if the
  var might be on the stack. If we can't conclusively determine that is,
  we make certain by comparing to the thread's actual stack range.
2012-12-06 17:57:14 -05:00
Alexander von Gluck IV
cb44a2a6ef swpipe: Fix memory pointer scope issue
* Store stVisual in each context
2012-12-06 03:59:38 +00:00
Rene Gollent
969609f0ef Fix double free. 2012-12-05 20:09:59 -05:00
Rene Gollent
95b3c61c4b DebugReportGenerator shouldn't inherit from BReferenceable. 2012-12-05 20:09:58 -05:00
Rene Gollent
8326ad45bb Destroy created file via reference release if necessary. 2012-12-05 20:07:02 -05:00
Rene Gollent
4a5bcf0f7a Rework debugging check in BReferenceable.
- If a BReferenceable object is deleted with a non-zero reference count,
  we now test to see if the object was allocated on the stack. If so,
  we don't flag a warning if the reference count is currently 1.
2012-12-05 20:07:01 -05:00
Tyler Dixon
36b210830f Modify intel partition mapper to fail if it detects a GPT disk
Slightly amended patch from Tyler Dixon. This fixes #8434.
Tested on my new GPT-disk with:
	jam run ":<build>makebootable" --dry-run /dev/sda4

Signed-off-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2012-12-05 22:40:22 +01:00
Alexander von Gluck IV
2574bdfcc7 swpipe: Add Framebuffer management
* It's painfully obvious to me now that we will
  need to manage our own framebuffers still in
  the latest gallium code.
* GalliumFramebuffer works pretty cleanly as a
  class.. we have to remember to lock and unlock
  the Framebuffer object however when we access
  fBuffer directly. (which needs to occur by design)
* I'm really starting to have problems with the
  amount of downcasting Gallium3D does now.
2012-12-05 15:37:43 +00:00
Alexander von Gluck IV
d6137548a0 swpipe: Handle post processing
* Introduce textures into local gl context
2012-12-05 14:09:29 +00:00
Rene Gollent
b060c28e65 Fix crash when debug information wasn't available. 2012-12-04 21:22:11 -05:00
Rene Gollent
860c710c4b Add some additional BReferenceable debugging.
- When libbe is built in debug mode, BReferenceable now issues a
  debugger call if it's destroyed without all references having been
  released.
2012-12-04 21:17:30 -05:00
Rene Gollent
e402c5e0be Show total capacity on BList/BObjectList nodes.
- Since we currently limit the maximum number of child elements we'll
  show, it's helpful information to know the actual capacity of the list
  in case it contains more, especially when we later support requesting
  additional elements to be retrieved.
2012-12-04 21:17:29 -05:00
Rene Gollent
6d3ea79f69 Fix memory corruption issue.
- Since BasicTargetInterface is a BReferenceable, we must not create it
  on the stack, else it will be destroyed while others still have
  references to it. Fixes various random crashes, though most frequently
  observable when typecasting with more complex types.
2012-12-04 21:17:29 -05:00
John Scipione
cfd9c96db5 Style fix: compare to 0 in strcmp() explicitly. 2012-12-04 19:29:29 -05:00
John Scipione
2005db27ff Change schema in Terminal to color scheme.
Love this feature, but, color schema is not a thing, it is a color
scheme. Change both the display text and the variable names.

Also changed "Retro Terminal" color scheme to just "Retro". Terminal
is redundant.
2012-12-04 19:09:50 -05:00
Michael Lotz
760de9b200 Tiny code style cleanup. 2012-12-04 23:38:11 +01:00
Michael Lotz
85db228177 Style cleanup only. 2012-12-04 23:38:10 +01:00
Michael Lotz
1ed5f66cd4 Add missing function end macro. 2012-12-04 23:38:09 +01:00
Michael Lotz
2b5d52a174 Whitespace cleanup only. 2012-12-04 23:38:09 +01:00
Michael Lotz
f0422c6f9f Only set the physical address if the entry is mapped.
Otherwise, even when the address was 0, we would possibly set the
physical address to != 0 as we always applied the page offset.
2012-12-04 23:38:08 +01:00
Michael Lotz
926d1024d0 Fix wrong address mask (page directory vs. page table). 2012-12-04 23:38:07 +01:00
Michael Lotz
fd6e3a11e2 Use the existing ARM MMU definitions and remove duplicates. 2012-12-04 23:38:06 +01:00
Michael Lotz
7c45cf7155 Remove tracking of sMaxVirtualAddress as it's not used.
The value computed isn't actually used anywhere. It just ensured that
a panic would be triggered if we "skipped" to virtual addresses further
along. This shouldn't be problematic however.
2012-12-04 23:38:06 +01:00
Michael Lotz
83f7c22537 Reuse get_or_create_page_table() and remove similar add_page().
The former also does the initialization, simplifying the code and
reducing redundancy with the page directory init path.
2012-12-04 23:38:05 +01:00
Michael Lotz
a438da7c8b Clear the page tables on creation, use macros for counts.
This makes it less likely that uninitialized entries cause troubles.
Also panic if we encounter an unknown entry type instead of defaulting
to 4K pages.
2012-12-04 23:38:04 +01:00
Michael Lotz
89564c0a10 Simplify the page directory init loops.
Also check and possibly reuse an existing page directory entry. This
makes the possible memory maps a little more flexible.
2012-12-04 23:38:04 +01:00
Michael Lotz
50c463f4f1 Header cleanup, rename macros for more consistency. 2012-12-04 23:38:03 +01:00
Michael Lotz
3d4175bfe1 Map the page directory before turning on the MMU.
And actually use the virtual address for it later on. This wasn't
problematic as the virtual and physical addresses are identity mapped,
but it seems more correct to do it in this order.
2012-12-04 23:37:18 +01:00
Michael Lotz
0deac574bd Simplify, don't do the calculation twice. 2012-12-04 23:36:09 +01:00
Michael Lotz
05893479e3 Style cleanup only. 2012-12-04 23:36:09 +01:00
Michael Lotz
eca34ad168 Print page and cache using initial commands in panic message. 2012-12-04 23:36:09 +01:00
Michael Lotz
d50875de46 Use format macros in debug output. 2012-12-04 23:36:08 +01:00
Michael Lotz
333883485c Rephrase the debug output, it is not that early anymore. 2012-12-04 23:36:08 +01:00
Michael Lotz
2dcc1cfeb9 Remove test pattern that is no longer needed. 2012-12-04 23:36:08 +01:00
Michael Lotz
67d9fcc3ba Whitespace cleanup, no functional change. 2012-12-04 23:35:40 +01:00
Alexander von Gluck IV
7271621fbe Terminal: Spice up terminal color scheme selection 2012-12-04 17:07:35 +00:00
Alexander von Gluck IV
a2b5d15aef Terminal: Ensure changing color schema modifies cursor
* Really fixes #8256
2012-12-04 16:21:40 +00:00
Rene Gollent
ede21af844 Implement special handling for BObjectList.
- BListValueNode now also handles BObjectLists. In the latter's case
  however, it uses the template type parameters to map the array
  elements to their actual type. As before, this requires a debug
  libbe to function.
2012-12-03 22:00:54 -05:00
Rene Gollent
ada60b4e3d Rework handling of template parameters.
- Keep a unified list in DIEClassBaseType so that the order
  of template parameters is preserved in cases when type and
  value parameters are mixed. Thanks Ingo for the hint.

- Introduce new base Type TemplateParameter, which represents either
  a template type or template value parameter, a list of which is
  attached to CompoundType.

- Add DwarfTemplateParameter implementing subclass of TemplateParameter
  and adjust DwarfTypeFactory accordingly for the above changes.
2012-12-03 20:58:09 -05:00
Rene Gollent
ce6b908edb Extend CompoundType to handle template parameters.
- Adjust CompoundType to add accessors for template type and value
  parameters.
- Add DwarfCompoundType/DwarfTypeFactory handling for template
  template type parameters.
2012-12-02 22:09:24 -05:00
Rene Gollent
07eedfea60 Store template parameters for DIEClassBaseType. 2012-12-02 22:08:38 -05:00
Rene Gollent
05b08d47fd GCC2 build fix. 2012-12-02 15:32:46 -05:00
Rene Gollent
fad00fb02a Add type handler and corresponding value node for BList.
- When a debugging libbe is present, and a BList is encountered,
  we now read its internal structure and expose it as if it were an
  array of pointers. Combined with typecasting, this means one can
  now easily inspect the content of such a list.
2012-12-02 15:26:19 -05:00
Rene Gollent
5ad3b800d5 Fix incorrect matching logic.
- Would lead to the wrong type potentially being matched since name
  comparison would be skipped.
2012-12-02 15:26:19 -05:00
Axel Dörfler
eb8a124325 bfs_tools: recover is now using a set to reduce memory.
* The hashtable stored complete Inode objects (albeit without the actual block).
* Now we only store the block_run which should reduce the memory footprint
  considerably; before "recover" could easily run out of memory. In any case,
  a 64 bit version would still make sense to have :-)
* Saved an extra hash table traversal by counting the node types directly.
* This isn't that well tested yet, though.
2012-12-02 21:03:44 +01:00
Axel Dörfler
fd919c2c1a bfs_tools: Disk is now using a BBufferIO.
* Automatic whitespace cleanup.
2012-12-02 21:03:43 +01:00
Axel Dörfler
91d335e0b7 Automatic whitespace cleanup. 2012-12-02 21:03:42 +01:00
Axel Dörfler
772c9704b9 Added Hashtable::Size() method.
* Automatic whitespace cleanup.
2012-12-02 21:03:41 +01:00
Siarzhuk Zharski
2ede175119 Small refactoring of Expander and AboutSystem GCI patches.
* Fix excessive snprintf in SystemAbout kernel build date/time;
* Create destination folder message adjusted with HIG requirements;

Thanks for pointing out, Landon Fuller and Pulkomandy.
2012-12-02 17:58:06 +01:00
Humdinger
1789de431c Left-aligned Eject-checkbox in mount settings
Thanks to diver.
2012-12-02 14:53:20 +01:00
Sergei Reznikov
6189b5a12f Add B_NOT_CLOSEABLE|B_NOT_MINIMIZABLE to ScreenSaverWindow
Yet another screensaver password hack prevented. Yet another
attempt to close #9196 is made.

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2012-12-02 13:51:50 +01:00
Przemysław Buczkowski
cb65bb8732 Create dest. folder if it haven't existed. Fixes #8519
That was implemented during completing GCI 2012 task.

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2012-12-02 13:43:00 +01:00
Sergei Reznikov
d3144dd06b Make ScreenSaverWindow B_NOT_MOVABLE-prevent password hack
Fixes #9196

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2012-12-02 11:53:12 +01:00
Przemysław Buczkowski
2b754fc1fa Localize Kernel build date/time. Fixes #9230.
This task was completed during GCI 2012

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2012-12-02 11:04:45 +01:00
Alexander von Gluck IV
64e07c0f38 swpipe: Manage viewport, resize on change.
* Untested until rendering works
2012-12-02 00:23:53 +00:00
François Revol
c9bb94092f U-Boot: cleanup
Remove commented asm code. We should use the U-Boot API later on.
2012-12-01 23:56:05 +01:00
François Revol
218af294af arm: Move spin() stub to the raspberry_pi cpu.cpp
This unbreaks the U-Boot build, since we already have spin()
in cpu.cpp there, for future implementation using the U-Boot API.
2012-12-01 23:56:05 +01:00
Alexander von Gluck IV
f2e7bd18c1 swpipe: Add llvm check. (prep for llvm 3.2 release) 2012-12-01 13:25:59 -06:00
Alexander von Gluck IV
28108f3884 swpipe: Fix reversed buffers 2012-12-01 12:04:13 -06:00
Alexander von Gluck IV
32aab0863c swpipe: Flush color buffers (and z buffer?)
* Take bitmap passed via private pointer and copy data
  into context BBitmap
* Not 100% sure if z buffer needs flushed as well.
2012-12-01 11:45:18 -06:00
Rene Gollent
1e11702f96 Fix #9247.
- If a program crashed due to an invalid function pointer, the stack
  was being incorrectly unwound such that the top frame would actually
  be skipped, preventing one from seeing the actual line of code that
  invoked said pointer. On x86, we now check if the IP of the top frame
  of the stack lies at a readable location in order to catch this case.
2012-12-01 10:04:23 -05:00
Rene Gollent
ea788ed9cb Correction to previous leak fix.
- The actual reason the hidden node wasn't being released as expected
  was that ContainerListener::ModelNodeHidden() added a reference on
  behalf of its indirect target, while the latter never actually
  took ownership of said reference.
2012-11-30 21:15:57 -05:00
Rene Gollent
f4621a90de Don't leak the hidden child if present. 2012-11-30 20:55:54 -05:00
Rene Gollent
6be1e373d5 Fix typecasting in address->compound node case.
- In the special case of an address node with a hidden child, we
  must send notifications for removal of the hidden compound's
  children rather than for the hidden node itself. Otherwise the
  base TreeTable's state gets out of sync, leading to a crash when
  attempting to typecast such a node.
2012-11-30 20:23:39 -05:00
Rene Gollent
86f0f139a9 Fix kernel build with KDEBUG_LEVEL 0. 2012-11-30 18:23:15 -05:00
Michael Lotz
fed8bb7dff Fix index range for ARM MMU coarse page tables.
As there are only 8 bits for the index in the coarse page table entries
the maximum index is 256. This makes us correctly move to the next page
directory once we've run through all entries. Fixes missing unmap of
pages that crossed that boundary and consequent panic "page still has
mappings" when the page was removed from a cache.
2012-11-30 22:09:07 +01:00
Axel Dörfler
587cd228ba Fixed regression: Terminal cursor color is back to black. 2012-11-30 13:42:00 +01:00
Axel Dörfler
332cc6bc3b 64 bit fixes for libmedia.so, ActivityMonitor, and Sudoku.
* Alex, I feel your pain :-)
2012-11-30 13:16:38 +01:00
John Scipione
8f6542aa68 Fix build with FAKE_HARDWARE_CURSOR_SUPPORT turned on
by adding the const specifier to the uint8* parameters of the
prototypes of the vesa_set_cursor_shape and vesa_set_cursor_bitmap
functions.

Thanks looncraz for pointing this out.
2012-11-29 12:49:34 -05:00
Rene Gollent
4e9b38d34e Fix #9221.
- When an image creation notification is received, the thread
  that provoked it needs to be suspended until the debugger has
  finished loading the image's debug information. Otherwise, if that
  image had a breakpoint in it, it was possible that the thread would
  execute past the code where the breakpoint should be before the
  debugger had a chance to actually install it.

- Only update breakpoints when debug info loading has actually finished.
2012-11-29 08:12:49 -05:00
threedeyes
678934b3ea Code cleanup. 2012-11-29 07:55:20 +00:00
Alexander von Gluck IV
84169234d7 swpipe: Cleanup, code correction
* Remove error text as giving SetCurrentContext
  a NULL bitmap isn't a critical error.
* Ensure old front buffer is flushed on SetCurrentContext
* Small style fix
2012-11-28 23:03:03 -06:00
Alexander von Gluck IV
caa23ee333 swpipe: First work on winsys calls
* Move winsys code into a new file given the size
* Try to fill in as much logic as I can on creating
  and destroying the Gallium displaytarget
2012-11-28 23:03:03 -06:00
Michael Lotz
50af89af0b Put the swapped ATA model/serial strings into the SCSI inquiry.
The ATA info block has the model, serial and firmware revision byte
swapped that we already converted and then printed out correctly. The
original values were however copied to the SCSI inquiry data so the
device names that end up in different places were incorrect. This
fixes #7926.

Also added a comment explaining that there's way too little space in
the SCSI inquiry block to fit in the full ATA data.
2012-11-29 00:31:33 +01:00
Axel Dörfler
9d5955453c Add partition type to fs column for unknown file systems.
* Original patch by Morgul as part of #4235. This does not close the ticket,
  however.
* Updated the patch to not show empty '()' in case the partition type
  returned was NULL.
2012-11-28 23:26:39 +01:00
Axel Dörfler
8df20d2c85 Minor coding style cleanup. 2012-11-28 22:34:48 +01:00
Axel Dörfler
ed80f189ce Applied an updated patch by looncraz to enable hardware cursor.
I made the following changes to the original patch:
 * Add const to the cursor setting functions.
 * Removed the legacy cursor copying code.
 * Minor coding style cleanup.
2012-11-28 22:33:08 +01:00
Michael Lotz
9def48ad2e Implement B_GET_DEVICE_NAME in usb_disk returning SCSI info.
The SCSI inquiry vendor and product information is concatenated into a
single string to form the device name. Multiple spaces are then
collapsed to make the string more readable. The space padding is quite
common as the fields are fixed size in the inquiry block.
2012-11-28 21:30:00 +01:00
Alexander von Gluck IV
47038ab6ef swpipe: General cleanup
* Ensure context_id type is used constantly
* Put typedef of var in for loops in statement
* Clean up a few lines over 80
* Thanks korli!
2012-11-28 09:24:41 -06:00
Alexander von Gluck IV
b8bb5c500a swrast: Rework resource text 2012-11-28 05:01:08 +00:00