From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 60715 invoked by alias); 26 Mar 2015 16:28:03 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 60706 invoked by uid 89); 26 Mar 2015 16:28:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-oi0-f52.google.com Received: from mail-oi0-f52.google.com (HELO mail-oi0-f52.google.com) (209.85.218.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 26 Mar 2015 16:28:01 +0000 Received: by oicf142 with SMTP id f142so44525621oic.3 for ; Thu, 26 Mar 2015 09:28:00 -0700 (PDT) X-Received: by 10.202.68.70 with SMTP id r67mr11994058oia.66.1427387280079; Thu, 26 Mar 2015 09:28:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.135.193 with HTTP; Thu, 26 Mar 2015 09:27:39 -0700 (PDT) From: Aleksey Midenkov Date: Thu, 26 Mar 2015 16:28:00 -0000 Message-ID: Subject: How to compare $arg0 with string literal? To: "gdb@sourceware.org" Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2015-03/txt/msg00101.txt.bz2 F.ex. define logging if $argc == 1 if $arg0 == off set logging off set logging file gdb.log else if $arg0 == stop set logging off else set logging $arg0 end else set logging $arg0 $arg1 end show logging end When type 'logging off' I get error about no such symbol 'off'...