Where symbol is store?

kuba@witominska.net kuba@witominska.net
Mon Sep 17 07:43:00 GMT 2018


Question:
Where in GDB we get symbol itself?

I try to dig into it and I found it coud heppen in:
eval.c:1290
     in evaluate_subexp_standard()
     by symbol *var = exp->elts[pc + 2].symbol;
but it has no sens to me because in
expression.h:84
     in struct expression
     union exp_element elts[1];
is well 1 element union and it feel like access to unknown part of memory.

It's moment in this code where i get lost.

Motivation:
I want to get raw symbol to figure out is all field about FORTRAN array is
set in right way, and how they are set.


~wytrzeszcz



More information about the Gdb mailing list