This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
gdb stubs and hardware breaks
- From: John Newlin <jnewlin at rawbw dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Thu, 5 Aug 2004 09:51:45 -0700 (PDT)
- Subject: [ECOS] 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