summaryrefslogtreecommitdiff
path: root/usr/src/cmd
diff options
context:
space:
mode:
authorRichard Lowe <richlowe@richlowe.net>2015-01-07 13:30:58 -0500
committerRichard Lowe <richlowe@richlowe.net>2015-01-09 13:28:14 -0500
commit3f3aaf4e95972f6d6393cbff0a4652f4ee2c0dbf (patch)
treeabdfbb01cc95cd0e8b84a920eac3b8e6f49a786a /usr/src/cmd
parent98cadd320d4521e7438bc624f89adef498589add (diff)
downloadillumos-gate-3f3aaf4e95972f6d6393cbff0a4652f4ee2c0dbf.tar.gz
5510 elfdump doesn't print the member header before pr_reg
Reviewed by: Dan McDonald <danmcd@omniti.com> Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com> Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/cmd')
-rw-r--r--usr/src/cmd/sgs/elfdump/common/corenote.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/usr/src/cmd/sgs/elfdump/common/corenote.c b/usr/src/cmd/sgs/elfdump/common/corenote.c
index f75056991a..57930866e2 100644
--- a/usr/src/cmd/sgs/elfdump/common/corenote.c
+++ b/usr/src/cmd/sgs/elfdump/common/corenote.c
@@ -859,9 +859,9 @@ dump_prgregset(note_state_t *state, const char *title)
Conv_inv_buf_t inv_buf1, inv_buf2;
Word w;
+ fdesc1 = fdesc2 = state->ns_arch->prgregset->elt0;
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 */
@@ -927,12 +927,12 @@ dump_lwpstatus(note_state_t *state, const char *title)
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_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)) {
@@ -1132,12 +1132,13 @@ dump_prstatus(note_state_t *state, const char *title)
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_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);