From: Jim Blandy <jimb@zwingli.cygnus.com>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: gdb@sourceware.cygnus.com
Subject: Re: unused parameter warnings
Date: Wed, 29 Mar 2000 11:26:00 -0000 [thread overview]
Message-ID: <npr9ct1su0.fsf@zwingli.cygnus.com> (raw)
Message-ID: <20000329112600.x1IJ7ltWQsAGYtRf34TVKmzZhdCq6wSc9Tzr0jKNOtc@z> (raw)
In-Reply-To: <38E14CBF.C829BDFB@cygnus.com>
> > Having the top level Makefile.in ``impose'' a specific -W policy is
> > something to discuss with the other projects.
>
> I'd suggest configuring with
>
> CFLAGS=-g ..../configure
Okay, that makes sense. Thanks.
From blizzard@mozilla.org Wed Mar 29 19:56:00 2000
From: Christopher Blizzard <blizzard@mozilla.org>
To: gdb@sourceware.cygnus.com
Cc: jimb@redhat.com
Subject: Re: problems loading shared libraries - with attached test case
Date: Wed, 29 Mar 2000 19:56:00 -0000
Message-id: <38E2D221.ADC270BF@mozilla.org>
References: <38DFD84E.9F330EC1@mozilla.org>
X-SW-Source: 2000-03/msg00374.html
Content-length: 2542
Christopher Blizzard wrote:
>
> I'm using "set auto-solib-add 0" after main has been called. If I use
> "shar" to load a shared library manually once I can't use it again to
> load another shared library later. Please see the attached log for an
> example of how to reproduce the problem.
>
I've got a patch for this problem ( attached. ) The problem is in
solib_add().
--Chris
--
------------
Christopher Blizzard
http://people.redhat.com/blizzard/
Chiseling through a wall of stone isn't my idea of fun. But chiseling
through a wall of cheese -- now *there's* a party.
------------
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.207
diff -u -r1.207 ChangeLog
--- ChangeLog 2000/03/30 03:03:23 1.207
+++ ChangeLog 2000/03/30 03:53:33
@@ -1,3 +1,12 @@
+2000-03-29 Christopher Blizzard <blizzard@redhat.com>
+
+ * solib.c (solib_add): If a library is in gdb's shared object map
+ and its symbols aren't loaded and the pattern of shared objects to
+ load matches the path name of the shared object in question, load
+ the symbols in the shared object. This fixes the problem when
+ shared libraries are being loaded only on demand that the
+ "sharedlibrary" command can only be run once.
+
2000-03-29 Daniel Berlin <dan@cgsoftware.com>
* minsyms.c (add_minsym_to_demangled_hash_table): New function.
Index: solib.c
===================================================================
RCS file: /cvs/src/src/gdb/solib.c,v
retrieving revision 1.7
diff -u -r1.7 solib.c
--- solib.c 2000/03/24 23:49:10 1.7
+++ solib.c 2000/03/30 03:53:39
@@ -1298,6 +1298,26 @@
i = *i_link;
}
+ /* Check to see whether or not this shared object was added to
+ gdb's shared object list without the symbols being loaded.
+ If it was and it matches the pattern for the shared object
+ that needs to be loaded, load it. */
+ if (!gdb->symbols_loaded)
+ {
+ if (!pattern || re_exec(gdb->so_name))
+ {
+ if (catch_errors(symbol_add_stub, gdb,
+ "Error while reading shared library symbols:\n",
+ RETURN_MASK_ALL))
+ {
+ if (from_tty)
+ printf_unfiltered ("Loaded symbols for %s\n",
+ gdb->so_name);
+ gdb->symbols_loaded = 1;
+ }
+ }
+ }
+
/* If the shared object appears on the inferior's list too, then
it's still loaded, so we don't need to do anything. Delete
it from the inferior's list, and leave it on GDB's list. */
From guo@cup.hp.com Thu Mar 30 00:12:00 2000
From: Jimmy Guo <guo@cup.hp.com>
To: gdb@sourceware.cygnus.com
Subject: rsync failure (rsync --archive --delete --checksum --compress --statsrsync://sourceware.cygnus.com/src-cvs .) (fwd)
Date: Thu, 30 Mar 2000 00:12:00 -0000
Message-id: <Pine.LNX.4.10.10003300109010.10974-100000@hpcll168.cup.hp.com>
X-SW-Source: 2000-03/msg00375.html
Content-length: 4936
Why these rsync error messages? What do they mean?
- Jimmy Guo, guo@cup.hp.com
---------- Forwarded message ----------
Date: Thu, 30 Mar 2000 00:01:23 -0800
src/gdb/osf-share/HP800/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/gdb/osf-share/RIOS/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/gdb/testsuite/config/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/gdb/testsuite/gdb.chill/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/gdb/testsuite/gdb.disasm/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/gdb/testsuite/gdb.fortran/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/gdb/testsuite/gdb.hp/gdb.defects/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/gdb/testsuite/gdb.hp/gdb.objdbg/objdbg01/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/gdb/testsuite/gdb.hp/gdb.objdbg/objdbg03/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/gdb/testsuite/gdb.hp/gdb.objdbg/objdbg04/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/gdb/testsuite/gdb.hp/gdb.objdbg/tools/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/gdb/testsuite/gdb.hp/gdb.objdbg/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/gdb/testsuite/gdb.hp/tools/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/tix/generic/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/tix/library/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/tk/generic/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/tk/library/demos/images/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/tk/library/images/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/tk/library/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/tk/mac/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/tk/testsuite/config/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/tk/testsuite/tk.tests/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/tk/win/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/winsup/cygwin/regexp/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/winsup/cygwin/testsuite/config/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/winsup/cygwin/testsuite/winsup.api/samples/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/winsup/cygwin/testsuite/winsup.api/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/winsup/cygwin/testsuite/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/winsup/doc/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/winsup/mingw/include/sys/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/winsup/mingw/include/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/winsup/mingw/profile/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/winsup/mingw/samples/dlltest/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/winsup/mingw/samples/filehand/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/winsup/mingw/samples/fixargv/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/winsup/mingw/samples/fmode/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/winsup/mingw/samples/globbing/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/winsup/mingw/samples/simpledll/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/winsup/mingw/samples/test/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/winsup/mingw/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/winsup/w32api/include/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
src/winsup/w32api/lib/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
IO error encountered - skipping file deletion
send_files failed to open src/bfd/hosts/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
send_files failed to open src/gdb/testsuite/gdb.base/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
send_files failed to open src/tix/library/bitmaps/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
send_files failed to open src/tix/man/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
send_files failed to open src/tk/doc/#cvs.rfl.sourceware.cygnus.com.2545: No such file or directory
Number of files: 12823
Number of files transferred: 49
Total file size: 152516389 bytes
Total transferred file size: 7892394 bytes
Literal data: 275622 bytes
Matched data: 7616772 bytes
File list size: 433947
Total bytes written: 68061
Total bytes read: 508910
wrote 68061 bytes read 508910 bytes 1306.84 bytes/sec
total size is 152516389 speedup is 264.34
next prev parent reply other threads:[~2000-03-29 11:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200003281907.OAA14473@zwingli.cygnus.com>
2000-04-01 0:00 ` Andrew Cagney
[not found] ` <38E14CBF.C829BDFB@cygnus.com>
2000-04-01 0:00 ` Jim Blandy [this message]
2000-03-29 11:26 ` Jim Blandy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=npr9ct1su0.fsf@zwingli.cygnus.com \
--to=jimb@zwingli.cygnus.com \
--cc=ac131313@cygnus.com \
--cc=gdb@sourceware.cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox