mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-31 09:58:33 +08:00
* python/lib/gdb/types.py (deep_items): Rename from deepitems.
* NEWS: Mention deep_items.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2011-10-28 Paul Koning <paul_koning@dell.com>
|
||||||
|
|
||||||
|
* python/lib/gdb/types.py (deep_items): Rename from deepitems.
|
||||||
|
* NEWS: Mention deep_items.
|
||||||
|
|
||||||
2011-10-28 Alen Skondro <askondro@gmail.com>
|
2011-10-28 Alen Skondro <askondro@gmail.com>
|
||||||
|
|
||||||
* ser-tcp.c [USE_WIN32API] (ETIMEOUT): Don't define if already
|
* ser-tcp.c [USE_WIN32API] (ETIMEOUT): Don't define if already
|
||||||
|
6
gdb/NEWS
6
gdb/NEWS
@ -56,6 +56,12 @@
|
|||||||
** A new event "gdb.new_objfile" has been added, triggered by loading a
|
** A new event "gdb.new_objfile" has been added, triggered by loading a
|
||||||
new object file.
|
new object file.
|
||||||
|
|
||||||
|
** A new function, "deep_items" has been added to the gdb.types
|
||||||
|
module in the GDB Python modules library. This function returns
|
||||||
|
an iterator over the fields of a struct or union type. Unlike
|
||||||
|
the standard Python "iteritems" method, it will recursively traverse
|
||||||
|
any anonymous fields.
|
||||||
|
|
||||||
* libthread-db-search-path now supports two special values: $sdir and $pdir.
|
* libthread-db-search-path now supports two special values: $sdir and $pdir.
|
||||||
$sdir specifies the default system locations of shared libraries.
|
$sdir specifies the default system locations of shared libraries.
|
||||||
$pdir specifies the directory where the libpthread used by the application
|
$pdir specifies the directory where the libpthread used by the application
|
||||||
|
@ -91,7 +91,7 @@ def make_enum_dict(enum_type):
|
|||||||
return enum_dict
|
return enum_dict
|
||||||
|
|
||||||
|
|
||||||
def deepitems (type_):
|
def deep_items (type_):
|
||||||
"""Return an iterator that recursively traverses anonymous fields.
|
"""Return an iterator that recursively traverses anonymous fields.
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
@ -107,5 +107,5 @@ def deepitems (type_):
|
|||||||
if k:
|
if k:
|
||||||
yield k, v
|
yield k, v
|
||||||
else:
|
else:
|
||||||
for i in deepitems (v.type):
|
for i in deep_items (v.type):
|
||||||
yield i
|
yield i
|
||||||
|
Reference in New Issue
Block a user