The DAP scopes request examines the symbols in a block tree, but
neglects to omit types. This patch fixes the problem.
for var in block:
if var.is_argument:
args.append(var)
- else:
+ elif var.is_variable or var.is_constant:
locs.append(var)
if block.function is not None:
break
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-struct dei_struct
-{
- int x;
- int more[5];
-};
-
int main ()
{
+ struct dei_struct
+ {
+ int x;
+ int more[5];
+ };
+
struct dei_struct dei = { 2, { 3, 5, 7, 11, 13 } };
static int scalar = 23;