public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* set architecture for MPC8xx
@ 2004-11-10 20:00 Schneider, Jan (GE51)
  2004-11-10 23:53 ` Steven Johnson
  0 siblings, 1 reply; 7+ messages in thread
From: Schneider, Jan (GE51) @ 2004-11-10 20:00 UTC (permalink / raw)
  To: 'gdb@sources.redhat.com'

Hello,

I have tried the "set architecture" command for the powerpc MPC8xx. After
this I see a lot of new registers.
But for me it seems that these registers aren't really taking effects after
changing their values.
I found them in rs6000-tdep.c.

Is there a way to use these additional registers sensible?

thanks

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

* Re: set architecture for MPC8xx
  2004-11-10 20:00 set architecture for MPC8xx Schneider, Jan (GE51)
@ 2004-11-10 23:53 ` Steven Johnson
  2004-11-11 15:07   ` Fabian Cenedese
  0 siblings, 1 reply; 7+ messages in thread
From: Steven Johnson @ 2004-11-10 23:53 UTC (permalink / raw)
  To: Schneider, Jan (GE51); +Cc: 'gdb@sources.redhat.com'

Your target stub needs to support the "Architecture" otherwise it wont 
know how to set or get the values of the registers.

If the target stub only reports/handles registers for the "generic" 
architecture, you will need to change it to handle all of the other 
registers.

Steven

Schneider, Jan (GE51) wrote:

>Hello,
>
>I have tried the "set architecture" command for the powerpc MPC8xx. After
>this I see a lot of new registers.
>But for me it seems that these registers aren't really taking effects after
>changing their values.
>I found them in rs6000-tdep.c.
>
>Is there a way to use these additional registers sensible?
>
>thanks
>
>
>  
>

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

* Re: set architecture for MPC8xx
  2004-11-10 23:53 ` Steven Johnson
@ 2004-11-11 15:07   ` Fabian Cenedese
  2004-11-12  2:18     ` Steven Johnson
  0 siblings, 1 reply; 7+ messages in thread
From: Fabian Cenedese @ 2004-11-11 15:07 UTC (permalink / raw)
  To: gdb


>>I have tried the "set architecture" command for the powerpc MPC8xx. After
>>this I see a lot of new registers.
>>But for me it seems that these registers aren't really taking effects after
>>changing their values.
>>I found them in rs6000-tdep.c.
>>
>>Is there a way to use these additional registers sensible?
>
>Your target stub needs to support the "Architecture" otherwise it wont know how to set or get the values of the registers.
>
>If the target stub only reports/handles registers for the "generic" architecture, you will need to change it to handle all of the other registers.

Is there a way to tell the stub the architecture gdb was set to? (Other
than with the monitor command.)

Thanks

bye  Fabi


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

* Re: set architecture for MPC8xx
  2004-11-11 15:07   ` Fabian Cenedese
@ 2004-11-12  2:18     ` Steven Johnson
  2004-11-12 15:30       ` Andrew Cagney
  0 siblings, 1 reply; 7+ messages in thread
From: Steven Johnson @ 2004-11-12  2:18 UTC (permalink / raw)
  To: Fabian Cenedese; +Cc: gdb

Fabian Cenedese wrote:

>Is there a way to tell the stub the architecture gdb was set to? (Other
>than with the monitor command.)
>  
>
That would be nice, but unfortunaltey not to my knowledge.  The stub I 
wrote for MPC860, only worked with that architecture, and didnt work 
with the generic powerpc architecture.  It saved me switching, when I 
never used anything but the MPC8XX Architecture with the stub.

The counter would be nice, for the stub to tell GDB what architecture/s 
it actually supports, so GDB takes on the appropriate view.  But also, 
stubs cant do this either.

Hope this answers the question.

Steven

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

* Re: set architecture for MPC8xx
  2004-11-12  2:18     ` Steven Johnson
@ 2004-11-12 15:30       ` Andrew Cagney
  0 siblings, 0 replies; 7+ messages in thread
From: Andrew Cagney @ 2004-11-12 15:30 UTC (permalink / raw)
  To: Steven Johnson; +Cc: Fabian Cenedese, gdb

Steven Johnson wrote:
> Fabian Cenedese wrote:
> 
>> Is there a way to tell the stub the architecture gdb was set to? (Other
>> than with the monitor command.)
>>  
>>
> That would be nice, but unfortunaltey not to my knowledge.  The stub I 
> wrote for MPC860, only worked with that architecture, and didnt work 
> with the generic powerpc architecture.  It saved me switching, when I 
> never used anything but the MPC8XX Architecture with the stub.
> 
> The counter would be nice, for the stub to tell GDB what architecture/s 
> it actually supports, so GDB takes on the appropriate view.

Yes.

Perhaphs a T packet extension?
http://sources.redhat.com/gdb/papers/multi-arch/real-multi-arch/index.html#SEC43

Andrew


> But also, 
> stubs cant do this either.
> 
> Hope this answers the question.
> 
> Steven
> 

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

* Re: set architecture for MPC8xx
  2004-11-11 16:49 Schneider, Jan (GE51)
@ 2004-11-12  2:21 ` Steven Johnson
  0 siblings, 0 replies; 7+ messages in thread
From: Steven Johnson @ 2004-11-12  2:21 UTC (permalink / raw)
  To: Schneider, Jan (GE51); +Cc: 'gdb@sources.redhat.com'

Schneider, Jan (GE51) wrote:

>ok.
>I thought I only need such stub for remote debugging.
>Where can I found this stub?
>or do I have to implement one?
>
>Jan
>
>  
>
Sorry,

I assumed (obviously incorrectly) you were remote debugging.  I dont 
know anything about how architectures work if you use a simulator, or 
for hosted local debugging.

Steven

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

* RE: set architecture for MPC8xx
@ 2004-11-11 16:49 Schneider, Jan (GE51)
  2004-11-12  2:21 ` Steven Johnson
  0 siblings, 1 reply; 7+ messages in thread
From: Schneider, Jan (GE51) @ 2004-11-11 16:49 UTC (permalink / raw)
  To: 'Steven Johnson'; +Cc: 'gdb@sources.redhat.com'

ok.
I thought I only need such stub for remote debugging.
Where can I found this stub?
or do I have to implement one?

Jan

-----Original Message-----
From: Steven Johnson [mailto:sjohnson@neurizon.net]
Sent: Wednesday, November 10, 2004 11:12 PM
To: Schneider, Jan (GE51)
Cc: 'gdb@sources.redhat.com'
Subject: Re: set architecture for MPC8xx


Your target stub needs to support the "Architecture" otherwise it wont 
know how to set or get the values of the registers.

If the target stub only reports/handles registers for the "generic" 
architecture, you will need to change it to handle all of the other 
registers.

Steven

Schneider, Jan (GE51) wrote:

>Hello,
>
>I have tried the "set architecture" command for the powerpc MPC8xx. After
>this I see a lot of new registers.
>But for me it seems that these registers aren't really taking effects after
>changing their values.
>I found them in rs6000-tdep.c.
>
>Is there a way to use these additional registers sensible?
>
>thanks
>
>
>  
>

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

end of thread, other threads:[~2004-11-12 14:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-10 20:00 set architecture for MPC8xx Schneider, Jan (GE51)
2004-11-10 23:53 ` Steven Johnson
2004-11-11 15:07   ` Fabian Cenedese
2004-11-12  2:18     ` Steven Johnson
2004-11-12 15:30       ` Andrew Cagney
2004-11-11 16:49 Schneider, Jan (GE51)
2004-11-12  2:21 ` Steven Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).