NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
nathan_h
Joined: 27 Jul 2012 Posts: 4
|
Posted: Fri Jul 27, 2012 8:42 pm Post subject: Debugging an Embedded QNX target running gdbserver |
|
|
Hi,
I am running netbeans 7.2RC1 on ubuntu linux. I have an qnx embedded target with gdbserver running.
Anyone know how to use Netbeans to debug in this config?
I installed the gdbserver plug-in to be able to attach to the currently running gdbserver. Normally I connect with these options:
target qnx 10.1.220.24:8084
Anyway I can't get very far. As soon as I click connect I get the following error:
java.lang.NoSuchMethodError: org.netbeans.modules.cnd.debugger.gdb2.GdbDebuggerInfo.setRemoteTarget(Ljava/lang/String;)V
at org.netbeans.modules.cnd.debugger.gdbserver.GdbServerAttachPanel$GdbServerAttachController.ok(GdbServerAttachPanel.java:194)
at org.netbeans.modules.debugger.ui.actions.ConnectorPanel.ok(ConnectorPanel.java:298)
at org.netbeans.modules.debugger.ui.actions.ConnectAction$ConnectListener.actionPerformed(ConnectAction.java:171)
at org.netbeans.core.windows.services.NbPresenter$ButtonListener.actionPerformed(NbPresenter.java:1364) |
|
| Back to top |
|
 |
Nikolay Koldunov Posted via mailing list.
|
Posted: Wed Aug 01, 2012 9:53 am Post subject: Debugging an Embedded QNX target running gdbserver |
|
|
| Could you attach gdblog and full exception report please? |
|
| Back to top |
|
 |
nathan_h
Joined: 27 Jul 2012 Posts: 4
|
Posted: Wed Aug 01, 2012 8:14 pm Post subject: GDB Log |
|
|
OK, a fix went into gdbserver plugin which allows me to run the plug-in in Netbeans 7-2.
I had set netbeans to point to /opt/qnx632/host/linux/x86/usr/bin/ntoppc-gdb
which is my QNX installation of gdb.
I can start up gdbserver and open the gdb console.
I see some odd behavior. It seems like my version of gdb client is not compatible with netbeans??
Below is my log file - any suggestions?:
This log is saved to: /tmp/gdb-cmds2014878806168713192.log
NB build: 201207171143
GNU gdb 5.2.1qnx-nto
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=ntoppc".
(gdb)
2-list-features
3-gdb-set print repeat 0
4-gdb-set backtrace limit 1024
5-gdb-set print elements 0
6-enable-pretty-printing
7-file-exec-and-symbols "/media/DevDisk/BTI/49AACR/"
2^error,msg="Undefined MI command: list-features"
(gdb)
3^done
(gdb)
&"No symbol \"backtrace\" in current context.\n"
4^error,msg="No symbol \"backtrace\" in current context."
(gdb)
5^done
(gdb)
6^error,msg="Undefined MI command: enable-pretty-printing"
(gdb)
&"\"/media/DevDisk/BTI/49AACR\": not in executable format: Is a directory\n"
7^error,msg="\"/media/DevDisk/BTI/49AACR\": not in executable format: Is a directory"
(gdb)
&"target qnx 10.1.220.24:8084\n"
^done
No command for record ^done
(gdb)
&"sym /src/bti/49AACR/WM10G/drivers/rubicon/bin/test_rubicon\n"
^done
No command for record ^done
(gdb)
&"attach 1671208\n"
^done,thread-id="0",frame={addr="0xfe33a740",func="TimerTimeout",args=[],from="/opt/qnx632/target/qnx6/ppcbe/lib/libc.so.2"}
No command for record ^done,thread-id="0",frame={addr="0xfe33a740",func="TimerTimeout",args=[],from="/opt/qnx632/target/qnx6/ppcbe/lib/libc.so.2"}
(gdb)
&"break test_rubicon.c:3988\n"
^done
No command for record ^done
(gdb)
&"break test_rubicon.c:4001\n"
^done
No command for record ^done
(gdb)
&"c\n"
~"[Switching to process 1671208]\n"
^done,reason="breakpoint-hit",bkptno="3",thread-id="0",frame={addr="0x48048b44",func="main",args=[{name="argc",value="2"},{name="argv",value="0x4803fd44"}],file="test_rubicon.c",line="3988"}
No command for record ^done,reason="breakpoint-hit",bkptno="3",thread-id="0",frame={addr="0x48048b44",func="main",args=[{name="argc",value="2"},{name="argv",value="0x4803fd44"}],file="test_rubicon.c",line="3988"}
(gdb)
&"set do_pause=0\n"
^done
No command for record ^done
(gdb)
&"c\n"
^done,reason="breakpoint-hit",bkptno="4",thread-id="0",frame={addr="0x48048bd4",func="main",args=[{name="argc",value="2"},{name="argv",value="0x4803fd44"}],file="test_rubicon.c",line="4001"}
No command for record ^done,reason="breakpoint-hit",bkptno="4",thread-id="0",frame={addr="0x48048bd4",func="main",args=[{name="argc",value="2"},{name="argv",value="0x4803fd44"}],file="test_rubicon.c",line="4001"}
(gdb)
60-break-disable
61-gdb-set unwindonsignal on
62-data-evaluate-expression "arg_ptr"
63-gdb-set unwindonsignal off
60^done
(gdb)
61^done
(gdb)
62^done,value="0x0"
(gdb)
63^done
(gdb)
64-break-disable
65-gdb-set unwindonsignal on
66-data-evaluate-expression "arg_ptr"
67-gdb-set unwindonsignal off
64^done
(gdb)
65^done
(gdb)
66^done,value="0x0"
(gdb)
67^done
(gdb) |
|
| Back to top |
|
 |
Nikolay Koldunov Posted via mailing list.
|
Posted: Thu Aug 02, 2012 8:16 am Post subject: Debugging an Embedded QNX target running gdbserver |
|
|
I suppose you should install gdb from the Ubuntu repository. Try using
gdb instead of gdbserver. |
|
| Back to top |
|
 |
nathan_h
Joined: 27 Jul 2012 Posts: 4
|
Posted: Thu Aug 02, 2012 1:08 pm Post subject: |
|
|
Correct me if I'm wrong but,
I don't think using Ubuntu gdb will work for me:
- my embedded target is running ppc and doesn't have the gcc tool chain installed, only a QNX version of gdbserver installed.
- Because of the point above, I can not add my target as a "HOST" in netbeans.
- gdbserver is a plug-in for Netbeans that allows to connect to an embedded target running gdbserver.
- The gdbserver plug-in uses gdb. The version I am using is for ppc - it is called ntoppc-gdb |
|
| Back to top |
|
 |
nathan_h
Joined: 27 Jul 2012 Posts: 4
|
Posted: Tue Sep 18, 2012 1:06 pm Post subject: Needed latest GDB with QNX. |
|
|
After finding the latest GDB with QNX, it is now working.  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|