From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10351 invoked by alias); 18 Nov 2010 13:19:23 -0000 Received: (qmail 10342 invoked by uid 22791); 18 Nov 2010 13:19:22 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-gy0-f169.google.com (HELO mail-gy0-f169.google.com) (209.85.160.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 18 Nov 2010 13:19:17 +0000 Received: by gyh3 with SMTP id 3so2168311gyh.0 for ; Thu, 18 Nov 2010 05:19:16 -0800 (PST) Received: by 10.151.100.20 with SMTP id c20mr1228373ybm.340.1290086356102; Thu, 18 Nov 2010 05:19:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.151.9.8 with HTTP; Thu, 18 Nov 2010 05:18:55 -0800 (PST) In-Reply-To: <201011181132.20789.pedro@codesourcery.com> References: <201011181132.20789.pedro@codesourcery.com> From: DeD MustDIE Date: Thu, 18 Nov 2010 13:19:00 -0000 Message-ID: Subject: Re: How to enable hardware breakpoint support To: Pedro Alves Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-11/txt/msg00075.txt.bz2 Thank you. I was not careful. On workstation (Ubuntu) hardware breakpoints work fine. I really forgot to run program. But on server (FreeBSD) hardware breakpoints still not working. On Thu, Nov 18, 2010 at 14:32, Pedro Alves wrote: > On Thursday 18 November 2010 09:33:19, DeD MustDIE wrote: > >> GBD can set only software breakpoint but not hardware. >> >> Example: >> >> gdb -q `which df` >> >> (gdb) hb *0x400d70 >> No hardware breakpoint support in the target. > > Run to main first, for example with the "start" command. > Then it should work. > > -- > Pedro Alves >