Comments (5)
Yikes that's a lot of escape characters. I'll take a look when I get the time and get back to you. Unfortunately it may be a while due to the holidays and travel, etc. Thanks for filing the issue.
from pygdbmi.
It's OK. Glad to help. Happy holidays :)
from pygdbmi.
I believe I fixed this in 0.8.1.0, let me know what you think.
from pygdbmi.
alright I've done some tests and here's the result:
commands for test:
python print "{\"a\":1}"
python print "{'id':1, 'cd':{'a':1, 'c':'b'}}"
python print '{"one" : "1", "two" : "2", "three" : "3"}'
for the first command, it seems that gdb or pygdbmi still messed on parse python escape chars
the second command is illegal json, but works fine
the third command leads to a weird result, seems gdb or pygdbmi tends to parse the \ again
here are also some tests on escape chars:
python print '\\//\/'
python print '\"\'\\'
from pygdbmi.
btw I solved my own problem using the third command by
decoded_string = bytes(myString, "utf-8").decode("unicode_escape")
Thank you
just want to told you the crazy escape chars I found
from pygdbmi.
Related Issues (20)
- pygdbmi is now packaged for Fedora HOT 1
- Support for Intel's MPI debugging HOT 2
- Add ability to wait (with timeout) for the (gdb) "prompt".
- Slow time response with pipes (Windows) HOT 5
- IoManager._get_responses_windows self.stdout.readline() stuck HOT 2
- Thank you! I ported your parser to Rust HOT 5
- Incompatible behavior in GDB command line and pygdbmi HOT 2
- IoManager._get_responses_windows mangles token when reading from stdout
- Escapes in MI error records are mangled HOT 3
- Payload for textual messages not unescaped
- get_gdb_response doesn't parse tab char correctly HOT 6
- String parsing regression with v0.10.0.2 HOT 6
- GdbController cannot recognize window short path of gdb executable HOT 1
- "GdbTimeoutError" during '-symbol-info-variables' command HOT 1
- README.md - AttributeError: 'GdbController' object has no attribute 'get_subprocess_cmd' HOT 1
- Consider using a real language parser to parse MI output HOT 1
- Some responses dropped while debugging ARM microcontroller
- -break-insert * address not supported HOT 1
- Documentation published to https://cs01.github.io/pygdbmi/ is out of date
- Missing send_signal_to_gdb() and interrupt_gdb() of GdbController
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pygdbmi.