diff options
author | Jeff Law <law@redhat.com> | 2001-12-20 23:40:15 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 2001-12-20 23:40:15 +0000 |
commit | 9b3128c4d950f0f94a174e64842510f672aacbb1 (patch) | |
tree | 3a2b2c5237c340fc840c7e372aa02a8630369371 /gdb/somsolib.c | |
parent | ca344dff5c340979f9aaf15316c518eec515a28a (diff) | |
download | gdb-9b3128c4d950f0f94a174e64842510f672aacbb1.zip gdb-9b3128c4d950f0f94a174e64842510f672aacbb1.tar.gz gdb-9b3128c4d950f0f94a174e64842510f672aacbb1.tar.bz2 |
* somsolib.c (som_solib_add): Ignore the solib limit threshhold
if AUTO_SOLIB_LIMIT is not greater than zero.
* somsolib.c (som_solib_create_inferior_hook): No longer warn
about missing __d_pid symbol.
Diffstat (limited to 'gdb/somsolib.c')
-rw-r--r-- | gdb/somsolib.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/gdb/somsolib.c b/gdb/somsolib.c index fdb2e16..d623e4b 100644 --- a/gdb/somsolib.c +++ b/gdb/somsolib.c @@ -777,6 +777,7 @@ som_solib_add (char *arg_string, int from_tty, struct target_ops *target, int re st_size = som_solib_sizeof_symbol_table (name); som_solib_st_size_threshold_exceeded = !from_tty && + auto_solib_limit > 0 && readsyms && ((st_size + som_solib_total_st_size) > (auto_solib_limit * (LONGEST) (1024 * 1024))); @@ -868,15 +869,15 @@ som_solib_create_inferior_hook (void) return; have_endo = 0; - /* Slam the pid of the process into __d_pid; failing is only a warning! */ + /* 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) - { - 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; - } + goto keep_going; anaddr = SYMBOL_VALUE_ADDRESS (msymbol); store_unsigned_integer (buf, 4, PIDGET (inferior_ptid)); |