From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: GDB Discussion Subject: SOFTWARE_SINGLE_STEP_P and multi-arch Date: Mon, 04 Dec 2000 17:23:00 -0000 Message-id: <3A2C4141.B3C2F486@cygnus.com> X-SW-Source: 2000-12/msg00018.html Hello, At present there are two macros that control software stepping: SOFTWARE_SINGLE_STEP_P() and SOFTWARE_SINGLE_STEP(sig, insert_or_remove) I'd like to suggest the following: Rename SOFTWARE_SINGLE_STEP_P() to TARGET_SOFTWARE_SINGLE_STEP_P() and add it to the *target* vector. Hardware single step support (implied by !TARGET_SOFTWARE_SINGLE_STEP_P()) is target and not ISA/ABI dependant. Some ISAs might support hardware single step but the actual target may not (lousy OS support, limited stub functionality) Make SOFTWARE_SINGLE_STEP Multi arch. (and I don't like it but I can't think of a better incremental move :-) While I think SOFTWARE_SINGLE_STEP() should be replaced by code that creates temp breakpoints and adds them to the breakpoint database (gdb would later pull them directly) I don't want to try and also do that. The way software single step is currently implemented is just ulgh... Thoughts/comments? Andrew