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