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] Better display command-line macros + doc addon [Re: [patch] doc: Document macros defined from command-line]


Jan,

Did we (ahem, I) drop the ball on you, on this patch? Sorry about that.
I don't think the change of output was particularly necessary, but I do
think it makes it easier to understand from the user's point of view:
No need to know what line 0 means in DWARF...

> gdb/
> 2009-03-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
> 
> 	* macrocmd.c (info_macro_command): Print -Dname=value if LINE is zero.

> gdb/testsuite/
> 2009-03-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
> 
> 	* gdb.base/macscp.exp: New `options' parameter `-DFROM_COMMANDLINE'.
> 	(info_macro): Remova `decimal' declaration.  New variable `nonzero'.
> 	Replace all uses of `decimal' by `nonzero'.
> 	(info macro FROM_COMMANDLINE): New test.

GDB and testsuite parts look OK to me. Thanks for doing this.

> gdb/doc/
> 2009-03-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
> 
> 	* gdb.texinfo (Macros): Note command-line for `info macro'.  Append
> 	a new part on command-line defined macros.

I can't remember whether Eli approved the doco change or not, though.


-- 
Joel


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