Add -Wunused-function to compile flags.
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
2
3         Add -Wunused-function to compile flags.
4         * configure.ac: Add -Wunused-function to build_warnings.
5         * configure: Regenerate.
6
7 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
8
9         "delete" ada-lex.c:input function, not used.
10         * ada-lex.l: #define YY_NO_INPUT.
11
12 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
13
14         Delete free_named_symtabs and associated cleanup.
15         * symfile.h (free_named_symtabs): Delete declaration.
16         * symfile.c: Remove some commented out code (clear_symtab_users_once).
17         (cashier_psymtab): Comment function out.
18         Delete declaration.
19         (free_named_symtabs): Delete.
20         * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
21         * dbxread.c (end_psymtab): Likewise.
22         * dwarf2read.c (process_psymtab_comp_unit): Ditto.
23         * exec.c (exec_close_1): Ditto.
24         * xcoffread.c (xcoff_end_psymtab): Likewise.
25
26 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
27
28         * stack.c (print_block_frame_labels): Comment function out.
29
30 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
31
32         Delete unused or undefined functions.
33         * breakpoint.c (ep_parse_optional_filename): Delete.
34         * dcache.c (dcache_write_line): Remove declaration.
35         * infrun.c (build_infrun): Remove declaration.
36         * tracepoint.c (tracepoint_save_command): Remove declaration.
37         * linux-nat.c (init_lwp_list): Delete. No longer used.
38         * event-loop.c (check_async_signal_handlers): Delete declaration.
39         * infrun.c (init_execution_control_state): Delete.
40         (proceed): Update comment to avoid mentioning
41         init_execution_control_state.
42         * target.c (kill_or_be_killed, nosupport_runtime): Delete.
43         * ada-lang.c (ada_to_static_fixed_value): Delete.
44         * scm-lang.c (evaluate_subexp_scm): Delete declaration.
45         * cp-namespace.c (cp_copy_usings): Delete.
46         * xml-syscall.c (xml_number_of_syscalls): Delete.
47         * progspace.c (find_program_space_by_num): Delete.
48         * inflow.c (handle_sigio): Delete declaration.
49         * hppa-tdep.c (hppa_alignof): Delete.
50         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
51         (mipsnbsd_core_osabi_sniffer): Delete.
52
53 2010-01-18  Tom Tromey  <tromey@redhat.com>
54
55         PR c++/9680:
56         * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
57         (CONST_CAST): New tokens.
58         (exp): Add new productions.
59         (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
60         reinterpret_cast.
61         (is_cast_operator): New function.
62         (yylex): Handle cast operators specially.
63         * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
64         UNOP_REINTERPRET_CAST>: New cases.
65         * expprint.c (print_subexp_standard): Likewise.
66         (op_name_standard): Likewise.
67         (dump_subexp_body_standard): Likewise.
68         * parse.c (operator_length_standard): Likewise.
69         * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
70         UNOP_REINTERPRET_CAST.
71         * gdbtypes.c (class_types_same_p): New function.
72         (is_ancestor): Use it.
73         (is_public_ancestor): New function.
74         (is_unique_ancestor_worker): Likewise.
75         (is_unique_ancestor): Likewise.
76         * gdbtypes.h (class_types_same_p, is_public_ancestor)
77         (is_unique_ancestor): Declare.
78         * valops.c (value_reinterpret_cast): New function.
79         (dynamic_cast_check_1): Likewise.
80         (dynamic_cast_check_2): Likewise.
81         (value_dynamic_cast): Likewise.
82         * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
83
84 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
85
86         Fix build failure when building without Python support.
87         * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
88         is not defined.
89
90 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
91
92         Use XVS field type instead of doing a parallel lookup.
93         * ada-lang.c (ada_get_base_type): Follow the XVS field type
94         if it is a reference type instead of doing a type lookup using
95         the XVS field name.
96
97 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
98
99         Trust PAD types instead of using PAD___XVS.
100         * ada-lang.c (trust_pad_over_xvs): New static variable.
101         (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
102         parallel XVS type, follow the XVS type instead of the PAD type.
103         (unwrap_value): Make sure that there is no parallel XVE type
104         before returning the value as is.
105         (set_ada_list, show_ada_list): New static variables.
106         (set_ada_command, show_ada_command): New functions.
107         (_initialize_ada_language): Add new "set/show ada" prefix commands.
108         Add new "set/show ada trust-PAD-over-XVS" setting.
109
110 2010-01-18  Tom Tromey  <tromey@redhat.com>
111             Thiago Jung Bauermann  <bauerman@br.ibm.com>
112
113         Allow "source" to load python scripts.
114         * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
115         * python/python.c (source_python_script): New function.
116         * python/python.h (source_python_script): Add declaration.
117         * cli/cli-cmds.c: #include exceptions.h and python/python.h.
118         (script_ext_off, script_ext_soft, script_ext_strict)
119         (script_ext_enums, script_ext_mode): New static constants.
120         (show_script_ext_mode, find_and_open_script): New functions.
121         (source_script): Enhance to handle Python scripts.
122         (init_cli_cmds): Add set/show script-extension commands.
123
124 2010-01-16  Stan Shebs  <stan@codesourcery.com>
125
126         * tracepoint.h (struct trace_status): Use unsigned long long
127         instead of size_t.
128         * tracepoint.c (trace_status_command): Fix printf directive.
129         (trace_save_command): Check fwrite returns, fix printf directive.
130         (trace_filename): New global.
131         (tfile_open): Set it, check read returns.
132         (tfile_close): Free trace_filename.
133         (tfile_get_traceframe_address): Check read returns.
134         (tfile_trace_find): Ditto.
135         (tfile_fetch_registers): Ditto.
136         (tfile_xfer_partial): Ditto.
137         (tfile_get_trace_state_variable_value): Ditto.
138
139 2010-01-15  Stan Shebs  <stan@codesourcery.com>
140
141         Add trace file support.
142         * tracepoint.h (enum trace_stop_reason): New enum.
143         (struct trace_status): New struct.
144         (parse_trace_status): Declare.
145         (struct uploaded_tp): Move here from remote.c,
146         add fields for actions.
147         (struct uploaded_tsv): New struct.
148         * tracepoint.c (tfile_ops): New target vector.
149         (trace_fd): New global.
150         (tfile_open): New function.
151         (tfile_close): New function.
152         (tfile_files_info): New function.
153         (tfile_get_trace_status): New function.
154         (tfile_get_traceframe_address): New function.
155         (tfile_trace_find): New function.
156         (tfile_fetch_registers): New function.
157         (tfile_xfer_partial): New function.
158         (tfile_get_trace_state_variable_value): New function.
159         (init_tfile_ops): New function.
160         (_initialize_tracepoint): Call it, add tfile target.
161         (trace_status): New global.
162         (current_trace_status): New function.
163         (trace_running_p): Remove, change all users to get from
164         current_trace_status()->running.
165         (get_trace_status): Remove.
166         (trace_status_command): Call target_get_trace_status directly,
167         report more detail including tracing stop reasons.
168         (trace_find_command): Always allow tfind on a file.
169         (trace_find_pc_command): Ditto.
170         (trace_find_tracepoint_command): Ditto.
171         (trace_find_line_command): Ditto.
172         (trace_find_range_command): Ditto.
173         (trace_find_outside_command): Ditto.
174         (trace_frames_offset, cur_offset): Declare as off_t.
175         (trace_regblock_size): Rename from reg_size, update users.
176         (parse_trace_status): New function.
177         (tfile_interp_line): New function.
178         (disconnect_or_stop_tracing): Ensure current trace
179         status before asking what to do.
180         (stop_reason_names): New global.
181         (trace_save_command): New command.
182         (get_uploaded_tp): Move here from remote.c.
183         (find_matching_tracepoint): Ditto.
184         (merge_uploaded_tracepoints): New function.
185         (parse_trace_status): Use stop_reason_names.
186         (_initialize_tracepoint): Define tsave command.
187         * target.h (target_ops): New fields to_save_trace_data,
188         to_upload_tracepoints, to_upload_trace_state_variables,
189         to_get_raw_trace_data, change to_get_trace_status
190         to take a pointer to a status struct.
191         (target_save_trace_data): New macro.
192         (target_upload_tracepoints): New macro.
193         (target_upload_trace_state_variables): New macro.
194         (target_get_raw_trace_data): New macro.
195         * target.c (update_current_target): Add new methods, change
196         signature of to_get_trace_status.
197         * remote.c (hex2bin): Make globally visible.
198         (bin2hex): Ditto.
199         (remote_download_trace_state_variable): Download name also.
200         (remote_get_trace_status): Update parameter, use
201         parse_trace_status.
202         (remote_save_trace_data): New function.
203         (remote_upload_tracepoints): New function.
204         (remote_upload_trace_state_variables): New function.
205         (remote_get_raw_trace_data): New function.
206         (remote_start_remote): Use them.
207         (_initialize_remote_ops): Add operations.
208         * ax-gdb.c: Include breakpoint.h.
209         * breakpoint.c (create_tracepoint_from_upload): Use
210         break_command_really, return tracepoint, warn about unimplemented
211         parts.
212         * NEWS: Mention trace file addition.
213
214 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
215
216         Fix compilation warning on gcc-3.4.
217         * exec.c (print_section_info): Move the `displacement' variable
218         initialization to its declaration.
219
220 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
221
222         * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
223         comparison.
224
225 2010-01-15  Eric Botcazou  <botcazou@adacore.com>
226
227         "info tasks" broken by typedefs in ATCB type definitions.
228         * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
229         ada_check_typedef before retrieving the length of the type for
230         regular fields.
231
232 2010-01-15  Joel Brobecker  <brobecker@adacore.com>
233
234         Do not use name-based lookup for unconstrained packed arrays.
235         * ada-lang.c (find_parallel_type_by_descriptive_type):
236         Limit the fallback to name-based lookups to the case where
237         the type is a constrained packed array.
238
239 2010-01-15  Joel Brobecker  <brobecker@adacore.com>
240
241         Enhance gdb-gdb.py to handle main_type.type_specific.
242         * gdb-gdb.py: Print the type-specific part of struct main_type.
243
244 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
245
246         * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
247         * configure: Regenerate.
248         * config.in: Regenerate.
249         * utils.c: Include sys/resource.h.
250         (dump_core, can_dump_core): New.
251         (internal_vproblem): Update the comment.  Check can_dump_core while
252         setting dump_core_p.  Replace two abort calls by dump_core calls.
253
254 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
255             Eli Zaretskii  <eliz@gnu.org>
256
257         * NEWS: Document the PIE support.
258
259 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
260
261         * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
262         (check_is_pie_binary, _initialize_linux_tdep): Remove.
263
264 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
265
266         * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
267         Replace exec_entry_point call by bfd_get_start_address.
268
269 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
270
271         Support Valgrind attachments broken by the PIE support.
272         * auxv.c: Include gdbcore.h.
273         (procfs_xfer_auxv): Make static.  Reduce its comment.  Drop its
274         parameters ops, object and annex.  Remove their assertions.
275         (ld_so_xfer_auxv, memory_xfer_auxv): New function.
276         * auxv.h (procfs_xfer_auxv): Remove comment.  Rename to ...
277         (memory_xfer_auxv): ... here.
278         * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
279         memory_xfer_auxv.
280         * procfs.c (procfs_xfer_partial): Likewise.
281         * solib-svr4.c (svr4_relocate_main_executable): New prototype.
282         (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
283         (svr4_solib_create_inferior_hook): Conditionalize the
284         svr4_relocate_main_executable call.
285
286 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
287
288         * solib-svr4.c (scan_dyntag): Remove variable dyn_addr.  New variable
289         target_section.  Find SECT in current_target_sections, gdb_assert it.
290         (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
291         New variable abfd.
292         * symtab.c (lookup_objfile_from_block): Return the binary file instead
293         of separate debug info file.
294
295 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
296
297         Support PIEs with no symfile_objfile.
298         * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
299         * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
300
301 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
302
303         * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
304         code part to ...
305         (svr4_static_exec_displacement): ... a new function.
306         (svr4_exec_displacement): New function.
307         (svr4_relocate_main_executable): Call svr4_exec_displacement.  Allocate
308         new_offsets using alloca now.  Remove variable old_chain and changed.
309         Call objfile_relocate unconditionally now.
310
311 2010-01-14  Doug Evans  <dje@google.com>
312
313         * gdbtypes.c (arch_flags_type): Fix comment.
314         * gdbtypes.h (arch_composite_type): Fix comment.
315
316 2009-01-14  Tristan Gingold  <gingold@adacore.com>
317
318         * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
319         Call xstrdup for abfd->filename.  Pass symfile_flags and objfile flags
320         to symbol_file_add_from_bfd.  Add OSO as separate objfile.
321         (macho_oso_symfile): Add symfile_flags parameter.  Pass it to
322         macho_add_oso_symfile.
323         (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
324
325 2010-01-14  Joel Brobecker  <brobecker@adacore.com>
326
327         Tru64: Dead threads are never deleted.
328         * dec-thread.c (dec_thread_ptid_is_alive): New function.
329         (dec_thread_count_gdb_threads): Fix counter increment.
330         (dec_thread_add_gdb_thread): Fix *listp increment.
331         (resync_thread_list): Fix bug in deletion of dead threads that
332         caused all threads to be deleted, instead of just the dead ones.
333
334 2010-01-13  Phil Muldoon  <pmuldoon@redhat.com>
335
336         PR python/10705
337
338         * python/python-internal.h: Add lazy_string_object_type
339         definition.
340         (create_lazy_string_object, gdbpy_initialize_lazy_string)
341         (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
342         * python/py-value.c (valpy_lazy_string): New function.
343         (convert_value_from_python): Add lazy string conversion.
344         * python/py-prettyprint.c (pretty_print_one_value): Check if
345         return is also a lazy string.
346         (print_string_repr): Add lazy string printing branch.
347         (print_children): Likewise.
348         * python/py-lazy-string.c: New file. Implement lazy strings.
349         * python/python.c (_initialize_python): Call
350         gdbpy_initialize_lazy_string.
351         * varobj.c (value_get_print_value): Add lazy string printing
352         branch.  Account for encoding.
353         * c-lang.c (c_printstr): Account for new encoding argument.  If
354         encoding is NULL, find encoding suited for type, otherwise use
355         user encoding.
356         * language.h (language_defn): Add encoding argument.
357         (LA_PRINT_STRING): Likewise.
358         * language.c (unk_lang_printstr): Update to reflect new encoding
359         argument to language_defn.
360         * ada-lang.h (ada_printstr): Likewise.
361         * c-lang.h (c_printstr): Likewise.
362         * p-lang.h (pascal_printstr);
363         * f-lang.c (f_printstr): Likewise.
364         * m2-lang.c (m2_printstr): Likewise.
365         * objc-lang.c (objc_printstr): Likewise.
366         * p-lang.c (pascal_printstr): Likewise.
367         * scm-lang.c (scm_printstr): Likewise.
368         * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
369         encoding argument.
370         * ada-valprint.c (ada_printstr): Likewise.
371         * f-valprint.c (f_val_print): Likewise
372         * m2-valprint.c (m2_val_print): Likewise.
373         * p-valprint.c (pascal_val_print): Likewise.
374         * expprint.c (print_subexp_standard): Likewise.
375         * valprint.c (val_print_string): Likewise.
376         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
377         (SUBDIR_PYTHON_SRCS): Likewise.
378         (py-lazy-string.o): New rule.
379
380 2010-01-13  Doug Evans  <dje@google.com>
381
382         * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
383         uninitialized" warning from gcc on local `tree'.
384
385 2010-01-13  Vladimir Prus  <vladimir@codesourcery.com>
386
387         Implement core awareness.
388
389         * bcache.c (compare_ints): Remove
390         (print_percentage): Use compare_positive_ints.
391         * defs.h (compare_positive_ints): Declare.
392         * linux-nat.h (struct lin_lwp): New field core.
393         (linux_nat_core_of_thread_1): Declare.
394         * linux-nat.c (add_lwp): Init the 'core' field.
395         (linux_nat_wait_1): Record the core.
396         (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
397         (linux_nat_add_target): Register the above.
398         * linux-thread-db.c (update_thread_core): New.
399         (thread_db_find_new_threads): Update core information for
400         every thread.
401         * remote.c (struct private_thread_info): New.
402         (free_private_thread_info, demand_private_info): New.
403         (PACKET_qXfer_threads, use_osdata_threads): New.
404         (struct thread_item, threads_parsing_context
405         (start_thread, end_thread, thread_attributes)
406         (thread_children, threads_children, threads_elements): New.
407         (remote_threads_info): Try qXfer:threads before anything
408         else.
409         (remote_protocol_packets): Register qXfer:threads.
410         (remote_open_1): Init use_osdata_threads.
411         (struct stop_reply): New field 'core'.
412         (remote_parse_stop_reply): Parse core number.
413         (process_stop_reply): Record core number.
414         (remote_xfer_partial): Handle qXfer:threads.
415         (remote_core_of_thread): New.
416         (init_remote_ops): Register remote_core_of_thread.
417         (_initialize_remote): Register qXfer:read.
418         * target.c (target_core_of_thread): New
419         * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
420         (struct target_ops): New field to_core_of_threads.
421         (target_core_of_thread): Declare.
422         * gdbthread.h (struct thread_info): New field private_dtor.
423         * thread.c (print_thread_info): Report the core.
424         * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
425         * utils.c (compare_positive_ints): New.
426         * features/threads.dtd: New.
427         * mi/mi-interp.c (mi_on_normal_stop): Report the core.
428         * mi/mi-main.c (struct collect_cores_data, collect_cores)
429         (do_nothing, free_vector_of_osdata_items)
430         (splay_tree_int_comparator, free_splay_tree): New.
431         (print_one_inferior_data): Implemented printing of selected
432         inferiors.  Collect and print cores.
433         (output_cores): New.
434         (mi_cmd_list_thread_groups): Support --recurse.  Permit specifying
435         thread groups together with --available.
436
437 2010-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
438
439         * configure: Regenerate (for _STRUCTURED_PROC).
440
441 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
442
443         Delete dead function.
444         * ada-lang.c (extract_string): Delete.  No longer used.
445
446 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
447
448         Fix -Wunused warning in dec-thread.c.
449         * dec-thread.c (dec_thread_count_gdb_threads)
450         (dec_thread_add_gdb_thread): Prevent -Wunused warning.
451
452 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
453
454         * ada-valprint.c (ada_print_floating): Remove trailing space.
455
456 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
457
458         Add support for DW_AT_GNAT_descriptive_type.
459         * gdbtypes.h (enum type_specific_kind): New enum.
460         (struct main_type) [type_specific_field]: New component.
461         [type_specific]: Add new component "gnat_stuff".
462         (struct gnat_aux_type): New type.
463         (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
464         (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
465         (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
466         (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
467         (TYPE_SPECIFIC_FIELD): New macros.
468         (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
469         type does not hold any cplus-specific data.
470         (TYPE_RAW_CPLUS_SPECIFIC): New macro.
471         (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
472         (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
473         cplus-specific data.
474         * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
475         Set new component TYPE_SPECIFIC_FIELD (type).
476         (gnat_aux_default): New constant.
477         (allocate_gnat_aux_type): New function.
478         (init_type): Add initialization the type-specific stuff for
479         TYPE_CODE_FLT and TYPE_CODE_FUNC types.
480         (print_gnat_stuff): New function.
481         (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
482         specific data.  Adjust code that prints the contents of the
483         type-specific union using the TYPE_SPECIFIC_FIELD value.
484         * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
485         the type cplus stuff for Ada types.
486         (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
487         Error out if these routines are called with an Ada type.
488         (read_structure_type, read_array_type, read_subrange_type):
489         Add call to set_descriptive_type.
490         (set_die_type): Initialize the gnat-specific data if necessary.
491         (need_gnat_info, die_descriptive_type, set_descriptive_type):
492         New functions.
493         * ada-lang.c (decode_constrained_packed_array_type): Use
494         decode_constrained_packed_array_type instead of doing a standard
495         lookup to locate a parallel type.
496         (find_parallel_type_by_descriptive_type): New function.
497         (ada_find_parallel_type_with_name): New function.
498         (ada_find_parallel_type): Reimplement using
499         ada_find_parallel_type_with_name.
500         * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
501         to check if type has a cplus stuff.
502         * linespec.c (total_number_of_methods): Likewise.
503         * mdebugread.c (new_type): Likewise.
504
505 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
506
507         * NEWS: Document the 0b binary number prefix parsing.
508
509 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
510
511         * objfiles.c (objfile_relocate1): Change the return type to int.
512         Describe the new return value.  Return non-zero if data changed.
513         (objfile_relocate): New variable changed.  Set it.  Call
514         breakpoint_re_set depending on CHANGED.
515
516 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
517
518         Implement binary numbers parsing.
519         * c-exp.y (parse_number): New case 'b' and 'B'.
520
521 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
522             Tristan Gingold  <gingold@adacore.com>
523
524         * solib.c (info_sharedlibrary_command): Replace
525         objfile_has_partial_symbols and objfile_has_full_symbols calls by
526         objfile_has_symbols.
527
528 2010-01-10  Joel Brobecker  <brobecker@adacore.com>
529
530         * NEWS: Document the improvements made to the mips-irix port.
531
532 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
533
534         Fix the documentation of valprint.c:value_print.
535         * valprint.c (value_print): Update the function description to
536         mention that the syntax of the output follows the current_language,
537         not necessarily C.
538
539 2010-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
540
541         Fix displacement of separate debug info files.
542         * objfiles.c (objfile_relocate): Rename to ...
543         (objfile_relocate1): ... here and make it static.  Extend the comment.
544         (objfile_relocate): New function.
545         * solib-spu.c (spu_relocate_main_executable): Explicitly check if
546         SYMFILE_OBJFILE is NULL.  Remove variables objfile and old_chain.
547         Remove following of SEPARATE_DEBUG_OBJFILE.  new_offsets is now
548         allocated using alloca.
549         * symfile.c (copy_section_addr_info): Remove.
550         (build_section_addr_info_from_objfile): Make it global.  New variables
551         addr_bit and mask, use them.
552         * symfile.h (build_section_addr_info_from_objfile): New prototype.
553         (copy_section_addr_info): Remove.
554
555 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
556
557         Signal unwinder for mips-irix N32.
558         * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
559         tramp-frame.h.
560         (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
561         (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
562         (SIGCONTEXT_LO_OFF): New macros. 
563         (mips_irix_n32_tramp_frame_init): New function. 
564         (mips_irix_n32_tramp_frame): New static constant.
565         (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
566
567 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
568
569         Breakpoint in shared library does not work on mips-irix.
570         * procfs.c: #include "observer.h".
571         (procfs_inferior_created): New function, moving here the code
572         which unsets the syssgi syscall-exit notifications.
573         (procfs_create_inferior): Remove the code which unsets the syssgi
574         syscall-exit notifications. It is too early to do this here.
575         (_initialize_procfs): Attach the procfs_inferior_created observer.
576
577 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
578
579         Wrong return convention for arrays (mips-irix).
580         * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
581         128 bits or smaller are returned the same way as structs
582         and unions of the the same size.
583
584 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
585
586         Cannot set the PC on mips-irix.
587         * irix5-nat.c (fill_gregset): Check regno against the raw PC
588         register number, no the cooked one.
589
590 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
591
592         Error while loading core file on mips-irix.
593         * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
594         if debugging from a core file.
595
596 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
597
598         GDB hangs when attaching to process on mips-irix.
599         * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
600         attaching to a process.
601
602 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
603
604         Use the correct breakpoint instruction on mips-irix.
605         * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
606         containing the correct breakpoint instruction to use on mips-irix.
607         Use it when the osabi is GDB_OSABI_IRIX.
608
609 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
610
611         -Wunused warning in procfs.c (mips-irix only).
612         * procfs.c (gdb_praddset, gdb_prdelset): New macros.  Use them
613         throughout instead of using praddset and prdelset respectively.
614
615 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
616
617         GDB crash while stepping into function.
618         * infrun.c (handle_inferior_event): Refetch the current frame
619         after handling what.main_action, in case that pointer became
620         dangling.
621
622 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
623
624         Fix build failure of solaris-hosted cross debuggers.
625         * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
626
627 2010-01-09  Daniel Gutson  <dgutson@codesourcery.com>
628
629         Fix build failure on sparc-solaris.
630         * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
631
632 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
633
634         Move some symfile code into subroutines.
635         * symfile.h (relative_addr_info_to_section_offsets)
636         (addr_info_make_relative): New prototypes.
637         * symfile.c (default_symfile_offsets): Move a part to ...
638         (relative_addr_info_to_section_offsets): ... this new function.
639         (default_symfile_offsets): Call it.
640         (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
641         this part to ...
642         (addr_info_make_relative): ... this new function.
643
644 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
645
646         Add from_tty to solib_create_inferior_hook.
647         * infcmd.c (post_create_inferior): Move solib_add after
648         solib_create_inferior_hook.  Pass from_tty to
649         solib_create_inferior_hook.  Call solib_add and SOLIB_ADD with
650         0 from_tty and comment why.
651         * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
652         * linux-nat.c (linux_child_follow_fork): Likewise.
653         * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
654         * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
655         from_tty.
656         * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
657         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
658         * solib-null.c (null_solib_create_inferior_hook): Likewise.
659         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
660         * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
661         * solib-som.c (som_solib_create_inferior_hook): Likewise.
662         * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
663         Pass it to svr4_so_ops.solib_create_inferior_hook.
664         * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
665         from_tty.
666         * solib-svr4.c (enable_break): New parameter from_tty.  Pass it to
667         solib_add.
668         (svr4_solib_create_inferior_hook): New parameter from_tty.  Pass it to
669         enable_break.
670         * solib-target.c (solib_target_solib_create_inferior_hook): New
671         parameter from_tty.
672         * solib.c (solib_create_inferior_hook): New parameter from_tty.  Pass
673         it to ops->solib_create_inferior_hook.
674         (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
675         Move solib_add after solib_create_inferior_hook, call it now with
676         from_tty as 0.  New comment there.
677         * solib.h (solib_create_inferior_hook): New parameter from_tty.
678         * solist.h (struct target_so_ops <solib_create_inferior_hook>):
679         Likewise.
680
681 2010-01-08  Vladimir Prus  <vladimir@codesourcery.com>
682
683         Fix multiexec race.
684         * infrun.c (handle_inferior_event): Use get_thread_regcache
685         with events ptid, not get_current_regcache.
686
687 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
688
689         GDB crash with empty executable name (MinGW).
690         * source.c (openp): Add assert that parameter string is not NULL.
691         if parameter string is an empty string, then return with a failure
692         immediately.
693
694 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
695
696         Get rid of support for VAX Floats.
697         * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
698         (ada_vax_float_print_function): Delete.
699         * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
700         (ada_vax_float_print_function): Delete.
701         * ada-typeprint.c (print_vax_floating_point_type): Delete.
702         (ada_print_type): Remove support for VAX floats.
703         * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
704
705 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
706
707         * stabsread.c (read_args): Handle zero arguments.
708
709 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
710
711         Cannot find in-tree libiconv.a after reconfigure.
712         * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
713         that we can use, then cache the path to this archive.
714         * configure: Regenerate.
715
716 2010-01-07  Stan Shebs  <stan@codesourcery.com>
717
718         Make tracepoint operations go through target vector.
719         * target.h (enum trace_find_type): New enum.
720         (struct target_ops): New fields to_trace_init,
721         to_download_tracepoint, to_download_trace_state_variable,
722         to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
723         to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
724         to_set_disconnected_tracing.
725         (target_trace_init): New macro.
726         (target_download_tracepoint): New macro.
727         (target_download_trace_state_variable): New macro.
728         (target_trace_start): New macro.
729         (target_trace_set_readonly_regions): New macro.
730         (target_get_trace_status): New macro.
731         (target_trace_stop): New macro.
732         (target_trace_find): New macro.
733         (target_get_trace_state_variable_value): New macro.
734         (target_set_disconnected_tracing): New macro.
735         * target.c (update_current_target): Inherit and set defaults for
736         tracepoint operations.
737         * tracepoint.c (default_collect): Make globally visible.
738         (target_is_remote): Remove, along with all calls.
739         (tvariables_info): Call target_get_trace_state_variable_value.
740         (remote_set_transparent_ranges): Remove.
741         (trace_start_command): Call target_trace_init,
742         target_download_tracepoint, etc.
743         (download_tracepoint): Remove.
744         (trace_stop_command): Simplify.
745         (stop_tracing): Call target_trace_stop.
746         (get_trace_status): Call target_get_trace_status.
747         (trace_status_command): Add case for targets that cannot trace.
748         (finish_tfind_command): Change to take numerical arguments, call
749         target_trace_find.
750         (trace_find_command): Update call to finish_tfind_command.
751         (trace_find_pc_command): Ditto.
752         (trace_find_tracepoint_command): Ditto.
753         (trace_find_line_command): Ditto.
754         (trace_find_range_command): Ditto.
755         (trace_find_outside_command): Ditto.
756         (set_disconnected_tracing_value): Call
757         target_set_disconnected_tracing.
758         * remote.c: Add protocol encoding bits from tracepoint.c.
759         (trace_error): Move from tracepoint.c.
760         (remote_get_noisy_reply): Ditto.
761         (free_actions_list_cleanup_wrapper): Ditto.
762         (free_actions_list): Ditto.
763         (remote_trace_init): New function.
764         (remote_download_tracepoint): New function.
765         (remote_download_trace_state_variable): New function.
766         (remote_trace_set_readonly_regions): New function.
767         (remote_trace_start): New function.
768         (remote_get_trace_status): New function.
769         (remote_trace_stop): New function.
770         (remote_trace_find): New function.
771         (remote_download_trace_state_variable): New function.
772         (remote_set_disconnected_tracing): New function.
773         (init_remote_ops): Add tracepoint operations.
774
775         * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
776
777 2010-01-07  Tristan Gingold  <gingold@adacore.com>
778
779         * symfile.c (build_section_addr_info_from_objfile): New function.
780         (symbol_file_add_separate): Don't use offsets from objfile but
781         built an addr info.
782
783 2010-01-06  Stan Shebs  <stan@codesourcery.com>
784
785         Support disconnected tracing.
786         * infcmd.c (detach_command): Ask whether to stop tracing.
787         * cli/cli-cmds.c (quit_command): Ditto.
788         * breakpoint.h (struct breakpoint): New field number_on_target.
789         * breakpoint.c (create_tracepoint_from_upload): New function.
790         (get_tracepoint_by_number_on_target): New function.
791         * remote.c (struct remote): New field disconnected_tracing.
792         (remote_disconnected_tracing_feature): New function.
793         (remote_protocol_features): Add DisconnectedTracing.
794         (struct uploaded_tp): New struct.
795         (uploaded_tps): New global.
796         (get_uploaded_tp): New function.
797         (find_matching_tracepoint): New function.
798         (remote_get_tracing_state): New function.
799         (remote_start_remote): Call it.
800         * tracepoint.c (disconnected_tracing): New global.
801         (trace_start_command): Initialize number_on_target.
802         (stop_tracing): New function, split out from...
803         (trace_stop_command): Call stop_tracing.
804         (get_trace_status): New function, split out from...
805         (trace_status_command): Call get_trace_status, add info on
806         disconnection behavior.
807         (disconnect_or_stop_tracing): New function.
808         (finish_tfind_command): Translate from number on target.
809         (trace_find_tracepoint_command): Translate to number on target.
810         (send_disconnected_tracing_value): New function.
811         (set_disconnected_tracing): New function.
812         (_initialize_tracepoint): Add disconnected-tracing variable.
813         * NEWS: Mention disconnected tracing.
814
815 2010-01-06  Tristan Gingold  <gingold@adacore.com>
816
817         * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
818         parameter to main_objfile.  Iterate on all separate debug objfiles.
819         * symfile.h (symbol_file_add_separate)
820         (find_separate_debug_file_by_debuglink): Remove parameter names.
821         * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
822         (reread_symbols): Use free_objfile_separate_debug.
823         * objfiles.h (struct objfile): Add separate_debug_objfile_link.
824         Adjust comment.
825         (objfile_separate_debug_iterate, add_separate_debug_objfile)
826         (free_objfile_separate_debug): New prototypes.
827         * objfiles.c (objfile_separate_debug_iterate): New function.
828         (add_separate_debug_objfile, free_objfile_separate_debug): New
829         functions.
830         (free_objfile): Use free_objfile_separate_debug.  Adjust for
831         multiple separate debug objfile.
832         (objfile_has_symbols): Adjust comment.  Iterate on all separate
833         debug objfiles.
834         * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
835         debug objfile.
836         (lookup_minimal_symbol_text): Ditto.
837         (lookup_minimal_symbol_by_pc_name): Ditto.
838         (lookup_minimal_symbol_solib_trampoline): Ditto.
839         (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
840         debug objfiles.
841
842 2010-01-05  Stan Shebs  <stan@codesourcery.com>
843
844         Add fast tracepoints.
845         * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
846         * arch-utils.c (default_fast_tracepoint_valid_at): New function.
847         * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
848         * breakpoint.c (tracepoint_type): New function.
849         (ALL_TRACEPOINTS): Use it.
850         (should_be_inserted): Ditto.
851         (bpstat_check_location): Ditto.
852         (print_one_breakpoint_location): Ditto.
853         (user_settable_breakpoint): Ditto.
854         (set_breakpoint_location_function): Ditto.
855         (disable_breakpoints_in_shlibs): Ditto.
856         (delete_trace_command): Ditto.
857         (print_it_typical): Add bp_fast_tracepoint case.
858         (bpstat_what): Ditto.
859         (print_one_breakpoint_location): Ditto.
860         (allocate_bp_location): Ditto.
861         (mention): Ditto.
862         (breakpoint_re_set_one): Ditto.
863         (disable_command): Ditto.
864         (enable_command): Ditto.
865         (check_fast_tracepoint_sals): New function.
866         (break_command_really): Call it.
867         (ftrace_command): New function.
868         (_initialize_breakpoint): Add ftrace command.
869         * gdbarch.sh (fast_tracepoint_valid_at): New.
870         * gdbarch.h, gdbarch.c: Regenerate.
871         * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
872         (i386_gdbarch_init): Use it.
873         * remote.c (struct remote_state): New field fast_tracepoints.
874         (PACKET_FastTracepoints): New packet config type.
875         (remote_fast_tracepoint_feature): New function.
876         (remote_protocol_features): Add FastTracepoints.
877         (remote_supports_fast_tracepoints): New function.
878         (_initialize_remote): Add FastTracepoints.
879         * tracepoint.c (download_tracepoint): Add fast tracepoint option.
880         * NEWS: Mention fast tracepoints.
881
882 2010-01-06  Joel Brobecker  <brobecker@adacore.com>
883
884         * gdb-gdb.py: New file.
885
886 2010-01-05  Michael Snyder  <msnyder@vmware.com>
887
888         * infrun.c (handle_inferior_event): Fix typo in comment.
889
890 2010-01-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
891
892         * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
893
894 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
895
896         * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
897         and s390x-linux64.
898         (s390-linux32-expedite): Define.
899         (s390-linux64-expedite): Define.
900         (s390x-linux64-expedite): Define.
901         * features/s390-acr.xml: New file.
902         * features/s390-fpr.xml: New file.
903         * features/s390-core32.xml: New file.
904         * features/s390-core64.xml: New file.
905         * features/s390x-core64.xml: New file.
906         * features/s390-linux32.xml: New file.
907         * features/s390-linux64.xml: New file.
908         * features/s390x-linux64.xml: New file.
909         * features/s390-linux32.c: New generated file.
910         * features/s390-linux64.c: New generated file.
911         * features/s390x-linux64.c: New generated file.
912
913         * regformats/s390-linux32.dat: New generated file.
914         * regformats/s390-linux64.dat: New generated file.
915         * regformats/s390x-linux64.dat: New generated file.
916         * regformats/reg-s390.dat: Remove.
917         * regformats/reg-s390x.dat: Remove.
918
919         * s390-nat.c: Include "auxv.h" and <elf.h>.
920         (HWCAP_S390_HIGH_GPRS): Define if undefined.
921         (s390_target_wordsize): New function.
922         (s390_auxv_parse): Likewise.
923         (s390_get_hwcap): Likewise.
924         (s390_read_description): Likewise.
925         (_initialize_s390_nat): Install s390_auxv_parse and
926         s390_read_description.
927
928         * s390-tdep.c: Include "features/s390-linux32.c",
929         "features/s390-linux64.c", and "features/s390x-linux64.c".
930         (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
931         (s390_register_call_saved): New function.
932         (s390_register_name): Remove.
933         (s390_register_type): Remove.
934         (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
935         (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
936         (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
937         (s390_pseudo_register_name): New function.
938         (s390_pseudo_register_type): New function.
939         (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
940         Handle full GPR pesudos and varying pseudo register numbers.
941         (s390_pseudo_register_write): Likewise
942         (s390x_pseudo_register_read): Remove.
943         (s390x_pseudo_register_write): Likewise.
944         (s390_register_group): Remove.
945         (s390_pseudo_register_group): New function.
946         (s390_regmap_gregset): Add GPR upper halves.
947         (s390x_regmap_gregset): Likewise.
948         (s390_regmap_fpregset): Likewise.
949         (s390_regmap_upper): New global variable.
950         (s390_upper_regset): New global variable.
951         (s390_upper_regset_sections): New global variable.
952         (s390_regset_from_core_section): Handle GPR upper halves.
953         (s390_core_read_description): New function.
954         (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
955         register information.  Handle varying pseudo register numbers.
956         (s390_backchain_frame_unwind_cache): Likewise.
957         (s390_frame_prev_register): Unwind full GPRs to show lower halves.
958         (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
959         (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
960         PC and CC pseudos.  Unwind upper halves and full GPRs as appropriate.
961         Handle varying pseudo register numbers.
962         (s390_unwind_pc): Handle varying pseudo register numbers.
963         (s390_dwarf2_prev_register): New function.
964         (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
965         register information.  Handle varying pseudo register numbers.
966         Install s390_dwarf2_prev_register to unwind full GPRs.
967         (s390_gdbarch_init): Handle target descriptions.  Assign varying
968         pseudo register numbers.  Install s390_adjust_frame_regnum.
969         (_initialize_s390_tdep): Initialize target descriptions.
970
971         * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
972         (S390_NUM_REGS): Redefine to include upper half registers.
973         (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
974         (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
975         (tdesc_s390_linux32): Add declaration.
976         (tdesc_s390_linux64): Likewise.
977         (tdesc_s390x_linux64): Likewise.
978
979 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
980
981         * regset.h (struct core_regset_section): Add HUMAN_NAME.
982         * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
983         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
984         (ppc_linux_vmx_regset_sections): Likewise.
985         (ppc_linux_fp_regset_sections): Likewise.
986
987         * corelow.c (get_core_register_section): Constify arguments.
988         (get_core_registers): Use gdbarch_core_regset_sections instead
989         of hard-coded platform-specific register section names.
990
991 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
992
993         * dwarf2loc.c (read_pieced_value): If a piece occupies part of
994         a register, assume the least-significant part is used.
995         (write_pieced_value): Likewise.
996
997 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
998
999         * printcmd.c: Include "arch-utils.h".
1000         (do_one_display): Re-parse expression if current architecture changed.
1001
1002 2010-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1003             Joel Brobecker  <brobecker@adacore.com>
1004
1005         * gdbtypes.c (check_typedef): New comment on type length.
1006         * value.c (allocate_value_lazy): Remove the unused atype variable.  New
1007         comment on type length.
1008         (value_primitive_field): Keep the original TYPE value, new comment.
1009
1010 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1011
1012         * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
1013         p_start.  Change != comparisons to > and < comparisons.
1014
1015 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1016
1017         * cli/cli-script.c (process_next_line): Check P2 overrun.
1018
1019 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
1020
1021         Update the copyright hearder to add year 2010 for most GDB files.
1022
1023 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
1024
1025         Fix build failure in inf-ptrace.c.
1026         * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
1027
1028 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
1029
1030         * top.c (print_gdb_version): Update copyright year.
1031
1032 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
1033
1034         Fix break *FUN'address thread NUM.
1035         * ada-lex.l (task): Expand rule to also match the thread keyword.
1036
1037 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
1038
1039         Fix break *FUN'address task NUM.
1040         * ada-lex.l (task): New rule.
1041         * ada-lang.c (valid_task_id): Make sure the Ada task list has
1042         been built before using it.
1043
1044 For older changes see ChangeLog-2009.
1045 \f
1046 Local Variables:
1047 mode: change-log
1048 left-margin: 8
1049 fill-column: 74
1050 version-control: never
1051 coding: utf-8
1052 End: