1 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
3 * dwarf2read.c (peek_die_abbrev, read_address, read_initial_length)
4 (read_offset): Change BYTES_READ argument to unsigned int.
5 (dwarf2_build_psymtabs_easy, read_comp_unit_head)
6 (create_all_comp_units, dwarf2_get_pc_bounds)
7 (dwarf_decode_line_header, var_decode_location)
8 (dwarf_decode_macros): Change local BYTES_READ variables to
10 (read_indirect_string): Remove obsolete cast.
12 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
14 * remote-fileio.c (remote_fileio_return_success): Take a gdb_byte
16 (remote_fileio_func_open, remote_fileio_func_rename)
17 (remote_fileio_func_unlink, remote_fileio_func_stat)
18 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
19 (remote_fileio_func_system): Cast the arguments to
20 remote_read_bytes and remote_write_bytes.
21 (remote_fileio_func_read, remote_fileio_func_write): Use a
23 * remote.h (remote_read_bytes, remote_write_bytes): Update
25 * remote.c (hex2bin, bin2hex): Use gdb_byte for the BIN argument.
26 (threadref_to_int): Replace bogus char * cast.
27 (remote_unpack_thread_info_response): Use int for tag.
28 (remote_threads_extra_info, remote_check_symbols): Cast string
30 (remote_wait): Use a char buffer for packets and a gdb_byte
32 (remote_async_wait): Likewise.
33 (remote_prepare_to_store, store_register_using_P)
34 (remote_store_registers): Use gdb_byte buffers.
35 (remote_write_bytes, remote_read_bytes): Use a gdb_byte pointer
36 for MYADDR and char buffers for strings.
37 (remote_xfer_partial): Add casts for string operations on READBUF.
38 (remote_rcmd): Cast strings passed to bin2hex.
40 2006-01-16 Mark Mitchell <mark@codesourcery.com>
42 * aclocal.m4: Regenerate.
44 2006-01-16 Nathan Sidwell <nathan@codesourcery.com>
46 * mt-tdep.c (enum mt_gdb_regnums): Add MT_COPRO_PSEUDOREG_ARRAY,
47 MT_COPRO_PSEUDOREG_DIM_1, MT_COPRO_PSEUDOREG_DIM_2,
48 MT_COPRO_PSEUDOREG_REGS members. Adjust MT_NUM_PSEUDO_REGS.
49 (mt_register_name): Lazily synthesize name for coprocessor pseudo
51 (mt_copro_register_type): New. Broken out of ...
52 (mt_register_type): ... here. Use it. Deal with coprocessor
54 (mt_select_coprocessor): New.
55 (mt_pseudo_register_read, mt_pseudo_register_write): Deal with
56 coprocessor pseudo array.
58 2006-01-16 Andrew Stubbs <andrew.stubbs@st.com>
60 * breakpoint.c (insert_breakpoints): Check that a thread exists
61 before inserting thread specific breakpoints.
63 2006-01-15 Mark Kettenis <kettenis@gnu.org>
65 * osabi.c (generic_elf_osabi_sniffer): Fix typo in previous
68 * alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
69 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
70 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
71 * config/alpha/nm-nbsd.h: Remove file.
72 * config/alpha/nm-fbsd.h: Remove file
73 * config/alpha/nbsd.mh (NAT_FILE): Remove.
74 * config/alpha/fbsd.mh (NAT_FILE): Remove.
76 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
78 * macroexp.c (expand): Initialize argc.
79 * stabsread.c (read_type): Handle errors from read_args.
80 (read_args): Return NULL for errors.
82 2006-01-15 Mark Kettenis <kettenis@gnu.org>
84 * osabi.c (generic_elf_osabi_sniffer): Use memcmp instead of
85 strcmp to compare string to a byte buffer.
87 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
89 * printcmd.c (output_command): Always initialize fmt.size.
90 (printf_command): Use gdb_byte.
91 * symfile.c (separate_debug_file_exists): Use gdb_byte.
92 (load_section_callback, read_target_long_array): Likewise.
93 (simple_read_overlay_table, simple_read_overlay_region_table)
94 (simple_overlay_update_1): Correct calls to read_target_long_array.
95 * valprint.c (partial_memory_read): Change MYADDR to a gdb_byte *.
96 Also change local pointers.
97 (val_print_string): Use gdb_byte.
99 2006-01-15 Mark Kettenis <kettenis@gnu.org>
101 * alphafbsd-tdep.c: Include "solib-svr4.h".
102 (alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
103 svr4_lp64_fetch_link_map_offsets.
104 * Makefile.in (alphafbsd-tdep.o): Update dependencies.
105 * config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
107 * config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
109 * config/alpha/nm-fbsd.h: Don't include "solib.h".
111 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
113 * source.c (_initialize_source): Use add_setshow_integer_cmd.
115 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
117 * linux-fork.c (delete_fork_command, detach_fork_command): Use
120 2006-01-15 Mark Kettenis <kettenis@gnu.org>
122 * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
124 (arm_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
125 svr4_ilp32_fetch_link_map_offsets.
126 * cris-tdep.c (cris_linux_svr4_fetch_link_map_offsets): Remove
128 (cris_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
129 svr4_ilp32_fetch_link_map_offsets.
130 * mips-linux-tdep.c (mips_linux_svr4_fetch_link_map_offsets)
131 (mips64_linux_svr4_fetch_link_map_offsets): Remove functions.
132 (mips_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
133 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
135 * nbsd-tdep.c (nbsd_ilp32_solib_svr4_fetch_link_map_offsets):
136 Simply call svr4_ilp32_fetch_link_map_offsets.
137 (nbsd_lp64_solib_svr4_fetch_link_map_offsets): Simply call
138 svr4_lp64_fetch_link_map_offsets.
139 * ppc-linux-tdep.c (ppc_linux_svr4_fetch_link_map_offsets): Remove
141 (ppc_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
142 svr4_ilp32_fetch_link_map_offsets.
143 * s390-tdep.c (s390_svr4_fetch_link_map_offsets)
144 (s390x_svr4_fetch_link_map_offsets): Remove functions.
145 (s390_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
146 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
149 2006-01-15 Mark Kettenis <kettenis@gnu.org>
151 * arm-tdep.c (arm_return_value): Change type of readbuf and
152 writebuf arguments to `gdb_byte *'.
154 * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
155 * Makefile.in (s390-tdep.o): Update dependencies.
157 2006-01-14 Mark Kettenis <kettenis@gnu.org>
159 * sol2-tdep.h. sol2-tdep.c: New files.
160 * amd64-sol2-tdep.c: Include "sol2-tdep.h".
161 (amd64_sol2_init_abi): Set skip_solib_resolver.
162 * i386-sol2-tdep.c: Include "sol2-tdep.h".
163 (i386_sol2_init_abi): Set skip_solib_resolver.
164 * sparc-sol2-tdep.c: Include "sol2-tdep.h".
165 (sparc32_sol2_init_abi): Set skip_solib_resolver.
166 * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
167 (sparc64_sol2_init_abi): Set skip_solib_resolver.
168 * Makefile.in (sol2_tdep_h): New variable.
169 (ALLDEPFILES): Add sol2-tdep.c.
170 (sol2-tdep.o): New target.
171 (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
172 (sparc64-sol2-tdep.o): Update dependencies
173 * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
174 * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
175 * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
176 * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
178 * hppa-linux-tdep.c: Fix copyright indentation.
180 * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
181 * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
182 (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
184 (hppabsd_fetch_registers, hppabsd_store_registers): Handle
185 floating-point registers.
187 2006-01-13 Mark Mitchell <mark@codesourcery.com>
189 * event-loop.c (gdb_select): Detect file descriptors that have
192 2006-01-13 Mark Kettenis <kettenis@gnu.org>
194 * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
195 and long_double_format accordingly.
197 2006-01-12 Paul N. Hilfinger <hilfinger@adacore.com>
199 * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
200 translation problems.
201 * ada-lang.c (ada_value_struct_elt): Change interface and handling
202 of errors to avoid translation problem (and less than optimal error
204 (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
205 Use new interface to ada_value_struct_elt.
206 * ada_lang.h (ada_value_struct_elt): Update declaration to new
209 * ChangeLog: remove reference to ada-tasks.c from entry of
212 2006-01-11 Mark Kettenis <kettenis@gnu.org>
214 * remote.c (get_memory_packet_size, set_thread)
215 (remote_unpack_thread_info_response, remote_get_threadinfo)
216 (parse_threadlist_response, remote_get_threadlist)
217 (remote_current_thread, remote_threads_info)
218 (remote_threads_extra_info, extended_remote_restart, get_offsets)
219 (remote_check_symbols, remote_open_1, remote_detach)
220 (remote_async_wait, remote_fetch_registers)
221 (remote_store_registers, check_binary_download, putpkt_binary)
222 (remote_insert_breakpoint, remote_insert_watchpoint)
223 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
224 (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd)
225 (packet_command): Remove redundant parenthesis.
227 2006-01-10 Mark Kettenis <kettenis@gnu.org>
229 * corefile.c (read_memory_integer, read_memory_unsigned_integer)
230 (read_memory_typed_address, write_memory)
231 (write_memory_unsigned_integer, write_memory_signed_integer): Use
232 gdb_byte where appropriate.
234 * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
237 * target.h (target_read_memory_partial, target_write_memory_partial):
238 Change second argument to 'gdb_byte *'.
239 * target.c (target_xfer_memory_partial): Change third argument to
241 (target_read_memory_partial, target_write_memory_partial): Change
242 second argument to 'gdb_byte *'.
244 * linespec.c (decode_objc): Make i1 and i2 unsigned.
245 (find_method): Set values.sals to NULL.
247 2006-01-09 Mark Kettenis <kettenis@gnu.org>
249 * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
252 2006-01-07 Paul N. Hilfinger <hilfinger@adacore.com>
254 * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
255 * ada-lang.c: I18n markup.
256 Editorial: change "can not" => "cannot" throughout.
258 2006-01-07 Mark Kettenis <kettenis@gnu.org>
260 * Makefile.in: Sort dependencies.
262 2006-01-07 Eli Zaretskii <eliz@gnu.org>
264 * top.c (control_level): Remove unused variable.
266 2006-01-06 Fred Fish <fnf@specifix.com>
268 * objfiles.c (source.h): Include.
269 (free_objfile): Update comment about clear_symtab_users().
270 (free_objfile): Check all symtabs of objfile being freed and if
271 one of them is the current source symtab, call
272 clear_current_source_symtab_and_line().
274 2006-01-04 Michael Snyder <msnyder@redhat.com>
276 Checkpoint/Restart for Linux.
277 * linux-nat.c: Add support for debugging multiple forks.
278 Add #include for linux-fork.h (interface spec).
279 (super_mourn_inferior): New function pointer.
280 (child_mourn_inferior): New function / target method.
281 (linux_target): Claim to_mourn_inferior method pointer.
282 (child_follow_fork): Call interface to linux-fork, conditionally
283 add new fork processes to list of debugged processes.
284 (kill_inferior): Use interface to linux-fork to kill
287 * linux-fork.h: New file.
288 * linux-fork.c: New file. Support for debugging multiple forks
289 of the same program. Support for checkpoint and restart commands.
291 * infrun.c (nullify_last_target_wait_ptid): New function.
293 * Makefile.in: Add linux-fork.
294 * config/*/linux.mh: Add linux-fork.
295 * NEWS: Mention new functionality.
297 2006-01-02 Paul Hilfinger <hilfingr@nile.gnat.com>
299 * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
300 Change uses of "illegal" to "invalid".
302 2006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
304 * ada-exp.y: Considerable reorganization to move functionality
305 from ada-lex.l to here, where it is logically more appropriate.
306 The original reason, however, was to prevent premature name
307 lookups for selector names in record aggregates.
308 (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
309 NAME for all of these.
310 (VAR): New artificial token to clarify precedence rules.
311 (OTHERS): New lexeme.
312 (empty_stoken): New symbol.
313 (%union): Remove ssym, voidval.
314 (%type): Remove <voidval> type declarations.
315 (syntax definitions): Add aggregates.
316 Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
317 Rename some non-terminals to be closer to reference manual usage.
318 Tighten up expression syntax to disallow certain non-Ada
319 constructions such as X and then Y or else Z.
320 (ada_parse): Remove initialization of left_block_context.
321 (write_var_from_name): Remove.
322 (write_var_or_type): New function, containing previous code from
323 defunct write_var_from_name and name_lookup.
324 (block_lookup): New function, moved from ada-lex.l
325 (select_possible_type_sym): New function, factored out of
326 name_lookup, which used to be in ada-lex.l.
327 (find_primitive_type): Ditto.
328 (chop_selector): Ditto.
329 (write_ambiguous_var): New function, factored out of defunct
331 (write_selectors): New function.
332 (write_name_assoc): New function.
333 (write_exp_op_with_string): New function.
335 * ada-lex.l (processId): Change interface to return stoken.
336 (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
337 (block_lookup, name_lookup): Remove. Functionality moved to
339 (state IN_STRING): Remove.
340 (rules): Handle string escapes in processString.
342 Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
343 yylval.sval (as simple strings).
344 All name look-ups now handled in ada-exp.y.
345 Introduce "::" (COLONCOLON) token and return as separate token.
346 (processId): Change return convention. Comment.
347 Leave leading "'" in place.
348 (processString): New function.
349 (find_dot_all): Add note to comment.
350 Fix problem that allowed match only at the end.
352 * ada-lang.c: Introduce aggregates.
353 (find_struct_field): Add new parameter to count fields skipped, and
354 allow other output parameters to be NULL.
355 (value_tag_from_contents_and_address, ada_value_struct_elt): Use
356 new find_struct_field.
357 (ada_index_struct_field, assign_aggregate, ada_is_array_type)
358 (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
359 (num_component_specs, assign_component, assign_aggregate):
360 (aggregate_assign_from_choices,aggregate_assign_positional)
361 (aggregate_assign_others,add_component_interval):
363 (ada_evaluate_subexp): Declare.
364 Add aggregate-related operators.
365 (ada_forward_operator_length): Declare.
366 (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
367 Consolidate Ada operators, using ada_forward_operator_length.
368 (ada_search_struct_field): Search in forward order.
369 (ADA_OPERATORS): Add new aggregate operators.
370 (ada_operator_length, ada_op_name, ada_forward_operator_length)
371 (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate
372 operators and OP_NAME.
373 (ada_type_of_array): Use longest_to_int.
374 (value_assign_to_component): New function.
375 (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
377 (ada_forward_operator_length, ada_dump_subexp_body):
380 * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
381 OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
383 2006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
385 * ada-lang.c (process_raise_exception_name): Remove extraneous
386 definition from unsubmitted code.
388 (is_lower_alphanum): New function.
389 (ada_decode): Add support for decoding protected object subprograms
390 and entries, and of entities declared inside protected object
392 Also add missing handling for__{DIGITS}+ suffixes.
393 Allow '$<digits>' as valid overloading suffix.
394 (is_name_suffix): Add handling for protected type entriy suffixes.
395 Also add support for protected type subprogram suffixes, but keep
396 it commented out for now, as there is an ambiguity between these
397 entities and other internally generated entities.
398 Allow '$<digits>' as valid overloading suffix.
399 (is_valid_name_for_wild_match): New function.
400 (wild_match): Add an exra level of verification of the entity name
401 before declaring it a match for the given pattern.
403 (ada_type_of_array, ada_evaluate_subexp): Use more proper
404 longest_to_int rather than cast.
406 (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
408 (ada_coerce_to_simple_array): Call check_size to make sure
409 that the object size is reasonable.
411 (ada_value_primitive_packed_val): Use correct location in target
412 buffer for extracting packed record fields that are themselves records.
414 (add_defn_to_vec): Do not try to replace a stub type by its full
415 type. Avoids a potential infinite loop.
417 (ada_lookup_symbol): Move return incorrectly placed return statement,
418 causing a loop that should be scanning all object files to only
421 (ada_tag_name_2): New function.
422 (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
423 use alternative representation.
425 (ada_find_renaming_symbol): Strip the function name suffix when
426 computing the XR type name.
428 (ada_to_fixed_type): Try determining the tag only if we have the
430 (to_fixed_array_type): Add comments.
432 (ada_check_typedef): Replace expression checking whether the given
433 type is a stub or not by a "call" to TYPE_STUB. Clearer and more
436 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
437 '$' in addition to '.' for runtime auxiliary function name suffixes.
438 See changes to ada_decode above.
440 (struct task_control_block): Add field called_task. (This change is
441 to keep synchronized with our local sources; it does not affect the
444 * ada-typeprint.c (ada_print_type): Use int_string for printing
445 modulus of modular type.
447 (print_range): Trivial editorial comment fix.
449 * ada-valprint.c (ada_emit_char): Use normal Ada syntax for
450 double quote in string.
452 2006-01-01 Joel Brobecker <brobecker@adacore.com>
454 * top.c: Add 2006 to list of copyright years in file header.
456 2006-01-01 Joel Brobecker <brobecker@adacore.com>
458 * top.c (print_gdb_version): Update copyright year to 2006.
460 2006-01-01 Roger Sayle <roger@eyesopen.com>
461 Elena Zannoni <ezannoni@redhat.com>
464 * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
465 for NULL before assigning this_symtab_psymtab->objfile to objfile.
466 (scan_xcoff_symtab): Initialize next_symbol_text_func.
467 (Committed by Jim Blandy)
469 For older changes see ChangeLog-2005.
475 version-control: never