Commit Graph

37908 Commits

Author SHA1 Message Date
Rene Gollent
260241b41b The wrong ID was being passed into _SendMessage(), leading to all thread
property change notifications being sent as having occurred for the team's
main thread.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39865 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-16 04:15:39 +00:00
Rene Gollent
03a4f3aff3 Fix gcc2 kernel build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39864 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-16 03:00:22 +00:00
Ingo Weinhold
09d6a5822a Added a test program for the system watching mechanism.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39863 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-16 01:50:27 +00:00
Ingo Weinhold
d2bf328d72 Implemented a generic system watching mechanism with a userland API. Currently
only a few events can be watched (team creation/deletion/exec, thread creation/
deletion/name changes). The functions start_system_watching()/
stop_system_watching start/stop watching events.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39862 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-16 01:49:52 +00:00
Ingo Weinhold
4ebc8f615d * Added a "name changed" notification to the thread notification service.
* Added a "team" field to the notification events.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39861 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-16 01:44:15 +00:00
Ingo Weinhold
2d8d1cdbaa * Implemented a generic way to associate data with a team which is
automatically cleaned up when the team is deleted: Class AssociatedData is
  the base class for a data item, AssociatedDataOwner a container for them
  (struct team derives from it). Functions team_associate_data() and
  team_dissociate_data() add/remove data.
* Turned sTeamHash into a BOpenHashTable (necessary since struct team is no
  longer a POD).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39860 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-16 01:15:35 +00:00
Ingo Weinhold
eeecbf6fb8 The header is no longer included from pure C sources, so we can finally freely
use C++.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39859 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-15 23:18:13 +00:00
Ingo Weinhold
76c4f83965 * priv.c -> priv.cpp
* Defined curthread to NULL. Using Haiku's struct thread is not acceptable
  without proper locking and the only purpose ATM is to pass it to priv_check()
  which ignores it anyway.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39858 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-15 23:12:38 +00:00
Ingo Weinhold
a68810a9a4 Don't use private kernel API.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39857 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-15 23:09:14 +00:00
Marcus Overhagen
1719e941ff Fixed build for ATA_DMA_TRACING enabled.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39856 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-15 22:30:12 +00:00
Stephan Aßmus
7730c84696 Improved layout of controls and more cleanup. There is now a splitter
between the source file list and the controls on the right, and ticket
#6985 is fixed. A lot of issues and quirks remain with this application.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39855 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-15 17:31:57 +00:00
Stephan Aßmus
0a81944d5d More cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39854 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-15 10:47:02 +00:00
Stephan Aßmus
f086ada784 * Applied patch from Barrett (ticket #6497) which fixes some issues
with the previous patch from him.
* More cleanup by myself in MediaConverterWindow::MessageReceived(),
  no functional changes intended.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39853 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-15 10:34:58 +00:00
Axel Dörfler
529b094654 * Removed setwep from the image; it's no longer needed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39852 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-14 21:07:56 +00:00
Axel Dörfler
98e25dc3f9 * The net_server now tries to join the network via wpa_supplicant, if available.
* Add some output when automatically joining a network.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39851 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-14 20:22:18 +00:00
Rene Gollent
131e477eb9 Should have been part of previous commit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39850 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-14 19:01:37 +00:00
Rene Gollent
27a115f668 Revert r39846 and r39847.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39849 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-14 17:55:38 +00:00
Rene Gollent
68258fd9d0 Actually copy the data to be written into the message.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39848 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-14 13:16:44 +00:00
Rene Gollent
8fb7eb8b17 Implement support for catching rename and thread priority change events.
This lets us keep up to date with thread names, which makes, for example
Tracker a bit more tolerable to debug since it employs thread renaming
to set the names of its windows.

Implements #4430.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39847 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-14 05:11:21 +00:00
Rene Gollent
7040b50df5 Add support for thread rename and priority change notifications to the
debugger API/message set.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39846 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-14 05:08:47 +00:00
Rene Gollent
95acfc2225 Added keyboard shortcut for Run to go with the shortcuts for Step Over/Step Into.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39845 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 23:44:02 +00:00
Rene Gollent
8d8864e162 Add WriteMemory hooks to TeamMemory / DebuggerInterface to go with ReadMemory.
Will be used in the (eventual) memory inspection tool.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39844 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 23:33:29 +00:00
Rene Gollent
6cdfe5505c Add write counterparts to debug_read_memory/debug_read_memory_partial.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39843 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 23:27:59 +00:00
Axel Dörfler
b8268a2d3d * Added the wireless network setting to the Settings class, and also read out
the initial value from the "interface" settings file.
* The setting should now work as expected.
* Also consider interfaces in configuring state as being automatically managed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39842 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 22:26:37 +00:00
Axel Dörfler
c64bdbb55d * Moved the network definitions into their own file "wireless_networks".
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39841 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 22:24:39 +00:00
Siarzhuk Zharski
5075403207 Belarusian translation: Done by Mishuk Bulosh during
working on Google Code In "O-Z" task.

Note: Tracker is not included because some problems 
at HTA today - most of lines disappeared from the HTA
and are neither accessible nor exported to catkeys. :-(



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39840 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 22:11:39 +00:00
Adrien Destugues
eaa5d3bcea 80 column fix for devices
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39839 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 21:44:51 +00:00
Adrien Destugues
5c87dff557 80-column limit for deskcalc
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39838 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 21:40:07 +00:00
Adrien Destugues
26c424b68f 80-column limit for cdplayer
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39837 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 21:37:20 +00:00
Axel Dörfler
9e124835e2 * Turned on automatically joining a network even if none has been configured.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39836 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 21:35:35 +00:00
Adrien Destugues
7c2ffab858 Patch from Jason Fagnière (Protonux) as part of GCI :
* i18nize devices, charactermap, cdplayer, activitymonitor.

Thanks!

(note : there are some known 80-column problems in this patch)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39835 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 21:00:43 +00:00
Axel Dörfler
a2158925a6 * Added a menu field that is only visible when a wireless device is selected,
and that allows you to force a specific network upon start. That setting isn't
  restored yet when you launch Network, though.
* Also, it shows two bugs in the layout engine.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39834 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 20:01:14 +00:00
Axel Dörfler
3ca00ffdbc * Moved WirelessNetworkMenuItem into its own file.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39833 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 19:57:19 +00:00
Clemens Zeidler
f108cdbfab Merge all linear programming types in one file an rename them.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39832 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 19:23:33 +00:00
Philippe Houdoin
cbe1fb0f0c Add Esperanto.keymap from dancxjo (see #6977). Thanks.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39831 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 19:20:34 +00:00
Clemens Zeidler
b1f9962bae Fix ALM test.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39830 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 18:52:41 +00:00
Clemens Zeidler
5440f6fee3 Refactor the linear programming class to use a minimal solver interface class and implement the interface for lp_solve. As a result lp_solve is not visible to the outside any more. This interface could be used to use other solvers as well. Rename operator constants to no clash with lp_solve constants.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39829 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 18:41:58 +00:00
Axel Dörfler
654520d700 * Reimplemented _TriggerAutoConfig() to use the new
BNetworkInterface::AutoConfigure() method.
* Moved methods around to reflect their declaration order.
* Removed unused _PrepareRequest().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39828 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 17:49:03 +00:00
Rene Gollent
be443f5333 Code duplication cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39827 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 16:01:52 +00:00
Rene Gollent
d4556a4f56 - More style cleanups.
- Add FindSection() and IsLoaded() calls to ElfFile.
- On init, cache the section start/end for the .text and .plt
  sections in DwarfImageDebugInfo. Use them to make the check
  for classifying addresses significantly cheaper.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39826 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 14:05:44 +00:00
Philippe Houdoin
8a07a69693 Add input rdef location to include dir, otherwise when rc reads from stdin,
no include dir is defined and import commands will failed then.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39825 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 11:58:15 +00:00
Rene Gollent
bfd3cafa8b Style fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39824 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-12 22:21:46 +00:00
Rene Gollent
958cc95d32 Implement support for detecting if a given target address is in a Procedure
Linkage Table section. Use that additional information to skip PLT entries
while stepping. Fixes #6974.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39823 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-12 22:08:43 +00:00
Siarzhuk Zharski
c3e0dea8c6 Revert bogus changes introduced by r39819:
- Russian localization at HTA is outdated;
  - Belarusian localization is under completing now as last part of corresponding
    GCI Task. As the mentor of this task I have to keep all changes related to it
    in compact single changeset form. So adding incomplete parts of student's work
    breaks this policy.

I'm sorry for the extra "noise", guys.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39822 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-12 18:30:27 +00:00
Rene Gollent
411fe79789 - Add definition for return address register type.
- Add TODO wrt default instruction pointer rule.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39821 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-12 15:12:17 +00:00
Jérôme Duval
9637baae5b moved FindBlock() from Inode to DataStream
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39820 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-12 11:18:59 +00:00
Adrien Destugues
c21853165d Sync catalogs from hta.
The following ones are not synced because the export from hta has a wrong fingerprint. Mail was sent to Travis in the hope we'll get a fix.

rm ../data/catalogs/apps/aboutsystem/uk.catkeys 
rm ../data/catalogs/apps/diskprobe/be.catkeys 
rm ../data/catalogs/apps/diskprobe/fi.catkeys 
rm ../data/catalogs/apps/diskprobe/fr.catkeys 
rm ../data/catalogs/apps/diskprobe/ja.catkeys 
rm ../data/catalogs/apps/diskprobe/pl.catkeys 
rm ../data/catalogs/apps/diskprobe/pt_br.catkeys 
rm ../data/catalogs/apps/diskprobe/ru.catkeys 
rm ../data/catalogs/apps/diskprobe/uk.catkeys 
rm ../data/catalogs/apps/diskprobe/zh-hans.catkeys 
rm ../data/catalogs/apps/drivesetup/zh-hans.catkeys 
rm ../data/catalogs/apps/installedpackages/pl.catkeys 
rm ../data/catalogs/apps/mail/pl.catkeys 
rm ../data/catalogs/apps/terminal/fi.catkeys 
rm ../data/catalogs/apps/tv/zh-hans.catkeys 
rm ../data/catalogs/kits/tracker/fr.catkeys 
rm ../data/catalogs/preferences/shortcuts/zh-hans.catkeys 
rm ../data/catalogs/preferences/virtualmemory/zh-hans.catkeys 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39819 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-12 10:58:47 +00:00
Michael Pfeiffer
b12b2a60a7 * Bug fix: The configuration dialog was never opened, because it could
read the attribute "transport_address" created and set to an empty
  string by the print_server when the printer was created. 
  fEndpoint used an empty host name to connect to and then failed.
  Not sure why this caused a crash after closing the error dialog.
  Maybe something went wrong in the destructor using an invalid fEndpoint?
  Cures the symptoms of ticket #6973.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39818 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-12 08:06:19 +00:00
Rene Gollent
2e3906da98 - Set up correct stack pointer rule (value offset, not location offset).
- Init all registers to same value by default. gcc doesn't set up explicit CFI
  for same-value registers, so assume any register follows that rule until
  explicitly told otherwise (c.f. gdb/dwarf2-frame.c:793).



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39817 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-11 20:13:15 +00:00
Rene Gollent
87d85ea382 - Refactor setting up the default register rules to happen in the Architecture
class in order to allow us to set up architecture specific default rules
for registers that aren't explicitly set by the CFI program.
- Set up default rule for EIP on x86.
- Theoretically set up a default rule for the stack pointer. Disabled for the
time being though until I determine why that rule's not yielding the expected
values for ESP in anything other than the top frame, though the other location
offset rules work as expected.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39816 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-11 19:05:54 +00:00