From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Problems with gdb-ui. Date: 22 Jun 2004 10:15:30 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1087892160 22495 80.91.224.253 (22 Jun 2004 08:16:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 Jun 2004 08:16:00 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Jun 22 10:15:52 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BcgRc-0004gr-00 for ; Tue, 22 Jun 2004 10:15:52 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BcgRb-00018c-00 for ; Tue, 22 Jun 2004 10:15:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BcgSu-00028x-4W for emacs-devel@quimby.gnus.org; Tue, 22 Jun 2004 04:17:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BcgSq-00028U-LJ for emacs-devel@gnu.org; Tue, 22 Jun 2004 04:17:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BcgSh-00027Y-VL for emacs-devel@gnu.org; Tue, 22 Jun 2004 04:17:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BcgSh-00027H-RV for emacs-devel@gnu.org; Tue, 22 Jun 2004 04:16:59 -0400 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by monty-python.gnu.org with smtp (Exim 4.34) id 1BcgQw-0004BE-9B for emacs-devel@gnu.org; Tue, 22 Jun 2004 04:15:10 -0400 Original-Received: (qmail 15019 invoked from network); 22 Jun 2004 08:15:08 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 22 Jun 2004 08:15:08 -0000 Original-To: Nick Roberts Original-Lines: 88 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:25177 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25177 At times, I have had BIG problems with emacs behaving very strangely if gdb is running (or has been running). For example, I cannot easily C-g out of the minibuffer and bogus stuff seems to be written to the minibuffer (but I'm not sure). Also emacs once hung retrieving POP mail. Enabling debugging gets this result in gdb-debug-log: ((recv . "\nframes-invalid\n") (recv . "\nframes-invalid\n") (recv . "\nframes-invalid\n\nframes-invalid\n") (recv . "\nframes-invalid\n") ... continues forever ... the partial output buffer contains: Undefined command: "interpreter". Try "help". My GDB is the one that came with redhat 9.0: GNU gdb Red Hat Linux (5.3post-0.20021129.18rh) Copyright 2003 Free Software Foundation, Inc. Re. the minibuffer problems, I don't really know what's going on, but could it be that some process filter does (set-buffer nil) and thus throw an error, and then strange things happen with quit or something... [for an example where that could happen, see code below, there's no check that buffer is non-nil here] (defun gdb-assembler-custom () (let ((buffer (gdb-get-buffer 'gdb-assembler-buffer)) (pos 1) (address) (flag)) (with-current-buffer buffer (if (not (equal gdb-current-address "main")) (progn (goto-char (point-min)) (if (re-search-forward gdb-current-address nil t) (progn (setq pos (point)) (beginning-of-line) (or gdb-overlay-arrow-position (setq gdb-overlay-arrow-position (make-marker))) (set-marker gdb-overlay-arrow-position (point) (current-buffer)))))) ;; remove all breakpoint-icons in assembler buffer before updating. (gdb-remove-breakpoint-icons (point-min) (point-max))) (with-current-buffer (gdb-get-buffer 'gdb-breakpoints-buffer) (goto-char (point-min)) When emacs "hung" in POP mail retrieval, the following backtrace tells me something is bad in gdb: (gdb) xbacktrace "gdb-look-for-tagged-buffer" "gdb-get-buffer" "gdb-get-create-buffer" "gdb-append-to-partial-output" "gdb-concat-output" "gud-gdba-marker-filter" "apply" "gud-marker-filter" "gud-filter" "accept-process-output" "pop3-read-response" "pop3-open-server" "pop3-movemail" "mail-source-fetch-pop" "funcall" "mail-source-fetch" "nnmail-get-new-mail" "nnml-request-scan" "gnus-request-scan" "gnus-read-active-file-1" "gnus-read-active-file" "gnus-group-get-new-news" "call-interactively" -- Kim F. Storm http://www.cua.dk