title: GDB error: Selected architecture i386 is not compatible with reported target architecture i386:x86-64
body: <p>Does anyone know what this error means? </p>
  
  <p><a href="https://i.stack.imgur.com/q0v9z.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/q0v9z.jpg" alt="enter image description here"></a></p>
  
  <p>I'm working with Netbeans 8.0, gdb 7.8.1 on Linux Machine. Everything was good until two days ago, then I suddenly started to get this error when i'm starting t debug and I have no clue what it means.<br>
  So far, I'm trying to clean and reset everything I could think about: reinstall netbeans, clean all local files, rebase my code again, unset all breakpoints and so on and so on.<br>
  Could anyone please help me to understand what this error means? I've never set those breakpoints, where does Netbeans take themfrom?  </p>
  
  <p>Thanks in advance,<br>
  Rachel  </p>
  
  <p><strong>EDIT</strong>  </p>
  
  <p>So now I have a bit more details:
  When I'm trying to debug my app directly with GDB, without netbeans I'm getting the following error:  </p>
  
  <blockquote>
    <p>Starting program: ....<br>
    warning: Selected architecture i386 is not compatible with reported target architecture i386:x86-64<br>
    warning: Architecture rejected target-supplied description<br>
    Warning:<br>
    Cannot insert breakpoint -1.
    Temporarily disabling shared library breakpoints:
    breakpoint #-1
    Cannot insert breakpoint 1.
    Cannot access memory at address 0x8081527 </p>
  </blockquote>
  
  <p>how can I figure out what code\flag in compilation makes my app to be i386?  how can I force it to be x86_64?</p>
  
  <p>Thanks again.</p>