This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ada/12607] New: BINOP_EQUAL does not work with system debuginfo installed


http://sourceware.org/bugzilla/show_bug.cgi?id=12607

           Summary: BINOP_EQUAL does not work with system debug info
                    installed
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ada
        AssignedTo: unassigned@sourceware.org
        ReportedBy: jan.kratochvil@redhat.com
              Host: x86_64-fedora15-linux-gnu
            Target: x86_64-fedora15-linux-gnu


debuginfo-install gcc

gdb -nx gdb.ada/str_ref_cmp/foo
GNU gdb (GDB) 7.2.50.20110327-cvs
This GDB was configured as "x86_64-unknown-linux-gnu".
(gdb) p "a"="a"
$1 = true
(gdb) start
(gdb) p "a"="a"
$2 = false

It affects the same way:
 (gdb) print String_Var (1 .. 3) = "Hel"
-$1 = true
-(gdb) PASS: gdb.ada/str_ref_cmp.exp: print String_Var (1 .. 3) = "Hel"
+$1 = false
+(gdb) FAIL: gdb.ada/str_ref_cmp.exp: print String_Var (1 .. 3) = "Hel"

BINOP_EQUAL operator with gcc debug info installed resolves to:
  ada__strings__maps__Oeq (Ada.Strings.Maps)
as its type matches in ada_resolve_function.
I do not understand the Ada scoping to fix it.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]