[PATCH] abi_gen.sh: ignore gdb customisations

Andreas Schneider asn at samba.org
Wed Jan 30 19:26:27 UTC 2019


On Wednesday, January 30, 2019 6:12:53 AM CET Douglas Bagnall via samba-
technical wrote:
> If you have "set print pretty on" in your ~/.gdbinit, gdb shows you
> structures nicely arranged with one attribute per line, which sometimes
> helps. On the other hand, it causes `./configure.developer && make -j`
> to fail with this kind of thing:
> 
> libtdb.so: symbol tdb_null has changed - please update major version
> 	old_signature: dptr = 0xXXXX, dsize = 0
> 	new_signature: $40 = {
> libndr.so: symbol ndr_syntax_id_null has changed - please update major
> version old_signature: uuid = {time_low = 0, time_mid = 0,
> time_hi_and_version = 0, clock_seq = "\000", node =
> "\000\000\000\000\000"}, if_version = 0 new_signature: $256 = {
> 
> until you do it again with --abi-check-disable.

I have this disabled by default because I'm mostly using:

https://github.com/cyrus-and/gdb-dashboard

However I think the right way would be to call gdb with '-nx':

       -nx
       -n  Do not execute commands from any .gdbinit initialization files.

This way gdb would ignore and gdb init files and we always would get the bare 
gdb output!


	Andreas


-- 
Andreas Schneider                      asn at samba.org
Samba Team                             www.samba.org
GPG-ID:     8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D





More information about the samba-technical mailing list