diff options
author | Andrew Morrow <acm@mongodb.com> | 2019-01-31 14:11:26 -0500 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2019-01-31 15:50:38 -0500 |
commit | a0aef148ed113bf66ca4c8ab37864455524be2a2 (patch) | |
tree | b2b4a66d6b5ec60ac50e3d7b41fc764dd127770d | |
parent | 8d23154ed3e086213c5bd59b3e2fcba96a3cca41 (diff) | |
download | mongo-a0aef148ed113bf66ca4c8ab37864455524be2a2.tar.gz |
SERVER-39098 Fix escaping in javascript_stack GDB extension
-rw-r--r-- | buildscripts/gdb/mongo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildscripts/gdb/mongo.py b/buildscripts/gdb/mongo.py index 8e31afbc91b..83841075f7f 100644 --- a/buildscripts/gdb/mongo.py +++ b/buildscripts/gdb/mongo.py @@ -524,7 +524,7 @@ class MongoDBJavaScriptStack(gdb.Command): if gdb.parse_and_eval( 'mongo::mozjs::kCurrentScope && mongo::mozjs::kCurrentScope->_inOp'): gdb.execute('thread', from_tty=False, to_string=False) - gdb.execute('printf "%s\n", ' + + gdb.execute('printf "%s\\n", ' + 'mongo::mozjs::kCurrentScope->buildStackString().c_str()', from_tty=False, to_string=False) except gdb.error as err: |