Lines Matching defs:ui

414  *          - ui contains additional info like the compilation dir
421 UnitInfo* ui,
470 if (ML_(cur_is_valid)(ui->compdir))
472 (Word)ML_(addStrFromCursor)(di, ui->compdir) );
616 path 'ui->compdir' ++ "/" ++ 'data'. */
620 && ML_(cur_is_valid)(ui->compdir)
622 && ML_(cur_strlen)(ui->compdir)
627 HChar* compdir_str = ML_(cur_read_strdup)(ui->compdir, "di.rd2l.1b");
928 * Output: Fill members of ui pertaining to the compilation unit:
929 * - ui->name is the name of the compilation unit
930 * - ui->compdir is the compilation unit directory
931 * - ui->stmt_list is the offset in .debug_line section
938 void read_unitinfo_dwarf2( /*OUT*/UnitInfo* ui,
953 VG_(memset)( ui, 0, sizeof( UnitInfo ) );
954 ui->stmt_list = -1LL;
959 blklen = step_initial_length_field( &p, &ui->dw64 );
965 atoffs = ui->dw64 ? ML_(cur_step_ULong)(&p)
972 end_img = ML_(cur_plus)(unitblock_img, blklen + (ui->dw64 ? 12 : 4));
1041 if (ML_(cur_is_valid)(debugstr_img) && !ui->dw64)
1043 if (ML_(cur_is_valid)(debugstr_img) && ui->dw64)
1045 p = ML_(cur_plus)(p, ui->dw64 ? 8 : 4);
1055 if (ui->dw64) {
1062 if (ui->dw64) cval = ML_(cur_read_ULong)(p);
1096 : (ui->dw64 ? 8 : 4));
1119 p = ML_(cur_plus)(p, ui->dw64 ? 8 : 4);
1122 if (ML_(cur_is_valid)(debugstr_alt_img) && !ui->dw64)
1125 if (ML_(cur_is_valid)(debugstr_alt_img) && ui->dw64)
1128 p = ML_(cur_plus)(p, ui->dw64 ? 8 : 4);
1139 if ( name == 0x03 ) ui->name = sval; /* DW_AT_name */
1140 else if ( name == 0x1b ) ui->compdir = sval; /* DW_AT_compdir */
1141 else if ( name == 0x10 ) ui->stmt_list = cval; /* DW_AT_stmt_list */
1168 UnitInfo ui;
1211 /* Fill ui with offset in .debug_line and compdir */
1217 read_unitinfo_dwarf2( &ui, block_img,
1222 HChar* str_name = ML_(cur_read_strdup)(ui.name, "di.rdd3.1");
1223 HChar* str_compdir = ML_(cur_read_strdup)(ui.compdir, "di.rdd3.2");
1225 ui.stmt_list, str_name, str_compdir );
1231 if ( ui.stmt_list == -1LL )
1235 HChar* str_name = ML_(cur_read_strdup)(ui.name, "di.rdd3.3");
1236 VG_(printf)("debug_line_sz %lld, ui.stmt_list %lld %s\n",
1237 escn_debug_line.szB, ui.stmt_list, str_name );
1243 di, &ui,
1244 ML_(cur_plus)(ML_(cur_from_sli)(escn_debug_line), ui.stmt_list),
1245 escn_debug_line.szB - ui.stmt_list