lldb.load: lldb.load

Description Usage Arguments Details Value See Also Examples

View source: R/raw.r

Description

The initializer that creates a "handle" for lldb.

Usage

1
lldb.load(args, quiet = FALSE, setdefault = TRUE)

Arguments

args

process name

setdefault

if TRUE, then the default handle will be updated with the return.

Details

This function will automatically update the default handle. If

Value

An object of class lldb_handle; an external pointer.

See Also

handles, lldb.exit

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
library(lldbR)

lldb.load("/path/to/binary")
handle1 <- get.default.handle()

handle2 <- lldb.load("/path/to/another/binary", setdefault=FALSE)

identical(handle1, get.default.handle()) # TRUE
identical(handle2, get.default.handle()) # FALSE
set.default.handle(handle2)
identical(handle2, get.default.handle()) # TRUE

## End(Not run)

heckendorfc/lldbR documentation built on March 16, 2020, 12:24 a.m.