mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
GH-94739: Mark stacks of exception handling blocks for setting frame.f_lineno in the debugger. (GH-94958)
This commit is contained in:
parent
631160c262
commit
2f8bff6879
5 changed files with 164 additions and 43 deletions
|
@ -390,6 +390,19 @@ read_obj(uint16_t *p)
|
|||
return (PyObject *)val;
|
||||
}
|
||||
|
||||
/* See Objects/exception_handling_notes.txt for details.
|
||||
*/
|
||||
static inline unsigned char *
|
||||
parse_varint(unsigned char *p, int *result) {
|
||||
int val = p[0] & 63;
|
||||
while (p[0] & 64) {
|
||||
p++;
|
||||
val = (val << 6) | (p[0] & 63);
|
||||
}
|
||||
*result = val;
|
||||
return p+1;
|
||||
}
|
||||
|
||||
static inline int
|
||||
write_varint(uint8_t *ptr, unsigned int val)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue