Commit Graph

54366 Commits

Author SHA1 Message Date
Rene Gollent
2d9d01e2e8 Debugger: Refactor non-interactive report handling.
- Add dedicated ReportDebugger application class for the case where we're
  asked to do nothing more than save a report. Also add a corresponding
  UserInterface subclass whose sole purpose is to take those necessary
  actions and then exit.
- When the debugger is invoked via the --save-report option, we now start
  via the aforementioned report/interface rather than piggybacking on the
  CLI.
- Clean up CommandLineUserInterface/CliContext to remove handling for the
  report saving option.

Should hopefully resolve #12155.
2015-08-22 00:21:07 -04:00
Michael Lotz
3667f6efdb BApplication: Avoid create_app_meta_mime() for the registrar.
BApplication::_InitData() already avoided the use of BRoster from the
registrar (and launch_daemon) where it isn't available. Since
create_app_meta_mime() indirectly just sends a message to the registrar
using BRoster, it too cannot work when the registrar isn't available.
2015-08-21 23:23:26 +02:00
Michael Lotz
811f0164a0 BRoster: Make sure we aren't the registrar when initializing.
This fixes a regression introduced in 9bfc833, where the old way of
getting the roster port was replaced with its launch_daemon counterpart.

The previous method of finding the roster did always fail when running
from the registrar, as at the time of initialization (initialize_before
of libbe) the registrar looper doesn't exist yet. This commit restores
the previous behaviour by checking if the returned registrar team is the
current team and avoiding initialization in that case.

The regression caused a 5 second boot delay when later BApplication
initialization of the registrar tried to communicate with itself with a
reply timeout of that length.

Fixes #12258 at least partially and might affect #12237.
2015-08-21 23:03:37 +02:00
Michael Lotz
5ca445dfc6 FS module docs: Add documentation for entry_cache_add_missing().
This was missed when introducing the feature in hrev49558. Thanks Jérôme
for the pointer!

Also add a note explaining that update operations on cached entries and
the removal of uncached entries are safe.
2015-08-21 21:08:15 +02:00
Michael Lotz
c4a9344a11 libroot_debug: Support alignments > B_PAGE_SIZE in guarded heap.
These are always allocated using an area. The allocation size is
increased as to guarantee the availability of a suitable address. The
pages between the allocation info and the actual, aligned start address
and the pages past the allocation end are then protected.

This commit also fixes corruption of the allocation info for large
allocations that used areas. The alignment wasn't taken into account
when calculating the amount of space needed. The alignment could then
lead to rounding down the allocation start such that it would overlap
with the allocation info.
2015-08-20 21:59:41 +02:00
Michael Lotz
5d4501aa01 Assorted whitespace cleanup and typo fixes. 2015-08-20 21:54:41 +02:00
Michael Lotz
44b69ccbdb bfs: Use negative caching on directory lookup failures. 2015-08-20 21:25:56 +02:00
Michael Lotz
efb0a3a853 EntryCache: Add entry_cache_add_missing() for negative caching.
It provides a way for filesystems to cache a lookup failure and
therefore prevents repeated lookups of missing entries. This is a
common scenario for example in command lookup and compiling, where
each directory in PATH or each include directory is searched for the
given entry.
2015-08-20 21:25:56 +02:00
Michael Lotz
883b3e1d5c DebugAnalyzer: Fix 64 bit build. 2015-08-20 21:25:55 +02:00
Stephan Aßmus
36ab52c74e HaikuDepot: Adapt package contents when package status changes
Based on a patch in ticket #11886 by TwoFx, but with checks for
packageRef.Get() != NULL and better member name for the package status.
2015-08-20 16:25:07 +02:00
Jérôme Duval
36c3cc9732 Update bash packages. 2015-08-19 21:31:46 +02:00
Jérôme Duval
1ecd2c8163 Add libasr, freeciv and its dependencies for x86_64.
* Update freetype for x86_64.
2015-08-18 21:13:24 +02:00
Jérôme Duval
92a3fa86db Add ncurses6 packages, update cmake, mpg123, unrar packages. 2015-08-17 21:51:21 +02:00
Axel Dörfler
b20d210d5a Mail: minor cleanup. 2015-08-17 21:12:42 +02:00
Axel Dörfler
f8300bd979 Tracker: Added a "Skip all" functionality.
* Also, the copy prompt gets a missing "Replace" button (instead of
  only offering "Replace all").
2015-08-17 21:11:51 +02:00
Axel Dörfler
0104e6facb Tracker: Use BEntry::Name(), minor cleanup.
* Use BEntry::Name() over GetName() where appropriate.
* Fixed some weird indentation.
* Simplified some constructs.
2015-08-17 21:09:46 +02:00
Axel Dörfler
103adddb37 BTextView: do not restrict max size in GetHeightForWidth(). 2015-08-17 21:08:16 +02:00
Adrien Destugues
897d8754a6 GrafX2: update to a version that actually works. 2015-08-16 14:48:07 +02:00
Humdinger
28b7dd63d3 Updated qbittorrent and quicklaunch. 2015-08-16 13:41:28 +02:00
Adrien Destugues
ebc6718fb2 Add package for GrafX2. 2015-08-16 13:04:09 +02:00
Humdinger
b3fe461495 Updated bepodder, added new qbittorrent and dependancy built by Diver 2015-08-16 08:50:22 +02:00
Rene Gollent
9d9c74ecdb Debugger: Cleanups and improvements for status notification.
Worker/Job:
- Add job listener hooks for when work actually begins for a job,
  and when a job is suspended to wait for user input.
- Add hook for setting a job description string, and implement in several
  subclasses.

LoadImageDebugInfoJob:
- Get rid of ImageDebugInfoJobListener since its functionality can be
  handled via the more general job wait for user input hook. Refactor
  accordingly.

TeamDebugger:
- Adjust to use new job hooks. When a worker job is initiated, we now
  check if the job has a description, and if so pass it on to the UI
  to display a notification.

DwarfLoadingStateHandler:
- Notify the UI when a package download is in progress.

With these changes, the status bar now notifies the user if any of the
following actions are in flight:

1) Loading/parsing debug information
2) Stack trace retrieval
3) Source code retrieval
4) Downloading a debug info package
2015-08-15 16:47:26 -04:00
Adrien Destugues
4c7fff8044 Add package for jabber4haiku. 2015-08-15 11:39:05 +02:00
Adrien Destugues
ea2e2f5e11 Update LnLauncher package to include launch daemon script. 2015-08-15 10:40:38 +02:00
Alexander von Gluck IV
5d91a421b9 glibc/arm: More generic math functions 2015-08-15 00:00:26 -05:00
autonielx
73d0cc7227 Update translations from Pootle 2015-08-15 06:29:57 +02:00
Alexander von Gluck IV
76cc2d8f45 glibc/arm: Filling in more ARM gaps 2015-08-14 21:06:40 -05:00
Rene Gollent
36a43c9d51 Debugger: Implement notifications for debug info loading.
TeamDebugger:
- When notified that an image debug info job has started loading,
  notify the user interface accordingly. Also reset status to a ready
  state whenever all in-flight jobs are complete. This allows the
  user to know when then debug subsystem is still in the process
  of parsing debug information, as this can be time consuming for
  larger programs/libraries.
2015-08-14 20:53:06 -04:00
Rene Gollent
674e0424f7 Debugger: Extend ImageDebugInfoJobListener.
ImageDebugInfoJobListener:
- Add hook for notification that the loading job is in progress. Call
  as appropriate when the job actually starts.
2015-08-14 20:53:05 -04:00
Rene Gollent
7f77789d5b Debugger: Add work notification hook to UserInterface.
UserInterface:
- Add new hook function used to notify the UI that some form of
  background work is taking place for informational purposes,
  i.e. no interaction required. Implement accordingly in
  GraphicalUserInterface.
2015-08-14 20:53:03 -04:00
Rene Gollent
0324fc408c Debugger: Add status bar to main team window.
TeamWindow:
- Add a status bar in the form of a string view to the bottom of the
  window, along with a helper function to request updating it.
2015-08-14 20:53:02 -04:00
Rene Gollent
667361d71f Debugger: Add worker helper function.
Worker:
- Add helper to check if the background worker thread has any unfinished
  jobs in its queue.
2015-08-14 20:49:23 -04:00
Jérôme Duval
b73c4b60f3 Update icu packages for x86_64. 2015-08-14 22:41:05 +02:00
Alexander von Gluck IV
17ddd6c09d libroot/arm: Add in some missing math functions
* Using native assembly functions would be a lot faster,
  but would require quite a bit of changes to glibc.
* This gets arm linking for now... I'd personally like
  to see musl in here in the future for gcc4 images. (pre-R2)
2015-08-14 13:46:05 -05:00
Alexander von Gluck IV
ab341b9d63 kernel/arm: Correct platform id on ARM 2015-08-14 12:50:05 -05:00
Adrien Destugues
1e57dd30a8 Fix xmlroff package. 2015-08-14 18:44:36 +02:00
Adrien Destugues
74c001d51d Add xmlroff package, with dependencies. 2015-08-13 22:51:40 +02:00
Michael Lotz
dfcf52c9f1 leak_analyser: Update excludes with more generic regex for ICU.
Also add initialize_before of libroot to the default excludes.
2015-08-13 22:34:51 +02:00
Michael Lotz
1748116d1c libroot_debug.so: Fix missing alignment in guarded realloc. 2015-08-13 22:33:55 +02:00
Michael Lotz
8fa441bf5c libroot_debug: Revert to a legacy default alignment of 8.
This reverts the legacy default alignment (in absence of max_align_t)
to 8, as it was before.
2015-08-13 22:12:19 +02:00
Michael Lotz
f474606ee9 libroot_debug: Merge guarded heap into libroot_debug.
The individual debug heap implementations are now exposed via a
structure of function pointers and a common frontend dispatches the
malloc and malloc_debug APIs through them.

The MALLOC_DEBUG environment variable can be used to select the guarded
heap by adding 'g', otherwise the debug heap is used as the default.
Consequently the separate libroot_guarded is not needed anymore and has
been removed.

To allow the use of environment variables this early, init_env_post_heap
has been added and the heap dependent atfork() moved there. This allowed
to fold the code of init_heap_post_env into init_heap so the former has
been removed.
2015-08-13 22:12:18 +02:00
Jérôme Duval
7492419877 Updated tcpdump and libpcap packages. 2015-08-13 20:15:57 +02:00
Jérôme Duval
827cdc0134 ftp: declares header dependencies on libedit. 2015-08-13 18:58:35 +02:00
Jérôme Duval
9a900002db Updated cmake, curl and yasm packages. 2015-08-13 18:30:42 +02:00
Adrien Destugues
0a02f8c287 LaunchDaemon: use setenv to set HOME env variable.
* The API is saner: no need to build a string with var=value
* It is safer: putenv requires the string passed to it to stay
allocated, although most implementations (Haiku, Linux, BSD, OSX) do not
follow POSIX on this,
* Fix a problem reported in #12298 comments because the variable was set
with extra quotes (putenv does not escape them), leading to Qupzilla not
finding the home dir.
2015-08-12 18:08:32 +02:00
Stefano Ceccherini
ff8c8dfc17 Improve patch in ticket #9377
Instead of locking the interface lock, set it busy and then unlock the
interface list lock.
2015-08-12 15:22:42 +02:00
Stefano Ceccherini
a48ef9e817 AppServer: check for NULL bitmap.
Consistently check for NULL the ServerBitmap pointer.
There seems to be cases where BView::DragMessage could pass an invalid
Bitmap token to app_server.
Maybe it's when a client only bitmap is passed, I don't know.
Anyway, this is defensive programming, and at least we check for NULL
consistently now.
This fixes #11681.
Note that SuperFreeCell still crashes, but at least app_server doesn't crash.
2015-08-12 00:40:06 +02:00
Stefano Ceccherini
f2de125b8c Removed code path for be_control_look == NULL.
Adjusted TODO comment.
2015-08-11 23:24:46 +02:00
Humdinger
26cc9e9e07 Small cosmetics for the preference panel
* Prevent the scrollview from jumping vertically when selecting a service
* Glue the services view to the top
2015-08-11 19:05:04 +02:00
Rene Gollent
422b0ec754 libroot: Fix issue reported in ticket #12291.
fts.c:
- Our fts functions were imported from FreeBSD and consequently did not
  use the same weak alias methodology that most of our glibc-derived
  POSIX functions do. These subsequently wound up clashing with the
  implementation of said functions in current versions of coreutils,
  resulting in assertion failures when e.g. running a program through
  stdbuf, since the BSD-derived functions had different flag constraints
  than their GNU peers. Consequently, this change adjusts the fts_*
  family of functions to similarly be exported as weak symbols so they
  can be preempted.
2015-08-10 17:01:35 -04:00