Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* GDB: Add microblaze-*-rtems*
@ 2012-05-08 13:31 Joel Sherrill
  2012-05-08 13:54 ` Mark Kettenis
  2012-05-15 13:29 ` Michael Eager
  0 siblings, 2 replies; 4+ messages in thread
From: Joel Sherrill @ 2012-05-08 13:31 UTC (permalink / raw)
  To: gdb-patches

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

OK to apply?

2012-05-07  Joel Sherrill <joel.sherrill@oarcorp.com>

     * configure.tgt (microblaze*-*-rtems*): New target.

-- 
Joel Sherrill, Ph.D.             Director of Research&   Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
     Support Available             (256) 722-9985



[-- Attachment #2: gdb-mblaze.diff --]
[-- Type: text/x-patch, Size: 702 bytes --]

Index: gdb/configure.tgt
===================================================================
RCS file: /cvs/src/src/gdb/configure.tgt,v
retrieving revision 1.253
diff -u -r1.253 configure.tgt
--- gdb/configure.tgt	24 Apr 2012 03:33:16 -0000	1.253
+++ gdb/configure.tgt	7 May 2012 20:15:54 -0000
@@ -331,8 +331,8 @@
 			monitor.o dsrec.o solib-svr4.o symfile-mem.o linux-tdep.o"
 	gdb_sim=../sim/microblaze/libsim.a
 	;;
-microblaze*-*-*)
-	# Target: Xilinx MicroBlaze running standalone
+microblaze*-*-* | microblaze*-*-rtems*)
+	# Target: Xilinx MicroBlaze running standalone (or RTEMS)
 	gdb_target_obs="microblaze-tdep.o microblaze-rom.o monitor.o dsrec.o"
 	gdb_sim=../sim/microblaze/libsim.a
 	;;

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

* Re: GDB: Add microblaze-*-rtems*
  2012-05-08 13:31 GDB: Add microblaze-*-rtems* Joel Sherrill
@ 2012-05-08 13:54 ` Mark Kettenis
  2012-05-08 13:57   ` Joel Sherrill
  2012-05-15 13:29 ` Michael Eager
  1 sibling, 1 reply; 4+ messages in thread
From: Mark Kettenis @ 2012-05-08 13:54 UTC (permalink / raw)
  To: joel.sherrill; +Cc: gdb-patches

> Date: Tue, 8 May 2012 08:30:58 -0500
> From: Joel Sherrill <joel.sherrill@oarcorp.com>
> 
> OK to apply?
> 
> 2012-05-07  Joel Sherrill <joel.sherrill@oarcorp.com>
> 
>      * configure.tgt (microblaze*-*-rtems*): New target.

Eh, this diff is pretty much pointless isn't it?  It seems that from
GDB's viewpoint, RTEMS is effectively "bare metal".  I could live with
changing the comment if you think "running standalone" isn't accurate
enough, but I don't think we should add redundant patterns like this.

> Index: gdb/configure.tgt
> ===================================================================
> RCS file: /cvs/src/src/gdb/configure.tgt,v
> retrieving revision 1.253
> diff -u -r1.253 configure.tgt
> --- gdb/configure.tgt	24 Apr 2012 03:33:16 -0000	1.253
> +++ gdb/configure.tgt	7 May 2012 20:15:54 -0000
> @@ -331,8 +331,8 @@
>  			monitor.o dsrec.o solib-svr4.o symfile-mem.o linux-tdep.o"
>  	gdb_sim=../sim/microblaze/libsim.a
>  	;;
> -microblaze*-*-*)
> -	# Target: Xilinx MicroBlaze running standalone
> +microblaze*-*-* | microblaze*-*-rtems*)
> +	# Target: Xilinx MicroBlaze running standalone (or RTEMS)
>  	gdb_target_obs="microblaze-tdep.o microblaze-rom.o monitor.o dsrec.o"
>  	gdb_sim=../sim/microblaze/libsim.a
>  	;;


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

* Re: GDB: Add microblaze-*-rtems*
  2012-05-08 13:54 ` Mark Kettenis
@ 2012-05-08 13:57   ` Joel Sherrill
  0 siblings, 0 replies; 4+ messages in thread
From: Joel Sherrill @ 2012-05-08 13:57 UTC (permalink / raw)
  To: Mark Kettenis; +Cc: gdb-patches

On 05/08/2012 08:54 AM, Mark Kettenis wrote:
>> Date: Tue, 8 May 2012 08:30:58 -0500
>> From: Joel Sherrill<joel.sherrill@oarcorp.com>
>>
>> OK to apply?
>>
>> 2012-05-07  Joel Sherrill<joel.sherrill@oarcorp.com>
>>
>>       * configure.tgt (microblaze*-*-rtems*): New target.
> Eh, this diff is pretty much pointless isn't it?  It seems that from
> GDB's viewpoint, RTEMS is effectively "bare metal".  I could live with
> changing the comment if you think "running standalone" isn't accurate
> enough, but I don't think we should add redundant patterns like this.
RTEMS is over 20 years old. In the past, I have seen bare metal
targets get changed without someone realizing they were
impacting RTEMS. This is as much advertising the target is
something to think about when you are hacking as anything
else.

I am ok with just merging it as a comment though if that's
sufficient to ensure that someone hacking here will consider
that they are having broader impact than is obvious.
>
>> Index: gdb/configure.tgt
>> ===================================================================
>> RCS file: /cvs/src/src/gdb/configure.tgt,v
>> retrieving revision 1.253
>> diff -u -r1.253 configure.tgt
>> --- gdb/configure.tgt	24 Apr 2012 03:33:16 -0000	1.253
>> +++ gdb/configure.tgt	7 May 2012 20:15:54 -0000
>> @@ -331,8 +331,8 @@
>>   			monitor.o dsrec.o solib-svr4.o symfile-mem.o linux-tdep.o"
>>   	gdb_sim=../sim/microblaze/libsim.a
>>   	;;
>> -microblaze*-*-*)
>> -	# Target: Xilinx MicroBlaze running standalone
>> +microblaze*-*-* | microblaze*-*-rtems*)
>> +	# Target: Xilinx MicroBlaze running standalone (or RTEMS)
>>   	gdb_target_obs="microblaze-tdep.o microblaze-rom.o monitor.o dsrec.o"
>>   	gdb_sim=../sim/microblaze/libsim.a
>>   	;;


-- 
Joel Sherrill, Ph.D.             Director of Research&   Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
     Support Available             (256) 722-9985



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

* Re: GDB: Add microblaze-*-rtems*
  2012-05-08 13:31 GDB: Add microblaze-*-rtems* Joel Sherrill
  2012-05-08 13:54 ` Mark Kettenis
@ 2012-05-15 13:29 ` Michael Eager
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Eager @ 2012-05-15 13:29 UTC (permalink / raw)
  To: Joel Sherrill; +Cc: gdb-patches

On 05/08/2012 06:30 AM, Joel Sherrill wrote:
> OK to apply?
>
> 2012-05-07 Joel Sherrill <joel.sherrill@oarcorp.com>
>
> * configure.tgt (microblaze*-*-rtems*): New target.

The problem with the patch is that the microblaze*-*-rtems* pattern
will never be tested, since all targets (including microblaze-gnu-rtems)
will be matched by microblaze*-*-*.

It would be better to have a separate case which matches
microblaze*-*-rtems* preceding the microblaze*-*-* case.  Although
Mark's comment about this being a redundant definition of hard
metal target remains valid.

I'm skeptical that adding microblaze-*-rtems to the targets will
have any effect on people making target changes which impact
RTEMS, especially if they build with --target=microblaze-gnu-elf.

-- 
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077


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

end of thread, other threads:[~2012-05-15 13:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-08 13:31 GDB: Add microblaze-*-rtems* Joel Sherrill
2012-05-08 13:54 ` Mark Kettenis
2012-05-08 13:57   ` Joel Sherrill
2012-05-15 13:29 ` Michael Eager

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