Stackdb
Stackdb is a stackable, multi-target and -level source debugger and memory forensics library.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
debuginfo_test.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 ##
3 ## Copyright (c) 2013 The University of Utah
4 ##
5 ## This program is free software; you can redistribute it and/or
6 ## modify it under the terms of the GNU General Public License as
7 ## published by the Free Software Foundation; either version 2 of
8 ## the License, or (at your option) any later version.
9 ##
10 ## This program is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ## GNU General Public License for more details.
14 ##
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program; if not, write to the Free Software
17 ## Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
18 ##
19 
20 import logging
21 logging.basicConfig(level=logging.INFO)
22 logging.getLogger('suds.client').setLevel(logging.DEBUG)
23 logging.getLogger('suds.transport').setLevel(logging.DEBUG)
24 logging.getLogger('suds.xsd.schema').setLevel(logging.DEBUG)
25 logging.getLogger('suds.wsdl').setLevel(logging.DEBUG)
26 
27 from suds.client import Client
28 url = 'http://anathema.flux.utah.edu/wsdl/debuginfo.wsdl.local'
29 client = Client(url,cache=None)
30 
31 opts = client.factory.create('DebugFileOptsT')
32 opts.symbolRefDepth = 8
33 opts.scopeRefDepth = 8
34 opts.doMultiRef = False
35 opts.doManualRef = False
36 opts.debugfileRefDepth = 8
37 
38 result = client.service.LookupSymbol('/usr/lib/debug/bin/yes.debug','main.argc',opts)