From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by sourceware.org (Postfix) with ESMTPS id BD7F83955C09 for ; Wed, 13 May 2020 15:41:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BD7F83955C09 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=floehr.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=eric@floehr.com Received: by mail-lf1-x134.google.com with SMTP id r17so10986547lff.9 for ; Wed, 13 May 2020 08:41:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=floehr-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=COQfbup3g32pNT6f/iU+EhwThNrDBnYvDzNsIJ1W1P8=; b=Ifbq2WLj5jWGGZM3kmIa1MZf92bc3JYPL3wHrcrcC4So1U625HG8chuDwu7UfKqwjN wF2iOOl31z7oPvIH1VrvCNSeot7AYqGswAnkeiYbNpaECPY3gjFI530EQuUv7bWpD75R IHUp0PWVwFgLFihYuY5Rc1quG9kW+1xwjqAzN13RtQRrm+/Q4ZxLsD/77E9KxHd5boVd PTL6CmTiRQNiIkP91Mm+kVTPdcwQ/Zo05GMCWsYkg3MHLBEGJ/4JET0t7c5pr5K0E4dJ Ab+DkwhM04pM+596q4dTUNwpaUljma0GhcZyu1oa2QG1YIOmACKQryGIj0gPwk6c8yjO D19g== 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=COQfbup3g32pNT6f/iU+EhwThNrDBnYvDzNsIJ1W1P8=; b=bh+jeYI9lqUhOk1R+Qbg3qD6ZHBcV5hSCae1sn67clSlR7Qj4v06ruVOJOgY2IYMnm M3DPeGSTtIQ/FYW45ykyvtH6lU0vaAHAt+JiAyDoaBps10sn4+d7IT1UzoVACi/Xzwe8 10AoEkXMNnzFPbWxr+6jcd1wfC1bm76ttxGPTya58mdQe+abuFjkVPDp6XjChRbDSq7r hoOpbizr+QWvnn1lhhgDRT9Hn7Brhvpu6C8DGtW/OsFxXS+dgGMA6U50fi2hjWUyr+gv oUGDXf+WR4A7+2VHM8YETOV2NN252IQT7hIzuiIRGXQIKfIzytgOi8UpHzFxKJ/b5quf Pl2A== X-Gm-Message-State: AOAM533P9MpqomJWa3O8K58wHCM16oGUYGgAOjWojAOWVWv04C7FOAQY QjxiBtCzvyUEZ0nd/7dl5iT7ZdQ6cRz/WS6Aqv2DuJuFCZzpsA== X-Google-Smtp-Source: ABdhPJxnXJfozUgdlHcKRoQOApZ66Z0Nt9nxLU3vx0SEB6rDkja7X2SkrGvbOBn1kkk7r6ZGbod048ApSJCLfH8YLn0= X-Received: by 2002:a19:e52:: with SMTP id 79mr114935lfo.32.1589384497927; Wed, 13 May 2020 08:41:37 -0700 (PDT) MIME-Version: 1.0 From: Eric Floehr Date: Wed, 13 May 2020 11:41:26 -0400 Message-ID: Subject: Wrong register names when remote debugging To: gdb@sourceware.org X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, HTML_MESSAGE, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 May 2020 15:41:41 -0000 Hi, Running Ubuntu 20.04 with st-util and gdb-multiarch. I am new to remote debugging with gdb, but examples show correct register names. When I connect remotely I see the correct register values, but with x86 register names: st-util output: st-util 1.6.0 2020-05-13T11:28:43 INFO common.c: Loading device parameters.... 2020-05-13T11:28:43 INFO common.c: Device connected is: F303 high density device, id 0x10036446 2020-05-13T11:28:43 INFO common.c: SRAM size: 0x10000 bytes (64 KiB), Flash: 0x80000 bytes (512 KiB) in pages of 2048 bytes 2020-05-13T11:28:43 INFO gdb-server.c: Chip ID is 00000446, Core ID is 2ba01477. 2020-05-13T11:28:43 INFO gdb-server.c: Listening at *:4242... 2020-05-13T11:28:59 INFO gdb-server.c: Found 6 hw breakpoint registers 2020-05-13T11:28:59 INFO gdb-server.c: GDB connected. 2020-05-13T11:30:06 ERROR gdb-server.c: cannot recv: -2 2020-05-13T11:30:06 INFO gdb-server.c: Listening at *:4242... gdb connection: GNU gdb (Ubuntu 9.1-0ubuntu1) 9.1 Copyright (C) 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) target extended-remote :4242 Remote debugging using :4242 warning: No executable has been specified and target does not support determining executable automatically. Try using the "file" command. 0x00000000 in ?? () (gdb) load main.elf Loading section .text, size 0x1c lma 0x8000000 Start address 0x08000000, load size 28 Transfer rate: 208 bytes/sec, 28 bytes/write. (gdb) continue Continuing. ^C Program received signal SIGTRAP, Trace/breakpoint trap. 0x00000000 in ?? () (gdb) info registers eax 0x1cb5d1 1881553 ecx 0x0 0 edx 0x0 0 ebx 0x0 0 esp 0x0 0x0 ebp 0x0 0x0 esi 0x0 0 edi 0xdeadbeef -559038737 eip 0x0 0x0 eflags 0x0 [ ] cs 0x0 0 ss 0x0 0 ds 0x0 0 es 0x20080000 537395200 fs 0xffffffff -1 gs 0x8000010 134217744 (gdb) Any thoughts on what is going on? Thanks! Eric