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]
Other format: [Raw text]

somsolib warning tweak


As the comments note, this warning is only useful on hpux9 and older
systems, which are obsolete.  The warning is annoying and useless on
modern systems and mucks up the testsuite. 


	* somsolib.c (som_solib_create_inferior_hook): No longer warn
	about missing __d_pid symbol.

Index: somsolib.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/somsolib.c,v
retrieving revision 2.48
diff -c -3 -p -r2.48 somsolib.c
*** somsolib.c	2001/11/01 21:05:46	2.48
--- somsolib.c	2001/12/19 21:20:41
*************** som_solib_create_inferior_hook (void)
*** 868,882 ****
      return;
  
    have_endo = 0;
!   /* Slam the pid of the process into __d_pid; failing is only a warning!  */
    msymbol = lookup_minimal_symbol ("__d_pid", NULL, symfile_objfile);
    if (msymbol == NULL)
!     {
!       warning ("Unable to find __d_pid symbol in object file.");
!       warning ("Suggest linking with /opt/langtools/lib/end.o.");
!       warning ("GDB will be unable to track shl_load/shl_unload calls");
!       goto keep_going;
!     }
  
    anaddr = SYMBOL_VALUE_ADDRESS (msymbol);
    store_unsigned_integer (buf, 4, PIDGET (inferior_ptid));
--- 868,882 ----
      return;
  
    have_endo = 0;
!   /* Slam the pid of the process into __d_pid.
! 
!      We used to warn when this failed, but that warning is only useful
!      on very old HP systems (hpux9 and older).  The warnings are an
!      annoyance to users of modern systems and foul up the testsuite as
!      well.  As a result, the warnings have been disabled.  */
    msymbol = lookup_minimal_symbol ("__d_pid", NULL, symfile_objfile);
    if (msymbol == NULL)
!     goto keep_going;
  
    anaddr = SYMBOL_VALUE_ADDRESS (msymbol);
    store_unsigned_integer (buf, 4, PIDGET (inferior_ptid));




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