Simon Marchi
bed91f4da2
Fix accessing a function's fields (parameters) from Python (PR 18073)
...
Since 7.4, gdb doesn't allow calling .fields() on a function type, even
though the documentation states it should return a list corresponding to
the function's parameters. This patch restores the intended behaviour
and adds a test for it.
Reg-tested on Arch Linux x86-64.
gdb/ChangeLog:
PR python/18073
* python/py-type.c (typy_get_composite): Allow returning a
function type.
gdb/testsuite/ChangeLog:
PR python/18073
* gdb.python/py-type.c (C::a_method): New.
(C::a_const_method): New.
(C::a_static_method): New.
(a_function): New.
* gdb.python/py-type.exp (test_fields): Test getting fields
from function and method.
2015-10-21 15:57:22 -04:00
..
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-04-28 21:53:54 -07:00
2015-04-28 21:53:54 -07:00
2015-04-28 21:53:54 -07:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-04-08 18:27:10 -04:00
2015-04-08 18:27:10 -04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-07-24 19:34:17 +01:00
2015-01-01 13:32:14 +04:00
2015-07-24 19:34:17 +01:00
2015-01-01 13:32:14 +04:00
2015-07-24 19:34:17 +01:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-12 11:02:46 +01:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-02-11 14:53:14 +01:00
2015-04-15 11:54:33 -04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-05-26 16:13:04 -07:00
2015-07-07 11:39:06 -04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-26 08:41:37 +04:00
2015-08-18 14:02:03 -07:00
2015-08-18 14:02:03 -07:00
2015-08-18 14:02:03 -07:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-07-29 10:16:38 -04:00
2015-04-28 11:15:47 +02:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-04-28 22:14:23 -07:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-04-28 22:14:23 -07:00
2015-07-28 17:39:16 -04:00
2015-04-28 22:14:23 -07:00
2015-05-26 16:13:04 -07:00
2015-09-09 11:42:52 -07:00
2015-05-26 16:13:04 -07:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-07-31 20:06:24 +01:00
2015-01-31 12:01:13 -08:00
2015-01-31 12:01:13 -08:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-07-31 20:06:24 +01:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-10-21 15:57:22 -04:00
2015-10-21 15:57:22 -04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-04-01 11:49:12 -07:00
2015-04-01 11:49:12 -07:00
2015-04-15 11:54:33 -04:00
2015-04-01 11:49:12 -07:00
2015-04-01 11:49:12 -07:00
2015-04-01 11:49:12 -07:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-05-09 17:30:35 -07:00
2015-05-09 17:30:35 -07:00
2015-05-09 17:30:35 -07:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00