diff options
author | Stan Shebs <shebs@codesourcery.com> | 1994-07-15 23:53:04 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1994-07-15 23:53:04 +0000 |
commit | 0568ccb0acb963d00f5bc283b7389d2b397c6364 (patch) | |
tree | b211934d7f8f750d403ce613e4b288883d5c96d8 /gdb/valprint.h | |
parent | 14c11f44828bad1a48e3753f77fc1962a2bc5feb (diff) | |
download | gdb-0568ccb0acb963d00f5bc283b7389d2b397c6364.zip gdb-0568ccb0acb963d00f5bc283b7389d2b397c6364.tar.gz gdb-0568ccb0acb963d00f5bc283b7389d2b397c6364.tar.bz2 |
Stop printing at null char option, from Oliver Meyer
(omeyer@i3.informatik.rwth-aachen.de).
* valprint.h, valprint.c (stop_print_at_null): New global.
* valprint.c (_initialize_valprint): New print set subcommand
"null-stop".
* c-valprint.c (c_val_print): If stop_print_at_null is on, and
printing a char array, adjust the number of chars to print.
Diffstat (limited to 'gdb/valprint.h')
-rw-r--r-- | gdb/valprint.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/valprint.h b/gdb/valprint.h index 4d58641..e45f48d 100644 --- a/gdb/valprint.h +++ b/gdb/valprint.h @@ -1,5 +1,6 @@ /* Declarations for value printing routines for GDB, the GNU debugger. - Copyright 1986, 1988, 1989, 1991 Free Software Foundation, Inc. + Copyright 1986, 1988, 1989, 1991, 1992, 1993, 1994 + Free Software Foundation, Inc. This file is part of GDB. @@ -29,8 +30,11 @@ extern int objectprint; /* Controls looking up an object's derived type using what we find in its vtables. */ extern unsigned int print_max; /* Max # of chars for strings/vectors */ + extern int output_format; +extern int stop_print_at_null; /* Stop printing at null char? */ + extern void val_print_array_elements PARAMS ((struct type *, char *, CORE_ADDR, GDB_FILE *, int, int, int, enum val_prettyprint, int)); |