<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ppe42-binutils/gdb/testsuite/gdb.python/python-value.c, branch binutils-2_24-ppe42</title>
<subtitle>GNU Binutils for the PPE42</subtitle>
<id>https://git.raptorcs.com/git/ppe42-binutils/atom?h=binutils-2_24-ppe42</id>
<link rel='self' href='https://git.raptorcs.com/git/ppe42-binutils/atom?h=binutils-2_24-ppe42'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/ppe42-binutils/'/>
<updated>2009-09-09T17:45:42+00:00</updated>
<entry>
<title>Checking in this patch for Thiago: Rename python-* files into py-*,</title>
<updated>2009-09-09T17:45:42+00:00</updated>
<author>
<name>Joel Brobecker</name>
<email>brobecker@gnat.com</email>
</author>
<published>2009-09-09T17:45:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/ppe42-binutils/commit/?id=5172aecbd2b65e71aedbd21c46253ca6a20227aa'/>
<id>urn:sha1:5172aecbd2b65e71aedbd21c46253ca6a20227aa</id>
<content type='text'>
more 8+3 friendly.


gdb/
        * Makefile.in (py-cmd.o): Renamed from python-cmd.o.  Updated
        references.
        (py-frame.o): Renamed from python-frame.o.  Updated references.
        (py-function.o): Renamed from python-function.o.  Updated references.
        (py-objfile.o): Renamed from python-objfile.o.  Updated references.
        (py-prettyprint.o): Renamed from python-prettyprint.o.  Updated
+references.
        (py-type.o): Renamed from python-type.o.  Updated references.
        (py-utils.o): Renamed from python-utils.o.  Updated references.
        (py-value.o): Renamed from python-value.o.  Updated references.
        * py-cmd.o: Renamed from python-cmd.o.
        * py-frame.o: Renamed from python-frame.o.
        * py-function.o: Renamed from python-function.o.
        * py-objfile.o: Renamed from python-objfile.o.
        * py-prettyprint.o: Renamed from python-prettyprint.o.
        * py-type.o: Renamed from python-type.o.
        * py-utils.o: Renamed from python-utils.o.
        * py-value.o: Renamed from python-value.o.

gdb/testsuite/
        * gdb.python/Makefile.in (EXECUTABLES): Adjust to new executable
        names, add missing ones.
        * gdb.python/py-cmd.exp: Rename from python-cmd.exp.
        * gdb.python/py-frame.c: Rename from python-frame.c.
        * gdb.python/py-frame.exp: Rename from python-frame.exp.  Adjust
        testfile name.
        * gdb.python/py-function.exp: Rename from python-function.exp.
        * gdb.python/py-mi.exp: Rename from python-mi.exp.  Adjust
        testfile name.
        * gdb.python/py-prettyprint.c: Rename from python-prettyprint.c.
        * gdb.python/py-prettyprint.exp: Rename from python-prettyprint.exp.
        Adjust testfile name.
        * gdb.python/py-prettyprint.py: Rename from python-prettyprint.py.
        * gdb.python/py-template.cc: Rename from python-template.cc.
        * gdb.python/py-template.exp: Rename from python-template.exp.
        Adjust testfile name.
        * gdb.python/py-value.c: Rename from python-value.c.
        * gdb.python/py-value.exp: Rename from python-value.exp.  Adjust
        testfile name.
</content>
</entry>
<entry>
<title>2009-07-10 Phil Muldoon  &lt;pmuldoon@redhat.com&gt;</title>
<updated>2009-07-10T10:35:17+00:00</updated>
<author>
<name>Phil Muldoon</name>
<email>pmuldoon@redhat.com</email>
</author>
<published>2009-07-10T10:35:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/ppe42-binutils/commit/?id=fbb8f2990ccfa180274ab4a578818fe247823540'/>
<id>urn:sha1:fbb8f2990ccfa180274ab4a578818fe247823540</id>
<content type='text'>
	* python/python-internal.h (apply_varobj_pretty_printer): Update
	definition.
	(python_string_to_target_python_string): Add definition.
	* python/python-utils.c (unicode_to_encoded_python_string)
	(unicode_to_target_python_string)
	(python_string_to_target_python_string): New Functions.
	* python/python-prettyprint.c (pretty_print_one_value): Likewise.
	(print_string_repr): Refactor to logic to account for PyObject
	returned strings.
	(apply_varobj_pretty_printer): Likewise.
	* python/python-value.c (valpy_string): Parse length keyword. Use
	length keyword in LA_GET_STRING.
	* varobj.c (value_get_print_value): Refactor logic to account for
	PyObject returned strings.
	* c-lang.c (c_get_string): If the length parameter is specified,
	use that. Return value in characters. Update comments.
	* language.h: Update c_get_string prototype comments.

2009-07-10  Phil Muldoon  &lt;pmuldoon@redhat.com&gt;

	* gdb.texinfo (Values From Inferior): Add length parameter
	description.

2009-07-10 Phil Muldoon  &lt;pmuldoon@redhat.com&gt;

	* gdb.python/python-prettyprint.c: Add counted null string
	structure.
	* gdb.python/python-prettyprint.exp: Print null string. Test for
	embedded nulls.
	* gdb.python/python-prettyprint.py (pp_ns): New Function.
	* gdb.python/python-value.exp (test_value_in_inferior): Add
	variable length string fetch tests.
	* gdb.python/python-value.c (main): Add strings for string fetch tests.
</content>
</entry>
<entry>
<title>gdb</title>
<updated>2009-05-28T00:47:20+00:00</updated>
<author>
<name>Tom Tromey</name>
<email>tromey@redhat.com</email>
</author>
<published>2009-05-28T00:47:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/ppe42-binutils/commit/?id=2c74e8338149ee8a2c5effa422866d04aef73063'/>
<id>urn:sha1:2c74e8338149ee8a2c5effa422866d04aef73063</id>
<content type='text'>
2009-05-27  Tom Tromey  &lt;tromey@redhat.com&gt;
	    Thiago Jung Bauermann  &lt;bauerman@br.ibm.com&gt;
	    Phil Muldoon  &lt;pmuldoon@redhat.com&gt;
	    Paul Pluzhnikov  &lt;ppluzhnikov@google.com&gt;

	* python/python.c (_initialize_python): Call
	gdbpy_initialize_types.
	(GdbMethods): Add "lookup_type".
	* python/python-value.c (value_object) &lt;type&gt;: New field.
	(valpy_dealloc): Decref type.
	(valpy_new): Initialize type.
	(valpy_get_type): New function.
	(value_to_value_object): Initialize type.
	(valpy_cast): New function.
	(value_object_getset): Add "type".
	(value_object_methods): Add "cast".
	* python/python-internal.h (type_to_type_object): Declare.
	(type_object_to_type): Likewise.
	(gdbpy_initialize_types): Likewise.
	(gdbpy_lookup_type): Declare.
	* Makefile.in (SUBDIR_PYTHON_OBS): Add python-type.o.
	(SUBDIR_PYTHON_SRCS): Add python-type.c.
	(python-type.o): New target.
	* python/python-type.c: New file.

gdb/doc

2009-05-27  Thiago Jung Bauermann  &lt;bauerman@br.ibm.com&gt;
	    Tom Tromey  &lt;tromey@redhat.com&gt;

	* gdb.texinfo (Types In Python): New node.
	(Values From Inferior): "type" is now an attribute.
	(Python API): Update.


gdb/testsuite

2009-05-27  Thiago Jung Bauermann  &lt;bauerman@br.ibm.com&gt;
	    Tom Tromey  &lt;tromey@redhat.com&gt;
	    Pedro Alves  &lt;pedro@codesourcery.com&gt;
	    Paul Pluzhnikov  &lt;ppluzhnikov@google.com&gt;

	* gdb.python/python-template.exp: New file.
	* gdb.python/python-template.cc: New file.
	* gdb.python/python.exp (gdb_py_test_multiple): Add two objfile
	tests.
	* gdb.python/python-value.exp (py_objfile_tests): New proc.
	Call it.
	(test_value_after_death): New proc.
	* gdb.python/python-value.c (PTR): New typedef.
	(main): New variable 'x'.
</content>
</entry>
<entry>
<title>gdb/</title>
<updated>2009-02-04T21:55:40+00:00</updated>
<author>
<name>Thiago Jung Bauermann</name>
<email>bauerman@br.ibm.com</email>
</author>
<published>2009-02-04T21:55:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/ppe42-binutils/commit/?id=08c637dee28a25da97418745fbebb26b2fba8eef'/>
<id>urn:sha1:08c637dee28a25da97418745fbebb26b2fba8eef</id>
<content type='text'>
2009-02-04  Tom Tromey  &lt;tromey@redhat.com&gt;
	    Thiago Jung Bauermann  &lt;bauerman@br.ibm.com&gt;
	    Phil Muldoon  &lt;pmuldoon@redhat.com&gt;

	* python/python-internal.h (gdbpy_get_value_from_history): Rename
	prototype to gdbpy_history.
	(gdbpy_is_string): Declare.
	(python_string_to_host_string): Declare.
	* python/python-utils.c (gdbpy_is_string): New function.
	(unicode_to_encoded_string): New function.
	(unicode_to_target_string): Use it.
	(python_string_to_host_string): New function.
	* python/python-value.c (valpy_address): New function.
	(convert_value_from_python): Use gdbpy_is_string.  Change to throw
	Python exception instead of a GDB exception on error.  Properly check
	Python booleans.
	(valpy_getitem): Convert field name to host string.  Handle array
	accesses.  Adapt to new behaviour of convert_value_from_python.
	(valpy_new): Adapt to new behaviour of convert_value_from_python.
	(enum valpy_opcode) &lt;VALPY_LSH, VALPY_RSH, VALPY_BITAND,
	VALPY_BITXOR, VALPY_BITOR&gt;: New constants.
	(valpy_binop): Update.  Adapt to new behaviour of
	convert_value_from_python.
	(valpy_invert): New function.
	(valpy_lsh): Likewise.
	(valpy_rsh): Likewise.
	(valpy_and): Likewise.
	(valpy_or): Likewise.
	(valpy_xor): Likewise.
	(valpy_richcompare): Call convert_value_from_python instead of doing
	conversions itself.
	(is_intlike, valpy_int, valpy_long, valpy_float): New functions.
	(gdbpy_get_value_from_history): Rename
	function to gdbpy_history.
	(gdbpy_initialize_values): Don't set tp_new.
	(value_object_type): Add valpy_new.
	(value_object_methods): Add `address' entry.
	(value_object_as_number): Update for new methods.
	* python/python.c (GdbMethods): Rename entry from
	`get_value_from_history' to `history'.

gdb/doc/
2009-02-04  Tom Tromey  &lt;tromey@redhat.com&gt;

	* gdb.texinfo (Basic Python): Document gdb.history.

gdb/testsuite/
2009-02-04  Tom Tromey  &lt;tromey@redhat.com&gt;
	    Thiago Jung Bauermann  &lt;bauerman@br.ibm.com&gt;

	* gdb.python/python-value.exp: Use `gdb.history' instead of
	`gdb.value_from_history'.
	(test_value_numeric_ops): Add test for conversion of enum constant.
	* gdb.python/python-value.c (enum e): New type.
	(evalue): New global.
	(main): Use argv.
</content>
</entry>
<entry>
<title>        Updated copyright notices for most files.</title>
<updated>2009-01-03T05:58:08+00:00</updated>
<author>
<name>Joel Brobecker</name>
<email>brobecker@gnat.com</email>
</author>
<published>2009-01-03T05:58:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/ppe42-binutils/commit/?id=0fb0cc7590113e9b459dfcc48dc71c9d419d9580'/>
<id>urn:sha1:0fb0cc7590113e9b459dfcc48dc71c9d419d9580</id>
<content type='text'>
</content>
</entry>
<entry>
<title>2008-10-16  Thiago Jung Bauermann  &lt;bauerman@br.ibm.com&gt;</title>
<updated>2008-10-16T03:54:00+00:00</updated>
<author>
<name>Thiago Jung Bauermann</name>
<email>bauerman@br.ibm.com</email>
</author>
<published>2008-10-16T03:54:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/ppe42-binutils/commit/?id=a08702d64763b3c67aafc3f10b0e077187a8e551'/>
<id>urn:sha1:a08702d64763b3c67aafc3f10b0e077187a8e551</id>
<content type='text'>
	    Tom Tromey  &lt;tromey@redhat.com&gt;

gdb/
	* Makefile.in (SUBDIR_PYTHON_OBS): Add python-value.o.
	(SUBDIR_PYTHON_SRCS): Add python-value.c.
	(python-value.o): New target.
	* configure.ac (CONFIG_OBS): Add python-value.o.
	(CONFIG_SRCS): Add python/python-value.c
	* configure: Regenerate.
	* python-internal.h (value_object_type): Add external declaration.
	(gdbpy_get_value_from_history, value_to_value_object,
	convert_value_from_python, gdbpy_initialize_values): Add function
	prototype.
	* python/python-value.c: New file.
	* python/python.c (GdbMethods): Add gdbpy_get_value_from_history.
	(_initialize_python): Call gdbpy_initialize_values.
	* python/python.h (values_in_python): Add external declaration.
	* value.c (value_prepend_to_list, value_remove_from_list): New
	functions.
	(preserve_values): Iterate over values_in_python list as well.
	* value.h (value_prepend_to_list, value_remove_from_list): Add
	function prototypes.

gdb/doc/
	* gdb.texinfo. (Values From Inferior): New subsubsection.

gdb/testsuite/
	* gdb.python/python-value.c: New file.
	* gdb.python/python-value.exp: New file.
</content>
</entry>
</feed>
