This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: Merge C++ conversion into trunk (6/6 - gdb tree macro support)


Diego Novillo <dnovillo@google.com> writes:

> diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in
> index d1ae46d..858e490 100644
> --- a/gcc/gdbinit.in
> +++ b/gcc/gdbinit.in
> @@ -182,6 +182,17 @@ document pbm
>  Dump the bitmap that is in $ as a comma-separated list of numbers.
>  end
>  
> +# Define some macros helpful to gdb when it is expanding macros.
> +macro define __FILE__ "gdb"
> +macro define __LINE__ 1
> +
> +# Skip all inline functions in tree.h.
> +# These are used in accessor macros.
> +skip "tree.h"

This command has only been added to the current gdb release.  Older
versions will bail out at this point, so it should be moved down to the
end of the file.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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