Re: [PATCH 0/2] Add new 'print max-depth' feature

Marco Barisione
2019-03-28T23:47:16Z

On 28 Mar 2019, at 23:48, Andrew Burgess <andrew.burgess@embecosm.com> wrote:
> I've taken a look and I can't find anything. I'll look again
> tomorrow, but any pointers in the right direction would be great.

Hi Andrew,

It’s my patch, which I hope will be merged soon, look for the thread title “Add gdb.Value.format_string ()”.
I did notice you patches today and I wanted to propose some coordination as well.

My patch adds a gdb.Value.format_string method which accepts a series of keyword-only arguments to set printing options. Basically it exposes stuff from the value_print_options structure to Python.

I guess that a new max_depth argument would fit in well and easily.

--
Marco Barisione