* Associating source to a running program
@ 2006-08-14 22:08 Olivier Parisy
2006-08-14 22:13 ` Joel Brobecker
0 siblings, 1 reply; 3+ messages in thread
From: Olivier Parisy @ 2006-08-14 22:08 UTC (permalink / raw)
To: gdb
Hi,
I'm trying to step through a gcj-compiled java program.
I get outputs such as this one:
(gdb) step
JvRunMain (klass=0xf3c310, argc=1, argv=0x33ec8)
at /home/olivier/gcj/w32gcc/src/gcc/libjava/prims.cc:1552
1552 /home/olivier/gcj/w32gcc/src/gcc/libjava/prims.cc: No such file
or directory.
in /home/olivier/gcj/w32gcc/src/gcc/libjava/prims.cc
Current language: auto; currently c++
This makes sense, as prims.cc is probably part of libjava runtime, and
was only available at gcc/gcj compilation, but not during program execution.
Considering that this source code is available elsewhere on the file
system, how can I specify to GDB where it can find it?
Best regards,
Olivier Parisy.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Associating source to a running program
2006-08-14 22:08 Associating source to a running program Olivier Parisy
@ 2006-08-14 22:13 ` Joel Brobecker
2006-08-14 22:44 ` Olivier Parisy
0 siblings, 1 reply; 3+ messages in thread
From: Joel Brobecker @ 2006-08-14 22:13 UTC (permalink / raw)
To: Olivier Parisy; +Cc: gdb
> Considering that this source code is available elsewhere on the file
> system, how can I specify to GDB where it can find it?
The "dir" command should probably do what you need. You can find more
information in the GDB users manual.
--
Joel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Associating source to a running program
2006-08-14 22:13 ` Joel Brobecker
@ 2006-08-14 22:44 ` Olivier Parisy
0 siblings, 0 replies; 3+ messages in thread
From: Olivier Parisy @ 2006-08-14 22:44 UTC (permalink / raw)
To: gdb; +Cc: Joel Brobecker
Joel Brobecker a écrit :
>> Considering that this source code is available elsewhere on the file
>> system, how can I specify to GDB where it can find it?
>>
>
> The "dir" command should probably do what you need. You can find more
> information in the GDB users manual.
>
Yes, this is what I needed. Thank you!
Best regards,
Olivier Parisy.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-08-14 22:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-14 22:08 Associating source to a running program Olivier Parisy
2006-08-14 22:13 ` Joel Brobecker
2006-08-14 22:44 ` Olivier Parisy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox