[Deja News Toolbar]

        [Complimentary Resources for Developers.]
                  Complimentary Resources for Developers.

[message/thread]
Message 1 of 1 for search                                              help
                                                              sponsored by:
gdb 4.17 on Solaris 7                                       [eBay]
Author:   Kaleb Keithley <kaleb@ics.com>
Date:     1998/11/25
Forum:    gnu.gdb.bug
 more headers  author posting history
  ------------------------------------------------------------------------

Attached are diffs I used to build gdb on Solaris 7 (a.k.a Solaris 2.7,
SunOS 5.7). Thus far I have only used the gdb built with these changes
on one trivial program.

--

Kaleb S. KEITHLEY
(kaleb@ics.com)

GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.7".

% diff -c gdb/config/sparc/xm-sun4sol2.h.orig gdb/config/sparc/xm-sun4sol2.h
*** gdb/config/sparc/xm-sun4sol2.h.orig  Wed Nov 25 05:34:34 1998
--- gdb/config/sparc/xm-sun4sol2.h       Wed Nov 25 05:12:46 1998
***************
*** 28,35 ****
--- 28,37 ----
  /* SVR4's can't seem to agree on what to call the type that contains the
     general registers.  Kludge around it with a #define.  */

+ #if 0
  #define       gregset_t       prgregset_t
  #define       fpregset_t      prfpregset_t
+ #endif

  /* These are not currently used in SVR4 (but should be, FIXME!).  */
  #undef        DO_DEFERRED_STORES

%diff -c gdb/sol-thread.c.orig gdb/sol-thread.c
*** gdb/sol-thread.c.orig       Wed Nov 25 05:22:28 1998
--- gdb/sol-thread.c    Wed Nov 25 05:27:46 1998
***************
*** 962,992 ****
     nothing.  */

  ps_err_e
! ps_pstop (const struct ps_prochandle *ph)
  {
    return PS_OK;
  }

  ps_err_e
! ps_pcontinue (const struct ps_prochandle *ph)
  {
    return PS_OK;
  }

  ps_err_e
! ps_lstop (const struct ps_prochandle *ph, lwpid_t lwpid)
  {
    return PS_OK;
  }

  ps_err_e
! ps_lcontinue (const struct ps_prochandle *ph, lwpid_t lwpid)
  {
    return PS_OK;
  }

  ps_err_e
! ps_pglobal_lookup (const struct ps_prochandle *ph, const char *ld_object_name,
                   const char *ld_symbol_name, paddr_t *ld_symbol_addr)
  {
    struct minimal_symbol *ms;
--- 962,992 ----
     nothing.  */

  ps_err_e
! ps_pstop (struct ps_prochandle *ph)
  {
    return PS_OK;
  }

  ps_err_e
! ps_pcontinue (struct ps_prochandle *ph)
  {
    return PS_OK;
  }

  ps_err_e
! ps_lstop (struct ps_prochandle *ph, lwpid_t lwpid)
  {
    return PS_OK;
  }

  ps_err_e
! ps_lcontinue (struct ps_prochandle *ph, lwpid_t lwpid)
  {
    return PS_OK;
  }

  ps_err_e
! ps_pglobal_lookup (struct ps_prochandle *ph, const char *ld_object_name,
                   const char *ld_symbol_name, paddr_t *ld_symbol_addr)
  {
    struct minimal_symbol *ms;
***************
*** 1046,1070 ****
  }

  ps_err_e
! ps_pdread (const struct ps_prochandle *ph, paddr_t addr, char *buf, int size)
  {
    return rw_common (0, ph, addr, buf, size);
  }

  ps_err_e
! ps_pdwrite (const struct ps_prochandle *ph, paddr_t addr, char *buf, int size)
  {
    return rw_common (1, ph, addr, buf, size);
  }

  ps_err_e
! ps_ptread (const struct ps_prochandle *ph, paddr_t addr, char *buf, int size)
  {
    return rw_common (0, ph, addr, buf, size);
  }

  ps_err_e
! ps_ptwrite (const struct ps_prochandle *ph, paddr_t addr, char *buf, int size)
  {
    return rw_common (1, ph, addr, buf, size);
  }
--- 1046,1070 ----
  }

  ps_err_e
! ps_pdread (struct ps_prochandle *ph, paddr_t addr, void *buf, size_t size)
  {
    return rw_common (0, ph, addr, buf, size);
  }

  ps_err_e
! ps_pdwrite (struct ps_prochandle *ph, paddr_t addr, const void *buf, size_t size)
  {
    return rw_common (1, ph, addr, buf, size);
  }

  ps_err_e
! ps_ptread (struct ps_prochandle *ph, paddr_t addr, void *buf, size_t size)
  {
    return rw_common (0, ph, addr, buf, size);
  }

  ps_err_e
! ps_ptwrite (struct ps_prochandle *ph, paddr_t addr, const void *buf, size_t size)
  {
    return rw_common (1, ph, addr, buf, size);
  }
***************
*** 1072,1078 ****
  /* Get integer regs */

  ps_err_e
! ps_lgetregs (const struct ps_prochandle *ph, lwpid_t lwpid,
             prgregset_t gregset)
  {
    struct cleanup *old_chain;
--- 1072,1078 ----
  /* Get integer regs */

  ps_err_e
! ps_lgetregs (struct ps_prochandle *ph, lwpid_t lwpid,
             prgregset_t gregset)
  {
    struct cleanup *old_chain;
***************
*** 1095,1101 ****
  /* Set integer regs */

  ps_err_e
! ps_lsetregs (const struct ps_prochandle *ph, lwpid_t lwpid,
             const prgregset_t gregset)
  {
    struct cleanup *old_chain;
--- 1095,1101 ----
  /* Set integer regs */

  ps_err_e
! ps_lsetregs (struct ps_prochandle *ph, lwpid_t lwpid,
             const prgregset_t gregset)
  {
    struct cleanup *old_chain;
***************
*** 1128,1134 ****
  /* Get size of extra register set.  Currently a noop.  */

  ps_err_e
! ps_lgetxregsize (const struct ps_prochandle *ph, lwpid_t lwpid, int *xregsize)
  {
  #if 0
    int lwp_fd;
--- 1128,1134 ----
  /* Get size of extra register set.  Currently a noop.  */

  ps_err_e
! ps_lgetxregsize (struct ps_prochandle *ph, lwpid_t lwpid, int *xregsize)
  {
  #if 0
    int lwp_fd;
***************
*** 1156,1162 ****
  /* Get extra register set.  Currently a noop.  */

  ps_err_e
! ps_lgetxregs (const struct ps_prochandle *ph, lwpid_t lwpid, caddr_t xregset)
  {
  #if 0
    int lwp_fd;
--- 1156,1162 ----
  /* Get extra register set.  Currently a noop.  */

  ps_err_e
! ps_lgetxregs (struct ps_prochandle *ph, lwpid_t lwpid, caddr_t xregset)
  {
  #if 0
    int lwp_fd;
***************
*** 1179,1185 ****
  /* Set extra register set.  Currently a noop.  */

  ps_err_e
! ps_lsetxregs (const struct ps_prochandle *ph, lwpid_t lwpid, caddr_t xregset)
  {
  #if 0
    int lwp_fd;
--- 1179,1185 ----
  /* Set extra register set.  Currently a noop.  */

  ps_err_e
! ps_lsetxregs (struct ps_prochandle *ph, lwpid_t lwpid, caddr_t xregset)
  {
  #if 0
    int lwp_fd;
***************
*** 1202,1208 ****
  /* Get floating-point regs.  */

  ps_err_e
! ps_lgetfpregs (const struct ps_prochandle *ph, lwpid_t lwpid,
               prfpregset_t *fpregset)
  {
    struct cleanup *old_chain;
--- 1202,1208 ----
  /* Get floating-point regs.  */

  ps_err_e
! ps_lgetfpregs (struct ps_prochandle *ph, lwpid_t lwpid,
               prfpregset_t *fpregset)
  {
    struct cleanup *old_chain;
***************
*** 1225,1231 ****
  /* Set floating-point regs.  */

  ps_err_e
! ps_lsetfpregs (const struct ps_prochandle *ph, lwpid_t lwpid,
               const prfpregset_t *fpregset)
  {
    struct cleanup *old_chain;
--- 1225,1231 ----
  /* Set floating-point regs.  */

  ps_err_e
! ps_lsetfpregs (struct ps_prochandle *ph, lwpid_t lwpid,
               const prfpregset_t *fpregset)
  {
    struct cleanup *old_chain;

  ------------------------------------------------------------------------
 view for             mail this message   post reply    << prev · next >>
 bookmarking          to a friend
 text only

 subscribe to gnu.gdb.bug

 SPONSORED LINKS
  Yellow Pages ·  Bid on Bargains ·  Shopping ·  Free Stuff  ·  5¢ long distance
 AutoConnect ·  Trade with Datek  ·  Auctions & Classifieds  ·  GET IT NOW @ NECX

      Home  ·  Communities  ·  My Deja News  ·  Power Search  ·  Post

              About Deja News  ·  Ad Info  ·  Our Advertisers

         ---------------------------------------------------------
         Copyright © 1995-99 Deja News, Inc. All rights reserved.
      Conditions of use  ·  Site privacy statement reviewed by TRUSTe
