Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Jiju George T" <jiju.george@nestgroup.net>
To: "'Vladimir Prus'" <vladimir@codesourcery.com>, 	<gdb@sources.redhat.com>
Subject: RE: clearing call stack when a new binary file is loaded
Date: Wed, 23 Apr 2008 12:57:00 -0000	[thread overview]
Message-ID: <009201c8a535$6a62f8e0$390aa8c0@ashmicro.ashling.com> (raw)
In-Reply-To: <fun4bj$voj$2@ger.gmane.org>

I am using a cross compiled version of GDB for MIPS architecture
(mipsel-linux-gdb) compiled using cross tools. It is based on GNU GDB
version 6.6

Thanks,
Jiju

-----Original Message-----
From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On Behalf
Of Vladimir Prus
Sent: 23 April 2008 11:52
To: gdb@sources.redhat.com
Subject: Re: clearing call stack when a new binary file is loaded

Jiju George T wrote:

> Hi,
> 
> We are developing a graphical embedded debugger based on GDB mi interface.
> UI part is based on Eclipse CDT and it communicates with GDB through mi
> interface. We are facing a problem with call stacks after a new binary is
> loaded to GDB. Our UI relays on the call stack information provided by GDB
> to show the debug context.
> 
> Steps to reproduce the issues:
> 
>   1) Start GDB and connect to remote GDB server which is connected to an
> embedded target. The embedded target is waiting at PC 0xBFC00000
>   2) Now load an ELF file to GDB with entry point as 0xA0000000
>   3) Now GDB shows $pc register value as 0xA0000000. But the call stack
> still shows frames with 0xBFC00000
>   
>  
> Is this GDB behaviour by design? Is there any mi interface to clear the
> stack frame and update to the current $pc value?

Which version of GDB?

- Volodya




  reply	other threads:[~2008-04-23 11:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-23 11:30 Jiju George T
2008-04-23 12:54 ` Vladimir Prus
2008-04-23 12:57   ` Jiju George T [this message]
2008-04-23 19:54   ` Daniel Jacobowitz
2008-04-23 20:03     ` Jiju George T
2008-04-23 20:47       ` 'Daniel Jacobowitz'
2008-04-26 16:34         ` Jiju George T

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='009201c8a535$6a62f8e0$390aa8c0@ashmicro.ashling.com' \
    --to=jiju.george@nestgroup.net \
    --cc=gdb@sources.redhat.com \
    --cc=vladimir@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox