printing Chromium types with gdb

85 views
Skip to first unread message

ziran

unread,
Nov 26, 2013, 6:02:03 AM11/26/13
to chromi...@chromium.org
Hi,

I followed 


first created a ~/.gdbinit  as follows -

python
import sys
sys.path.insert(0, "~/Blink/blink-linux/src/third_party/WebKit/Tools/gdb/")
import webkit
sys.path.insert(0, "~/Blink/blink-linux/src/tools/gdb/")
import gdb_chrome

While run gdb, I have  -

GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
.....
Traceback (most recent call last):
  File "<string>", line 5, in <module>
ImportError: No module named gdb_chrome

So I removed the gdb_chrome section in .gdbinit , and run gdb as follows -

gdb --args ./out/Debug/content_shell --single-process  ~/Blink/own_scripts/test1.html. I have

Reading symbols from /home/local/SERILOCAL/z.sun/Blink/blink-linux/src/out/Debug/content_shell...done.
(gdb) r
Starting program: /home/local/SERILOCAL/z.sun/Blink/blink-linux/src/out/Debug/content_shell --single-process /home/local/SERILOCAL/z.sun/Blink/own_scripts/test1.html
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".


The program just halt in this step doesn't move further - even I left it for overnight. 

What have I missed or done wrong? Please advise. 

Thanks





Eric Roman

unread,
Nov 26, 2013, 4:05:43 PM11/26/13
to zira...@samsung.com, chromium-dev
I doubt that sys.path.insert() will expand the "~", so this is probably why it can't resolve the modules.
Try using an absolute path instead.


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

ziran

unread,
Nov 27, 2013, 5:35:57 AM11/27/13
to chromi...@chromium.org, zira...@samsung.com
You are right. Absolute path solved the issue. 

Thanks very much.
Reply all
Reply to author
Forward
0 new messages