From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2739 invoked by alias); 22 Dec 2002 18:25:36 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 2727 invoked from network); 22 Dec 2002 18:25:33 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (62.163.169.250) by 209.249.29.67 with SMTP; 22 Dec 2002 18:25:33 -0000 Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2]) by walton.kettenis.dyndns.org (8.12.6/8.12.5) with ESMTP id gBMIPA6C000280; Sun, 22 Dec 2002 19:25:10 +0100 (CET) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (localhost [127.0.0.1]) by elgar.kettenis.dyndns.org (8.12.6/8.12.6) with ESMTP id gBMIPADw010992; Sun, 22 Dec 2002 19:25:10 +0100 (CET) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost) by elgar.kettenis.dyndns.org (8.12.6/8.12.6/Submit) id gBMIP9hb010989; Sun, 22 Dec 2002 19:25:09 +0100 (CET) Date: Sun, 22 Dec 2002 11:45:00 -0000 Message-Id: <200212221825.gBMIP9hb010989@elgar.kettenis.dyndns.org> From: Mark Kettenis To: eliz@is.elta.co.il CC: gdb-patches@sources.redhat.com In-reply-to: (message from Eli Zaretskii on Sun, 22 Dec 2002 08:16:20 +0200 (IST)) Subject: Re: [PATCH] Add machine type to gdbarch_register_osbi References: X-SW-Source: 2002-12/txt/msg00622.txt.bz2 Date: Sun, 22 Dec 2002 08:16:20 +0200 (IST) From: Eli Zaretskii On Sat, 21 Dec 2002, Mark Kettenis wrote: > Last week brought us two new gdbarch_init_osabi calls, so below is > what I actually checked in. Is this function documented in gdbint.texinfo? If so, the docs needs to be updated as well. How about the attached patch? Mark Index: doc/ChangeLog from Mark Kettenis * gdbint.texinfo (Target Architecture Definition): Update description of gdbarch_register_osabi. Index: doc/gdbint.texinfo =================================================================== RCS file: /cvs/src/src/gdb/doc/gdbint.texinfo,v retrieving revision 1.110 diff -u -p -r1.110 gdbint.texinfo --- doc/gdbint.texinfo 11 Dec 2002 02:26:38 -0000 1.110 +++ doc/gdbint.texinfo 22 Dec 2002 18:24:45 -0000 @@ -2424,9 +2424,12 @@ Here are the functions that make up the Return the name of the OS ABI corresponding to @var{osabi}. @end deftypefun -@deftypefun void gdbarch_register_osabi (enum bfd_architecture @var{arch}, enum gdb_osabi @var{osabi}, void (*@var{init_osabi})(struct gdbarch_info @var{info}, struct gdbarch *@var{gdbarch})) +@deftypefun void gdbarch_register_osabi (enum bfd_architecture @var{arch}, unsigned long @var{machine}, enum gdb_osabi @var{osabi}, void (*@var{init_osabi})(struct gdbarch_info @var{info}, struct gdbarch *@var{gdbarch})) Register the OS ABI handler specified by @var{init_osabi} for the -architecture/OS ABI pair specified by @var{arch} and @var{osabi}. +architecture, machine type and OS ABI specified by @var{arch}, +@var{machine} and @var{osabi}. In most cases, a value of zero for the +machine type, which implies the architecture's default machine type, +will suffice. @end deftypefun @deftypefun void gdbarch_register_osabi_sniffer (enum bfd_architecture @var{arch}, enum bfd_flavour @var{flavour}, enum gdb_osabi (*@var{sniffer})(bfd *@var{abfd}))