See TraceEvents when debugging Windows Driver - c++

I'm trying to learn how to develop drivers for Windows, and wonder how I use the TraceEvents command.
I understand that I can use TraceView on the target computer, and that it must have a pdb or ctl file. My question is how I get over these to the target computer.
When I check the settings under Configuration Properties -> Driver Install -> Deployment I can not find any settings to send these files to the target computer. Do I need to manually send over these files or is it any better method? Or can I follow the trace from my host system?

Related

Remote gdb with Eclipse Oxygen 3a

I've read several guides/stackoverflows but not found a similar situation/solution.
I have my remote ssh working (can browse files).
I don't get why I need a local Windows application (although I have a compiled .exe it's not the version I want to debug which is only on the Linux server).
When I try and launch a remote debug session it immediately fails with
Exception occurred during launch
Reason:
Error during file upload.
and below in the details
Could not write file: <my windows exe path>
Permission denied
...
The aforementioned file is writable and in any event I also started eclipse as administrator just in case.
In any event the .exe is irrelevant. I just want to debug code remotely.
(I know all about gdbserver...happy to manually kick that off if need be....don't think I'm there yet though)
Below is the options page I'm presented with:
Had the same experience on TI Code Composer Studio Version: 9.3.0.00012.
This seems to happen while uploading the cross compiled binary from host to target. If you set the check box "Skip download to target path" the error should disappear.
I propose to workaround the upload.
Setup a web server on the host, the line python.exe -m http.server --directory \source\hello\Debug\ would be sufficient
Run wget on the target, see screenshot

remote debugging windows 8.1 driver Visual studio 2013

I'm trying to set up remote debugging on Visual studio 2013.
I think I installed everything on my computer and the hyper-v machine too + updated.
So whats happening:
I open a microsoft UMDF driver sample. (I can build it without any errors).
I select Debugging tools for windows remote debugger.
Then a message box pops up named Deployment not configured.
I select I know what I'm doing continue debugging.
Then the Computer configuration wizard starts add new computer.
I select provision computer and automatically configure debuggers.
Then the configuration process configure my hyper-v machine fine.
Installs the necessary files restart the computer and log in with the name WDKRemoteUser.
Then I Click Finish then this error pop-up.
The required property 'DbgengRemoteCommand' is missing or empty. (OK)
So I need to fill up the package property pages->configuration properties->debugging->
Remote Command, Remote Command Arguments, Remote Working Directory, Remote Computer name manually?
And if I had to what should I write there or I miss something else?
You only need to specify the "Remote Working Directory" parameter and you can just give it the same path as your build directory and you should be good.

How to specify remote header files and libraries during remote development of C/C++ in Netbeans?

I am developing a C++ application using Netbeans remote development platform. I don't know how to specify the libraries that are on the remote server, in my local Netbeans IDE. If I go through the normal procedure of specifying them in the project properties, I am getting only the local files and not remote files. please help.
It's the first time that I heard such a "requirement". Why should you want to access files over the internet during development? Why don't you install the needed libraries on your local machine, develop your software and then build a proper installer with all the needed files?

List running software from registry in VC++

I am trying to code an application in VC++ which lists the current running applications on my system.
By using the registry key HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall, I'm able to list the current installed applications on my system.
Is there any way to list which ones of these applications that are running?
You should be able to iterate through the list of currently running processes using Process Walking
The short answer is that you can't. The registry key you mention only references the installation redistribution package and not the installed and running executable file(s). There are no connections between the installation registry details and the executable that is actually running after an installation has completed and the software started. Only way to achive this is to parse the installation package files and try to extract the executable name & path from it - if even possible.

C/C++ Eclipse project auto ftp on a unix server in eclipse IDE

I have to write code in C/C++ and upload it to a unix server to run it. I am using eclipse IDE. How can I setup eclipse so that when I click Save the file gets uploaded on the server? I have installed RSE (Remote System Explorer). Now I have the my project locally as well as on the server. I need to synch it.Is there any way to do it?