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 01-01-1970, 01:00 AM
HATAYAMA Daisuke
 
Default x86_64: Choose note information corredponding to proper task context

Each NT_PRSTATUS corresponds to each CPU, but here CURRENT_CONTEXT()
is wrongly specified, so all the register values for active tasks
except for the task of the current context is wrongly equal to that of
CURRENT_CONTEXT().

Signed-off-by: HATAYAMA Daisuke <d.hatayama@jp.fujitsu.com>
---
src/libgcore/gcore_x86.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/libgcore/gcore_x86.c b/src/libgcore/gcore_x86.c
index 1e98b48..781ee38 100644
--- a/src/libgcore/gcore_x86.c
+++ b/src/libgcore/gcore_x86.c
@@ -1369,7 +1369,7 @@ static int genregs_get(struct task_context *target,
if (active && KDUMP_DUMPFILE()) {
struct user_regs_struct *note_regs_p;

- note_regs_p = get_regs_from_elf_notes(CURRENT_CONTEXT());
+ note_regs_p = get_regs_from_elf_notes(target);
memcpy(&note_regs, note_regs_p, sizeof(struct user_regs_struct));

/*
--
1.7.4


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

Thread Tools




All times are GMT. The time now is 12:31 PM.

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