From mint-bounce@lists.fishpool.fi Tue May 27 14:10:17 2008 Message-ID: <483C4C7F.8070902@freesbee.fr> Date: Tue, 27 May 2008 20:01:35 +0200 From: =?ISO-8859-1?Q?Vincent_Rivi=E8re?= User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: mint Subject: Re: [MiNT] as + gdb References: <483B18AC.60104@gmail.com> <483B19A0.2000400@gmail.com> In-Reply-To: <483B19A0.2000400@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: vincent.riviere@freesbee.fr Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id m4RIAHsg016104 Hello MiKRO ! >> I assemble it using 'as --gdwarf2 -o temp.o temp.S' and link using 'ld >> -o temp temp.o' Just use "-g" instead of "--gdwarf2" or "--gstabs". as will use the default debug format, which can only be "stabs" for our platform. > However, the progress isn't very good -- gdb no > longer complains for debugging symbols but as soon as I type "b temp", I > see "Cannot access memory at address 0xe4"... huh? Same for me with as/ld 2.18 and gdb from EasyMiNT. This is clearly a bug somewhere. I found a workaround. Put the following lines at the end of your source. .rept 100 nop .endr Then you can put the breakpoint, and use "run" and "list" ! However, the following warning is displayed: warning: (Internal error: pc 0x17921e4 in read in psymtab, but not in symtab.) I think the bug is in gdb when the size of the text segment is very small... However, you should be happy now with this workaround. -- Vincent Rivière