This is the mail archive of the
gdb-cvs@sources.redhat.com
mailing list for the GDB project.
src/gdb eval.c
- From: dsl at sources dot redhat dot com
- To: gdb-cvs at sources dot redhat dot com
- Date: 9 Sep 2003 16:51:54 -0000
- Subject: src/gdb eval.c
CVSROOT: /cvs/src
Module name: src
Changes by: dsl@sourceware.org 2003-09-09 16:51:54
Modified files:
gdb : eval.c
Log message:
Change array element access to something similar to way C works.
The old method would drag in the entire array, then look for the
single element. This method just gets the right element out instead.
Saves memory, and saves a crash for array with (*) as one of the
dimensions when it would previously have allocated (unsigned int) -1 bytes.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/eval.c.diff?cvsroot=src&r1=1.31&r2=1.32