{"id":21595913,"url":"https://github.com/anfedotoff/gdb-command","last_synced_at":"2025-08-02T13:41:43.523Z","repository":{"id":40645047,"uuid":"364334923","full_name":"anfedotoff/gdb-command","owner":"anfedotoff","description":"Library for manipulating gdb in batch mode","archived":false,"fork":false,"pushed_at":"2024-03-10T18:10:02.000Z","size":572,"stargazers_count":21,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-19T03:43:52.692Z","etag":null,"topics":["gdb","rust","security","testing"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anfedotoff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-04T17:28:34.000Z","updated_at":"2025-06-01T12:58:30.000Z","dependencies_parsed_at":"2024-02-07T21:41:04.030Z","dependency_job_id":"43121220-423d-484f-9b20-586c23cfd6b6","html_url":"https://github.com/anfedotoff/gdb-command","commit_stats":{"total_commits":66,"total_committers":5,"mean_commits":13.2,"dds":0.303030303030303,"last_synced_commit":"3ad9b72482d5e28d43a37ecc795b1c34a5a35a0f"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/anfedotoff/gdb-command","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anfedotoff%2Fgdb-command","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anfedotoff%2Fgdb-command/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anfedotoff%2Fgdb-command/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anfedotoff%2Fgdb-command/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anfedotoff","download_url":"https://codeload.github.com/anfedotoff/gdb-command/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anfedotoff%2Fgdb-command/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268400671,"owners_count":24244445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gdb","rust","security","testing"],"created_at":"2024-11-24T17:44:32.811Z","updated_at":"2025-08-02T13:41:43.456Z","avatar_url":"https://github.com/anfedotoff.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gdb-command\n\n[![CI](https://github.com/xcoldhandsx/gdb-command/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/xcoldhandsx/gdb-command/actions/workflows/main.yml)\n[![Crates.io](https://img.shields.io/crates/v/gdb-command)](https://crates.io/crates/gdb-command)\n[![Documentation](https://docs.rs/gdb-command/badge.svg)](https://docs.rs/gdb-command)\n\n`gdb-command` is a library providing API for manipulating gdb in batch mode. It supports:\n\n* Execution of target program (Local type).\n* Opening core of target program (Core type).\n* Attaching to remote process (Remote type).\n\n# Example\n\n```rust\nuse std::process::Command;\nuse std::thread;\nuse std::time::Duration;\nuse gdb_command::*;\n\nfn main () -\u003e error::Result\u003c()\u003e {\n    // Get stack trace from running program (stopped at crash)\n    let result = GdbCommand::new(\u0026ExecType::Local(\u0026[\"tests/bins/test_abort\", \"A\"])).r().bt().launch()?;\n\n    // Get stack trace from core\n    let result = GdbCommand::new(\n            \u0026ExecType::Core {target: \"tests/bins/test_canary\",\n                core: \"tests/bins/core.test_canary\"})\n        .bt().launch()?;\n\n    // Get info from remote attach to process\n    let mut child = Command::new(\"tests/bins/test_callstack_remote\")\n       .spawn()\n       .expect(\"failed to execute child\");\n\n    thread::sleep(Duration::from_millis(10));\n\n    // To run this test: echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope\n    let result = GdbCommand::new(\u0026ExecType::Remote(\u0026child.id().to_string()))\n        .bt()\n        .regs()\n        .disassembly()\n        .launch();\n    child.kill().unwrap();\n\n    Ok(())\n}\n\n```\n## Installation\n\n```toml\n[dependencies]\ngdb-command = \"0.7.8\"\n```\n\n## License\n\nThis crate is licensed under the [MIT license].\n\n[MIT license]: LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanfedotoff%2Fgdb-command","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanfedotoff%2Fgdb-command","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanfedotoff%2Fgdb-command/lists"}