Matheus Branco Borella
bb2bd584f3
gdb: add __repr__() implementation to a few Python types
...
Only a few types in the Python API currently have __repr__()
implementations. This patch adds a few more of them. specifically: it
adds __repr__() implementations to gdb.Symbol, gdb.Architecture,
gdb.Block, gdb.Breakpoint, gdb.BreakpointLocation, and gdb.Type.
This makes it easier to play around the GDB Python API in the Python
interpreter session invoked with the 'pi' command in GDB, giving more
easily accessible tipe information to users.
An example of how this would look like:
(gdb) pi
>> gdb.lookup_type("char")
<gdb.Type code=TYPE_CODE_INT name=char>
>> gdb.lookup_global_symbol("main")
<gdb.Symbol print_name=main>
The gdb.Block.__repr__() method shows the first 5 symbols from the
block, and then a message to show how many more were elided (if any).
2023-07-04 12:07:16 +01:00
..
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-03-27 08:37:14 -06:00
2023-01-01 17:01:16 +04:00
2023-02-09 19:38:52 +01:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-07-04 12:07:16 +01:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-03-10 16:34:04 +01:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-07-04 12:07:16 +01:00
2023-07-04 12:07:16 +01:00
2023-01-01 17:01:16 +04:00
2023-07-04 12:07:16 +01:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-02-28 15:50:23 +01:00
2023-07-04 12:07:16 +01:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-03-10 16:34:04 +01:00
2023-03-10 16:34:04 +01:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-05-19 09:58:46 +01:00
2023-05-16 11:59:45 +01:00
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-03-10 16:34:04 +01:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-05-23 10:09:28 -06:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-04-03 14:46:32 +01:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-05-16 12:27:47 +00:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-04-06 15:04:17 +01:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-02-27 13:28:32 -05:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-26 10:09:44 +01:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-26 18:28:31 -07:00
2023-01-01 17:01:16 +04:00
2023-04-27 13:56:38 +01:00
2023-02-27 13:28:32 -05:00
2023-01-26 18:28:32 -07:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-02-27 13:28:32 -05:00
2023-05-24 06:16:10 -06:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-26 10:09:44 +01:00
2023-01-01 17:01:16 +04:00
2023-01-26 18:28:32 -07:00
2023-01-01 17:01:16 +04:00
2023-05-23 10:09:28 -06:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-26 18:28:31 -07:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-26 18:28:31 -07:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-06-05 13:25:08 +01:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-22 14:27:49 -07:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-02-27 15:46:31 -07:00
2023-02-27 15:46:31 -07:00
2023-02-27 15:46:31 -07:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-25 09:02:11 -07:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-05-06 10:38:31 -06:00
2023-05-06 10:38:31 -06:00
2023-02-27 13:28:32 -05:00
2023-01-01 17:01:16 +04:00
2023-01-26 18:28:32 -07:00
2023-01-01 17:01:16 +04:00
2023-04-07 10:26:02 +02:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-06-12 13:00:09 +02:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-03-01 13:44:04 +01:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-02-27 13:28:32 -05:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-26 18:28:32 -07:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-02-27 13:28:32 -05:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-06-03 22:43:57 +02:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-07-04 12:07:16 +01:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-26 18:28:32 -07:00
2023-06-19 16:17:21 +02:00
2023-06-19 16:17:21 +02:00
2023-06-19 17:13:05 +02:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-07-04 12:07:16 +01:00
2023-03-13 14:40:33 +01:00
2023-03-13 14:40:33 +01:00
2023-03-13 16:34:41 +01:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-06-22 22:25:51 +02:00
2023-06-17 12:28:58 +02:00
2023-01-19 13:44:13 +01:00
2023-01-19 13:44:13 +01:00
2023-05-23 14:17:04 -06:00
2023-06-12 12:09:39 -06:00
2023-05-11 12:09:10 -04:00
2023-05-11 12:09:10 -04:00
2023-05-11 12:09:10 -04:00
2023-06-03 22:43:57 +02:00
2023-02-15 20:56:52 +00:00
2023-02-10 23:49:19 +00:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-06-03 22:43:57 +02:00
2023-01-01 17:01:16 +04:00
2023-01-01 17:01:16 +04:00
2023-03-18 10:16:30 +01:00
2023-06-07 11:36:19 +02:00
2023-01-01 17:01:16 +04:00
2023-03-13 17:20:09 +01:00
2023-02-13 14:50:37 +00:00
2023-01-13 13:18:58 -07:00
2023-03-13 17:20:09 +01:00
2023-02-27 13:28:32 -05:00