aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorPhil Muldoon <pmuldoon@redhat.com>2010-02-26 09:08:10 +0000
committerPhil Muldoon <pmuldoon@redhat.com>2010-02-26 09:08:10 +0000
commit5107b1496b5da1fe73b8217c7b29083c2eb4642e (patch)
tree7662debeeed886e881d8ffe88a3f389cbfb296ab /gdb/doc
parent624f1a656217419dee7160d4e58054df712d9ade (diff)
downloadgdb-5107b1496b5da1fe73b8217c7b29083c2eb4642e.zip
gdb-5107b1496b5da1fe73b8217c7b29083c2eb4642e.tar.gz
gdb-5107b1496b5da1fe73b8217c7b29083c2eb4642e.tar.bz2
2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
Tom Tromey <tromey@redhat.com> * python/py-type.c (typy_lookup_typename): Add in block argument. If provided restrict lookup to specified blocks. (gdbpy_lookup_type): Likewise. (typy_lookup_type): Likewise. 2010-02-26 Phil Muldoon <pmuldoon@redhat.com> Tom Tromey <tromey@redhat.com> * gdb.texinfo (Types In Python): Describe block argument in template_argument and gdb.lookup_type.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog6
-rw-r--r--gdb/doc/gdb.texinfo8
2 files changed, 12 insertions, 2 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 9ae3d1f..b92f634 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,9 @@
+2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
+ Tom Tromey <tromey@redhat.com>
+
+ * gdb.texinfo (Types In Python): Describe block argument in
+ template_argument and gdb.lookup_type.
+
2010-02-24 Tom Tromey <tromey@redhat.com>
* gdb.texinfo (Cygwin Native): Fix typo.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 82742d4..f6105b7 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -19869,6 +19869,9 @@ module:
This function looks up a type by name. @var{name} is the name of the
type to look up. It must be a string.
+If @var{block} is given, then @var{name} is looked up in that scope.
+Otherwise, it is searched for globally.
+
Ordinarily, this function will return an instance of @code{gdb.Type}.
If the named type cannot be found, it will throw an exception.
@end defun
@@ -19991,7 +19994,7 @@ If the type does not have a target, this method will throw an
exception.
@end defmethod
-@defmethod Type template_argument n
+@defmethod Type template_argument n [block]
If this @code{gdb.Type} is an instantiation of a template, this will
return a new @code{gdb.Type} which represents the type of the
@var{n}th template argument.
@@ -19999,7 +20002,8 @@ return a new @code{gdb.Type} which represents the type of the
If this @code{gdb.Type} is not a template type, this will throw an
exception. Ordinarily, only C@t{++} code will have template types.
-@var{name} is searched for globally.
+If @var{block} is given, then @var{name} is looked up in that scope.
+Otherwise, it is searched for globally.
@end defmethod
@end table