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: [RFA] Process record and replay, 8/10


On Mon, Nov 10, 2008 at 22:41, Andreas Schwab <schwab@suse.de> wrote:
> teawater <teawater@gmail.com> writes:
>
>>>> +      /* arith & logic */
>>>> +    case 0x00 ... 0x05:
>>>> +    case 0x08 ... 0x0d:
>>>> +    case 0x10 ... 0x15:
>>>> +    case 0x18 ... 0x1d:
>>>> +    case 0x20 ... 0x25:
>>>> +    case 0x28 ... 0x2d:
>>>> +    case 0x30 ... 0x35:
>>>> +    case 0x38 ... 0x3d:
>>>
>>> Is this valid ISO C?
>>
>> I am not sure. Could you tell me?
>
> Definitely not.  *Note (gcc)Case Ranges::.
>

Thanks.

So I think I need to change it.
Does there have some easy way like ... can instead ... in ISO C?
Cause:
case 0x01:
case 0x02:
...
will waste too much line.



> Andreas.
>
> --
> Andreas Schwab, SuSE Labs, schwab@suse.de
> SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
> PGP 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]