public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
From: scox@sourceware.org
To: frysk-cvs@sourceware.org
Subject: [SCM]  master: Eliminate Type.isTypedef and Type.setTypedefFIXME. (5311)
Date: Mon, 19 Nov 2007 20:27:00 -0000	[thread overview]
Message-ID: <20071119202712.29166.qmail@sourceware.org> (raw)

The branch, master has been updated
       via  e885dc3eb4142c9a1787b55c0dc33a30b7a07b1f (commit)
      from  fd5a20b87a3d6c171fe8888b6d006b9241f1928c (commit)

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

- Log -----------------------------------------------------------------
commit e885dc3eb4142c9a1787b55c0dc33a30b7a07b1f
Author: Stan Cox <scox@redhat.com>
Date:   Mon Nov 19 15:23:58 2007 -0500

    Eliminate Type.isTypedef and Type.setTypedefFIXME. (5311)
    
    * Type.java (isTypedef): Delete.
    (setTypedefFIXME): Delete.
    * CompositeType.java (toPrint): Remove isTypedef reference.
    * TypeEntry.java (getType): Remove setTypedefFIXME from STRUCTURE_TYPE_.

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

Summary of changes:
 frysk-core/frysk/debuginfo/ChangeLog      |    4 ++++
 frysk-core/frysk/debuginfo/TypeEntry.java |    8 ++------
 frysk-core/frysk/value/ChangeLog          |    6 ++++++
 frysk-core/frysk/value/CompositeType.java |   11 +----------
 frysk-core/frysk/value/Type.java          |   18 ------------------
 5 files changed, 13 insertions(+), 34 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/debuginfo/ChangeLog b/frysk-core/frysk/debuginfo/ChangeLog
index b21149f..511f81f 100644
--- a/frysk-core/frysk/debuginfo/ChangeLog
+++ b/frysk-core/frysk/debuginfo/ChangeLog
@@ -1,3 +1,7 @@
+2007-11-19  Stan Cox  <scox@redhat.com>
+
+	* TypeEntry.java (getType): Remove setTypedefFIXME from STRUCTURE_TYPE_.
+
 2007-11-17  Andrew Cagney  <cagney@redhat.com>
 
 	* DebugInfo.java (printNoSymbolTable(String,boolean)): Delete.
diff --git a/frysk-core/frysk/debuginfo/TypeEntry.java b/frysk-core/frysk/debuginfo/TypeEntry.java
index 5ba8c9a..8e7444a 100644
--- a/frysk-core/frysk/debuginfo/TypeEntry.java
+++ b/frysk-core/frysk/debuginfo/TypeEntry.java
@@ -325,12 +325,8 @@ public class TypeEntry
 	    break;
 	}
 	case DwTag.STRUCTURE_TYPE_: {
-	    boolean noTypeDef = (typeDie.getType() == null);
-	    String name = noTypeDef ? typeDie.getName() : typeDie.getType()
-		    .getName();
-	    GccStructOrClassType classType = getGccStructOrClassType(type, name);
-	    if (type != typeDie.getType() && noTypeDef == false)
-		classType.setTypedefFIXME(true);
+	    GccStructOrClassType classType = 
+		getGccStructOrClassType(type, typeDie.getName());
 	    returnType = classType;
 	    break;
 	}
diff --git a/frysk-core/frysk/value/ChangeLog b/frysk-core/frysk/value/ChangeLog
index 3b2cf17..a36eaef 100644
--- a/frysk-core/frysk/value/ChangeLog
+++ b/frysk-core/frysk/value/ChangeLog
@@ -1,5 +1,11 @@
 2007-11-19  Stan Cox  <scox@redhat.com>
 
+	* Type.java (isTypedef): Delete.
+	(setTypedefFIXME): Delete.
+	* CompositeType.java (toPrint): Remove isTypedef reference.
+
+2007-11-19  Stan Cox  <scox@redhat.com>
+
 	* Type.java (toPrint(PrintWriter, Location, ByteBuffer, Format, int)):
 	Add indent parameter.  Change all implementers.
 	(toPrint(PrintWriter writer, int indent)): Likewise.
diff --git a/frysk-core/frysk/value/CompositeType.java b/frysk-core/frysk/value/CompositeType.java
index 7bc3c43..27de857 100644
--- a/frysk-core/frysk/value/CompositeType.java
+++ b/frysk-core/frysk/value/CompositeType.java
@@ -283,13 +283,6 @@ public abstract class CompositeType
     }
 
     public void toPrint(PrintWriter writer, int indentation) {
-	// FIXME: going away.
-	if (this.isTypedef() && this.getName() != null
-	    && this.getName().length() > 0) {
-	    writer.print(this.getName());
-	    return;
-	}
-
 	if (indentation == 0)
 	    indentation = 2;
 	String indentPrefix = "";
@@ -339,9 +332,7 @@ public abstract class CompositeType
 		}
 	    }
 	    writer.print(indentPrefix);
-	    if (member.type.isTypedef())
-		writer.print(member.type.getName());
-	    else if (member.type instanceof ArrayType) {
+	    if (member.type instanceof ArrayType) {
 		// For handling int x[2]
 		printName = false;
 		((ArrayType) member.type).toPrint(writer, member.name, indentation + 2);
diff --git a/frysk-core/frysk/value/Type.java b/frysk-core/frysk/value/Type.java
index 861e818..f9c16e7 100644
--- a/frysk-core/frysk/value/Type.java
+++ b/frysk-core/frysk/value/Type.java
@@ -58,13 +58,9 @@ public abstract class Type {
     // XXX: Is NAME a more target dependant attribute?
     private final String name;
   
-    // XXX: Not needed; made redundant by TypeDef.
-    private boolean isTypedef;
-
     Type (String name, int size) {
 	this.name = name;
 	this.size = size;
-	this.isTypedef = false;
     }
 
     public int getSize() {
@@ -176,20 +172,6 @@ public abstract class Type {
 	throw new InvalidOperatorException(this, "");
     }
 
-    public boolean isTypedef()
-    {
-	return isTypedef;
-    }
-
-    /**
-     * FIXME: Instead of setting the typedef, a TypeDef type can be
-     * created.
-     */
-    public void setTypedefFIXME(boolean isTypedef)
-    {
-	this.isTypedef = isTypedef;
-    }
-
     /**
      * Pack this TYPE into bigSize and bitOffset.
      */


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


                 reply	other threads:[~2007-11-19 20:27 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=20071119202712.29166.qmail@sourceware.org \
    --to=scox@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).