mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Fix gdb.py for C frames [ci skip]
This commit is contained in:
parent
9aca3528aa
commit
5766fb7266
1 changed files with 3 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue