emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it time to remove INTERNAL_FIELD?


From: Eli Zaretskii
Subject: Re: Is it time to remove INTERNAL_FIELD?
Date: Thu, 23 Apr 2015 15:01:26 +0300

> From: Oleh Krehel <address@hidden>
> Cc: address@hidden,  address@hidden
> Date: Thu, 23 Apr 2015 13:32:32 +0200
> 
> >  (gdb) p w->contents
> >  $2 = 16446781
> >  (gdb) xbuffer
> 
> What does xbuffer do?

See its doc string in .gdbinit: it shows a Lisp buffer object in
human-readable format.  Like other xSOMETHING commands do for other
objects.

> It shows up as unrecognized command for me.  I see it defined in
> .gdbinit, but it's automatically sourced. How can I source it?

You can source it manually like this:

 (gdb) source .gdbinit

If you start GDB from the src directory, it should read that file
automatically.  However, latest versions of GDB refuse to do that, for
security reasons, unless you customize GDB to countermand that (the
message GDB displays when it refuses to load the file hints on these
customizations; read the GDB manual to know more).

See etc/DEBUG for more about debugging Emacs on the C level.

> I saw that there was a change 3 years ago adding "_" to ends of some
> symbols. This change was subsequently reverted, and it supposedly worked
> fine for 3 years. So I'm guessing that there is a mechanism that makes
> it work without modifying with symbols with "_".

No, there is no such mechanism.  You will find "name_" in .gdbinit.
Those changes you mention are probably about changes in the sources
that were reverted later.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]