This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix for varobj.c assertions.
- From: Nick Roberts <nickrob at snap dot net dot nz>
- To: Aleksandar Ristovski <ARistovski at qnx dot com>
- Cc: gdb-patches at sourceware dot org, Ryan Mansfield <RMansfield at qnx dot com>
- Date: Fri, 11 Jan 2008 11:36:47 +1300
- Subject: Re: [patch] Fix for varobj.c assertions.
- References: <2F6320727174C448A52CEB63D85D11F40A8C@nova.ott.qnx.com>
> When listing children of a variable, if variable was not initialized we will
> ignore return value from gdb_value_ind.
>
> This patch fixes this situation. Fixes at least one problem from PR 2309.
I've looked at your new testcase in GNATS (I've only just seen how to get
cc'ed). It doesn't fail for me, even with the script file, which surprised
me because I didn't think MI commands would work in a script.
I use:
gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
Ubuntu 7.04 (2.6.20-15-generic)
> ---
> Aleksandar Ristovski
> QNX Software Systems
>
>
> 2008-01-10 Aleksandar Ristovski <aristovski@qnx.com>
>
> * varobj (adjust_value_for_child_access): Added checking for
> returned value from gdb_value_ind.
> (c_describe_child): Likewise.
> (cplus_describe_child): Fixed a typo.
>
--
Nick http://www.inet.net.nz/~nickrob