Multiple breakpoint issue when debugging loadable kernel module

Jan Kiszka jan.kiszka@web.de
Mon Oct 31 17:20:00 GMT 2011


On 2011-10-27 21:38, Tom Tromey wrote:
>>>>>> "Jan" == Jan Kiszka <jan.kiszka@web.de> writes:
> 
> Jan> [1] http://permalink.gmane.org/gmane.comp.gdb.devel/25898
> 
> Nice.
> 
> To answer your question there:
> 
> Jan> (does someone know how to switch of the add-symbol-file output?)
> 
> From Python you can to gdb.execute(..., to_string = True).
> I forget when we added this parameter.
> 
> From the CLI you can use the 'set logging' family of commands to
> temporarily disable output.
> 
> 
> From the code:
> 
> def offset_of(type, field):
> 	return gdb.parse_and_eval('(unsigned long)&( (' + str(type) + ' *)0)->' + str(field))
> 
> You can look up the field in the type and get the offset more directly.
> But this works too.

Yeah, works nicely. Was unfortunately not yet available in 7.1.

Thanks,
Jan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://sourceware.org/pipermail/gdb/attachments/20111031/1d34f5a4/attachment.sig>


More information about the Gdb mailing list