diff options
author | Chris Lattner <sabre@nondot.org> | 2004-11-19 19:45:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-11-19 19:45:44 +0000 |
commit | e404d724eab9158e161b9ab8c8a461761466fb4b (patch) | |
tree | 7c0d043e4bb24e235d26efdc5c3630cc181c739f /llvm/tools/llvm-db | |
parent | 8bb29bf3f6db29443a9cc776637931b00fb982f3 (diff) | |
download | bcm5719-llvm-e404d724eab9158e161b9ab8c8a461761466fb4b.tar.gz bcm5719-llvm-e404d724eab9158e161b9ab8c8a461761466fb4b.zip |
Fix a bug that caused stuff like this:
main at ./eh.cpp:1414 -> printf("a\n");
to be printed, instead of this:
main at ./eh.cpp:14
14 -> printf("a\n");
llvm-svn: 18005
Diffstat (limited to 'llvm/tools/llvm-db')
-rw-r--r-- | llvm/tools/llvm-db/Commands.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-db/Commands.cpp b/llvm/tools/llvm-db/Commands.cpp index 8e3125eaff0..de7fdf604b7 100644 --- a/llvm/tools/llvm-db/Commands.cpp +++ b/llvm/tools/llvm-db/Commands.cpp @@ -119,7 +119,8 @@ void CLIDebugger::printProgramLocation(bool PrintLocation) { CurrentFile = &FileDesc->getSourceText(); std::cout << " at " << CurrentFile->getFilename() << ":" << LineNo; - if (ColNo) std::cout << ":" << ColNo << "\n"; + if (ColNo) std::cout << ":" << ColNo; + std::cout << "\n"; } if (printSourceLine(LineNo)) |