Пример #1
0
 ud_set_sym_resolver(ref ud u, UdSymbolResolverDelegate resolver)
 {
     u.sym_resolver = resolver;
 }
Пример #2
0
 /* =============================================================================
  * ud_set_sym_resolver
  *    Set symbol resolver for relative targets used in the translation
  *    phase.
  *
  *    The resolver is a function that takes a ulong address and returns a
  *    symbolic name for the that address. The function also takes a second
  *    argument pointing to an integer that the client can optionally set to a
  *    non-zero value for offsetted targets. (symbol+offset) The function may
  *    also return NULL, in which case the translator only prints the target
  *    address.
  *
  *    The function pointer maybe NULL which resets symbol resolution.
  * =============================================================================
  */
 static void ud_set_sym_resolver(ref ud u, UdSymbolResolverDelegate resolver)
 {
     u.sym_resolver = resolver;
 }
Пример #3
0
 /// <summary>
 /// Set symbol resolver for relative targets used in the translation phase. The resolver is a function that takes a ulong address and returns a
 /// symbolic name for the that address.The function also takes a second argument pointing to an integer that the client can optionally set to a
 /// non-zero value for offsetted targets. (symbol+offset) The function may also return NULL, in which case the translator only prints the target address.
 /// </summary>
 /// <param name="u">TODO u.</param>
 /// <param name="resolver">TODO resolver.</param>
 private static void UdSetSymResolver(ref Ud u, UdSymbolResolverDelegate resolver)
 {
     u.SymResolver = resolver;
 }