aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorSergio Durigan Junior <sergiodj@redhat.com>2015-03-11 14:09:51 -0400
committerSergio Durigan Junior <sergiodj@redhat.com>2015-03-11 14:13:49 -0400
commitbadd37cec86e705a190e501ab26975d352718619 (patch)
tree305dbd2ac9ea0275f0ff0604522a767bef0c0378 /gdb/ChangeLog
parentaa9e327f1e8552cd47cc8f4b9daa782930469e60 (diff)
downloadgdb-badd37cec86e705a190e501ab26975d352718619.zip
gdb-badd37cec86e705a190e501ab26975d352718619.tar.gz
gdb-badd37cec86e705a190e501ab26975d352718619.tar.bz2
Implement breakpoint_find_if
This commit implements the 'breakpoint_find_if' function, which allows code external to gdb/breakpoint.c to iterate through the list of 'struct breakpoint *'. This is needed in order to create the 'gdb/break-catch-syscall.c' file, because one of its functions (catching_syscall_number) needs to do this iteration. My first thought was to share the ALL_BREAKPOINTS* macros on gdb/breakpoint.h, but they use a global variable local to gdb/breakpoint.c, and I did not want to share that variable. So, in order to keep the minimal separation, I decided to implement this way of iterating through the existing 'struct breakpoint *'. This function was based on BFD's bfd_sections_find_if. If the user-provided function returns 0, the iteration proceeds. Otherwise, the iteration stops and the function returns the 'struct breakpoint *' that is being processed. This means that the return value of this function can be either NULL or a pointer to a 'struct breakpoint'. gdb/ChangeLog: 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com> * breakpoint.c (breakpoint_find_if): New function. * breakpoint.h (breakpoint_find_if): New prototype.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8aa3862..ca9fc15 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * breakpoint.c (breakpoint_find_if): New function.
+ * breakpoint.h (breakpoint_find_if): New prototype.
+
2015-03-11 Gary Benson <gbenson@redhat.com>
* remote-fileio.h (remote_fileio_to_host_stat): New declaration.