public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-jankratochvil-fedora14: Fix gdb.solib_address (fix by Phil Muldoon).
@ 2010-09-16 17:19 jkratoch
  0 siblings, 0 replies; only message in thread
From: jkratoch @ 2010-09-16 17:19 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-fedora14 has been updated
       via  74fff58d0076fe97c6c99d65fa58126315266646 (commit)
      from  30a7ce8ffc2b54bc4453a127be8dd28a3ea6d299 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 74fff58d0076fe97c6c99d65fa58126315266646
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Sep 16 19:19:06 2010 +0200

    Fix gdb.solib_address (fix by Phil Muldoon).

-----------------------------------------------------------------------

Summary of changes:
 gdb/python/python.c                                |    4 +-
 .../gdb.python/rh634108-solib_address.exp          |   24 ++++++++++++++++++++
 2 files changed, 26 insertions(+), 2 deletions(-)
 create mode 100644 gdb/testsuite/gdb.python/rh634108-solib_address.exp

First 500 lines of diff:
diff --git a/gdb/python/python.c b/gdb/python/python.c
index ee6e476..34708c4 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -1090,9 +1090,9 @@ a boolean indicating if name is a field of the current implied argument\n\
 `this' (when the current language is object-oriented)." },
   { "block_for_pc", gdbpy_block_for_pc, METH_VARARGS,
     "Return the block containing the given pc value, or None." },
-  { "solib_address (Long) -> String.\n\
+  { "solib_address", gdbpy_solib_address, METH_VARARGS,
+    "solib_address (Long) -> String.\n\
 Return the name of the shared library holding a given address, or None." },
-
   { "decode_line", gdbpy_decode_line, METH_VARARGS,
     "Decode a string argument the way that 'break' or 'edit' does.\n\
 Return a tuple holding the file name (or None) and line number (or None).\n\
diff --git a/gdb/testsuite/gdb.python/rh634108-solib_address.exp b/gdb/testsuite/gdb.python/rh634108-solib_address.exp
new file mode 100644
index 0000000..70319ff
--- /dev/null
+++ b/gdb/testsuite/gdb.python/rh634108-solib_address.exp
@@ -0,0 +1,24 @@
+# Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+# https://bugzilla.redhat.com/show_bug.cgi?id=634108
+
+gdb_exit
+gdb_start
+
+# Skip all tests if Python scripting is not enabled.
+if { [skip_python_tests] } { continue }
+
+gdb_test "python print gdb.solib_address(-1)" "None" "gdb.solib_address exists"


hooks/post-receive
--
Repository for Project Archer.


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

only message in thread, other threads:[~2010-09-16 17:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-16 17:19 [SCM] archer-jankratochvil-fedora14: Fix gdb.solib_address (fix by Phil Muldoon) jkratoch

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).