DNB.h revision 3a458eb1e413d39546b664813bba9f9ac292357e
1c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)//===-- DNB.h ---------------------------------------------------*- C++ -*-===//
2c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)//
3c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)//                     The LLVM Compiler Infrastructure
4c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)//
5c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// This file is distributed under the University of Illinois Open Source
6c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// License. See LICENSE.TXT for details.
7c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)//
8c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)//===----------------------------------------------------------------------===//
9c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)//
10c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)//  Created by Greg Clayton on 3/23/07.
11c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)//
127d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)//===----------------------------------------------------------------------===//
13c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
147d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)#ifndef __DNB_h__
15c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)#define __DNB_h__
16c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
17c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)#include "DNBDefs.h"
18c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)#include <mach/thread_info.h>
197d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)
207d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)#ifdef __cplusplus
21c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)extern "C" {
227d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)#endif
23c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
247d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)#define DNB_EXPORT __attribute__((visibility("default")))
257d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)
267d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)typedef bool (*DNBShouldCancelCallback) (void *);
277d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)
28c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)void            DNBInitialize ();
29b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)void            DNBTerminate ();
30c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
31c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)nub_bool_t      DNBSetArchitecture      (const char *arch);
32b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)
33c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)//----------------------------------------------------------------------
34c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Process control
35c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)//----------------------------------------------------------------------
36c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)nub_process_t   DNBProcessLaunch        (const char *path,
37c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)                                         char const *argv[],
38c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)                                         const char *envp[],
39c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)                                         const char *working_directory, // NULL => dont' change, non-NULL => set working directory for inferior to this
40c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)                                         const char *stdin_path,
41c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)                                         const char *stdout_path,
42c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)                                         const char *stderr_path,
43b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)                                         bool no_stdio,
44c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)                                         nub_launch_flavor_t launch_flavor,
45c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)                                         int disable_aslr,
46c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)                                         char *err_str,
47c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)                                         size_t err_len) DNB_EXPORT;
48c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
49c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)nub_process_t   DNBProcessAttach        (nub_process_t pid, struct timespec *timeout, char *err_str, size_t err_len) DNB_EXPORT;
50c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)nub_process_t   DNBProcessAttachByName  (const char *name, struct timespec *timeout, char *err_str, size_t err_len) DNB_EXPORT;
51c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)nub_process_t   DNBProcessAttachWait    (const char *wait_name, nub_launch_flavor_t launch_flavor, bool ignore_existing, struct timespec *timeout, useconds_t interval, char *err_str, size_t err_len, DNBShouldCancelCallback should_cancel = NULL, void *callback_data = NULL) DNB_EXPORT;
52c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Resume a process with exact instructions on what to do with each thread:
53c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// - If no thread actions are supplied (actions is NULL or num_actions is zero),
54c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)//   then all threads are continued.
55c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// - If any thread actions are supplied, then each thread will do as it is told
56c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)//   by the action. A default actions for any threads that don't have an
57c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)//   explicit thread action can be made by making a thread action with a tid of
58c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)//   INVALID_NUB_THREAD. If there is no default action, those threads will
59c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)//   remain stopped.
60c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)nub_bool_t      DNBProcessResume        (nub_process_t pid, const DNBThreadResumeAction *actions, size_t num_actions) DNB_EXPORT;
61c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)nub_bool_t      DNBProcessHalt          (nub_process_t pid) DNB_EXPORT;
62c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)nub_bool_t      DNBProcessDetach        (nub_process_t pid) DNB_EXPORT;
63c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)nub_bool_t      DNBProcessSignal        (nub_process_t pid, int signal) DNB_EXPORT;
645c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liunub_bool_t      DNBProcessKill          (nub_process_t pid) DNB_EXPORT;
65c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)nub_size_t      DNBProcessMemoryRead    (nub_process_t pid, nub_addr_t addr, nub_size_t size, void *buf) DNB_EXPORT;
66c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)nub_size_t      DNBProcessMemoryWrite   (nub_process_t pid, nub_addr_t addr, nub_size_t size, const void *buf) DNB_EXPORT;
67c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)nub_addr_t      DNBProcessMemoryAllocate    (nub_process_t pid, nub_size_t size, uint32_t permissions) DNB_EXPORT;
68c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)nub_bool_t      DNBProcessMemoryDeallocate  (nub_process_t pid, nub_addr_t addr) DNB_EXPORT;
69c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)int             DNBProcessMemoryRegionInfo  (nub_process_t pid, nub_addr_t addr, DNBRegionInfo *region_info) DNB_EXPORT;
70c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
71c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)//----------------------------------------------------------------------
727d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// Process status
737d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)//----------------------------------------------------------------------
747d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)nub_bool_t      DNBProcessIsAlive                       (nub_process_t pid) DNB_EXPORT;
757d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)nub_state_t     DNBProcessGetState                      (nub_process_t pid) DNB_EXPORT;
767d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)nub_bool_t      DNBProcessGetExitStatus                 (nub_process_t pid, int *status) DNB_EXPORT;
777d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)nub_bool_t      DNBProcessSetExitStatus                 (nub_process_t pid, int status) DNB_EXPORT;
787d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)nub_size_t      DNBProcessGetNumThreads                 (nub_process_t pid) DNB_EXPORT;
797d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)nub_thread_t    DNBProcessGetCurrentThread              (nub_process_t pid) DNB_EXPORT;
807d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)nub_thread_t    DNBProcessSetCurrentThread              (nub_process_t pid, nub_thread_t tid) DNB_EXPORT;
817d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)nub_thread_t    DNBProcessGetThreadAtIndex              (nub_process_t pid, nub_size_t thread_idx) DNB_EXPORT;
827d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)nub_addr_t      DNBProcessGetSharedLibraryInfoAddress   (nub_process_t pid) DNB_EXPORT;
837d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)nub_bool_t      DNBProcessSharedLibrariesUpdated        (nub_process_t pid) DNB_EXPORT;
847d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)nub_size_t      DNBProcessGetSharedLibraryInfo          (nub_process_t pid, nub_bool_t only_changed, DNBExecutableImageInfo **image_infos) DNB_EXPORT;
857d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)nub_bool_t      DNBProcessSetNameToAddressCallback      (nub_process_t pid, DNBCallbackNameToAddress callback, void *baton) DNB_EXPORT;
867d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)nub_bool_t      DNBProcessSetSharedLibraryInfoCallback  (nub_process_t pid, DNBCallbackCopyExecutableImageInfos callback, void *baton) DNB_EXPORT;
877d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)nub_addr_t      DNBProcessLookupAddress                 (nub_process_t pid, const char *name, const char *shlib) DNB_EXPORT;
885d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)nub_size_t      DNBProcessGetAvailableSTDOUT            (nub_process_t pid, char *buf, nub_size_t buf_size) DNB_EXPORT;
895d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)nub_size_t      DNBProcessGetAvailableSTDERR            (nub_process_t pid, char *buf, nub_size_t buf_size) DNB_EXPORT;
905d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)nub_size_t      DNBProcessGetStopCount                  (nub_process_t pid) DNB_EXPORT;
915d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)uint32_t        DNBProcessGetCPUType                    (nub_process_t pid) DNB_EXPORT;
925c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
935d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)//----------------------------------------------------------------------
945d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Process executable and arguments
955d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)//----------------------------------------------------------------------
965d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char *    DNBProcessGetExecutablePath     (nub_process_t pid) DNB_EXPORT;
975d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char *    DNBProcessGetArgumentAtIndex    (nub_process_t pid, nub_size_t idx) DNB_EXPORT;
985d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)nub_size_t      DNBProcessGetArgumentCount      (nub_process_t pid) DNB_EXPORT;
995d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
1005c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu//----------------------------------------------------------------------
1015c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Process events
1025c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu//----------------------------------------------------------------------
1035c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liunub_event_t     DNBProcessWaitForEvents         (nub_process_t pid, nub_event_t event_mask, bool wait_for_set, struct timespec* timeout) DNB_EXPORT;
1045c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuvoid            DNBProcessResetEvents           (nub_process_t pid, nub_event_t event_mask) DNB_EXPORT;
1055c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuvoid            DNBProcessInterruptEvents       (nub_process_t pid) DNB_EXPORT;
1065c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
1075c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu//----------------------------------------------------------------------
1085c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Thread functions
1095c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu//----------------------------------------------------------------------
1105c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char *    DNBThreadGetName                (nub_process_t pid, nub_thread_t tid) DNB_EXPORT;
1115c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liunub_bool_t      DNBThreadGetIdentifierInfo      (nub_process_t pid, nub_thread_t tid, thread_identifier_info_data_t *ident_info) DNB_EXPORT;
1125c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liunub_state_t     DNBThreadGetState               (nub_process_t pid, nub_thread_t tid) DNB_EXPORT;
1135c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liunub_bool_t      DNBThreadGetRegisterValueByID   (nub_process_t pid, nub_thread_t tid, uint32_t set, uint32_t reg, DNBRegisterValue *value) DNB_EXPORT;
114c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)nub_bool_t      DNBThreadSetRegisterValueByID   (nub_process_t pid, nub_thread_t tid, uint32_t set, uint32_t reg, const DNBRegisterValue *value) DNB_EXPORT;
115c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)nub_size_t      DNBThreadGetRegisterContext     (nub_process_t pid, nub_thread_t tid, void *buf, size_t buf_len) DNB_EXPORT;
1167d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)nub_size_t      DNBThreadSetRegisterContext     (nub_process_t pid, nub_thread_t tid, const void *buf, size_t buf_len) DNB_EXPORT;
1177d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)nub_bool_t      DNBThreadGetRegisterValueByName (nub_process_t pid, nub_thread_t tid, uint32_t set, const char *name, DNBRegisterValue *value) DNB_EXPORT;
118c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)nub_bool_t      DNBThreadGetStopReason          (nub_process_t pid, nub_thread_t tid, DNBThreadStopInfo *stop_info) DNB_EXPORT;
1197d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)const char *    DNBThreadGetInfo                (nub_process_t pid, nub_thread_t tid) DNB_EXPORT;
1207d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)//----------------------------------------------------------------------
1217d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// Breakpoint functions
1227d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)//----------------------------------------------------------------------
1235d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)nub_break_t     DNBBreakpointSet                (nub_process_t pid, nub_addr_t addr, nub_size_t size, nub_bool_t hardware) DNB_EXPORT;
1245d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)nub_bool_t      DNBBreakpointClear              (nub_process_t pid, nub_break_t breakID) DNB_EXPORT;
1255d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)nub_ssize_t     DNBBreakpointGetHitCount        (nub_process_t pid, nub_break_t breakID) DNB_EXPORT;
1265d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)nub_ssize_t     DNBBreakpointGetIgnoreCount     (nub_process_t pid, nub_break_t breakID) DNB_EXPORT;
1275d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)nub_bool_t      DNBBreakpointSetIgnoreCount     (nub_process_t pid, nub_break_t breakID, nub_size_t ignore_count) DNB_EXPORT;
1280529e5d033099cbfc42635f6f6183833b09dff6eBen Murdochnub_bool_t      DNBBreakpointSetCallback        (nub_process_t pid, nub_break_t breakID, DNBCallbackBreakpointHit callback, void *baton) DNB_EXPORT;
1295c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuvoid            DNBBreakpointPrint              (nub_process_t pid, nub_break_t breakID) DNB_EXPORT;
1305c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
1315c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu//----------------------------------------------------------------------
1325c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Watchpoint functions
1335c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu//----------------------------------------------------------------------
1340529e5d033099cbfc42635f6f6183833b09dff6eBen Murdochnub_watch_t     DNBWatchpointSet                (nub_process_t pid, nub_addr_t addr, nub_size_t size, uint32_t watch_flags, nub_bool_t hardware) DNB_EXPORT;
135c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)nub_bool_t      DNBWatchpointClear              (nub_process_t pid, nub_watch_t watchID) DNB_EXPORT;
136c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)nub_ssize_t     DNBWatchpointGetHitCount        (nub_process_t pid, nub_watch_t watchID) DNB_EXPORT;
137c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)nub_ssize_t     DNBWatchpointGetIgnoreCount     (nub_process_t pid, nub_watch_t watchID) DNB_EXPORT;
138c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)nub_bool_t      DNBWatchpointSetIgnoreCount     (nub_process_t pid, nub_watch_t watchID, nub_size_t ignore_count) DNB_EXPORT;
139c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)nub_bool_t      DNBWatchpointSetCallback        (nub_process_t pid, nub_watch_t watchID, DNBCallbackBreakpointHit callback, void *baton) DNB_EXPORT;
140void            DNBWatchpointPrint              (nub_process_t pid, nub_watch_t watchID) DNB_EXPORT;
141uint32_t        DNBWatchpointGetNumSupportedHWP (nub_process_t pid) DNB_EXPORT;
142
143const DNBRegisterSetInfo *
144                DNBGetRegisterSetInfo           (nub_size_t *num_reg_sets) DNB_EXPORT;
145nub_bool_t      DNBGetRegisterInfoByName        (const char *reg_name, DNBRegisterInfo* info) DNB_EXPORT;
146
147//----------------------------------------------------------------------
148// Printf style formatting for printing values in the inferior memory
149// space and registers.
150//----------------------------------------------------------------------
151nub_size_t      DNBPrintf (nub_process_t pid, nub_thread_t tid, nub_addr_t addr, FILE *file, const char *format) DNB_EXPORT;
152
153//----------------------------------------------------------------------
154// Other static nub information calls.
155//----------------------------------------------------------------------
156const char *    DNBStateAsString (nub_state_t state) DNB_EXPORT;
157nub_bool_t      DNBResolveExecutablePath (const char *path, char *resolved_path, size_t resolved_path_size) DNB_EXPORT;
158
159#ifdef __cplusplus
160}
161#endif
162
163#endif
164