From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 86017 invoked by alias); 28 Nov 2015 06:03:10 -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 84880 invoked by uid 89); 28 Nov 2015 06:03:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-lf0-f49.google.com Received: from mail-lf0-f49.google.com (HELO mail-lf0-f49.google.com) (209.85.215.49) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Sat, 28 Nov 2015 06:01:52 +0000 Received: by lfdl133 with SMTP id l133so146384816lfd.2 for ; Fri, 27 Nov 2015 22:01:49 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.112.180.131 with SMTP id do3mr20868758lbc.123.1448690508925; Fri, 27 Nov 2015 22:01:48 -0800 (PST) Received: by 10.25.197.5 with HTTP; Fri, 27 Nov 2015 22:01:48 -0800 (PST) Date: Sat, 28 Nov 2015 06:03:00 -0000 Message-ID: Subject: Tracing another stack From: Celelibi To: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00042.txt.bz2 Hello, I use gdb with the gdb-stub of qemu to debug a boot loader. When a memory fault occurs, a message is printed with the content of most registers and a new stack is created to run the handler that never terminates. Can I tell gdb to examine the stack given the content of the stack pointer, stack base and program counter of a stack that is not the current one? I tried setting $rsp and $rip to the values I got from the printed message, but it turns out it confuses gdb. The "bt" commands shows the right first stack frame, but the next ones are those of the interrupt handler. Thanks in advance. Celelibi