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