From: Yao Qi <qiyaoltc@gmail.com>
To: James Murray <james@nscc.info>
Cc: gdb@sourceware.org
Subject: Re: How to disable Altivec registers in powerpc GDB ?
Date: Fri, 01 May 2015 13:56:00 -0000 [thread overview]
Message-ID: <861tj0wgdy.fsf@gmail.com> (raw)
In-Reply-To: <1430437509.31953.298.camel@jsm3> (James Murray's message of "Fri, 01 May 2015 00:45:09 +0100")
James Murray <james@nscc.info> writes:
> gdb appears to think that my target has the altivec vector registers,
> although it does not. It is a Freescale MPC5xxx embedded part.
>
> e.g. when trying to debug the embedded target via Eclipse, I'm seeing
> this:
> (gdb)
> 5624-data-list-register-names
> 5624^done,register-names=["r0","r1","r2","r3","r4","r5","r6","r7","r8","r9","r10","r11","r12","r13","r14","r15","r16","r17","r18","r19","r20","r21","r22","r23","r24","r25","r26","r27","r28","r29","r30","r31","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","f12","f13","f14","f15","f16","f17","f18","f19","f20","f21","f22","f23","f24","f25","f26","f27","f28","f29","f30","f31","pc","msr","cr","lr","ctr","xer","fpscr","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","vr0","vr1","vr2","vr3","vr4","vr5","vr6","vr7","vr8","vr9","vr10","vr11","vr12","vr13","vr14","vr15","vr16","vr17","vr18","vr19","vr20","vr21","vr22","vr23","vr24","vr25","vr26","vr27","vr28","vr29","vr30","vr31","vscr","vrsave","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","dl0","dl1","dl2","dl3","dl4","dl5","dl6","dl7","dl8","dl9","dl10","dl11","dl12","dl13","dl14","dl15"]
> (gdb)
>
> The target doesn't have that many registers and the remote debugger
> returns an error code and drops the gdb connection if any are accessed.
> I'd like gdb to only report the basic 32 GPRs and 8 specials.
Your debug stub/probe should return the right target description for
your processor, to tell GDB that processor doesn't have these altivec
registers. See
https://sourceware.org/gdb/current/onlinedocs/gdb/Target-Descriptions.html
--
Yao (齐尧)
next prev parent reply other threads:[~2015-05-01 13:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-30 23:44 James Murray
2015-05-01 13:56 ` Yao Qi [this message]
2015-05-01 14:32 ` James Murray
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=861tj0wgdy.fsf@gmail.com \
--to=qiyaoltc@gmail.com \
--cc=gdb@sourceware.org \
--cc=james@nscc.info \
/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