Re: [patch] printf "%p" gdb internal error fix

Daniel Jacobowitz
2006-09-10T22:00:32Z

On Sun, Sep 10, 2006 at 09:31:15PM +0200, Mark Kettenis wrote:
> Hmm, this will not do the right thing when you try to print a 64-bit
> pointer on a 32-bit host.

True, though, neither will the rest of the printf code:

case long_arg:
{
long val = value_as_long (val_args[i]);
printf_filtered (current_substring, val);
break;
}

None of it is written to use target types at present, only host types.
It'd need even more surgery if you wanted it to, since
current_substring gets passed to the host's printf.

--
Daniel Jacobowitz
CodeSourcery