[PATCH v2 3/4] [netdump] Update the flags when ELF Notes are processed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch updates the pc->flags2 with ELF_NOTES flag for netdump, when
we have NT_PRSTATUS notes available from the core. Currently this flags is set
only in the case of diskdump. This change would allow us to generalize
the routines for obtaining stack frame for active tasks, where the GPRS
are stored in the notes.

Signed-off-by: Suzuki K. Poulose <suzuki@xxxxxxxxxx>
---

 netdump.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/netdump.c b/netdump.c
index d23e45c..177bc5c 100644
--- a/netdump.c
+++ b/netdump.c
@@ -1696,6 +1696,9 @@ dump_Elf32_Nhdr(Elf32_Off offset, int store)
 				}
 			}
 		}
+		/* Set the flags to indicate that we have NT_PRSTATUS notes */
+		if (nd->num_prstatus_notes > 0)
+			pc->flags2 |= ELF_NOTES;
 		break;
 	case NT_PRPSINFO:
 		netdump_print("(NT_PRPSINFO)\n");

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility


[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux