Lines Matching defs:ctxt
359 open_map (struct read_map_ctxt *ctxt)
363 the value for ctxt->proc. This is incorrect, however, since
369 ctxt->proc = ptid_get_pid (inferior_ptid);
370 if (ldr_xattach (ctxt->proc) != 0)
372 ctxt->next = LDR_NULL_MODULE;
385 ctxt->next = ldr_context.head;
386 ctxt->tail = ldr_context.tail;
441 read_map (struct read_map_ctxt *ctxt, struct so_list *so)
451 if (ldr_next_module (ctxt->proc, &ctxt->next) != 0)
453 if (ctxt->next == LDR_NULL_MODULE)
455 if (ldr_inq_module (ctxt->proc, ctxt->next, &minf, sizeof minf, &size) != 0)
464 if (ldr_inq_region (ctxt->proc, ctxt->next, i, &rinf,
476 if (!ctxt->next)
478 if (target_read_memory (ctxt->next, (char *) &minf, sizeof minf) != 0)
480 if (ctxt->next == ctxt->tail)
481 ctxt->next = 0;
483 ctxt->next = minf.next;
511 close_map (struct read_map_ctxt *ctxt)
514 ldr_xdetach (ctxt->proc);
525 struct read_map_ctxt ctxt;
528 if (!open_map (&ctxt))
534 if (!read_map (&ctxt, &so))
558 close_map (&ctxt);
568 struct read_map_ctxt ctxt;
577 if (!open_map (&ctxt))
581 if (!read_map (&ctxt, &so))
586 close_map (&ctxt);