This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Trapping system calls


> 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?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]