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: Fwd: Obvious: doc fix for 'struct memrange' in tracepoints.c


> Date: Fri, 18 Nov 2005 20:45:28 -0800
> From: Jim Blandy <jimb@red-bean.com>
> 
> *** gdb/tracepoint.c    19 Nov 2005 01:23:26 -0000      1.79
> --- gdb/tracepoint.c    19 Nov 2005 04:42:36 -0000
> *************** collect_symbol (struct collection_list *
> *** 1226,1232 ****
>                            DEPRECATED_SYMBOL_NAME (sym), len,
>                            tmp /* address */);
>         }
> !       add_memrange (collect, -1, offset, len);        /* 0 == memory */
>         break;
>       case LOC_REGISTER:
>       case LOC_REGPARM:
> --- 1226,1232 ----
>                            DEPRECATED_SYMBOL_NAME (sym), len,
>                            tmp /* address */);
>         }
> !       add_memrange (collect, -1, offset, len);        /* -1 == memory */
>         break;
>       case LOC_REGISTER:
>       case LOC_REGPARM:

How about introducing a macro, so that the code speaks for itself?


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