This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Cross target core debugging: host=i386, Target=PPC


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kevin Buettner wrote:
| On Jul 29,  4:59pm, Martin Gadbois wrote:
|
|
|>diff -Naur gdb-5.2/gdb/config/powerpc/linux.mt gdb-5.2-ppc-core/gdb/config/powerpc/linux.mt
|>--- gdb-5.2/gdb/config/powerpc/linux.mt	Fri Oct 19 20:16:44 2001
|>+++ gdb-5.2-ppc-core/gdb/config/powerpc/linux.mt	Mon Jul 29 16:25:49 2002
|>@@ -1,5 +1,5 @@
|> # Target: Motorola PPC on Linux
|>-TDEPFILES= rs6000-tdep.o ppc-linux-tdep.o solib.o solib-svr4.o solib-legacy.o
|>+TDEPFILES= rs6000-tdep.o ppc-linux-tdep.o solib.o solib-svr4.o solib-legacy.o corelow.o core-regset.o
|> TM_FILE= tm-linux.h
|>
|> SIM_OBS = remote-sim.o
|>diff -Naur gdb-5.2/gdb/core-regset.c gdb-5.2-ppc-core/gdb/core-regset.c
|>--- gdb-5.2/gdb/core-regset.c	Fri Aug  3 17:34:01 2001
|>+++ gdb-5.2-ppc-core/gdb/core-regset.c	Mon Jul 29 15:45:28 2002
|>@@ -35,13 +35,6 @@
|>  */
|>
|> #include "defs.h"
|>-
|>-#include <time.h>
|>-#ifdef HAVE_SYS_PROCFS_H
|>-#include <sys/procfs.h>
|>-#endif
|>-#include <fcntl.h>
|>-#include <errno.h>
|> #include "gdb_string.h"
|>
|> #include "inferior.h"
|
|
| Hi Martin,
|
| Can you explain the reason for the above change?
|
| Thanks,
|
| Kevin


I really just applied the formula from the thread http://sources.redhat.com/ml/gdb/2002-05/msg00191.html

I am not sure what I've done. I just wanted to read PPC core, applied said formula, and it worked! :-)

I'm a novice GDB wizard that applies dangerous formula ;-)


To answer your question, they said: "remove system header, 'cause it will compile from i386, not PPC".



- --
==============
Martin Gadbois
S/W Developper
Colubris Networks Inc.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAj1GhcYACgkQ9Y3/iTTCEDlW3gCaAoGvIL6f6K63ZA/nsr+yj0SX
He8AoKuKFwBuPXs7uasvF04uTUH+P2Hn
=SXNr
-----END PGP SIGNATURE-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]