mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
* stack.c (gdb_string.h): Include after defs.h
* defs.h (target_output_hook): New declaration. * source.c (mod_path): Fix Win32 \ handling.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
Mon Aug 7 15:34:29 1995 steve chamberlain <sac@slash.cygnus.com>
|
||||||
|
|
||||||
|
* stack.c (gdb_string.h): Include after defs.h
|
||||||
|
* defs.h (target_output_hook): New declaration.
|
||||||
|
* source.c (mod_path): Fix Win32 \ handling.
|
||||||
|
|
||||||
Sun Aug 6 22:14:25 1995 Jeff Law (law@snake.cs.utah.edu)
|
Sun Aug 6 22:14:25 1995 Jeff Law (law@snake.cs.utah.edu)
|
||||||
|
|
||||||
* hppa-tdep.c (frame_saved_pc): Don't try to dig a return pointer
|
* hppa-tdep.c (frame_saved_pc): Don't try to dig a return pointer
|
||||||
|
27
gdb/defs.h
27
gdb/defs.h
@ -16,7 +16,7 @@ GNU General Public License for more details.
|
|||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#ifndef DEFS_H
|
#ifndef DEFS_H
|
||||||
#define DEFS_H
|
#define DEFS_H
|
||||||
@ -143,7 +143,7 @@ struct cleanup
|
|||||||
|
|
||||||
#ifndef NORETURN
|
#ifndef NORETURN
|
||||||
# if defined(__GNUC__) \
|
# if defined(__GNUC__) \
|
||||||
&& (__GNUC__ == 1 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5))
|
&& (__GNUC__ == 1 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7))
|
||||||
# define NORETURN volatile
|
# define NORETURN volatile
|
||||||
# else
|
# else
|
||||||
# define NORETURN /* nothing */
|
# define NORETURN /* nothing */
|
||||||
@ -151,10 +151,12 @@ struct cleanup
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* GCC 2.5 and later versions define a function attribute "noreturn",
|
/* GCC 2.5 and later versions define a function attribute "noreturn",
|
||||||
which is the preferred way to declare that a function never returns. */
|
which is the preferred way to declare that a function never returns.
|
||||||
|
However GCC 2.7 appears to be the first version in which this fully
|
||||||
|
works everywhere we use it. */
|
||||||
|
|
||||||
#ifndef ATTR_NORETURN
|
#ifndef ATTR_NORETURN
|
||||||
# if defined(__GNUC__) && __GNUC__ >= 2 && __GNUC_MINOR__ >= 5
|
# if defined(__GNUC__) && __GNUC__ >= 2 && __GNUC_MINOR__ >= 7
|
||||||
# define ATTR_NORETURN __attribute__ ((noreturn))
|
# define ATTR_NORETURN __attribute__ ((noreturn))
|
||||||
# else
|
# else
|
||||||
# define ATTR_NORETURN /* nothing */
|
# define ATTR_NORETURN /* nothing */
|
||||||
@ -162,7 +164,7 @@ struct cleanup
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ATTR_FORMAT
|
#ifndef ATTR_FORMAT
|
||||||
# if defined(__GNUC__) && __GNUC__ >= 2 && __GNUC_MINOR__ >= 4
|
# if defined(__GNUC__) && __GNUC__ >= 2 && __GNUC_MINOR__ >= 4 && defined (__ANSI_PROTOTYPES)
|
||||||
# define ATTR_FORMAT(type, x, y) __attribute__ ((format(type, x, y)))
|
# define ATTR_FORMAT(type, x, y) __attribute__ ((format(type, x, y)))
|
||||||
# else
|
# else
|
||||||
# define ATTR_FORMAT(type, x, y) /* nothing */
|
# define ATTR_FORMAT(type, x, y) /* nothing */
|
||||||
@ -859,6 +861,7 @@ extern void (*flush_hook) PARAMS ((FILE *stream));
|
|||||||
extern void (*create_breakpoint_hook) PARAMS ((struct breakpoint *b));
|
extern void (*create_breakpoint_hook) PARAMS ((struct breakpoint *b));
|
||||||
extern void (*delete_breakpoint_hook) PARAMS ((struct breakpoint *bpt));
|
extern void (*delete_breakpoint_hook) PARAMS ((struct breakpoint *bpt));
|
||||||
extern void (*modify_breakpoint_hook) PARAMS ((struct breakpoint *bpt));
|
extern void (*modify_breakpoint_hook) PARAMS ((struct breakpoint *bpt));
|
||||||
|
extern void (*target_output_hook) PARAMS ((char *));
|
||||||
extern void (*interactive_hook) PARAMS ((void));
|
extern void (*interactive_hook) PARAMS ((void));
|
||||||
extern void (*registers_changed_hook) PARAMS ((void));
|
extern void (*registers_changed_hook) PARAMS ((void));
|
||||||
|
|
||||||
@ -868,7 +871,7 @@ extern int (*target_wait_hook) PARAMS ((int pid,
|
|||||||
extern void (*call_command_hook) PARAMS ((struct cmd_list_element *c,
|
extern void (*call_command_hook) PARAMS ((struct cmd_list_element *c,
|
||||||
char *cmd, int from_tty));
|
char *cmd, int from_tty));
|
||||||
|
|
||||||
extern NORETURN void (*error_hook) PARAMS (());
|
extern NORETURN void (*error_hook) PARAMS (()) ATTR_NORETURN;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -885,16 +888,28 @@ extern int use_windows;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef SLASH_P
|
#ifndef SLASH_P
|
||||||
|
#if defined(__GO32__)||defined(WIN32)
|
||||||
|
#define SLASH_P(X) ((X)=='\\')
|
||||||
|
#else
|
||||||
#define SLASH_P(X) ((X)=='/')
|
#define SLASH_P(X) ((X)=='/')
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef SLASH_CHAR
|
#ifndef SLASH_CHAR
|
||||||
|
#if defined(__GO32__)||defined(WIN32)
|
||||||
|
#define SLASH_CHAR '\\'
|
||||||
|
#else
|
||||||
#define SLASH_CHAR '/'
|
#define SLASH_CHAR '/'
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef SLASH_STRING
|
#ifndef SLASH_STRING
|
||||||
|
#if defined(__GO32__)||defined(WIN32)
|
||||||
|
#define SLASH_STRING "\\"
|
||||||
|
#else
|
||||||
#define SLASH_STRING "/"
|
#define SLASH_STRING "/"
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef ROOTED_P
|
#ifndef ROOTED_P
|
||||||
#define ROOTED_P(X) (SLASH_P((X)[0]))
|
#define ROOTED_P(X) (SLASH_P((X)[0]))
|
||||||
|
Reference in New Issue
Block a user