Needed to use namespace Interpreter to see Context, using LineReader instead of istream.
git-svn-id: svn://10.0.0.236/trunk@68337 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
9c590eb7bd
commit
2566b08bc8
@ -34,14 +34,15 @@
|
||||
#include "world.h"
|
||||
#include "debugger.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <ctype.h>
|
||||
#include <assert.h>
|
||||
|
||||
namespace JavaScript {
|
||||
namespace Debugger {
|
||||
|
||||
|
||||
using namespace Interpreter;
|
||||
|
||||
enum ShellCommand {
|
||||
ASSEMBLE,
|
||||
AMBIGUOUS,
|
||||
@ -191,7 +192,8 @@ registers, or set the value of a single register."},
|
||||
|
||||
static string lastLine("help\n");
|
||||
string line;
|
||||
|
||||
LineReader reader(mIn);
|
||||
|
||||
do {
|
||||
ICodeModule *iCode = cx->getICode();
|
||||
InstructionIterator pc = cx->getPC();
|
||||
@ -200,8 +202,7 @@ registers, or set the value of a single register."},
|
||||
printFormat (stdOut, "%04X", (pc - iCode->its_iCode->begin()));
|
||||
stdOut << "]> ";
|
||||
|
||||
if (std::getline(mIn, line).eof())
|
||||
std::exit(0);
|
||||
reader.readLine(line);
|
||||
|
||||
if (line.size() == 0)
|
||||
line = lastLine;
|
||||
|
||||
@ -34,14 +34,15 @@
|
||||
#include "world.h"
|
||||
#include "debugger.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <ctype.h>
|
||||
#include <assert.h>
|
||||
|
||||
namespace JavaScript {
|
||||
namespace Debugger {
|
||||
|
||||
|
||||
using namespace Interpreter;
|
||||
|
||||
enum ShellCommand {
|
||||
ASSEMBLE,
|
||||
AMBIGUOUS,
|
||||
@ -191,7 +192,8 @@ registers, or set the value of a single register."},
|
||||
|
||||
static string lastLine("help\n");
|
||||
string line;
|
||||
|
||||
LineReader reader(mIn);
|
||||
|
||||
do {
|
||||
ICodeModule *iCode = cx->getICode();
|
||||
InstructionIterator pc = cx->getPC();
|
||||
@ -200,8 +202,7 @@ registers, or set the value of a single register."},
|
||||
printFormat (stdOut, "%04X", (pc - iCode->its_iCode->begin()));
|
||||
stdOut << "]> ";
|
||||
|
||||
if (std::getline(mIn, line).eof())
|
||||
std::exit(0);
|
||||
reader.readLine(line);
|
||||
|
||||
if (line.size() == 0)
|
||||
line = lastLine;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user