Skip to content

Commit 926cd0d

Browse files
committed
Deprecated scripts
1 parent 3977929 commit 926cd0d

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

tools/cbdebug.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#! /bin/bash
2+
# Unused
23
port=${1:-20600}
34
gdb-multiarch \
45
-ex "source /opt/codebang/bin/cbextension.py" \

tools/cbextension.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
2-
'''GDB Extension
3-
'''
2+
'''Unused gdb Extension'''
3+
44
import gdb
55
import threading
66

@@ -87,6 +87,8 @@ def _runner():
8787

8888

8989
def cb_prog_cmd(pk, cmd, arg='', thread=None, frame=None):
90+
'''It doesn't work to run mi command by gdb.execute'''
91+
9092
# -stack-list-variables --thread 1 --frame 0 --all-values
9193
# ^done,variables=[{name="x",value="11"},{name="s",value="{a = 1, b = 2}"}]
9294

@@ -247,9 +249,12 @@ def cb_cont_handler(event):
247249

248250
def cb_notify_event(args):
249251
data = urlencode(args)
250-
r = urlopen(cb_notify_url, data.encode('ascii'))
251-
if r.status == 200:
252-
return r.read().decode('utf-8')
252+
try:
253+
r = urlopen(cb_notify_url, data.encode('ascii'))
254+
if r.status == 200:
255+
return r.read().decode('utf-8')
256+
except Exception:
257+
pass
253258

254259

255260
#

0 commit comments

Comments
 (0)