Ashok Thirumurthi
0f3b9b819a
Build fixes for FreeBSD 9.1.
...
- TODO: Support extended register sets on FreeBSD.
Patch by Samuel Jacob.
llvm-svn: 180879
2013-05-01 20:38:19 +00:00
Greg Clayton
7b0992d9cd
After discussing with Chris Lattner, we require C++11, so lets get rid of the macros and just use C++11.
...
llvm-svn: 179805
2013-04-18 22:45:39 +00:00
Greg Clayton
e01e07b6e7
Since we use C++11, we should switch over to using std::unique_ptr when C++11 is being used. To do this, we follow what we have done for shared pointers and we define a STD_UNIQUE_PTR macro that can be used and it will "do the right thing". Due to some API differences in std::unique_ptr and due to the fact that we need to be able to compile without C++11, we can't use move semantics so some code needed to change so that it can compile with either C++.
...
Anyone wanting to use a unique_ptr or auto_ptr should now use the "STD_UNIQUE_PTR(TYPE)" macro.
llvm-svn: 179779
2013-04-18 18:10:51 +00:00
Ashok Thirumurthi
0118635979
Fix the Linux build issues introduced by r178191.
...
- All Linux logging channels now use a single global instance of lldb_private::Log, to handle the case of logging during process tear down.
- Also removed a single use of LogSP in FreeBSD and fixed a typo in a comment while reading through ProcessKDPLog.
Reviewed by Daniel Malea.
llvm-svn: 178242
2013-03-28 16:02:31 +00:00
Matt Kopec
58c0b96d11
Add Linux support for reading/writing extended register sets.
...
Patch by Ashok Thirumurthi.
llvm-svn: 177568
2013-03-20 20:34:35 +00:00
Matt Kopec
c6672c8783
Rollback r177173. Some OSs may not have ptrace extensions which lldb expects when building. This needs to be accounted for.
...
llvm-svn: 177176
2013-03-15 20:00:39 +00:00
Matt Kopec
6773276351
Add ptrace extensions to query a register set.
...
Patch by Ashok Thirumurthi.
llvm-svn: 177173
2013-03-15 19:06:45 +00:00
Matt Kopec
7de484640e
Improve/Cleanup ptrace wrapper and remove dependency on user.h
...
Patch by Ashok Thirumurthi.
llvm-svn: 176558
2013-03-06 17:20:48 +00:00
Daniel Malea
6217d2ae37
Implement -w flag to process launch (allow launching inferior process in different working directory) on Linux/FreeBSD
...
- fixes test case TestProcessLaunch
llvm-svn: 171854
2013-01-08 14:49:22 +00:00
Daniel Malea
f0da371bdc
Allow reading registers by thread ID in ProcessMonitor (Linux implementation)
...
- make FreeBSD ProcessMonitor API thread-ready
Patch by Matt Kopec!
llvm-svn: 170445
2012-12-18 19:50:15 +00:00
Daniel Malea
a35970a6f6
Fix Linux bug that leaves lldb in invalid state after expression evaluation times out.
...
- Handle EINVAL return code from ptrace(GETSIGINFO, ...): not an error, but 'group-stop' state on Linux
- propagate SIGSTOP to inferior in above case
- this commit resolves the failure in expression_command/timeout testcase
Thanks to Sean Callanan & Matt Kopec for helping debug this problem
llvm-svn: 168523
2012-11-23 18:09:58 +00:00
Filipe Cabecinhas
b76d5c965d
FreeBSD patch by Viktor Kutuzov
...
llvm-svn: 157735
2012-05-31 07:49:36 +00:00
Greg Clayton
29d1930868
Patch from Pawel Worach to make FreeBSD work again after ModuleSpec changes.
...
llvm-svn: 151532
2012-02-27 18:40:48 +00:00
Johnny Chen
9ed5b49c45
Fix incomplete commit of http://llvm.org/viewvc/llvm-project?rev=147609&view=rev :
...
This patch combines common code from Linux and FreeBSD into
a new POSIX platform. It also contains fixes for 64bit FreeBSD.
The patch is based on changes by Mark Peek <mp@FreeBSD.org> and
"K. Macy" <kmacy@freebsd.org> in their github repo located at
https://github.com/fbsd/lldb .
llvm-svn: 147613
2012-01-05 21:48:15 +00:00