Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA]: config stuff for x86_64
@ 2001-07-25  0:07 Jiri Smid
  2001-07-25 11:10 ` Andrew Cagney
  0 siblings, 1 reply; 3+ messages in thread
From: Jiri Smid @ 2001-07-25  0:07 UTC (permalink / raw)
  To: gdb-patches; +Cc: ac131313

Hello,

  I am working on new target - AMD 64 bit processor and I want to start
with committing changes to mainline.

Andrew Cagney <ac131313@cygnus.com> writes:

> If you can then just submit a two line minimal patch (to config say?) I'll have
> a reason to get you into the write after approval list.

Here is the first patch to config files:

Index: gdb/ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.1511
diff -c -3 -p -r1.1511 ChangeLog
*** ChangeLog	2001/07/24 21:51:36	1.1511
--- ChangeLog	2001/07/25 07:03:48
***************
*** 1,3 ****
--- 1,8 ----
+ 2001-07-25  Jiri Smid	<smid@suse.cz>
+ 
+ 	* configure.host: Recognize x86_64-*-linux*.
+ 	* configure.tgt: Likewise.
+ 
  2001-07-24  Stephen P. Smith <ischis2@home.com>
  
  	* MAINTAINERS (Stephen P. Smith): Added to write after approval 
Index: gdb/configure.host
===================================================================
RCS file: /cvs/src/src/gdb/configure.host,v
retrieving revision 1.23
diff -c -3 -p -r1.23 configure.host
*** configure.host	2001/07/10 20:41:54	1.23
--- configure.host	2001/07/25 07:03:48
*************** mips*)			gdb_host_cpu=mips ;;
*** 20,25 ****
--- 20,26 ----
  powerpc*)		gdb_host_cpu=powerpc ;;
  sparc64)		gdb_host_cpu=sparc ;;
  s390*)			gdb_host_cpu=s390 ;;
+ x86_64*)		gdb_host_cpu=i386 ;;
  *)			gdb_host_cpu=$host_cpu ;;
  
  esac
*************** xscale-*-*)		gdb_host=arm ;;
*** 162,166 ****
--- 163,169 ----
  vax-*-bsd*)		gdb_host=vaxbsd ;;
  vax-*-ultrix2*)		gdb_host=vaxult2 ;;
  vax-*-ultrix*)		gdb_host=vaxult ;;
+ 
+ x86_64-*-linux*)	gdb_host=x86_64 ;;
  
  esac
Index: gdb/configure.tgt
===================================================================
RCS file: /cvs/src/src/gdb/configure.tgt,v
retrieving revision 1.34
diff -c -3 -p -r1.34 configure.tgt
*** configure.tgt	2001/07/19 05:10:38	1.34
--- configure.tgt	2001/07/25 07:03:48
*************** s390*)			gdb_target_cpu=s390 ;;
*** 27,32 ****
--- 27,33 ----
  strongarm*)		gdb_target_cpu=arm ;;
  xscale*)		gdb_target_cpu=arm ;;
  v850*)			gdb_target_cpu=v850 ;;
+ x86_64*)		gdb_target_cpu=i386 ;;
  *)			gdb_target_cpu=$target_cpu ;;
  
  esac
*************** v850*-*-*)		gdb_target=v850
*** 312,317 ****
--- 313,321 ----
  			;;
  
  # OBSOLETE w65-*-*)		gdb_target=w65 ;;
+ 
+ x86_64-*-linux*)	gdb_target=x86_64
+  		configdirs="${configdirs} gdbserver" ;;
  
  z8k-*-coff*)		gdb_target=z8k ;;
  



-- 
Jiri Smid

---------------------------------------------------------------------
SuSE CR, s.r.o.                                 e-mail: smid@suse.cz
Drahobejlova 27                                tel:+420 2 83095 373
190 00 Praha 9                                 fax:+420 2 83095 374
Ceska republika                                http://www.suse.cz


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFA]: config stuff for x86_64
  2001-07-25  0:07 [RFA]: config stuff for x86_64 Jiri Smid
@ 2001-07-25 11:10 ` Andrew Cagney
  2001-07-25 11:44   ` Tom Tromey
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cagney @ 2001-07-25 11:10 UTC (permalink / raw)
  To: Jiri Smid; +Cc: gdb-patches

> Hello,
> 
>   I am working on new target - AMD 64 bit processor and I want to start
> with committing changes to mainline.
> 
> Andrew Cagney <ac131313@cygnus.com> writes:
> 
> 
>> If you can then just submit a two line minimal patch (to config say?) I'll have
>> a reason to get you into the write after approval list.


FYI,

The patch itself is ok, the ChangeLog isn't.  ChangeLogs need to be 
extracted from the diff.

The rationale is simple, a ChangeLog diff never applies correctly.  In 
fact, it always applies incorrectly acting like a virus inserting its 
self into the ChangeLog file at some random location.

almost,
	Andrew


Hello,

   I am working on new target - AMD 64 bit processor and I want to start
with committing changes to mainline.

Andrew Cagney <ac131313@cygnus.com> writes:


 > If you can then just submit a two line minimal patch (to config say?) 
I'll have
 > a reason to get you into the write after approval list.


Here is the first patch to config files:

Index: gdb/ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.1511
diff -c -3 -p -r1.1511 ChangeLog
*** ChangeLog	2001/07/24 21:51:36	1.1511
--- ChangeLog	2001/07/25 07:03:48
***************
*** 1,3 ****
--- 1,8 ----
+ 2001-07-25  Jiri Smid	<smid@suse.cz>
+
+ 	* configure.host: Recognize x86_64-*-linux*.
+ 	* configure.tgt: Likewise.
+
   2001-07-24  Stephen P. Smith <ischis2@home.com>
* MAINTAINERS (Stephen P. Smith): Added to write after approval
Index: gdb/configure.host
===================================================================
RCS file: /cvs/src/src/gdb/configure.host,v
retrieving revision 1.23
diff -c -3 -p -r1.23 configure.host
*** configure.host	2001/07/10 20:41:54	1.23
--- configure.host	2001/07/25 07:03:48
*************** mips*)			gdb_host_cpu=mips ;;
*** 20,25 ****
--- 20,26 ----
   powerpc*)		gdb_host_cpu=powerpc ;;
   sparc64)		gdb_host_cpu=sparc ;;
   s390*)			gdb_host_cpu=s390 ;;
+ x86_64*)		gdb_host_cpu=i386 ;;
   *)			gdb_host_cpu=$host_cpu ;;

   esac
*************** xscale-*-*)		gdb_host=arm ;;
*** 162,166 ****
--- 163,169 ----
   vax-*-bsd*)		gdb_host=vaxbsd ;;
   vax-*-ultrix2*)		gdb_host=vaxult2 ;;
   vax-*-ultrix*)		gdb_host=vaxult ;;
+
+ x86_64-*-linux*)	gdb_host=x86_64 ;;

   esac
Index: gdb/configure.tgt
===================================================================
RCS file: /cvs/src/src/gdb/configure.tgt,v
retrieving revision 1.34
diff -c -3 -p -r1.34 configure.tgt
*** configure.tgt	2001/07/19 05:10:38	1.34
--- configure.tgt	2001/07/25 07:03:48
*************** s390*)			gdb_target_cpu=s390 ;;
*** 27,32 ****
--- 27,33 ----
   strongarm*)		gdb_target_cpu=arm ;;
   xscale*)		gdb_target_cpu=arm ;;
   v850*)			gdb_target_cpu=v850 ;;
+ x86_64*)		gdb_target_cpu=i386 ;;
   *)			gdb_target_cpu=$target_cpu ;;

   esac
*************** v850*-*-*)		gdb_target=v850
*** 312,317 ****
--- 313,321 ----
   			;;

   # OBSOLETE w65-*-*)		gdb_target=w65 ;;
+
+ x86_64-*-linux*)	gdb_target=x86_64
+  		configdirs="${configdirs} gdbserver" ;;

   z8k-*-coff*)		gdb_target=z8k ;;







> Here is the first patch to config files:
> 
> Index: gdb/ChangeLog
> ===================================================================
> RCS file: /cvs/src/src/gdb/ChangeLog,v
> retrieving revision 1.1511
> diff -c -3 -p -r1.1511 ChangeLog
> *** ChangeLog	2001/07/24 21:51:36	1.1511
> --- ChangeLog	2001/07/25 07:03:48
> ***************
> *** 1,3 ****
> --- 1,8 ----
> + 2001-07-25  Jiri Smid	<smid@suse.cz>
> + 
> + 	* configure.host: Recognize x86_64-*-linux*.
> + 	* configure.tgt: Likewise.
> + 
>   2001-07-24  Stephen P. Smith <ischis2@home.com>
> * MAINTAINERS (Stephen P. Smith): Added to write after approval 
> Index: gdb/configure.host
> ===================================================================
> RCS file: /cvs/src/src/gdb/configure.host,v
> retrieving revision 1.23
> diff -c -3 -p -r1.23 configure.host
> *** configure.host	2001/07/10 20:41:54	1.23
> --- configure.host	2001/07/25 07:03:48
> *************** mips*)			gdb_host_cpu=mips ;;
> *** 20,25 ****
> --- 20,26 ----
>   powerpc*)		gdb_host_cpu=powerpc ;;
>   sparc64)		gdb_host_cpu=sparc ;;
>   s390*)			gdb_host_cpu=s390 ;;
> + x86_64*)		gdb_host_cpu=i386 ;;
>   *)			gdb_host_cpu=$host_cpu ;;
>   
>   esac
> *************** xscale-*-*)		gdb_host=arm ;;
> *** 162,166 ****
> --- 163,169 ----
>   vax-*-bsd*)		gdb_host=vaxbsd ;;
>   vax-*-ultrix2*)		gdb_host=vaxult2 ;;
>   vax-*-ultrix*)		gdb_host=vaxult ;;
> + 
> + x86_64-*-linux*)	gdb_host=x86_64 ;;
>   
>   esac
> Index: gdb/configure.tgt
> ===================================================================
> RCS file: /cvs/src/src/gdb/configure.tgt,v
> retrieving revision 1.34
> diff -c -3 -p -r1.34 configure.tgt
> *** configure.tgt	2001/07/19 05:10:38	1.34
> --- configure.tgt	2001/07/25 07:03:48
> *************** s390*)			gdb_target_cpu=s390 ;;
> *** 27,32 ****
> --- 27,33 ----
>   strongarm*)		gdb_target_cpu=arm ;;
>   xscale*)		gdb_target_cpu=arm ;;
>   v850*)			gdb_target_cpu=v850 ;;
> + x86_64*)		gdb_target_cpu=i386 ;;
>   *)			gdb_target_cpu=$target_cpu ;;
>   
>   esac
> *************** v850*-*-*)		gdb_target=v850
> *** 312,317 ****
> --- 313,321 ----
>   			;;
>   
>   # OBSOLETE w65-*-*)		gdb_target=w65 ;;
> + 
> + x86_64-*-linux*)	gdb_target=x86_64
> +  		configdirs="${configdirs} gdbserver" ;;
>   
>   z8k-*-coff*)		gdb_target=z8k ;;
>   
> 
> 
> 
> 



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFA]: config stuff for x86_64
  2001-07-25 11:10 ` Andrew Cagney
@ 2001-07-25 11:44   ` Tom Tromey
  0 siblings, 0 replies; 3+ messages in thread
From: Tom Tromey @ 2001-07-25 11:44 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: Jiri Smid, gdb-patches

>>>>> "Andrew" == Andrew Cagney <ac131313@cygnus.com> writes:

Andrew> The rationale is simple, a ChangeLog diff never applies
Andrew> correctly.  In fact, it always applies incorrectly acting like
Andrew> a virus inserting its self into the ChangeLog file at some
Andrew> random location.

Dunno if you care, but Alexandre Oliva has a nice set of cvs/patch
utilities that solve this problem.  One, `clcleanup', turns a patch
with a ChangeLog patch entry into a patch with a specially-formatted
ChangeLog entry.  Then you can run this through `cl2patch' and it will
turn the specially-formatted entry into a patch that will apply the
ChangeLog entry to the top of the current ChangeLog.  I use this all
the time.  It is very convenient.

You can get these programs from subversions.gnu.org:/cvs, module
`cvs-utils'.

Tom


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-07-25 11:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-25  0:07 [RFA]: config stuff for x86_64 Jiri Smid
2001-07-25 11:10 ` Andrew Cagney
2001-07-25 11:44   ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox