Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* finding source location
@ 2008-03-31  5:31 M K
  2008-03-31 12:51 ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: M K @ 2008-03-31  5:31 UTC (permalink / raw)
  To: gdb

Hello,

When I am debugging a binary which was compiled with debug info, I can
set a breakpoint and jump to the source location by using the TUI mode
(hitting Cx-Ca). But how do I find out the location of the .C file?  I
did read the manual and it mentions the show directories command but
that is not useful here.

Thanks,
Mayuresh.


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

* Re: finding source location
  2008-03-31  5:31 finding source location M K
@ 2008-03-31 12:51 ` Daniel Jacobowitz
  2008-03-31 15:48   ` M K
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2008-03-31 12:51 UTC (permalink / raw)
  To: M K; +Cc: gdb

On Sun, Mar 30, 2008 at 05:26:04PM -0400, M K wrote:
> Hello,
> 
> When I am debugging a binary which was compiled with debug info, I can
> set a breakpoint and jump to the source location by using the TUI mode
> (hitting Cx-Ca). But how do I find out the location of the .C file?  I
> did read the manual and it mentions the show directories command but
> that is not useful here.

Try info source.

-- 
Daniel Jacobowitz
CodeSourcery


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

* Re: finding source location
  2008-03-31 12:51 ` Daniel Jacobowitz
@ 2008-03-31 15:48   ` M K
  0 siblings, 0 replies; 3+ messages in thread
From: M K @ 2008-03-31 15:48 UTC (permalink / raw)
  To: M K, gdb

Thanks. That works :)

On Sun, Mar 30, 2008 at 5:36 PM, Daniel Jacobowitz <drow@false.org> wrote:
>
> On Sun, Mar 30, 2008 at 05:26:04PM -0400, M K wrote:
>  > Hello,
>  >
>  > When I am debugging a binary which was compiled with debug info, I can
>  > set a breakpoint and jump to the source location by using the TUI mode
>  > (hitting Cx-Ca). But how do I find out the location of the .C file?  I
>  > did read the manual and it mentions the show directories command but
>  > that is not useful here.
>
>  Try info source.
>
>  --
>  Daniel Jacobowitz
>  CodeSourcery
>


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

end of thread, other threads:[~2008-03-31 12:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-31  5:31 finding source location M K
2008-03-31 12:51 ` Daniel Jacobowitz
2008-03-31 15:48   ` M K

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