This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos 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]

gdb stubs and hardware breaks


In the generic-stub.c, if gdb requests that the stub insert a hardware
breakpoint, but the target doesn't support them, the stub returns E02.

Would it be better to return a blank string ""?

The GDB docs state the string "" indicates that hardware breaks are not
supported, and Exx means an error inserting the breaks.

I think the only real difference is the user experience here, they either
see an error message printed, or a message saying the target doesn't
support hardware breaks, which seems a little friendlier.  :)


 -john


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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