This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: PATCH
On Tue, Jul 12, 2011 at 03:15, Abhijit Halder wrote:
please dont top post in your replies
> Yes Mike. I am really sorry for this silly post made in hurry.
no need to apologize ... this is what code review is for
> since the pipe (|) symbol is also a c operator, it will confuse gdb.
> Even if we use |& we may land up into a trouble situation.
>
> Breakpoint 1, main (argc=1, argv=0x7fffb6e506a8) at test.c:15
> 15 ? ? ? ? ?return (SUCCESS) ;
> (gdb) p argc|&*argc
> $1 = 1
> (gdb) p argc |& *argc
> $2 = 1
> (gdb)
i'm not seeing this. on an unmodified gdb-7.2, i get:
(gdb) p g
$1 = 0xa
(gdb) p g |& g
Argument to arithmetic operation not a number or boolean.
so what am i missing ?
-mike