From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26222 invoked by alias); 17 Jul 2013 16:13:58 -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 26207 invoked by uid 89); 17 Jul 2013 16:13:57 -0000 X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,RDNS_NONE autolearn=no version=3.3.1 Received: from Unknown (HELO mail.sceen.net) (5.39.75.216) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 17 Jul 2013 16:13:56 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.sceen.net (Postfix) with ESMTP id B03A1120F43; Wed, 17 Jul 2013 18:13:48 +0200 (CEST) Received: from mail.sceen.net ([127.0.0.1]) by localhost (mail.sceen.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qa2JkMhxF75i; Wed, 17 Jul 2013 18:13:48 +0200 (CEST) Received: by mail.sceen.net (Postfix, from userid 1000) id 6E716121767; Wed, 17 Jul 2013 18:13:48 +0200 (CEST) Date: Wed, 17 Jul 2013 16:13:00 -0000 From: Richard Braun To: Yue Lu Cc: Luis Machado , gdb@sourceware.org, bug-hurd@gnu.org, Thomas Schwinge Subject: Re: how to continue from a breakpoint in GNU/Hurd Message-ID: <20130717161348.GA14402@dalaran.sceen.net> References: <51E5785D.1050904@codesourcery.com> <51E58223.5040505@codesourcery.com> <20130717120954.GA26158@dalaran.sceen.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2013-07/txt/msg00056.txt.bz2 On Thu, Jul 18, 2013 at 12:07:20AM +0800, Yue Lu wrote: > when I used thread_info() to check the suspend count, they are zero. > But I met a strange thing. > this is my code snippet: > thread_basic_info_data_t _info; > thread_basic_info_t info = &_info; > mach_msg_type_number_t info_len = THREAD_BASIC_INFO_COUNT; > error_t err = > thread_info (thread->port, THREAD_BASIC_INFO, (int *) &info, &info_len); > > after this call, the info turn out to be a _NULL_ pointer. I think If the info pointer is NULL, how do you determine the suspend count ? > something maybe wrong, but the err is zero. Something does look wrong. Check all the parameters of your call, one by one, rigorously. -- Richard Braun