From: Paul Pluzhnikov <ppluzhnikov@google.com>
To: n179911 <n179911@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: how to set breakpoint at a particular line in cpp file
Date: Fri, 20 Nov 2009 13:56:00 -0000 [thread overview]
Message-ID: <8ac60eac0911182329g536787f6l810303af2619ee00@mail.gmail.com> (raw)
In-Reply-To: <3b9893450911182316g333c111fhb20572fda89da595@mail.gmail.com>
On Wed, Nov 18, 2009 at 11:16 PM, n179911 <n179911@gmail.com> wrote:
> I followed this step (which download gdb 6.8 built for android),
> http://ortegaalfredo.googlepages.com/android
>
> And then I run gdb to attach a process running on android (using the
> command gdb -P {Process ID})
>
> And I run (gdb) break HTMLParser.cpp:208 because I am trying to debug
> Webkit on android.
You still have not provided an executable. WebKit is a library, but it
doesn't execute "on its own". It is loaded into *some* executable;
namely the one that is running in process <PID>. If you don't know
which executable that is, try "ps -fp <PID>".
> So I can't really use the 'file command'.
Why not? Once you figure out which executable is running "inside"
process <PID>, invoke GDB like this: "gdb -p <PID>
/path/to/executable", and you should be good to go (assuming you don't
run out of memory that is -- AFAIU WebKit is very large, and I believe
you are quite unlikely to succeed with "native android GDB").
Cheers,
--
Paul Pluzhnikov
prev parent reply other threads:[~2009-11-19 7:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-19 7:30 n179911
2009-11-19 23:05 ` Paul Pluzhnikov
2009-11-20 6:20 ` n179911
2009-11-20 13:56 ` Paul Pluzhnikov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8ac60eac0911182329g536787f6l810303af2619ee00@mail.gmail.com \
--to=ppluzhnikov@google.com \
--cc=gdb@sourceware.org \
--cc=n179911@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox