1 2006-01-15 Mark Kettenis <kettenis@gnu.org>
3 * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
4 * Makefile.in (s390-tdep.o): Update dependencies.
6 2006-01-14 Mark Kettenis <kettenis@gnu.org>
8 * sol2-tdep.h. sol2-tdep.c: New files.
9 * amd64-sol2-tdep.c: Include "sol2-tdep.h".
10 (amd64_sol2_init_abi): Set skip_solib_resolver.
11 * i386-sol2-tdep.c: Include "sol2-tdep.h".
12 (i386_sol2_init_abi): Set skip_solib_resolver.
13 * sparc-sol2-tdep.c: Include "sol2-tdep.h".
14 (sparc32_sol2_init_abi): Set skip_solib_resolver.
15 * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
16 (sparc64_sol2_init_abi): Set skip_solib_resolver.
17 * Makefile.in (sol2_tdep_h): New variable.
18 (ALLDEPFILES): Add sol2-tdep.c.
19 (sol2-tdep.o): New target.
20 (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
21 (sparc64-sol2-tdep.o): Update dependencies
22 * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
23 * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
24 * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
25 * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
27 * hppa-linux-tdep.c: Fix copyright indentation.
29 * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
30 * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
31 (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
33 (hppabsd_fetch_registers, hppabsd_store_registers): Handle
34 floating-point registers.
36 2006-01-13 Mark Mitchell <mark@codesourcery.com>
38 * event-loop.c (gdb_select): Detect file descriptors that have
41 2006-01-13 Mark Kettenis <kettenis@gnu.org>
43 * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
44 and long_double_format accordingly.
46 2006-01-12 Paul N. Hilfinger <hilfinger@adacore.com>
48 * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
50 * ada-lang.c (ada_value_struct_elt): Change interface and handling
51 of errors to avoid translation problem (and less than optimal error
53 (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
54 Use new interface to ada_value_struct_elt.
55 * ada_lang.h (ada_value_struct_elt): Update declaration to new
58 * ChangeLog: remove reference to ada-tasks.c from entry of
61 2006-01-11 Mark Kettenis <kettenis@gnu.org>
63 * remote.c (get_memory_packet_size, set_thread)
64 (remote_unpack_thread_info_response, remote_get_threadinfo)
65 (parse_threadlist_response, remote_get_threadlist)
66 (remote_current_thread, remote_threads_info)
67 (remote_threads_extra_info, extended_remote_restart, get_offsets)
68 (remote_check_symbols, remote_open_1, remote_detach)
69 (remote_async_wait, remote_fetch_registers)
70 (remote_store_registers, check_binary_download, putpkt_binary)
71 (remote_insert_breakpoint, remote_insert_watchpoint)
72 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
73 (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd)
74 (packet_command): Remove redundant parenthesis.
76 2006-01-10 Mark Kettenis <kettenis@gnu.org>
78 * corefile.c (read_memory_integer, read_memory_unsigned_integer)
79 (read_memory_typed_address, write_memory)
80 (write_memory_unsigned_integer, write_memory_signed_integer): Use
81 gdb_byte where appropriate.
83 * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
86 * target.h (target_read_memory_partial, target_write_memory_partial):
87 Change second argument to 'gdb_byte *'.
88 * target.c (target_xfer_memory_partial): Change third argument to
90 (target_read_memory_partial, target_write_memory_partial): Change
91 second argument to 'gdb_byte *'.
93 * linespec.c (decode_objc): Make i1 and i2 unsigned.
94 (find_method): Set values.sals to NULL.
96 2006-01-09 Mark Kettenis <kettenis@gnu.org>
98 * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
101 2006-01-07 Paul N. Hilfinger <hilfinger@adacore.com>
103 * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
104 * ada-lang.c: I18n markup.
105 Editorial: change "can not" => "cannot" throughout.
107 2006-01-07 Mark Kettenis <kettenis@gnu.org>
109 * Makefile.in: Sort dependencies.
111 2006-01-07 Eli Zaretskii <eliz@gnu.org>
113 * top.c (control_level): Remove unused variable.
115 2006-01-06 Fred Fish <fnf@specifix.com>
117 * objfiles.c (source.h): Include.
118 (free_objfile): Update comment about clear_symtab_users().
119 (free_objfile): Check all symtabs of objfile being freed and if
120 one of them is the current source symtab, call
121 clear_current_source_symtab_and_line().
123 2006-01-04 Michael Snyder <msnyder@redhat.com>
125 Checkpoint/Restart for Linux.
126 * linux-nat.c: Add support for debugging multiple forks.
127 Add #include for linux-fork.h (interface spec).
128 (super_mourn_inferior): New function pointer.
129 (child_mourn_inferior): New function / target method.
130 (linux_target): Claim to_mourn_inferior method pointer.
131 (child_follow_fork): Call interface to linux-fork, conditionally
132 add new fork processes to list of debugged processes.
133 (kill_inferior): Use interface to linux-fork to kill
136 * linux-fork.h: New file.
137 * linux-fork.c: New file. Support for debugging multiple forks
138 of the same program. Support for checkpoint and restart commands.
140 * infrun.c (nullify_last_target_wait_ptid): New function.
142 * Makefile.in: Add linux-fork.
143 * config/*/linux.mh: Add linux-fork.
144 * NEWS: Mention new functionality.
146 2006-01-02 Paul Hilfinger <hilfingr@nile.gnat.com>
148 * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
149 Change uses of "illegal" to "invalid".
151 2006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
153 * ada-exp.y: Considerable reorganization to move functionality
154 from ada-lex.l to here, where it is logically more appropriate.
155 The original reason, however, was to prevent premature name
156 lookups for selector names in record aggregates.
157 (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
158 NAME for all of these.
159 (VAR): New artificial token to clarify precedence rules.
160 (OTHERS): New lexeme.
161 (empty_stoken): New symbol.
162 (%union): Remove ssym, voidval.
163 (%type): Remove <voidval> type declarations.
164 (syntax definitions): Add aggregates.
165 Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
166 Rename some non-terminals to be closer to reference manual usage.
167 Tighten up expression syntax to disallow certain non-Ada
168 constructions such as X and then Y or else Z.
169 (ada_parse): Remove initialization of left_block_context.
170 (write_var_from_name): Remove.
171 (write_var_or_type): New function, containing previous code from
172 defunct write_var_from_name and name_lookup.
173 (block_lookup): New function, moved from ada-lex.l
174 (select_possible_type_sym): New function, factored out of
175 name_lookup, which used to be in ada-lex.l.
176 (find_primitive_type): Ditto.
177 (chop_selector): Ditto.
178 (write_ambiguous_var): New function, factored out of defunct
180 (write_selectors): New function.
181 (write_name_assoc): New function.
182 (write_exp_op_with_string): New function.
184 * ada-lex.l (processId): Change interface to return stoken.
185 (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
186 (block_lookup, name_lookup): Remove. Functionality moved to
188 (state IN_STRING): Remove.
189 (rules): Handle string escapes in processString.
191 Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
192 yylval.sval (as simple strings).
193 All name look-ups now handled in ada-exp.y.
194 Introduce "::" (COLONCOLON) token and return as separate token.
195 (processId): Change return convention. Comment.
196 Leave leading "'" in place.
197 (processString): New function.
198 (find_dot_all): Add note to comment.
199 Fix problem that allowed match only at the end.
201 * ada-lang.c: Introduce aggregates.
202 (find_struct_field): Add new parameter to count fields skipped, and
203 allow other output parameters to be NULL.
204 (value_tag_from_contents_and_address, ada_value_struct_elt): Use
205 new find_struct_field.
206 (ada_index_struct_field, assign_aggregate, ada_is_array_type)
207 (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
208 (num_component_specs, assign_component, assign_aggregate):
209 (aggregate_assign_from_choices,aggregate_assign_positional)
210 (aggregate_assign_others,add_component_interval):
212 (ada_evaluate_subexp): Declare.
213 Add aggregate-related operators.
214 (ada_forward_operator_length): Declare.
215 (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
216 Consolidate Ada operators, using ada_forward_operator_length.
217 (ada_search_struct_field): Search in forward order.
218 (ADA_OPERATORS): Add new aggregate operators.
219 (ada_operator_length, ada_op_name, ada_forward_operator_length)
220 (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate
221 operators and OP_NAME.
222 (ada_type_of_array): Use longest_to_int.
223 (value_assign_to_component): New function.
224 (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
226 (ada_forward_operator_length, ada_dump_subexp_body):
229 * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
230 OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
232 2006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
234 * ada-lang.c (process_raise_exception_name): Remove extraneous
235 definition from unsubmitted code.
237 (is_lower_alphanum): New function.
238 (ada_decode): Add support for decoding protected object subprograms
239 and entries, and of entities declared inside protected object
241 Also add missing handling for__{DIGITS}+ suffixes.
242 Allow '$<digits>' as valid overloading suffix.
243 (is_name_suffix): Add handling for protected type entriy suffixes.
244 Also add support for protected type subprogram suffixes, but keep
245 it commented out for now, as there is an ambiguity between these
246 entities and other internally generated entities.
247 Allow '$<digits>' as valid overloading suffix.
248 (is_valid_name_for_wild_match): New function.
249 (wild_match): Add an exra level of verification of the entity name
250 before declaring it a match for the given pattern.
252 (ada_type_of_array, ada_evaluate_subexp): Use more proper
253 longest_to_int rather than cast.
255 (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
257 (ada_coerce_to_simple_array): Call check_size to make sure
258 that the object size is reasonable.
260 (ada_value_primitive_packed_val): Use correct location in target
261 buffer for extracting packed record fields that are themselves records.
263 (add_defn_to_vec): Do not try to replace a stub type by its full
264 type. Avoids a potential infinite loop.
266 (ada_lookup_symbol): Move return incorrectly placed return statement,
267 causing a loop that should be scanning all object files to only
270 (ada_tag_name_2): New function.
271 (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
272 use alternative representation.
274 (ada_find_renaming_symbol): Strip the function name suffix when
275 computing the XR type name.
277 (ada_to_fixed_type): Try determining the tag only if we have the
279 (to_fixed_array_type): Add comments.
281 (ada_check_typedef): Replace expression checking whether the given
282 type is a stub or not by a "call" to TYPE_STUB. Clearer and more
285 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
286 '$' in addition to '.' for runtime auxiliary function name suffixes.
287 See changes to ada_decode above.
289 (struct task_control_block): Add field called_task. (This change is
290 to keep synchronized with our local sources; it does not affect the
293 * ada-typeprint.c (ada_print_type): Use int_string for printing
294 modulus of modular type.
296 (print_range): Trivial editorial comment fix.
298 * ada-valprint.c (ada_emit_char): Use normal Ada syntax for
299 double quote in string.
301 2006-01-01 Joel Brobecker <brobecker@adacore.com>
303 * top.c: Add 2006 to list of copyright years in file header.
305 2006-01-01 Joel Brobecker <brobecker@adacore.com>
307 * top.c (print_gdb_version): Update copyright year to 2006.
309 2006-01-01 Roger Sayle <roger@eyesopen.com>
310 Elena Zannoni <ezannoni@redhat.com>
313 * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
314 for NULL before assigning this_symtab_psymtab->objfile to objfile.
315 (scan_xcoff_symtab): Initialize next_symbol_text_func.
316 (Committed by Jim Blandy)
318 For older changes see ChangeLog-2005.
324 version-control: never