Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@is.elta.co.il>
To: Andrew Cagney <ac131313@ges.redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [rfc] Query Red Boot's i386 CPU id
Date: Thu, 29 Aug 2002 00:08:00 -0000	[thread overview]
Message-ID: <Pine.SUN.3.91.1020829080855.26003D-100000@is> (raw)
In-Reply-To: <3D6D4142.2070007@ges.redhat.com>


On Wed, 28 Aug 2002, Andrew Cagney wrote:

> Red Boot (Red Hat's boot monitor) includes a remote protocol extension 
> that allows the i386 processor's CPU id to be queried.
> 
> The attached, written by Fernando Nasser, makes two things possible:
> 
> - auto display of the cpu on a connect vis:
> 
> (gdb) target remote /dev/ttyS0
> Remote debugging using /dev/ttyS0
> Genuine Intel Pentium(R) III processor [Coppermine]
> Processor Family: 6 Model: 8 Stepping: 0
> 
> - a command to query the cpuid (info cpu).
> 
> The actual CPU information is determined using a small file database 
> (installed in ..../share/gdb/i386-cpuid).
> 
> Comments on how this was implemented, and what, if anything, could be 
> integrated into GDB, welcome.

A few comments:

  (1) Why is this feature implemented for remote targets only?  Why is 
      the database of CPU ids installed only for embedded builds?

  (2) The GDB_EXEC_PREFIX variable is new, right?  If so, we should 
      probably discuss whether we should introduce it or use 
      ${prefix}/share/gdb instead (or maybe use GDB_EXEC_PREFIX to 
      override the share/gdb place).  I cannot quite figure out from the 
      code how is this variable used, since the code calls getenv but 
      doesn't do anything with the result IIRC.

      In any case, GDB_EXEC_PREFIX, if used, should be documented.

  (3) We should add code/data for identification of AMD CPUs, I think.  
      They also support CPUID.


  reply	other threads:[~2002-08-29  5:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-28 15:20 Andrew Cagney
2002-08-29  0:08 ` Eli Zaretskii [this message]
2002-08-29 16:01   ` Mark Kettenis
2002-08-29 16:44     ` Daniel Jacobowitz
2002-08-30 12:10     ` Eli Zaretskii
2002-08-30  6:52   ` Michal Ludvig
2002-08-29 17:30 ` Daniel Jacobowitz
2002-08-30 13:08   ` Andrew Cagney

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=Pine.SUN.3.91.1020829080855.26003D-100000@is \
    --to=eliz@is.elta.co.il \
    --cc=ac131313@ges.redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    /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