mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-04 13:57:12 +08:00
Modula-2 support:
* defs.h (local_hex_format, local_hex_string): Add.
This commit is contained in:
29
gdb/defs.h
29
gdb/defs.h
@ -3,19 +3,19 @@
|
|||||||
|
|
||||||
This file is part of GDB.
|
This file is part of GDB.
|
||||||
|
|
||||||
GDB is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 1, or (at your option)
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
GDB is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
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 GDB; see the file COPYING. If not, write to
|
along with this program; if not, write to the Free Software
|
||||||
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
|
|
||||||
#if !defined (DEFS_H)
|
#if !defined (DEFS_H)
|
||||||
#define DEFS_H
|
#define DEFS_H
|
||||||
@ -129,7 +129,6 @@ extern void restore_cleanups ();
|
|||||||
extern void free_current_contents ();
|
extern void free_current_contents ();
|
||||||
extern int myread ();
|
extern int myread ();
|
||||||
extern int query ();
|
extern int query ();
|
||||||
extern int lines_to_list ();
|
|
||||||
extern void wrap_here (
|
extern void wrap_here (
|
||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
char *
|
char *
|
||||||
@ -228,4 +227,20 @@ char *baud_rate;
|
|||||||
#endif /* No LONG_LONG. */
|
#endif /* No LONG_LONG. */
|
||||||
#endif /* No longest_to_int. */
|
#endif /* No longest_to_int. */
|
||||||
|
|
||||||
|
/* Return a format string for printf that will print a number in the local
|
||||||
|
(language-specific) hexadecimal format. Result is static and is
|
||||||
|
overwritten by the next call. local_hex_format_custom takes printf
|
||||||
|
options like "08" or "l" (to produce e.g. %08x or %lx). */
|
||||||
|
|
||||||
|
#define local_hex_format() local_hex_format_custom("")
|
||||||
|
char *local_hex_format_custom(); /* language.c */
|
||||||
|
|
||||||
|
/* Return a string that contains a number formatted in the local
|
||||||
|
(language-specific) hexadecimal format. Result is static and is
|
||||||
|
overwritten by the next call. local_hex_string_custom takes printf
|
||||||
|
options like "08" or "l". */
|
||||||
|
|
||||||
|
#define local_hex_string(n) local_hex_string_custom((n),"")
|
||||||
|
char *local_hex_string_custom(); /* language.c */
|
||||||
|
|
||||||
#endif /* no DEFS_H */
|
#endif /* no DEFS_H */
|
||||||
|
Reference in New Issue
Block a user