aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-frame.c
diff options
context:
space:
mode:
authorIndu Bhagat <indu.bhagat@oracle.com>2023-06-01 09:41:04 -0700
committerIndu Bhagat <indu.bhagat@oracle.com>2023-06-01 09:41:04 -0700
commitd987df5c95340a8b41b23d68ad6a8f9f33485835 (patch)
treee09f74afc5d4154c659cb269715f0e1366e5d801 /gdb/python/py-frame.c
parenta5ffdcafc76c3f77c1c05fabe1544e004e9ef358 (diff)
downloadgdb-d987df5c95340a8b41b23d68ad6a8f9f33485835.zip
gdb-d987df5c95340a8b41b23d68ad6a8f9f33485835.tar.gz
gdb-d987df5c95340a8b41b23d68ad6a8f9f33485835.tar.bz2
libsframe: avoid using magic number
Define a new constant for the maximum number of stack offsets handled in libsframe, and use it. Note that the SFrame format does not define such a constant (limit). This is an implmentation-defined constant in libsframe. include/ * sframe-api.h (MAX_NUM_STACK_OFFSETS): New definition. libsframe/ * sframe.c (sframe_fre_sanity_check_p): Use it.
Diffstat (limited to 'gdb/python/py-frame.c')
0 files changed, 0 insertions, 0 deletions