Re: [RFC/RFA/i386] pb reading insns if breakpoints still inserted

Mark Kettenis
2006-04-28T18:40:00Z

> Date: Fri, 28 Apr 2006 10:54:47 -0700
> From: "Jim Blandy" <jimb@red-bean.com>
>
> What would folks say to simply un-deprecating
> deprecated_read_memory_nobpt? We don't have an acceptable replacement
> for it yet. Joel's read_insn function is the logical thing to do, but
> it defeats the purpose of deprecating the function in the first place
> --- encouraging people to pass context information explicitly --- to
> depend on current_frame. There isn't any way at present to pull it
> off. So I think the deprecation was premature.

I don't completely disagree with you here, but, a different way to
view the problem is putting the blame with the fact that we (ab)use
the prologue analyzer for skipping the prologue when trying to place a
breakpoint at the start of a function, where we really should be able
to use the debug info for doing this.

Currently the code is in a pretty bad shape here; some targets try to
use the debug info, some use the prologue scanner and some do both.

Mark