From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6068b2e70032965b,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!news2.volia.net!newsfeed.utanet.at!newsfeed01.chello.at!newsfeed02.chello.at!news.chello.hu.POSTED!not-for-mail From: Sandor Lengyel Subject: Problem in debugging GPS Newsgroups: comp.lang.ada Date: Tue, 26 Sep 2006 09:24:38 +0200 User-Agent: KNode/0.10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-ID: <22c29$4518d54e$50632e62$3203@news.chello.hu> X-Complaints-To: abuse@chello.hu Organization: chello.hu NNTP-Posting-Host: 80.99.46.98 (80.99.46.98) NNTP-Posting-Date: Tue, 26 Sep 2006 09:22:54 +0200 X-Trace: 22c294518d54ef5c68bc703203 Xref: g2news2.google.com comp.lang.ada:6743 Date: 2006-09-26T09:24:38+02:00 List-Id: I modified GPS to work with gcc 4.1.1. using gcc 4.1.1 Now I try to debug it using gdb 6.3 (Ada enabled and ddd) Something funny is happening. In file projects-editor.adb I have the following code segment: function Create_Project (Registry : Projects.Registry.Project_Registry'Class; NameP, Path : String) return Project_Type is D : constant String := Path & To_File_Name (NameP) & Project_File_Extension; Project : Project_Node_Id; Project_Name : Name_Id; P : Project_Type; begin -- Prj.Tree.Initialize (InTree); -- Adding the name of the project Project_Name := Get_String (NameP); Set_Name_Of (Project, InTree, Project_Name); Now Entering Create_Projects and displaying NameP i see that NapmeP is: (gnat.string.string_access) 0x91385cc. Doing Stepi this value stayes even executing: D : constant String := Path & To_File_Name (NameP) & Project_File_Extension; However doing one more Stepi the cursor jumps to P : Project_Type; and NameP value changes to: (gnat.string.string_access) 0xfffffff. The machine code executed is: : mov 0x8e42944,%ebx This value stayes for the rest of the code. Why?