Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Markus Deuling <deuling@de.ibm.com>
To: GDB Patches <gdb-patches@sourceware.org>
Subject: [rfc] Fix header in gdb.gdbtk
Date: Mon, 18 Feb 2008 17:24:00 -0000	[thread overview]
Message-ID: <47B9BEB7.7050306@de.ibm.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 398 bytes --]

Hi,

some tests in gdb.gdbtk/ fail on x86 because some headers are missing. This patch
adds those.

Btw, why is there a separate ChangeLog? 

Ok to commit?


ChangeLog:

	* simple.c: Inlude <stdlib.h> and <string.h> for declarations of
	malloc and strncpy.
	* stack1.c: Inlucde <stdlib.h> for a declaration of exit.


-- 
  Markus Deuling
  GNU Toolchain for Linux on Cell BE
  deuling@de.ibm.com


[-- Attachment #2: fix-gdbtk-test --]
[-- Type: text/plain, Size: 721 bytes --]

diff -urpN src/gdb/testsuite/gdb.gdbtk/simple.c dev/gdb/testsuite/gdb.gdbtk/simple.c
--- src/gdb/testsuite/gdb.gdbtk/simple.c	2002-09-10 04:13:16.000000000 +0200
+++ dev/gdb/testsuite/gdb.gdbtk/simple.c	2008-02-18 18:16:04.000000000 +0100
@@ -1,3 +1,6 @@
+#include <stdlib.h>
+#include <string.h>
+
 int
 main(int argc, char * argv[])
 {
diff -urpN src/gdb/testsuite/gdb.gdbtk/stack1.c dev/gdb/testsuite/gdb.gdbtk/stack1.c
--- src/gdb/testsuite/gdb.gdbtk/stack1.c	2000-02-07 01:19:45.000000000 +0100
+++ dev/gdb/testsuite/gdb.gdbtk/stack1.c	2008-02-18 18:13:54.000000000 +0100
@@ -1,3 +1,5 @@
+#include <stdlib.h>
+
 /* Functions defined in other files */
 extern void extern_func1_1 (int a, char *b, unsigned long c);
 

             reply	other threads:[~2008-02-18 17:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-18 17:24 Markus Deuling [this message]
2008-02-18 17:40 ` Daniel Jacobowitz

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=47B9BEB7.7050306@de.ibm.com \
    --to=deuling@de.ibm.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