This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [MI non-stop 04/11] Implement --thread and --frame.
A Monday 30 June 2008 19:35:03, Tom Tromey wrote:
> >>>>> "Michael" == Michael Snyder <msnyder@specifix.com> writes:
> >>
> >> #define DSC(str) (const unsigned char *)str, sizeof str - 1
>
> Michael> Boy... IMHO, I find that *very* obscure.
>
> Haha, you should see the rest of libcpp ;)
>
> Michael> I wouldn't like reading code that used that,
> Michael> if I had no idea what it was or where it was defined.
> Michael> Granted it's also clever...
>
> Yeah. IME it isn't so bad once you've looked it up a couple of times.
> I don't even know what "DSC" stands for though... bah.
>
BFD also has something equivalent. See STRING_COMMA_LEN.
Dunno how much do we rely on bfd's macros to use it.
--
Pedro Alves