FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Crash Utility

LinkBack Thread Tools
Old 02-01-2012, 05:15 AM
"Suzuki K. Poulose"
Default Update the flags when ELF Notes are processed

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@in.ibm.com>

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;

Crash-utility mailing list

Thread Tools

All times are GMT. The time now is 06:46 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org