Fix gdb.py for C frames [ci skip]

This commit is contained in:
Takashi Kokubun 2023-08-22 11:49:36 -07:00
parent 9aca3528aa
commit 5766fb7266

View file

@ -92,8 +92,9 @@ class CFP(gdb.Command):
self.print_env(cfp, -1, self.frame_types(cfp, -1)) self.print_env(cfp, -1, self.frame_types(cfp, -1))
print() print()
# We can't calculate BP for the first frame # We can't calculate BP for the first frame.
if cfp_index > 0: # vm_base_ptr doesn't work for C frames either.
if cfp_index > 0 and self.get_int(f'{cfp}->iseq'):
if args.stack_size is not None: if args.stack_size is not None:
stack_size = args.stack_size stack_size = args.stack_size
else: else: