This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] infcall: Remove gdb_assert ($sp overflow)
> Jan> set $sp=0
> Jan> call something()
>
> I don't really have much problem with this patch, I guess, but do people
> really do this sort of thing? Or is this a reduced case of some other
> scenario that actually does happen?
I used to do that (setting $sp) in an ancient testcase whose purpose
was to break the callstack. It turned out that breaking the callstack
was too platform specific, so I gave up on using this.
I am guessing that some people might try setting $sp for various
purposes (maybe debugging a problem with code that misaligns SP
for instance), and a screwup might lead to this situation too...
--
Joel