This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: [RFA] monitor.c fix for rom68k target boards


Jeff Holcomb wrote:
> 
> This patch allows gdb to work with rom68k target boards once again (it's
> been broken for a year and a half apparently).
> 
> I don't think the routine needs to care about checking for termination of
> the string.  In the case of this monitor, the SR is returned as
> "2700-tfSm.111...xnzvc" for example.  Before Jason's change to this
> routine, it used strtoul which ended the matching at the first non
> digit.  Jason changed it to work with values larger than 'long' so it's
> now a hand-coded loop to gather the digits.

So the old code would just return with ``p'' pointing to one char beyond
the hex digit?

	Andrew


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