From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21769 invoked by alias); 14 Nov 2007 22:49:47 -0000 Received: (qmail 21759 invoked by uid 22791); 14 Nov 2007 22:49:46 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 14 Nov 2007 22:49:44 +0000 Received: from zps75.corp.google.com (zps75.corp.google.com [172.25.146.75]) by smtp-out.google.com with ESMTP id lAEMnahC014957 for ; Wed, 14 Nov 2007 22:49:36 GMT Received: from ug-out-1314.google.com (ugem2.prod.google.com [10.66.164.2]) by zps75.corp.google.com with ESMTP id lAEMnXPN022067 for ; Wed, 14 Nov 2007 14:49:35 -0800 Received: by ug-out-1314.google.com with SMTP id m2so384132uge for ; Wed, 14 Nov 2007 14:49:33 -0800 (PST) Received: by 10.66.252.18 with SMTP id z18mr313064ugh.1195080573359; Wed, 14 Nov 2007 14:49:33 -0800 (PST) Received: by 10.67.21.14 with HTTP; Wed, 14 Nov 2007 14:49:33 -0800 (PST) Message-ID: Date: Wed, 14 Nov 2007 22:49:00 -0000 From: "Douglas Evans" To: "Vladimir Prus" Subject: Re: RFA: patch to fix multi-breakpoint enable/disable handling of inline functions Cc: gdb-patches@sources.redhat.com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20071016001816.F059B1C7E69@localhost> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-11/txt/msg00291.txt.bz2 On Nov 14, 2007 2:25 PM, Douglas Evans wrote: > Like the original comment to the function says, it wasn't written to > handle multiple different names. An alternative to two loops is to > store all the names in a set and then see if the set has more than one > member. Blech. Bad-Wording-R-Us (TM). What I really meant of course was to see if any member had more than one occurrence. E.g. While adding names checking if it's already there.