Sysprogs forums › Forums › VisualGDB › Transferring multiple binaries from build to debug machine?
- This topic has 2 replies, 2 voices, and was last updated 11 years, 7 months ago by BitFlipper.
-
AuthorPosts
-
May 17, 2013 at 19:14 #344BitFlipperParticipant
I can successfully build my Linux project on the build machine, but I can’t figure out how to set it up to copy multiple output files to the debug machine.
I set the “Main binary:” to build/obj-x64/lib64/*” <- Used the Browse button to set this to the correct folder …and “Deploy main executable to:” to “/usr/lib/myproject/lib64/*” <- Also used the Browse button to set this to the correct location on the debug machine But it is not copying the files. How should I set this up properly?
May 17, 2013 at 21:05 #1949ketParticipantThe main binary and the main deployable executable need to be set to one file, not several files. This executable is given to gdb for debugging and gdb expects one file. The rest of the files this binary depends on should be moved to the deployment machine separately.
Consider converting the project from Linux to Custom, custom projects allow executing arbitrary sequences of commands for building and debugging. We have a tutorial at http://visualgdb.com/tutorials/linux/convert/ where we convert a project to custom to move a generated output file from the deployment machine to the windows development file, in your case you need to add the copying of the deployment binaries to the ‘actions before launching GDB’.
The conversion from Linux to Custom is made to convert the build and debug commands so that in the converted project building and debugging will work as before. If you have made several changes to your Linux project, it may be a good idea to make a backup copy of the vgdbsettings file before converting.May 17, 2013 at 21:43 #1950BitFlipperParticipant@ket wrote:
The main binary and the main deployable executable need to be set to one file, not several files. This executable is given to gdb for debugging and gdb expects one file. The rest of the files this binary depends on should be moved to the deployment machine separately.
OK makes sense. However in my case the binary that gdb needs to execute is not any of the binaries being built in my project. So I guess I can just pick any one of the many binaries and it should at least copy them all.
@ket wrote:
Consider converting the project from Linux to Custom, custom projects allow executing arbitrary sequences of commands for building and debugging. We have a tutorial at http://visualgdb.com/tutorials/linux/convert/ where we convert a project to custom to move a generated output file from the deployment machine to the windows development file, in your case you need to add the copying of the deployment binaries to the ‘actions before launching GDB’.
Yes I converted it to a custom project now. It seems I have much more control so now. I do run into a problem which seems to be related to permissions when copying the files to the remote system. I get the error “LIBSSH2_ERROR_SCP_PROTOCOL”. I’m trying to figure out what to change in order to have the files transferred successfully.
-
AuthorPosts
- You must be logged in to reply to this topic.