1 2006-01-15 Mark Kettenis <kettenis@gnu.org>
3 * osabi.c (generic_elf_osabi_sniffer): Fix typo in previous
6 * alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
7 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
8 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
9 * config/alpha/nm-nbsd.h: Remove file.
10 * config/alpha/nm-fbsd.h: Remove file
11 * config/alpha/nbsd.mh (NAT_FILE): Remove.
12 * config/alpha/fbsd.mh (NAT_FILE): Remove.
14 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
16 * macroexp.c (expand): Initialize argc.
17 * stabsread.c (read_type): Handle errors from read_args.
18 (read_args): Return NULL for errors.
20 2006-01-15 Mark Kettenis <kettenis@gnu.org>
22 * osabi.c (generic_elf_osabi_sniffer): Use memcmp instead of
23 strcmp to compare string to a byte buffer.
25 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
27 * printcmd.c (output_command): Always initialize fmt.size.
28 (printf_command): Use gdb_byte.
29 * symfile.c (separate_debug_file_exists): Use gdb_byte.
30 (load_section_callback, read_target_long_array): Likewise.
31 (simple_read_overlay_table, simple_read_overlay_region_table)
32 (simple_overlay_update_1): Correct calls to read_target_long_array.
33 * valprint.c (partial_memory_read): Change MYADDR to a gdb_byte *.
34 Also change local pointers.
35 (val_print_string): Use gdb_byte.
37 2006-01-15 Mark Kettenis <kettenis@gnu.org>
39 * alphafbsd-tdep.c: Include "solib-svr4.h".
40 (alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
41 svr4_lp64_fetch_link_map_offsets.
42 * Makefile.in (alphafbsd-tdep.o): Update dependencies.
43 * config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
45 * config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
47 * config/alpha/nm-fbsd.h: Don't include "solib.h".
49 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
51 * source.c (_initialize_source): Use add_setshow_integer_cmd.
53 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
55 * linux-fork.c (delete_fork_command, detach_fork_command): Use
58 2006-01-15 Mark Kettenis <kettenis@gnu.org>
60 * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
62 (arm_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
63 svr4_ilp32_fetch_link_map_offsets.
64 * cris-tdep.c (cris_linux_svr4_fetch_link_map_offsets): Remove
66 (cris_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
67 svr4_ilp32_fetch_link_map_offsets.
68 * mips-linux-tdep.c (mips_linux_svr4_fetch_link_map_offsets)
69 (mips64_linux_svr4_fetch_link_map_offsets): Remove functions.
70 (mips_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
71 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
73 * nbsd-tdep.c (nbsd_ilp32_solib_svr4_fetch_link_map_offsets):
74 Simply call svr4_ilp32_fetch_link_map_offsets.
75 (nbsd_lp64_solib_svr4_fetch_link_map_offsets): Simply call
76 svr4_lp64_fetch_link_map_offsets.
77 * ppc-linux-tdep.c (ppc_linux_svr4_fetch_link_map_offsets): Remove
79 (ppc_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
80 svr4_ilp32_fetch_link_map_offsets.
81 * s390-tdep.c (s390_svr4_fetch_link_map_offsets)
82 (s390x_svr4_fetch_link_map_offsets): Remove functions.
83 (s390_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
84 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
87 2006-01-15 Mark Kettenis <kettenis@gnu.org>
89 * arm-tdep.c (arm_return_value): Change type of readbuf and
90 writebuf arguments to `gdb_byte *'.
92 * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
93 * Makefile.in (s390-tdep.o): Update dependencies.
95 2006-01-14 Mark Kettenis <kettenis@gnu.org>
97 * sol2-tdep.h. sol2-tdep.c: New files.
98 * amd64-sol2-tdep.c: Include "sol2-tdep.h".
99 (amd64_sol2_init_abi): Set skip_solib_resolver.
100 * i386-sol2-tdep.c: Include "sol2-tdep.h".
101 (i386_sol2_init_abi): Set skip_solib_resolver.
102 * sparc-sol2-tdep.c: Include "sol2-tdep.h".
103 (sparc32_sol2_init_abi): Set skip_solib_resolver.
104 * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
105 (sparc64_sol2_init_abi): Set skip_solib_resolver.
106 * Makefile.in (sol2_tdep_h): New variable.
107 (ALLDEPFILES): Add sol2-tdep.c.
108 (sol2-tdep.o): New target.
109 (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
110 (sparc64-sol2-tdep.o): Update dependencies
111 * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
112 * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
113 * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
114 * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
116 * hppa-linux-tdep.c: Fix copyright indentation.
118 * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
119 * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
120 (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
122 (hppabsd_fetch_registers, hppabsd_store_registers): Handle
123 floating-point registers.
125 2006-01-13 Mark Mitchell <mark@codesourcery.com>
127 * event-loop.c (gdb_select): Detect file descriptors that have
130 2006-01-13 Mark Kettenis <kettenis@gnu.org>
132 * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
133 and long_double_format accordingly.
135 2006-01-12 Paul N. Hilfinger <hilfinger@adacore.com>
137 * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
138 translation problems.
139 * ada-lang.c (ada_value_struct_elt): Change interface and handling
140 of errors to avoid translation problem (and less than optimal error
142 (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
143 Use new interface to ada_value_struct_elt.
144 * ada_lang.h (ada_value_struct_elt): Update declaration to new
147 * ChangeLog: remove reference to ada-tasks.c from entry of
150 2006-01-11 Mark Kettenis <kettenis@gnu.org>
152 * remote.c (get_memory_packet_size, set_thread)
153 (remote_unpack_thread_info_response, remote_get_threadinfo)
154 (parse_threadlist_response, remote_get_threadlist)
155 (remote_current_thread, remote_threads_info)
156 (remote_threads_extra_info, extended_remote_restart, get_offsets)
157 (remote_check_symbols, remote_open_1, remote_detach)
158 (remote_async_wait, remote_fetch_registers)
159 (remote_store_registers, check_binary_download, putpkt_binary)
160 (remote_insert_breakpoint, remote_insert_watchpoint)
161 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
162 (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd)
163 (packet_command): Remove redundant parenthesis.
165 2006-01-10 Mark Kettenis <kettenis@gnu.org>
167 * corefile.c (read_memory_integer, read_memory_unsigned_integer)
168 (read_memory_typed_address, write_memory)
169 (write_memory_unsigned_integer, write_memory_signed_integer): Use
170 gdb_byte where appropriate.
172 * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
175 * target.h (target_read_memory_partial, target_write_memory_partial):
176 Change second argument to 'gdb_byte *'.
177 * target.c (target_xfer_memory_partial): Change third argument to
179 (target_read_memory_partial, target_write_memory_partial): Change
180 second argument to 'gdb_byte *'.
182 * linespec.c (decode_objc): Make i1 and i2 unsigned.
183 (find_method): Set values.sals to NULL.
185 2006-01-09 Mark Kettenis <kettenis@gnu.org>
187 * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
190 2006-01-07 Paul N. Hilfinger <hilfinger@adacore.com>
192 * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
193 * ada-lang.c: I18n markup.
194 Editorial: change "can not" => "cannot" throughout.
196 2006-01-07 Mark Kettenis <kettenis@gnu.org>
198 * Makefile.in: Sort dependencies.
200 2006-01-07 Eli Zaretskii <eliz@gnu.org>
202 * top.c (control_level): Remove unused variable.
204 2006-01-06 Fred Fish <fnf@specifix.com>
206 * objfiles.c (source.h): Include.
207 (free_objfile): Update comment about clear_symtab_users().
208 (free_objfile): Check all symtabs of objfile being freed and if
209 one of them is the current source symtab, call
210 clear_current_source_symtab_and_line().
212 2006-01-04 Michael Snyder <msnyder@redhat.com>
214 Checkpoint/Restart for Linux.
215 * linux-nat.c: Add support for debugging multiple forks.
216 Add #include for linux-fork.h (interface spec).
217 (super_mourn_inferior): New function pointer.
218 (child_mourn_inferior): New function / target method.
219 (linux_target): Claim to_mourn_inferior method pointer.
220 (child_follow_fork): Call interface to linux-fork, conditionally
221 add new fork processes to list of debugged processes.
222 (kill_inferior): Use interface to linux-fork to kill
225 * linux-fork.h: New file.
226 * linux-fork.c: New file. Support for debugging multiple forks
227 of the same program. Support for checkpoint and restart commands.
229 * infrun.c (nullify_last_target_wait_ptid): New function.
231 * Makefile.in: Add linux-fork.
232 * config/*/linux.mh: Add linux-fork.
233 * NEWS: Mention new functionality.
235 2006-01-02 Paul Hilfinger <hilfingr@nile.gnat.com>
237 * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
238 Change uses of "illegal" to "invalid".
240 2006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
242 * ada-exp.y: Considerable reorganization to move functionality
243 from ada-lex.l to here, where it is logically more appropriate.
244 The original reason, however, was to prevent premature name
245 lookups for selector names in record aggregates.
246 (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
247 NAME for all of these.
248 (VAR): New artificial token to clarify precedence rules.
249 (OTHERS): New lexeme.
250 (empty_stoken): New symbol.
251 (%union): Remove ssym, voidval.
252 (%type): Remove <voidval> type declarations.
253 (syntax definitions): Add aggregates.
254 Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
255 Rename some non-terminals to be closer to reference manual usage.
256 Tighten up expression syntax to disallow certain non-Ada
257 constructions such as X and then Y or else Z.
258 (ada_parse): Remove initialization of left_block_context.
259 (write_var_from_name): Remove.
260 (write_var_or_type): New function, containing previous code from
261 defunct write_var_from_name and name_lookup.
262 (block_lookup): New function, moved from ada-lex.l
263 (select_possible_type_sym): New function, factored out of
264 name_lookup, which used to be in ada-lex.l.
265 (find_primitive_type): Ditto.
266 (chop_selector): Ditto.
267 (write_ambiguous_var): New function, factored out of defunct
269 (write_selectors): New function.
270 (write_name_assoc): New function.
271 (write_exp_op_with_string): New function.
273 * ada-lex.l (processId): Change interface to return stoken.
274 (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
275 (block_lookup, name_lookup): Remove. Functionality moved to
277 (state IN_STRING): Remove.
278 (rules): Handle string escapes in processString.
280 Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
281 yylval.sval (as simple strings).
282 All name look-ups now handled in ada-exp.y.
283 Introduce "::" (COLONCOLON) token and return as separate token.
284 (processId): Change return convention. Comment.
285 Leave leading "'" in place.
286 (processString): New function.
287 (find_dot_all): Add note to comment.
288 Fix problem that allowed match only at the end.
290 * ada-lang.c: Introduce aggregates.
291 (find_struct_field): Add new parameter to count fields skipped, and
292 allow other output parameters to be NULL.
293 (value_tag_from_contents_and_address, ada_value_struct_elt): Use
294 new find_struct_field.
295 (ada_index_struct_field, assign_aggregate, ada_is_array_type)
296 (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
297 (num_component_specs, assign_component, assign_aggregate):
298 (aggregate_assign_from_choices,aggregate_assign_positional)
299 (aggregate_assign_others,add_component_interval):
301 (ada_evaluate_subexp): Declare.
302 Add aggregate-related operators.
303 (ada_forward_operator_length): Declare.
304 (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
305 Consolidate Ada operators, using ada_forward_operator_length.
306 (ada_search_struct_field): Search in forward order.
307 (ADA_OPERATORS): Add new aggregate operators.
308 (ada_operator_length, ada_op_name, ada_forward_operator_length)
309 (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate
310 operators and OP_NAME.
311 (ada_type_of_array): Use longest_to_int.
312 (value_assign_to_component): New function.
313 (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
315 (ada_forward_operator_length, ada_dump_subexp_body):
318 * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
319 OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
321 2006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
323 * ada-lang.c (process_raise_exception_name): Remove extraneous
324 definition from unsubmitted code.
326 (is_lower_alphanum): New function.
327 (ada_decode): Add support for decoding protected object subprograms
328 and entries, and of entities declared inside protected object
330 Also add missing handling for__{DIGITS}+ suffixes.
331 Allow '$<digits>' as valid overloading suffix.
332 (is_name_suffix): Add handling for protected type entriy suffixes.
333 Also add support for protected type subprogram suffixes, but keep
334 it commented out for now, as there is an ambiguity between these
335 entities and other internally generated entities.
336 Allow '$<digits>' as valid overloading suffix.
337 (is_valid_name_for_wild_match): New function.
338 (wild_match): Add an exra level of verification of the entity name
339 before declaring it a match for the given pattern.
341 (ada_type_of_array, ada_evaluate_subexp): Use more proper
342 longest_to_int rather than cast.
344 (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
346 (ada_coerce_to_simple_array): Call check_size to make sure
347 that the object size is reasonable.
349 (ada_value_primitive_packed_val): Use correct location in target
350 buffer for extracting packed record fields that are themselves records.
352 (add_defn_to_vec): Do not try to replace a stub type by its full
353 type. Avoids a potential infinite loop.
355 (ada_lookup_symbol): Move return incorrectly placed return statement,
356 causing a loop that should be scanning all object files to only
359 (ada_tag_name_2): New function.
360 (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
361 use alternative representation.
363 (ada_find_renaming_symbol): Strip the function name suffix when
364 computing the XR type name.
366 (ada_to_fixed_type): Try determining the tag only if we have the
368 (to_fixed_array_type): Add comments.
370 (ada_check_typedef): Replace expression checking whether the given
371 type is a stub or not by a "call" to TYPE_STUB. Clearer and more
374 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
375 '$' in addition to '.' for runtime auxiliary function name suffixes.
376 See changes to ada_decode above.
378 (struct task_control_block): Add field called_task. (This change is
379 to keep synchronized with our local sources; it does not affect the
382 * ada-typeprint.c (ada_print_type): Use int_string for printing
383 modulus of modular type.
385 (print_range): Trivial editorial comment fix.
387 * ada-valprint.c (ada_emit_char): Use normal Ada syntax for
388 double quote in string.
390 2006-01-01 Joel Brobecker <brobecker@adacore.com>
392 * top.c: Add 2006 to list of copyright years in file header.
394 2006-01-01 Joel Brobecker <brobecker@adacore.com>
396 * top.c (print_gdb_version): Update copyright year to 2006.
398 2006-01-01 Roger Sayle <roger@eyesopen.com>
399 Elena Zannoni <ezannoni@redhat.com>
402 * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
403 for NULL before assigning this_symtab_psymtab->objfile to objfile.
404 (scan_xcoff_symtab): Initialize next_symbol_text_func.
405 (Committed by Jim Blandy)
407 For older changes see ChangeLog-2005.
413 version-control: never