Opened 10 months ago

Last modified 10 months ago

#24 new defect

Breakpoint cannot be removed in Code::Blocks IDE

Reported by: dsl Owned by: dsl
Priority: major Milestone: Patches Welcome
Component: avr Keywords: planned-in-0.2.0
Cc:

Description

Code::Blocks IDE can be used to develop and debug a firmware for AVR MCU. It also supports a GDB remote target. There is a detailed instruction how to configure it to work with AVR GDB: https://sourceforge.net/p/simutron/wiki/About%20avr-gdb.

However, there is a case when a previously placed breakpoint cannot be removed and stops avr-gdb on the same line of code. In order to reproduce this issue:

  1. Install avr-libc, avr-gdb and Code::Blocks and configure it according the instruction mentioned above;
  2. Download the attached archive with Code::Blocks project, unpack it, open in the IDE and configure remote debugging options;
  3. Place breakpoints at the lines 17, 62 and 67 of main.c before running the debugger;
  4. Start MCUSim using bin/Debug/run-mcusim script from the project;
  5. Run avr-gdb from the IDE by clicking Debug / Continue button from a toolbar;
  6. Continue execution until it stops at the main.c:62;
  7. Remove breakpoint at the current line and continue;
  8. It should stop at main.c:62 even without a breakpoint placed!

Attachments (1)

ATMEGA8A-tc1-fastpwm-mode.tar.gz (16.6 KB) - added by dsl 10 months ago.

Download all attachments as: .zip

Change History (3)

Changed 10 months ago by dsl

comment:1 Changed 10 months ago by dsl

This problem appears if breakpoints are placed before the running debugger only according to my observation. I wasn't able to reproduce the same behavior after avr-gdb started by Code::Blocks. Does it mean that IDE has two different ways (before start and after start of the debugger) to place breakpoints?

comment:2 Changed 10 months ago by dsl

Milestone: 0.2.0Patches Welcome
Note: See TracTickets for help on using tickets.