Lines Matching refs:ctxt
376 open_map (struct read_map_ctxt *ctxt)
380 the value for ctxt->proc. This is incorrect, however, since
386 ctxt->proc = ptid_get_pid (inferior_ptid);
387 if (ldr_xattach (ctxt->proc) != 0)
389 ctxt->next = LDR_NULL_MODULE;
402 ctxt->next = ldr_context.head;
403 ctxt->tail = ldr_context.tail;
458 read_map (struct read_map_ctxt *ctxt, struct so_list *so)
468 if (ldr_next_module (ctxt->proc, &ctxt->next) != 0)
470 if (ctxt->next == LDR_NULL_MODULE)
472 if (ldr_inq_module (ctxt->proc, ctxt->next, &minf, sizeof minf, &size) != 0)
481 if (ldr_inq_region (ctxt->proc, ctxt->next, i, &rinf,
493 if (!ctxt->next)
495 if (target_read_memory (ctxt->next, (char *) &minf, sizeof minf) != 0)
497 if (ctxt->next == ctxt->tail)
498 ctxt->next = 0;
500 ctxt->next = minf.next;
528 close_map (struct read_map_ctxt *ctxt)
531 ldr_xdetach (ctxt->proc);
542 struct read_map_ctxt ctxt;
545 if (!open_map (&ctxt))
551 if (!read_map (&ctxt, &so))
574 close_map (&ctxt);
584 struct read_map_ctxt ctxt;
593 if (!open_map (&ctxt))
597 if (!read_map (&ctxt, &so))
602 close_map (&ctxt);