From e81c2636cee72af718e99fd98006fa9277de2a65 Mon Sep 17 00:00:00 2001 From: David Timber Date: Thu, 3 Sep 2020 11:38:09 +0930 Subject: * Impl: CNCP * [htbt] Use randomly generated number for SOLICIT request * Die on pth sync funcs only if debug build * Fix wrong use of pth_mutex_acquire(): use with event can result in failure * [htbt] Take "blackhole" fd as param * Remove unused include to reduce compile time * [htbt] Add const macro values for random msg_id gen * [resolv] Make prne_resolv_prm_t reusable * [resolv] Fix mem leak in proone-resolv * [resolv] Sanity check before returning prm so users don't have to worry about SEGFAULT * Add txtrec-*.sh for CNCP --- .vscode/launch.json | 24 ++++++++++++++++++++++-- .vscode/tasks.json | 5 +++++ 2 files changed, 27 insertions(+), 2 deletions(-) (limited to '.vscode') diff --git a/.vscode/launch.json b/.vscode/launch.json index d3bf892..b80310d 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -9,7 +9,7 @@ "type": "cppdbg", "request": "launch", "program": "${workspaceFolder}/src/proone-htbthost", - "args": ["test", "--no-verify"], + "args": [ "test", "--no-verify" ], "stopAtEntry": false, "cwd": "${workspaceFolder}", "environment": [], @@ -20,10 +20,30 @@ "description": "Follow parent fork", "text": "set follow-fork-mode parent", "ignoreFailures": false + }, + { + "description": "Ignore SIGPIPE", + "text": "handle SIGPIPE nostop print", + "ignoreFailures": false } ], "preLaunchTask": "Build htbthost", "miDebuggerPath": "/usr/bin/gdb" + }, + { + "name": "resolv", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/src/proone-resolv", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [], + "preLaunchTask": "Build resolv", + "miDebuggerPath": "/usr/bin/gdb" } ] -} \ No newline at end of file +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json index b0142ea..00c792a 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -29,6 +29,11 @@ "label": "Build htbthost", "type": "shell", "command": "make -C ./src proone-htbthost" + }, + { + "label": "Build resolv", + "type": "shell", + "command": "make -C ./src proone-resolv" } ] } -- cgit