This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Nullified garbage-collected global variables
Jerome Guitton (guitton@adacore.com):
> Well, that sounded unlikely; then I double-checked, and experimental
> results rejected my assumption. e.g. my example without --readnow:
>
> (gdb) p my_global_symbol
> No symbol "my_global_symbol" in current context.
>
> and with --readnow:
>
> (gdb) p my_global_symbol
> Cannot access memory at address 0x0
>
> Thank you for catching that. I'll fix my patch.
...and I will add this case in a testcase if/when the patch is accepted.