public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM] archer-tromey-python: * varobj.c (instantiate_pretty_printer): Use #if, not #ifdef.
@ 2009-01-12 14:43 tromey
0 siblings, 0 replies; only message in thread
From: tromey @ 2009-01-12 14:43 UTC (permalink / raw)
To: archer-commits
The branch, archer-tromey-python has been updated
via 0e0769d6fdc1e22621ef7a9bc5029aabcf4dd5c8 (commit)
from 7cb294ef217a6053836af8acd56e626b95a533dc (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 0e0769d6fdc1e22621ef7a9bc5029aabcf4dd5c8
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Jan 12 07:42:40 2009 -0700
* varobj.c (instantiate_pretty_printer): Use #if, not #ifdef.
* main.c (captured_main): Use #if, not #ifdef.
(print_gdb_help): Likewise.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 6 ++++++
gdb/main.c | 8 ++++----
gdb/varobj.c | 2 +-
3 files changed, 11 insertions(+), 5 deletions(-)
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fdf8a2b..bcb3036 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2009-01-12 Tom Tromey <tromey@redhat.com>
+
+ * varobj.c (instantiate_pretty_printer): Use #if, not #ifdef.
+ * main.c (captured_main): Use #if, not #ifdef.
+ (print_gdb_help): Likewise.
+
2009-01-08 Tom Tromey <tromey@redhat.com>
* python/python-membuf.c (CHARBUFFERPROC_NAME): New define.
diff --git a/gdb/main.c b/gdb/main.c
index e039e0b..1dc6eee 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -397,7 +397,7 @@ captured_main (void *data)
{"args", no_argument, &set_args, 1},
{"l", required_argument, 0, 'l'},
{"return-child-result", no_argument, &return_child_result, 1},
-#ifdef HAVE_PYTHON
+#if HAVE_PYTHON
{"python", no_argument, 0, 'P'},
{"P", no_argument, 0, 'P'},
#endif
@@ -901,7 +901,7 @@ Can't attach to process and specify a core file at the same time."));
#endif
}
-#ifdef HAVE_PYTHON
+#if HAVE_PYTHON
if (python_script)
{
extern int pagination_enabled;
@@ -946,7 +946,7 @@ print_gdb_help (struct ui_file *stream)
This is the GNU debugger. Usage:\n\n\
gdb [options] [executable-file [core-file or process-id]]\n\
gdb [options] --args executable-file [inferior-arguments ...]\n"), stream);
-#ifdef HAVE_PYTHON
+#if HAVE_PYTHON
fputs_unfiltered (_("\
gdb [options] [--python|-P] script-file [script-arguments ...]\n"), stream);
#endif
@@ -989,7 +989,7 @@ Options:\n\n\
--nx Do not read "), stream);
fputs_unfiltered (gdbinit, stream);
fputs_unfiltered (_(" file.\n"), stream);
-#ifdef HAVE_PYTHON
+#if HAVE_PYTHON
fputs_unfiltered (_("\
--python, -P Following argument is Python script file; remaining\n\
arguments are passed to script.\n"), stream);
diff --git a/gdb/varobj.c b/gdb/varobj.c
index 3471639..7f77902 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -715,7 +715,7 @@ varobj_delete (struct varobj *var, char ***dellist, int only_children)
static PyObject *
instantiate_pretty_printer (struct varobj *var, struct value *value)
{
-#ifdef HAVE_PYTHON
+#if HAVE_PYTHON
if (var->constructor)
{
PyObject *printer = gdbpy_instantiate_printer (var->constructor, value);
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-01-12 14:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-12 14:43 [SCM] archer-tromey-python: * varobj.c (instantiate_pretty_printer): Use #if, not #ifdef tromey
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).