Jump to content

  • Log In with Google      Sign In   
  • Create Account

return0

Member Since 23 Apr 2008
Offline Last Active Mar 03 2016 07:26 AM

Posts I've Made

In Topic: Local hash

02 March 2016 - 12:20 PM

i took my first programming class in 1977 as a sophomore in high school.  i eventually went on to take software engineering at OSU. and now, 39 years later, i still have yet to use a hash table in a real world app.


Seriously? I find this bizzare, have you never used a dynamic language like python, ruby, or lua? These use hash tables idiomatically lots.

In Topic: Android NDK C++ crash reporting

20 November 2015 - 07:12 PM

I mean live deployed crash reporting from NDK crashed in apps that users have downloaded from Play store.

A common tool is Google Breakpad to parse minidump files and send them to a remote service, then use the unstripped debug symbols to get a useful trace. This is what HockeyApp does, for example. Mozilla have their own equivalent for Firefox.

I've been experimenting, and can get good traces from some devices, but for others the dump looks weird - it appears truncated, as if it's not got all the stack frames from my app lib at point of crash. Was wondering if anyone had ecountered similar?

In Topic: Can you write mobile games in C++?

26 February 2015 - 05:49 PM

Not sure what to tell you here, other than that it works.

From my experience at tri-Ace, there are no Android NDK (C++) debuggers that work on all devices, only for a limited set of them.And according to the 2nd link you posted, you have to use quite a retarded hack to get breakpoints to work, assuming the device is supported in the first place.L. Spiro

At work I have personally debugged a large C++ library on ten or so devices, mostly Asus, Samsung, Sony, LG and Motorola, without issue. I an aware that other engineers have debugged on other devices, including from smaller international Android handset manufacturers.

We have a compatibility spreadsheet which indicates successful testing of both our library and development environment on 60 or so devices. All of these devices are Gingerbread or above; possibly prior to this support was less mature.

I am sympathetic to you scepticism but in reality I've found support for debugging effectively ubiquitous.

As for the "retarded hack", it is true that gdb takes a few seconds to attach. If debugging some user controlled event this is not an issue. If debugging application startup it is sometimes necessary to include an artificial delay (i.e., sleep(5) or similar). Not too onerous but yes, somewhat irritating.

In Topic: Can you write mobile games in C++?

14 February 2015 - 08:35 PM

This is not true, you can use ADT and to 'visually' debug in Eclipse. It works fine.

http://developer.android.com/tools/debugging/debugging-projects.htmlI see no mention of C++ there.L. Spiro

Not sure what to tell you here, other than that it works. It uses the gdb version shipped with the NDK toolchain, and integrates with the Eclipse C++ view.

See http://tools.android.com/recent/usingthendkplugin and http://stackoverflow.com/questions/17705109/how-to-debug-c-c-code-ndk-in-eclipse

I guess you are unable to find more recent docs as ADT is being deprecated in favour of Android Studio.

In Topic: Can you write mobile games in C++?

12 February 2015 - 05:50 PM

Not to mention that Android’s NDK’s (which you must use if you use C++) debugging tools are severely lacking.With Android you get the choice of having full debugger support, but you have to use Java, or you can use C++, but with virtually no debugging support.It’s basically like a guy giving you 2 choices: A: he knees you in the groin or B: you groin him in the knee.L. Spiro


This is not true, you can use ADT and to 'visually' debug in Eclipse. It works fine.

PARTNERS