Commit Graph
48619 Commits
Author SHA1 Message Date
Ingo Weinhold 7a1e706df7 safemode.h: Update coding style 2013-12-10 17:07:20 +01:00
Stephan Aßmus 84ec24f2ff CharacterStyleData: Added some comments in the header 2013-12-10 12:41:46 +01:00
Stephan Aßmus 415a1d65ee HaikuDepot: Display when some info is unavailable. 2013-12-10 12:41:46 +01:00
Stephan Aßmus 42434b0d5a MarkupParser: Make the normal text styles available. 2013-12-10 12:41:45 +01:00
Rene Gollent dad4ae32f1 Debugger: Fix race condition.
- For the functionality added to address #10283, we need to wait until we
receive the Team listener's thread state change notification before submitting
the report generation request, else the thread might not actually be stopped
yet when the generator walks the thread list. Should fix some lingering issues
with stack traces sometimes not being returned when using this mode of
operation.
2013-12-09 18:40:45 -05:00
Jérôme Duval 67ba05e6db FloppyBootImage: removed special case for x86_64
* completes hrev46470
* to be noted, adding generic_x86 for x86_64 let Haiku crash on boot.
2013-12-09 19:48:13 +01:00
Adrien Destugues 668ff59870 haiku_secondary: provide libtiff.
This will be removed when we use the libtiff package from haikuports (as
we do for libjpeg and libpng already), but for now the lib is built and
bundled in the package, so we might as well add a provides entry for it.
The main package already does so.
2013-12-09 13:07:45 +01:00
Stephan Aßmus 3c0c19bbf0 HaikuDepot: Should fix 64-Bit build. 2013-12-09 12:25:53 +01:00
Stephan Aßmus 964e6ee15a Shelf: Save() leaked a previous fStream. Untested.
Also, a few style-cleanups along the way.
2013-12-09 12:19:02 +01:00
Stephan Aßmus 870554ac69 HaikuDepot: Hide *_source and *_devel packages by default
* Renamed "Package" main menu to "Tools"
 * Added "Option" menu, containing the two options to show *_devel and
   *_source packages, defaulting to off.
2013-12-08 23:10:37 +01:00
Stephan Aßmus d543cbfcf6 HaikuDepot: Show message when no package is selected.
the instable layout was irritating. Clicking a package and having the
package info area expand upward could even lead to the clicked packed
to be hidden in the listview. Now a message is displayed and the package
info area already has the correct height.
2013-12-08 14:17:06 +01:00
Stephan Aßmus 1aa7edf0c3 TextDocumentView: Added plain-text copying to the clipboard
* Make the focus view on MouseDown()
 * Also added reaction to focus and window activation changes.
2013-12-08 14:17:05 +01:00
Stephan Aßmus a9fcf3d6b5 Paragraph+TextDocument: Added GetText() method
* GetText() extracts the text from a certain range as BString.
 * Probably fixed TextDocument::ParagraphAt(), though it is still untested.
2013-12-08 14:17:04 +01:00
François Revol e36ad522d6 Fix 24d0e21f51 correctly
CreateSubRequest() could still return an error and break out of the
while loop without exiting the outer for loop.

Instead we reset the error code before entering the for loop.
2013-12-08 11:34:07 +01:00
François Revol 664e3fba9b Partially revert 24d0e21f51
This reverts the extra for loop condition from
"do_iterative_fd_io_iterate(): Support sparse files".

When reading a file with more than 8 block_runs, get_vecs() would
return B_BUFFER_OVERFLOW which would never create any subrequest due
to the test on error == B_OK on the loop, but instead just fail.

Except for the get_vecs() return code, where it is not wanted,
the test made no sense as all other assignments are tested directly
or passed around with break.

Works for me but I don't guarantee it's completely correct.
2013-12-08 01:43:02 +01:00
Rene Gollent e8948527c2 Debugger: Implement #10283.
- When constructing the CLI interface, also pass along the target thread ID
if one was specified.
- If our only reason for starting is to save a report, and we've been given
a specific thread to target, rather than just a team, ensure that the target
thread is in a stopped state prior to saving the report.
2013-12-07 11:15:17 -05:00
Rene Gollent ffe61f274b Debugger: Extend CLI stop command.
- "stop" now allows optionally specifying a thread ID to stop an arbitrary
thread in the team, rather than always targetting the current one.
2013-12-07 09:59:00 -05:00
Ingo Weinhold 00b42dde0d FD kernel tracing: Capture kernel-only stack traces
* When exec()'ing we'd otherwise get (harmless but annoying) messages
  from vm_page_fault(). With syscall tracing enabled we can get userland
  stack traces anyway.
* Simplify by using TRACE_ENTRY_SELECTOR().
2013-12-07 15:44:22 +01:00
Ingo Weinhold 0a4cbd786c X86VMTranslationMapPAE: Extend kernel tracing
* Beside the physical address also print the PTE flags.
* Also trace Protect(), ClearFlags(), ClearAccessedAndModified().
2013-12-07 15:44:22 +01:00
Ingo Weinhold 3c70914f66 ktracing: TraceOutput::PrintStackTrace(): Fix duplication 2013-12-07 15:44:22 +01:00
Stephan Aßmus 64e87fbaca TextDocumentView: Fix detecting pressed Shift-key. 2013-12-07 15:12:05 +01:00
Stephan Aßmus 2201cea886 TextDocumentView: Selection polishing, I-Beam cursor 2013-12-07 14:40:08 +01:00
Stephan Aßmus 1d70e2ccd4 TextDocumentLayout: Fixed LineIndexForOffset()
It stepped over a wrong number of lines when skipping to the
ParagraphLayout containing the text offset.
2013-12-07 14:40:08 +01:00
Stephan Aßmus 287e53bd89 TextDocumentView: Lock the view focus in MouseDown() 2013-12-07 14:40:07 +01:00
Michael Lotz 57d8dd92ef pthread_join: Retry when interrupted as mandated by POSIX.
The spec explicitly states that pthread_join shall not return EINTR, so
we have to retry the wait when it gets interrupted instead of letting
the error code through.
2013-12-07 14:15:05 +00:00
Stephan Aßmus 03765c1d99 TextDocumentView: Implemented beginnings of mouse-selection 2013-12-07 12:31:35 +01:00
Stephan Aßmus 26fd5e9804 TextDocumentLayout: Added TextOffsetAt()
It iterates over the ParagraphLayoutInfos and finds
the one which must contain the location. Untestet.
2013-12-07 12:31:34 +01:00
Stephan Aßmus e174294891 ParagraphLayout: Added TextOffsetAt()
It returns the text offset at a given coordinate, and whether
the coordinate was more to the left or more to the right of the
glpyh center.
2013-12-07 12:31:34 +01:00
autonielx 42e1a29f0b Update translations from Pootle 2013-12-07 06:14:41 +01:00
Stephan Aßmus 5a1a6a3bac TextDocumentView: Preparations for selection support
Added methods to deal with caret offset and selection anchor,
constructing a BShape enclosing the selection range and drawing
it. Added mouse event stubs.
2013-12-07 00:18:01 +01:00
Stephan Aßmus 7d66167e17 TextDocumentLayout: Line info and refactoring
* Added LineIndexForOffset()
 * Extracted _ParagraphLayoutIndexForOffset()
2013-12-07 00:18:00 +01:00
Stephan Aßmus e3dc81cc9b ParagraphLayout: Added line info methods
* CountLines()
 * LineIndexForOffset()
 * Bug fixes in GetTextBounds()
2013-12-07 00:18:00 +01:00
Stephan Aßmus ab86f2c321 TextDocumentLayout::GetTextBounds(): Forget to offset...
... by the vertical offset of the ParagraphLayout containing
the text offset.
2013-12-07 00:17:59 +01:00
Stephan Aßmus 60eb71494a TextDocumentLayout: Added GetTextBounds(). 2013-12-07 00:17:58 +01:00
Stephan Aßmus 586ec1c10b TextDocument: Added Length() 2013-12-07 00:17:57 +01:00
Stephan Aßmus a681c327ed ParagraphLayout: Added GetTextBounds(). Untestet. 2013-12-07 00:17:57 +01:00
Stephan Aßmus cd50559dde ParagraphLayout: Added CountGlyphs() 2013-12-07 00:17:56 +01:00
Ingo Weinhold dac7b7c980 Fix various 64 bit related warnings
Mostly printf() format strings and signed-unsigned comparisons.
Fixes the x86_64 build.
2013-12-06 14:17:58 +01:00
Jerome Duval bff0809603 x86_64: fixed GLTeapot and libglut build 2013-12-05 23:52:24 +01:00
Ingo Weinhold 736fe5bc63 Fix build with TRANSLATION_MAP_TRACING enabled 2013-12-05 21:44:54 +01:00
Ingo Weinhold 4600788b1d Fix more translator build feature dependencies 2013-12-05 21:24:22 +01:00
Ingo Weinhold fdfd52743b JPEGTranslator Jamfile: Fix build feature dependencies
Move jpeg build feature references into the architecture loop. While
they have the same name, these actually are different build features
(using different packages).
2013-12-05 21:09:49 +01:00
Ingo Weinhold 1604cdaef8 Update -Werror work-around for arch_debug_console.o
Fixes the gcc 2 build again.
2013-12-05 20:42:06 +01:00
Ingo Weinhold 372b309a4a X86VMTranslationMapPAE: Fix gcc 2 warning
... which due to the reactivated -Werror causes the build to fail.
2013-12-05 20:42:06 +01:00
Jerome Duval 9e46d51cc2 ffmpeg plugin only needs to link against ffmpeg libs.
* clean the ffmpeg build feature.
2013-12-05 18:04:13 +01:00
Ingo Weinhold 724f4e2d38 Fix kernel -Werror support
The introduction of secondary arch support for kernel files disabled
-Werror for all kernel files, since the -Werror flags were moved from
{CC,C++}FLAGS to TARGET_WARNING_{CC,C++}FLAGS_<arch>, which, however,
was overwritten by the SetupKernel rule. This commit introduces new
global variables {HAIKU,HOST,TARGET}_WERROR_FLAGS[_<arch>], which
contain the additional -Werror flags to be applied for the architecture.
The config variable WARNINGS can be set to "treatAsErrors" to cause
-Werror and {HOST,TARGET}_WERROR_FLAGS[_<arch>] to be appended to the
compilation flags.

Fixes #10280.
2013-12-05 12:48:22 +01:00
Ingo Weinhold 7b83ce1142 Add KDL command "mapping"
* VMTranslationMap:
  - Add DebugPrintMappingInfo(): Given a virtual address it is supposed
    to print the paging structure information for that address. To be
    implemented by derived classes.
  - Add DebugGetReverseMappingInfo(): Given a physical addresss it is
    supposed to find all virtual addresses mapped to it. To be
    implemented by derived classes.
* X86VMTranslationMapPAE: Implement the new methods
  DebugPrintMappingInfo() and DebugGetReverseMappingInfo().
* Add KDL command "mapping". It supports both virtual address lookups
  and reverse lookups.
2013-12-05 05:13:21 +01:00
Rene Gollent 75c19f7043 Debugger: Clean up DwarfFile::_GetDebugInfoPath().
- Fix a regression introduced when refactoring for the removal of /boot/common,
and adjust to use BPathFinder::FindPath() with implicit existence check instead
of manual iteration.
2013-12-04 22:56:42 -05:00
Ingo Weinhold 7b59a61790 ICNSTranslator Jamfile: Fix libpng dependency 2013-12-05 02:26:51 +01:00
Rene Gollent 2ebca67e77 Debugger: Fix indentation error from previous commit. 2013-12-04 18:16:23 -05:00