public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
From: pmuldoon@sourceware.org
To: frysk-cvs@sourceware.org
Subject: [SCM]  master: Check for null elf header, and allow fhpd to handle error printing.
Date: Thu, 08 Nov 2007 16:25:00 -0000	[thread overview]
Message-ID: <20071108162522.10417.qmail@sourceware.org> (raw)

The branch, master has been updated
       via  cc4bec76cd893ccb3be127fbf4748ac34019f392 (commit)
      from  67936b53edea993c47c32d70f6190c29aef01cfe (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit cc4bec76cd893ccb3be127fbf4748ac34019f392
Author: Phil Muldoon <pmuldoon@redhat.com>
Date:   Thu Nov 8 16:25:13 2007 +0000

    Check for null elf header, and allow fhpd to handle error printing.
    
    2007-11-08  Phil Muldoon  <pmuldoon@redhat.com>
    
    	* CoreCommand.java (interpret): Remove try{} for host building.
    	Let fhpd error handling print message.
    
    2007-11-08  Phil Muldoon  <pmuldoon@redhat.com>
    
    	* LinuxHost.java (LinuxHost): Check for null Elf Header

-----------------------------------------------------------------------

Summary of changes:
 frysk-core/frysk/hpd/ChangeLog            |    5 +++++
 frysk-core/frysk/hpd/CoreCommand.java     |    9 +--------
 frysk-core/frysk/proc/dead/ChangeLog      |    3 +++
 frysk-core/frysk/proc/dead/LinuxHost.java |    3 ++-
 4 files changed, 11 insertions(+), 9 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/hpd/ChangeLog b/frysk-core/frysk/hpd/ChangeLog
index a1df095..a4781aa 100644
--- a/frysk-core/frysk/hpd/ChangeLog
+++ b/frysk-core/frysk/hpd/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-08  Phil Muldoon  <pmuldoon@redhat.com>
+
+	* CoreCommand.java (interpret): Remove try{} for host building.
+	Let fhpd error handling print message.
+
 2007-11-08  Andrew Cagney  <cagney@redhat.com>
 
 	* ParameterizedCommand.java
diff --git a/frysk-core/frysk/hpd/CoreCommand.java b/frysk-core/frysk/hpd/CoreCommand.java
index 2a7354f..0ffefaf 100644
--- a/frysk-core/frysk/hpd/CoreCommand.java
+++ b/frysk-core/frysk/hpd/CoreCommand.java
@@ -97,14 +97,7 @@ public class CoreCommand extends ParameterizedCommand {
 					"No core file found, or cannot read corefile");
 
 		// Build Core. Move any exceptions up to cli and print to user.
-		try {
-			coreHost = getHost(coreFile, exeFile, noExeOption);
-		} catch (Exception e) {
-			cli.addMessage("An error has occured while loading corefile: '"
-					+ coreFile.getAbsolutePath() + "'. Error message is: "
-					+ e.getMessage(), Message.TYPE_ERROR);
-			return;
-		}
+		coreHost = getHost(coreFile, exeFile, noExeOption);
 
 		// Get the core proc.
 		coreProc = getProc(coreHost);
diff --git a/frysk-core/frysk/proc/dead/ChangeLog b/frysk-core/frysk/proc/dead/ChangeLog
index bd3c6f4..620bb64 100644
--- a/frysk-core/frysk/proc/dead/ChangeLog
+++ b/frysk-core/frysk/proc/dead/ChangeLog
@@ -1,7 +1,10 @@
 2007-11-08  Phil Muldoon  <pmuldoon@redhat.com>
 
+	* LinuxHost.java (LinuxHost): Check for null Elf Header
+
 	* LinuxHost.java (LinuxHost): Check in exe is set to
 	null.
+	
 
 2007-11-07  Phil Muldoon  <pmuldoon@redhat.com>
 
diff --git a/frysk-core/frysk/proc/dead/LinuxHost.java b/frysk-core/frysk/proc/dead/LinuxHost.java
index 3052223..37d4f26 100644
--- a/frysk-core/frysk/proc/dead/LinuxHost.java
+++ b/frysk-core/frysk/proc/dead/LinuxHost.java
@@ -84,7 +84,8 @@ public class LinuxHost extends DeadHost {
 					+ "not a valid ELF core file.");
 		}
 
-		if (corefileElf.getEHeader().type != ElfEHeader.PHEADER_ET_CORE) {
+		if ((corefileElf.getEHeader() == null) || 
+				(corefileElf.getEHeader().type != ElfEHeader.PHEADER_ET_CORE)) {
 			this.corefileElf.close();
 			throw new RuntimeException("'" + this.coreFile.getAbsolutePath()
 					+ "' is not a corefile.");


hooks/post-receive
--
frysk system monitor/debugger


                 reply	other threads:[~2007-11-08 16:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071108162522.10417.qmail@sourceware.org \
    --to=pmuldoon@sourceware.org \
    --cc=frysk-cvs@sourceware.org \
    --cc=frysk@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).