From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 84968 invoked by alias); 27 Jul 2016 06:29:07 -0000 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 Received: (qmail 84953 invoked by uid 89); 27 Jul 2016 06:29:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:TLS1_0, Hx-languages-length:430, HX-HELO:sk:EUR01-V X-HELO: EUR01-VE1-obe.outbound.protection.outlook.com Received: from mail-ve1eur01on0053.outbound.protection.outlook.com (HELO EUR01-VE1-obe.outbound.protection.outlook.com) (104.47.1.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA256 encrypted) ESMTPS; Wed, 27 Jul 2016 06:28:51 +0000 Received: from VI1PR0401MB2671.eurprd04.prod.outlook.com (10.168.66.19) by VI1PR0401MB2670.eurprd04.prod.outlook.com (10.168.66.18) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.549.5; Wed, 27 Jul 2016 06:28:46 +0000 Received: from VI1PR0401MB2671.eurprd04.prod.outlook.com ([10.168.66.19]) by VI1PR0401MB2671.eurprd04.prod.outlook.com ([10.168.66.19]) with mapi id 15.01.0557.009; Wed, 27 Jul 2016 06:28:46 +0000 From: Alexandru-Adrian Oltean To: "gdb@sourceware.org" Subject: hbreak reads memory Date: Wed, 27 Jul 2016 06:29:00 -0000 Message-ID: authentication-results: spf=none (sender IP is ) smtp.mailfrom=adrian.oltean@nxp.com; x-ms-office365-filtering-correlation-id: 34a432c7-1a5c-40b9-b370-08d3b5e743b2 x-microsoft-exchange-diagnostics: 1;VI1PR0401MB2670;6:nMMmCKiLGF0aDlKzmdYteci/yb68MswNR6V9l9A2sY62lFuGUTy8Sxhj4qYRmgeJ1djHje8zvz2wmK5s6J8CRbNWV2max9/k6vpVJLeZdUZp0R2SvyOdhq3vrI4FNvlzSCRvBcv0zlY7tFvXp3XIHo+aXodzI9Rii6KOPXsbeY4RKhi0e+4mJgUNTti7zbYXaz1ASfKtdaITHGbcF+c5JjYyC1BbQqcfOaHlT5Ky9RzNH6budwGnY8MyZOCHOvfEGyKxtiRWH/afRPjAZn46vF+TD1pFFFwUO5hQerQzbpCeE1eLMDHtEUNU7DB2vYxtgSKpG5ujFwANbYM8GDD4qQ==;5:uS+tDAMER/WvkG4B3qhyxAf+/eqpI7tao+tTAPS6DVo/FndGi9G+Qxdw+Y8JXgsCbI1w87jUQatzIXTOY7bgoKlZ3Rr2/eSxHnRRO8edYrIPA+j4Q0E0HrYe8m1qaIZ04vkU73zVKTPgsPxe46tg/g==;24:H1cia5sw8H0WorFznARM2JN7yxB6ii7SIsVFvE7s2oJhYQEGc0VrPYgN3RP1kfAQkWxtzG1jK1bmcUaEBQdIXZ2FhTpaObJeZrTqotlozRQ=;7:i9CMWfUaTOKkFYQ1klT6f1wIK9XNt9uhsrM1Z/3JqLmpAp+mjB2wABU/VEgAM5toba407SEBjeO1YLYG7l2fIfsuadW1y3vj80jbsLAkfP6jvVKV9bor4CGYdrr/FMmr/jPIjhX1u8JUTFz80BccmBKGYMbN17htbyyQcwoVLVQkrj5SnfswbxjfKlZ2xqloBHnGsOOr1pExcPOcs46JiVnw854FdFp6yks8x8SPuLuTn+N+y0CIVBtvjFQ9xu0V x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0401MB2670; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026);SRVR:VI1PR0401MB2670;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0401MB2670; x-forefront-prvs: 0016DEFF96 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(7916002)(53754006)(199003)(189002)(8676002)(9686002)(105586002)(66066001)(189998001)(50986999)(107886002)(5002640100001)(229853001)(76576001)(2351001)(2906002)(1730700003)(122556002)(68736007)(7846002)(92566002)(7736002)(81166006)(3846002)(86362001)(81156014)(102836003)(3280700002)(6116002)(106356001)(2900100001)(5640700001)(3480700004)(5003600100003)(54356999)(74316002)(101416001)(3660700001)(87936001)(110136002)(77096005)(8936002)(33656002)(2501003)(7696003)(97736004)(305945005)(450100001)(586003)(11100500001)(10400500002)(133083001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0401MB2670;H:VI1PR0401MB2671.eurprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jul 2016 06:28:46.4146 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2670 X-SW-Source: 2016-07/txt/msg00033.txt.bz2 Hi everyone, I noticed that setting a hardware break using hbreak will trigger a memory = access at the address where the breakpoint is supposed to be installed. Can= someone explain why is that memory access needed? I'm thinking that we mig= ht be in a situation where that memory area is not yet initialized/accessib= le (maybe MMU not configured yet) and the access corrupts the debugged targ= et. Thanks, Adrian