Code Monkey home page Code Monkey logo

Comments (7)

diabolo38 avatar diabolo38 commented on May 27, 2024

I didn't knew that way
To add a watch point go into the variable window rigth click on the variable , "add watchpoint "

add_watchpoint

to add a watch point on a global select the global in source or add it manulay to the w watch/expression
view. From the watch view right click , add it as above.
I notice that depending on where is the watch view docked the righ click pop up will not show thsi possibility if so dock it somewhere else (side to breakpoint)

from eclipse-plugins.

AD7ZJ avatar AD7ZJ commented on May 27, 2024

That just shows you the value of the variable, I'm looking for something that will break when the variable gets read, written or both.

from eclipse-plugins.

diabolo38 avatar diabolo38 commented on May 27, 2024

have you tried ?
"add watchpoint" will add an hardware watchpoint , that is what your looking at no ?
for global you have first to add it first to the watch view then you can set watchpoint to it

that will bring you to that dialog
add_watchpoint2

and what it give when you run it
add_watchpoint2

but that is with stlink on a stm32f40 not seeger ?
and this h/w support h/w watchpoint via openocd
what openocd say at connection,
"Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints"
obvisouly if you target mcu do not provide any h/w watchpoint that may not be available at all

from eclipse-plugins.

ilg-ul avatar ilg-ul commented on May 27, 2024

the support for watchpoints comes from Eclipse CDT, not from the GNU ARM Eclipse plug-ins.

my debugging plug-ins are mainly intended to start the gdb server, to redirect the consoles, to configure everything from the GUI, etc.

from eclipse-plugins.

AD7ZJ avatar AD7ZJ commented on May 27, 2024

Thanks diabolo38, I missed that part. It did seem to work when expressions explicitly wrote to the variable, but did not catch the array overrun that was also writing the variable's address. That's what I was hoping to use the watchpoint to find. The JLink eclipse plugin must have something to do with this as the watchpoint address has to make it to the jlink somehow.

from eclipse-plugins.

diabolo38 avatar diabolo38 commented on May 27, 2024

In the intermediate dialog box you can cope with array size (range) and i suspect you can also change the expression itself to change something like p in *p , x, in x[3] to deal with array.
Note that the JL "chain" must be aware how many and of how to set WP all the wp h/w is on the MCU.

from eclipse-plugins.

ilg-ul avatar ilg-ul commented on May 27, 2024

@diabolo38, could you write a post in the newly created discussion group, to document your findings on watchpoints? (or any other topics you consider useful)

http://www.element14.com/community/groups/gnu-arm-eclipse

from eclipse-plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.