[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sequoyah-dev] Activity launched twice by ndk-gdb? was: Re: NDK dev: No app_process in my obj directory?

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),
<<
OPTION_START=no
>>
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
<<
OPTION_START=
>>

has anyone else run into this issue?

regards,
JP
----------------
http://forksandhope.com/
"This isn't right; it isn't even wrong." - W. Pauli



On Mon, Oct 25, 2010 at 12:51, Carlos Souto <mkhv73@xxxxxxxxxxxx> wrote:
> Hi,
> 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
> workflow.
> Let me know if you got into any other issues.
> BR's
>
> On Mon, Oct 25, 2010 at 2:36 PM, Jon Paul Schelter <jpschelter@xxxxxxxxx>
> wrote:
>>
>> HI,
>>
>> 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.
>> JP
>>
>> ----------------
>> http://forksandhope.com/
>> "This isn't right; it isn't even wrong." - W. Pauli
>> _______________________________________________
>> sequoyah-dev mailing list
>> sequoyah-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/sequoyah-dev
>
>
>
> --
> --
> Carlos Alberto Souto Junior
> MSc. in Electrical Engineering
> Jr. Software Engineer
>
>
> _______________________________________________
> sequoyah-dev mailing list
> sequoyah-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/sequoyah-dev
>
>