This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: remote debugging


>>  gdb> load
>
>You should not do that, gdbserver already loaded the program.
>The rest of your problems may be related to this step.
>

What works for me is
1.) gdb> file executable_name

--That, of course, works if you built the executable locally, and also have 
access --to the code

2.) gdb> break break_point_somewhere

3.) gdb> continue

--Don't do run, since gdbserver has already fired the process (on the remote 
--machine).

--Nik


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]