From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27599 invoked by alias); 10 Jan 2002 14:45:34 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 27549 invoked from network); 10 Jan 2002 14:45:26 -0000 Received: from unknown (HELO localhost.cygnus.com) (24.114.42.213) by sources.redhat.com with SMTP; 10 Jan 2002 14:45:26 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.cygnus.com (Postfix) with ESMTP id 9D3E93CC9 for ; Thu, 10 Jan 2002 09:45:26 -0500 (EST) Message-ID: <3C3DA906.6010803@cygnus.com> Date: Thu, 10 Jan 2002 06:45:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.7) Gecko/20020103 X-Accept-Language: en-us MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: Request/question from RMS Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-01/txt/msg00087.txt.bz2 Private e-mail from Richard Stallman. Reproduced with permission. > In Emacs .gdbinit I found this: > > define xreload > set $valmask = ((long)1 << gdb_valbits) - 1 > set $nonvalbits = gdb_emacs_intbits - gdb_valbits > end > document xreload > When starting Emacs a second time in the same gdb session under > FreeBSD 2.2.5, gdb 4.13, $valmask and $nonvalbits have lost > their values. (The same happens on current (2000) versions of GNU/Linux > with gdb 5.0.) > This function reloads them. > end > > I think GDB should avoid making this necessary--that it should > reread .gdbinit when it reloads the executable. Or there should > be a certain user-defined command that will be run after GDB > reloads the executable. I know there are now things like posthook-run commands. However, without knowing how EMACS uses the above (I've no desire to debug emacs, debugging mozilla was scary enough :-^) it is hard to suggest a replacement. RMS also expressed a preference for avoiding features less than a year old. Andrew