This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Where symbol is store?
- From: kuba at witominska dot net
- To: gdb at sourceware dot org
- Date: Mon, 17 Sep 2018 09:43:51 +0200
- Subject: Where symbol is store?
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