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