aboutsummaryrefslogtreecommitdiff
path: root/gdb/nto-tdep.h
diff options
context:
space:
mode:
authorAleksandar Ristovski <aristovski@qnx.com>2015-10-21 10:37:33 -0400
committerAleksandar Ristovski <aristovski@qnx.com>2015-10-21 10:37:33 -0400
commita9889169e5b21efb8c42105fc62461be43968d64 (patch)
treed269afcd6d625ac1df1f9786992e42f029063bb4 /gdb/nto-tdep.h
parent2b35fb28f397a26c0da03f7579116d28af2af824 (diff)
downloadgdb-a9889169e5b21efb8c42105fc62461be43968d64.zip
gdb-a9889169e5b21efb8c42105fc62461be43968d64.tar.gz
gdb-a9889169e5b21efb8c42105fc62461be43968d64.tar.bz2
[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.
Diffstat (limited to 'gdb/nto-tdep.h')
-rw-r--r--gdb/nto-tdep.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/nto-tdep.h b/gdb/nto-tdep.h
index d029f07..6ed9da0 100644
--- a/gdb/nto-tdep.h
+++ b/gdb/nto-tdep.h
@@ -142,6 +142,16 @@ struct private_thread_info
char name[1];
};
+/* Per-inferior data, common for both procfs and remote. */
+struct nto_inferior_data
+{
+ /* Last stopped flags result from wait function */
+ unsigned int stopped_flags;
+
+ /* Last known stopped PC */
+ CORE_ADDR stopped_pc;
+};
+
/* Generic functions in nto-tdep.c. */
void nto_init_solib_absolute_prefix (void);
@@ -171,4 +181,7 @@ char *nto_extra_thread_info (struct target_ops *self, struct thread_info *);
LONGEST nto_read_auxv_from_initial_stack (CORE_ADDR inital_stack,
gdb_byte *readbuf,
LONGEST len, size_t sizeof_auxv_t);
+
+struct nto_inferior_data *nto_inferior_data (struct inferior *inf);
+
#endif