This is the mail archive of the gdb-patches@sourceware.org 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]
Other format: [Raw text]

RE: RFA [PATCH v3] Implement 'catch syscall' for gdbserver


On Mon, 2013-09-23 at 11:50 +0000, Agovic, Sanimir wrote:
> Hello Philippe,
> 

> > +  if (the_low_target.get_syscall_trapinfo == NULL)
> > +    {
> > +      *sysno = 0;
> > +      *sysret = 0;
> > +      return;
> > +    }
> >
> Is it sufficient to assign sysno/sysret to 0 to indicate missing 'catch syscall'
> functionality? Both values seem legal to me.
The idea is that will be used in case the user forces the use of the
QCatchSyscalls packet. So, I think it is better to return "valid" (but
not used) values : I do not think there is a syscall nr 0.

Philippe



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