Trapping system calls
Eli Zaretskii
eliz@delorie.com
Sat Mar 24 00:44:00 GMT 2001
> Date: Thu, 22 Mar 2001 10:59:18 -0800
> From: bronson@trestle.com (Scott Bronson)
>
> 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.
Is there any reason why you couldn't put a breakpoint inside ioctl and
filter the calls with breakpoint conditions?
More information about the Gdb
mailing list