Lines Matching refs:ui

102 pex64_get_unwind_info (bfd *abfd, struct pex64_unwind_info *ui, void *data)  in pex64_get_unwind_info()  argument
108 memset (ui, 0, sizeof (struct pex64_unwind_info)); in pex64_get_unwind_info()
109 ui->Version = PEX64_UWI_VERSION (ex_ui->Version_Flags); in pex64_get_unwind_info()
110 ui->Flags = PEX64_UWI_FLAGS (ex_ui->Version_Flags); in pex64_get_unwind_info()
111 ui->SizeOfPrologue = (bfd_vma) ex_ui->SizeOfPrologue; in pex64_get_unwind_info()
112 ui->CountOfCodes = (bfd_vma) ex_ui->CountOfCodes; in pex64_get_unwind_info()
113 ui->FrameRegister = PEX64_UWI_FRAMEREG (ex_ui->FrameRegisterOffset); in pex64_get_unwind_info()
114 ui->FrameOffset = PEX64_UWI_FRAMEOFF (ex_ui->FrameRegisterOffset); in pex64_get_unwind_info()
115 ui->sizeofUnwindCodes = PEX64_UWI_SIZEOF_UWCODE_ARRAY (ui->CountOfCodes); in pex64_get_unwind_info()
116 ui->SizeOfBlock = ui->sizeofUnwindCodes + 4; in pex64_get_unwind_info()
117 ui->rawUnwindCodes = &ex_dta[4]; in pex64_get_unwind_info()
118 ex_dta += ui->SizeOfBlock; in pex64_get_unwind_info()
119 switch (ui->Flags) in pex64_get_unwind_info()
122 ui->rva_BeginAddress = bfd_get_32 (abfd, ex_dta + 0); in pex64_get_unwind_info()
123 ui->rva_EndAddress = bfd_get_32 (abfd, ex_dta + 4); in pex64_get_unwind_info()
124 ui->rva_UnwindData = bfd_get_32 (abfd, ex_dta + 8); in pex64_get_unwind_info()
125 ui->SizeOfBlock += 12; in pex64_get_unwind_info()
130 ui->rva_ExceptionHandler = bfd_get_32 (abfd, ex_dta); in pex64_get_unwind_info()
131 ui->SizeOfBlock += 4; in pex64_get_unwind_info()
142 struct pex64_unwind_info *ui, in pex64_xdata_print_uwd_codes() argument
149 if (ui->CountOfCodes == 0 || ui->rawUnwindCodes == NULL) in pex64_xdata_print_uwd_codes()
160 if (ui->Version == 2 in pex64_xdata_print_uwd_codes()
161 && PEX64_UNWCODE_CODE (ui->rawUnwindCodes[1]) == UWOP_EPILOG) in pex64_xdata_print_uwd_codes()
169 ui->rawUnwindCodes[0]); in pex64_xdata_print_uwd_codes()
170 if (PEX64_UNWCODE_INFO (ui->rawUnwindCodes[1])) in pex64_xdata_print_uwd_codes()
171 fprintf (file, " 0x%x", func_size - ui->rawUnwindCodes[0]); in pex64_xdata_print_uwd_codes()
173 for (; i < ui->CountOfCodes; i++) in pex64_xdata_print_uwd_codes()
175 const bfd_byte *dta = ui->rawUnwindCodes + 2 * i; in pex64_xdata_print_uwd_codes()
189 for (; i < ui->CountOfCodes; i++) in pex64_xdata_print_uwd_codes()
191 const bfd_byte *dta = ui->rawUnwindCodes + 2 * i; in pex64_xdata_print_uwd_codes()
220 pex_regs[ui->FrameRegister], in pex64_xdata_print_uwd_codes()
221 (unsigned int) ui->FrameOffset * 16, info); in pex64_xdata_print_uwd_codes()
222 unexpected = ui->FrameRegister == 0; in pex64_xdata_print_uwd_codes()
238 if (ui->Version == 1) in pex64_xdata_print_uwd_codes()
245 else if (ui->Version == 2) in pex64_xdata_print_uwd_codes()
320 struct pex64_unwind_info ui; in pex64_dump_xdata() local
332 pex64_get_unwind_info (abfd, &ui, &xdata[addr]); in pex64_dump_xdata()
334 if (ui.Version != 1 && ui.Version != 2) in pex64_dump_xdata()
338 (unsigned int) ui.Version); in pex64_dump_xdata()
352 fprintf (file, "\tVersion: %d, Flags: ", ui.Version); in pex64_dump_xdata()
353 switch (ui.Flags) in pex64_dump_xdata()
372 fprintf (file, "unknown flags value 0x%x", (unsigned int) ui.Flags); in pex64_dump_xdata()
376 fprintf (file, "\tNbr codes: %u, ", (unsigned int) ui.CountOfCodes); in pex64_dump_xdata()
378 (unsigned int) ui.SizeOfPrologue, (unsigned int) ui.FrameOffset); in pex64_dump_xdata()
380 ui.FrameRegister == 0 ? "none" in pex64_dump_xdata()
381 : pex_regs[(unsigned int) ui.FrameRegister]); in pex64_dump_xdata()
383 pex64_xdata_print_uwd_codes (file, abfd, &ui, rf); in pex64_dump_xdata()
385 switch (ui.Flags) in pex64_dump_xdata()
391 fprintf_vma (file, (ui.rva_ExceptionHandler in pex64_dump_xdata()
397 fprintf_vma (file, ui.rva_BeginAddress); in pex64_dump_xdata()
399 fprintf_vma (file, ui.rva_EndAddress); in pex64_dump_xdata()
401 fprintf_vma (file, ui.rva_UnwindData); in pex64_dump_xdata()
407 addr += ui.SizeOfBlock; in pex64_dump_xdata()