Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Problem with executing dsf-gdb JUnit tests

It sounds like the test programs lack debug information. Those programs are built by the Eclipse dsf-gdb test plugin--it runs a script that invokes makefiles.

The first thing I would do is use the readelf  (specify -w) to see if the binaries have debug info. If they don't then examine how the programs are being built; something unexpected might be going on there. If they do have debug information, then something else is going wrong.

John


At 05:33 AM 3/4/2010, sneha_apte wrote:
Content-Language: en-US
Content-Type: multipart/alternative;
         boundary="_000_14B8F27D7CE40C4C9E481B2B845C2E0D037312CFC0EXCHANGEpersi_"

Hi all,

I am trying to execute JUnit tests for dsf-gdb from Eclipse. However I am getting following type of error for most of the tests:

!SUBENTRY 1 org.eclipse.cdt.dsf.gdb 4 10004 2010-03-04 15:46:17.832
!MESSAGE Failed to execute MI command:
-break-insert -t main
Error message from debugger back end:
No symbol table is loaded.  Use the "file" command.
!STACK 0
java.lang.Exception: No symbol table is loaded.  Use the "file" command.
    at org.eclipse.cdt.dsf.mi.service.command.AbstractMIControl$RxThread.processMIOutput(AbstractMIControl.java:806)
    at org.eclipse.cdt.dsf.mi.service.command.AbstractMIControl$RxThread.run(AbstractMIControl.java:645)

I am performing following steps:
1. Checked out cdt-all, dsf, dsf-gdb plugins from CVS HEAD.
2. Pre-requisite of the tests is that the gdb binary should have given names:
  • gdb.6.6
  • gdb.6.7
  • gdb.6.8
  • gdb.7.0
3. As per post from following link, test cases for gdb 6.8 are all passing.
http://old.nabble.com/DSF-GDB-JUnit-tests-td27533144.html
4. On my machine, the gdb binary is named "gdb" only. It is of 6.8 version.
5. Thus I added a link gdb.6.8 pointing to this gdb.
6. I have also included the path to this symbolic link in the PATH variable.
Some more information:
7. I am using eclipse Helios.
8. Number of tests to be executed is displayed as 136.

If anybody can provide me some pointers / guidance it would be of great help.

Thanks and Regards,
Sneha
 

DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev

Back to the top