aboutsummaryrefslogtreecommitdiff
path: root/gdb/somsolib.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-07-30 00:13:14 +0000
committerJeff Law <law@redhat.com>1996-07-30 00:13:14 +0000
commit6f35989529aa84d4a183482b8a846a6012255bb9 (patch)
treedca356abda27883ba745e0ebd943bc8cd7972ea5 /gdb/somsolib.c
parent86bc0974cb9bb02efc4fe0bf9c0466c2f02f1143 (diff)
downloadgdb-6f35989529aa84d4a183482b8a846a6012255bb9.zip
gdb-6f35989529aa84d4a183482b8a846a6012255bb9.tar.gz
gdb-6f35989529aa84d4a183482b8a846a6012255bb9.tar.bz2
* somsolib.c (som_solib_create_inferior_hook): Don't
warn if __d_pid can't be found.
Diffstat (limited to 'gdb/somsolib.c')
-rw-r--r--gdb/somsolib.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/gdb/somsolib.c b/gdb/somsolib.c
index 912dc1d..c2c8853 100644
--- a/gdb/somsolib.c
+++ b/gdb/somsolib.c
@@ -523,13 +523,11 @@ som_solib_create_inferior_hook()
have_endo = 0;
/* If __d_pid is present, then put the inferior's pid into __d_pid. hpux9
requires __d_pid to be set. hpux10 doesn't require __d_pid to be set
- and the symbol may not be available. */
+ and the symbol may not be available.
+
+ Never warn about __d_pid. */
msymbol = lookup_minimal_symbol ("__d_pid", NULL, symfile_objfile);
- if (msymbol == NULL)
- {
- warning ("Unable to find __d_pid symbol in object file.");
- }
- else
+ if (msymbol != NULL)
{
anaddr = SYMBOL_VALUE_ADDRESS (msymbol);
store_unsigned_integer (buf, 4, inferior_pid);