Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Fernando Nasser <fnasser@cygnus.com>
To: Daniel Berlin <dan@cgsoftware.com>
Cc: Stan Shebs <shebs@apple.com>, gdb-patches@sourceware.cygnus.com
Subject: Re: [RFA]: Apropos patch
Date: Sat, 01 Apr 2000 00:00:00 -0000	[thread overview]
Message-ID: <38DAA0BA.940ADAF5@cygnus.com> (raw)
Message-ID: <20000401000000.NoA4UfewlipxOBHtfozL99EWftddHKuBBlQMffvTzQs@z> (raw)
In-Reply-To: <Pine.LNX.4.10.10003231428540.30962-100000@propylaea.anduin.com>

Daniel Berlin wrote:
> 
> > the help string should probably be rephrased a bit - use the
> > word "matching" at least, and ideally say "regular expression".
> > Do help rbreak for an example.
> 
> howzabout "Search for all commands matching REGEXP"?

It sounds good to me.


-- 
Fernando Nasser
Red Hat - Toronto                       E-Mail:  fnasser@cygnus.com
2323 Yonge Street, Suite #300           Tel:  416-482-2661 ext. 311
Toronto, Ontario   M4P 2C9              Fax:  416-482-6299
From msnyder@cygnus.com Sat Apr 01 00:00:00 2000
From: Michael Snyder <msnyder@cygnus.com>
To: gdb-patches@sourceware.cygnus.com
Subject: Re: [RFA] Demangled minsym hash table broken
Date: Sat, 01 Apr 2000 00:00:00 -0000
Message-id: <38E54791.26CF@cygnus.com>
References: <pusd46y7.fsf@dan.resnet.rochester.edu> <20000329195755.A4249@cygnus.com> <k8il44gk.fsf@dan.resnet.rochester.edu>
X-SW-Source: 2000-q1/msg01147.html
Content-length: 946

Daniel Berlin+list.gdb-patches wrote:
> 
> Chris Faylor <cgf@cygnus.com> writes:
> 
> >
> > Peter Schauer submitted a patch a while ago when he discovered this.
> >
> > It's here:  http://sourceware.cygnus.com/ml/gdb-patches/2000-q1/msg00869.html
> >
> > I don't know if your patch is similar but we should probably go with the
> > simplest solution...
> >
> 
> I'll work up some testcases and commit his patch, along with some more
> C++ support fixes i've been working on (Should help a lot with the
> people still using STABS).

Daniel, is this the result?

        * minsyms.c (add_minsym_to_demangled_hash_table): New function.
        (install_minimal_symbols): Fix demangled symbol problems caused
by
        using add_minsym_to_hash_table for the demangled names, which is

Just a small nit: this is a static function in minsyms.c, yet
it's declared extern in symtab.h.  Gives a new -Wall warning.

				Michael
From kevinb@cygnus.com Sat Apr 01 00:00:00 2000
From: Kevin Buettner <kevinb@cygnus.com>
To: gdb-patches@sourceware.cygnus.com
Subject: [PATCH] gdb.base/pointers.c commit
Date: Sat, 01 Apr 2000 00:00:00 -0000
Message-id: <1000321230718.ZM26524@ocotillo.lan>
X-SW-Source: 2000-q1/msg00884.html
Content-length: 1828

I've just committed the change below.  (This change was for AIX 4.3.)

	* gdb.base/pointers.c (usevar): New function.
	(main): Make sure that global variables v_int_pointer2, rptr,
	and y are all referenced someplace in the program by calling
	usevar() on them.  [Some linkers delete symbols which are
	never referenced.  The space remains, but there's no way to
	get a (symbolic) handle on the variable from the debugger.]

Index: gdb.base/pointers.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/pointers.c,v
retrieving revision 1.1.1.3
diff -u -p -r1.1.1.3 pointers.c
--- pointers.c	1999/08/02 23:46:51	1.1.1.3
+++ pointers.c	2000/03/21 22:59:17
@@ -71,35 +71,28 @@ float ** ptr_to_ptr_to_float;
 
 int y;
 
+/* Do nothing function used for forcing some of the above variables to
+   be referenced by the program source.  If the variables are not
+   referenced, some linkers will remove the symbol from the symbol
+   table making it impossible to refer to the variable in gdb.  */
+void usevar (void *var) {}
+
 int main ()
 {
-    void dummy();
-    int more_code();
-    
-    /* Ensure that malloc is a pointer type; avoid use of "void" and any include files. */
-    /* extern char *malloc();*/
-
-    /*  void *malloc(size_t);*/
-    
-
-    
+  void dummy();
+  int more_code();
+  
 #ifdef usestubs
   set_debug_traps();
   breakpoint();
 #endif
   dummy();
-/*  v_int_pointer2 = &v_int_pointer;
-  v_unsigned_int_pointer = &v_int;
-  
-  y = (v_unsigned_int_pointer == v_double_pointer);
-  
-  x = v_unsigned_int_pointer * v_double_pointer;
-  
-  v_unsigned_int_pointer = v_double_pointer;
-  
-  v_unsigned_int_pointer = v_unsigned_int;*/
 
   more_code ();
+
+  usevar (&v_int_pointer2);
+  usevar (&rptr);
+  usevar (&y);
 
   return 0;
   


       reply	other threads:[~2000-04-01  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.10.10003231428540.30962-100000@propylaea.anduin.com>
2000-03-23 14:54 ` Fernando Nasser [this message]
2000-04-01  0:00   ` Fernando Nasser
     [not found] <1z52tswd.fsf@dan.resnet.rochester.edu>
2000-03-22 18:28 ` Stan Shebs

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=38DAA0BA.940ADAF5@cygnus.com \
    --to=fnasser@cygnus.com \
    --cc=dan@cgsoftware.com \
    --cc=gdb-patches@sourceware.cygnus.com \
    --cc=shebs@apple.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