This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug python/11417] lazy string of zero length requires a valid pointer


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2010-04-08 10:28 -------
Subject: Bug 11417

CVSROOT:	/cvs/src
Module name:	src
Changes by:	pmuldoon@sourceware.org	2010-04-08 10:28:42

Modified files:
	gdb            : ChangeLog 
	gdb/python     : py-lazy-string.c 
	gdb/testsuite  : ChangeLog 
	gdb/testsuite/gdb.python: py-value.c py-value.exp 

Log message:
	2010-04-08  Phil Muldoon  <pmuldoon@redhat.com>
	
	PR python/11417
	
	* python/py-lazy-string.c (stpy_convert_to_value): Check for
	a NULL address.
	(gdbpy_create_lazy_string_object): Allow strings with a NULL
	address and a zero length.
	
	2010-04-08  Phil Muldoon  <pmuldoon@redhat.com>
	
	* gdb.python/py-value: Add null string variable.
	(test_lazy_string): Test zero length, NULL address lazy
	strings.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.11587&r2=1.11588
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/python/py-lazy-string.c.diff?cvsroot=src&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.2226&r2=1.2227
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.python/py-value.c.diff?cvsroot=src&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.python/py-value.exp.diff?cvsroot=src&r1=1.7&r2=1.8


------- Additional Comments From pmuldoon at redhat dot com  2010-04-08 10:30 -------
Commited fix upstream, see comment #2.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|7.1                         |7.2


http://sourceware.org/bugzilla/show_bug.cgi?id=11417

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]