Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Sérgio Durigan Júnior" <sergiodj@linux.vnet.ibm.com>
To: gdb-patches@sourceware.org
Cc: Steve Kargl <sgk@troutmask.apl.washington.edu>,
	        Joel Brobecker <brobecker@adacore.com>
Subject: Re: [PATCH] Fix building gdb-7.0 on x86_64-*-freebsd
Date: Sat, 17 Oct 2009 05:06:00 -0000	[thread overview]
Message-ID: <200910170205.58841.sergiodj@linux.vnet.ibm.com> (raw)
In-Reply-To: <20091017001631.GA60006@troutmask.apl.washington.edu>

On Friday 16 October 2009, Steve Kargl wrote:
> > > +#if (__FreeBSD_version <  800075)
> > >    regcache_raw_supply (regcache, AMD64_DS_REGNUM, &pcb->pcb_ds);
> > >    regcache_raw_supply (regcache, AMD64_ES_REGNUM, &pcb->pcb_es);
> > >    regcache_raw_supply (regcache, AMD64_FS_REGNUM, &pcb->pcb_fs);
> > >    regcache_raw_supply (regcache, AMD64_GS_REGNUM, &pcb->pcb_gs);
> > > +#endif
> 
> The above number 800075 means that any version of FreeBSD
> with __FreeBSD_version less than 800075 will have a struct pcb
> with the pcb_{fged} members.  Any version with __FreeBSD_version
> greater than or equal to 800075 will have these structure members
> removed.  The '8' in 800075 signifies the FreeBSD 8-branch.
> The '75' signifies that 75 changes have occurred on the FreeBSD
> 8-branch that might need special handling.  The removal of the
> struct members occurred on 2009-04-01 while the version number
> was bumped to 800075 on 2009-04-06.  It's the closest version
> number that will work in the '#if (...)'  that will allow the
> gdb-7.x branch to build on all versions of FreeBSD on the amd64
> architecture including the 8.0-Release Candidates (ie., the
> beta releases).


Hi Steve,

Thank you for this patch.  I believe you could add a comment explaining what 
this number means (just like you did above).  What do you think?

Just my two cents, as usual :-).

Regards,

-- 
Sérgio Durigan Júnior
Linux on Power Toolchain - Software Engineer
Linux Technology Center - LTC
IBM Brazil


  parent reply	other threads:[~2009-10-17  5:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-12 21:55 Steve Kargl
     [not found] ` <20091014050550.GV5272@adacore.com>
     [not found]   ` <1530bbfee75f68f9c32262460f1ec7f9.squirrel@webmail.xs4all.nl>
     [not found]     ` <20091015021317.GD5288@adacore.com>
     [not found]       ` <20091015230013.GA49371@troutmask.apl.washington.edu>
2009-10-16 23:22         ` Joel Brobecker
2009-10-17  0:17           ` Steve Kargl
2009-10-17  4:19             ` Joel Brobecker
2009-10-17  5:06             ` Sérgio Durigan Júnior [this message]
2009-10-19 19:53               ` Joel Brobecker
2009-10-19 20:34                 ` Steve Kargl

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=200910170205.58841.sergiodj@linux.vnet.ibm.com \
    --to=sergiodj@linux.vnet.ibm.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=sgk@troutmask.apl.washington.edu \
    /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