This is the mail archive of the gdb@sourceware.cygnus.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]

if defined(symbol-name) ??



In a macro, I'd like to do something conditionally depending on
whether a symbol is defined or not.  Something like

 if defined(cyg_test_exit)
   break cyg_test_exit
   end

I can't figure out what the proper expression is for the "if"
statement...

-- 
Grant Edwards
grante@visi.com

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