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 2/4] python support for fetching separate debug files: have_debug_info


> From: Doug Evans <dje@google.com>
> Date: Thu, 20 Nov 2014 13:22:39 -0800
> 
> This patch provides an API call to determine whether debug information
> is present.  It's based on the same test that gdb internally uses
> to decide whether to look for separate debug files.

OK for the documentation parts.

Btw, I wonder why this is useful, given this caveat:

> +Note that a program compiled without @samp{-g} may still have some debug
> +information, e.g., from the @code{C} runtime.  Thus a value of @code{True}
> +for this attribute does not mean that debug information is present for
> +every source file in the program.  It only means that debug information
> +is present for at least one source file.

If this attribute cannot be relied upon, why is it a good idea to
expose it to Python?


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