public inbox for archer@sourceware.org
 help / color / mirror / Atom feed
* Make valpy_getitem use gdbpy_is_string.
@ 2009-01-28  3:13 Thiago Jung Bauermann
  0 siblings, 0 replies; only message in thread
From: Thiago Jung Bauermann @ 2009-01-28  3:13 UTC (permalink / raw)
  To: archer ml

Hi,

Small nit, committed.
-- 
[]'s
Thiago Jung Bauermann
IBM Linux Technology Center

    
2009-01-02  Thiago Jung Bauermann  <bauerman@br.ibm.com>

	* gdb/python/python-value.c (valpy_getitem): Use gdbpy_is_string.

diff --git a/gdb/python/python-value.c b/gdb/python/python-value.c
index 53dcb74..37e2fec 100644
--- a/gdb/python/python-value.c
+++ b/gdb/python/python-value.c
@@ -245,7 +245,7 @@ valpy_getitem (PyObject *self, PyObject *key)
   struct value *res_val = NULL;	  /* Initialize to appease gcc warning.  */
   volatile struct gdb_exception except;
 
-  if (PyUnicode_Check (key) || PyString_Check (key))
+  if (gdbpy_is_string (key))
     {  
       field = python_string_to_host_string (key);
       if (field == NULL)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-28  3:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-28  3:13 Make valpy_getitem use gdbpy_is_string Thiago Jung Bauermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).