Re: [PATCH 1/2] Improve types abstraction for gdb python scripts

2016-05-04 Thread Kieran Bingham
On 04/05/16 04:12, buzdelab...@gmail.com wrote: > From: Dom Cote > > Change the read_u16 function so it accepts both 'str' and 'byte' > as type for the arguments. > > When calling read_memory() from gdb API, depending on if > it was built with 2.7 or 3.X, the format used to return the > data wil

[PATCH 1/2] Improve types abstraction for gdb python scripts

2016-05-03 Thread buzdelabuz2
From: Dom Cote Change the read_u16 function so it accepts both 'str' and 'byte' as type for the arguments. When calling read_memory() from gdb API, depending on if it was built with 2.7 or 3.X, the format used to return the data will differ ( 'str' for 2.7, and 'byte' for 3.X ). Add a function

[PATCH 1/2] Improve types abstraction for gdb python scripts

2016-05-03 Thread buzdelabuz2
From: Dom Cote Change the read_u16 function so it accepts both 'str' and 'byte' as type for the arguments. When calling read_memory() from gdb API, depending on if it was built with 2.7 or 3.X, the format used to return the data will differ ( 'str' for 2.7, and 'byte' for 3.X ). Add a function