diff options
author | Joel Brobecker <brobecker@gnat.com> | 2010-04-29 14:45:39 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2010-04-29 14:45:39 +0000 |
commit | 6aecb9c22867107c03be7d1650fd4d2483f7e380 (patch) | |
tree | 53b891fe3b0e1a3778af88c4c03b4cd219aab26e /gdb/d-lang.h | |
parent | 77db8e2e96ba37bb1915261d21f7287f15b67bf8 (diff) | |
download | gdb-6aecb9c22867107c03be7d1650fd4d2483f7e380.zip gdb-6aecb9c22867107c03be7d1650fd4d2483f7e380.tar.gz gdb-6aecb9c22867107c03be7d1650fd4d2483f7e380.tar.bz2 |
D language support.
gdb/ChangeLog:
D language support.
* Makefile.in (SFILES): Add d-lang.c d-valprint.c.
(COMMON_OBS): Add d-lang.o d-valprint.o.
(HFILES_NO_SRCDIR): Add d-lang.h.
* NEWS: Mention D language support.
* c-lang.c (c_emit_char, exp_descriptor_c): Make public.
* c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
* d-lang.c: New file.
* d-lang.h: New file.
* d-valprint.c: New file.
* defs.h (enum language): Add language_d.
* dwarf2read.c (set_cu_language): Add DW_LANG_D.
* language.c (binop_result_type, integral_type, character_type)
(string_type, boolean_type, structured_type): Add language_d.
* symfile.c (init_filename_language_table): Add language_d.
* symtab.c: Include d-lang.h.
(symbol_init_language_specific, symbol_find_demangled_name)
(symbol_natural_name, lookup_symbol_in_language)
(symbol_demangled_name, symbol_matches_domain): Add language_d.
gdb/doc/ChangeLog:
* gdb.texinfo: (Summary) Add mention about D language support.
(Filenames): Add D suffixes.
(D): New node.
gdb/testsuite/ChangeLog:
* gdb.base/default.exp: Fix "set language" test.
Diffstat (limited to 'gdb/d-lang.h')
-rw-r--r-- | gdb/d-lang.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gdb/d-lang.h b/gdb/d-lang.h new file mode 100644 index 0000000..be27827 --- /dev/null +++ b/gdb/d-lang.h @@ -0,0 +1,32 @@ +/* D language support definitions for GDB, the GNU debugger. + + Copyright (C) 2005, 2006, 2008, 2009, 2010 Free Software Foundation, Inc. + + This file is part of GDB. + + 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 3 of the License, or + (at your option) any later version. + + 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 this program. If not, see <http://www.gnu.org/licenses/>. */ + +#if !defined (D_LANG_H) +#define D_LANG_H 1 + +#include "symtab.h" + +extern char *d_demangle (const char *mangled, int options); + +extern int d_val_print (struct type *type, const gdb_byte *valaddr, + int embedded_offset, CORE_ADDR address, + struct ui_file *stream, int recurse, + const struct value_print_options *options); + +#endif /* !defined (D_LANG_H) */ |