]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[nto] Fix nto target stopped by watchpoint.
authorAleksandar Ristovski <aristovski@qnx.com>
Wed, 21 Oct 2015 14:37:33 +0000 (10:37 -0400)
committerAleksandar Ristovski <aristovski@qnx.com>
Wed, 21 Oct 2015 14:37:33 +0000 (10:37 -0400)
commita9889169e5b21efb8c42105fc62461be43968d64
treed269afcd6d625ac1df1f9786992e42f029063bb4
parent2b35fb28f397a26c0da03f7579116d28af2af824
[nto] Fix nto target stopped by watchpoint.

Fix 'stopped by watchpoint' detection: add inferior data, use inferior data
for storing last stopped flags needed for detection.

gdb/ChangeLog:

* nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
(procfs_stopped_by_watchpoint): Use flags stored in inferior data.
* nto-tdep.c (nto_new_inferior_data_reg): New definition.
(nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
New functions.
(_initialize_nto_tdep): New forward declaration, new function.
* nto-tdep.h (struct nto_inferior_data): New struct.
(nto_inferior_data): New function declaration.
gdb/ChangeLog
gdb/nto-procfs.c
gdb/nto-tdep.c
gdb/nto-tdep.h