]> gcc.gnu.org Git - gcc.git/commitdiff
libcody: Remove nop asm
authorNathan Sidwell <nathan@acm.org>
Thu, 17 Dec 2020 13:31:42 +0000 (05:31 -0800)
committerNathan Sidwell <nathan@acm.org>
Thu, 17 Dec 2020 13:35:37 +0000 (05:35 -0800)
This asm was a useful place for gdb to drop a breakpoint and make it
clear where you were when debugging.  I took a punt that 'surely every
arch has a nop instruction'. Well, no, some apparently have nops with
operands (what, do nothing harder? :)

libcody/
* fatal.cc (HCF): Remove nop breakpoint lander.

libcody/fatal.cc

index b35094e6b19a02d8d2f97c80d35b538fcd65af5e..c1bc8ab8a79a33d56861402174b4bd87fb4af609 100644 (file)
@@ -30,7 +30,8 @@ void (HCF) (char const *msg
 #endif
          ) noexcept
 { // HCF - you goofed!
-  __asm__ volatile ("nop");  // HCF - you goofed!
+  // A useful place for a breakpoint to land.
+  //__asm__ volatile ("nop");  // HCF - you goofed!
 
 #if !NMS_CHECKING
   constexpr Location loc (nullptr, 0);
This page took 0.062284 seconds and 5 git commands to generate.