Sure.

~/.gdbinit
source /usr/local/share/eo/gdb/eo_gdb.py

It's that simple. This works on Ubuntu 12.04 without additional
configuration.
And here is the result of bt vs eo_backtrace.
https://phab.enlightenment.org/P21

Enjoy it :)

Daniel Juyung Seo (SeoZ)




On Tue, Apr 16, 2013 at 8:33 PM, Tom Hacohen <tom.haco...@samsung.com>wrote:

> Glad you like it. Please consider pasting your gdbinit here so other
> people may benefit from it.
>
> --
> Tom.
>
>
> On 16/04/13 12:27, Daniel Juyung Seo wrote:
>
>> AWESOMENESS! x 100.
>> Today is the best AWESOME prize day.
>>
>> This works perfectly here in Ubuntu 12.04 with .gdbinit configuration.
>> Coolz
>>
>> Daniel Juyung Seo (SeoZ)
>>
>>
>>
>> On Tue, Apr 16, 2013 at 7:54 PM, Tom Hacohen <tom.haco...@samsung.com>**
>> wrote:
>>
>>  Hey there,
>>>
>>> I added a new gdb command eo_backtrace. It essentially prints the
>>> backtrace but filters out all the lines that are from inside eo.
>>>
>>> Also, if you use a recent enough gdb (I don't know how recent it should
>>> be, I know it doesn't work on Ubuntu 12.04 but does on recent arch), you
>>> get automatic module loading. This means you don't have to load the
>>> python module manually, it'll be automatically loaded when debugging
>>> objects that link against eo. You can also set older gdb version to
>>> always load the module (only adds commands so it's fine).
>>>
>>> If you install the efl to a different prefix than the one gdb was
>>> installed to, you have to either set gdb's data dir/trusted module path
>>> to the correct one, or just symlink the gdb python file to the proper
>>> place. For example, assuming you installed eo to "/usr/local" and gdb to
>>> "/usr", link /usr/local/share/gdb/auto-**load/libeo* to
>>> /usr/share/gdb/auto-load/**libeo*.
>>>
>>> Have fun, and let me know if you face any issues.
>>>
>>> Cheers,
>>> Tom.
>>>
>>>
>>> ------------------------------**------------------------------**
>>> ------------------
>>> Precog is a next-generation analytics platform capable of advanced
>>> analytics on semi-structured data. The platform includes APIs for
>>> building
>>> apps and a phenomenal toolset for data science. Developers can use
>>> our toolset for easy data analysis & visualization. Get a free account!
>>> http://www2.precog.com/**precogplatform/**slashdotnewsletter<http://www2.precog.com/precogplatform/slashdotnewsletter>
>>> ______________________________**_________________
>>> enlightenment-devel mailing list
>>> enlightenment-devel@lists.**sourceforge.net<enlightenment-devel@lists.sourceforge.net>
>>> https://lists.sourceforge.net/**lists/listinfo/enlightenment-**devel<https://lists.sourceforge.net/lists/listinfo/enlightenment-devel>
>>>
>>>  ------------------------------**------------------------------**
>> ------------------
>> Precog is a next-generation analytics platform capable of advanced
>> analytics on semi-structured data. The platform includes APIs for building
>> apps and a phenomenal toolset for data science. Developers can use
>> our toolset for easy data analysis & visualization. Get a free account!
>> http://www2.precog.com/**precogplatform/**slashdotnewsletter<http://www2.precog.com/precogplatform/slashdotnewsletter>
>> ______________________________**_________________
>> enlightenment-devel mailing list
>> enlightenment-devel@lists.**sourceforge.net<enlightenment-devel@lists.sourceforge.net>
>> https://lists.sourceforge.net/**lists/listinfo/enlightenment-**devel<https://lists.sourceforge.net/lists/listinfo/enlightenment-devel>
>>
>>
>
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to