aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-09-19 02:55:30 +0000
committerJohn Gilmore <gnu@cygnus>1991-09-19 02:55:30 +0000
commita10c0d365acbde075e3d87ae2ae1d88d404de0aa (patch)
treef3937b2047c9da03adb4ef076c58890cbbd8b893 /gdb
parentd3b9c0df30037fad7ce89f446278a37b4b3e172e (diff)
downloadgdb-a10c0d365acbde075e3d87ae2ae1d88d404de0aa.zip
gdb-a10c0d365acbde075e3d87ae2ae1d88d404de0aa.tar.gz
gdb-a10c0d365acbde075e3d87ae2ae1d88d404de0aa.tar.bz2
Modula-2 support:
* defs.h (local_hex_format, local_hex_string): Add.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/defs.h29
1 files changed, 22 insertions, 7 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index 507b48b..5d364a2 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -3,19 +3,19 @@
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
-the Free Software Foundation; either version 1, or (at your option)
-any later version.
+the Free Software Foundation; either version 2 of the License, or
+(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
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
-along with GDB; see the file COPYING. If not, write to
-the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+along with this program; if not, write to the Free Software
+Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#if !defined (DEFS_H)
#define DEFS_H
@@ -129,7 +129,6 @@ extern void restore_cleanups ();
extern void free_current_contents ();
extern int myread ();
extern int query ();
-extern int lines_to_list ();
extern void wrap_here (
#ifdef __STDC__
char *
@@ -228,4 +227,20 @@ char *baud_rate;
#endif /* No LONG_LONG. */
#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 */