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