I have a variable called x in GDB which I want to compare against a string.
gdb $ print $x $1 = 0x1001009b0 "hello"
but a comparsion with
if $x == "hello"
doesn't work.