Commit Graph

43381 Commits

Author SHA1 Message Date
Humdinger
48249b2064 Stylefixes, no functional change. 2012-07-25 19:16:11 +02:00
Humdinger
a736c8aa6b Patch by x-ist, thanks! Fixes non-terminating ReplaceAll, #8141. 2012-07-25 18:48:24 +02:00
Alex Smith
e3ac2588e6 Changed runtime_loader to use elf_* typedefs over Elf32_*.
This means that it will be using ELF64 types on x86_64 rather than
ELF32. The next step for supporting x86_64 is to implement relocations.
2012-07-25 15:05:21 +01:00
Alex Smith
ce35b7a68a Fixed broken build for x86. 2012-07-25 15:00:50 +01:00
Alexander von Gluck IV
f081f8b731 efi: Add more GPT partition GUID's
* Create a new Haiku GPT GUID (BeOS type not defined atm)
* Haiku BFS UUID by Andre Braga circa 2009 ML post
  "Defining the Haiku UUID for GPT and other uses"
* I'm putting this GUID on wikipedia and pushing to
  the linux gpt partition tools... should be a good
  way to kickstart it in the ecosystem
2012-07-25 08:26:07 -05:00
Alex Smith
6f1f972caf Finished system call handler.
The interrupt and system call handlers now perform all the necessary
kernel entry/exit work, and the system call handler now handles calls
with more than 6 arguments. Debugging and system call tracing hooks
are not yet called, will be added when user debugging gets implemented.
2012-07-25 08:56:47 +01:00
Rene Gollent
542ee07706 Slight cleanup of previous commit. 2012-07-24 19:23:39 -04:00
Rene Gollent
003dedca93 Fix #8768.
- When invoking ProcessController's menu, we now only show the "Live in Deskbar"
  menu item if we're either running within Deskbar itself or from PC's standalone
  window. This allows replicant PC instances to be usable in the case where
  Deskbar is deadlocked for whatever reason (previously it would hang while trying
  to query for the deskbar item's presence/status).
2012-07-24 19:09:53 -04:00
Fredrik Modéen
e2c343a22a Fixing #6913.
* Checking and setting a default value if both icon and text are false.
2012-07-25 00:49:30 +00:00
Ingo Weinhold
aacf2782d8 Debugger: Switch from readline to libedit 2012-07-25 00:11:14 +02:00
Philippe Saint-Pierre
b866f1fa54 Tracker: Files created from templates are now monitored
fixes #2796.
2012-07-24 14:53:57 -04:00
Axel Dörfler
846b2f90f6 Changed the kernel's file_map.cpp to be usable from the fs_shell as well.
* This should reduce our maintenance burden a tiny bit :-)
* It also fixes a bug in the fs_shell, see hrev43395.
2012-07-24 16:00:22 +02:00
Philippe Saint-Pierre
4c45f003ed Tracker: Right clicking on Pose triggered Rename prompts
Right clicking on a Pose to get the contextual menu would quite often
trigger a rename action of that pose. Don't allow to rename a pose
by releasing the secondary mouse button.
2012-07-23 22:38:44 -04:00
Philippe Saint-Pierre
e32c26f1c7 Notification preflet: add margin to views in TabView 2012-07-23 21:53:33 -04:00
Scott McCreary
dc321a67d6 Fixed pair of typos in hgrep script. 2012-07-23 22:23:41 +00:00
Philippe Saint-Pierre
fb678bc3d0 Tracker: Sorting in filtered view led to crash
Fixes #6992.
2012-07-23 19:06:08 -04:00
Ingo Weinhold
f4b1ddb580 Debugger: Coding style: normalize naming, some whitespace fixes
* TeamUISettings[Factory] -> TeamUiSettings[Factory]
* GUITeamUISettings -> GuiTeamUiSettings
* GUISettingsUtils -> GuiSettingsUtils
2012-07-24 00:28:37 +02:00
Scott McCreary
2c1dcd1fee Added hgrep and lgrep as OptionalPackages, this fixes #3376. 2012-07-23 21:52:41 +00:00
Fredrik Modéen
1615cec9cc Fixing #7984 and some code guidelines. 2012-07-24 00:07:19 +00:00
Ingo Weinhold
48b4d20480 Debugger CLI: Add "threads" command
It just lists the team's thread.
2012-07-23 23:52:46 +02:00
Ingo Weinhold
533a73766d Debugger: Create UiUtils helper class
Currently only a method to get a description for a thread state lives
there (code pulled from ThreadListView).
2012-07-23 23:52:46 +02:00
Ingo Weinhold
a6de32b06c Debugger CLI: Pull QuitCommand out of CommandLineUserInterface 2012-07-23 23:52:46 +02:00
Ingo Weinhold
d0ef75400b Debugger CLI: Start to imbue CliContext with life 2012-07-23 23:52:45 +02:00
Ingo Weinhold
abbcb2caf5 Debugger: Use readline in the CLI
This is a bit hacky, since gdb's readline is used. It would probably be
best to prepare an optional build package.
2012-07-23 23:52:45 +02:00
Philippe Saint-Pierre
c082e8f2e2 Tracker: Variation between Saved and Restored widths
When restored, an overlap was wrongly detected in offsets for
failure to take into account the width of the border line.

This was causing the horizontal scrollbar to show unnecessarily.
2012-07-23 17:05:57 -04:00
Philippe Saint-Pierre
50d739dee5 Tracker: Regression fix
A crash of Tracker was triggered when accessing AddOn menu (by
shortcut or context-menu) for Pose on Desktop, because of it's
incapacity to read the mime type list (that wasn't built in
those cases).
2012-07-23 16:15:19 -04:00
Adrien Destugues - PulkoMandy
dae0a4e0ab WIP version of SerialConnect. Not working, but added to the tree anyway so :
* You can code review it
 * You can help developping
Uses libvterm as the backend for parsing ANSI escape sequences. The lib was
changed slightly to build with GCC2. It could be used by Terminal as well as
it seems cleaner and more reliable than our current parser.
2012-07-23 21:36:40 +02:00
Adrien Destugues - PulkoMandy
fc3f40765a Merge branch 'master' of ssh://git.haiku-os.org/haiku 2012-07-23 21:32:24 +02:00
Philippe Saint-Pierre
5cdd07a814 Tracker: Optimisation of AddonMenu menu construction
1. Build the list of mimetypes of files in selection only once and
reuse it for all further tests.

2. Fix a regression introduced in hrev44384 where the MimeType()
wouldn't get recognized when just changed by tracker (by that same
right click).  It would be on subsequent clicks.

3. Rename the static map variable to better fit our coding style
and be more understandable.
2012-07-23 14:47:24 -04:00
Alex Smith
370ab57d49 Initial userland support for x86_64.
Userland switch is implemented, as is basic system call support (using
SYSCALL/SYSRET). The system call handler is not yet complete: it doesn't
handle more than 6 arguments, and does not perform all the necessary kernel
entry/exit work (neither does the interrupt handler). However, this is
sufficient for runtime_loader to start and print some debug output.
2012-07-23 17:12:12 +01:00
Philippe Saint-Pierre
b6a70ecba9 ProcessController: fix display of CPU bars for systems having 3 cores
Generalize the drawing of separator lines for every number of cores
requesting them.

Fix the layout for 3 cores systems.

Should fix #8763.
2012-07-23 10:16:37 -04:00
Alex Smith
07c6bd65b8 Format string fixes for TRACE_{THREAD,TEAM}. 2012-07-23 14:20:29 +01:00
Alex Smith
fe2e732721 Avoid an unnecessary mov on syscalls with < 4 arguments. 2012-07-23 14:18:54 +01:00
Philippe Saint-Pierre
516cac7817 Tracker: Coding style violations fixes and typos
No functional changes, thanks Axel!
2012-07-23 08:21:43 -04:00
Philippe Saint-Pierre
674ff0df2f Tracker: Various sorting issues in Tracker
When sorting files by Modified dates, right clicking on a file was leading
to a sorting issue where files were changing positions (without reason).

1. Any changes to stats (size, modification, creation, mode) was triggering
the sorting. Now only stats fields currently used as a Sort criteria will
trigger such event.

2. The Mimeset of file was set (in case of unknown file format) once per checked
add-on when building AddOn Menu. Now it's checked once per file in selection.
(so, once per file, rather then once per file, per add-on).

3. Now rely on registrar to force the mimeset (to trigger the sniffer in case
the attribute already exist) rather than trying to duplicate the feature in Tracker.

4. When Sorting, if there is a old position known, check if it's working by looking
if you should come after the previous item, and before the following item.  Previously,
the item would be pushed at the top if the group of item all fitting the criteria
(same file size, same file kind, etc.. depending on the sorting criteria).

Fixes #8478.
2012-07-22 22:16:19 -04:00
John Scipione
8cf6d28f99 It is okay to delete dragMessage even if it is NULL. Not worth the branch. 2012-07-22 16:00:21 -04:00
John Scipione
8f29b6e639 indent break statements. Only delete dragMessage if not NULL. 2012-07-22 16:00:21 -04:00
John Scipione
47a394ec13 Replace calls to DragRegion() with fDragRegion avoiding a function call. Move variables in MouseMoved down to just before they are used. 2012-07-22 16:00:20 -04:00
Rene Gollent
d7ed9414a3 Fix #8523.
- When the message filter would receive and process a mouse moved message,
  if the message resulted in causing the deskbar to relocate or reorient
  itself, it was possible for the expando view to become detached from
  the looper. Consequently, if the intercepted mouse moved happened to have
  come from the latter, when returning out of the filter the view would no
  longer have a target looper, triggering a debugger condition in BLooper.
  In order to prevent this situation, we now dispatch a message asking for
  the layout change to occur asynchronously.
2012-07-22 15:53:19 -04:00
Alexander von Gluck IV
7e67ec90a4 usb_serial: Set option driver to use the last found port.
* Add a warning when >1 port is found (as we only use the
  last found serial port)
* Verified working, remove if 0.
2012-07-22 13:48:57 -05:00
Alexander von Gluck IV
8899214980 usb_serial: Fix typo, set up endpoints properly
* Can successfully send data to Option USB serial device now
  (I need to do some testing before turning it on though)
2012-07-22 12:06:27 -05:00
Alexander von Gluck IV
52b7ccf49e usb_serial: Probe for USB endpoints on Option device
* More then one serial port is common, for now we only
  work off of the first one detected.
* Still disabled as some setup is needed.
2012-07-22 11:57:25 -05:00
Alexander von Gluck IV
b3b04af940 usb_serial: Add new Option driver
* Option devices are generally WWAN serial
  devices for 3G or lower.
* Picks up my CMOTECH Sprint 3G adaptor, need
  to wire up endpoints so disabled for now.
2012-07-22 11:06:48 -05:00
Alex Smith
fd9f32c0db Added some libroot bits for x86_64.
Still some parts missing (the glibc bits + fenv.c), plus the TLS
functions are only stubs.
2012-07-22 14:59:42 +01:00
Alex Smith
aef19e3c95 Implemented creation and destruction of user translation maps. 2012-07-22 13:07:44 +01:00
Alex Smith
5afce632f3 Demangle symbols in stack traces.
Since the demangle debugger extension now gets loaded when booting
from an image, use it in stack traces. Can't print argument values
like on x86, however, since x86_64 uses registers to pass the first
6 arguments rather than the stack we can't easily get to them.
2012-07-22 12:13:04 +01:00
Alex Smith
700c8d3078 Support building images for x86_64.
Added a temporary Haiku64Image file that gets included instead of
HaikuImage when building for x86_64, which I will add to as I port
stuff. Images currently only include the boot loader, kernel and
a bunch of add-ons.
2012-07-22 11:36:50 +01:00
Alex Smith
1c24ebaa5f 64-bit compilation fixes for BFS, add to x86_64 boot image. 2012-07-22 10:42:35 +01:00
Philippe Saint-Pierre
1236c746af Tracker: a file leaving Trash won't appear in QueryPoseView
Fixing #1592.

A feedback FSNotification()->EntryMoved->PendingNodeMonitorCache->FSNotification
was seemingly introducing some race condition, as it was working 1 time
on several tries.
2012-07-21 22:09:45 -04:00
Rene Gollent
55d6e32c7d Fix name generation for void pointer parameters. 2012-07-21 17:34:31 -04:00