lubgr / hlgdb Goto Github PK
View Code? Open in Web Editor NEWHighlight source code in gdb
License: MIT License
Highlight source code in gdb
License: MIT License
Hello! I'm callmekohei
!
Thank you for your useful code!
ColorNext can not put string value.
like this ...
class ColorNext(gdb.Command):
"""Do the same as the standard 'next' command, but colorize the output."""
def __init__(self):
gdb.Command.__init__(self \
, name = 'n' \
, command_class = gdb.COMMAND_USER \
, completer_class = gdb.COMPLETE_NONE \
, prefix = True)
def invoke(self, arg, from_tty):
output = gdb.execute(command='next',from_tty=False, to_string=True)
print(output is None)
print(output == '')
result
(gdb) n
6 n = 2;
False
True
(gdb) n
False
False
$ gdb --version
GNU gdb (GDB) 8.0.1
tmp$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.13.2
BuildVersion: 17C88
$ python2 --version
Python 2.7.14
/// gdb use
/usr/local/opt/python/bin/python2.7
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.