From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Shuguang Sun Newsgroups: gmane.emacs.help Subject: Re: How to debug/gdb emacs/runemacs in windows? Date: Fri, 24 May 2019 12:43:16 +0800 Message-ID: <7149.16867889173$1558673075@news.gmane.org> References: <834l5l6yxv.fsf@gnu.org> <31460.9890965343$1558661721@news.gmane.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="132189"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 24 06:44:27 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hU24B-000YE8-2D for geh-help-gnu-emacs@m.gmane.org; Fri, 24 May 2019 06:44:27 +0200 Original-Received: from localhost ([127.0.0.1]:48687 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hU249-0005EX-Bw for geh-help-gnu-emacs@m.gmane.org; Fri, 24 May 2019 00:44:25 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hU23o-0005AN-3Q for help-gnu-emacs@gnu.org; Fri, 24 May 2019 00:44:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hU23m-0007Cr-6W for help-gnu-emacs@gnu.org; Fri, 24 May 2019 00:44:04 -0400 Original-Received: from smtpbg480.qq.com ([59.36.132.97]:41474 helo=qq.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hU23i-00075G-Pk for help-gnu-emacs@gnu.org; Fri, 24 May 2019 00:44:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1558672999; bh=MXgeoumquP9IfEG/UAHWr6sbcXlRSCTD8RrCqJTkIlI=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=LCmAVjttYYGANbQ4FABKZHPN/dUKBzkY4dlKcs6Ts2E+HxmFor623VibX50lqvkwe lXECVJgF+mAiEx2LH+8sjxpquqcmue345qis7Ug65M9Zkb1TLL2v/NY7iJMdFEppob z1/aKs92w+RPvDJqZaJZGKZZzBeb1oSVmD9WrkYk= X-QQ-mid: esmtp2t1558672998t6pex84z6 Original-Received: from rshmx11052 (unknown [211.144.221.1]) by esmtp4.qq.com (ESMTP) with SMTP id 0 for ; Fri, 24 May 2019 12:43:17 +0800 (CST) X-QQ-SSF: 01000000000000F0F6200F00000000G X-QQ-FEAT: g9YF7Zx+4nKjRYcg8/8ffrhBNsTRA+15cwtQQoBIMpU+pVJkqssWMra3OSTre oIzbBwk8MqcPRW9otk+ALHUdZz83B6oatpGPOlN/iMtRijcTxIPRoemMToQ5yNcxd9mMJAR +S6QrOFouyBRKwmugf75PuBBK28Lsij8uC5WYmDp2CNqHbCWn0p6Mflnzfxb7jZHBS8+10k JjsuWTlHg8tb94NXW8Rw2Ji7QCJS2I7gHKWC6Q97DoMhDi6nhSxFxkqtmtco5feUKN3M7oO wU2Eoit92aEOY2ed+j+/DeF4Gb6jsH+r+SDW+4CZfrJ7Js X-QQ-GoodBg: 0 In-Reply-To: <31460.9890965343$1558661721@news.gmane.org> (Shuguang Sun's message of "Fri, 24 May 2019 09:26:35 +0800") X-QQ-SENDSIZE: 520 Feedback-ID: esmtp:qq.com:bgforeign:bgforeign2 X-QQ-Bgrelay: 1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 59.36.132.97 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:120606 Archived-At: Shuguang Sun writes: > The --force-dump option is speficed in my dot emacs. It helps to skip > requiring some libraries or evaluating some piece of code in case of > dumpted emacs which has been evaluted during dumping, but not in normal > emacs. > > (defun --my-parse-command-line (args) > "Handle specific command line arguments." > (let ((i 0) new-args) > (while (< i (length args)) > (let ((arg (nth i args)) > (next-arg-digit > (when (< (1+ i) (length args)) > (string-to-number (nth (1+ i) args))))) > (when (or (null next-arg-digit) (= 0 next-arg-digit)) > (setq next-arg-digit nil)) > (pcase arg > ("--force-dump" > (setq --is-not-dumped nil)) > (_ (push arg new-args)))) > (setq i (1+ i))) > (nreverse new-args))) > > (setq command-line-args (--my-parse-command-line command-line-args)) > > It is learned from Spacemacs. -- Best Regards Shuguang Sun