diff options
author | Michael Snyder <msnyder@vmware.com> | 2009-10-22 19:36:06 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2009-10-22 19:36:06 +0000 |
commit | 0156b21832b684643a30b598bf2ce5acae533768 (patch) | |
tree | 9d003571c49e1b89b6c78b178122ca91fda0927b /gdb/gcore.h | |
parent | 2009-10-22 Hui Zhu <teawater@gmail.com> (diff) | |
download | binutils-gdb-0156b21832b684643a30b598bf2ce5acae533768.tar.gz binutils-gdb-0156b21832b684643a30b598bf2ce5acae533768.tar.bz2 binutils-gdb-0156b21832b684643a30b598bf2ce5acae533768.zip |
2009-10-16 Hui Zhu <teawater@gmail.com>
Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
* record.c (RECORD_FILE_MAGIC): New constant.
(record_arch_list_cleanups): Renamed from record_message_cleanups.
(bfdcore_read): New function.
(netorder64): New function.
(netorder32): New function.
(netorder16): New function.
(record_restore): New function. Restore a saved record log.
(bfdcore_write): New function.
(cmd_record_restore): New function.
(cmd_record_save): New function. Save a record log to a file.
(_initialize_record): Set up commands for save and restore.
2009-10-17 Michael Snyder <msnyder@vmware.com>
* gcore.h: New file.
* gcore.c (create_gcore_bfd): New function.
(write_gcore_file): New function.
(call_target_sbrk): New function. Abstracted from gcore_command.
(gcore_command): Call call_target_sbrk.
Diffstat (limited to 'gdb/gcore.h')
-rw-r--r-- | gdb/gcore.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gdb/gcore.h b/gdb/gcore.h new file mode 100644 index 00000000000..fc168d3e2ee --- /dev/null +++ b/gdb/gcore.h @@ -0,0 +1,27 @@ +/* Support for reading/writing gcore files. + + Copyright (C) 2009, 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 (GCORE_H) +#define GCORE_H 1 + +extern bfd *create_gcore_bfd (char *filename); +extern void write_gcore_file (bfd *obfd); +extern bfd *load_corefile (char *filename, int from_tty); + +#endif /* GCORE_H */ |