From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 44263 invoked by alias); 10 Feb 2017 08:32:12 -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 44229 invoked by uid 89); 10 Feb 2017 08:32:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 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=Cedric, cedric X-HELO: mail-wm0-f53.google.com Received: from mail-wm0-f53.google.com (HELO mail-wm0-f53.google.com) (74.125.82.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 10 Feb 2017 08:32:10 +0000 Received: by mail-wm0-f53.google.com with SMTP id v186so103411495wmd.0 for ; Fri, 10 Feb 2017 00:32:10 -0800 (PST) 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=JQezQM+3TX6GrzmPpG06pFyKdBSNZIQokbmB5NUDXs8=; b=CKXZFubnch8J0e873ZWjL5Gd+/Wg615ikmzW7XkFaOR1rq+5F/rxxUq+IKzPs8g3DX l63J43aYleu+QtbJl1ipJ6aCosjcO4L+Yv6ktPrsv678JVuq3hBQcnHdf/i1Cs1s6LKR chuPamucJ66A4+mnbQ/HpS9KPYlXsonZNijRJC+Ngip3f+MkK3phstwi8GMWdD+1dUj7 DDzMnl+dOT1640NY3hDrJrnA3J1533Hs2gsEGJyqTPMo8e4PWehGXKI+vFzDyiiBBU5j +ZOEVJOhV2E3NM+TYKt6GxiXU3DKXw+vtFJLu91PtOaUFXh06CjoQeA+Ve0eSiC5ilXr k0Hw== X-Gm-Message-State: AMke39mcPLRJLXunFZcA6ITHjSOsSC6g7Lb4Bk1DDiWi8c17De6bCG22stw2YyESKCBUigj71BsztYwcERfbLQ== X-Received: by 10.28.127.13 with SMTP id a13mr6165272wmd.96.1486715528445; Fri, 10 Feb 2017 00:32:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.134.11 with HTTP; Fri, 10 Feb 2017 00:32:08 -0800 (PST) From: Cedric Jehasse Date: Fri, 10 Feb 2017 08:32:00 -0000 Message-ID: Subject: Frame.pc () python function returns a 64-bit value on with a 32-bit mips target To: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2017-02/txt/msg00025.txt.bz2 Hi, i have built gdb from git configured with ./configure --target=mipsisa32-elf. I use gdb to connect to openocd which is connected using JTAG to a 32-bit little endian mips. When i to use the python api to print the pc, it prints a 64-bit address with the upper 32-bits set to 0xffffffff. Eg. (gdb) python print hex(gdb.newest_frame().pc()) 0xffffffff803453fcL The addresses printed in gdb's cli are all 32-bit. Is there something wrong in my configuration? Thanks, Cedric