This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH]: Backward compatibility issue in sol-thread.c



Added an ifdef around a Solaris 8 function that won't compile on
older versions of Solaris.

2000-09-05  Michael Snyder  <msnyder@cleaver.cygnus.com>

        * sol-thread.c (ps_pdmodel): Protect with an ifdef.

Index: sol-thread.c
===================================================================
RCS file: /cvs/src/src/gdb/sol-thread.c,v
retrieving revision 1.14
retrieving revision 1.16
diff -p -r1.14 -r1.16
*** sol-thread.c	2000/08/31 00:39:10	1.14
--- sol-thread.c	2000/09/05 17:43:00	1.16
*************** static void
*** 452,459 ****
--- 452,461 ----
  sol_thread_attach (char *args, int from_tty)
  {
    procfs_ops.to_attach (args, from_tty);
+ 
    /* Must get symbols from solibs before libthread_db can run! */
    SOLIB_ADD ((char *) 0, from_tty, (struct target_ops *) 0);
+ 
    if (sol_thread_active)
      {
        printf_filtered ("sol-thread active.\n");
*************** ps_lsetfpregs (gdb_ps_prochandle_t ph, l
*** 1309,1314 ****
--- 1311,1317 ----
    return PS_OK;
  }
  
+ #ifdef PR_MODEL_LP64
  /* Identify process as 32-bit or 64-bit.
     At the moment I'm using bfd to do this.
     There might be a more solaris-specific (eg. procfs) method,
*************** ps_pdmodel (gdb_ps_prochandle_t ph, int 
*** 1327,1332 ****
--- 1330,1336 ----
  
    return PS_OK;
  }
+ #endif /* PR_MODEL_LP64 */
  
  #ifdef TM_I386SOL2_H
  

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]