OLD | NEW |
1 /* Core dump and executable file functions above target vector, for GDB. | 1 /* Core dump and executable file functions above target vector, for GDB. |
2 | 2 |
3 Copyright (C) 1986-1987, 1989, 1991-1994, 1996-2001, 2003, 2006-2012 | 3 Copyright (C) 1986-1987, 1989, 1991-1994, 1996-2001, 2003, 2006-2012 |
4 Free Software Foundation, Inc. | 4 Free Software Foundation, Inc. |
5 | 5 |
6 This file is part of GDB. | 6 This file is part of GDB. |
7 | 7 |
8 This program is free software; you can redistribute it and/or modify | 8 This program is free software; you can redistribute it and/or modify |
9 it under the terms of the GNU General Public License as published by | 9 it under the terms of the GNU General Public License as published by |
10 the Free Software Foundation; either version 3 of the License, or | 10 the Free Software Foundation; either version 3 of the License, or |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "symtab.h" | 27 #include "symtab.h" |
28 #include "command.h" | 28 #include "command.h" |
29 #include "gdbcmd.h" | 29 #include "gdbcmd.h" |
30 #include "bfd.h" | 30 #include "bfd.h" |
31 #include "target.h" | 31 #include "target.h" |
32 #include "gdbcore.h" | 32 #include "gdbcore.h" |
33 #include "dis-asm.h" | 33 #include "dis-asm.h" |
34 #include "gdb_stat.h" | 34 #include "gdb_stat.h" |
35 #include "completer.h" | 35 #include "completer.h" |
36 #include "exceptions.h" | 36 #include "exceptions.h" |
| 37 #include "observer.h" |
37 | 38 |
38 /* Local function declarations. */ | 39 /* Local function declarations. */ |
39 | 40 |
40 extern void _initialize_core (void); | 41 extern void _initialize_core (void); |
41 static void call_extra_exec_file_hooks (char *filename); | 42 static void call_extra_exec_file_hooks (char *filename); |
42 | 43 |
43 /* You can have any number of hooks for `exec_file_command' command to | 44 /* You can have any number of hooks for `exec_file_command' command to |
44 call. If there's only one hook, it is set in exec_file_display | 45 call. If there's only one hook, it is set in exec_file_display |
45 hook. If there are two or more hooks, they are set in | 46 hook. If there are two or more hooks, they are set in |
46 exec_file_extra_hooks[], and deprecated_exec_file_display_hook is | 47 exec_file_extra_hooks[], and deprecated_exec_file_display_hook is |
47 set to a function that calls all of them. This extra complexity is | 48 set to a function that calls all of them. This extra complexity is |
48 needed to preserve compatibility with old code that assumed that | 49 needed to preserve compatibility with old code that assumed that |
49 only one hook could be set, and which called | 50 only one hook could be set, and which called |
50 deprecated_exec_file_display_hook directly. */ | 51 deprecated_exec_file_display_hook directly. */ |
51 | 52 |
52 typedef void (*hook_type) (char *); | 53 typedef void (*hook_type) (char *); |
53 | 54 |
54 hook_type deprecated_exec_file_display_hook; /* The original hook. */ | 55 hook_type deprecated_exec_file_display_hook; /* The original hook. */ |
55 static hook_type *exec_file_extra_hooks; /* Array of additional | 56 static hook_type *exec_file_extra_hooks; /* Array of additional |
56 hooks. */ | 57 hooks. */ |
57 static int exec_file_hook_count = 0; /* Size of array. */ | 58 static int exec_file_hook_count = 0; /* Size of array. */ |
58 | 59 |
59 /* Binary file diddling handle for the core file. */ | 60 /* Binary file diddling handle for the core file. */ |
error: old chunk mismatch |
None
OLD | NEW |