Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdb problem
@ 2013-11-16  8:46 Derek Guan
  0 siblings, 0 replies; 3+ messages in thread
From: Derek Guan @ 2013-11-16  8:46 UTC (permalink / raw)
  To: gdb

When I use codeblocks to debug my code, gdb throws a warning message:
warning: GDB: Failed to set controlling terminal: Operation not
permitted 
and I have already google a lot, but nothing what I found can be
helpful, however indeed I have found there were other IDE tools might
have the same problem like Netbeans IDE and I think maybe this is a gdb
problem. I search it on gdb FAQ, of course find nothing. So I send you
this email, and I am hopeful that you can help me with this problem.
PS: my linux version is arch linux and I use gnome terminal 



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gdb problem
  2002-09-25  3:53 Vinayak P Risbud
@ 2002-09-25  8:15 ` Keith Seitz
  0 siblings, 0 replies; 3+ messages in thread
From: Keith Seitz @ 2002-09-25  8:15 UTC (permalink / raw)
  To: Vinayak P Risbud; +Cc: Ecos-Discuss, gdb

On Wed, 25 Sep 2002, Vinayak P Risbud wrote:

>                 16100 <cyg_start> mov...
>                 16104
>                 16108
>                 1610c   <cyg_start+12>
>                 16114   <cyg_start+20>
>                 16120   <cyg_start+32>
>                 16110   <cyg_start+16>
>                 16118   <cyg_start+24>
>                 1611c   <cyg_start+20>
> 
>             As you can see...the addresses are not linear...
>             Is it a problem ?  If yes...where exactly could be the
> problem ?

Looks like you might be debugging optimized code. It shouldn't be a 
problem, as long as you're aware of the consequences of debugging 
optimized code (for example, registers can be reused for multiple 
variables during the lifetime of a block).

If you're really concerned about it, recompile your application and 
libraries without -O (or -O2, -O3, ...).

Keith



^ permalink raw reply	[flat|nested] 3+ messages in thread

* gdb problem
@ 2002-09-25  3:53 Vinayak P Risbud
  2002-09-25  8:15 ` Keith Seitz
  0 siblings, 1 reply; 3+ messages in thread
From: Vinayak P Risbud @ 2002-09-25  3:53 UTC (permalink / raw)
  To: Ecos-Discuss, gdb

        Hi,
            I am using gdb with jtag interface for debugging arm9 board.

            When I view for Mixed sources  ( i.e assembly and C)
            some of higher addresses come before than lower address
            for example

                16100 <cyg_start> mov...
                16104
                16108
                1610c   <cyg_start+12>
                16114   <cyg_start+20>
                16120   <cyg_start+32>
                16110   <cyg_start+16>
                16118   <cyg_start+24>
                1611c   <cyg_start+20>

            As you can see...the addresses are not linear...
            Is it a problem ?  If yes...where exactly could be the
problem ?

            Thanks in advance
                Vinayak


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-11-16  8:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-16  8:46 gdb problem Derek Guan
  -- strict thread matches above, loose matches on Subject: below --
2002-09-25  3:53 Vinayak P Risbud
2002-09-25  8:15 ` Keith Seitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox