aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKung Hsu <kung@cygnus>1995-09-12 22:49:08 +0000
committerKung Hsu <kung@cygnus>1995-09-12 22:49:08 +0000
commitf434284a2ce1f8ddcfe81143705f76922505f416 (patch)
treeee138b6b99747cbdca9d082fd96e6274edb23f22
parent4977f3b47ed3275b231ee9c845857b8db81b4064 (diff)
downloadgdb-f434284a2ce1f8ddcfe81143705f76922505f416.zip
gdb-f434284a2ce1f8ddcfe81143705f76922505f416.tar.gz
gdb-f434284a2ce1f8ddcfe81143705f76922505f416.tar.bz2
* infcmd.c (attach_command): Add solibs only when
auto_solib_add_at_startup is set.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/infcmd.c7
2 files changed, 10 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e4f83e2..7d599ec 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+Tue Sep 12 15:46:18 1995 Kung Hsu <kung@mexican.cygnus.com>
+
+ * infcmd.c (attach_command): Add solibs only when
+ auto_solib_add_at_startup is set.
+
Mon Sep 11 17:22:35 1995 Fred Fish <fnf@cygnus.com>
* NEWS: Add information about remote target caching.
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 539c528..3e0097e 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -15,7 +15,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "defs.h"
#include <signal.h>
@@ -1126,6 +1126,8 @@ attach_command (args, from_tty)
char *args;
int from_tty;
{
+ extern int auto_solib_add_at_startup;
+
dont_repeat (); /* Not for the faint of heart */
if (target_has_execution)
@@ -1159,8 +1161,9 @@ attach_command (args, from_tty)
#endif
#ifdef SOLIB_ADD
+ if (auto_solib_add_at_startup)
/* Add shared library symbols from the newly attached process, if any. */
- SOLIB_ADD ((char *)0, from_tty, (struct target_ops *)0);
+ SOLIB_ADD ((char *)0, from_tty, (struct target_ops *)0);
#endif
normal_stop ();