From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by sourceware.org (Postfix) with ESMTPS id 3F20D385DC14 for ; Sun, 12 Apr 2020 12:03:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3F20D385DC14 Received: by mail-ed1-x52b.google.com with SMTP id v1so8285188edq.8 for ; Sun, 12 Apr 2020 05:03:09 -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=zVgAS3dt6b9nLjkMfEdwiqtcAnulp7tqRyLPRcMHeSc=; b=fDMU2qXlLRHXH+Rm+SmCZ3eWUEG4HP7h44RxfMMGi8HQf36mOU6gTugzeIzq5ZiUob 3DM9kRyz13cyHIrDGG4X63NLwBDZR9X2LOEeomKGQQvFZPGJVIrO5zRCaWfW9Gx7K2p2 Z6iDkYeGVchx67uvTCrmM8YBHkN5MSO5PzYMQtXe7zigHsosCjeWjxnpeKXaeiao0noa NtMZ1lwm1ije17jaUUb5kcHTapTIOv3SlGR8vfH7cIi1hpW2YyI3fanqIPqJgHpvTpde 8bFdWuzwEB119xYQQXDB4uvLBvwTf8L+4lSfEMt4nzD4QP2VxNEmG4pUzgsjNdfhuAHN ebeQ== X-Gm-Message-State: AGi0Puaz2+2IJqRuH+y8drRdGciO1lkocODUS+srjyxlFI8TpoOaXlZa n9kXxjPbmbBzMSm37kqp18n4vUiGYRu+LKmqIhI1FDsh X-Google-Smtp-Source: APiQypLOlR+zqh9mfuzq9bVep+M9SujtQEOGtngz3IT5c+8wdCjTh8Wy6k4WzM7dAu8zS337Ne45EiFgktoE4UOuLx4= X-Received: by 2002:a50:9384:: with SMTP id o4mr12109146eda.309.1586692988095; Sun, 12 Apr 2020 05:03:08 -0700 (PDT) MIME-Version: 1.0 From: Omer Date: Sun, 12 Apr 2020 15:02:32 +0300 Message-ID: Subject: Specifying target endianness via Remote Serial Protocol To: gdb@sourceware.org X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, 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: Sun, 12 Apr 2020 12:03:10 -0000 Hi, While writing my own gdb stub, I noticed that there is no way to specify what endianness the target is using (I guess the logical place for that would be in the target.xml file). One can use "set endian" manually to fix that, but when debugging an ARM BE8 target, there is no way to specify that the code is little endian (currently byte_order_for_code is initialized to little only when loading a BE8 elf). Shouldn't there be an additional field for target XML tag to specify that? Omer.