User forums > General (but related to Code::Blocks)
Symbols Browser disabled in 17.12
oBFusCATed:
Can you show me a screen shot?
Can you reproduce this problem in a minimal sample project you could share with us?
nightlight77:
I think I see what is the difference here between CB16 and CB17. In CB17 if I make a single step to next line, the fields get updated to proper names from anonymous *hp offset value. In contrast CB16, extracts that info from the gdb message sent when the break point was hit without requiring the next step to show field names. Somehow CB17 is not processing that info about struct it got on breakpoint entry, but only picks it up after the next step is made.
This can be inconvenient because 'next step' may change values or go elsewhere. As a workaround I may have to put breakpoints one step ahead of the place I wanted (whenever possible; e.g. branch selection could be a problem), make the next step to see the field names.
oBFusCATed:
I doubt this would help.
Would you provide an answer to my previous post?
nightlight77:
Debug example below with breakpoint set on the first printf. When it is hit, add watch *p. The field names for r show up, but not for *p, even though debugger knows the struct layout for *p. But all you see for *p field names when you expand it is string "*p" for each field name.
If you make a single step, the field names for *p now show up.
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
typedef struct _tstrec {
int key;
int value;
uint64_t xval;
uint32_t flags;
} TSTREC;
int main()
{
TSTREC r={0};
TSTREC *p=&r;
// Add watch for *p when breakpoint is hit on first printf.
// Field names for r shown correctly when breakpoint hit
// Field names for *p shown as "*p"; right click on watch *p and Update doesn't help
printf("Breakpoint here shows no field names for *p \n");
r.key=1234; // the field names in *p show up after you single step here
r.value=5678;
p->xval=0x12345678;
p->flags=0x400;
printf("Done test\n");
return 0;
}
oBFusCATed:
Works fine here (gentoo latest night build). Unfortunately I don't have Ubuntu 16.04 where to test it.
Can you post the full debugger log from a run of the example project? (please use code or quote tags)
Navigation
[0] Message Index
[*] Previous page
Go to full version