From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 72940 invoked by alias); 4 Mar 2016 14:27: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 72928 invoked by uid 89); 4 Mar 2016 14:27:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=accomplished X-HELO: mail-yk0-f176.google.com Received: from mail-yk0-f176.google.com (HELO mail-yk0-f176.google.com) (209.85.160.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 04 Mar 2016 14:27:16 +0000 Received: by mail-yk0-f176.google.com with SMTP id u9so23394374ykd.1 for ; Fri, 04 Mar 2016 06:27:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=hDjtWLx991eKWWUZf16tnfewov/BHziA7/a2a4A7X7U=; b=SjiqEsBudt1z+NnN2wey8nC2PK4YNAKAfGim2+yW3X6qJYHcSnR87nEJTYuEB0eVVA tcjIbjb2GeNgS/xGXUztNa0/v5psV+Re8ygAp1Y4phg23YTI4XXAO/dfOZWW8fK0Jdel dMEv/reyxDEkHmqopHCEWQeh5PqePs/1nipuNfhtOvaEZdHckl2KR/cYj2XRma9LIpus 3abPO7JT6etsue5sdzIPm0KnKBczSzACKEXbYfCrgTgqPzD1LH9A4Y9ORxmZKFx0v3q2 dzHAgj3vglV9tDWkUERgrzy53jjTUI1fnSc+++320ZMSOguFtvLT5V2WOn0caV1xqoNw Vlnw== X-Gm-Message-State: AD7BkJL5MiWXuh9NTqRrc4REha556HoOD6NvbH3ZjyX04AoPy6zGx4YfnYIMdi/aYHn/XySxZ9kt6FJYIC5Vug== MIME-Version: 1.0 X-Received: by 10.37.64.207 with SMTP id n198mr4907786yba.12.1457101634476; Fri, 04 Mar 2016 06:27:14 -0800 (PST) Received: by 10.37.24.2 with HTTP; Fri, 4 Mar 2016 06:27:14 -0800 (PST) Date: Fri, 04 Mar 2016 14:27:00 -0000 Message-ID: Subject: Printing a 2D array in a C program From: Neven Sajko To: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-03/txt/msg00006.txt.bz2 Hello, I have a newbie question. GDB version is 7.11, compiler is gcc 5.3.0 (-std=gnu90). In my C program there is a square matrix implemented as an array of arrays, which prints nicely in GDB with `info locals`. But how can that nice output be accomplished if you are not in the function in which the array was declared, but just have it passed as a function parameter. Thank you, Neven