Skip to content

Commit

Permalink
Merge pull request #23 from dotnwat/gdb-plugin
Browse files Browse the repository at this point in the history
Plugin for GDB
  • Loading branch information
dotnwat committed Nov 5, 2020
2 parents 9e922f8 + 153e683 commit 92b504f
Show file tree
Hide file tree
Showing 3 changed files with 1,474 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/v/redpanda/application.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,7 @@ class application {
// run these first on destruction
deferred_actions _deferred;
};

namespace debug {
extern application* app;
}
5 changes: 5 additions & 0 deletions src/v/redpanda/main.cc
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#include "redpanda/application.h"
#include "syschecks/syschecks.h"

namespace debug {
application* app;
}

int main(int argc, char** argv, char** /*env*/) {
// must be the first thing called
syschecks::initialize_intrinsics();
application app;
debug::app = &app;
return app.run(argc, argv);
}
Loading

0 comments on commit 92b504f

Please sign in to comment.