1. Wez Furlong
  2. gimli

Commits

Wez Furlong  committed a1c1d51

pass the lwpid instead of the debugger thread index

This is useful for modules that have some other state keyed by lwpid
and that want to render it when the threads are visited.

  • Participants
  • Parent commits 42d0665
  • Branches default

Comments (0)

Files changed (1)

File glider.c

View file
 
   if (mod->api_version == 2 && mod->ptr.v2->on_begin_thread_trace) {
     if (mod->ptr.v2->on_begin_thread_trace(&ana_api,
-        mod->exename, args->nthread,
+        mod->exename, args->thread->lwpid,
         gimli_stack_trace_num_frames(args->trace),
         args->pcaddrs, (void**)args->frames) == GIMLI_ANA_SUPPRESS) {
       args->suppress = 1;
 
   if (mod->api_version == 2 && mod->ptr.v2->before_print_frame) {
     if (mod->ptr.v2->before_print_frame(&ana_api,
-          mod->exename, args->nthread, args->nframe,
+          mod->exename, args->thread->lwpid, args->nframe,
           args->pcaddrs[args->nframe], args->frames[args->nframe])
         == GIMLI_ANA_SUPPRESS) {
       args->suppress = 1;
 
   if (mod->api_version == 2 && mod->ptr.v2->after_print_frame) {
     mod->ptr.v2->after_print_frame(&ana_api,
-        mod->exename, args->nthread, args->nframe,
+        mod->exename, args->thread->lwpid, args->nframe,
         args->pcaddrs[args->nframe], args->frames[args->nframe]);
   }
 
 
   if (mod->api_version == 2 && mod->ptr.v2->on_end_thread_trace) {
     mod->ptr.v2->on_end_thread_trace(&ana_api,
-        mod->exename, args->nthread,
+        mod->exename, args->thread->lwpid,
         gimli_stack_trace_num_frames(args->trace),
         args->pcaddrs, (void**)args->frames);
   }