Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kai Tietz <Kai.Tietz@onevision.com>
To: gdb-patches@sourceware.org
Subject: Fix build-failure of gdb in python.c
Date: Mon, 18 Jan 2010 10:30:00 -0000	[thread overview]
Message-ID: <OF5F5EDF6E.95905E34-ONC12576AF.00393D07-C12576AF.0039A79F@onevision.de> (raw)

Hello,

in file python/python.c is the method throw_error with constant 
UNSUPPORTED_ERROR used, but the header exceptions.h isn't included, so I 
get a build failure. I am not sure if this happens for other targets, too. 
The attached patch fixes this by adding the necessary include.

ChangeLog

2010-01-18  Kai Tietz  <kai.tietz@onevision.com>

        * python/python.c: Add include of exception.h header.

Tested for i686-pc-cygwin, i686-pc-mingw32, and x86_64-w64-mingw32. Of for 
apply?


Regards,
Kai

|  (\_/)  This is Bunny. Copy and paste Bunny
| (='.'=) into your signature to help him gain
| (")_(") world domination.

Index: python.c
===================================================================
RCS file: /cvs/src/src/gdb/python/python.c,v
retrieving revision 1.24
diff -u -3 -r1.24 python.c
--- python.c    18 Jan 2010 06:25:22 -0000      1.24
+++ python.c    18 Jan 2010 10:27:20 -0000
@@ -27,7 +27,7 @@
 #include "observer.h"
 #include "value.h"
 #include "language.h"
-
+#include "../exceptions.h"
 #include <ctype.h>

 /* True if we should print the stack when catching a Python error,


             reply	other threads:[~2010-01-18 10:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-18 10:30 Kai Tietz [this message]
2010-01-18 10:55 ` Joel Brobecker
2010-01-18 11:02   ` Kai Tietz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OF5F5EDF6E.95905E34-ONC12576AF.00393D07-C12576AF.0039A79F@onevision.de \
    --to=kai.tietz@onevision.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox