Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: gdb@sources.redhat.com
Subject: Request/question from RMS
Date: Thu, 10 Jan 2002 06:45:00 -0000	[thread overview]
Message-ID: <3C3DA906.6010803@cygnus.com> (raw)

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


             reply	other threads:[~2002-01-10 14:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-10  6:45 Andrew Cagney [this message]
2002-01-10  7:49 ` Eli Zaretskii
2002-01-10 16:13   ` Andrew Cagney
2002-01-10 23:55     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C3DA906.6010803@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox