gdb_monitor: use 'with_libc()'

This commit is contained in:
Christian Prochaska 2017-02-24 12:30:36 +01:00 committed by Christian Helmuth
parent 51515a598c
commit 9067768d25

View File

@ -40,5 +40,7 @@ void Libc::Component::construct(Libc::Env &env)
int argc = 3;
const char *argv[] = { "gdbserver", "/dev/terminal", "target", 0 };
gdbserver_main(argc, argv);
Libc::with_libc([&] () {
gdbserver_main(argc, argv);
});
}