1 Mar 2010 01:15
Re: [patch] Add support for <struct> and <flags> in target descriptions
H.J. Lu <hjl.tools <at> gmail.com>
2010-03-01 00:15:06 GMT
2010-03-01 00:15:06 GMT
On Mon, Feb 22, 2010 at 8:45 AM, Daniel Jacobowitz <dan <at> codesourcery.com> wrote: > Hi H.J., > > This patch adds <flags> support to the XML language. Could you try > using this to move the two x86 flags registers from out of > target-descriptions.c? > > The flags support is straightforward and covered by the manual. > It's not tested because I couldn't find a way to do so; you can't > ptype a flags register, and you can't add dummy registers whose value > you can get at, only for ptype. > > The patch also adds <struct>, which is a little more interesting. > It's got two forms: > > * Register containing integer bitfields. Each field must be > explicitly positioned. The size must be pre-declared - otherwise > the representation GDB uses for big-endian bitfields can't figure out > how far from the MSB edge of the register the field is. > > * Register containing typed non-bitfield structures. Each field must > be implicitly positioned. There's no support for padding. > > These are somewhat annoying limitations, but they suffice for > everything I've needed this for since I wrote the patch, which was > originally several years ago; it's been stuck in my submission queue > because it was tangled up with other local patches. Since they are > "must" restrictions, they are easy to lift in the future; we can make > GDB more permissive. >(Continue reading)
Yep, I agree that this is the way to go. I checked on AIX 5.3,
this function is not declared in any of the /usr/include/*.h file.
> > but: 6.1 has the same break point problems as 5.3:
> > - with no breakpoint before 1st run, break points can't be set later at all
> > - otherwise break points seem to work
This is indeed very weird. I don't see any of that on our end.
I follow the AIX status relatively closely - even if we don't run
the AIX testsuite nightly, we run the AdaCore one every second day.
The AIX port should be in good shape! You might want to try AdaCore's
sources to see if it makes any difference (we might have forgotten to
contribute a couple of patches), but I don't think so.
RSS Feed