Permalink
Browse files

Merge branch 'dev' of github.com:dennisferron/Iocaste into dev

  • Loading branch information...
2 parents 188208b + 42b13d5 commit 9e416304de6b6a0582df4a7c9217c575352c294e @dennisferron committed Jun 9, 2012
Showing with 93 additions and 0 deletions.
  1. +46 −0 Debugger/Debugger.cbp
  2. +41 −0 Debugger/Source/main.cpp
  3. +6 −0 Debugger/gdb-shim.sh
View
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+ <FileVersion major="1" minor="6" />
+ <Project>
+ <Option title="Debugger" />
+ <Option pch_mode="2" />
+ <Option compiler="gcc" />
+ <Build>
+ <Target title="Debug">
+ <Option output="bin/Debug/Debugger" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj/Debug/" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-g" />
+ </Compiler>
+ </Target>
+ <Target title="Release">
+ <Option output="bin/Release/Debugger" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj/Release/" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-O2" />
+ </Compiler>
+ <Linker>
+ <Add option="-s" />
+ </Linker>
+ </Target>
+ </Build>
+ <Compiler>
+ <Add option="-Wall" />
+ <Add option="-fexceptions" />
+ <Add directory="../../Common/process" />
+ <Add directory="../../Common/boost_1_49_0" />
+ </Compiler>
+ <Linker>
+ <Add library="../../Common/boost_1_49_0/bin.v2/libs/system/build/gcc-4.6/release/link-static/threading-multi/libboost_system.a" />
+ </Linker>
+ <Unit filename="Source/main.cpp" />
+ <Extensions>
+ <code_completion />
+ <debugger />
+ </Extensions>
+ </Project>
+</CodeBlocks_project_file>
@@ -0,0 +1,41 @@
+//
+// Boost.Process
+// ~~~~~~~~~~~~~
+//
+// Copyright (c) 2006, 2007 Julio M. Merino Vidal
+// Copyright (c) 2008 Boris Schaeling
+//
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+
+#include <boost/process.hpp>
+#include <string>
+#include <vector>
+#include <iostream>
+
+namespace bp = ::boost::process;
+
+bp::child start_child()
+{
+ std::string exec = "ls";
+
+ std::vector<std::string> args;
+ args.push_back("ls");
+ args.push_back("~");
+
+ bp::context ctx;
+ ctx.stdout_behavior = bp::capture_stream();
+
+ return bp::launch(exec, args, ctx);
+}
+
+int main()
+{
+ bp::child c = start_child();
+
+ bp::pistream &is = c.get_stdout();
+ std::string line;
+ while (std::getline(is, line))
+ std::cout << line << std::endl;
+}
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+OPTIONS="$@"
+
+echo "`date` + `whoami` + gdb test" >> gdb-output.log
+exec /usr/bin/gdb "$@"

0 comments on commit 9e41630

Please sign in to comment.