From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3641 invoked by alias); 7 Sep 2017 12:09:18 -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 3627 invoked by uid 89); 7 Sep 2017 12:09:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=maint X-HELO: mail-yw0-f170.google.com Received: from mail-yw0-f170.google.com (HELO mail-yw0-f170.google.com) (209.85.161.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 07 Sep 2017 12:09:07 +0000 Received: by mail-yw0-f170.google.com with SMTP id w204so29661940ywg.3 for ; Thu, 07 Sep 2017 05:09:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=eoLfDkJqimNm21kuebBvRBJL5/lg7+rkhv9Wd8BI4sQ=; b=a2Ipl7scpTbqhx+d2CRi/ER64snic9502z5UhMdZPv62QDqtRv81i5UpdhR00kb7ci mLqd3047nJ+/B3ypyTm+9G3LZgFSzgd6irfsDxgXRcOVYOogR7gkQNNIIuIw0mbEtTxk BUXDyMBxoFbGSsOoe39yOu4BlBxEezSeWQcqWYpoP4kIRndeHeC8p6/GTltRTv8QNx6F Jnol5coAnkIi+0G7x/W8qZyg4L2hMPq7+3VQlHccBUgns/DswQUk/ZI97mDDYxGtMBDg L17Kpo5rIbrg4HgXNQ8gPglFjFWjsumHnUSrl4L7xbx9PKMFg6hB9K9ROveWjWUixgOn SvtA== X-Gm-Message-State: AHPjjUjizyGJYr0q74+DTneV3iu5if66JTYrim37Vic7aKrU3wBLgtF9 QrpliZSV18uo2O140UKTmZZABjHk4TSw X-Google-Smtp-Source: ADKCNb4jm/Wt/VadlNOrdRg0nCGeLkgvoP3pGcCDbCgoMpkAPgUQtj+ybAkewpC2fDng5oiXaiXduwvzJZk5s5BTBRQ= X-Received: by 10.129.88.132 with SMTP id m126mr1851479ywb.457.1504786146170; Thu, 07 Sep 2017 05:09:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.165.15 with HTTP; Thu, 7 Sep 2017 05:09:05 -0700 (PDT) From: florent vion Date: Thu, 07 Sep 2017 12:09:00 -0000 Message-ID: Subject: Debugging Multiple Inferiors To: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg00014.txt.bz2 Hi the experts, Do you know if it is possible to debug two cortex-m in parallel with one gdb session using inferiors? Do I need to enable the non stop mode if I use the remote protocol? Here my tests so far: (gdb) target remote :3333 (gdb) file cortex1.elf (gdb) load cortex1.elf (gdb) add-inferior (gdb) inferior 2 (gdb) maint info program-spaces Id Executable 1 cortex1.elf Bound inferiors: ID 1 (Remote target) * 2 Bound inferiors: ID 2 (process 0) (gdb) target remote :3334 A program is being debugged already. Kill it? (y or n) y /home/.../gcc-arm/src/gdb/gdb/thread.c:639: internal-error: thread_info* any_thread_of_process(int): Assertion `pid != 0' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) It seems that the remote target behaves as an Highlander, "there can be only one"... Regards, Florent