Skip to content
Snippets Groups Projects
Commit e607eac1 authored by Dor Laor's avatar Dor Laor
Browse files

Merge branch 'master' of github.com:cloudius-systems/osv

* 'master' of github.com:cloudius-systems/osv:
  gdb: pretty printers for libstdc++
  sched: start the reaper thread
  printf: reduce stack usage
parents 89d125ee c7d17b59
No related branches found
No related tags found
No related merge requests found
......@@ -445,6 +445,7 @@ private:
detached_thread::reaper::reaper()
: _mtx{}, _zombies{}, _thread([=] { reap(); })
{
_thread.start();
}
void detached_thread::reaper::reap()
......
......@@ -9,7 +9,9 @@
#include <math.h>
#include <float.h>
#define NL_ARGMAX _POSIX_ARG_MAX
// FIXME: _POSIX_ARG_MAX is 4096, this causes a stack overflow
//#define NL_ARGMAX _POSIX_ARG_MAX
#define NL_ARGMAX 20
/* Some useful macros */
......
......@@ -8,7 +8,9 @@
#include <wctype.h>
#include <inttypes.h>
#define NL_ARGMAX _POSIX_ARG_MAX
// FIXME: _POSIX_ARG_MAX is 4096, this causes a stack overflow
//#define NL_ARGMAX _POSIX_ARG_MAX
#define NL_ARGMAX 20
/* Convenient bit representation for modifier flags, which all fall
* within 31 codepoints of the space character. */
......
......@@ -5,6 +5,7 @@ import re
import os, os.path
import struct
import json
from glob import glob
build_dir = os.path.dirname(gdb.current_objfile().filename)
external = build_dir + '/../../external'
......@@ -307,6 +308,13 @@ def continue_handler(event):
gdb.events.cont.connect(continue_handler)
def setup_libstdcxx():
gcc = external + '/gcc.bin'
sys.path += [gcc + '/usr/share/gdb/auto-load/usr/lib64',
glob(gcc + '/usr/share/gcc-*/python')[0],
]
main = glob(gcc + '/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.*.py')[0]
execfile(main)
osv()
osv_heap()
......@@ -315,4 +323,6 @@ osv_info()
osv_info_threads()
osv_thread()
osv_thread_apply()
osv_thread_apply_all()
\ No newline at end of file
osv_thread_apply_all()
setup_libstdcxx()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment