Skip to content

Watchpoint on double in array has extra triggers #40

@kpgriesser

Description

@kpgriesser

Object being tested in the interactive console:

  static const size_t X_SIZE = 3;
  static const size_t Y_SIZE = 5;
  static const size_t Z_SIZE = 7;
  double v_xyz[X_SIZE][Y_SIZE][Z_SIZE] = { };

In sst-ext-tests devel branch:

$ cd tests/core-debug
$ sst --interactive-start=0 omni.py -- --function0=dbgsst15.OMArrays
> confirm false
> cd c0
> cd function0
> cd v_xyz
> cd 2
> cd 4
> pwd
c0/function0/v_xyz/2/4 (double [7])

> p 6
6 = 105.00000000000000000 (double)

> watch 6 > 120.0 && 6 < 122.0
Added watchpoint #0

> run
> run
Entering interactive mode at time 16000 
  WP0: AC : c0/function0/v_xyz/2/4/6 ...

> p 6
6 = 121.00000000000000000 (double)

> run 20ns
> run 20ns
Entering interactive mode at time 17000 
  WP0: BC : c0/function0/v_xyz/2/4/6 ...
> p 6
6 = 122.00000000000000000 (double)

This last one falls outside of the range specified in by the watchpoint: watch 6 > 120.0 && 6 < 122.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions