Skip to content

Commit

Permalink
support timeout for casr-gdb
Browse files Browse the repository at this point in the history
  • Loading branch information
hkctkuy authored and hkctkuy committed Aug 14, 2023
1 parent 54e49c4 commit e712b54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion casr/src/bin/casr-gdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ fn main() -> Result<()> {

// TODO: timeout handle
// Get timeout
let _timeout = if let Some(timeout) = matches.get_one::<u64>("timeout") {
let timeout = if let Some(timeout) = matches.get_one::<u64>("timeout") {
*timeout
} else {
0
Expand Down Expand Up @@ -184,6 +184,7 @@ fn main() -> Result<()> {
.siginfo()
.mappings()
.regs()
.timeout(timeout)
// We need 2 disassembles: one for severity analysis
// and another for the report.
.mem("$pc", 64)
Expand Down

0 comments on commit e712b54

Please sign in to comment.