This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]