You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mynewt.apache.org by Vipul Rahane <vi...@runtime.io> on 2016/06/01 17:04:05 UTC

GDB scripts

Hello,

While debugging a bunch of things, I felt the need for a few gdb scripts to print out the data structures that we would use regularly. I was thinking of creating a common gdb script which would contain different functions. This could reside in "libs/util" since we do not have a “tools" directory.

The developer would then just source the common script.

All suggestions are welcome.

Regards,
Vipul Rahane

Re: GDB scripts

Posted by will sanfilippo <wi...@runtime.io>.
I think having a gdbscript or scripts is an excellent idea but I dont think I would put them in libs/util. I dont like saying that without offering an alternative… but I just did :-)


> On Jun 1, 2016, at 10:25 AM, Christopher Collins <cc...@apache.org> wrote:
> 
> On Wed, Jun 01, 2016 at 10:04:05AM -0700, Vipul Rahane wrote:
>> Hello,
>> 
>> While debugging a bunch of things, I felt the need for a few gdb scripts to print out the data structures that we would use regularly. I was thinking of creating a common gdb script which would contain different functions. This could reside in "libs/util" since we do not have a “tools" directory.
>> 
>> The developer would then just source the common script.
>> 
>> All suggestions are welcome.
> 
> Some gdb scripts are sorely needed, and I think that is a great idea.  I
> wrote some small gdb macros ("functions"?) for inspecting mbufs; if you
> create one or more gdb scripts, I'll follow your lead and add mine.
> 
> Chris


Re: GDB scripts

Posted by Christopher Collins <cc...@apache.org>.
On Wed, Jun 01, 2016 at 10:04:05AM -0700, Vipul Rahane wrote:
> Hello,
> 
> While debugging a bunch of things, I felt the need for a few gdb scripts to print out the data structures that we would use regularly. I was thinking of creating a common gdb script which would contain different functions. This could reside in "libs/util" since we do not have a \u201ctools" directory.
> 
> The developer would then just source the common script.
> 
> All suggestions are welcome.

Some gdb scripts are sorely needed, and I think that is a great idea.  I
wrote some small gdb macros ("functions"?) for inspecting mbufs; if you
create one or more gdb scripts, I'll follow your lead and add mine.

Chris