* top.c (control_level): Remove unused variable.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2006-01-07 Eli Zaretskii <eliz@gnu.org>
2
3 * top.c (control_level): Remove unused variable.
4
5 2006-01-06 Fred Fish <fnf@specifix.com>
6
7 * objfiles.c (source.h): Include.
8 (free_objfile): Update comment about clear_symtab_users().
9 (free_objfile): Check all symtabs of objfile being freed and if
10 one of them is the current source symtab, call
11 clear_current_source_symtab_and_line().
12
13 2006-01-04 Michael Snyder <msnyder@redhat.com>
14
15 Checkpoint/Restart for Linux.
16 * linux-nat.c: Add support for debugging multiple forks.
17 Add #include for linux-fork.h (interface spec).
18 (super_mourn_inferior): New function pointer.
19 (child_mourn_inferior): New function / target method.
20 (linux_target): Claim to_mourn_inferior method pointer.
21 (child_follow_fork): Call interface to linux-fork, conditionally
22 add new fork processes to list of debugged processes.
23 (kill_inferior): Use interface to linux-fork to kill
24 multiple processes.
25
26 * linux-fork.h: New file.
27 * linux-fork.c: New file. Support for debugging multiple forks
28 of the same program. Support for checkpoint and restart commands.
29
30 * infrun.c (nullify_last_target_wait_ptid): New function.
31
32 * Makefile.in: Add linux-fork.
33 * config/*/linux.mh: Add linux-fork.
34 * NEWS: Mention new functionality.
35
36 2006-01-02 Paul Hilfinger <hilfingr@nile.gnat.com>
37
38 * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
39 Change uses of "illegal" to "invalid".
40
41 2006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
42
43 * ada-exp.y: Considerable reorganization to move functionality
44 from ada-lex.l to here, where it is logically more appropriate.
45 The original reason, however, was to prevent premature name
46 lookups for selector names in record aggregates.
47 (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
48 NAME for all of these.
49 (VAR): New artificial token to clarify precedence rules.
50 (OTHERS): New lexeme.
51 (empty_stoken): New symbol.
52 (%union): Remove ssym, voidval.
53 (%type): Remove <voidval> type declarations.
54 (syntax definitions): Add aggregates.
55 Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
56 Rename some non-terminals to be closer to reference manual usage.
57 Tighten up expression syntax to disallow certain non-Ada
58 constructions such as X and then Y or else Z.
59 (ada_parse): Remove initialization of left_block_context.
60 (write_var_from_name): Remove.
61 (write_var_or_type): New function, containing previous code from
62 defunct write_var_from_name and name_lookup.
63 (block_lookup): New function, moved from ada-lex.l
64 (select_possible_type_sym): New function, factored out of
65 name_lookup, which used to be in ada-lex.l.
66 (find_primitive_type): Ditto.
67 (chop_selector): Ditto.
68 (write_ambiguous_var): New function, factored out of defunct
69 write_var_from_name.
70 (write_selectors): New function.
71 (write_name_assoc): New function.
72 (write_exp_op_with_string): New function.
73
74 * ada-lex.l (processId): Change interface to return stoken.
75 (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
76 (block_lookup, name_lookup): Remove. Functionality moved to
77 ada-exp.y.
78 (state IN_STRING): Remove.
79 (rules): Handle string escapes in processString.
80 Add 'others' token.
81 Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
82 yylval.sval (as simple strings).
83 All name look-ups now handled in ada-exp.y.
84 Introduce "::" (COLONCOLON) token and return as separate token.
85 (processId): Change return convention. Comment.
86 Leave leading "'" in place.
87 (processString): New function.
88 (find_dot_all): Add note to comment.
89 Fix problem that allowed match only at the end.
90
91 * ada-lang.c: Introduce aggregates.
92 (find_struct_field): Add new parameter to count fields skipped, and
93 allow other output parameters to be NULL.
94 (value_tag_from_contents_and_address, ada_value_struct_elt): Use
95 new find_struct_field.
96 (ada_index_struct_field, assign_aggregate, ada_is_array_type)
97 (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
98 (num_component_specs, assign_component, assign_aggregate):
99 (aggregate_assign_from_choices,aggregate_assign_positional)
100 (aggregate_assign_others,add_component_interval):
101 New functions.
102 (ada_evaluate_subexp): Declare.
103 Add aggregate-related operators.
104 (ada_forward_operator_length): Declare.
105 (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
106 Consolidate Ada operators, using ada_forward_operator_length.
107 (ada_search_struct_field): Search in forward order.
108 (ADA_OPERATORS): Add new aggregate operators.
109 (ada_operator_length, ada_op_name, ada_forward_operator_length)
110 (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate
111 operators and OP_NAME.
112 (ada_type_of_array): Use longest_to_int.
113 (value_assign_to_component): New function.
114 (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
115 Add OP_NAME case.
116 (ada_forward_operator_length, ada_dump_subexp_body):
117 Add OP_STRING case.
118
119 * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
120 OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
121
122 2006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
123
124 * ada-lang.c (process_raise_exception_name): Remove extraneous
125 definition from unsubmitted code.
126
127 (is_lower_alphanum): New function.
128 (ada_decode): Add support for decoding protected object subprograms
129 and entries, and of entities declared inside protected object
130 subprograms.
131 Also add missing handling for__{DIGITS}+ suffixes.
132 Allow '$<digits>' as valid overloading suffix.
133 (is_name_suffix): Add handling for protected type entriy suffixes.
134 Also add support for protected type subprogram suffixes, but keep
135 it commented out for now, as there is an ambiguity between these
136 entities and other internally generated entities.
137 Allow '$<digits>' as valid overloading suffix.
138 (is_valid_name_for_wild_match): New function.
139 (wild_match): Add an exra level of verification of the entity name
140 before declaring it a match for the given pattern.
141
142 (ada_type_of_array, ada_evaluate_subexp): Use more proper
143 longest_to_int rather than cast.
144
145 (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
146
147 (ada_coerce_to_simple_array): Call check_size to make sure
148 that the object size is reasonable.
149
150 (ada_value_primitive_packed_val): Use correct location in target
151 buffer for extracting packed record fields that are themselves records.
152
153 (add_defn_to_vec): Do not try to replace a stub type by its full
154 type. Avoids a potential infinite loop.
155
156 (ada_lookup_symbol): Move return incorrectly placed return statement,
157 causing a loop that should be scanning all object files to only
158 scan the first one.
159
160 (ada_tag_name_2): New function.
161 (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
162 use alternative representation.
163
164 (ada_find_renaming_symbol): Strip the function name suffix when
165 computing the XR type name.
166
167 (ada_to_fixed_type): Try determining the tag only if we have the
168 object's address.
169 (to_fixed_array_type): Add comments.
170
171 (ada_check_typedef): Replace expression checking whether the given
172 type is a stub or not by a "call" to TYPE_STUB. Clearer and more
173 consistent.
174
175 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
176 '$' in addition to '.' for runtime auxiliary function name suffixes.
177 See changes to ada_decode above.
178
179 (struct task_control_block): Add field called_task. (This change is
180 to keep synchronized with our local sources; it does not affect the
181 public version yet.)
182
183 * ada-typeprint.c (ada_print_type): Use int_string for printing
184 modulus of modular type.
185
186 (print_range): Trivial editorial comment fix.
187
188 * ada-valprint.c (ada_emit_char): Use normal Ada syntax for
189 double quote in string.
190
191 2006-01-01 Joel Brobecker <brobecker@adacore.com>
192
193 * top.c: Add 2006 to list of copyright years in file header.
194
195 2006-01-01 Joel Brobecker <brobecker@adacore.com>
196
197 * top.c (print_gdb_version): Update copyright year to 2006.
198
199 2006-01-01 Roger Sayle <roger@eyesopen.com>
200 Elena Zannoni <ezannoni@redhat.com>
201
202 PR symtab/1651
203 * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
204 for NULL before assigning this_symtab_psymtab->objfile to objfile.
205 (scan_xcoff_symtab): Initialize next_symbol_text_func.
206 (Committed by Jim Blandy)
207
208 For older changes see ChangeLog-2005.
209 \f
210 Local Variables:
211 mode: change-log
212 left-margin: 8
213 fill-column: 74
214 version-control: never
215 End:
This page took 0.040019 seconds and 5 git commands to generate.