public inbox for gdb-testers@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Implement breakpoint_find_if
@ 2015-03-11 20:52 sergiodj+buildbot
  2015-03-11 21:07 ` Failures on Fedora-s390x-m64, branch master sergiodj+buildbot
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: sergiodj+buildbot @ 2015-03-11 20:52 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT badd37cec86e705a190e501ab26975d352718619 ***

Author: Sergio Durigan Junior <sergiodj@redhat.com>
Branch: master
Commit: badd37cec86e705a190e501ab26975d352718619

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.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-03-12 11:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-11 20:52 [binutils-gdb] Implement breakpoint_find_if sergiodj+buildbot
2015-03-11 21:07 ` Failures on Fedora-s390x-m64, branch master sergiodj+buildbot
2015-03-11 23:27 ` Failures on Debian-i686, " sergiodj+buildbot
2015-03-12  0:14 ` Failures on Debian-i686-native-extended-gdbserver, " sergiodj+buildbot
2015-03-12  1:13 ` Failures on Fedora-ppc64be-native-extended-gdbserver-m64, " sergiodj+buildbot
2015-03-12  1:31 ` Failures on Fedora-ppc64be-native-gdbserver-m64, " sergiodj+buildbot
2015-03-12  2:09 ` Failures on Fedora-ppc64le-cc-with-index, " sergiodj+buildbot
2015-03-12 11:15 ` Failures on Debian-x86_64-native-extended-gdbserver-m64, " sergiodj+buildbot
2015-03-12 12:05 ` Failures on Debian-x86_64-m64, " sergiodj+buildbot
2015-03-12 19:25 ` Failures on Fedora-x86_64-m64, " sergiodj+buildbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).