gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] gm2-harness-0.6 and the latest CVS changelog


From: Gaius Mulley
Subject: [Gm2] gm2-harness-0.6 and the latest CVS changelog
Date: 15 Nov 2005 22:20:02 +0000
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

Hi,

I've just uploaded gm2-harness-0.6 and the latest CVS.
The latest changelog entries are:

        * added more regression tests and
        * completed the printing of set types within gdb
        * completed the printing of array and subrange types within gdb
        * made gdb print Modula-2 style CHARs and improved type printing
          within gdb.
        * rationalised the gdb and gcc patches within the gm2/patch
          subdirectories.
        * modified gm2-harness-0.6 to apply patches in order.
        * minor fixes to gm2/gccgm2.c to give better type information.
        * improved gdb section within gm2/gm2.texi
        * fixed minor node bugs in gm2/gm2.texi, gm2/gpl.texi, gm2/gnu.texi

however quite a few changes have taken place. The gm2-harness-0.6 now
builds downloads gdb-6.3 as well as gcc-3.3.6 and applies patches to
both before building gm2. Essentially there are 2 patches for gdb and
gcc. The initial patch for gcc and gdb is from Waldek Hebisch (many
thanks) which provides better support for SET types (and fixes a
serious bug when passing sets in parameters) and the second patch for
gcc and gdb was written by me to enhance subrange type information (in
gcc) and provide better support for Modula-2 in gdb.

There is still much more to be done - but I think the improvements
are useful enough to warrant a release/test. Basically the patched
gdb prints SET types, ARRAY types, base types and character literals
in a Modula-2 form.

It is advisable to use -g -gdwarf-2 when debugging (rather than
-g -gstabs+). Here are a few examples:

Note that although the ARRAYs are now displayed with their correct
ranges they (currently) need to be accessed as if the lower range is
zero. To build, download the gm2-harness-0.6 (found in the same
directory as gm2-harness-0.5 on the web page) and:

   tar zxf gm2-harness-0.6.tar.gz
   cd gm2-harness-0.6
   ./configure --with-gdb=6.3
   make

note the configure script uses --with-gdb=6.3 (if you wish to build
gdb). It now installs gm2, gcc, gdb into $HOME/opt (you can change
this easily enough by changing gm2-harness-0.6/config-values).

enjoy,
Gaius



Dwarf2 setchar3
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...Using host libthread_db 
library "/lib/libthread_db.so.1".

Breakpoint 1 at 0x421298: file setchar3.mod, line 30.

Breakpoint 1, _M2_setchar3_init () at setchar3.mod:30
30         ch := 'z' ;
31         s := smallchar{} ;
$1 = {}
type = SET ['A'..'Z']

=====================================================
Dwarf2 subrange15
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...Using host libthread_db 
library "/lib/libthread_db.so.1".

Breakpoint 1 at 0x421298: file subrange15.mod, line 8.

Breakpoint 1, _M2_subrange15_init () at subrange15.mod:8
8          s := 20 ;
9          s := 21 ;
$1 = 20
type = [20..40]
=====================================================

Dwarf2 subrange16
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...Using host libthread_db 
library "/lib/libthread_db.so.1".

Breakpoint 1 at 0x421298: file subrange16.mod, line 8.

Breakpoint 1, _M2_subrange16_init () at subrange16.mod:8
8          s := 'A' ;
9          s := 'B' ;
$1 = 65 'A'
type = ['A'..'Z']

=====================================================
Dwarf2 subrange17
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...Using host libthread_db 
library "/lib/libthread_db.so.1".

Breakpoint 1 at 0x421298: file subrange17.mod, line 9.

Breakpoint 1, _M2_subrange17_init () at subrange17.mod:9
9          s := blue ;
10         s := red ;
$1 = blue
type = [blue..yellow]
=====================================================
Dwarf2 array4
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...Using host libthread_db 
library "/lib/libthread_db.so.1".

Breakpoint 1 at 0x421298: file array4.mod, line 6.

Breakpoint 1, _M2_array4_init () at array4.mod:6
6          s[1] := 1 ;
7          s[1] := 1 ;
$1 = {1, 0, 0, 0, 0}
type = ARRAY [1..5] OF CARDINAL

=====================================================
Dwarf2 array5
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...Using host libthread_db 
library "/lib/libthread_db.so.1".

Breakpoint 1 at 0x421298: file array5.mod, line 8.

Breakpoint 1, _M2_array5_init () at array5.mod:8
8          NEW(s) ;
9          s^[1] := 1 ;
$1 = 0x536280
type = POINTER TO ARRAY [1..5] OF CARDINAL
=====================================================
Dwarf2 char
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...Using host libthread_db 
library "/lib/libthread_db.so.1".

Breakpoint 1 at 0x421298: file char.mod, line 6.

Breakpoint 1, _M2_char_init () at char.mod:6
6          s := 'a' ;
7          s := 'z' ;
$1 = 97 'a'
type = CHAR
=====================================================
Dwarf2 int
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...Using host libthread_db 
library "/lib/libthread_db.so.1".

Breakpoint 1 at 0x421298: file int.mod, line 6.

Breakpoint 1, _M2_int_init () at int.mod:6
6          s := 1 ;
7          s := 1 ;
$1 = 1
type = INTEGER
=====================================================
Dwarf2 ptrarray
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...Using host libthread_db 
library "/lib/libthread_db.so.1".

Breakpoint 1 at 0x421298: file ptrarray.mod, line 27.

Breakpoint 1, _M2_ptrarray_init () at ptrarray.mod:27
27         s := NIL ;
31      END ptrarray.
$1 = 0x0
type = POINTER TO ARRAY [0..9] OF CHAR
=====================================================
Dwarf2 setenum
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...Using host libthread_db 
library "/lib/libthread_db.so.1".

Breakpoint 1 at 0x421298: file setenum.mod, line 30.

Breakpoint 1, _M2_setenum_init () at setenum.mod:30
30         s := set{};
31         s := set{};
$1 = {}
type = set = SET OF enum
=====================================================
Dwarf2 record7
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...Using host libthread_db 
library "/lib/libthread_db.so.1".

Breakpoint 1 at 0x421298: file record7.mod, line 32.

Breakpoint 1, _M2_record7_init () at record7.mod:32
32         s := NIL ;
36      END record7.
$1 = 0x0
type = POINTER TO ARRAY [-2..2] OF foo = RECORD
    f1 : CARDINAL;
    f2 : CHAR;
    f3 : ARRAY [-2..2] OF CARDINAL;
END 
=====================================================
Dwarf2 setchar4
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...Using host libthread_db 
library "/lib/libthread_db.so.1".

Breakpoint 1 at 0x421298: file setchar4.mod, line 29.

Breakpoint 1, _M2_setchar4_init () at setchar4.mod:29
29         p := ADR(s) ;
30         p^[0] := -1 ;
$1 = {}
type = charset = SET OF CHAR




reply via email to

[Prev in Thread] Current Thread [Next in Thread]