John Schmidt
8e497eb32c
debug: fix edge cases in macOS debug symbol lookup
...
This commit fixes two related things:
1. If the loop goes all the way through the slice without a match, on
the last iteration `mid == symbols.len - 1` which causes
`&symbols[mid + 1]` to be out of bounds. End one step before that
instead.
2. If the address we're looking for is greater than the address of the
last symbol in the slice, we now match it to that symbol. Previously,
we would miss this case since we only matched if the address was _in
between_ the address of two symbols.
2022-01-31 23:55:19 +01:00
..
2021-11-30 23:32:47 +00:00
2022-01-24 17:29:19 +02:00
2022-01-31 22:54:30 +01:00
2022-01-29 16:57:10 +02:00
2022-01-28 16:23:47 -07:00
2021-09-01 17:54:06 -07:00
2021-11-30 23:32:47 +00:00
2022-01-29 12:25:25 +01:00
2022-01-30 14:25:50 +01:00
2021-11-30 23:32:47 +00:00
2021-12-19 23:22:05 -08:00
2022-01-24 17:44:26 +02:00
2021-11-30 23:32:47 +00:00
2022-01-29 18:11:49 +02:00
2022-01-26 20:02:01 -07:00
2021-11-30 00:13:07 -07:00
2022-01-14 13:44:38 +01:00
2022-01-29 18:10:22 +02:00
2021-10-29 19:20:31 -04:00
2022-01-26 00:48:05 -05:00
2021-08-15 23:09:55 -07:00
2021-11-30 23:45:01 +00:00
2022-01-29 20:30:53 +00:00
2021-12-16 19:08:58 -08:00
2022-01-01 12:47:08 +00:00
2021-10-04 23:48:55 -07:00
2021-08-24 12:25:09 -07:00
2022-01-14 13:44:38 +01:00
2022-01-29 15:49:00 +02:00
2022-01-24 21:29:04 -07:00
2022-01-27 19:35:08 +02:00
2021-11-30 23:32:47 +00:00
2021-10-04 23:48:55 -07:00
2021-11-30 00:13:07 -07:00
2021-12-03 16:42:59 -08:00
2022-01-16 01:37:37 -05:00
2021-11-30 23:32:47 +00:00
2021-11-30 23:32:47 +00:00
2022-01-24 20:15:32 +02:00
2022-01-24 21:47:53 -07:00
2022-01-17 16:56:50 +02:00
2021-12-19 00:24:45 -05:00
2021-11-30 23:32:47 +00:00
2022-01-23 19:30:06 +01:00
2021-08-24 12:25:09 -07:00
2022-01-25 13:00:39 -05:00
2021-11-30 23:32:47 +00:00
2022-01-31 23:55:19 +01:00
2021-11-30 23:32:47 +00:00
2021-12-19 00:24:45 -05:00
2022-01-28 21:03:21 -05:00
2021-08-24 12:25:09 -07:00
2021-09-01 17:54:06 -07:00
2021-11-30 23:32:47 +00:00
2022-01-29 12:25:25 +01:00
2022-01-30 14:25:50 +01:00
2022-01-24 20:29:05 +02:00
2022-01-07 00:06:06 -05:00
2021-12-19 00:24:45 -05:00
2021-11-30 00:13:07 -07:00
2022-01-17 12:32:02 +01:00
2021-09-20 01:58:18 -04:00
2021-08-24 12:25:09 -07:00
2021-11-30 00:13:07 -07:00
2021-12-15 08:59:20 +01:00
2022-01-28 11:45:04 -07:00
2022-01-29 15:49:47 +02:00
2022-01-20 10:54:45 +02:00
2022-01-24 21:29:04 -07:00
2022-01-15 00:47:12 +01:00
2021-11-09 18:31:03 -07:00
2022-01-31 22:54:30 +01:00
2021-10-09 03:15:34 -04:00
2021-12-21 17:29:23 -08:00
2021-12-15 17:46:10 -08:00
2021-12-15 17:46:04 -08:00
2022-01-30 21:27:52 +02:00
2021-12-06 12:18:41 -08:00
2021-12-19 00:24:45 -05:00
2021-08-24 12:25:09 -07:00
2021-10-27 16:07:48 -04:00
2021-12-19 00:24:45 -05:00
2022-01-27 19:49:12 +02:00
2021-12-31 17:17:49 +00:00
2022-01-29 15:49:00 +02:00
2022-01-12 23:53:26 -07:00
2022-01-29 15:52:08 +02:00
2022-01-07 00:06:06 -05:00
2022-01-28 21:03:21 -05:00
2022-01-30 21:27:52 +02:00
2022-01-07 00:06:06 -05:00
2022-01-04 17:59:05 +01:00
2021-08-24 12:25:09 -07:00
2021-11-30 23:32:47 +00:00