emacs-devel
[Top][All Lists]
Advanced

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

Re: emacs-buffer.gdb


From: Andreas Schwab
Subject: Re: emacs-buffer.gdb
Date: Thu, 09 Jun 2005 11:10:05 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux)

Ed Swarthout <address@hidden> writes:

> which is fixed by this simple patch:
>
> --- emacs-buffer.gdb.~1.3.~   2005-05-30 12:01:09.000000000 -0500
> +++ emacs-buffer.gdb  2005-06-08 22:08:03.645246008 -0500
> @@ -118,7 +118,7 @@
>          ygetptr $buf->filename
>          set $filename = ((struct Lisp_String *) $ptr)->data
>        else
> -        set $filename = ' '
> +        set $filename = " "

This is dangerous because gdb needs to call malloc in the inferior in
order to allocate the string.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

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