Problem in Starting GDBserver

by Ved » Wed, 29 Apr 2009 11:51:13 GMT


Sponsored Links
 Hi,

I have downloaded "gdb 6.6" and built it on linux machine using
"configure" and "make"(not cross compiled).

I pushed the executable file that ll be generated in "/gdb 6.6/gdb/
gdbserver/gdbserver" directory on to emulator using "adb push".

the steps followed are same as given at " http://honeypod.blogspot.com/ 
2008/01/debug-native-application-for-android.html"

i just want to start gdbserver and to debug native service like
opencore etc,

after pushing gdbserver executable file on to emulator if i run
# ./gdbserver host:1234 --attach 187

or any other command it say " Syntax error : "(" Unexpected"

Can any one suggest me what is goin wrong here.

it would be of great help.


Regards,
Ved.



--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. EditText.getText() not working

I am simple sudoku app. My main.xml has 81 EditText and 2 buttons as
shown below.

<?xml version="1.0" encoding="utf-8"?>

<RelativeLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:background="@color/activity_background">
        <EditText
                android:id="@+id/text1"
                android:layout_width="33dip"
                android:layout_height="33dip"
                android:background="@color/textBox_background"
                android:layout_marginBottom="2dip"
                android:layout_marginRight="2dip"
                android:layout_marginLeft="2dip"
                android:maxLength="1"
                android:textColor="@color/textBox_color"
                android:numeric="integer"
                android:paddingLeft="11dip"
                android:selectAllOnFocus="true" />
        <EditText
                android:id="@+id/text2"
                android:layout_width="33dip"
                android:layout_height="33dip"
                android:background="@color/textBox_background"
                android:layout_marginBottom="2dip"
                android:layout_marginRight="2dip"
                android:maxLength="1"
                android:textColor="@color/textBox_color"
                android:numeric="integer"
                android:paddingLeft="11dip"
                android:layout_toRightOf="@id/text1"
                android:layout_alignTop="@id/text1"
                android:selectAllOnFocus="true" />
        <EditText
                android:id="@+id/text3"
                android:layout_width="33dip"
                android:layout_height="33dip"
                android:background="@color/textBox_background"
                android:layout_marginBottom="2dip"
                android:layout_marginRight="4dip"
                android:maxLength="1"
                android:textColor="@color/textBox_color"
                android:numeric="integer"
                android:paddingLeft="11dip"
                android:layout_toRightOf="@id/text2"
                android:layout_alignTop="@id/text1"
                android:selectAllOnFocus="true" />
        <EditText
                android:id="@+id/text4"
                android:layout_width="33dip"
                android:layout_height="33dip"
                android:background="@color/textBox_background"
                android:layout_marginBottom="2dip"
                android:layout_marginRight="2dip"
                android:maxLength="1"
                android:textColor="@color/textBox_color"
                android:numeric="integer"
                android:paddingLeft="11dip"
                android:layout_toRightOf="@id/text3"
                android:layout_alignTop="@id/text1"
                android:selectAllOnFocus="true" />
        <EditText
                android:id="@+id/text5"
                android:layout_width="33dip"
                android:layout_height="33dip"
                android:background="@color/textBox_background"
                android:layout_marginBottom="2dip"
                android:layout_marginRight="2dip"
                android:maxLength="1"
                android:textColor="@color/textBox_color"
                android:numeric="integer"
                android:paddingLeft="11dip"
                android:layout_toRightOf="@id/text4"
                android:layout_alignTop="@id/text1"
                android:selectAllOnFocus="true" />
        <EditText
                android:id="@+id/text6"
                android:layout_width="33dip"
                android:layout_height="33dip"
                android:background="@color/textBox_background"
                android:layout_marginBottom="2dip"
                android:layout_marginRight="4dip"
                android:maxLength="1"
                android:textColor="@color/textBox_color"
                android:numeric="integer"
                android:paddingLeft="11dip"
                android:layout_toRightOf="@id/text5"
                android:layout_alignTop="@id/text1"
                android:selectAllOnFocus="true" />
        <EditText
                android:id="@+id/text7"
                android:layout_width="33dip"
                android:layout_height="33dip"
                android:background="@color/textBox_background"
                android:layout_marginBottom="2dip"
                android:layout_marginRight="2dip"
                android:maxLength="1"
                android:textColor="@color/textBox_color"
                android:numeric="integer"
                android:paddingLeft="11dip"
                android:layout_toRightOf="@id/text6"
                android:layout_alignTop="@id/text1"
                android:selectAllOnFocus="true" />

....
....
....
....
....


        <EditText
                android:id="@+id/text80"
                android:layout_width="33dip"
                android:layout_height="33dip"
                android:background="@color/textBox_background"
                android:layout_marginBottom="2dip"
                android:layout_marginRight="2dip"
                android:maxLength="1"
                android:textColor="@color/textBox_color"
                android:numeric="integer"
                android:paddingLeft="11dip"
                android:layout_toRightOf="@id/text79"
                android:layout_alignTop="@id/text73"
                android:selectAllOnFocus="true" />
        <EditText
                android:id="@+id/text81"
                android:layout_width="33dip"
                android:layout_height="33dip"
                android:background="@color/textBox_background"
                android:layout_marginBottom="2dip"
                android:maxLength="1"
                android:textColor="@color/textBox_color"
                android:numeric="integer"
                android:paddingLeft="11dip"
                android:layout_toRightOf="@id/text80"
                android:layout_alignTop="@id/text73"
                android:selectAllOnFocus="true" />
        <Button
                android:id="@+id/solveButton"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@id/text73"
                android:layout_alignParentRight="true"
                android:layout_marginTop="10dip"
                android:text="Solve" />
        <Button
                android:id="@+id/resetButton"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_toLeftOf="@id/solveButton"
                android:layout_alignTop="@id/solveButton"
                android:text="Reset" />
</RelativeLayout>

In my activity class, I have grouped all these 81 EditTexts into one 2-
dimensional array as shown below.

EditText[][] textArray = new EditText[9][9];

textArray[0][0] = (EditText)findViewById(R.id.text1);
textArray[0][1] = (EditText)findViewById(R.id.text2);
textArray[0][2] = (EditText)findViewById(R.id.text3);
textArray[0][3] = (EditText)findViewById(R.id.text4);
textArray[0][4] = (EditText)findViewById(R.id.text5);
textArray[0][5] = (EditText)findViewById(R.id.text6);
textArray[0][6] = (EditText)findViewById(R.id.text7);
textArray[0][7] = (EditText)findViewById(R.id.text8);
textArray[0][8] = (EditText)findViewById(R.id.text9);
textArray[1][0] = (EditText)findViewById(R.id.text10);
textArray[1][1] = (EditText)findViewById(R.id.text11);
textArray[1][2] = (EditText)findViewById(R.id.text12);
textArray[1][3] = (EditText)findViewById(R.id.text13);

...
...
...

textArray[8][8] = (EditText)findViewById(R.id.text81);


Now when I try to do a simple getText() method on textArray[][], it
gives me a runtime error but setText() method works fine on textArray[]
[]

textArray[i][j].getText().toString()


Please help me find out what I am doing wrong or what I need to
change. Thank you in advance.

2. One service to rule them all

I have a need to manage a large number of Androids at one time. I have
a large suite of applications that I need to be able to talk to and
share data with.  All the management needs to take place from a
central server.  What I would like to do is have a service running on
Android that manages my suite of applications as well as all
communications.  I have a few questions though:

-Is it possible to push new applications to an Android over a socket
and install it?

-How feasible would it be to have my service route communications to
the appropriate application?  That is, if the app is open, send it
data, otherwise store it, ignore it, launch it, etc.

-Can I build a service with a plugin architecture such that I can
deploy new modules to it on the fly.  Would it have to restart
itself?  Can it restart itself?

Thanks for the help

3. Wired+Wireless Tether apk

4. Resetting a HTTP InputStream...is this possible?

5. Androids on a new Cell Network

6. OOT: Mirdak di Puri Mall

7. A must follow twitter user