mabdelazim / DirectRemoteDebug

4 stars 3 forks source link

Error with command: gdb --version #1

Open chow11 opened 8 years ago

chow11 commented 8 years ago

Debug is still looking for a local gdb, after selecting and configuring Direct Remote Debugging Launcher.

Installed Eclipse for Parallel Application Developers (Neon) on Mac OSX 10.11.6

mabdelazim commented 8 years ago

Mmm, I will look into this and back to you.

On Sep 16, 2016 4:18 PM, "Brian Chojnowski" notifications@github.com wrote:

Debug is still looking for a local gdb, after selecting and configuring Direct Remote Debugging Launcher.

Installed Eclipse for Parallel Application Developers (Neon) on Mac OSX 10.11.6

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mabdelazim/DirectRemoteDebug/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AM1SVBj4WqG0-PR-9z-mqIo6cHF75-x0ks5qqqVNgaJpZM4J-_Oc .

Davidius86 commented 8 years ago

Getting the same error on Windows10. Any updates on that?

mabdelazim commented 7 years ago

Hello

Sorry for late replay , I will look at it again this week.

On Wed, Nov 9, 2016 at 10:10 AM, Davidius86 notifications@github.com wrote:

Getting the same error on Windows10. Any updates on that?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mabdelazim/DirectRemoteDebug/issues/1#issuecomment-259355529, or mute the thread https://github.com/notifications/unsubscribe-auth/AM1SVOUaq2jnuI0cqJCJ_UvIIxh4dCLZks5q8YAAgaJpZM4J-_Oc .

chow11 commented 7 years ago

I had put my project on the back burner, as I didn’t want to try to find an alternate solution just yet. Let me know if you need some help with testing or something. I can help, just let me know.

On Nov 14, 2016, at 8:16 AM, mabdelazim notifications@github.com<mailto:notifications@github.com> wrote:

Hello

Sorry for late replay , I will look at it again this week.

On Wed, Nov 9, 2016 at 10:10 AM, Davidius86 notifications@github.com<mailto:notifications@github.com> wrote:

Getting the same error on Windows10. Any updates on that?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mabdelazim/DirectRemoteDebug/issues/1#issuecomment-259355529, or mute the thread https://github.com/notifications/unsubscribe-auth/AM1SVOUaq2jnuI0cqJCJ_UvIIxh4dCLZks5q8YAAgaJpZM4J-_Oc .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mabdelazim/DirectRemoteDebug/issues/1#issuecomment-260345476, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AA_iIliIn_PpeX-SHJE521D8d79_NOi-ks5q-G1XgaJpZM4J-_Oc.

mabdelazim commented 7 years ago

Can you please send the debug the message you are seeing, and send the console output?

On Fri, Sep 16, 2016 at 4:18 PM, Brian Chojnowski notifications@github.com wrote:

Debug is still looking for a local gdb, after selecting and configuring Direct Remote Debugging Launcher.

Installed Eclipse for Parallel Application Developers (Neon) on Mac OSX 10.11.6

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mabdelazim/DirectRemoteDebug/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AM1SVBj4WqG0-PR-9z-mqIo6cHF75-x0ks5qqqVNgaJpZM4J-_Oc .

Davidius86 commented 7 years ago

Here a screenshot: remote_debug

jief666 commented 7 years ago

Same here. The only way to get rid of the message, is to put a path of a local gdb. So for me, that confirms that it's still looking for a local gdb. Then, the launching stays indefinitely à 57%

jief666 commented 7 years ago

Wrinting the previous message make me think of something : what if I have a local gdb at the same path as the remote gdb -> tada !! Works. So that's the workaround : having a local and remote gdb, same version at the same path.

kikouk42 commented 6 years ago

@jief666 Could you please explain how exactly did you configure your IDE ? Do you run Eclipse on Windows ? @mabdelazim Any news about this behavior? I can run tests also if you need help.

mabdelazim commented 6 years ago

@kikouk42 Are u working in windows, Can I access your server to debug the case?

kikouk42 commented 6 years ago

Yes Windows 7 Pro 64bit, Eclipse Oxygen for C/C++ (last version). I have full access to my build server (a Fedora distro running as a VirtualBox VM). Over ssh (using putty), the command gdb --version returns (first line) "GNU gdb (GDB) Fedora 7.6.1-46.fc19". How can I help you more ?

Le mer. 9 mai 2018 à 14:33, mabdelazim notifications@github.com a écrit :

@kikouk42 https://github.com/kikouk42 Are u working in windows, Can I access your server to debug the case?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mabdelazim/DirectRemoteDebug/issues/1#issuecomment-387723447, or mute the thread https://github.com/notifications/unsubscribe-auth/AlT8491CBtfwHtSVgQ9yPpf9mocCrSkyks5twuIYgaJpZM4J-_Oc .

mabdelazim commented 6 years ago

Can u please send me a screen shot of your debug configuration settings?

On Wed, May 9, 2018, 2:37 PM kikouk42 notifications@github.com wrote:

Yes Windows 7 Pro 64bit, Eclipse Oxygen for C/C++ (last version). I have full access to my build server (a Fedora distro running as a VirtualBox VM). Over ssh (using putty), the command gdb --version returns (first line) "GNU gdb (GDB) Fedora 7.6.1-46.fc19". How can I help you more ?

Le mer. 9 mai 2018 à 14:33, mabdelazim notifications@github.com a écrit :

@kikouk42 https://github.com/kikouk42 Are u working in windows, Can I access your server to debug the case?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub < https://github.com/mabdelazim/DirectRemoteDebug/issues/1#issuecomment-387723447 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AlT8491CBtfwHtSVgQ9yPpf9mocCrSkyks5twuIYgaJpZM4J-_Oc

.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mabdelazim/DirectRemoteDebug/issues/1#issuecomment-387724402, or mute the thread https://github.com/notifications/unsubscribe-auth/AM1SVAlAL3HJ7MXJKjJ5MNlLA0FRApxcks5twuMHgaJpZM4J-_Oc .

kikouk42 commented 6 years ago

Please find screenshot for Main tab and Debugger tab image image

kikouk42 commented 6 years ago

Hello @mabdelazim. Could you reproduce behavior ?

mabdelazim commented 6 years ago

Not yet, I will prepare some binaries files of the plunging with some debug prints so I can see where is the problem exactly. I try to send this by next week.

On Mon, May 14, 2018 at 2:00 PM, kikouk42 notifications@github.com wrote:

Hello @mabdelazim https://github.com/mabdelazim. Did you reproduce something ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mabdelazim/DirectRemoteDebug/issues/1#issuecomment-388792251, or mute the thread https://github.com/notifications/unsubscribe-auth/AM1SVHP6u08UDClx3Q3h4TmjlXBbBJZQks5tyXHKgaJpZM4J-_Oc .

kikouk42 commented 6 years ago

Hello @mabdelazim. Did you had time to prepare some debug files I can run for you ?

mabdelazim commented 6 years ago

Not yet. Sorry for being late I will try to send it this week or next week.

Best Regards Mohamed Abdelazim

On Mon, Jun 4, 2018, 9:47 AM kikouk42 notifications@github.com wrote:

Hello @mabdelazim https://github.com/mabdelazim. Did you had time to prepare some debug files I can run for you ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mabdelazim/DirectRemoteDebug/issues/1#issuecomment-394264152, or mute the thread https://github.com/notifications/unsubscribe-auth/AM1SVMNnKleuiCsl6A_stJqaZvv3nPU6ks5t5OYBgaJpZM4J-_Oc .

mrutyunjay-patel commented 6 years ago

hi mabdelazim . i desperately need this plugin to work with , willing to help in debug the issue , Eclipse: oxygen Linux: 16.04.1-Ubuntu.

mabdelazim commented 6 years ago

@mrutyunjay-patel sorry for replaying late. Do you still need that urgently?

kikouk42 commented 6 years ago

@mabdelazim Hi mabdelazim, I still not found another solution than your plugin. So I need it as @mrutyunjay-patel .

mabdelazim commented 6 years ago

@kikouk42 @mrutyunjay-patel @jief666 @Davidius86 @chow11

Guys, sorry for late respoinse. I did some fix and I want you to try it. Please find the attached a newer version of the plugin. Please remove the old version and install the attached RemotDebugUpdateSite.zip version by "Install New Software ..." option.

kikouk42 commented 6 years ago

Hello @mabdelazim. Good news it works now on my platform.

It is possible to disable or redirect this kind of information displayed in the console ? image Currently both stdout and gdb information are mixed in the same console.

mrutyunjay-patel commented 6 years ago

hi mabdelazim, sorry i was away from my work desk. Its working ....!!!!!!! Thanks a lot .

----My Windows Work Environment------ Eclipse Host : Windows 10 64 bit . Linux Host : Linux DevelopServer 4.4.0-97-generic #120-Ubuntu SMP Tue Sep 19 17:28:18 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux . Target : Linux (none) 3.0.8-svn226 #171 PREEMPT Thu Apr 9 19:36:49 CST 2015 mips GNU/Linux . ----------------Eclipse installation

Bash Editor 1.5.3 de.jcup.basheditor.feature.group Albert Tregnaghi C/C++ Autotools support 9.4.3.201802261533 org.eclipse.cdt.autotools.feature.group Eclipse CDT C/C++ Debugger Services Framework (DSF) Examples 9.4.3.201802261533 org.eclipse.cdt.examples.dsf.feature.group Eclipse CDT C/C++ Development Tools 9.4.3.201802261533 org.eclipse.cdt.feature.group Eclipse CDT C/C++ GCC Cross Compiler Support 9.4.3.201802261533 org.eclipse.cdt.build.crossgcc.feature.group Eclipse CDT C/C++ GDB Hardware Debugging 9.4.3.201802261533 org.eclipse.cdt.debug.gdbjtag.feature.group Eclipse CDT C/C++ Memory View Enhancements 9.4.3.201802261533 org.eclipse.cdt.debug.ui.memory.feature.group Eclipse CDT C/C++ Remote Launch 9.4.3.201802261533 org.eclipse.cdt.launch.remote.feature.group Eclipse CDT C/C++ Standalone Debugger 9.4.3.201802261533 org.eclipse.cdt.debug.standalone.feature.group Eclipse CDT Direct Remote C++ Debugging 1.1.0.201604291531 org.eclipse.cdt.launch.remote.direct.feature.group mabdelazim@gmail.com Doxygen binaries 1.8.13.v20180118-1753 org.gna.eclox.doxygen.feature.feature.group Andre Bossert Eclipse C/C++ Development Tools Utilities 5.0.100.201802261533 org.eclipse.cdt.util Eclipse CDT Eclipse IDE for C/C++ Developers 4.7.3.20180405-1200 epp.package.cpp Eclipse Packaging Project Eclox 0.12.1.v20180118-1753 org.gna.eclox.feature.feature.group Andre Bossert Mylyn Context Connector: C/C++ Development 5.19.0.v20170411-2108 org.eclipse.cdt.mylyn.feature.group Eclipse Mylyn Mylyn Context Connector: Eclipse IDE 3.23.0.v20170411-2108 org.eclipse.mylyn.ide_feature.feature.group Eclipse Mylyn Mylyn Context Connector: Team Support 3.23.0.v20170411-2108 org.eclipse.mylyn.team_feature.feature.group Eclipse Mylyn Mylyn Task List 3.23.1.v20170623-0008 org.eclipse.mylyn_feature.feature.group Eclipse Mylyn Mylyn Task-Focused Interface 3.23.0.v20170414-0629 org.eclipse.mylyn.context_feature.feature.group Eclipse Mylyn Remote Launch Targets 2.2.0.201711162100 org.eclipse.launchbar.remote.feature.group Eclipse CDT Remote Services 3.0.0.201803060126 org.eclipse.remote.feature.group Eclipse PTP Remote System Explorer End-User Runtime 3.7.3.201704251225 org.eclipse.rse.feature.group Eclipse TM Project Remote System Explorer User Actions 3.7.0.201704251225 org.eclipse.rse.useractions.feature.group Eclipse TM Project Subversive SVN Connectors 6.0.4.I20161211-1700 org.polarion.eclipse.team.svn.connector.feature.group Polarion Software Subversive SVN Team Provider 4.0.5.I20170425-1700 org.eclipse.team.svn.feature.group Eclipse.org SVNKit 1.8.14 Implementation (Optional) 6.0.4.I20161211-1700 org.polarion.eclipse.team.svn.connector.svnkit18.feature.group Polarion Software TM Terminal 4.3.0.201706140544 org.eclipse.tm.terminal.feature.feature.group Eclipse.org - Target Management TM Terminal Serial Connector Extensions 4.3.0.201706140544 org.eclipse.tm.terminal.connector.cdtserial.feature.feature.group Eclipse.org

Configure Plugin data.

  1. Remote C/C++ exe file path.
  2. Remote Workspace direcrory.
  3. Connection ( RemoteLinux-SSH Connection.)
  4. GDB Debugger: gdb4mips
  5. GDB Command file : mygdbcmds

----Remote Linux : gdb cmd file --------------------------------------------------------

/home/patel/workspace0/zmm200main/mips/zmm220/app/udiskmng/udiskmng

target extended-remote 192.168.1.211:1234

--file=./mips/zmm220/app/udiskmng/udiskmng

file ./mips/zmm220/app/udiskmng/udiskmng

--directory=./app/udiskmng/

DIR ./app/udiskmng

remote put ./mips/zmm220/app/udiskmng/udiskmng

/mnt/mtdblock/app/udiskmng/udiskmng

set remote exec-file /mnt/mtdblock/app/udiskmng/udiskmng

b main

----Target Device --------------------------------------------------------

gdbserver4mips --remote-debug --multi localhost:1234


Launch Debug Session

Remote debug Working........... 😀


Regards, Mrutyunjay B Patel

On Thu, Jun 28, 2018 at 2:10 PM, kikouk42 notifications@github.com wrote:

Hello @mabdelazim https://github.com/mabdelazim. Good news it works now on my platform.

It is possible to disable or redirect this kind of information displayed in the console ? [image: image] https://user-images.githubusercontent.com/39124195/42023073-496b4230-7abf-11e8-8339-e0c54cc2470d.png Currently both stdout and gdb information are mixed in the same console.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mabdelazim/DirectRemoteDebug/issues/1#issuecomment-400958890, or mute the thread https://github.com/notifications/unsubscribe-auth/AmVFrddyg5f0pNl3Vq1B5qgfp_FCyFufks5uBJaCgaJpZM4J-_Oc .

arduinomaltster commented 6 years ago

I am having the same if not similar issue that I have not been able to resolve. I am trying to remote debug from my host linux(ubuntu 18.04) computer using photon eclipse to my beaglebone black wireless. I have tried using the GDB (DSF automatic remote debugging launcher and using the arm gdb that is part of my toolchain and the gdb-multiarch. I have also tried using the direct remote debugging launcher. All return the same error -- unable to determine gdb version using command ..gdb --version. I have the correct path to each gdb in the gdb config and I have also tried adding the path in project properties. Still no success. With the direct remote debug it seems it still looks for the gdb locally. Can anyone give a hint as to what I can do?

mabdelazim commented 6 years ago

@arduinomaltster please use the attached version in this thread (sent at Jun 27) and let us know the feedback.

arduinomaltster commented 6 years ago

I replaced the my current version with the attached version. I was able to get further with the debugging process. However, now I am prompted to select one or more processes to attach to. Is there a specific process that I need to attached to? I selected gdb but got an error stating it cant debug itself.

mabdelazim commented 6 years ago

There are two modes to use Direct remote debug plugin: 1- Run process: In this case you should put your process path in the debug settings and uncheck "Attach to process" box. 2- Attach to process. In this case you don't need to put your program path in the debug setting and you should check "Attach to process" box. In this case, you run your process on the remote machine your self and then attach the debugger to it by process id or process name.

It sounds you use "Attach to process " mode, you have to run your process manually in the remote machine firstly.

I hope this helps you.

On Sun, Jul 29, 2018 at 6:14 PM arduinomaltster notifications@github.com wrote:

I replaced the my current version with the attached version. I was able to get further with the debugging process. However, now I am prompted to select one or more processes to attach to. Is there a specific process that I need to attached to? I selected gdb but got an error stating it cant debug itself.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mabdelazim/DirectRemoteDebug/issues/1#issuecomment-408688206, or mute the thread https://github.com/notifications/unsubscribe-auth/AM1SVHh-rGW2jxf6fhU9IndOFz3nMbkkks5uLd9ngaJpZM4J-_Oc .

arduinomaltster commented 6 years ago

This will definitely help. Thank you.

mabdelazim commented 6 years ago

I uploaded the attached version in 1.2 directory. The issue should be fixed now.