<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ppe42-binutils/gdb/python/python-utils.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>	* python/python-internal.h (struct language_defn): Declare.</title>
<updated>2009-07-02T17:04:23+00:00</updated>
<author>
<name>Ulrich Weigand</name>
<email>uweigand@de.ibm.com</email>
</author>
<published>2009-07-02T17:04:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/ppe42-binutils/commit/?id=d452c4bcefbbe7b2305a5ce26469e06d940a690c'/>
<id>urn:sha1:d452c4bcefbbe7b2305a5ce26469e06d940a690c</id>
<content type='text'>
	(python_gdbarch, python_language): Likewise.
	(ensure_python_env): Add prototype.
	(make_cleanup_py_restore_gil): Remove prototype.

	* python/python.c: Include "arch-utils.h", "value.h" and "language.h".
	(python_gdbarch, python_language): New global variables.
	(struct python_env): New data type.
	(ensure_python_env, restore_python_env): New functions.
	(eval_python_from_control_command): Call ensure_python_env to
	install current architecture and language.
	(python_command, gdbpy_new_objfile): Likewise.
	* python/python-cmd.c: Include "arch-utils.h" and "language.h".
	(cmdpy_destroyer, cmdpy_function, cmdpy_completer): Call
	ensure_python_env.
	* python/python-type.c (clean_up_objfile_types): Likewise.
	* python/python-objfile.c: Include "language.h".
	(clean_up_objfile): Call ensure_python_env.
	* python/python-prettyprint.c (apply_val_pretty_printer): Likewise.
	(apply_varobj_pretty_printer): Do not call PyGILState_Ensure.
	* varobj.c (varobj_ensure_python_env): New helper function.
	(varobj_get_display_hint, update_dynamic_varobj_children,
	install_default_visualizer, varobj_set_visualizer, free_variable,
	value_get_print_value): Call it.
	(value_get_print_value): Add varobj argument instead of pretty
	printer argument.  Update all callers.

	* python/python-utils.c (py_gil_restore, make_cleanup_py_restore_gil):
	Remove.

	* value.h (internal_function_fn): Add GDBARCH and LANGUAGE argument.
	(call_internal_function): Likewise.
	* value.c (call_internal_function): Likewise.  Pass to handler.
	* eval.c (evaluate_subexp_standard): Update call.
	* python/python-function.c: Include "language.h".
	(fnpy_call): Add GDBARCH and LANGAUAGE arguments and call
	make_cleanup_python_env.

	* python/python-value.c (builtin_type_pyint, builtin_type_pyfloat,
	builtin_type_pylong, builtin_type_pybool, builtin_type_pychar,
	valpy_str): Use python_gdbarch and python_language instead of
	current_gdbarch and current_language.
	* python/python-type.c (typy_lookup_typename): Likewise.
</content>
</entry>
<entry>
<title>2009-02-26  Phil Muldoon  &lt;pmuldoon@redhat.com&gt;</title>
<updated>2009-02-26T20:45:21+00:00</updated>
<author>
<name>Phil Muldoon</name>
<email>pmuldoon@redhat.com</email>
</author>
<published>2009-02-26T20:45:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/ppe42-binutils/commit/?id=83390453c399fd336223ba1cfbcd77d5bef4c2cb'/>
<id>urn:sha1:83390453c399fd336223ba1cfbcd77d5bef4c2cb</id>
<content type='text'>
        * python/python-utils.c (python_string_to_unicode): Always return
        a new reference.
        (python_string_to_target_string): Decrement transient python
        instance.
        (python_string_to_host_string): Likewise.
</content>
</entry>
<entry>
<title>gdb/</title>
<updated>2009-02-05T21:16:09+00:00</updated>
<author>
<name>Thiago Jung Bauermann</name>
<email>bauerman@br.ibm.com</email>
</author>
<published>2009-02-05T21:16:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/ppe42-binutils/commit/?id=b6cb8e7dead0c48df80c28f95ee7543799672d11'/>
<id>urn:sha1:b6cb8e7dead0c48df80c28f95ee7543799672d11</id>
<content type='text'>
2009-02-05  Thiago Jung Bauermann  &lt;bauerman@br.ibm.com&gt;
	    Tom Tromey  &lt;tromey@redhat.com&gt;

	* python/python-utils.c (target_string_to_unicode): New function.
	* python/python-internal.h (target_string_to_unicode): New prototype.
	* python/python-value.c (valpy_string): New function.
	(value_object_methods): Add `string' entry.

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

	* gdb.texinfo (Values From Inferior): Document Value.string.
</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>	* python/python-internal.h (PyGILState_Ensure): New define.</title>
<updated>2008-11-21T14:59:56+00:00</updated>
<author>
<name>Tom Tromey</name>
<email>tromey@redhat.com</email>
</author>
<published>2008-11-21T14:59:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/ppe42-binutils/commit/?id=ca30a76297419a1e0eac2ee6a709dff70d30e56a'/>
<id>urn:sha1:ca30a76297419a1e0eac2ee6a709dff70d30e56a</id>
<content type='text'>
	(PyGILState_Release): Likewise.
	(PyEval_InitThreads): Likewise.
	(PyThreadState_Swap): Likewise.
	(PyEval_InitThreads): Likewise.
	* python/python.c (_initialize_python): Initialize threads.
	Release GIL.
	(eval_python_from_control_command): Acquire GIL.
	(python_command): Likewise.
	* python/python-internal.h (make_cleanup_py_restore_gil):
	Declare.
	* python/python-utils.c (py_gil_restore): New function.
	(make_cleanup_py_restore_gil): Likewise.
</content>
</entry>
<entry>
<title>Initial python support.</title>
<updated>2008-08-06T19:41:33+00:00</updated>
<author>
<name>Thiago Jung Bauermann</name>
<email>bauerman@br.ibm.com</email>
</author>
<published>2008-08-06T19:41:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/ppe42-binutils/commit/?id=d57a3c85f6eee87b04852e98cce75af080969951'/>
<id>urn:sha1:d57a3c85f6eee87b04852e98cce75af080969951</id>
<content type='text'>
gdb/
2008-08-06  Vladimir Prus  &lt;vladimir@codesourcery.com&gt;
	    Tom Tromey  &lt;tromey@redhat.com&gt;
	    Thiago Jung Bauermann  &lt;bauerman@br.ibm.com&gt;
	    Doug Evans  &lt;dje@google.com&gt;

	* Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
	SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
	PYTHON_CFLAGS): New.
	(python_h, python_internal_h): New.
	(cli-script.o): Depend on python.h
	(python.o, python-utils.o): New.
	* cli/cli-script.c (print_command_lines): Handle python_control.
	(execute_control_command): Handle python_control.
	(execute_control_command_untraced): New function.
	(while_command): Call execute_control_command_untraced.
	(if_command): Likewise.
	(get_command_line): Remove static attribute.
	(read_next_line): Handle "python".
	(recurse_read_control_structure): Handle python_control.
	(read_command_lines): Handle python_control.
	Include python.h.
	* cli/cli-script.h (get_command_line): Add prototype.
	(execute_control_command_untraced): Likewise.
	* configure.ac: Add --with-python.
	* defs.h (enum command_control_type) &lt;python_control&gt;: New
	constant.
	* python/python-internal.h: New file.
	* python/python.c: New file.
	* python/python.h: New file.
	* python/python-utils.c: New file.
	* NEWS: Mention Python scripting support and its new commands.

gdb/doc/
2008-08-06  Tom Tromey  &lt;tromey@redhat.com&gt;

	* gdb.texinfo (Extending GDB): New chapter.
	(Sequences): Demoted chapter, now a section under the new
	Extending GDB chapter.
	(Python): New section.

gdb/testsuite/
2008-08-06  Tom Tromey  &lt;tromey@redhat.com&gt;

	* gdb.python/python.exp: New file.
</content>
</entry>
</feed>
