public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
* Some funit-child testlib additions
@ 2007-04-25 12:59 Mark Wielaard
  0 siblings, 0 replies; only message in thread
From: Mark Wielaard @ 2007-04-25 12:59 UTC (permalink / raw)
  To: frysk

[-- Attachment #1: Type: text/plain, Size: 1264 bytes --]

Hi,

To cut back on special purpose funit-bla test programs that don't work
directly through TestLib I added a small addition to funit-child that
makes writing general Code breakpoint observers easier. You can now send
funit-child a SIGPROF and it will run a dummy () function which in turn
calls two other functions that increase a simple variable on which you
can then set breakpoints. The breakpoint addresses can be found through
query the Elf object of the Child proc using the DwarfDie of the
function. The SIGPROF can be send to separate clones or forks of funit
to test triggering breakpoints on separate Tasks/Procs.

This is currently only used by TestTaskObserverCode which has some
lookup and request methods that could be moved into TestLib for general
usage by other unit tests. Andrews work on having a separate thread
handle i/o to/from the child process as used in TestBreakpoints could
also be merged in to have an alternative way of query the child for
breakpoint addresses that doesn't rely on dwarf if needed. I didn't yet
merge this with other tests because I am trying to concentrate on some
lower level tests. But I did create a bug report for it:
http://sourceware.org/bugzilla/show_bug.cgi?id=4418

Cheers,

Mark

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-04-24 12:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-25 12:59 Some funit-child testlib additions Mark Wielaard

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).