Print this page
5510 elfdump doesn't print the member header before pr_reg

*** 857,869 **** sl_field_t fdesc1, fdesc2; sl_fmtbuf_t buf1, buf2; Conv_inv_buf_t inv_buf1, inv_buf2; Word w; indent_enter(state, title, &fdesc1); - fdesc1 = fdesc2 = state->ns_arch->prgregset->elt0; for (w = 0; w < fdesc1.slf_nelts; ) { if (w == (fdesc1.slf_nelts - 1)) { /* One last register is left */ if (!data_present(state, &fdesc1)) break; --- 857,869 ---- sl_field_t fdesc1, fdesc2; sl_fmtbuf_t buf1, buf2; Conv_inv_buf_t inv_buf1, inv_buf2; Word w; + fdesc1 = fdesc2 = state->ns_arch->prgregset->elt0; indent_enter(state, title, &fdesc1); for (w = 0; w < fdesc1.slf_nelts; ) { if (w == (fdesc1.slf_nelts - 1)) { /* One last register is left */ if (!data_present(state, &fdesc1)) break;
*** 925,941 **** if (data_present(state, &layout->pr_why)) { w = extract_as_word(state, &layout->pr_why); print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_WHY), conv_cnote_pr_why(w, 0, &conv_buf.inv)); - } if (data_present(state, &layout->pr_what)) { w2 = extract_as_word(state, &layout->pr_what); print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_WHAT), conv_cnote_pr_what(w, w2, 0, &conv_buf.inv)); } if (data_present(state, &layout->pr_cursig)) { w = extract_as_word(state, &layout->pr_cursig); print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_CURSIG), conv_cnote_signal(w, CONV_FMT_DECIMAL, &conv_buf.inv)); --- 925,941 ---- if (data_present(state, &layout->pr_why)) { w = extract_as_word(state, &layout->pr_why); print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_WHY), conv_cnote_pr_why(w, 0, &conv_buf.inv)); if (data_present(state, &layout->pr_what)) { w2 = extract_as_word(state, &layout->pr_what); print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_WHAT), conv_cnote_pr_what(w, w2, 0, &conv_buf.inv)); } + } if (data_present(state, &layout->pr_cursig)) { w = extract_as_word(state, &layout->pr_cursig); print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_CURSIG), conv_cnote_signal(w, CONV_FMT_DECIMAL, &conv_buf.inv));
*** 1130,1146 **** if (data_present(state, &layout->pr_why)) { w = extract_as_word(state, &layout->pr_why); print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_WHY), conv_cnote_pr_why(w, 0, &conv_buf.inv)); ! } if (data_present(state, &layout->pr_what)) { w2 = extract_as_word(state, &layout->pr_what); print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_WHAT), conv_cnote_pr_what(w, w2, 0, &conv_buf.inv)); } PRINT_SUBTYPE(MSG_ORIG(MSG_CNOTE_T_PR_INFO), pr_info, dump_siginfo); if (data_present(state, &layout->pr_cursig)) { w = extract_as_word(state, &layout->pr_cursig); --- 1130,1147 ---- if (data_present(state, &layout->pr_why)) { w = extract_as_word(state, &layout->pr_why); print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_WHY), conv_cnote_pr_why(w, 0, &conv_buf.inv)); ! if (data_present(state, &layout->pr_what)) { w2 = extract_as_word(state, &layout->pr_what); print_str(state, MSG_ORIG(MSG_CNOTE_T_PR_WHAT), conv_cnote_pr_what(w, w2, 0, &conv_buf.inv)); } + } PRINT_SUBTYPE(MSG_ORIG(MSG_CNOTE_T_PR_INFO), pr_info, dump_siginfo); if (data_present(state, &layout->pr_cursig)) { w = extract_as_word(state, &layout->pr_cursig);