Giter Club home page Giter Club logo

darchons / android-gdb Goto Github PK

View Code? Open in Web Editor NEW
31.0 9.0 25.0 377.85 MB

GDB fork targetting Android/Fennec development

Home Page: https://wiki.mozilla.org/Android/GDB

License: GNU General Public License v2.0

C 85.93% Objective-C 0.15% C++ 0.79% Perl 0.20% Shell 0.62% Emacs Lisp 0.03% Logos 0.21% Python 0.13% Awk 0.01% XSLT 0.01% Ada 0.19% Assembly 11.72% Fortran 0.01% Go 0.01% Java 0.01% Component Pascal 0.01% Racket 0.01% R 0.01%

android-gdb's Issues

Doesn't work on aarch64

The native libs on the Nexus 9 appear to be 64-bit. Or at least some of them. And this confuses jimdb currently. When attaching, I get:

gdb.error: "/Users/snorp/source/jimdb-arm/lib/HT4BAJT01519/system/bin/app_process": not in executable format: File format not recognized
/Users/snorp/source/jimdb-arm/bin/../utils/gdbinit:136: Error in sourced command file:
Error occurred in Python command: "/Users/snorp/source/jimdb-arm/lib/HT4BAJT01519/system/bin/app_process": not in executable format: File format not recognized

And indeed, app_process is 64-bit.

$ file lib/HT4BAJT01519/system/bin/app_process
lib/HT4BAJT01519/system/bin/app_process: ELF 64-bit LSB shared object, version 1 (SYSV), dynamically linked (uses shared libs), stripped

crashes in lookup_objfile_from_block()

Sometimes when doing operations on symbols I get crashes in lookup_objfile_from_block() on symtab.c:1260

The BLOCKVECTOR on struct symtab *s is NULL which is presumably the cause of the crash.

The filename for the symtab in question is nsIRedirectChannelRegistrar.h

"gdbserver exited unexpectedly" from feninit on Galaxy S

When I run moz-gdb/bin/gdb on my Ubuntu 12.04 machine, with a Galaxy S device connected, I get:

GNU gdb (GDB) 7.3-android-github.com/darchons
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-unknown-linux-gnu --target=arm-elf-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
New ADB device is "I897e057faf6"
Using device I897e057faf6
Using object directory: /hack/mozilla-central/obj-mobile-debug
Set sysroot to "/hack/moz-gdb/lib/I897e057faf6".
Updated solib-search-path.
Using package org.mozilla.fennec_bjacob.
Done
Attaching to parent (pid 5465)... as non-root... 

/hack/moz-gdb/bin/../utils/gdbinit:68: Error in sourced command file:
gdbserver exited unexpectedly

This line 68 in gdbinit is where we run feninit. Same problem when running gdbserver and feninit manually.

This problem was reproduced with the same phone on another PC. On the same PCs, other phones work fine with moz-gdb.

Also, this Galaxy S phone does have gdbserver, and running it manually seem to work fine by itself.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.