Skip to content

Commit

Permalink
Add dyninstAPI/os.h
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Apr 3, 2024
1 parent bf8e9b7 commit 41181b6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
23 changes: 23 additions & 0 deletions docs/dyninstAPI/developer/os.h.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,26 @@
os.h
####

This should enforce the abstract OS operations

.. cpp:class:: OS

.. cpp:function:: static void osTraceMe(void)
.. cpp:function:: static void osDisconnect(void)
.. cpp:function:: static bool osKill(int)
.. cpp:function:: static void make_tempfile(char *)
.. cpp:function:: static bool execute_file(char *)
.. cpp:function:: static void unlink(char *)
.. cpp:function:: static bool executableExists(const std::string &file)
.. cpp:function:: static void get_sigaction_names(std::vector<std::string> &names)


Temporary prototype for a remote debugging BPatch interface.

.. cpp:namespace:: dev

.. cpp:function:: bool OS_isConnected(void)
.. cpp:function:: bool OS_connect(BPatch_remoteHost &remote)
.. cpp:function:: bool OS_getPidList(BPatch_remoteHost &remote, BPatch_Vector<unsigned int> &tlist)
.. cpp:function:: bool OS_getPidInfo(BPatch_remoteHost &remote, unsigned int pid, std::string &pidStr)
.. cpp:function:: bool OS_disconnect(BPatch_remoteHost &remote)
8 changes: 0 additions & 8 deletions dyninstAPI/src/os.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,6 @@
#ifndef _OS_HDR
#define _OS_HDR

/*
* This is an initial attempt at providing an OS abstraction for paradynd
* I am doing this so I can compile paradynd on solaris
*
* This should enforce the abstract OS operations
*/

#if defined(i386_unknown_nt4_0)
#include "dyninstAPI/src/pdwinnt.h"

Expand All @@ -66,7 +59,6 @@ class OS {
static void get_sigaction_names(std::vector<std::string> &names);
};

// Temporary prototype for a remote debugging BPatch interface.
#include "dyninstAPI/h/BPatch.h"
bool OS_isConnected(void);
bool OS_connect(BPatch_remoteHost &remote);
Expand Down

0 comments on commit 41181b6

Please sign in to comment.