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: [PATCH V4 5/9] New probe type: DTrace USDT probes.


     
    +	if (DOF_UINT (dof, section->dofs_size)
    +	    < sizeof (struct dtrace_dof_provider))
    +	  {
    +	    /* The section is smaller than expected, so do not use it.
    +	       This has been observed on x86-solaris 10.  */
    +	    goto invalid_dof_data;
    +	  }
    +

It looks to me that at some point a new field was probably added to the
struct dtrace_dof_provider, changing its size.  If the DOF sections
found in the solaris-x86 binaries were generated before the change, that
would explain the discrepancy in size.


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