I was trying to debug with DF_REF_LOC in gdb on linux, and got: (gdb) p DF_REF_LOC (*ref) == recog_data.operand_loc[op] No symbol "__null" in current context.
My fingers were not amused. I found if I did: (gdb) macro define __null 0 then I could do: (gdb) p DF_REF_LOC (*ref) == recog_data.operand_loc[op] $3 = true and my fingers were again happy. I checked this in.
2013-05-14 Mike Stump <mikest...@comcast.net> * gdbinit.in: Add __null. Index: gdbinit.in =================================================================== --- gdbinit.in (revision 198896) +++ gdbinit.in (working copy) @@ -184,6 +184,7 @@ end # Define some macros helpful to gdb when it is expanding macros. macro define __FILE__ "gdb" macro define __LINE__ 1 +macro define __null 0 # Gracefully handle aborts in functions used from gdb. set unwindonsignal on ------------------------------