資源簡介
OMNET++5.4.1(Part2) for Linux
解壓后,與Part1合并,再使用。由于上傳文件大小限制,分成了2個包。
代碼片段和文件信息
import?sys
import?os
import?gdb
import?tempfile
#?set?unwind?signal?so?an?exeption?caused?by?the?pretty?printer?will?not?stop?the?debugger
gdb.execute(‘set?unwindonsignal?on‘)
#?skip?standard?C++?headers?when?stepping
global?skippedstdcxxheaders
skippedstdcxxheaders?=?False
def?skipAllIn(root):
????import?os
????for?root?dirs?files?in?os.walk(root?topdown=False):
????????for?name?in?files:
????????????path?=?os.path.join(root?name)
????????????gdb.execute(‘skip?file?%s‘?%?path?to_string=True)
gdb.execute(‘source?%s‘?%?os.path.join(os.path.dirname(__file__)?‘gdbinit‘))
#?add?the?pretty?printer?classes?to?the?system?class?path
sys.path.insert(0?os.path.dirname(os.path.abspath(__file__)))
#?register?libstdc++?pretty?printers
if?‘register_libstdcxx_printers‘?in?dir():
????print(‘libstdc++?pretty?printers?already?initialized.‘)
else:
????from?libstdcxx.v6.printers?import?register_libstdcxx_printers
????register_libstdcxx_printers(None)
????print(‘Pretty?printers?initialized:?libstdc++‘)
#?register?OMNeT++-specific?pretty?printers
if?‘register_omnetpp_printers‘?in?dir():
????print(‘omnetpp?pretty?printers?already?initialized.‘)
else:
????from?omnetpp.printers?import?register_omnetpp_printers
????register_omnetpp_printers(None)
????print(‘Pretty?printers?initialized:?omnetpp‘)
#?source?the?temporary?init?file?written?out?by?the?IDE?(if?exists)
#?this?file?is?used?to?include?additional?project-specific?init?scripts
initfile?=?tempfile.gettempdir()?+?‘/gdbinit.tmp‘
if?os.path.isfile(initfile):
????exec(open(initfile).read())
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-06-29?09:35??include\
?????文件????????4294??2018-06-29?09:35??include\omnetpp.h
?????目錄???????????0??2018-06-29?09:35??include\omnetpp\
?????文件????????5938??2018-06-29?09:35??include\omnetpp\cdefaultlist.h
?????文件????????5653??2018-06-29?09:35??include\omnetpp\cpsquare.h
?????文件???????16608??2018-06-29?09:35??include\omnetpp\chistogram.h
?????文件????????3228??2018-06-29?09:35??include\omnetpp\chasher.h
?????文件????????7735??2018-06-29?09:35??include\omnetpp\cscheduler.h
?????文件???????14890??2018-06-29?09:35??include\omnetpp\chistogramstrategy.h
?????文件????????3774??2018-06-29?09:35??include\omnetpp\cregistrationlist.h
?????文件???????23403??2018-06-29?09:35??include\omnetpp\cmessage.h
?????文件???????12553??2018-06-29?09:35??include\omnetpp\carray.h
?????文件???????16510??2018-06-29?09:35??include\omnetpp\clog.h
?????文件????????2675??2018-06-29?09:35??include\omnetpp\clcg32.h
?????文件???????21969??2018-06-29?09:35??include\omnetpp\cmodelchange.h
?????文件????????5832??2018-06-29?09:35??include\omnetpp\cresultrecorder.h
?????文件???????12908??2018-06-29?09:35??include\omnetpp\envirext.h
?????文件????????7188??2018-06-29?09:35??include\omnetpp\cex
?????文件????????4901??2018-06-29?09:35??include\omnetpp\ccoroutine.h
?????文件????????5490??2018-06-29?09:35??include\omnetpp\ceventheap.h
?????文件????????4536??2018-06-29?09:35??include\omnetpp\cenum.h
?????文件????????7825??2018-06-29?09:35??include\omnetpp\clifecyclelistener.h
?????文件???????14415??2018-06-29?09:35??include\omnetpp\cchannel.h
?????文件???????18074??2018-06-29?09:35??include\omnetpp\cpar.h
?????文件???????10023??2018-06-29?09:35??include\omnetpp\cdisplaystring.h
?????文件????????3883??2018-06-29?09:35??include\omnetpp\cnamedob
?????文件??????147798??2018-06-29?09:35??include\omnetpp\ChangeLog
?????文件????????4437??2018-06-29?09:35??include\omnetpp\cdelaychannel.h
?????文件????????6031??2018-06-29?09:35??include\omnetpp\cnedmathfunction.h
?????文件???????10808??2018-06-29?09:35??include\omnetpp\cqueue.h
?????文件????????5215??2018-06-29?09:35??include\omnetpp\opp_string.h
............此處省略1430個文件信息
評論
共有 條評論