This is the mail archive of the gdb@sources.redhat.com 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: Formatting of function pointer value


Vladimir Prus wrote:


> the value of *p3 is printed like this:
> 
>    (gdb) print *p3
>    $1 = {int (int)} 0xb7ee6e9c <__DTOR_END__+4>

Even more strange is this:

   (gdb) print p3 
   $2 = (int (*)(int)) 0xb7ee6e9c <__DTOR_END__+4>
   (gdb) print *p3 
   $3 = {int (int)} 0xb7ee6e9c <__DTOR_END__+4>

Why does formatting of the type different in the second case, and uses
braces instead of parenthesis?

- VOlodya



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