bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#59213: Emacs 29: Edebug fails to instrument a parameter whose name b


From: Stefan Monnier
Subject: bug#59213: Emacs 29: Edebug fails to instrument a parameter whose name begins with _
Date: Mon, 14 Nov 2022 07:56:34 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

> More precisely, with this defun:
>
>     (defun add (a b c)
>       (+ a b))
>
> , instrument it for edebug.  Call M-: (add 1 2 6).
>
> The source code with active edebug now looks like:
>
>     (defun add (a b c)
>     =>(+ a b))
>
> ..  `e a` now returns 1.  `e b` returns 2.  `e c` gives the error message:
>
>     Error: Symbol's value as variable is void: c
>
> ..  I repeat, this is a bug.  It should have returned 6.

[ Well, GDB does the same and claims it's not a bug, instead it says the
  variable has been optimized away or something to that effect.  ]

Agreed.  Edebug should be careful to prevent unused vars from being
optimized away.  I'll try and come up with a good patch for that,


        Stefan






reply via email to

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