This is the mail archive of the gdb@sourceware.org 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: gdbserver args


On 16 Mar 2015 17:33, Russell Shaw wrote:
> Hi,
> On a laptop (acer) i run:
> 
> gdbserver :1234 myprog arg1 arg2
> 
> 
> On the main pc:
> 
> (gdb) file myprog
> (gdb) target extended-remote acer:1234
> (gdb) b main
> (gdb) r

you probably want to use continue here instead of run.  if you use run, you can 
pass it args directly.
-mike

Attachment: signature.asc
Description: Digital signature


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