[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sequoyah-dev] Activity launched twice by ndk-gdb? was: Re: NDK dev: No app_process in my obj directory?
- From: Jon Paul Schelter <jpschelter@xxxxxxxxx>
- Date: Wed, 27 Oct 2010 17:09:05 -0400
- Delivered-to: email@example.com
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=Tlfx9Aq433UkZmNeoKRl3QItDCpL3VeFpwGN5BZ2uPg=; b=r4DR3Z18a0MGWN8ifNSIvDtok9HT5zSM0WSwRVkzDhSrEmaBZVK2c/IKuxyzAOrZQG RObXMoruFB0rXQDN0MOwLwebx6plgd/qDQPbCwX3DMrfryQNjFReSQa3g3+sNdqxBnip EddkwBlApNfZCWerT/OnhADqgsqysP41MaC4o=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=bVDXIk1jfDXzMC3/x9b2nQr0HlDbc+lnVUEK7d3yc9RZgybT0ymTetSBmCiCPpg9nv J5HWakjrxtfCgZtrezaITdjwePdVSCuhMhno5zRO1r/PvRlUn+bZP/BQG2fdBGD0wsRb gKiDg4MvB5S9ThNfrQ408PockSgeRPVtmughU=
Hey, I just found something odd - it looks like the (modified) ndk-gdb
script is still trying to launch the main activity, and I get a case
where depending on where I break to run ndk-gdb and start the
native-debug session, activity's onCreate is called twice.
it looks to me like in ndk-gdb(L44),
is set, but on line 449, the script tests for a non-zero length
$OPTION_START variable, so "no" is equivalent to "yes" :
if [ -n "$OPTION_START" ] ; then
so the script tries to re-launch the activity.
the fix would be to change Line 44 to
has anyone else run into this issue?
"This isn't right; it isn't even wrong." - W. Pauli
On Mon, Oct 25, 2010 at 12:51, Carlos Souto <mkhv73@xxxxxxxxxxxx> wrote:
> Actually, the app_process will be copied from the device/emulator to the
> development machine when the
> ndk-gdb script is executed. Thus, the configuration step of that guide is
> just set up in advance to better separate
> the process between a configuration and an execution step. It is safe to
> enter the values before the actual binary
> get copied, but if you are not comfortable with this, you can skip the
> "C/C++ Application" debug configuration, run
> through the process until you find the need to run the modified ndk-build
> command and, just then, configure the
> C/C++ debug configuration as shown in the guide and follow the usual
> Let me know if you got into any other issues.
> On Mon, Oct 25, 2010 at 2:36 PM, Jon Paul Schelter <jpschelter@xxxxxxxxx>
>> I have an existing C++ codebase, which I'm trying to port to android
>> using the NDK, Eclipse and sequoyah.
>> I'm trying to follow the process described in
>> http://www.eclipse.org/sequoyah/documentation/native_debug.php page,
>> using Eclipse 3.6(SR1) with Sequoyah installed, and after building, I
>> don't have an app_process binary - should I be running something else?
>> The process doesn't seem to be consistent with the option of adding
>> "Android native support" to my Android project.
>> thanks in advance for any help you can offer.
>> "This isn't right; it isn't even wrong." - W. Pauli
>> sequoyah-dev mailing list
> Carlos Alberto Souto Junior
> MSc. in Electrical Engineering
> Jr. Software Engineer
> sequoyah-dev mailing list