This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] [python] find_line_pc_range


> Date: Sun, 3 Jul 2011 23:03:51 -0700
> From: Matt Rice <ratmice@gmail.com>
> Cc: gdb-patches@sourceware.org
> 
> Thanks, attached is an updated patch that also includes tests.
> 
> 2011-07-03  Matt Rice  <ratmice@gmail.com>
> 
>         * python/py-symtab.c: Populate sal_object_methods.
>         (salpy_find_line_pc_range): New function.
> 
> 2011-07-03  Matt Rice  <ratmice@gmail.com>
> 
>         * gdb.texinfo (Symbol Tables In Python): Add find_line_pc_range method.
> 
> 2011-07-03  Matt Rice  <ratmice@gmail.com>
> 
>         * gdb.python/py-symtab.exp: New Tests for find_line_pc_range.

Thanks.

Comments about the documentation part:

> +@defmethod Symtab_and_line find_line_pc_range
> +If found returns a @code{Tuple} containing the start and end program counter
> +addresses for the line attribute.  Otherwise returns @code{None}.

Sorry, I don't understand what you are trying to say here.  "If found"
what?  And what "line attribute" do you refer to?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]