This is the mail archive of the
mailing list for the GDB project.
Trapping system calls
- To: gdb at sourceware dot cygnus dot com
- Subject: Trapping system calls
- From: bronson at trestle dot com (Scott Bronson)
- Date: Thu, 22 Mar 2001 10:59:18 -0800
Is there any way to break into GDB when a particular system call
is made? I want to trap every ioctl of a certain type. Short
of scattering thousands of breakpoints throughout the code, I could
find no way of doing this.
In other words, I'm looking for the equivalent of "atb WaitNextEvent"
(if there are any other ex-Mac hackers out there :).
Am I missing the truly obvious? Thanks,