This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: bfinish writes to random addresses.
On Tue, Jul 25, 2006 at 05:24:32PM +0100, Greg Law wrote:
> >Warning when returning from something with a symbol to something
> >without a symbol is an interesting suggestion. Does anyone else have
> >comments? Should this warn?
> >
> >(gdb) bt
> >#0 foo()
> >#1 0x4000000 in ???
> >(gdb) finish
> >
>
> I was actually suggesting an error rather than a warning. In this case,
> it seems that writing into 0x40000000 is almost certainly not what the
> user wants gdb to be doing.
Surprisingly often it is. We need to be sparing with errors.
--
Daniel Jacobowitz
CodeSourcery