Hannes Domani
80ffe72264
Fix gdb.FinishBreakpoint when returning to an inlined function
...
Currently, when creating a gdb.FinishBreakpoint in a function
called from an inline frame, it will never be hit:
```
(gdb) py fb=gdb.FinishBreakpoint()
Temporary breakpoint 1 at 0x13f1917b4: file C:/src/repos/binutils-gdb.git/gdb/testsuite/gdb.python/py-finish-breakpoint.c, line 47.
(gdb) c
Continuing.
Thread-specific breakpoint 1 deleted - thread 1 no longer in the thread list.
[Inferior 1 (process 1208) exited normally]
```
The reason is that the frame_id of a breakpoint has to be the
ID of a real frame, ignoring any inline frames.
With this fixed, it's working correctly:
```
(gdb) py fb=gdb.FinishBreakpoint()
Temporary breakpoint 1 at 0x13f5617b4: file C:/src/repos/binutils-gdb.git/gdb/testsuite/gdb.python/py-finish-breakpoint.c, line 47.
(gdb) c
Continuing.
Breakpoint 1, increase_inlined (a=0x40fa5c) at C:/src/repos/binutils-gdb.git/gdb/testsuite/gdb.python/py-finish-breakpoint.c:47
(gdb) py print(fb.return_value)
-8
```
Approved-By: Tom Tromey <tom@tromey.com >
2023-12-12 15:57:14 +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-08-17 16:42:39 +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-11-28 18:23:19 +00:00
2023-11-28 18:23:19 +00: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-09-28 15:33:13 +01:00
2023-09-28 15:33:13 +01: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-10-25 18:23:47 +02: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-12-12 15:57:14 +01:00
2023-12-12 15:57:14 +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-09-29 10:55:43 -06: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-07-19 14:10:19 +01:00
2023-07-19 14:10:19 +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-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-10-10 11:22:56 +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-01-13 13:18:58 -07:00
2023-01-01 17:01:16 +04:00
2023-06-05 13:25:08 +01:00
2023-11-14 12:02:47 +00:00
2023-11-14 11:47:27 -07:00
2023-11-14 12:02:47 +00: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-12-08 18:21:25 +01:00
2023-12-08 18:21:25 +01:00
2023-12-08 18:21:25 +01:00
2023-12-08 18:21:25 +01:00
2023-12-08 18:21:25 +01: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-10-02 17:06:40 +01:00
2023-10-02 17:06:40 +01:00
2023-10-02 21:08:26 +01:00
2023-01-01 17:01:16 +04:00
2023-09-28 15:33:13 +01: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-09-29 10:55:43 -06:00
2023-09-29 10:55:43 -06: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-08-16 15:03:56 +01:00
2023-08-10 11:42:38 -06: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-10-26 18:27:17 +01:00
2023-09-07 14:04:53 -06:00
2023-09-07 14:04:53 -06:00
2023-09-08 13:06:47 -06:00
2023-05-11 12:09:10 -04:00
2023-10-25 18:24:13 +02: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-11-24 15:38:17 +01: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-07-10 13:48:22 -06:00
2023-07-10 13:48:22 -06:00