Skip to content

Commit

Permalink
#664 Update the Linux debugger launch scripts to new API
Browse files Browse the repository at this point in the history
  • Loading branch information
Rupert Nash committed Apr 2, 2014
1 parent a616daa commit 637548d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 15 deletions.
7 changes: 0 additions & 7 deletions Code/debug/linux/LinuxDebugger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@ namespace hemelb
return debugLinuxDir + "/launchGdbs.sh";
}

const std::string LinuxDebugger::GetPlatformGdbScript(void) const {
std::string include (__FILE__);
std::string debugLinuxDir = include.substr(0, include.rfind('/'));

return debugLinuxDir + "/resume.gdb";
}

Debugger* PlatformDebuggerFactory(const char * const executable, const net::MpiCommunicator& comm) {
return new LinuxDebugger(executable, comm);
}
Expand Down
1 change: 0 additions & 1 deletion Code/debug/linux/LinuxDebugger.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ namespace hemelb
// Platform specific getters
const std::string GetPlatformInterpreter(void) const;
const std::string GetPlatformScript(void) const;
const std::string GetPlatformGdbScript(void) const;

// C'tor...
LinuxDebugger(const char* const executable, const net::MpiCommunicator& comm);
Expand Down
6 changes: 3 additions & 3 deletions Code/debug/linux/launchGnomeTerminal.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash

debuggerCommandFile=$1
DIR=$(dirname "$0")
debuggerCommandFile=$DIR/resume.gdb
binary=$2
debugger="gdb -q -x $debuggerCommandFile $binary"

shift 2
shift
# Remove the first to params.
# Positional params now hold the process ids we
# want to attach to.
Expand Down
8 changes: 4 additions & 4 deletions Code/debug/linux/launchKonsole.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash

debuggerCommandFile=$1
binary=$2
DIR=$(dirname "$0")
debuggerCommandFile=$DIR/resume.gdb
binary=$1
debugger="gdb -q -x $debuggerCommandFile $binary"

shift 2
shift
# Remove the first to params.
# Positional params now hold the process ids we
# want to attach to.
Expand Down

0 comments on commit 637548d

Please sign in to comment.