watchpoint on Fortran array elements

Wadud Miah <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <VI1PR05MB3438730289B8181968F77F09C03C0@VI1PR05MB3438.eurprd05.prod.outlook.com>
Hi,

I have set a watchpoint on a Fortran array element using GDB (version 8.3-7.fc30):

(gdb) watch vec(19)

But listing the watchpoints lists three watchpoints:

(gdb) info watchpoints
Num     Type           Disp Enb Address            What
12      watchpoint     keep y                      vec(19)
12.1                                       y                      vec(19)
12.2                                       y                      vec(19)

I don't understand why there are three watchpoints for a single array element. Any help will be greatly appreciated.

Regards,

-----------------------------------
Dr. Wadud Miah
Numerical Algorithms Group

Disclaimer

The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses and malware, and may have been automatically archived by Mimecast Ltd, an innovator in Software as a Service (SaaS) for business.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.