public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
From: scox@sourceware.org
To: frysk-cvs@sourceware.org
Subject: [SCM]  master: Handle "typedef void" (bug 5669).
Date: Mon, 28 Jan 2008 22:01:00 -0000	[thread overview]
Message-ID: <20080128220102.2031.qmail@sourceware.org> (raw)

The branch, master has been updated
       via  d13d270db639ffc6eb17e537380ef01496d49f91 (commit)
      from  2dba4bb8b5ef15d14c6716804b4a9c32d9632166 (commit)

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

- Log -----------------------------------------------------------------
commit d13d270db639ffc6eb17e537380ef01496d49f91
Author: Stan Cox <scox@redhat.com>
Date:   Mon Jan 28 16:52:50 2008 -0500

    Handle "typedef void" (bug 5669).
    
    * TypeEntry.java (getType): DwTag.TYPEDEF_: Handle "typedef void"
    * gen-type-funit-tests.py (main): Add ptr_void_type_var.

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

Summary of changes:
 frysk-core/frysk/debuginfo/ChangeLog               |    4 ++++
 frysk-core/frysk/debuginfo/TypeEntry.java          |    6 +++++-
 frysk-core/frysk/pkglibdir/ChangeLog               |    4 ++++
 frysk-core/frysk/pkglibdir/gen-type-funit-tests.py |    5 ++++-
 4 files changed, 17 insertions(+), 2 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/debuginfo/ChangeLog b/frysk-core/frysk/debuginfo/ChangeLog
index 0bf997c..1356c25 100644
--- a/frysk-core/frysk/debuginfo/ChangeLog
+++ b/frysk-core/frysk/debuginfo/ChangeLog
@@ -1,3 +1,7 @@
+2008-01-28  Stan Cox  <scox@redhat.com>
+
+	* TypeEntry.java (getType): DwTag.TYPEDEF_: Handle "typedef void"
+
 2008-01-24  swagiaal  <swagiaal@redhat.com>
 
 	* DebugInfoFrame.java: Fix for NullPointerException
diff --git a/frysk-core/frysk/debuginfo/TypeEntry.java b/frysk-core/frysk/debuginfo/TypeEntry.java
index 342c34f..9633642 100644
--- a/frysk-core/frysk/debuginfo/TypeEntry.java
+++ b/frysk-core/frysk/debuginfo/TypeEntry.java
@@ -437,7 +437,11 @@ public class TypeEntry {
 
 	switch (type.getTag().hashCode()) {
 	case DwTag.TYPEDEF_:
-	    returnType = new TypeDef(type.getName(), getType(type.getType()));
+	    DwarfDie typedefDieType = type.getType();
+	    Type typedefType = (typedefDieType != null) 
+		? getType(typedefDieType)
+	    	: new UnknownType(type.getName());
+	    returnType = new TypeDef(type.getName(), typedefType);
 	    break;
 	case DwTag.POINTER_TYPE_: {
 	    Type ptrTarget = getType(type.getType());
diff --git a/frysk-core/frysk/pkglibdir/ChangeLog b/frysk-core/frysk/pkglibdir/ChangeLog
index 74af801..be4b4c4 100644
--- a/frysk-core/frysk/pkglibdir/ChangeLog
+++ b/frysk-core/frysk/pkglibdir/ChangeLog
@@ -1,3 +1,7 @@
+2008-01-28  Stan Cox  <scox@redhat.com>
+
+	* gen-type-funit-tests.py (main): Add ptr_void_type_var.
+
 2008-01-23  Rick Moseley  <rmoseley@redhat.com>
 
 	* funit-parameters.c: New for testing Start/RunCommand.java.
diff --git a/frysk-core/frysk/pkglibdir/gen-type-funit-tests.py b/frysk-core/frysk/pkglibdir/gen-type-funit-tests.py
index df70414..e299ca4 100644
--- a/frysk-core/frysk/pkglibdir/gen-type-funit-tests.py
+++ b/frysk-core/frysk/pkglibdir/gen-type-funit-tests.py
@@ -419,7 +419,7 @@ c_file.add('''struct {
     .int_var=1,
   },
 }''')
-# HERE HERE -------------------------------------------------------
+
 c_file.add('''struct {
   union {
     int int_var;
@@ -780,4 +780,7 @@ c_file.add('''enum colors {\n  orange = 0,\n  yellow = 1,\n  violet = 2,\n  indi
 c_file.add('''enum  {\n  chevy = 0,\n  dodge = 44,\n  ford = 55\n}''', "usa_cars", "chevy")
 c_file.add('''enum cars {\n  bmw = 0,\n  mercedes = 1,\n  porsche = 2\n}''', "sports_cars", "bmw")
 
+
+c_file.write("\ntypedef void void_type;\n")
+c_file.add("void_type *", "ptr_void_type_var", "")
 c_file.epilogue()


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


                 reply	other threads:[~2008-01-28 22:01 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=20080128220102.2031.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).