From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4421 invoked by alias); 25 Apr 2013 13:38:43 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 4410 invoked by uid 89); 25 Apr 2013 13:38:43 -0000 X-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1 Received: from mail-wi0-f170.google.com (HELO mail-wi0-f170.google.com) (209.85.212.170) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 25 Apr 2013 13:38:42 +0000 Received: by mail-wi0-f170.google.com with SMTP id l13so9190708wie.5 for ; Thu, 25 Apr 2013 06:38:40 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.180.198.49 with SMTP id iz17mr10133663wic.19.1366897120349; Thu, 25 Apr 2013 06:38:40 -0700 (PDT) Received: by 10.180.3.163 with HTTP; Thu, 25 Apr 2013 06:38:40 -0700 (PDT) In-Reply-To: References: <5178E338.3090307@siva.com.mk> Date: Thu, 25 Apr 2013 13:38:00 -0000 Message-ID: From: Edgar Grimberg To: Lukas Riezler Cc: ecos-discuss@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: Re: [ECOS] Debugging via JTAG - problems? X-SW-Source: 2013-04/txt/msg00026.txt.bz2 Resent for the list... first attempt failed due to HTML email. On Thu, Apr 25, 2013 at 3:31 PM, Edgar Grimberg wrote: > > > On Thu, Apr 25, 2013 at 3:03 PM, Lukas Riezler wrote: >> >> Hi Ilija! >> >> > How do you get to main? by single stepping? Breakpoint? >> > Put breakpoint on hal_system_init() . That's an early breakpoint and >> > will give you chance to step through system booting. >> >> Yes, I did it by single stepping. Like you advised I tried it now with a breakpoint at hal_system_init(). >> Eclipse shows me that this breakpoint exists and it also shows me that the breakpoint is located in the correct file! That's good. >> Now I try to "run" (with "Resume" / F8) the program until the breakpoint should halt it. But unfortunately nothing happens? > > > Hi Lukas, > > Some advices related to debugging: > - Be sure everything is compiled with -O0 (no optimization). > - Try using the gdb in command line until you are sure you are doing the right thing. > - If you are trying to debug I/O, don't mouse around in Eclipse, as you might trigger an unwanted read operation by hovering over a variable. > - Be sure you have compiled the latest version of the source code. > - Be sure you have loaded the elf file to the target (I assume it's a RAM application, isn't it?) > > Post the exact steps you are doing in command line gdb (copy + paste commands and output), it might be clearer like that. > > Regards, > Edgar > > >> >> >> With kind regards, >> Lukas >> >> -- >> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos >> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss >> > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss