Re: gdbserver args

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <20150316163636.GC877@vapier>
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
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJVBwaUAAoJEEFjO5/oN/WB800QANz81upyHIQBZhVBIQOu73CT
En2wH6RTAUfHWUqSKskGYHnbQfeDCSDG8/Y+PCRgxIANxBrEROp7OW7reCNvlcgZ
aRI43NLBJjfcejZWlbT4DaSFGrJAdP/Gav0QHgT0cTlHRdEdGhmdu6YR5PNaSHzU
2hQuL+6wRJt7NMUaIa5EgMTM8uRK59vgyTzb6SHE8a+J14J3CTJZEmWlHcLTfK9H
gZtyjZvtGgyrh9TF+5Ikr53vPfnchP4DEMT21H1AT9kSNovrdKaCHjLfXr9Plzin
854EPlE0IDoSq+RSOvGhi03m1+LJBZgUQ5lE0G6vJZ+N1mFQfIoapCYUTV2Mdleb
ajCDWO2MaMbLCennytNYEYh0eeZgKr434SLizRerIkTSFi2nKY9USd0j/dikm/o6
rHzjR4KWpJ2CweGtyaZREq3p394nMFWOIYMdEwQsh62LwVRwg5BH8T+RTUvEdW4C
UOWNy6UmKJ0gr0y8Yw0ud0GW2J6v0PreoZ+y/87fpTOz0Lbc73N23TR78PQ7ky5W
g4uNTrMYGqtverAoy+IKNt3K6ibsFuG3qyFHjf/riddsTM5g0c8O6fY+O4Jv4f/n
fvhnenp12M5zdJ3b2lCUPJ7FF4NLqXunPf4bE9alC9hPgzDrGgnW8OQXG7AOIsZP
melxAqvBhHdLZTx22xq5
=/iJM
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.