• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-armeabi-2013.11/share/doc/arm-arm-none-eabi/html/gdb/
1<html lang="en">
2<head>
3<title>Python API - Debugging with GDB</title>
4<meta http-equiv="Content-Type" content="text/html">
5<meta name="description" content="Debugging with GDB">
6<meta name="generator" content="makeinfo 4.13">
7<link title="Top" rel="start" href="index.html#Top">
8<link rel="up" href="Python.html#Python" title="Python">
9<link rel="prev" href="Python-Commands.html#Python-Commands" title="Python Commands">
10<link rel="next" href="Python-Auto_002dloading.html#Python-Auto_002dloading" title="Python Auto-loading">
11<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
12<!--
13Copyright (C) 1988-2013 Free Software Foundation, Inc.
14
15Permission is granted to copy, distribute and/or modify this document
16under the terms of the GNU Free Documentation License, Version 1.3 or
17any later version published by the Free Software Foundation; with the
18Invariant Sections being ``Free Software'' and ``Free Software Needs
19Free Documentation'', with the Front-Cover Texts being ``A GNU Manual,''
20and with the Back-Cover Texts as in (a) below.
21
22(a) The FSF's Back-Cover Text is: ``You are free to copy and modify
23this GNU Manual.  Buying copies from GNU Press supports the FSF in
24developing GNU and promoting software freedom.''
25-->
26<meta http-equiv="Content-Style-Type" content="text/css">
27<style type="text/css"><!--
28  pre.display { font-family:inherit }
29  pre.format  { font-family:inherit }
30  pre.smalldisplay { font-family:inherit; font-size:smaller }
31  pre.smallformat  { font-family:inherit; font-size:smaller }
32  pre.smallexample { font-size:smaller }
33  pre.smalllisp    { font-size:smaller }
34  span.sc    { font-variant:small-caps }
35  span.roman { font-family:serif; font-weight:normal; } 
36  span.sansserif { font-family:sans-serif; font-weight:normal; } 
37--></style>
38<link rel="stylesheet" type="text/css" href="../cs.css">
39</head>
40<body>
41<div class="node">
42<a name="Python-API"></a>
43<p>
44Next:&nbsp;<a rel="next" accesskey="n" href="Python-Auto_002dloading.html#Python-Auto_002dloading">Python Auto-loading</a>,
45Previous:&nbsp;<a rel="previous" accesskey="p" href="Python-Commands.html#Python-Commands">Python Commands</a>,
46Up:&nbsp;<a rel="up" accesskey="u" href="Python.html#Python">Python</a>
47<hr>
48</div>
49
50<h4 class="subsection">23.2.2 Python API</h4>
51
52<p><a name="index-python-api-1727"></a><a name="index-programming-in-python-1728"></a>
53You can get quick online help for <span class="sc">gdb</span>'s Python API by issuing
54the command <kbd>python&nbsp;help&nbsp;(gdb)</kbd><!-- /@w -->.
55
56   <p>Functions and methods which have two or more optional arguments allow
57them to be specified using keyword syntax.  This allows passing some
58optional arguments while skipping others.  Example:
59<code>gdb.some_function&nbsp;('foo',&nbsp;bar&nbsp;=&nbsp;1,&nbsp;baz&nbsp;=&nbsp;2)</code><!-- /@w -->.
60
61<ul class="menu">
62<li><a accesskey="1" href="Basic-Python.html#Basic-Python">Basic Python</a>:                 Basic Python Functions. 
63<li><a accesskey="2" href="Exception-Handling.html#Exception-Handling">Exception Handling</a>:           How Python exceptions are translated. 
64<li><a accesskey="3" href="Values-From-Inferior.html#Values-From-Inferior">Values From Inferior</a>:         Python representation of values. 
65<li><a accesskey="4" href="Types-In-Python.html#Types-In-Python">Types In Python</a>:              Python representation of types. 
66<li><a accesskey="5" href="Pretty-Printing-API.html#Pretty-Printing-API">Pretty Printing API</a>:          Pretty-printing values. 
67<li><a accesskey="6" href="Selecting-Pretty_002dPrinters.html#Selecting-Pretty_002dPrinters">Selecting Pretty-Printers</a>:    How GDB chooses a pretty-printer. 
68<li><a accesskey="7" href="Writing-a-Pretty_002dPrinter.html#Writing-a-Pretty_002dPrinter">Writing a Pretty-Printer</a>:     Writing a Pretty-Printer. 
69<li><a accesskey="8" href="Type-Printing-API.html#Type-Printing-API">Type Printing API</a>: 		Pretty-printing types. 
70<li><a accesskey="9" href="Frame-Filter-API.html#Frame-Filter-API">Frame Filter API</a>:             Filtering Frames. 
71<li><a href="Frame-Decorator-API.html#Frame-Decorator-API">Frame Decorator API</a>:          Decorating Frames. 
72<li><a href="Writing-a-Frame-Filter.html#Writing-a-Frame-Filter">Writing a Frame Filter</a>:       Writing a Frame Filter. 
73<li><a href="Inferiors-In-Python.html#Inferiors-In-Python">Inferiors In Python</a>:          Python representation of inferiors (processes)
74<li><a href="Events-In-Python.html#Events-In-Python">Events In Python</a>:             Listening for events from <span class="sc">gdb</span>. 
75<li><a href="Threads-In-Python.html#Threads-In-Python">Threads In Python</a>:            Accessing inferior threads from Python. 
76<li><a href="Commands-In-Python.html#Commands-In-Python">Commands In Python</a>:           Implementing new commands in Python. 
77<li><a href="Parameters-In-Python.html#Parameters-In-Python">Parameters In Python</a>:         Adding new <span class="sc">gdb</span> parameters. 
78<li><a href="Functions-In-Python.html#Functions-In-Python">Functions In Python</a>:          Writing new convenience functions. 
79<li><a href="Progspaces-In-Python.html#Progspaces-In-Python">Progspaces In Python</a>:         Program spaces. 
80<li><a href="Objfiles-In-Python.html#Objfiles-In-Python">Objfiles In Python</a>:           Object files. 
81<li><a href="Frames-In-Python.html#Frames-In-Python">Frames In Python</a>:             Accessing inferior stack frames from Python. 
82<li><a href="Blocks-In-Python.html#Blocks-In-Python">Blocks In Python</a>:             Accessing blocks from Python. 
83<li><a href="Symbols-In-Python.html#Symbols-In-Python">Symbols In Python</a>:            Python representation of symbols. 
84<li><a href="Symbol-Tables-In-Python.html#Symbol-Tables-In-Python">Symbol Tables In Python</a>:      Python representation of symbol tables. 
85<li><a href="Breakpoints-In-Python.html#Breakpoints-In-Python">Breakpoints In Python</a>:        Manipulating breakpoints using Python. 
86<li><a href="Finish-Breakpoints-in-Python.html#Finish-Breakpoints-in-Python">Finish Breakpoints in Python</a>:  Setting Breakpoints on function return
87                                using Python. 
88<li><a href="Lazy-Strings-In-Python.html#Lazy-Strings-In-Python">Lazy Strings In Python</a>:       Python representation of lazy strings. 
89<li><a href="Architectures-In-Python.html#Architectures-In-Python">Architectures In Python</a>:      Python representation of architectures. 
90</ul>
91
92   </body></html>
93
94