1 2010-12-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3 Code cleanup - renaming.
4 * breakpoint.c: Use bl for `*bp_location' variables, blp_tmp for
5 `**bp_location' helper variables, b_tmp for `*breakpoint' helper
8 2010-12-27 Kevin Buettner <kevinb@redhat.com>
9 Hui Zhu <teawater@gmail.com>
11 * mips-tedp.c (mips_register_name): Add comments.
13 2010-12-23 Yao Qi <yao@codesourcery.com>
15 * arm-tdep.c (thumb_analyze_prologue): Move some code ...
16 (EXTRACT_MOVW_MOVT_IMM_T): ... here. New macro.
17 (EXTRACT_MOVW_MOVT_IMM_A): New macro.
18 (arm_analyze_load_stack_chk_guard): New.
19 (arm_skip_stack_protector): New.
20 (arm_skip_prologue): Adjust post_prologue_pc by
21 arm_skip_stack_protector.
23 2010-12-23 Joel Brobecker <brobecker@adacore.com>
25 * mi/mi-main.c (mi_cmd_remove_inferior): Use _() marker for error
26 message. Change spelling of "can not" into "cannot".
28 2010-12-23 Yao Qi <yao@codesourcery.com>
30 * arm-tdep.c (arm_gdbarch_init): Remove invoke to
31 set_gdbarch_deprecated_fp_regnum.
33 2010-12-22 Marc Khouzam <marc.khouzam@ericsson.com>
35 * inferior.c (remove_inferior_command): Don't remove an active inferior.
36 * mi/mi-main.c (mi_cmd_remove_inferior): Ditto.
38 2010-12-21 Tom Tromey <tromey@redhat.com>
40 * thread.c (print_thread_info): Make a ui-out table in CLI mode.
42 2010-12-20 Yao Qi <yao@codesourcery.com>
44 * arm-tdep.c (arm_register_reggroup_p): New.
45 (arm_gdbarch_init): Set arm_register_reggroup_p for hook
48 2010-12-20 Yao Qi <yao@codesourcery.com>
50 * features/arm-core.xml: Add attribute type to reg from r0 to r12.
51 * features/arm-with-iwmmxt.c: Regenerate.
52 * features/arm-with-neon.c: Regenerate.
53 * features/arm-with-vfpv2.c: Regenerate.
54 * features/arm-with-vfpv3.c: Regenerate.
56 2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
58 * mi/mi-main.c (mi_cmd_remove_inferior): Don't delete current inferior.
59 (get_other_inferior): New.
61 2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
63 * python/py-progspace.c (py_free_pspace): Obtain arch another
64 way to avoid dereferencing a null pointer.
66 2010-12-17 Michael Snyder <msnyder@vmware.com>
68 * utils.c (do_my_cleanups): Comment fix-up.
70 2010-12-17 Kevin Buettner <kevinb@redhat.com>
72 * mips-tdep.c (make_mips16_addr): New function.
73 (mips_elf_make_msymbol_special): Don't set the low bit in the
75 (mips_read_pc, mips_unwind_pc, mips_addr_bits_remove): Strip bit
76 indicating mips16 address, if present.
77 (mips_write_pc): Set bit indicating mips16 address when in a mips16
79 (mips_eabi_push_dummy_call, mips_o64_push_dummy_call): Likewise,
80 but for each function pointer argument to inferior function call.
82 2010-12-17 Tom Tromey <tromey@redhat.com>
84 * psympriv.h (struct partial_symtab) <readin>: Move field
87 2010-12-16 Kevin Buettner <kevinb@redhat.com>
89 * mips-tdep.c (mips_convert_register_float_case_p)
90 (mips_convert_register_gpreg_case_p): New functions.
91 (mips_convert_register_p): Invoke new functions above.
92 (mips_register_to_value): Add case for fetching value shorter
93 than 64 bits from a 64-bit register.
94 (mips_value_to_register): Add case for storing value shorter
95 than 64 bits into a 64-bit register.
97 2010-12-16 Joel Borggrén-Franck <joel.borggren.franck@gmail.com>
99 * python/py-value.c (value_object_type) <tp_flags>: Add
102 2010-12-16 Mike Frysinger <vapier@gentoo.org>
104 * NEWS: Mention new sim --map-info flag.
106 2010-12-15 Doug Evans <dje@google.com>
108 * dwarf2read.c (_initialize_dwarf2_read): Fix help text of
109 "save gdb-index" command.
111 2010-12-15 Tom Tromey <tromey@redhat.com>
113 * infrun.c (save_infcall_control_state): Handle the
114 exception-resume breakpoint.
115 (restore_infcall_control_state): Likewise.
116 (discard_infcall_control_state): Likewise.
118 2010-12-15 Kevin Buettner <kevinb@redhat.com>
120 * mips-tdep.c (mips_pseudo_register_write): Sign extend 32-bit
121 cooked values that are being transferred to 64-bit raw registers.
122 (mips_pseudo_register_read): Revise to preserve symmetry with
123 mips_pseudo_register_write().
125 2010-12-15 Greg Watson <g.watson@computer.org>
127 * f-exp.y (yylex): Check entire token against keywords.
129 2010-12-15 Doug Evans <dje@google.com>
131 Rename "maint set python auto-load" to "set auto-load-scripts".
133 * python/py-auto-load.c (auto_load_scripts): Renamed from
135 (load_auto_scripts_for_objfile): Update.
136 (gdbpy_initialize_auto_load): Rename "maint set python auto-load" to
137 "set auto-load-scripts".
139 2010-12-14 Kevin Buettner <kevinb@redhat.com>
141 * mips-tdep.c (mips_eabi_push_dummy_call): Place signed, rather
142 than unsigned, values in registers.
144 2010-12-14 Ken Werner <ken.werner@de.ibm.com>
146 * valops.c (value_one): Use get_array_bounds to compute the number
147 of array elements instead of dividing the length of the array by the
148 length of the element types.
149 * valarith.c (value_complement, value_neg): Likewise.
151 2010-12-14 Joel Brobecker <brobecker@adacore.com>
153 * irix5-nat.c: Replace fp_r, fp_regs and fp_scr by __fp_r, __fp_regs
154 and __fp_scr respectively throughout.
155 * configure.ac: Compile with -Dsiginfo=__siginfo if building with
156 Python using GCC on IRIX.
157 * configure: Regenerate.
159 2010-12-13 Kevin Buettner <kevinb@redhat.com>
161 * solib-svr4.c (enable_break): Don't attempt to place breakpoints,
162 when attaching, on the names in bkpt_names: _start, __start, and
165 2010-12-12 Stan Shebs <stan@codesourcery.com>
167 * value.c (value_of_internalvar): Add case for trace state
170 2010-12-12 Doug Evans <dje@google.com>
172 * dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table.
173 (dwarf2_per_cu_quick_data): Move definition down to "quick functions"
174 section. Delete members lines full_names. Rename read_lines to
176 (quick_file_names): New struct.
177 (hash_file_name_entry, eq_file_name_entry): New functions.
178 (delete_file_name_entry, create_quick_file_names_table): New functions.
179 (dwarf2_read_index): Initialize quick_file_names_table.
180 (dw2_get_file_names): Renamed from dw2_require_line_header.
181 Return pointer to quick_file_names entry. All callers updated.
182 (dw2_get_real_path): Renamed from dw2_require_full_path.
183 Replace per_cu arg with pointer to quick_file_names entry.
185 (dw2_free_cached_file_names): New function.
186 (dw2_forget_cached_source_info): Call it (via htab_traverse_noresize).
187 (dwarf2_initialize_objfile): Initialize quick_file_names_table in
188 the OBJF_READNOW case.
189 (dwarf2_free_objfile): Rewrite freeing of quick file names tables.
191 2010-12-12 Mark Kettenis <kettenis@gnu.org>
193 * mips64obsd-tdep.c (floatformats_mips64_quad): New define.
194 (mips64obsd_init_abi): Set long_double_bit and long_double_format.
196 2010-12-12 Mark Kettenis <kettenis@gnu.org>
198 * sparc-tdep.c: Fix typo in comment.
200 2010-12-10 Doug Evans <dje@google.com>
202 * dwarf2read.c: Whitespace cleanup, plus comment additions.
205 2010-12-10 Tom Tromey <tromey@redhat.com>
207 * NEWS: Document exception-handling change.
209 2010-12-09 Marc Khouzam <marc.khouzam@ericsson.com>
211 * mi/mi-parse.c (mi_parse): Wrong error message.
213 2010-12-09 Doug Evans <dje@google.com>
215 * symfile.h (quick_symbol_functions): Clarify usage of
216 map_symbol_filenames.
218 2010-12-09 Tom Tromey <tromey@redhat.com>
220 * mi/mi-parse.h (mi_parse): Update.
221 * mi/mi-parse.c (mi_parse_cleanup): New function.
222 (mi_parse): Add 'token' argument. Throw exception on error.
223 * mi/mi-main.c (mi_print_exception): New function.
224 (mi_execute_command): Use mi_print_exception. Catch exceptions
227 2010-12-09 Tom Tromey <tromey@redhat.com>
230 * thread.c (clear_thread_inferior_resources): Call
231 delete_longjmp_breakpoint.
232 * infrun.c (handle_inferior_event): Handle exception breakpoints.
233 (handle_inferior_event): Likewise.
234 (insert_exception_resume_breakpoint): New function.
235 (check_exception_resume): Likewise.
236 * inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
237 * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
238 (step_1): Set thread's initiating frame.
239 (until_next_continuation): New function.
240 (until_next_command): Support exception breakpoints.
241 (finish_command_continuation): Delete longjmp breakpoint.
242 (finish_forward): Support exception breakpoints.
243 * gdbthread.h (struct thread_info) <initiating_frame>: New field.
244 * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
245 bp_exception_master>: New constants.
246 (struct bpstat_what) <is_longjmp>: New field.
247 (set_longjmp_breakpoint): Update.
248 * breakpoint.c (create_exception_master_breakpoint): New function.
249 (update_breakpoints_after_exec): Handle bp_exception_master. Call
250 create_exception_master_breakpoint.
251 (print_it_typical): Handle bp_exception_master, bp_exception.
252 (bpstat_stop_status): Handle bp_exception_master.
253 (bpstat_what): Handle bp_exception_master, bp_exception,
255 (bptype_string): Likewise.
256 (print_one_breakpoint_location): Likewise.
257 (allocate_bp_location): Likewise.
258 (set_longjmp_breakpoint): Handle exception breakpoints. Change
260 (delete_longjmp_breakpoint): Handle exception breakpoints.
262 (struct until_break_command_continuation_args) <thread_num>: New
264 (until_break_command_continuation): Call
265 delete_longjmp_breakpoint.
266 (until_break_command): Support exception breakpoints.
267 (delete_command): Likewise.
268 (breakpoint_re_set_one): Likewise.
269 (breakpoint_re_set): Likewise.
271 2010-12-08 Doug Evans <dje@google.com>
273 * gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
275 * gdbtypes.c (check_typedef): Tweak comment.
278 * dwarf2read.c (struct psymtab_cu_index_map): New struct.
279 (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
280 (struct addrmap_index_data): New struct.
281 (add_address_entry): Remove arg `pst', new args `start', `end'.
282 (add_address_entry_worker, write_address_map): New functions.
283 (write_psymtabs_to_index): Address table generation moved to
284 write_address_map. Build a table mapping psymtab to CU index
287 * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
290 * symfile.h (quick_symbol_functions): Clarify usage of
291 expand_symtabs_with_filename.
292 * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
293 comp units, ignore type units.
295 * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
297 2010-12-07 Doug Evans <dje@google.com>
299 * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
303 * NEWS: Mention -data-directory.
304 * main.c (captured_main): Recognize -data-directory.
306 2010-12-06 Marc Khouzam <marc.khouzam@ericsson.com>
308 * mi/mi-parse.c (mi_parse): Missing else.
310 2010-12-04 Masaki Muranaka <monaka@monami-software.com>
312 * configure.tgt: Accept microblaze*-*-linux* for linux target
313 and microblaze*-*-* for as target.
315 2010-12-02 Keith Seitz <keiths@redhat.com>
317 * linespec.c (find_method): Move name canonicalization outside
319 Be paranoid and use a cleanup.
321 2010-12-01 Doug Evans <dje@google.com>
323 * dwarf2read.c (save_gdb_index_command): Add comment.
325 2010-12-01 Ulrich Weigand <uweigand@de.ibm.com>
327 * valops.c (value_assign): Returned value is never lazy. If a
328 C++ class type is returned, fix incorrect enclosing type / embedded
329 offset. If internal variable is returned, allocate new internalvar
330 value using value_of_internalvar.
332 * NEWS: Document changes in behavior of "print x = 0" and similar
335 2010-11-29 Doug Evans <dje@google.com>
337 * python/lib/gdb/printing.py (register_pretty_printer): Change
338 printer-name:subprinter-name to printer-name;subprinter-name.
339 * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
341 (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
343 2010-11-29 Tom Tromey <tromey@redhat.com>
345 * opencl-lang.c (lval_func_check_synthetic_pointer): New
347 * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
349 (value_bits_synthetic_pointer): Declare.
350 * value.c (value_bits_synthetic_pointer): New function.
351 * valprint.c (valprint_check_validity): Handle synthetic
353 * valops.c (value_ind): Use new 'indirect' lval_funcs method.
354 * valarith.c (value_ptradd): Use set_value_component_location.
355 * p-valprint.c (pascal_object_print_value_fields): Handle
357 * jv-valprint.c (java_print_value_fields): Handle synthetic
359 * dwarf2read.c (dwarf_stack_op_name): Add
360 DW_OP_GNU_implicit_pointer.
361 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
362 arguments. Handle location lists.
363 (fill_in_loclist_baton): New function.
364 (dwarf2_symbol_mark_computed): Use it.
365 * dwarf2loc.h (dwarf2_find_location_expression): Declare.
366 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
368 * dwarf2loc.c (dwarf2_find_location_expression): Rename from
369 find_location_expression. No longer static. Update all callers.
370 (dwarf_expr_frame_pc): New function.
371 (per_cu_dwarf_call): Add get_frame_pc, baton arguments. Update
373 (struct piece_closure) <per_cu>: New field.
374 (allocate_piece_closure): Add per_cu argument.
375 (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
376 (check_pieced_value_bits): Remove validity argument, add check_for
377 argument. Handle DWARF_VALUE_IMPLICIT_POINTER.
378 (check_pieced_value_validity, check_pieced_value_invalid):
380 (check_pieced_synthetic_pointer): New function.
381 (get_frame_address_in_block_wrapper): New function.
382 (indirect_pieced_value): New function.
383 (pieced_value_funcs): Update.
384 (invalid_synthetic_pointer): New function.
385 (dwarf2_evaluate_loc_desc_full): Rename from
386 dwarf2_evaluate_loc_desc. Add byte_offset argument.
387 (dwarf2_evaluate_loc_desc): Rewrite.
388 (dwarf2_loc_desc_needs_frame): Set new field on context.
389 (get_ax_pc): New function.
390 (disassemble_dwarf_expression): Handle
391 DW_OP_GNU_implicit_pointer.
392 * dwarf2expr.h (enum dwarf_value_location)
393 <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
394 (struct dwarf_expr_context) <get_frame_pc>: New field.
395 (struct dwarf_expr_piece) <v.ptr>: New field.
396 * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
397 (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
398 * dwarf2-frame.c (no_get_frame_pc): New function.
399 (execute_stack_op): Set new field on context.
400 * cp-valprint.c (cp_print_value_fields): Handle synthetic
403 2010-11-29 Phil Muldoon <pmuldoon@redhat.com>
407 * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
409 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
411 Fix step_resume_breakpoint unsaved during an infcall.
412 * gdbthread.h (struct thread_control_state): Move here field
413 step_resume_breakpoint ...
414 (struct thread_info): ... from here.
415 * infrun.c (save_infcall_control_state): Reset
416 control.step_resume_breakpoint to NULL.
417 (restore_infcall_control_state, discard_infcall_control_state): Delete
418 control.step_resume_breakpoint.
419 * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
422 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
424 Rename and move inferior_thread_state and inferior_status.
425 * gdbthread.h (struct thread_control_state): New struct, move fields
426 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
427 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
428 stop_step and stop_bpstat here from struct thread_info.
429 (struct thread_suspend_state): New struct, move field stop_signal here
430 from struct thread_info.
431 (struct thread_info): Move the fields above from this struct.
432 * inferior.h: Move the inferior_thread_state and inferior_status
433 declarations comment to their definitions at infrun.c.
434 (struct inferior_control_state): New struct, move field stop_soon from
435 struct inferior here.
436 (struct inferior_suspend_state): New empty struct.
437 (struct inferior): New fields control and suspend. Move out field
439 * infrun.c (struct inferior_thread_state): Rename to ...
440 (infcall_suspend_state): ... here. Replace field stop_signal by
441 fields thread_suspend and inferior_suspend.
442 (save_inferior_thread_state): Rename to ...
443 (save_infcall_suspend_state): ... here. New variable inf. Update the
445 (restore_inferior_thread_state): Rename to ...
446 (restore_infcall_suspend_state): ... here. New variable inf. Update
447 the code for new fields.
448 (do_restore_inferior_thread_state_cleanup): Rename to ...
449 (do_restore_infcall_suspend_state_cleanup): ... here.
450 (make_cleanup_restore_inferior_thread_state): Rename to ...
451 (make_cleanup_restore_infcall_suspend_state): ... here.
452 (discard_inferior_thread_state): Rename to ...
453 (discard_infcall_suspend_state): ... here.
454 (get_inferior_thread_state_regcache): Rename to ...
455 (get_infcall_suspend_state_regcache): ... here.
456 (struct inferior_status): Rename to ...
457 (struct infcall_control_state): ... here. Replace fields
458 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
459 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
460 stop_step, stop_bpstat and stop_soon by fields thread_control and
462 (save_inferior_status): Rename to ...
463 (save_infcall_control_state): ... here. Update the code for new
465 (restore_inferior_status): Rename to ...
466 (restore_infcall_control_state): ... here. Update the code for new
468 (do_restore_inferior_status_cleanup): Rename to ...
469 (do_restore_infcall_control_state_cleanup): ... here.
470 (make_cleanup_restore_inferior_status): Rename to ...
471 (make_cleanup_restore_infcall_control_state): ... here.
472 (discard_inferior_status): Rename to ...
473 (discard_infcall_control_state): ... here.
474 * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
475 exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
476 inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
477 mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
478 solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
479 references to the moved fields and renamed functions.
481 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
483 * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
485 (save_inferior_thread_state): Reset tp->stop_signal.
487 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
489 * infcall.c (call_function_by_hand): Remove variable
490 caller_state_cleanup.
492 2010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
496 * breakpoint.c (is_marker_spec): Check for NULL.
498 2010-11-25 Pedro Alves <pedro@codesourcery.com>
500 * breakpoint.h: No longer include python.h or python-internal.h.
501 (struct breakpoint_object): Forward declare.
502 * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
503 * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
504 * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
506 (gdbpy_breakpoint_created): Remove casts around py_bp_object
509 2010-11-24 Joel Brobecker <brobecker@adacore.com>
511 * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
512 only if HAVE_ELF is defined.
514 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
517 * infrun.c (struct inferior_status) <stepping_over_breakpoint>
518 (save_inferior_status) <stepping_over_breakpoint>
519 (restore_inferior_status) <stepping_over_breakpoint>: Rename to
521 (struct inferior_status) <step_resume_break_address>: Remove.
523 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
526 * infrun.c (struct inferior_status, save_inferior_status)
527 (restore_inferior_status): Group and reorder the fields, comment their
530 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
534 (struct dict_vector) <iter_match_first, iter_match_next>
535 (iter_match_first_hashed, iter_match_next_hashed)
536 (iter_match_first_linear, iter_match_next_linear)
537 (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
538 (iter_match_next_hashed, iter_match_first_linear)
539 (iter_match_next_linear): Use symbol_compare_ftype.
540 * dictionary.h: Include symfile.h.
541 (dict_iter_match_first, dict_iter_match_next): Use
542 symbol_compare_ftype.
543 * dwarf2read.c (dw2_map_matching_symbols): Likewise.
544 * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
545 (map_matching_symbols_psymtab): Likewise.
546 * symfile.h (symbol_compare_ftype): New typedef.
547 (struct quick_symbol_functions) <map_matching_symbols): Use
548 symbol_compare_ftype.
550 2010-11-23 Tom Tromey <tromey@redhat.com>
552 * configure: Rebuild.
553 * configure.ac (READLINE_TEXI_INCFLAG): New subst.
555 2010-11-19 Tom Tromey <tromey@redhat.com>
557 * Makefile.in (SUBDIRS): Add doc.
558 * configure: Rebuild.
559 * configure.ac: Don't configure in doc. Create doc/Makefile.
561 2010-11-23 Phil Muldoon <pmuldoon@redhat.com>
565 * python/py-inferior.c (find_thread_object): Check if PIDGET
568 010-11-22 Joel Brobecker <brobecker@adacore.com>
570 * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
572 2010-11-22 Joel Brobecker <brobecker@adacore.com>
574 * ada-lang.c (ada_to_fixed_type): Expand function documentation.
575 Return the original type if the main type portions match rather
576 than when the type themselves match.
578 2010-11-22 Joel Brobecker <brobecker@adacore.com>
580 * ada-lang.c (ada_template_to_fixed_record_type_1):
581 For dynamic fields, check the field size against the maximum
584 2010-11-22 Joel Brobecker <brobecker@adacore.com>
586 * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
588 (mips_irix_n32_stack_tramp_frame): New static global.
589 (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
592 2010-11-22 Jerome Guitton <guitton@adacore.com>
594 * ada-tasks.c (get_tcb_types_info): Use C lookups to get
597 2010-11-22 Joel Brobecker <brobecker@adacore.com>
599 * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
600 if type1 is a typedef.
602 2010-11-22 Joel Brobecker <brobecker@adacore.com>
604 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
605 "_finalizer" to the list.
607 2010-11-22 Joel Brobecker <brobecker@adacore.com>
609 * symfile.c: Remove all "#if 0"/"#endif" blocks.
611 2010-11-22 Joel Brobecker <brobecker@adacore.com>
613 * symfile.c: Add missing second space after period in various comments.
615 2010-11-22 Joel Brobecker <brobecker@adacore.com>
617 * ada-typeprint.c (print_array_type): Fix formatting in comment.
618 (print_selected_record_field_types): Fix formatting in function
621 2010-11-22 Joel Brobecker <brobecker@adacore.com>
623 * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
624 in name of "show ravenscar" prefix command name.
626 2010-11-22 Joel Brobecker <brobecker@adacore.com>
628 * ravenscar-thread.c (show_ravenscar_task_switching_command):
629 Add missing '\n' in output.
631 2010-11-22 Joel Brobecker <brobecker@adacore.com>
633 * ravenscar-thread.c (running_thread_name): Change value.
634 (read_thread_id): Remove advance declaration.
635 (get_running_thread_msymbol): New function.
636 (has_ravenscar_runtime): Use get_running_thread_msymbol to
637 compute msym_running_thread.
638 (get_running_thread_id): Renames read_thread_id. Slight modifications
639 to not take any argument anymore, using get_running_thread_msymbol
640 to determine which symbol to use instead.
641 (ravenscar_running_thread): Use get_running_thread_id instead of
644 2010-11-22 Joel Brobecker <brobecker@adacore.com>
646 * ravenscar-sparc-thread.c (supply_register_at_address):
647 Fix passing of buf in call to regcache_raw_supply.
649 2010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
651 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
653 2010-11-22 Tom Tromey <tromey@redhat.com>
655 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
657 2010-11-19 Keith Seitz <keiths@redhat.com>
659 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
660 Remove extraneous '/' after $(DESTDIR).
661 (PYTHON_INSTALL_DIR): Likewise.
663 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
665 Fix stale memory references.
666 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
669 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
670 Tom Tromey <tromey@redhat.com>
672 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
673 (.PHONY): Remove for .y outputs.
675 2010-11-19 Will Drewry <wad@google.com>
676 Tavis Ormandy <taviso@google.com>
677 Jan Kratochvil <jan.kratochvil@redhat.com>
679 * dwarf2read.c (decode_locdesc): Enforce location description stack
682 2010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
684 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
685 instruction is found.
687 2010-11-17 Tom Tromey <tromey@redhat.com>
689 * value.c (value_entirely_optimized_out): Check the
690 'check_any_valid' field.
692 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
694 * ada-lang.c (modify_general_field): Remove.
695 (make_array_descriptor): Replace all modify_general_field calls by
697 * value.c (modify_field): Update comment. New variable bytesize.
698 Normalize BITPOS. Initialize BYTESIZE, use it.
700 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
702 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
703 elements after xfree.
705 2010-11-16 Tom Tromey <tromey@redhat.com>
707 * gdb-add-index.sh: Really remove.
709 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
712 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
713 (init_one_comp_unit): ... this one.
714 (prepare_one_comp_unit): New prototype.
715 (dw2_require_line_header, process_psymtab_comp_unit): Use
717 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
718 (load_partial_comp_unit): Remove variable attr. Use
719 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
720 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
721 prepare_one_comp_unit.
722 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
723 Use prepare_one_comp_unit.
724 (alloc_one_comp_unit): Rename to ...
725 (init_one_comp_unit): ... here and remove there calloc, new parameter
727 (prepare_one_comp_unit): New function.
729 2010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
731 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
732 possible used of uninitialized variable.
734 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
736 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
737 (rs6000_gdbarch_init): Call it.
739 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
741 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
742 instructions if debugging an E500 binary.
744 2010-11-12 Tom Tromey <tromey@redhat.com>
746 * varobj.c (value_get_print_value): Rearrange. Pass stream to
747 apply_varobj_pretty_printer.
748 * c-lang.c: Include exceptions.h.
749 (c_get_string): Throw MEMORY_ERROR when appropriate.
750 * python/py-prettyprint.c (enum string_repr_result): New.
751 (print_stack_unless_memory_error): New function.
752 (print_string_repr): Change return type. Use
753 print_stack_unless_memory_error.
754 (print_children): Use print_stack_unless_memory_error.
755 (apply_val_pretty_printer): Update. Don't print children if
756 string representation threw an exception.
757 (apply_varobj_pretty_printer): Add 'stream' argument. Use
758 print_stack_unless_memory_error.
759 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
761 (_initialize_python): Initialize them.
762 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
763 gdbpy_convert_exception.
764 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
765 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
766 (gdbpy_convert_exception): Declare.
767 (apply_varobj_pretty_printer): Update.
768 * python/py-utils.c (gdbpy_convert_exception): New function.
770 2010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
772 * mi/mi-main.c (mi_cmd_target_detach): Accept new
773 thread-group id format.
775 2010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
777 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
779 2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
781 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
783 (BPPY_SET_REQUIRE_VALID): Ditto.
784 (bpnum_is_valid): Delete function.
785 (bppy_get_visibility): New function.
786 (bppy_new): Parse for, and validate internal keyword. Pass
787 internal keyword to breakpoint or watchpoint functions.
788 (build_bp_list): New function.
789 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
790 iterate_over_breakpoints.
791 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
793 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
794 to internal breakpoint chain.
796 * breakpoint.c (set_breakpoint_number): New function.
797 (breakpoint_1): Check if breakpoint number is more than zero.
798 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
799 (create_breakpoint_sal): Take a new parameter called internal.
800 Call set_breakpoint_number with internal parameter. Do not
801 mention internal breakpoints. All callers updated.
802 (create_breakpoint): Ditto.
803 (create_breakpoints_sal): Ditto.
804 (watch_command_1): Ditto.
805 (watch_command_wrapper): Take a new parameter called internal.
807 (rwatch_command_wrapper): Ditto.
808 (awatch_command_wrapper): Ditto.
809 (save_breakpoints): Update breakpoint save condition check.
810 (iterate_over_breakpoints): New function.
811 * breakpoint.h: Add conditional python includes. Add py_bp_object
812 and comment to struct breakpoint. Update all callers.
813 * defs.h: Add PyObject definition for GDB builds without Python.
815 2010-11-10 Doug Evans <dje@google.com>
817 * python/lib/gdb/command/pretty_printers.py
818 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
820 * value.c (set_value_enclosing_type): Renamed from
821 value_change_enclosing_type. All callers updated.
822 * value.h (set_value_enclosing_type): Update.
823 * valops.c (value_full_object): Always return a copy if we need to
824 make changes to the input value.
826 2010-11-09 Pedro Alves <pedro@codesourcery.com>
828 * breakpoint.c (watch_command_1): Get a pointer of the lazy
829 version of the expression's value, even if reading the value from
830 memory fails. When creating a -location watchpoint, get the
831 value's address from the lazy value pointer.
833 2010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
835 * infrun.c (restore_inferior_thread_state): Use
836 discard_inferior_thread_state to free the data.
837 (discard_inferior_thread_state): xfree also siginfo_data.
839 2010-11-05 Doug Evans <dje@google.com>
841 Make gdb.parameter("directories") work.
842 New command "set directories".
843 * NEWS: Document them.
844 * source.c (set_directories_command): New function.
845 (show_directories_1): Renamed from show_directories.
847 (show_directories_command): New function.
848 (_initialize_source): Install "directories" as a set/show
849 variable instead of just a show command.
851 2010-11-05 Ken Werner <ken.werner@de.ibm.com>
853 * NEWS: Mention OpenCL C language support.
854 * Makefile.in (SFILES): Add opencl-lang.c.
855 (COMMON_OBS): Add opencl-lang.o.
856 * opencl-lang.c: New File
857 * defs.h (enum language): Add language_opencl.
858 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
859 IBM XL C OpenCL compiler.
860 * c-lang.h: Include "parser-defs.h".
861 (evaluate_subexp_c): Declare.
862 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
863 (c_op_print_tab): Add declaration.
864 * eval.c (binop_promote): Handle language_opencl.
865 * c-exp.y: Lookup the primitive types instead of referring to the
868 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
870 Fix configure --enable-plugins --without-python.
871 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
872 * configure: Regenerate.
874 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
876 * solib.c (solib_read_symbols): Call exception_fprintf even without
877 FROM_TTY. Print also so->so_name.
879 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
881 * gdbtypes.h (struct rank): Created subrank.
882 * gdbtypes.c: Initialized subrank for all
884 (distance_to_ancestor): New function.
885 (is_ancestor): Use distance_to_ancestor.
886 (is_public_ancestor): Ditto.
887 (sum_ranks): Handle subrank.
888 (compare_ranks): Ditto.
889 (rank_one_type): Subrank base conversions.
891 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
893 * gdbtypes.h: Create struct rank.
894 Convert all 'BADNESS' macros to const struct rank declarations.
895 (sum_ranks): New function.
896 (compare_ranks): New function.
897 * valops.c (find_oload_champ): Updated.
898 (classify_oload_match): Use compare_ranks.
900 (compare_parameters): Use compare_ranks.
901 * gdbtypes.c: Initialize 'BADNESS' constants.
902 (sum_ranks): New function.
903 (compare_ranks): New function.
904 (compare_badness): Use compare_ranks.
905 (rank_function): Use global constants instead of literals.
906 (rank_one_type): Ditto.
910 2010-11-04 Doug Evans <dje@google.com>
912 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
913 (find_pretty_printer): Fix comments.
915 2010-11-04 Hui Zhu <teawater@gmail.com>
917 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
919 2010-11-03 Joel Brobecker <brobecker@adacore.com>
921 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
922 and `len' declaration and computation inside block where they
925 2010-11-03 Joel Brobecker <brobecker@adacore.com>
927 * valprint.c (val_print_array_elements): Put back handling of
930 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
932 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
933 DIE and set the length of the type.
934 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
935 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
936 return 0 if the corresponding bounds of the type are undefined.
937 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
938 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
939 (val_print_array_elements): Use get_array_bounds to compute the number
940 of array elements instead of dividing the length of the array by the
941 length of the element types.
942 * valarith.c (vector_binop): Likewise.
943 * valops.c (value_cast): Likewise.
944 * c-valprint.c (c_val_print): Likewise.
945 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
947 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
949 * valarith.c (value_pos, value_neg, value_complement): Handle
951 * valops.c (value_one): Likewise.
953 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
955 * value.h (value_non_lval): Declare.
956 * value.c (value_non_lval): New function.
957 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
958 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
961 2010-11-02 Doug Evans <dje@google.com>
963 New python module gdb.printing, and new commands info pretty-printer,
964 enable pretty-printer, disable pretty-printer.
965 * NEWS: Mention them.
966 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
967 gdb/command/__init__.py, gdb/command/pretty_printers.py.
968 * python/lib/gdb/__init__.py: Install pretty-printer commands.
969 * python/lib/gdb/printing.py: New file.
970 * python/lib/gdb/command/__init__.py: New file.
971 * python/lib/gdb/command/pretty_printers.py: New file.
973 2010-11-02 Tom Tromey <tromey@redhat.com>
975 * NEWS: Mention Guile removal.
976 * defs.h (enum language) <language_scm>: Remove.
977 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
979 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
980 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
981 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
984 2010-11-02 Doug Evans <dje@google.com>
986 * top.c: #include "python/python.h".
987 (gdb_init): Add a comment regarding initialize_all_files.
988 Call finish_python_initialization at the end.
989 * python/python.h (finish_python_initialization): Declare.
990 * python/python.c (finish_python_initialization): New function.
991 (_initialize_python): Move python-implemented initialization there
993 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
995 2010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
998 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
999 Pedro Alves <pedro@codesourcery.com>
1000 * gdbthread.h (currently_stepping): New declaration.
1001 * infrun.c (currently_stepping): Remove the forward declaration.
1002 (currently_stepping): Make it global.
1003 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1004 variables tp and step, initialized them. Pass STEP to to_resume.
1005 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1006 * remote.c (currently_stepping_callback): New.
1007 (remote_vcont_resume)
1008 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1009 New variable tp. Call currently_stepping_callback and step such
1012 2010-11-01 Hui Zhu <teawater@gmail.com>
1014 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
1016 2010-10-28 Hui Zhu <teawater@gmail.com>
1018 * tracepoint.c (trace_save): Change utp->actions to
1021 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1023 * (_FILE_OFFSET_BITS): Fix typo in comment.
1025 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1027 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
1028 (PyEval_InitThreads): Remove duplicate. Define as nothing.
1029 (PyEval_ReleaseLock): Define as nothing.
1031 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1033 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
1034 by call to FILENAME_CMP.
1036 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1038 * dictionary.c (dict_hash): Move assignment out of if condition.
1040 2010-10-22 Jie Zhang <jie@codesourcery.com>
1042 * Makefile.in (install): Remove dependency of install-only and
1043 recursively invoke make for install-only.
1044 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
1045 (install): Pass FLAGS_TO_PASS when recursively make install-only.
1047 2010-10-20 Hui Zhu <teawater@gmail.com>
1049 * tracepoint.c (tfile_get_traceframe_address): Call
1050 extract_signed_integer.
1051 (tfile_trace_find): Call extract_signed_integer and
1052 extract_unsigned_integer. Change data_size to unsigned int.
1053 (tfile_fetch_registers): Call extract_unsigned_integer.
1054 (tfile_xfer_partial): Ditto.
1055 (tfile_get_trace_state_variable_value): Call
1056 extract_signed_integer and extract_unsigned_integer.
1058 2010-10-20 Vladimir Prus <vladimir@codesourcery.com>
1060 * remote.c (remote_get_threadlist): If we got empty
1061 response, bail out immediately, and don't emit any
1064 2010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1066 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
1067 for "mov pc, REG" as well.
1068 (thumb_instruction_changes_pc): Likewise.
1070 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1073 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
1074 * eval.c (evaluate_subexp_standard): Check for overload of
1076 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
1077 (value_x_unop): Ditto.
1078 * valops.c: Include "exceptions.h".
1079 (find_overload_match): Throw NOT_FOUND_ERROR.
1080 (value_struct_elt): Ditto.
1082 2010-10-19 Tom Tromey <tromey@redhat.com>
1084 * python/py-cmd.c (cmdpy_function): Unreference exception state.
1086 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1088 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
1089 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
1091 Make all other conversions illegal.
1093 2010-10-18 Doug Evans <dje@google.com>
1095 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
1096 assumptions of when this case happens. Print "<unnamed typedef>".
1098 2010-10-18 Tom Tromey <tromey@redhat.com>
1100 * valprint.c (val_print_string): Pass 'encoding' to
1103 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1105 Fix the `stopped language detection' testcase for gcc-4.5.
1106 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
1107 * symfile.c (set_initial_language): Move variable filename to a more
1108 inner block. Prefer LANGUAGE_OF_MAIN.
1109 * symtab.c (language_of_main): New variable.
1110 (set_main_name): Always reset LANGUAGE_OF_MAIN.
1111 * symtab.h (language_of_main): New declaration.
1113 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1114 Pedro Alves <pedro@codesourcery.com>
1116 * gdbthread.h (currently_stepping): New declaration.
1117 * infrun.c (currently_stepping): Remove the forward declaration.
1118 (currently_stepping): Make it global.
1119 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1120 variables tp and step, initialized them. Pass STEP to to_resume.
1121 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1122 * remote.c (currently_stepping_callback): New.
1123 (remote_vcont_resume)
1124 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1125 New variable tp. Call currently_stepping_callback and step such
1128 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1130 * infrun.c (follow_exec): Replace symbol_file_add_main by
1131 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
1133 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
1135 * objfiles.c (free_all_objfiles): Likewise.
1136 * remote-m32r-sdi.c (m32r_load): Likewise.
1137 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1138 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
1139 clear_symtab_users with ADD_FLAGS.
1140 (reread_symbols): Use parameter 0 for clear_symtab_users.
1141 (clear_symtab_users): New parameter add_flags. Do not call
1142 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
1143 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
1144 * symtab.h (clear_symtab_users): New parameter add_flags.
1146 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1148 Fix GCC false warning.
1149 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
1151 2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
1153 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
1154 display of type of method arguments.
1156 2010-10-15 Tom Tromey <tromey@redhat.com>
1159 * varobj.c (value_get_print_value): Use val_print_string to print
1161 * python/py-prettyprint.c (print_string_repr): Use
1162 val_print_string to print lazy strings. Fix cleanup logic.
1163 (print_children): Likewise.
1164 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
1165 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
1166 Change return type to 'void', add 'addr' argument.
1167 * value.h (val_print_string): Update.
1168 * valprint.c (val_print_string): Add 'encoding' argument.
1169 * printcmd.c (print_formatted): Update.
1170 * p-valprint.c (pascal_val_print): Update.
1171 * m2-valprint.c (print_unpacked_pointer): Update.
1172 (m2_print_array_contents): Likewise.
1173 * jv-valprint.c (java_value_print): Update.
1174 * f-valprint.c (f_val_print): Update.
1175 * c-valprint.c (c_val_print): Update.
1176 * auxv.c (fprint_target_auxv): Update.
1178 2010-10-15 Doug Evans <dje@google.com>
1179 Jan Kratochvil <jan.kratochvil@redhat.com>
1182 * gdbtypes.c (check_typedef): Clean up function comment.
1183 Keep track of instance flags as we strip typedefs and create a new
1184 type to preserve them if necessary.
1185 * gdbtypes.h (type) <instance_flags>: Extend the comment.
1187 2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1189 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
1191 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
1193 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
1194 * gdbtypes.c (rank_one_type): Move type comparison code out of here
1196 (types_equal): ...here. And changed it as follows:
1197 Outside of typedefs type must be of the same TYPE_CODE.
1198 When compairing two pointers or references they are equal if their
1200 Correct pointer conversions.
1202 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
1204 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
1205 having fields without names.
1207 2010-10-13 Tom Tromey <tromey@redhat.com>
1209 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
1211 2010-10-13 Doug Evans <dje@google.com>
1213 New python module gdb.types.
1214 * NEWS: Document it.
1215 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
1216 * python/lib/gdb/types.py: New file.
1218 * c-typeprint.c: Whitespace cleanup.
1219 (cp_type_print_method_args): Remove unnecessary forward decl.
1220 (cp_type_print_derivation_info): Ditto.
1221 (c_type_print_varspec_prefix): Mark as static at definition.
1222 (c_type_print_modifier): Fix arg descriptions.
1224 2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1226 * python/py-breakpoint.c (bppy_set_condition): New comment.
1227 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
1228 failed PyUnicode_Decode.
1229 (cmdpy_completer): Skip element for failed
1230 python_string_to_host_string.
1231 (cmdpy_init): Return -1 on failed python_string_to_host_string.
1232 * python/py-frame.c (frapy_read_var): Extend the function comment.
1233 * python/py-function.c (fnpy_init): Return -1 on failed
1234 python_string_to_host_string.
1235 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
1236 the function comment.
1237 (infpy_search_memory): Extend the function comment. Remove the
1238 PyErr_SetString call on already set error state.
1239 * python/py-param.c (set_parameter_value): Extend the function
1240 comment. Return -1 on failed python_string_to_host_string, twice.
1241 (set_attr): Extend the function comment.
1242 (compute_enum_values): Extend the function comment. New variable
1243 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
1244 failed python_string_to_host_string.
1245 (get_doc_string): Call gdbpy_print_stack on failed
1246 python_string_to_host_string.
1247 (parmpy_init): Extend the function comment.
1248 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
1249 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
1250 failed python_string_to_host_string.
1251 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
1252 (valpy_binop, valpy_richcompare): Extend the function comment.
1254 (struct python_env) <error_type, error_value, error_traceback>: New
1256 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
1257 (ensure_python_env): Call PyErr_Fetch.
1258 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
1259 failed convert_value_from_python.
1260 (value_get_print_value): Call gdbpy_print_stack on failed
1261 python_string_to_target_python_string.
1263 2010-10-12 Tom Tromey <tromey@redhat.com>
1265 * python/py-prettyprint.c (search_pp_list): Fix error checking.
1267 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
1269 * gdbtypes.c (do_is_ancestor): New function.
1270 (is_ancestor): Use do_is_ancestor.
1271 (is_public_ancestor): Use do_is_ancestor.
1273 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
1275 * ser-go32.c (struct dos_ops): Add missing fdopen field.
1277 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1279 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
1281 2010-10-11 Doug Evans <dje@google.com>
1283 * c-typeprint.c (c_type_print_modifier): Add note that this prints
1284 the address space id too.
1286 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1288 Fix attaching to re-prelinked executables on ppc64.
1289 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
1290 initialize it, try to adjust FILESZ field by it.
1292 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
1294 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
1295 messages if info_verbose.
1297 2010-10-08 Ken Werner <ken.werner@de.ibm.com>
1299 * valops.c (value_cast): Handle vector types.
1300 * valarith.c (value_binop): Widen scalar to vector if appropriate.
1302 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1304 * arm-tdep.c (thumb_expand_immediate): New function.
1305 (thumb_instruction_changes_pc): Likewise.
1306 (thumb2_instruction_changes_pc): Likewise.
1307 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
1308 prologue parsing. Improved support for optimized code.
1309 (thumb_scan_prologue): Do not reply on line-number information,
1310 use same heuristics as arm_scan_prologue insead.
1311 (skip_prologue_function): Accept functions
1312 "__tls_get_addr" and "__aeabi_read_tp".
1314 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1315 Daniel Jacobowitz <dan@codesourcery.com>
1317 * arm-tdep.c (thumb_in_function_epilogue_p)
1318 (arm_in_function_epilogue_p): New.
1319 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
1320 gdbarch_in_function_epilogue_p callback.
1322 2010-10-07 Doug Evans <dje@google.com>
1324 * cc-with-index.sh (output_file): Default to a.out.
1326 * dwarf2read.c (mapped_index): Rename member index_table to
1327 symbol_table and index_table_slots to symbol_table_slots.
1329 (create_symbol_hash_table): Renamed from create_index_table.
1330 All callers updated.
1331 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
1332 (write_hash_table): Rename local index_table to symbol_hash_table.
1334 * addrmap.h (addrmap_foreach_fn): New typedef.
1335 (addrmap_foreach): Declare.
1336 * addrmap.c (struct addrmap_funcs): New member foreach.
1337 (addrmap_foreach): New function.
1338 (addrmap_fixed_foreach): New function.
1339 (addrmap_fixed_funcs): Update.
1340 (struct mutable_foreach_data): New struct.
1341 (addrmap_mutable_foreach_worker): New function.
1342 (addrmap_mutable_foreach): New function.
1343 (addrmap_mutable_funcs): Update.
1345 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1347 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
1350 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1352 * ada-lang.c (full_match): Declare.
1353 (ada_match_name): Rename to match_name (we should avoid prefixing static
1354 symbols with "ada_").
1355 (match_name): New name for ada_match_name.
1356 (struct ada_psym_data): Remove and replace with...
1357 (struct match_data): User data for map_matching_symbols.
1358 (ada_add_psyms): Remove.
1359 (aux_add_nonlocal_symbols): New function, used as callback for
1360 map_matching_symbols.
1361 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
1363 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
1364 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
1365 Rework to use map_matching_symbols instead of map_ada_symtabs.
1366 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
1367 * psymtab.c: Include dependency on dictionary.h.
1368 (match_partial_symbol): New function.
1369 (ada_lookup_partial_symbol): Remove.
1370 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
1371 (map_matching_symbols_psymtab): New function.
1372 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
1373 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
1375 2010-10-06 Paul Hilfinger <hilfinger@adacore.com>
1377 * ada-lang.c (ada_match_name): Use new API for wild_match.
1378 (wild_match): Change API to be consistent with that of strcmp_iw;
1379 return 0 for a match, and switch operand order.
1380 (full_match): New function.
1381 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
1382 matching to allow use of hashing.
1383 * dictionary.c (struct dict_vector): Generalize iter_name_first,
1384 iter_name_next ot iter_match_first, iter_match_next.
1385 (iter_name_first_hashed): Replace with iter_match_first_hashed.
1386 (iter_name_next_hashed): Replace with iter_match_next_hashed.
1387 (iter_name_first_linear): Replace with iter_match_first_linear.
1388 (iter_name_next_linear): Replace with iter_match_next_linear.
1389 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
1390 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
1391 (dict_iter_match_first): New function.
1392 (dict_iter_match_next): New function.
1393 (dict_hash): New function.
1394 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
1395 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
1397 2010-10-06 Doug Evans <dje@google.com>
1399 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
1401 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1403 * dwarf2read.c (read_tag_const_type): Handle const arrays.
1405 2010-10-06 Doug Evans <dje@google.com>
1407 * Makefile.in (REQUIRED_SUBDIRS): New var.
1408 (subdir_do): Verify required subdir Makefiles exist.
1410 Create subdir data-directory.
1411 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
1412 data-directory/Makefile.in.
1413 (SUBDIRS): Add data-directory.
1414 (all): Remove xml-syscall-copy dependency.
1415 (xml-syscall-copy): Moved to data-directory/Makefile.in as
1417 (xml-syscall-install): Moved to data-directory/Makefile.in as
1419 (install-only): Remove xml-syscall-install dependency.
1420 (all-data-directory): New rule.
1421 (data-directory/Makefile): New rule.
1422 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
1423 * configure: Regenerate.
1424 * data-directory/Makefile.in: New file.
1425 * python/lib/gdb/__init__.py: New file.
1427 2010-10-06 Joel Brobecker <brobecker@adacore.com>
1429 Fix ARI warnings in advance_wild_match.
1430 * ada-lang.c (advance_wild_match): Delete local variable t2.
1431 Adjust code accordingly. Minor reformatting.
1433 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1435 * gdbtypes.h (struct main_type): Remove flag_nottext.
1436 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
1437 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
1438 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
1439 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
1440 of TYPE_FLAG_NOTTEXT.
1441 (init_type): Remove the initialization of the flag_nottext field.
1442 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
1444 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
1446 2010-10-04 Doug Evans <dje@google.com>
1448 * cc-with-index.sh: New file.
1450 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
1452 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
1453 (create_cus_from_index, create_addrmap_from_index): Ditto.
1454 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
1455 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
1456 (dw2_do_expand_symtabs_matching): Ditto.
1457 (eq_strtab_entry, create_strtab, add_string): Ditto.
1458 (hash_strtab_entry): Ditto.
1459 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
1460 (create_index_table, create_mapped_symtab, find_slot): Ditto.
1461 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
1462 (write_hash_table, add_address_entry, write_psymbols): Ditto.
1463 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
1464 (write_psymtabs_to_index): Ditto.
1466 2010-10-04 Joel Brobecker <brobecker@adacore.com>
1468 * ada-lang.c: #include "value.h".
1469 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
1470 arguments. Implement using value_allocate_space_in_inferior
1471 instead of allocating memory from the stack.
1472 (make_array_descriptor): Remove gdbarch and sp parameters. Update
1473 calls to ensure_lval.
1474 (ada_convert_actual): Remove gdbarch and sp parameters. Update
1475 calls to make_array_descriptor and ensure_lval.
1476 * ada-lang.h (ada_convert_actual): Update declaration.
1477 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
1479 2010-10-04 Doug Evans <dje@google.com>
1481 * python/python.c (_initialize_python): Define new function
1482 GdbSetPythonDirectory in python. Use it to update sys.path and
1485 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1487 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
1488 incorporating and generalizing print_record_field_types.
1489 (print_record_field_types): Change return value and update comment.
1490 Re-implement using print_selected_record_field_types.
1491 (print_choices): Print "=>" here.
1492 Handle case of unencoded variant branch.
1493 (print_variant_clauses): Reformat comment.
1494 Special-case unencoded variant branch.
1496 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1498 * ada-lang.c (wild_match): Reimplement.
1499 Change API to eliminate unused length argument, reverse arguments and
1500 make 0 the 'true' return value.
1501 (advance_wild_match): New auxiliary function for wild_match to improve
1503 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1504 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1506 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1508 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1510 2010-10-01 Doug Evans <dje@google.com>
1512 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1513 for `save gdb-index' command.
1515 2010-10-01 Tom Tromey <tromey@redhat.com>
1517 * symfile.h (allocate_symtab): Update.
1518 * symfile.c (allocate_symtab): Make 'filename' const.
1519 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1520 (add_psymbol_to_list): Likewise.
1521 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1523 (add_psymbol_to_list): Update.
1524 * mdebugread.c (new_symtab): Make 'name' const.
1525 (psymtab_to_symtab_1): Make 'filename' const.
1526 * elfread.c (elfstab_offset_sections): Update.
1527 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1528 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1529 (psymtab_include_file_name): Update.
1530 * dbxread.c (find_stab_function_addr): Make 'filename' const.
1531 * buildsym.h (start_subfile): Update.
1532 * buildsym.c (start_subfile): Make arguments const.
1534 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
1536 * fork-child.c (breakup_args): Fix crash if shell forking is
1537 disabled at compile time.
1539 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1541 * ada-lang.c (desc_bounds): Add handling of the case where
1542 the P_BOUNDS field is a pointer to a stub.
1543 (desc_data_target_type): Same for P_ARRAY field.
1544 (ada_check_typedef): Strip the typedef layers from the type
1545 found by ada_find_any_type.
1547 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1549 * sparc-tdep.c (sparc32_frame_align): New function.
1550 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1551 * sparc64-tdep.c (sparc64_frame_align): New function.
1552 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1554 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
1556 * defs.h (MAX_REGISTER_SIZE): Set to 64.
1558 2010-09-30 Tom Tromey <tromey@redhat.com>
1560 * symfile.h (struct sym_fns) <next>: Remove.
1561 (add_symtab_fns): Update.
1562 * symfile.c (sym_fns_ptr): New typedef.
1563 (symtab_fns): Now a VEC.
1564 (add_symtab_fns): Update. Change argument type.
1565 (find_sym_fns): Update. Change return type.
1566 (get_symfile_segment_data): Update.
1567 * objfiles.h (struct objfile) <sf>: Now const.
1568 * somread.c (som_sym_fns): Now const. Update.
1569 * xcoffread.c (xcoff_sym_fns): Now const. Update.
1570 * mipsread.c (ecoff_sym_fns): Now const. Update.
1571 * machoread.c (macho_sym_fns): Now const. Update.
1572 * elfread.c (elf_sym_fns): Now const. Update.
1573 (elf_sym_fns_gdb_index): Likewise.
1574 * dbxread.c (aout_sym_fns): Now const. Update.
1575 * coffread.c (coff_sym_fns): Now const. Update.
1577 2010-09-30 Tom Tromey <tromey@redhat.com>
1579 * value.c (value_primitive_field): Take 'offset' into account for
1582 2010-09-30 Tom Tromey <tromey@redhat.com>
1584 * completer.c (count_struct_fields): Handle anonymous structs and
1586 (add_struct_fields): Likewise.
1588 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1590 Fix printing parameters of inlined functions.
1591 * ada-lang.c (is_known_support_routine)
1592 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1593 for find_frame_funname.
1594 * python/py-frame.c (frapy_name): Likewise.
1595 * stack.c (find_frame_funname): New parameter funcp. Update the
1596 function comment. Fill it in.
1597 (print_frame): New variable func. Initialize it by
1598 find_frame_funname. Print arguments only if FUNC is not NULL. Use
1599 FUNC as the parameter of print_args_stub.
1600 * stack.h (find_frame_funname): New parameter funcp. Remove the
1601 function declaration comment.
1603 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1606 * inferior.c (have_live_inferiors): New variables old_chain, inf and
1607 tp. Iterate INFERIOR_LIST and call target_has_execution.
1609 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1611 Fix GDB crash on inferior calls with self-referencing classes.
1612 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1615 2010-09-29 Doug Evans <dje@google.com>
1617 Workaround for gcc/45682.
1618 * dwarf2read.c (partial_die_info): New fields fixup_called,
1620 (guess_partial_die_structure_name): Renamed from guess_structure_name.
1621 Move definition next to use. Use linkage_name to determine if class
1622 is in a namespace. All callers updated.
1623 (fixup_partial_die): Return early if already called.
1624 Set fixup_called when done.
1625 (guess_full_die_structure_name): New function.
1626 (determine_prefix): Call it for class/struct/union dies if c++ and
1627 .debug_types section is present and parent is DW_TAG_compile_unit.
1629 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1631 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1632 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1634 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1636 * NEWS: Announce Ravenscar Profile support.
1638 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1639 Jerome Guitton <guitton@adacore.com>
1641 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1643 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1644 ravenscar-sparc-thread.o to gdb_target_obs.
1646 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1648 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1649 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1651 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1653 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1654 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1655 skip_main_prologue method.
1657 2010-09-27 Tom Tromey <tromey@redhat.com>
1659 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1660 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1661 Only emit a given psymbol once.
1662 (struct signatured_type_index_data) <psyms_seen>: New field.
1663 (write_one_signatured_type): Update.
1664 (cleanup_htab): New function.
1665 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1667 (save_gdb_index_command): Update index documentation.
1669 2010-09-27 Tom Tromey <tromey@redhat.com>
1671 * bcache.c (expand_hash_table): Use hash_function, not hash.
1673 2010-09-27 Tom Tromey <tromey@redhat.com>
1675 * gdb_wchar.h: Change minimum libiconv to 0x108.
1677 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1679 Fix lost siginfo_t for inferior calls.
1681 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1682 (save_inferior_thread_state): New variables regcache, gdbarch and
1683 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1684 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1686 (restore_inferior_thread_state): New variables regcache and gdbarch.
1687 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1688 REGCACHE. Free also SIGINFO_DATA.
1690 2010-09-24 Tom Tromey <tromey@redhat.com>
1692 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1694 (dw2_map_symbol_names): Likewise.
1696 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1698 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1699 discard_cleanups do_cleanups.
1701 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1705 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1706 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1707 si_code is < 0. Check for si_code == SI_TIMER before checking for
1710 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1712 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1714 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1716 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1717 debugging a core file.
1719 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1722 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1723 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1725 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1726 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1728 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1729 Remove the conditional.
1730 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1732 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1734 * main.c: Include objfiles.h.
1735 (captured_main): New variable objfile. Call
1736 load_auto_scripts_for_objfile for ALL_OBJFILES.
1738 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1740 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1743 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1745 * dwarf2read.c (scan_partial_symbols): Add handling of
1746 DW_TAG_constant DIEs.
1747 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1749 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1751 * configure.ac: Add support for --enable-gdbserver.
1752 * configure: Regenerate.
1754 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1757 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1758 'old_cleanups' reassignment.
1760 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1762 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1765 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1768 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1769 read_var_value and common_val_print and print a warning.
1771 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1773 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1774 keep the list in alphabetical order. Use longer e-mail address.
1776 2010-09-15 Tom Tromey <tromey@redhat.com>
1778 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1780 2010-09-15 Tom Tromey <tromey@redhat.com>
1782 * charset.c (iconv_open): New define.
1784 (iconv_close): Likewise.
1785 (phony_iconv_open): Add "phony_" prefix.
1786 (phony_iconv_close): Likewise.
1787 (phony_iconv): Likewise.
1788 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1789 Change how INTERMEDIATE_ENCODING is defined.
1791 2010-09-15 Doug Evans <dje@google.com>
1793 * dwarf2read.c (struct die_info): Fix comment.
1795 2010-09-15 Alan Modra <amodra@gmail.com>
1798 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1799 than setting SEC_NEVER_LOAD on sections that need not be copied.
1801 2010-09-14 Tom Tromey <tromey@redhat.com>
1803 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1804 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1806 * symfile.h (extend_psymbol_list): Remove.
1807 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1808 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1809 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1811 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1813 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1816 2010-09-14 Tom Tromey <tromey@redhat.com>
1819 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1820 for unrecognized frame base expression.
1822 2010-09-14 Tom Tromey <tromey@redhat.com>
1825 * value.c (value_static_field): Use value_of_variable.
1827 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1829 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1830 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1832 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1835 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1838 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1840 * NEWS: Add x86-lynxos to the list of platforms supported by
1843 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1845 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1847 2010-09-13 Tom Tromey <tromey@redhat.com>
1849 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1851 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1853 * i386-tdep.c (i386_ymm_type): Set type name to
1854 builtin_type_vec256i.
1856 2010-09-12 Michael Snyder <msnyder@vmware.com>
1858 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1860 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1862 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1864 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1866 * amd64-tdep.c (amd64_register_name): Removed.
1867 (amd64_init_abi): Don't call set_gdbarch_register_name.
1869 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1871 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1873 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1874 Paul Bolle <pebolle@tiscali.nl>
1876 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1877 * cli-logging.c (struct saved_output_files) <targerr>: New.
1878 (set_logging_redirect, pop_output_files, handle_redirections):
1879 Redirect also gdb_stdtargerr.
1880 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1882 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1883 also gdb_stdtargerr.
1884 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1885 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1886 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1887 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1888 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1891 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1893 * hppa-tdep.c (unwind_command): Use host_address_to_string function
1894 to display a host address.
1895 * monitor.c (monitor_read_memory): Likewise.
1896 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1898 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1900 * coffread.c (struct coff_symbol): Change c_value type from `long' to
1901 `CORE_ADDRESS' as it might contain target addresses.
1903 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1905 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1906 before cast to pointer to avoid warning.
1908 2010-09-09 Kevin Buettner <kevinb@redhat.com>
1910 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1913 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1915 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1916 anonymous class partial DIEs.
1918 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1920 * dwarf2read.c (dwarf2_compute_name): Check that the first
1921 argument is a pointer.
1923 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1925 * dwarf2read.c (read_func_scope, read_structure_type)
1926 (read_common_block): Check for a NULL return from new_symbol.
1928 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1930 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1932 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1934 * dwarf2read.c (read_structure_type): Move processing of
1935 fields and member functions from here...
1936 (process_structure_scope): ... to here.
1938 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1940 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1942 (gnuv3_make_method_ptr): Likewise.
1944 2010-09-08 Tom Tromey <tromey@redhat.com>
1946 * breakpoint.c (create_breakpoint): Add missing _().
1948 2010-09-08 Doug Evans <dje@google.com>
1950 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1952 2010-09-08 Tom Tromey <tromey@redhat.com>
1955 2010-09-01 Tom Tromey <tromey@redhat.com>
1956 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1957 symtab.h: Revert earlier change.
1959 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
1961 * psymtab.c (add_psymbol_to_bcache): Initialize
1963 memset psymbol.ginfo.value to 0.
1965 2010-09-06 Pedro Alves <pedro@codesourcery.com>
1967 * infrun.c (resume): Extend comment on ignoring single-step
1968 requests on vfork parents waiting for a vfork-done.
1970 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1971 Pedro Alves <pedro@codesourcery.com>
1973 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1975 * fork-child.c (startup_inferior) <resume_signal>: Use enum
1977 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1978 calling strsignal. Use enum target_signal type for saved_signo.
1979 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1980 (linux_nat_wait_1): Use enum target_signal type for signo. Use
1981 target_signal_to_host before calling strsignal.
1982 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1985 2010-09-06 Pedro Alves <pedro@codesourcery.com>
1986 Jan Kratochvil <jan.kratochvil@redhat.com>
1988 * common/signals.c (ANY): Remove.
1989 (SET): No longer use ANY.
1991 2010-09-06 Yao Qi <yao@codesourcery.com>
1993 * infrunc(resume): When inferior is waiting_for_vfork_done,
1994 clear step and don't use displaced stepping.
1996 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1998 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
2001 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2003 Code cleanup - split print_stop_reason.
2004 * infrun.c (enum inferior_stop_reason): Remove.
2005 (print_stop_reason): Remove by splitting into ...
2006 (print_exited_reason, print_signal_exited_reason)
2007 (print_no_history_reason, print_signal_received_reason)
2008 (print_end_stepping_range_reason): ... these new functions. Update
2009 the preceding comment.
2010 (handle_inferior_event): Change the calls to print_exited_reason,
2011 print_signal_exited_reason, print_no_history_reason,
2012 print_signal_received_reason, print_end_stepping_range_reason.
2013 (handle_step_into_function, handle_step_into_function_backward):
2014 Change the calls to print_end_stepping_range_reason.
2016 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2018 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
2019 * cli-out.c: Include vec.h.
2020 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
2021 variable stream, initialize it, use it.
2022 (cli_redirect): New function comment. Replace the stream and
2023 original_stream fields by the new streams field. Remove the
2024 original_stream != NULL conditional, assert error on NULL instead.
2025 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
2026 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
2027 original_stream fields by the new streams field.
2028 (cli_out_set_stream): Replace the stream field by the new streams
2030 * cli-out.h: Include vec.h.
2031 (ui_filep): New typedef, call DEF_VEC_P for it.
2032 (struct cli_ui_out_data): Replace the stream and original_stream
2033 fields by the new streams field.
2034 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
2035 NULL first. Extend the comment.
2036 (handle_redirections): Call ui_out_redirect with output.
2037 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
2038 calls outside of the TRY_CATCH block.
2040 2010-09-03 Joel Brobecker <brobecker@adacore.com>
2044 2010-09-02 Joel Brobecker <brobecker@adacore.com>
2046 Back out the following change:
2047 | 2010-06-29 Hui Zhu <teawater@gmail.com>
2048 | * record.c (set_record_pic_cmdlist,
2049 | show_record_pic_cmdlist): New variables.
2050 | (set_record_pic_command,
2051 | show_record_pic_command): New functions.
2052 | (record_pic_function, record_pic_line, record_pic_enum,
2053 | set_record_pic_type, record_pic_hide_nofunction,
2054 | record_pic_hide_nosource, record_pic_hide_same): New variables.
2055 | (record_pic_fputs): New function.
2056 | (function_list, node_list, edge_list): New struct.
2057 | (function_list, node_list, edge_list): New variables.
2058 | (record_pic_cleanups, record_pic_node,
2059 | record_pic_edge, cmd_record_pic): New functions.
2060 | (_initialize_record): Add new commands for record pic.
2062 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
2064 * config.in, configure: Regenerated.
2065 * configure.ac: Check for waitpid.
2066 * ser-pipe.c (pipe_close): Wait for the program to exit.
2068 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2070 * cli/cli-logging.c: Include gdb_assert.h.
2071 (set_logging_overwrite): New function.
2072 (logging_redirect): New comment.
2073 (logging_no_redirect_file, set_logging_redirect)
2074 (pop_output_files) <logging_no_redirect_file>: New.
2075 (handle_redirections) <!logging_redirect>: New variable
2076 no_redirect_file. Remove file autoclose for tee_file_new. No longer
2077 discard cleanup for the close of former OUTPUT. Set
2078 LOGGING_NO_REDIRECT_FILE.
2079 (handle_redirections) <logging_redirect>: gdb_assert
2080 LOGGING_NO_REDIRECT_FILE.
2081 (show_logging_command) <logging_redirect handling>: Adjust messages
2082 for SAVED_FILENAME not NULL.
2083 (_initialize_cli_logging): Install set_logging_overwrite and
2084 set_logging_redirect.
2086 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2088 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
2090 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2092 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
2093 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
2094 add $(GDB_WARN_CFLAGS_NO_FORMAT).
2095 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
2097 2010-09-02 Yao Qi <yao@codesourcery.com>
2099 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
2100 number from a WIFSIGNALED status.
2102 2010-09-01 Tom Tromey <tromey@redhat.com>
2104 * symtab.h (lookup_type_symbol): Declare.
2105 * symtab.c (lookup_symbol_in_language_full): Rename from
2106 lookup_symbol_in_language. Add 'for_type' argument.
2107 (lookup_symbol_in_language): New function.
2108 (lookup_type_symbol): Likewise.
2109 (lookup_symbol_aux): Add 'for_type' argument.
2110 (match_symbol_aux): New function.
2111 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
2112 (match_transparent_type): New function.
2113 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
2114 * symfile.h (struct quick_symbol_functions)
2115 <pre_expand_symtabs_matching>: Remove.
2116 <expand_one_symtab_matching>: New field.
2117 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
2118 (pre_expand_symtabs_matching_psymtabs): Remove.
2119 (psym_functions): Update.
2120 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
2121 * dwarf2read.c (dw2_lookup_symbol): Update comment.
2122 (dw2_pre_expand_symtabs_matching): Remove.
2123 (dw2_expand_one_symtab_matching): New function.
2124 (dwarf2_gdb_index_functions): Update.
2126 2010-09-01 Joel Brobecker <brobecker@adacore.com>
2128 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
2130 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
2132 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
2133 as a feature reported by -list-target-features.
2135 2010-09-01 Joel Brobecker <brobecker@adacore.com>
2137 * features/Makefile (WHICH): Add rs6000/powerpc-32.
2138 (powerpc-32.o, powerpc-32.c): New rules.
2139 (clean): Also remove powerpc-32.c.
2140 * regformats/rs6000/powerpc-32.dat: Generate.
2142 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2144 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
2145 psymbol_bcache_init.
2146 * psymtab.h (psymbol_bcache_init): New function prototype.
2147 (psymbol_bcache_free): New function prototype.
2148 (psymbol_bcache_get_bcache): New function prototype.
2149 * psymtab.c (psymbol_bcache_init): New function.
2150 (psymbol_bcache_free): New function.
2151 (psymbol_bcache_full): New function.
2152 (psymbol_bcache_get_bcache): New function.
2153 (add_psymbol_to_bcache): use psymbol_bcache_full.
2154 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
2156 * symmisc.c (print_symbol_bcache_statistics): Updated.
2157 (print_objfile_statistics): Updated.
2158 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
2160 (free_objfile): Use psymbol_bcache_free.
2162 2010-08-31 Tom Tromey <tromey@redhat.com>
2165 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
2166 Don't set TYPE_NAME on the type.
2168 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2170 * infrun.c (set_exec_direction_func): Error out if target does not
2171 support reverse execution.
2173 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2175 Make linux_get_siginfo_type `type *' unique.
2176 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
2177 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
2178 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
2179 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
2180 (_initialize_linux_tdep): New.
2182 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2185 * defs.h (find_memory_region_ftype): New typedef.
2186 (exec_set_find_memory_regions): Use it.
2187 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
2188 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
2189 * gcore.c (objfile_find_memory_regions): Likewise.
2190 * gnu-nat.c (gnu_find_memory_regions): Likewise.
2191 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
2192 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
2193 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
2194 find_memory_region_ftype.
2195 (insert_dbx_link_bpt_in_region): Likewise.
2196 (iterate_over_mappings): Likewise. Drop the comment part about the
2198 (find_memory_regions_callback): Use find_memory_region_ftype.
2199 (proc_find_memory_regions): Likewise.
2200 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
2201 find_memory_region_ftype.
2202 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
2203 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
2205 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2207 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
2208 'static partial_symbol psymbol'.
2209 (psymbol_hash): New function.
2210 (psymbol_compare): New function.
2211 * bcache.c (hash_continue): New.
2212 (hash): Use hash_continue.
2213 * bcache.c: Add hash_function and compare_function
2214 pointers to bcache struct.
2215 (bcache_full): Use bcache->hash_function, and
2216 bcache->compare_function.
2217 (bcache_compare): New function.
2218 (bcache_xmalloc): Take hash_function and
2219 compare_function arguments and initialize the
2222 * objfiles.c (allocate_objfile): Updated.
2223 * symfile.c (reread_symbols): Updated.
2224 * python/py-type.c (typy_richcompare): Updated.
2226 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
2227 Tom Tromey <tromey@redhat.com>
2230 * python/py-value.c (valpy_get_dynamic_type): New function.
2231 (value_object_getset): Add "dynamic_type".
2232 (valpy_get_type): Fail on error.
2234 2010-08-30 Yao Qi <yao@codesourcery.com>
2236 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
2237 (arm_linux_syscall_next_pc): New.
2238 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
2239 (arm_linux_init_abi): Initialize syscall_next_pc.
2240 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
2241 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
2242 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
2243 Declare arm_frame_is_thumb.
2245 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2248 * breakpoint.c (bpstat_alloc): Remove unused prototype.
2249 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
2251 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
2252 calls of bpstat_alloc. Remove explicit bs chain termination.
2254 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2257 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
2258 (my_waitpid): Likewise.
2260 2010-08-27 Doug Evans <dje@google.com>
2262 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
2265 2010-08-27 Tom Tromey <tromey@redhat.com>
2267 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
2268 TYPE_FIELD_IGNORE_BITS.
2270 2010-08-27 Doug Evans <dje@google.com>
2272 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
2273 the order they're defined in. munmap .debug_types buffer.
2275 2010-08-26 Doug Evans <dje@google.com>
2277 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
2278 (dw2_forget_cached_source_info): Rename local cu to per_cu.
2279 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
2280 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
2281 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
2282 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
2283 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
2284 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
2285 (write_psymtabs_to_index): Ditto.
2287 2010-08-26 Pedro Alves <pedro@codesourcery.com>
2289 * NEWS: Mention libthread_db debugging with core files.
2291 2010-08-26 Doug Evans <dje@google.com>
2293 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
2294 forward decl. Pass pst->dirname to dwarf_decode_lines.
2295 (psymtab_include_file_name): New function.
2296 (dwarf_decode_lines): Call it. Update comments.
2298 2010-08-25 Pedro Alves <pedro@codesourcery.com>
2300 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
2301 compilation unit being different from target die's.
2303 2010-08-24 Doug Evans <dje@google.com>
2306 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
2307 debug_types_type_hash.
2308 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
2310 (lookup_die_type): Renamed from tag_type_to_tag. First look in
2311 appropriate type_hash table. All callers updated.
2312 (allocate_signatured_type_table): Renamed from
2313 allocate_signatured_type_hash_table. All callers updated.
2314 (create_signatured_type_table_from_index): Renamed from
2315 create_signatured_type_hash_from_index. All callers updated.
2316 (read_die_type): Add comment. Move actual reading to ...
2317 (read_die_type_1): ... here. New function.
2318 (follow_die_ref_or_sig): Tweak comment.
2319 (set_die_type): Rewrite to use appropriate choice of
2320 debug_info_type_hash or debug_types_type_hash.
2321 (get_die_type_at_offset): New function.
2322 (get_die_type): Call it.
2324 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2326 * python/py-type.c (typy_richcompare): Initialize worklist.
2328 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
2329 Kazu Hirata <kazu@codesourcery.com>
2330 Jonathan Larmour <jifl@eCosCentric.com>
2332 * arm-tdep.c: Include features/arm-with-m.c.
2333 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
2335 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
2336 Check is_m after force-mode.
2337 (arm_gdbarch_init): Check the binary before the target description.
2338 Add check for M profile attribute. If we have an M-profile device,
2339 but no target register description, use arm-with-m. Recognize the
2340 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
2341 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
2342 * arm-tdep.h (XPSR_T): Define.
2343 (struct gdbarch_tdep): Add is_m member.
2344 * features/arm-m-profile.xml, features/arm-with-m.c,
2345 features/arm-with-m.xml: New files.
2347 2010-08-23 Doug Evans <dje@google.com>
2349 * dwarf2read.c (read_structure_type): Add comment.
2350 (read_enumeration_type): Add comment.
2351 (process_enumeration_scope): Move definition of some locals
2352 closer to their use.
2353 (read_namespace_type): Add comment.
2354 (set_die_type): Fix typo in comment.
2356 2010-08-23 Tom Tromey <tromey@redhat.com>
2359 * python/py-value.c: Include expression.h.
2360 (valpy_do_cast): New function.
2361 (valpy_cast): Use it.
2362 (valpy_dynamic_cast): New function.
2363 (valpy_reinterpret_cast): Likewise.
2364 (value_object_methods): Add dynamic_cast, reinterpret_cast.
2366 2010-08-23 Tom Tromey <tromey@redhat.com>
2369 * python/py-value.c (valpy_nonzero): Don't throw error for other
2372 2010-08-23 Tom Tromey <tromey@redhat.com>
2375 * python/py-type.c: Include bcache.h, vec.h.
2376 (struct type_equality_entry): New.
2377 (compare_strings): New function.
2378 (check_types_equal): Likewise.
2379 (check_types_worklist): Likewise.
2380 (typy_richcompare): Likewise.
2381 (type_object_type): Set tp_richcompare field.
2383 2010-08-23 Tom Tromey <tromey@redhat.com>
2386 * python/py-type.c (typy_fields): Call check_typedef.
2387 (typy_template_argument): Add TRY_CATCH.
2389 2010-08-23 Tom Tromey <tromey@redhat.com>
2392 * python/py-type.c (typy_array): New function.
2393 (type_object_methods): Add "array".
2395 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2397 * python/python.c: Include "serial.h".
2398 (gdbpy_event_fds): Change type to `struct serial *' a array from
2400 (gdbpy_run_events): Change parameters. Use serial_readchar in
2402 (gdbpy_post_event): Use serial_write in place of write.
2403 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
2404 serial_async in place of add_file_handler.
2406 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2408 * serial.h (gdb_pipe, serial_pipe): Declare.
2409 * serial.c (serial_interface_lookup): Take a const char pointer.
2410 (serial_fdopen): Rename to ...
2411 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
2412 Call the OPS' fdopen function if there is one.
2413 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
2415 (struct serial_ops) <fdopen>: New field.
2417 * ser-mingw.c (free_pipe_state):
2418 (free_pipe_state): Close output on non-pex pipes.
2419 (pipe_windows_fdopen): New.
2421 (_initialize_ser_windows): Register pipe_windows_fdopen.
2422 * ser-go32.c (gdb_pipe): New.
2423 * ser-pipe.c (pipe_close): Close file descriptor even if there's
2428 2010-08-20 Keith Seitz <keiths@redhat.com>
2431 * dwarf2read.c (struct delayed_method_info): New struct.
2432 (struct dwarf2_cu): Add vector method_list.
2433 (scan_partial_symbols): Count methods for union, class, structure,
2434 and interface types.
2435 (add_to_method_list): New function.
2436 (free_delayed_list): New function.
2437 (compute_delayed_physnames): New function.
2438 (process_full_comp_unit): Make a cleanup for the CU's delayed
2439 physname list, compute the delayed physnames, and free the
2441 (dwarf2_add_member_fn): For C++ and Java, delay the computation
2442 of the physname until after the CU is read.
2444 * dwarf2read.c (read_structure_type): Check if the current
2445 DIE's type was already completed after dwarf2_full_name
2448 2010-08-19 Stan Shebs <stan@codesourcery.com>
2450 * NEWS: Mention some additional changes.
2452 2010-08-19 Tom Tromey <tromey@redhat.com>
2454 * Makefile.in (install-python): Add DESTDIR.
2456 2010-08-19 Doug Evans <dje@google.com>
2459 * parser-defs.h (parse_float, parse_c_float): Declare.
2460 * parse.c (parse_float, parse_c_float): New function.
2461 * c-exp.y (parse_number): Call parse_c_float.
2462 * objc-exp.y (parse_number): Ditto.
2463 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
2464 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
2466 2010-08-19 Joel Brobecker <brobecker@adacore.com>
2468 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
2469 the arguments in the correct order.
2470 * symtab.c (maybe_add_partial_symtab_filename): Declare
2471 the arguments in the correct order.
2473 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2475 * varobj.c (varobj_create): Replace variable old_fi with old_id,
2476 initialize it by null_frame_id, wrap its usage by get_frame_id,
2477 frame_id_p and frame_find_by_id.
2479 2010-08-18 Tom Tromey <tromey@redhat.com>
2482 * configure: Rebuild.
2483 * configure.ac: Add install-python to CONFIG_INSTALL.
2484 * Makefile.in (install-python): New.
2486 2010-08-18 Doug Evans <dje@google.com>
2488 * gdb_assert.h (gdb_assert_not_reached): New macro.
2489 (gdb_assert_fail): Fix typo in comment.
2490 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
2492 * darwin-nat.c (darwin_check_new_threads): Ditto.
2493 * dwarf2read.c (dwarf2_get_section_info): Ditto.
2494 (munmap_section_buffer): Ditto.
2495 * m32c-tdep.c (make_types): Ditto.
2496 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2497 * macroexp.c (get_character_constant): Ditto.
2498 (get_string_literal): Ditto.
2499 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2500 (mep_pseudo_cr_index, mep_register_type): Ditto.
2501 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2502 (mep_get_insn, mep_analyze_prologue): Ditto.
2503 * objfiles.c (qsort_cmp): Ditto.
2504 * prologue-value.c (pv_is_identical): Ditto.
2505 * record.c (record_get_loc): Ditto.
2506 * value.c (value_static_field): Ditto.
2507 * xtensa-tdep.c (call0_track_op): Ditto.
2509 2010-08-18 Tom Tromey <tromey@redhat.com>
2512 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2513 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
2514 name-copying lower. Document exception behavior.
2515 * completer.c (expression_completer): Catch exceptions from
2516 parse_field_expression.
2518 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2522 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2523 workaround on core files.
2524 (try_thread_db_load_1): Don't try enabling thread event reporting
2526 (thread_db_load): Allow thread_db on core files.
2527 (attach_thread): Don't check thread signals on core files, nor try
2528 really attaching to the thread, nor enabling thread event event
2530 (thread_db_detach): Don't try disabing thread event reporting or
2531 removing thread event breakpoints when debugging a core file.
2532 (find_new_threads_callback): Don't try enabling thread event
2533 reporting on core files.
2534 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2535 debugging a core file.
2536 (thread_db_find_new_threads): Don't update thread
2537 cores (processors) when debugging a core (dump).
2539 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2543 * corelow.c (add_to_thread_list): Don't use
2544 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
2545 (get_core_register_section): Don't use
2546 gdbarch_core_reg_section_encodes_pid.
2548 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2549 * gdbarch.h, gdbarch.c: Regenerate.
2550 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2551 gdbarch_core_reg_section_encodes_pid.
2552 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2553 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2554 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2556 2010-08-18 Yao Qi <yao@codesourcery.com>
2558 * MAINTAINERS : Add myself under Write After Approval.
2560 2010-08-17 Tom Tromey <tromey@redhat.com>
2562 * NEWS: Mention template parameter support.
2564 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2566 PR breakpoints/11371
2568 * breakpoint.c (decref_bp_location): Assert the reference count is
2571 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2573 PR breakpoints/11371
2575 * breakpoint.c (breakpoint_init_inferior): Decrement the
2576 location's reference count instead of deleting right away.
2577 (bpstat_free): Decrement the location's reference count. Make
2579 (bpstat_copy): Increment the location's reference count.
2580 (bpstat_find_breakpoint): Adjust.
2581 (bpstat_num): Adjust.
2582 (print_it_typical): Adjust. Use the breakpoint pointer in the
2583 bpstat instead of the location's owner.
2584 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2585 Adjust to record the location's owner in the bpstat.
2586 (watchpoint_check): Use the breakpoint pointer in the bpstat
2587 instead of the location's owner.
2588 (bpstat_check_breakpoint_conditions): Don't handle
2589 bp_watchpoint_scope here. Use the breakpoint pointer in the
2590 bpstat instead of the location's owner.
2591 (bpstat_stop_status): Defer inferior function calls to after
2592 building the bpstat list. Handle bp_watchpoint_scope here. Use
2593 the breakpoint pointer in the bpstat instead of the location's
2595 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2596 the location's owner.
2597 (free_bp_location): Don't walk bpstats clearing locations.
2598 (incref_bp_location): New.
2599 (decref_bp_location): New.
2600 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2601 instead of the location's owner.
2602 (update_global_location_list): Clear the location's owner, and
2603 decrement the location's reference count instead of deleting it
2605 (breakpoint_retire_moribund): Decrement the location's reference
2606 count instead of deleting it right away.
2607 (bpstat_remove_bp_location): Delete.
2608 (bpstat_remove_breakpoint): New.
2609 (bpstat_remove_bp_location_callback): Delete.
2610 (bpstat_remove_breakpoint_callback): New.
2611 (delete_breakpoint): Iterate over all threads' stop_bpstat's
2612 clearing references to the breakpoint that is being deleted.
2614 * breakpoint.h (struct bp_location) <refc>: New field.
2615 <owner>: Update comments.
2616 (bpstat_free): Delete declaration.
2617 (struct bpstats): Change the type of the breakpoint_at field to
2618 struct breakpoint point, from struct bp_location pointer. Add new
2619 field bp_location_at.
2621 2010-08-16 Tom Tromey <tromey@redhat.com>
2625 2010-08-16 Tom Tromey <tromey@redhat.com>
2627 * NEWS: Mention watch -location.
2629 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2631 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2632 EXP_STRING_REPARSE to EXP_STRING.
2633 (watch_command_1): Set also EXP_STRING_REPARSE.
2634 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2635 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2636 Update comment for exp_string.
2638 2010-08-16 Tom Tromey <tromey@redhat.com>
2640 * value.c (release_value): Clear 'next' pointer.
2641 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2642 (watch_command_wrapper): Update.
2643 (watch_maybe_just_location): New function.
2644 (watch_command): Update.
2645 (rwatch_command_wrapper): Update.
2646 (rwatch_command): Update.
2647 (awatch_command_wrapper): Update.
2648 (awatch_command): Update.
2649 (check_for_argument): New function.
2650 (_initialize_breakpoint): Update help text.
2652 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2654 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2655 typedef'ed function types correctly.
2657 2010-08-13 Tom Tromey <tromey@redhat.com>
2659 * python/python-internal.h (gdbpy_get_hook_function): Don't
2662 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2664 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
2667 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
2669 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2670 the format strings to be compatible with Python 2.4.
2672 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2674 Easier and more stubborn MI memory read commands.
2676 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2677 and data-write-memory-bytes.
2678 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2679 (mi_cmd_data_write_memory_bytes): New.
2680 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2681 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2683 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2684 * target.c (target_read_until_error): Remove.
2685 (read_whatever_is_readable, free_memory_read_result_vector)
2686 (read_memory_robust): New.
2687 * target.h (target_read_until_error): Remove.
2688 (struct memory_read_result, free_memory_read_result_vector)
2689 (read_memory_robust): New.
2691 2010-08-13 Hui Zhu <teawater@gmail.com>
2693 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2694 (read_comp_unit): Initialize back_to.
2696 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2697 Pedro Alves <pedro@codesourcery.com>
2699 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2700 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2701 (struct partial_die_info) <has_template_arguments>: New field.
2702 <num_attrs>: Change type to unsigned char.
2703 <building_fullname>: New field.
2704 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2705 allocate a CU if we don't have one already. Add a cleanup for the
2707 (partial_die_full_name): Handle template arguments not in
2709 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2710 (load_full_comp_unit): Only allocate a CU if we don't have one
2712 (do_ui_file_peek_last): New.
2713 (dwarf2_compute_name): Handle template parameters not in
2715 (read_comp_unit): Read and free abbrevs if not read yet.
2716 (load_partial_dies): Handle template arguments not in DW_AT_name.
2717 (find_partial_die): If we have a CU, but no a partial dies yet,
2718 also read in the CU.
2719 (dwarf2_const_value_attr): New, abstracted out from
2721 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2722 dwarf2_const_value_attr.
2723 (determine_prefix): Detect and break loops created by RCVT's debug
2725 (maybe_queue_comp_unit): Bail out early if reading partial
2727 (follow_die_offset): Load full CU if we have no dies.
2728 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2729 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2731 2010-08-11 Tom Tromey <tromey@redhat.com>
2732 Phil Muldoon <pmuldoon@redhat.com>
2734 * python/python.c (gdbpy_run_events): New function.
2735 (gdbpy_post_event): Likewise.
2736 (gdbpy_initialize_events): Likewise.
2737 (_initialize_python): Call gdbpy_initialize_events.
2739 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
2741 * gdb/valarith.c (vector_binop): New function.
2742 (scalar_binop): Likewise.
2743 (value_binop): Call scalar_binop or vector_binop depending on the types.
2744 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2745 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2747 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2749 2010-08-11 Brad Roberts <braddr@puremagic.com>
2751 * d-lang.c (extract_identifiers): Handle multiple digits.
2753 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2756 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2757 Rename to dummy_frame_unwind.
2758 (dummy_frame_unwind): Remove.
2759 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2760 * frame-unwind.c (frame_unwind_init): Use address of
2761 dummy_frame_unwind and inline_frame_unwind.
2762 * frame.c (create_sentinel_frame): Use address of
2763 sentinel_frame_unwind.
2764 * inline-frame.c (inline_frame_unwinder): Rename to
2765 inline_frame_unwind.
2766 (inline_frame_unwind): Remove.
2767 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2768 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2769 sentinel_frame_unwind.
2770 (sentinel_frame_unwind): Remove.
2771 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2774 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2777 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2778 and returned value. New comment from frame-unwind.h.
2779 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2781 * frame.c (get_frame_id, frame_unwind_register_value)
2782 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2783 (get_frame_type, frame_unwind_arch): Do not use the return value of
2784 frame_unwind_find_by_frame.
2786 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
2787 Thiago Jung Bauermann <bauerman@br.ibm.com>
2788 Tom Tromey <tromey@redhat.com>
2790 * python/python.c (gdbpy_solib_address): New function.
2791 (gdbpy_decode_line): Likewise.
2793 2010-08-10 Tom Tromey <tromey@redhat.com>
2795 Revert gdb-add-index addition:
2796 * Makefile.in (install-only): Don't install gdb-add-index.
2797 * gdb-add-index.sh: Remove.
2799 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2801 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2802 `target_has_execution' check with `to_has_memory' check.
2803 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2804 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2805 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2807 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2809 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2810 (resume_siggnal, resume_step): Move these static globals...
2811 (struct sim_inferior_data): ...into this new struct.
2812 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2814 (gdb_callback, callbacks_initialized): Move these globals to
2815 a point earlier in the file.
2816 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2817 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2818 (gdbsim_close_inferior, gdbsim_resume_inferior)
2819 (gdbsim_stop_inferior): New functions.
2820 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2822 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2823 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2824 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2825 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2826 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2827 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2828 new local variable `sim_data' in each of these functions. Use
2829 `sim_data' to reference former globals `program_loaded',
2830 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2832 (gdbsim_open): Remove local variable `argv'. Put results of call
2833 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2834 make a cleanup for it. Free it though when a sim instance cannot
2836 (gdbsim_close): Free sim_argv and null it out as appropriate.
2837 Close sim instances in all inferiors.
2838 (gdbsim_cntrl_c): Stop all inferiors.
2840 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2842 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2844 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2845 function after symbol construction is complete.
2846 Do the same for template symbol addition to template_symbols list.
2848 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2850 * symtab.c (symbol_get_demangled_name): Remove assertion and
2851 return NULL when language_specific.cplus_specific is not initialized.
2852 * stabsread.c (define_symbol): Set the name before calling
2853 cp_scan_for_anonymous_namespaces.
2855 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2857 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2858 SYMBOL_SET_LANGUAGE.
2859 (symbol_init_language_specific): Renamed to symbol_set_language.
2860 * symtab.c (symbol_init_language_specific): Removed redundant check
2862 Renamed to symbol_set_language.
2863 * stabsread.c (define_symbol): Updated.
2864 (read_enum_type): Updated
2865 * psymtab.c (add_psymbol_to_bcache): Updated.
2866 * minsyms.c (install_minimal_symbols): Updated.
2867 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2868 SYMBOL_LANGUAGE to set the language.
2869 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2870 * mdebugread.c (new_symbol): Ditto.
2871 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2872 * dwarf2read.c (new_symbol_full): Ditto.
2873 * jv-lang.c (add_class_symbol): Ditto.
2875 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2877 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2878 (make_cleanup_restore_page_info)
2879 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2880 * gdbcmd.h (execute_command_to_string): New declaration.
2881 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2882 (make_cleanup_restore_ui_file): Move to utils.c
2883 (execute_gdb_command) <to_string>: Move ...
2884 * top.c (execute_command_to_string): ... here. Call
2885 set_batch_flag_and_make_cleanup_restore_page_info.
2886 * utils.c (make_cleanup_restore_integer): New source file blank line.
2887 (make_cleanup_restore_uinteger): New.
2888 (struct restore_ui_file_closure, do_restore_ui_file)
2889 (make_cleanup_restore_ui_file): Move here from python/python.c.
2890 (init_page_info) <batch_flag>
2891 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2892 (set_batch_flag_and_make_cleanup_restore_page_info): New.
2894 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
2896 * thread.c (add_thread_silent): Use null_ptid instead of
2897 minus_one_ptid while getting rid of stale inferior_ptid.
2899 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
2901 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2902 Throughout, call read_encoded_value with ptr_size rather than addr_size.
2903 (decode_frame_entry_1): Remove redundant setting of
2904 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2905 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
2906 on examined frame section. Add comment to explain why.
2907 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
2908 comment to explain usage.
2909 * gdbarch.c: Regenerate.
2910 * gdbarch.h: Regenerate.
2912 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2914 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2917 * varobj.c (varobj_create): Move variables fi, old_fi and block to
2920 2010-08-05 Pedro Alves <pedro@codesourcery.com>
2922 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2923 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2924 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2925 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2926 linux-tdep.o to gdb_target_obs.
2928 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
2930 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
2933 2010-08-05 Hui Zhu <teawater@gmail.com>
2935 * mips-linux-tdep.c(regset.h): New include.
2936 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2937 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2938 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2939 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2940 mips_linux_regset_from_core_section): New functions.
2941 (fetch_core_registers, regset_core_fns): Deleted.
2942 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2943 Deleted regset_core_fns.
2944 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2945 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2946 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2949 2010-08-04 Pedro Alves <pedro@codesourcery.com>
2951 * s390-tdep.c: Include linux-tdep.h.
2952 (s390_gdbarch_init): Call linux_init_abi.
2954 2010-08-04 Pedro Alves <pedro@codesourcery.com>
2956 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2957 instead of printing "Thread" here.
2958 * linux-tdep.c: Include inferior.h.
2959 (linux_core_pid_to_str): New.
2960 (linux_init_abi): New.
2961 * linux-tdep.h (linux_init_abi): Declare.
2962 * alpha-linux-tdep.c: Include linux-tdep.h.
2963 (alpha_linux_init_abi): Call linux_init_abi.
2964 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2965 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2966 * frv-linux-tdep.c: Include linux-tdep.h
2967 (frv_linux_init_abi): Call linux_init_abi.
2968 * hppa-linux-tdep.c: Include linux-tdep.h
2969 (hppa_linux_init_abi): Call linux_init_abi.
2970 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2971 * ia64-linux-tdep.c: Include linux-tdep.h.
2972 (ia64_linux_init_abi): Call linux_init_abi.
2973 * m32r-linux-tdep.c: Include linux-tdep.h.
2974 (m32r_linux_init_abi): Call linux_init_abi.
2975 * m68klinux-tdep.c: Include linux-tdep.h.
2976 (m68k_linux_init_abi): Call linux_init_abi.
2977 * microblaze-linux-tdep.c: Include linux-tdep.h.
2978 (microblaze_linux_init_abi): Call linux_init_abi.
2979 * mips-linux-tdep.c: Include linux-tdep.h.
2980 (mips_linux_init_abi): Call linux_init_abi.
2981 * mn10300-linux-tdep.c: Include linux-tdep.h.
2982 (am33_linux_init_osabi): Call linux_init_abi. Rename the
2983 'gdbinfo' parameter to 'info'.
2984 * ppc-linux-tdep.c: Include linux-tdep.h.
2985 (ppc_linux_init_abi): Call linux_init_abi.
2986 * sh-linux-tdep.c: Include linux-tdep.h.
2987 (sh_linux_init_abi): Call linux_init_abi.
2988 * sparc-linux-tdep.c: Include linux-tdep.h.
2989 (sparc32_linux_init_abi): Call linux_init_abi.
2990 * sparc64-linux-tdep.c: Include linux-tdep.h.
2991 (sparc64_linux_init_abi): Call linux_init_abi.
2992 * xtensa-linux-tdep.c: Include linux-tdep.h.
2993 (xtensa_linux_init_abi): Call linux_init_abi.
2994 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2995 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2998 2010-08-03 Doug Evans <dje@google.com>
3000 * breakpoint.c (bpdisp_text): Constify bpdisps.
3001 * solib-svr4.c (solib_break_names): Constify.
3002 (bkpt_names, main_name_list): Constify.
3003 (match_main): Constify soname arg.
3004 (bfd_lookup_symbol): Remove unnecessary forward decl.
3005 Constify symname arg.
3006 (enable_break): Constify bkpt_namep.
3007 * symtab.c (search_symbols): Constify types, types2, types3, types4.
3008 (symtab_symbol_info): Constify classnames.
3010 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
3012 * NEWS: Document Python value inferior function calls.
3014 2010-08-02 Doug Evans <dje@google.com>
3016 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
3018 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3020 * linux-thread-db.c (libthread_db_debug): New variable.
3021 (thread_db_find_new_threads_silently): Control verbosity with it.
3022 (try_thread_db_load_1, try_thread_db_load): Likewise.
3023 (find_new_threads_once): Likewise.
3024 (_initialize_thread_db): Set/show it.
3026 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3028 * common/signals.c (signals): Move the content to signals.def.
3029 Include it. Remove the INDENT comments.
3031 2010-07-30 Tom Tromey <tromey@redhat.com>
3033 * Makefile.in (install-only): Install gdb-add-index.
3034 * gdb-add-index.sh: New file.
3036 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
3038 * MAINTAINERS: Add myself for write after approval privileges.
3040 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3042 * symfile.c (addr_section_name): New function.
3043 (addrs_section_compar): Use it.
3044 (addr_info_make_relative): Use it. Move variable sect_name into a more
3045 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
3047 2010-07-30 Tom Tromey <tromey@redhat.com>
3049 * configure: Rebuild.
3050 * configure.ac: Add missing case for Python 2.7.
3052 2010-07-29 DJ Delorie <dj@redhat.com>
3054 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
3057 2010-07-29 Pedro Alves <pedro@codesourcery.com>
3059 * PROBLEMS: Remove mention of all problems.
3061 2010-07-28 Pedro Alves <pedro@codesourcery.com>
3064 * configure.ac: Check for wresize.
3065 * configure, config.in: Regenerate.
3066 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
3069 2010-07-28 Tom Tromey <tromey@redhat.com>
3072 * python/py-type.c (typy_legacy_template_argument): New function,
3073 extracted from typy_template_argument.
3074 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
3077 2010-07-28 Oleg Nesterov <oleg@redhat.com>
3079 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
3081 2010-07-27 Tom Tromey <tromey@redhat.com>
3083 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
3085 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
3087 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
3088 handling DW_AT_object_pointer, and workaround GCC PR 43053.
3090 2010-07-28 Tom Tromey <tromey@redhat.com>
3092 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
3094 2010-07-28 Joel Brobecker <brobecker@adacore.com>
3096 * remote.c (remote_download_tracepoint): Add missing gettext markup.
3097 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
3099 2010-07-28 Joel Brobecker <brobecker@adacore.com>
3101 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
3102 down, just before the block that parse the breakpoint addr_string.
3104 2010-07-28 Tom Tromey <tromey@redhat.com>
3107 * symfile.c (reread_symbols): Clear template_symbols.
3108 * symtab.h (struct symbol) <is_cplus_template_function>: New
3110 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
3111 (struct template_symbol): New.
3112 * symtab.c (lookup_symbol_aux_local): Use
3113 cp_lookup_symbol_imports_or_template.
3114 * objfiles.h (struct objfile) <template_symbols>: New field.
3115 * objfiles.c (relocate_one_symbol): New function.
3116 (objfile_relocate1): Use it. Relocate isolated symbols.
3117 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
3118 template_arguments>: New fields.
3119 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
3120 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
3121 (TYPE_TEMPLATE_ARGUMENT): Likewise.
3122 (lookup_typename): Update.
3123 * gdbtypes.c (lookup_typename): Constify "block" argument.
3124 * dwarf2read.c: Include vec.h.
3125 (symbolp): New typedef.
3126 (read_func_scope): Read template arguments. Allocate a
3127 template_symbol when needed.
3128 (read_structure_type): Read template arguments.
3129 (new_symbol_full): New function, from new_symbol. Handle
3130 DW_TAG_template_type_param and DW_TAG_template_value_param.
3131 (new_symbol): Rewrite as wrapper.
3132 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
3133 * cp-namespace.c: Include language.h.
3134 (search_symbol_list): New function.
3135 (cp_lookup_symbol_imports_or_template): Likewise.
3137 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3139 * tui/tui-win.c (make_visible_with_new_height): Resize and move
3140 the command window to the new size and position.
3142 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3144 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
3147 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3149 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
3150 after a detecting a resize.
3151 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
3154 2010-07-28 Pedro Alves <pedro@codesourcery.com>
3156 * configure.ac: Check for resize_term.
3157 * configure, config.in: Regenerate.
3159 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3161 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
3163 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3165 * dwarf2read.c (read_string): Rename to ...
3166 (read_direct_string): ... this.
3167 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
3168 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
3170 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3172 * linux-nat.c (linux_nat_lp_status_is_event): New function.
3173 (count_events_callback, select_event_lwp_callback)
3174 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
3176 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3178 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
3179 (_initialize_ia64_linux_nat): Install it.
3180 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
3181 (linux_nat_set_status_is_event): New.
3182 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
3183 cancel_breakpoints_callback, linux_nat_filter_event)
3184 (linux_nat_wait_1): Use linux_nat_status_is_event.
3185 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
3187 2010-07-27 Tom Tromey <tromey@redhat.com>
3189 * NEWS: Mention labels, .gdb_index.
3191 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
3193 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3194 "start,+length" form of arguments.
3195 * NEWS: Add "Changed commands" (disassemble) section for "Changes
3196 since GDB 7.1"; and merge two separated paragraphs of disassemble
3197 description in "Changes in GDB 7.0".
3199 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3201 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
3202 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
3203 (fputs_maybe_filtered): Do not do filtering also on
3204 ! INPUT_FROM_TERMINAL_P.
3206 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3208 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
3211 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
3213 * python/py-value.c (valpy_call): New Function.
3215 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
3217 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
3218 types_list_elements variables.
3220 2010-07-26 Tom Tromey <tromey@redhat.com>
3222 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
3223 TLS with DW_OP_const4u or DW_OP_const8u.
3225 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
3227 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
3228 VSX registers contents.
3230 2010-07-26 Jerome Guitton <guitton@adacore.com>
3232 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
3233 its adress is null. Add comment to explain why.
3234 (new_symbol): Ditto.
3236 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3238 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
3239 the host signal first.
3241 2010-07-23 Tom Tromey <tromey@redhat.com>
3243 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
3244 type_comp_units>: New fields.
3245 (dw2_get_cu): New function.
3246 (create_cus_from_index): Remove unused argument.
3247 (create_signatured_type_hash_from_index): New function.
3248 (create_addrmap_from_index): Update.
3249 (dwarf2_read_index): Handle version 2.
3250 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
3251 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
3252 (dw2_print_stats, dw2_expand_all_symtabs)
3253 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
3254 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
3255 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
3256 (allocate_signatured_type_hash_table): New function.
3257 (add_signatured_type_cu_to_list): Likewise.
3258 (create_debug_types_hash_table): Use them. Set type_comp_units.
3259 (read_signatured_type): Ensure section data is available.
3260 (add_address_entry): Don't record empty ranges.
3261 (struct signatured_type_index_data): New.
3262 (write_one_signatured_type): New function.
3263 (write_psymtabs_to_index): Write type CUs.
3264 (save_gdb_index_command): Update comment.
3265 (process_type_comp_unit): Move inititalization of
3267 (create_debug_types_hash_table): ... here.
3269 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3271 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
3272 cleanup and generating of gdb script to it.
3273 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
3274 and terminal size. Convert $tmpfile to a series of -ex-es.
3276 2010-07-23 Keith Seitz <keiths@redhat.com>
3278 * symtab.c (basic_lookup_transparent_type): Call pre-expand
3279 hook for STATIC_BLOCK types, too.
3281 2010-07-23 Keith Seitz <keiths@redhat.com>
3283 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
3284 and vector definition.
3286 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3288 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
3290 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3292 * dwarf2read.c: Include completer.h.
3293 (save_gdb_index_command): Use matching usage command name.
3294 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
3295 Set filename_completer for it.
3297 2010-07-22 Tom Tromey <tromey@redhat.com>
3299 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
3300 type signature's per-CU data.
3302 2010-07-22 Pedro Alves <pedro@codesourcery.com>
3304 * NEWS: Mention target reported shared libraries support by
3307 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3312 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3313 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3314 and DW_TAG_volatile_type.
3315 (new_symbol): Likewise.
3317 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
3319 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
3320 function symbols before overload resolution.
3322 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3324 * breakpoint.c (bptype_string): New, abstracted out from
3325 print_one_breakpoint_location.
3326 (print_one_breakpoint_location): Adjust.
3327 (breakpoint_1): Adjust the type column width dynamically.
3329 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3331 * symfile.c (find_separate_debug_file_by_debuglink): Remove
3332 a gdb_assert call, new comment.
3334 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3336 * linux-nat.c (linux_handle_extended_wait): Handle case when
3337 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
3339 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3342 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
3343 linux_nat_wait_1. Use always LP->STATUS afterwards.
3345 2010-07-20 Hui Zhu <teawater@gmail.com>
3347 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
3348 (inf_ptrace_attach): Ditto.
3350 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3352 Make core files the process_stratum.
3353 * corefile.c (core_target): New variable.
3354 (core_file_command): Remove variable t, use core_target.
3355 * corelow.c (core_ops): Make it static.
3356 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
3357 * defs.h (make_cleanup_unpush_target): New prototype.
3358 * gdbarch.h: Regenerate.
3359 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
3360 * gdbcore.h (core_target): New declaration.
3361 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
3362 variables ops_already_pushed and back_to. Use push_target,
3363 make_cleanup_unpush_target and discard_cleanups calls.
3364 * record.c (record_open): Replace core_stratum by a core_bfd check.
3365 * target.c (target_is_pushed): New function.
3366 (find_core_target): Remove.
3367 * target.h (enum strata) <core_stratum>: Remove.
3368 (target_is_pushed): New declaration.
3369 (find_core_target): Remove declaration.
3370 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
3371 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
3373 2010-07-19 Hui Zhu <teawater@gmail.com>
3375 * breakpoint.c (single_step_breakpoints_inserted): New
3377 * breakpoint.h (single_step_breakpoints_inserted): Extern.
3378 * infrun.c (maybe_software_singlestep): Add check code.
3379 * record.c (record_resume): Add code for software single step.
3380 (record_wait): Ditto.
3382 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3384 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
3385 a more inner block. Remove its unused declaration initializer.
3387 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
3389 * NEWS: Mention support for the new ptrace interface and hardware
3390 accelerated watchpoint conditions on powerpc-linux.
3392 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
3394 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
3395 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
3396 and host_address_to_string() and %s for pointers.
3397 (debug_to_remove_breakpoint): Likewise.
3398 (debug_to_region_ok_for_hw_watchpoint): Likewise.
3399 (debug_to_can_accel_watchpoint_condition): Likewise.
3400 (debug_to_stopped_data_address): Likewise.
3401 (debug_to_watchpoint_addr_within_range): Likewise.
3402 (debug_to_insert_hw_breakpoint): Likewise.
3403 (debug_to_remove_hw_breakpoint): Likewise.
3404 (debug_to_insert_watchpoint): Likewise.
3405 (debug_to_remove_watchpoint): Likewise.
3407 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3409 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
3411 (cplus_specific): New struct.
3412 * symtab.c (symbol_set_demangled_name): Updated.
3413 Use cplus_specific for cplus symbols.
3414 (symbol_get_demangled_name): Retrive the name from the cplus_specific
3415 struct for cplus symbols.
3416 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
3417 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
3418 * symtab.c (symbol_init_cplus_specific): New function.
3420 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3422 * symtab.h (symbol_set_demangled_name): New function.
3423 (symbol_get_demangled_name): New function.
3424 * symtab.c (symbol_set_demangled_name): New function.
3425 (symbol_get_demangled_name): New function.
3426 (symbol_init_language_specific): Use demangled_name setter and getter.
3427 (symbol_set_names): Ditto.
3428 (symbol_natural_name): Ditto.
3429 (symbol_demangled_name): Ditto.
3430 * dwarf2read.c (new_symbol): Ditto.
3432 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3434 * symtab.h: Renamed cplus_specific to mangled_lang.
3435 * symtab.c (symbol_init_language_specific): Updated.
3436 (symbol_set_names): Updated.
3437 (symbol_natural_name): Updated.
3438 (symbol_demangled_name): Updated.
3439 * ada-lang.c (ada_decode_symbol): Updated.
3440 * dwarf2read.c (new_symbol): Updated.
3442 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3444 * valops.c (value_assign): Do not call to value_coerce_to_target.
3445 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
3447 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3449 * MAINTAINERS: Add myself for write after approval privileges.
3451 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
3453 * c-valprint.c (c_val_print): Add embedded_offset to address in
3454 call to val_print_array_elements.
3456 2010-07-13 Tom Tromey <tromey@redhat.com>
3458 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
3460 2010-07-13 Tom Tromey <tromey@redhat.com>
3462 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
3465 2010-07-13 Tom Tromey <tromey@redhat.com>
3467 * symfile.c (set_initial_language): Update.
3468 (deduce_language_from_filename): Argument type now const.
3469 * symtab.h (find_main_filename): Update.
3470 (deduce_language_from_filename): Update.
3471 * symtab.c (find_main_filename): Make result const.
3472 * dwarf2read.c (dw2_find_symbol_file): Change return type.
3473 * psymtab.c (find_symbol_file_from_partial): Change return type.
3474 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3477 2010-07-13 Tom Tromey <tromey@redhat.com>
3479 * breakpoint.c (save_cmdlist): No longer static.
3480 * gdbcmd.h (save_cmdlist): Declare.
3481 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
3482 OBJF_READNOW on objfile if readnow_symbol_files.
3483 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
3484 (elf_sym_fns_gdb_index): New global.
3485 * dwarf2read.c: Include exceptions.h.
3487 (struct mapped_index): New.
3488 (dwarf2_per_cu_data_ptr): New typedef.
3489 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
3491 (GDB_INDEX_SECTION): New define.
3492 (struct dwarf2_per_cu_quick_data): New.
3493 (struct dwarf2_per_cu_data) <objfile>: New field.
3496 (byte_swap): New function.
3497 (MAYBE_SWAP): New macro.
3498 (INDEX_SUFFIX): New macro.
3499 (dw2_do_instantiate_symtab): New function.
3500 (dw2_instantiate_symtab): Likewise.
3501 (create_cus_from_index): Likewise.
3502 (create_addrmap_from_index): Likewise.
3503 (mapped_index_string_hash): Likewise.
3504 (find_slot_in_mapped_hash): Likewise.
3505 (dwarf2_read_index): Likewise.
3506 (dw2_setup): Likewise.
3507 (dw2_require_line_header): Likewise.
3508 (dw2_require_full_path): Likewise.
3509 (dw2_find_last_source_symtab): Likewise.
3510 (dw2_forget_cached_source_info): Likewise.
3511 (dw2_lookup_symtab): Likewise.
3512 (dw2_lookup_symbol): Likewise.
3513 (dw2_do_expand_symtabs_matching): Likewise.
3514 (dw2_pre_expand_symtabs_matching): Likewise.
3515 (dw2_print_stats): Likewise.
3516 (dw2_dump): Likewise.
3517 (dw2_relocate): Likewise.
3518 (dw2_expand_symtabs_for_function): Likewise.
3519 (dw2_expand_all_symtabs): Likewise.
3520 (dw2_expand_symtabs_with_filename): Likewise.
3521 (dw2_find_symbol_file): Likewise.
3522 (dw2_map_ada_symtabs): Likewise.
3523 (dw2_expand_symtabs_matching): Likewise.
3524 (dw2_find_pc_sect_symtab): Likewise.
3525 (dw2_map_symbol_names): Likewise.
3526 (dw2_map_symbol_filenames): Likewise.
3527 (dw2_has_symbols): Likewise.
3528 (dwarf2_gdb_index_functions): New global.
3529 (dwarf2_initialize_objfile): New function.
3530 (process_psymtab_comp_unit): Update.
3531 (add_partial_subprogram): Likewise.
3532 (dwarf2_psymtab_to_symtab): Likewise.
3533 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3534 (process_full_comp_unit): Update.
3535 (find_file_and_directory): New function.
3536 (read_file_scope): Use find_file_and_directory.
3537 (dwarf2_per_cu_objfile): Update.
3538 (dwarf2_per_cu_addr_size): Update.
3539 (dwarf2_per_cu_offset_size): Update.
3540 (dwarf2_free_objfile): Free the index, if needed.
3541 (dwarf2_per_objfile_free): Unmap the index, if needed.
3542 (struct strtab_entry): New.
3543 (hash_strtab_entry): New function.
3544 (eq_strtab_entry): Likewise.
3545 (create_strtab): Likewise.
3546 (add_string): Likewise.
3547 (struct symtab_index_entry): New.
3548 (struct mapped_symtab): New.
3549 (hash_symtab_entry): New function.
3550 (eq_symtab_entry): Likewise.
3551 (delete_symtab_entry): Likewise.
3552 (create_index_table): Likewise.
3553 (create_mapped_symtab): Likewise.
3554 (cleanup_mapped_symtab): Likewise.
3555 (find_slot): Likewise.
3556 (hash_expand): Likewise.
3557 (add_index_entry): Likewise.
3558 (add_indices_to_cpool): Likewise.
3559 (write_hash_table): Likewise.
3560 (add_address_entry): Likewise.
3561 (write_psymbols): Likewise.
3562 (write_obstack): Likewise.
3563 (unlink_if_set): Likewise.
3564 (write_psymtabs_to_index): Likewise.
3565 (save_gdb_index_command): Likewise.
3566 (_initialize_dwarf2_read): Install "save gdb-index"
3568 (create_all_comp_units): Initialize 'objfile' field of CU.
3569 (dwarf2_locate_sections): Check for .gdb_index.
3570 * psymtab.h (dwarf2_gdb_index_functions): Declare.
3571 * symfile.h (dwarf2_initialize_objfile): Declare.
3573 2010-07-13 Tom Tromey <tromey@redhat.com>
3575 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3576 (basic_lookup_transparent_type): Likewise.
3577 * symfile.h (struct quick_symbol_functions)
3578 <pre_expand_symtabs_matching>: New field.
3579 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3580 (psym_functions): Update.
3582 2010-07-13 Tom Tromey <tromey@redhat.com>
3584 PR breakpoints/8357:
3585 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3586 * linespec.c (decode_line_1): Update comment. Call decode_label.
3587 (decode_label): New function.
3588 (symbol_found): Handle LOC_LABEL.
3589 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3590 domain. Call add_symbol_to_list.
3592 2010-07-13 Tom Tromey <tromey@redhat.com>
3594 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3595 * dwarf2loc.c (find_location_expression): Use
3596 dwarf2_per_cu_text_offset.
3597 (dwarf2_evaluate_loc_desc): Likewise.
3598 (dwarf2_loc_desc_needs_frame): Likewise.
3599 (compile_dwarf_to_ax): Likewise.
3600 (loclist_describe_location): Likewise.
3601 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3602 (dwarf2_per_cu_objfile): Update comment.
3604 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3606 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3607 * p-lang.c (pascal_printstr): Likewise.
3609 2010-07-09 Tom Tromey <tromey@redhat.com>
3611 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3612 'hint' if it is NULL.
3614 2010-07-09 Hui Zhu <teawater@gmail.com>
3616 * source.c (print_source_lines_base): Add check for noprint.
3618 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3620 * python/python-config.py: Resync with Python 2.7 version of this
3623 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3625 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3627 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3629 * NEWS: Create a new section for the next release branch.
3630 Rename the section of the current branch, now that it has
3633 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3635 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3636 * version.in: Bump version to 7.2.50.20100707-cvs.
3638 2010-07-07 Tom Tromey <tromey@redhat.com>
3640 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3641 LOC_COMPUTED symbol.
3642 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3643 (dwarf2_loc_desc_needs_frame): Likewise.
3644 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3645 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3646 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3647 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3649 (struct dwarf2_frame_cache) <text_offset>: New field.
3650 (dwarf2_frame_cache): Set new field.
3651 (dwarf2_frame_prev_register): Update.
3652 (dwarf2_frame_sniffer): Update.
3653 (dwarf2_frame_base_sniffer): Update.
3654 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3656 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3657 Thiago Jung Bauermann <bauerman@br.ibm.com>
3659 Support for hw accelerated condition watchpoints in booke powerpc.
3661 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3662 and move to eval.c. Change callers.
3663 (insert_bp_location): Pass watchpoint condition in
3664 target_insert_watchpoint.
3665 (remove_breakpoint_1) Pass watchpoint condition in
3666 target_remove_watchpoint.
3667 (watchpoint_locations_match): Call
3668 target_can_accel_watchpoint_condition.
3669 * eval.c: Include wrapper.h.
3670 (fetch_subexp_value): Moved from breakpoint.c.
3671 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3673 (can_use_watchpoint_cond_accel): New function.
3674 (calculate_dvc): Likewise.
3675 (num_memory_accesses): Likewise.
3676 (check_condition): Likewise.
3677 (ppc_linux_can_accel_watchpoint_condition): Likewise
3678 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3679 check_condition and calculate_dvc.
3680 (ppc_linux_remove_watchpoint): Likewise.
3681 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3682 ppc_linux_can_accel_watchpoint_condition
3683 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3685 (debug_to_remove_watchpoint): Likewise.
3686 (debug_to_can_accel_watchpoint_condition): New function.
3687 (update_current_target): Set to_can_accel_watchpoint_condition.
3688 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3689 * target.h: Add opaque declaration for struct expression.
3690 (struct target_ops) <to_insert_watchpoint>,
3691 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3692 <to_can_accel_watchpoint_condition>: New member.
3693 condition. Update all callers and implementations.
3694 (target_can_accel_watchpoint_condition): New macro.
3695 * value.c (free_value_chain): New function.
3696 * value.h (fetch_subexp_value): New prototype.
3697 (free_value_chain): Likewise.
3699 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3701 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3702 from gdbarch_core_regset_sections also for .reg if present.
3704 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3705 section size for .reg.
3706 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3707 (ppc_linux_vmx_regset_sections): Likewise.
3708 (ppc_linux_fp_regset_sections): Likewise.
3709 (ppc64_linux_vsx_regset_sections): New variable.
3710 (ppc64_linux_vmx_regset_sections): Likewise.
3711 (ppc64_linux_fp_regset_sections): Likewise.
3712 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3713 for current word size.
3715 2010-07-06 Joel Brobecker <brobecker@adacore.com>
3717 * server.c (myresume): Make static.
3719 2010-07-06 Tom Tromey <tromey@redhat.com>
3721 * configure, config.in: Rebuild.
3722 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3723 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3725 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3727 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3730 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
3732 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3733 * gdbtypes.c (floatformats_ieee_half): New variable.
3734 * doublest.c (floatformat_from_length): Set format to
3735 gdbarch_half_format if length matches.
3736 * gdbarch.sh (half_bit): New architecture method.
3737 (half_format): Likewise.
3738 * gdbarch.h: Regenerate.
3739 * gdbarch.c: Likewise.
3741 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3742 Joel Brobecker <brobecker@adacore.com>
3744 Fix re-run of PIE executable, PR shlibs/11776.
3745 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3746 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3748 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3749 Joel Brobecker <brobecker@adacore.com>
3751 * auxv.c (memory_xfer_auxv): Update attach comment.
3752 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3753 svr4_relocate_main_executable.
3754 (svr4_solib_create_inferior_hook): Make the call to
3755 svr4_relocate_main_executable unconditional.
3757 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3758 Joel Brobecker <brobecker@adacore.com>
3760 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3762 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3763 Joel Brobecker <brobecker@adacore.com>
3765 Fix attaching to PIEs prelinked on the disk after the process was
3767 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3768 Verify it against bfd_get_arch_size. Try to match arbitrary
3769 displacement for the phdrs comparison.
3771 2010-07-02 Tom Tromey <tromey@redhat.com>
3774 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3775 value as optimized-out.
3777 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3778 Thiago Jung Bauermann <bauerman@br.ibm.com>
3780 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3781 represent?" question in comment. Change comment to a proper sentence.
3783 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
3785 * c-valprint.c (c_val_print): Fix printing of character vectors.
3787 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3789 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3790 create_breakpoint prototype.
3792 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3794 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3795 usefulness suggestion of multiple breakpoints at same location.
3797 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3799 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3801 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3803 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3804 (loclist_tracepoint_var_ref): Handle optimized out values.
3806 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3808 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3809 unnecessary space in string.
3810 * filesystem.c (_initialize_filesystem): Ditto.
3811 * frame.c (_initialize_frame): Ditto.
3812 * infcmd.c (step_once): Ditto.
3813 * infrun.c (_initialize_infrun): Ditto.
3814 * linux-nat.c (linux_child_follow_fork): Ditto.
3815 * maint.c (maintenance_deprecate): Ditto.
3816 * memattr.c (_initialize_mem): Ditto.
3817 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3818 * monitor.c (monitor_open): Ditto.
3819 * procfs.c (procfs_xfer_memory): Ditto.
3820 * reverse.c (bookmarks_info): Ditto.
3821 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3822 * stack.c (_initialize_stack): Ditto.
3823 * tracepoint.c (_initialize_tracepoint): Ditto.
3824 * xtensa-tdep.c (xtensa_supply_gregset,
3825 xtensa_regset_from_core_section): Ditto.
3827 2010-07-01 Tom Tromey <tromey@redhat.com>
3829 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3831 * value.c (value_entirely_optimized_out): Invert result. Update
3832 for new function name.
3834 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3836 Static tracepoints support.
3838 * NEWS: Mention new support for static tracepoints.
3839 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3840 qXfer:statictrace:read.
3841 (New features in the GDB remote stub, GDBserver): Mention static
3842 tracepoints support using an UST based backend.
3843 (New commands): Mention "info static-tracepoint-markers" and
3845 * breakpoint.c (is_marker_spec): New.
3846 (is_tracepoint): Handle static tracepoints.
3847 (validate_commands_for_breakpoint): Static tracepoints can't do
3849 (static_tracepoints_here): New.
3850 (bpstat_what): Handle static tracepoints.
3851 (print_one_breakpoint_location, allocate_bp_location, mention):
3853 (create_breakpoint_sal): Ditto.
3854 (decode_static_tracepoint_spec): New.
3855 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3856 `type_wanted'. Adjust. Handle static tracepoint marker
3858 (break_command_1): Adjust.
3859 (update_static_tracepoint): New.
3860 (update_breakpoint_locations): Handle static tracepoints.
3861 (breakpoint_re_set_one): Handle static tracepoint marker
3863 (disable_command, enable_command): Handle static tracepoints.
3864 (trace_command, ftrace_command): Adjust.
3865 (strace_command): New.
3866 (create_tracepoint_from_upload): Adjust.
3867 (save_breakpoints): Handle static tracepoints.
3868 (_initialize_breakpoint): Install the "strace" command.
3869 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3870 (struct breakpoint): New fields static_trace_marker_id and
3871 static_trace_marker_id_idx.
3872 (breakpoints_here_p): Declare.
3873 (create_breakpoint): Adjust.
3874 (static_tracepoints_here): Declare.
3875 * remote.c (struct remote_state) <static_tracepoints>: New field.
3876 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3877 (remote_static_tracepoint_marker_at): New.
3878 (remote_static_tracepoint_markers_by_strid): New.
3879 (remote_static_tracepoint_feature): New.
3880 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3881 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3882 (remote_supports_static_tracepoints): New.
3883 (remote_download_tracepoint): Download static tracepoints.
3884 (init_remote_ops): Install remote_static_tracepoint_marker_at and
3885 remote_static_tracepoint_markers_by_strid.
3886 (_initialize_remote): Install set|show remote static-tracepoints,
3887 and set|show remote read-sdata-object commands.
3888 * target.c (update_current_target): Inherit and default
3889 to_static_tracepoint_marker_at, and
3890 to_static_tracepoint_markers_by_strid.
3891 * target.h (static_tracepoint_marker): Forward declare.
3892 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
3893 (static_tracepoint_marker_p): New typedef.
3894 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3895 (struct target_ops): New fields to_static_tracepoint_marker_at and
3896 to_static_tracepoint_markers_by_strid.
3897 (target_static_tracepoint_marker_at)
3898 (target_static_tracepoint_markers_by_strid): New.
3899 * tracepoint.c: Include source.h.
3900 (validate_actionline): Handle $_sdata.
3901 (struct collection_list): New field strace_data.
3902 (add_static_trace_data): New.
3903 (clear_collection_list): Clear strace_data.
3904 (stringify_collection_list): Account for a possible static trace
3906 (encode_actions_1): Encode an $_sdata collection.
3907 (parse_tracepoint_definition): Handle static tracepoints.
3908 (parse_static_tracepoint_marker_definition): New.
3909 (release_static_tracepoint_marker): New.
3910 (print_one_static_tracepoint_marker): New.
3911 (info_static_tracepoint_markers_command): New.
3912 (sdata_make_value): New.
3913 (_initialize_tracepoint): Create the $_sdata convenience variable.
3914 Add the "info static-tracepoint-markers" command.
3915 Mention $_sdata in the "collect" command's help output.
3916 * tracepoint.h (struct static_tracepoint_marker): New.
3917 (parse_static_tracepoint_marker_definition)
3918 (release_static_tracepoint_marker): Declare.
3919 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3920 * python/py-breakpoint.c (bppy_new): Adjust.
3922 2010-06-30 Joel Brobecker <brobecker@adacore.com>
3924 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3927 2010-06-29 Doug Evans <dje@google.com>
3930 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3931 DW_AT_external is present.
3935 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3936 create a symbol for the field and record the value.
3937 (new_symbol): Handle DW_TAG_member.
3938 * gdbtypes.c (field_is_static): Remove FIXME.
3939 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3940 only ignore LOC_CONST symbols that are enums.
3942 * dwarf2read.c: Remove trailing whitespace.
3944 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3945 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3946 (struct main_type, field loc): Delete dwarf_block.
3947 (FIELD_DWARF_BLOCK): Delete.
3948 (SET_FIELD_DWARF_BLOCK): Delete.
3949 (TYPE_FIELD_DWARF_BLOCK): Delete.
3950 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3953 2010-06-29 Hui Zhu <teawater@gmail.com>
3955 * record.c (set_record_pic_cmdlist,
3956 show_record_pic_cmdlist): New variables.
3957 (set_record_pic_command,
3958 show_record_pic_command): New functions.
3959 (record_pic_function, record_pic_line, record_pic_enum,
3960 set_record_pic_type, record_pic_hide_nofunction,
3961 record_pic_hide_nosource, record_pic_hide_same): New variables.
3962 (record_pic_fputs): New function.
3963 (function_list, node_list, edge_list): New struct.
3964 (function_list, node_list, edge_list): New variables.
3965 (record_pic_cleanups, record_pic_node,
3966 record_pic_edge, cmd_record_pic): New functions.
3967 (_initialize_record): Add new commands for record pic.
3969 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3971 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3972 ALLOCATE_CPLUS_STRUCT_TYPE.
3974 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
3975 Tom Tromey <tromey@redhat.com>
3976 Thiago Jung Bauermann <bauerman@br.ibm.com>
3978 * value.c (pack_unsigned_long): New function.
3979 (value_from_ulongest): New function.
3980 * value.h (value_from_ulongest): Declare.
3981 * python/python.c (_initialize_python): Call
3982 gdbpy_initialize_thread and gdbpy_initialize_inferior.
3983 * python/python-internal.h: Define thread_object.
3984 (gdbpy_inferiors, gdbpy_selected_thread)
3985 (frame_info_to_frame_object, create_thread_object)
3986 (find_thread_object, find_inferior_object)
3987 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3988 (gdbpy_is_value_object, get_addr_from_python): Declare.
3989 * python/py-value.c (builtin_type_upylong): Define.
3990 (convert_value_from_python): Add logic for ulongest.
3991 (gdbpy_is_value_object): New function.
3992 * python/py-utils.c (get_addr_from_python): New function.
3993 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3994 (gdbpy_selected_frame): Use PyObject over frame_info.
3995 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3997 (SUBDIR_PYTHON_SRCS): Likewise.
3998 (py-inferior.o): New Rule.
3999 (py-infthread.o): New Rule.
4000 * python/py-inferior.c: New File.
4001 * python/py-infthread.c: New File.
4003 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4005 * c-typeprint.c (c_type_print_base): For no fields check include also
4006 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
4007 * dwarf2read.c (struct typedef_field_list)
4008 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
4009 (dwarf2_add_typedef): New.
4010 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
4011 Copy also FI.TYPEDEF_FIELD_LIST.
4012 * gdbtypes.h (struct typedef_field)
4013 (struct cplus_struct_type) <typedef_field, typedef_field_count>
4014 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
4015 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
4017 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4019 * cp-namespace.c (cp_lookup_nested_type): New variable
4020 concatenated_name. Turn the current return condition into a reverse
4021 one. Call also lookup_static_symbol_aux on the constructed qualified
4023 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
4024 other files into a called ...
4025 (lookup_static_symbol_aux): ... new function here.
4026 * symtab.h (lookup_static_symbol_aux): New prototype.
4027 * valops.c (value_maybe_namespace_elt): Call also
4028 lookup_static_symbol_aux if we failed otherwise.
4030 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4032 Fix PR c++/11703 and PR gdb/1448.
4033 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
4036 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4038 Fix modification of cplus_struct_default.
4039 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
4040 Call ALLOCATE_CPLUS_STRUCT_TYPE.
4041 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
4043 2010-06-28 Joel Brobecker <brobecker@adacore.com>
4045 * NEWS: Add entry announcing the python directory.
4047 2010-06-28 Tom Tromey <tromey@redhat.com>
4049 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
4051 2010-06-28 Doug Evans <dje@google.com>
4053 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
4054 All callers updated.
4056 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4058 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
4059 obstack_begin after each obstack_free.
4061 2010-06-27 Doug Evans <dje@google.com>
4063 * value.c (value_static_field): Use `switch' instead of `if'.
4064 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
4066 * valops.c (search_struct_field): Fix typo in error message.
4068 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
4070 * dwarf2expr.c (execute_stack_op): Place preprocessor
4071 directives at the start of the source line.
4073 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
4075 * defs.h (make_command_stats_cleanup): Declare.
4076 (set_display_time): Declare.
4077 (set_display_space): Declare.
4078 * event-top.c (command_handler): Use make_command_stats_cleanup.
4079 * main.c (display_time, display_space): Move definitions to utils.c.
4080 (captured_main): Use make_command_stats_cleanup to get start-up
4082 Use set_display_time and set_display_space for processing OPT_STATISTICS
4084 * maint.c (maintenance_time_display): Use set_display_time.
4085 (maintenance_space_display): Use set_display_space.
4086 * top.c (execute_command): Remove obsolete 'maint time' code.
4087 (command_loop): Use make_command_stats_cleanup.
4088 * utils.c (struct cmd_stats): Structure for storing initial time
4090 (display_time, display_space): Move definitions here from utils.c.
4091 (set_display_time): New function.
4092 (set_display_space): New function.
4093 (make_command_stats_cleanup): New function.
4094 (report_command_stats): New auxiliary function for
4095 make_command_stats_cleanup.
4097 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4099 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
4100 hosts where CORE_ADDR is long long.
4102 2010-06-25 Tom Tromey <tromey@redhat.com>
4105 * python/python.c (execute_gdb_command): Add keywords. Accept
4106 "to_string" argument.
4107 (struct restore_ui_file_closure): New.
4108 (restore_ui_file): New function.
4109 (make_cleanup_restore_ui_file): Likewise.
4110 (GdbMethods) <execute>: Update.
4112 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4114 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
4115 during inferior call stack frame setup.
4117 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
4119 * solib-spu.c: Include "exception.h".
4120 (ocl_program_data_key): New variable.
4121 (append_ocl_sos): New function.
4122 (ocl_enable_break): Likewise.
4123 (spu_current_sos): Call append_ocl_sos.
4124 (spu_solib_loaded): Call ocl_enable_break.
4125 (_initialize_spu_solib): Register ocl_program_data_key.
4127 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4129 * cp-support.c (reset_directive_searched): New function.
4130 (make_symbol_overload_list_using): Prevent recursive calls.
4132 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
4134 * printcmd.c (print_variable_and_value): Print error message on
4137 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4139 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
4141 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
4143 (dwarf_expr_push): Change input type to ULONGEST.
4144 (dwarf_expr_fetch): Change return type to ULONGEST.
4145 (dwarf_expr_fetch_address): Add prototype.
4146 (dwarf2_read_address): Remove prototype.
4147 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
4148 Truncate stack values to ctx->addr_size bytes.
4149 (dwarf_expr_fetch): Change return value to ULONGEST.
4150 (dwarf_expr_fetch_address): New function.
4151 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
4152 when appropriate. Update for struct dwarf_expr_piece changes.
4153 (dwarf2_read_address): Remove.
4154 (unsigned_address_type): Remove.
4155 (signed_address_type): Remove.
4156 (execute_stack_op): Use dwarf_expr_fetch_address instead of
4157 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
4158 values. Perform operations on ULONGEST instead of on GDB values,
4159 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
4160 values and DW_OP_deref results as unsigned integers.
4161 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
4163 (write_pieced_value): Likewise.
4164 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
4165 dwarf_expr_fetch when appropriate.
4166 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
4167 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
4168 instead of dwarf_expr_fetch when appropriate.
4170 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
4172 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
4174 2010-06-24 Joel Brobecker <brobecker@adacore.com>
4176 * python/python.c (_initialize_python): Add new "constant"
4177 PYTHONDIR in gdb module. Insert this path at the head of
4178 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
4179 exec its __init__.py script if it exists in that directory.
4181 2010-06-24 Kevin Buettner <kevinb@redhat.com>
4183 * rx-tdep.c (RX_ACC_REGNUM): Define.
4184 (RX_NUM_REGS): Redefine to 26.
4185 (rx_register_name): Add register "acc". Change order of several
4186 registers. Change name of "vct" register to "fintv" to match RX
4188 (rx_register_type): Add case for RX_ACC_REGNUM.
4190 2010-06-24 Tom Tromey <tromey@redhat.com>
4192 * psymtab.c (lookup_partial_symbol): Mark definition as static.
4194 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4195 Tom Tromey <tromey@redhat.com>
4197 Fix GDB startup on readonly filesystem.
4198 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
4200 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4201 Pedro Alves <pedro@codesourcery.com>
4204 * breakpoint.c (handle_jit_event): New function.
4205 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
4206 jit, err, table and bs_class. New variables shlib_event, jit_event,
4207 this_action and bptype. Change bs_class assignments to this_action
4208 assignments. new unhandled bptype internal error. Move here
4209 shlib_event and jit_event handling from handle_inferior_event.
4210 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
4211 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
4212 BPSTAT_WHAT_CHECK_JIT.
4213 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
4214 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
4215 (handle_inferior_event): Reinitialize frame and gdbarch after
4216 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
4217 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
4218 gdbarch when frame gets reinitialized.
4220 2010-06-24 Hui Zhu <teawater@gmail.com>
4222 * printcmd.c (ui_printf): New function.
4223 (printf_command): Call ui_printf.
4224 (_initialize_printcmd): New command "eval".
4226 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
4228 * infrun.c (handle_inferior_event): Handle presence of single-step
4229 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
4230 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
4231 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
4232 * breakpoint.c (detach_single_step_breakpoints): New function.
4233 (detach_breakpoints): Call it.
4234 (cancel_single_step_breakpoints): New function.
4235 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
4237 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
4238 (spu_gdbarch_init): Install it.
4240 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4242 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
4243 * configure: Regenerate.
4245 2010-06-22 Hui Zhu <teawater@gmail.com>
4247 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
4248 (i386_process_record): Ditto.
4249 * record.c (record_memory_query): New variable.
4250 (_initialize_record): New command "set record memory-query".
4251 * record.h (record_memory_query): New extern.
4253 2010-06-21 Doug Evans <dje@google.com>
4255 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
4256 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
4257 (i386_syscall_p): Change type of lengthp to int.
4258 (i386_displaced_step_fixup): Handle kernels that run one past a
4260 * i386-linux-tdep.c (i386_linux_init_abi): Use
4261 i386_displaced_step_copy_insn instead of
4262 simple_displaced_step_copy_insn.
4264 2010-06-21 Tom Tromey <tromey@redhat.com>
4266 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
4267 (dwarf_type_encoding_name): Likewise.
4269 2010-06-21 Tom Tromey <tromey@redhat.com>
4271 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
4272 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
4273 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
4274 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
4275 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
4276 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
4277 * dwarf2read.c (tag_type_to_type): Create a new error type on
4279 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
4280 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
4282 2010-06-21 Michael Snyder <msnyder@vmware.com>
4284 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
4285 not add_abbrev_prefix_cmd, for "enable breakpoints".
4287 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
4289 * dwarf2loc.c (find_location_expression): Add relocation offset
4290 to base-address-selection entry base addresses. Read addresses
4291 (and offsets) as signed/unsigned integers, depending on the
4292 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
4293 (loclist_describe_location): Likewise.
4294 (disassemble_dwarf_expression): Read DW_OP_addr operand as
4295 unsigned integer. Do not call dwarf2_read_address.
4296 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
4298 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4300 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
4301 value instead of hard-coded SPU_LS_SIZE.
4302 (spu_software_single_step): Likewise.
4303 * spu-tdep.h (SPU_LS_SIZE): Remove.
4305 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4307 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
4308 limit on local store memory accesses.
4309 * spu-linux-nat.c (spu_xfer_partial): Likewise.
4310 * spu-tdep.c (spu_lslr): Remove.
4311 (spu_pointer_to_address): Do not truncate addresses.
4312 (spu_integer_to_address): Likewise.
4313 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
4314 * spu-tdep.h: Add comments.
4315 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
4316 (SPU_OVERLAY_LMA): Define.
4318 2010-06-18 Stan Shebs <stan@codesourcery.com>
4320 * osdata.c (get_osdata): Warn separately if target does not report
4322 (info_osdata_command): Allow empty type, report error if target
4323 does not return available types of OS data.
4324 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
4325 types if no annex supplied.
4327 * thread.c (thread_id_make_value): Make a value representing the
4329 (_initialize_thread): Create $_thread.
4331 2010-06-17 Joel Brobecker <brobecker@adacore.com>
4333 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
4334 last local variable declaration. No real code change.
4336 2010-06-17 Tom Tromey <tromey@redhat.com>
4338 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
4339 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
4342 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
4343 Jan Kratochvil <jan.kratochvil@redhat.com>
4345 * breakpoint.c: Include parser-defs.h.
4346 (watchpoint_exp_is_const): New function.
4347 (watch_command_1): Call watchpoint_exp_is_const to check
4348 if the expression is constant.
4350 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
4352 * configure.ac: Check for RDYNAMIC also for cross builds.
4353 * configure: Regenerate.
4355 2010-06-15 Pedro Alves <pedro@codesourcery.com>
4357 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4358 (SFILES): Remove solib-null.c, add solib-target.c.
4359 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
4360 (ALLDEPFILES): Remove solib-target.c.
4361 * solib-target.c (_initialize_solib_target): Set
4362 current_target_so_ops to solib_target_so_ops if not already set.
4363 * solib-null.c: Delete.
4365 2010-06-14 Pedro Alves <pedro@codesourcery.com>
4367 * NEWS: Mention GDBserver's JIT compilation of tracepoint
4370 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4372 * cp-valprint.c (cp_print_static_field): Members of
4373 dont_print_stat_array_obstack are of type "struct type *".
4374 (_initialize_cp_valprint): Likewise.
4376 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4378 * frame.c (frame_register_unwind): Do not access contents
4379 of "optimized out" unwound register value.
4381 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4383 * ada-lang.h (ada_print_type): Make varstring const.
4384 * ada-typeprint.c (print_func_type): Make name const.
4385 (ada_print_type): Make varstring const.
4386 * c-lang.h (c_print_type): Make varstring const.
4387 * c-typeprint.c (c_print_type): Likewise.
4388 * f-lang.h (f_print_type): Likewise.
4389 * f-typeprint.c (f_print_type): Likewise.
4390 * jv-lang.h (java_print_type): Likewise.
4391 * jv-typeprint.c (java_print_type): Likewise.
4392 * language.c (unk_lang_print_type): Likewise.
4393 * language.h (struct language_defn) <la_print_type>: Likewise.
4394 * m2-lang.h (m2_print_type): Likewise.
4395 * m2-typeprint.c (m2_print_type): Likewise.
4396 * p-lang.h (pascal_print_type): Likewise.
4397 * p-typeprint.c (pascal_print_type): Likewise.
4399 2010-06-11 Stan Shebs <stan@codesourcery.com>
4401 Add per-operation permission flags.
4403 * target.h (struct target_ops): New method to_set_permissions.
4404 (target_set_permissions): New macro.
4405 (target_insert_breakpoint): Change macro to function.
4406 (target_remove_breakpoint): Ditto.
4407 (target_stop): Ditto.
4408 (may_write_registers): Declare.
4409 (may_write_memory): Declare.
4410 (may_insert_breakpoints): Declare.
4411 (may_insert_tracepoints): Declare.
4412 (may_insert_fast_tracepoints): Declare.
4413 (may_stop): Declare.
4414 * target.c (may_write_registers, may_write_registers_1): New globals.
4415 (may_write_memory, may_write_memory_1): New globals.
4416 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
4417 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
4418 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
4420 (may_stop, may_stop_1): New global.
4421 (target_xfer_partial): Test for write permission.
4422 (target_store_registers): Ditto.
4423 (target_insert_breakpoint): New function.
4424 (target_remove_breakpoint): New function.
4425 (target_stop): New function.
4426 (_initialize_targets): Add new set/show variables.
4427 (set_write_memory_permission): New function.
4428 (update_target_permissions): New function.
4429 (set_target_permissions): New function.
4430 (update_current_target): Default to_set_permissions.
4431 (_initialize_targets): Use new globals and setter function.
4432 * tracepoint.c (start_tracing): Test for permission.
4433 * inferior.h (update_observer_mode): Declare.
4434 * infrun.c (non_stop_1): Define earlier.
4435 (observer_mode, observer_mode_1): New globals.
4436 (set_observer_mode, show_observer_mode): New functions.
4437 (update_observer_mode): New function.
4438 (_initialize_infrun): Define "set observer" command.
4439 * remote.c (PACKET_QAllow): New optional packet.
4440 (remote_protocol_features): Add QAllow.
4441 (remote_set_permissions): New function.
4442 (remote_start_remote): Call it.
4443 (init_remote_ops): Add it to target vector.
4444 (_initialize_remote): Add config command for QAllow.
4446 2010-06-11 Tom Tromey <tromey@redhat.com>
4448 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
4449 DW_AT_vtable_elem_location even when GCC extension is seen.
4451 2010-06-11 Tom Tromey <tromey@redhat.com>
4453 PR gdb/9977, PR exp/11636:
4454 * value.h (value_offset): Update.
4455 (struct lval_funcs) <check_validity>: New field.
4456 <copy_closure>: Make argument const.
4457 (value_computed_closure): Update.
4458 (value_contents_for_printing): Declare.
4459 (value_bits_valid): Likewise.
4460 (val_print): Likewise.
4461 (set_value_component_location): Update.
4462 (value_entirely_optimized_out): Declare.
4463 * value.c (value_offset): Argument now const.
4464 (require_not_optimized_out): New function.
4465 (value_contents_for_printing): New function.
4466 (value_contents_all): Call require_not_optimized_out.
4467 (value_contents): Likewise.
4468 (value_bits_valid): New function.
4469 (value_computed_closure): Argument now const.
4470 (set_value_component_location): Make 'whole' argument const.
4471 (value_entirely_optimized_out): New function.
4472 (value_bitsize): Argument now 'const'.
4473 (value_bitpos): Likewise.
4474 (value_type): Likewise.
4475 * valprint.h (val_print_array_elements): Update.
4476 * valprint.c (val_print): Add 'val' argument. Use
4477 valprint_check_validity.
4478 (valprint_check_validity): New function.
4479 (value_check_printable): Use value_entirely_optimized_out.
4480 (common_val_print): Update.
4481 (value_print): Likewise.
4482 (val_print_array_elements): Add 'val' argument.
4483 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
4484 value_bits_valid. Reinit frame cache for lval_computed.
4485 * sh64-tdep.c (sh64_do_register): Update.
4486 * scm-valprint.c (scm_val_print): Add 'val' argument.
4487 * scm-lang.h (scm_val_print): Update.
4488 * python/python.h (apply_val_pretty_printer): Update.
4489 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
4490 argument. Call set_value_component_location.
4491 * printcmd.c (print_scalar_formatted): Update.
4492 * p-valprint.c (pascal_val_print): Add 'val' argument.
4493 (pascal_object_print_value_fields): Likewise.
4494 (pascal_object_print_value): Likewise.
4495 (pascal_object_print_static_field): Update.
4496 * p-lang.h (pascal_val_print): Update.
4497 (pascal_object_print_value_fields): Update.
4498 * mt-tdep.c (mt_registers_info): Update.
4499 * mi/mi-main.c (get_register): Update.
4500 (mi_cmd_data_evaluate_expression): Use common_val_print.
4501 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4502 (m2_print_unbounded_array): Likewise.
4503 (m2_val_print): Likewise.
4504 * m2-lang.h (m2_val_print): Update.
4505 * language.h (struct language_defn) <la_val_print>: Add 'val'
4507 (LA_VAL_PRINT): Likewise.
4508 * language.c (unk_lang_val_print): Add 'val' argument.
4509 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4510 (java_val_print): Likewise.
4511 * jv-lang.h (java_val_print): Add 'val' argument.
4512 * infcmd.c (default_print_registers_info): Update.
4513 * f-valprint.c (f77_print_array_1): Add 'val' argument.
4514 (f77_print_array): Likewise.
4515 (f_val_print): Likewise.
4516 * f-lang.h (f_val_print): Add 'val' argument.
4517 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4519 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
4520 set_value_optimized_out.
4521 (write_pieced_value): Use value_bitsize and value_bitpos.
4522 <default>: Don't exit loop.
4523 (check_pieced_value_validity): New function.
4524 (pieced_value_funcs): Reference check_pieced_value_validity,
4525 check_pieced_value_invalid.
4526 (copy_pieced_value_closure): Update.
4527 (check_pieced_value_bits): New function.
4528 (check_pieced_value_invalid): New function.
4529 * d-valprint.c (dynamic_array_type): Add 'val' argument.
4530 (d_val_print): Likewise.
4531 * d-lang.h (d_val_print): Update.
4532 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4533 (cp_print_value_fields_rtti): Likewise.
4534 (cp_print_value): Likewise.
4535 (cp_print_static_field): Update.
4536 * c-valprint.c (c_val_print): Add 'val' argument.
4537 (c_value_print): Update.
4538 * c-lang.h (c_val_print): Update.
4539 (cp_print_value_fields): Likewise.
4540 (cp_print_value_fields_rtti): Likewise.
4541 * ada-valprint.c (struct ada_val_print_args): Remove.
4542 (val_print_packed_array_elements): Add 'val' argument.
4543 (ada_val_print): Likewise. Rewrite.
4544 (ada_val_print_stub): Remove.
4545 (ada_val_print_array): Add 'val' argument.
4546 (ada_val_print_1): Likewise.
4547 (print_variant_part): Likewise.
4548 (ada_value_print): Update.
4549 (print_record): Add 'val' argument.
4550 (print_field_values): Likewise.
4551 * ada-lang.h (ada_val_print): Update.
4553 2010-06-11 Tom Tromey <tromey@redhat.com>
4555 * vec.h (VEC_cleanup): New macro.
4556 (DEF_VEC_ALLOC_FUNC_I): Update.
4557 (DEF_VEC_ALLOC_FUNC_P): Likewise.
4558 (DEF_VEC_ALLOC_FUNC_O): Likewise.
4559 * dwarf2loc.c (struct axs_var_loc): Remove.
4560 (unimplemented): New function.
4561 (translate_register): Likewise.
4562 (access_memory): Likewise.
4563 (compile_dwarf_to_ax): Likewise.
4564 (dwarf2_tracepoint_var_loc): Remove.
4565 (dwarf2_tracepoint_var_access): Likewise.
4566 (dwarf2_tracepoint_var_ref): Likewise.
4567 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4568 (loclist_tracepoint_var_ref): Likewise.
4569 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4570 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4571 require_composition. No longer static.
4572 (execute_stack_op): Update.
4573 * ax-gdb.h (trace_kludge): Declare.
4575 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4577 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4578 (should_be_inserted): Return zero also on NULL OWNER.
4579 (breakpoint_program_space_exit): New OWNER comment.
4580 (insert_breakpoint_locations): Extend comment for OWNER.
4581 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4582 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4584 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4585 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4586 (bpstat_check_location): New assert on OWNER.
4587 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4588 and B initializations to the code block. New assert on them.
4589 (print_one_breakpoint_location): New OWNER comment.
4590 (watchpoint_locations_match): Assert on OWNER.
4591 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4592 initializations to the code block. New assert on OWNER.
4593 (set_breakpoint_location_function): New assert on OWNER.
4594 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4595 (bp_location_compare, update_global_location_list)
4596 (update_global_location_list): New OWNER comment.
4598 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4600 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4602 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4604 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4605 (lin_thread_get_thread_signals): Remove prototype.
4606 (GET_THREAD_SIGNALS): Remove.
4607 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4608 * linux-thread-db.c (check_thread_signals): Directly call
4609 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4611 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4613 * gregset.h (GDB_FPXREGSET_T): Remove.
4614 (gdb_fpxregset_t): Likewise.
4615 (supply_fpxregset): Remove prototype.
4616 (fill_fpxregset): Likewise.
4617 * i386-linux-nat.c (supply_fpxregset): Remove.
4618 (fill_fpxregset): Likewise.
4619 (fetch_fpxregs): Inline supply_fpxregset call.
4620 (store_fpxregs): Inline fill_fpxregset call.
4622 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4623 * config/i386/nm-linux.h: Remove file.
4625 2010-06-09 Michael Snyder <msnyder@vmware.com>
4627 * target.c (update_current_target): Fix spelling error in comment.
4628 (target_mourn_inferior): Fix spelling error in error message.
4630 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4632 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4633 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4635 2010-06-08 Michael Snyder <msnyder@vmware.com>
4637 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4639 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4641 * configure.ac <"${have_libpython}" != no>: New workaround of
4643 * configure: Regenerate.
4645 2010-06-08 Hui Zhu <teawater@gmail.com>
4647 * record.c (record_wait): Move signal out of replay code.
4649 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4652 * dwarf2-frame.c (no_dwarf_call): New function.
4653 (execute_stack_op): Set CTX->DWARF_CALL.
4654 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4655 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4656 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4657 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4658 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4659 (needs_frame_dwarf_call): New function.
4660 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4661 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4662 Update the comment. Move variables die, offset and error call to ...
4663 (follow_die_ref): ... a new function.
4664 (dwarf2_fetch_die_location_block): New function.
4665 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4667 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4669 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4670 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4671 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4672 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4674 (struct needs_frame_baton): New field per_cu.
4675 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4676 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4678 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4680 * cp-support.c (make_symbol_overload_list_namespace): Only search
4681 static and global blocks.
4682 (make_symbol_overload_list_block): New function.
4683 (make_symbol_overload_list): Separate namespace search from block
4685 (make_symbol_overload_list_qualified): Use
4686 make_symbol_overload_list_block.
4688 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4690 * value.h: Created oload_search_type enum.
4691 (find_overload_match): Use oload_search_type enum.
4692 * valops.c (find_overload_match): Support combined member and
4694 * eval.c (evaluate_subexp_standard): Calls to
4695 find_overload_match now use oload_search_type enum.
4696 (oload_method_static): Verify index is a proper value.
4697 * valarith.c (value_user_defined_cpp_op): Search for and handle
4698 both member and non-member operators.
4699 (value_user_defined_cpp_op): New function.
4700 (value_user_defined_op): New function.
4701 (value_x_unop): Use value_user_defined_op.
4702 (value_x_binop): Ditto.
4703 * cp-support.c (make_symbol_overload_list_using): Added block
4705 Add check for namespace aliases and imported declarations.
4707 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4709 * breakpoint.h (owner): Extend the comment.
4711 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4713 Clear stale specific bp_location from former whole breakpoint.
4714 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4716 (free_bp_location): ... here. Rename there the called function to
4717 bpstat_remove_bp_location_callback.
4718 (bpstat_remove_breakpoint_callback): Rename to ...
4719 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4720 to struct bp_location. Change the called function to
4721 bpstat_remove_bp_location. Create new declaration for the function.
4722 (bpstat_remove_breakpoint): Rename to ...
4723 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4724 code for the new parameter type.
4726 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4728 * README: Make version-agnostic.
4730 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4732 Fix duplicate types for single DIE.
4733 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4735 (read_array_type): Remove type initialization. Recheck get_die_type
4736 after initial die_type. Move set_die_type before set_descriptive_type.
4737 (read_set_type): New variable domain_type. Recheck get_die_type after
4738 initial die_type. Move attr initialization later.
4739 (read_tag_pointer_type, read_tag_reference_type): New variable
4740 target_type. Recheck get_die_type after initial die_type.
4741 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4742 die_type and die_containing_type.
4743 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4744 Recheck get_die_type after initial die_type.
4745 (read_subrange_type): Recheck get_die_type after initial die_type.
4746 Move set_die_type before set_descriptive_type.
4747 (set_die_type): Extend the function comment. Call complaint if DIE has
4748 some type already set.
4750 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4752 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4753 for current naming of thread groups (iN, not N).
4755 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4757 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4758 * parse.c (operator_length): Likewise.
4759 (operator_length_standard): Likewise.
4760 * parser-defs.h (operator_length): Likewise.
4761 (operator_length_standard): Likewise.
4762 (struct exp_descriptor <operator_length>): Likewise.
4764 2010-06-04 Doug Evans <dje@google.com>
4766 Add support for enabling/disabling individual pretty-printers.
4767 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4768 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4769 * python/python.c (gdbpy_enabled_cst): Define.
4770 (_initialize_python): Initialize gdbpy_enabled_cst.
4773 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4775 * breakpoint.c (update_global_location_list): Fix comment typo.
4777 2010-06-04 Hui Zhu <teawater@gmail.com>
4779 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4781 2010-06-03 Doug Evans <dje@google.com>
4783 * configure.ac: Don't fail if python is unusable when
4784 configured with --with-python=auto.
4785 * configure: Regenerate.
4787 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4789 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
4791 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4793 * valprint.h (get_array_bounds): Change low and high parameter types
4795 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
4797 (val_print_array_elements): Adapt to change above.
4798 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4799 * p-valprint.c (pascal_val_print): Likewise.
4801 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4803 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4804 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4807 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4809 Support DW_TAG_module as separate namespaces.
4810 * dwarf2read.c (typename_concat): New parameter physname.
4811 (read_module_type): New function and declaration.
4812 (scan_partial_symbols): Scan also DW_TAG_module children.
4813 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4814 to typename_concat backward compatible physname value 0.
4815 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4816 backward compatible physname value 0.
4817 (add_partial_module, read_module): Remove FIXME comment.
4818 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4819 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4820 DIEs under DW_TAG_module.
4821 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4822 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4823 && physname and return there instead of just setting NAME. Extend
4824 the main block for language_fortran. Pass physname parameter to the
4825 typename_concat call.
4826 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4827 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4828 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4829 missing from SYMBOL_SET_NAMES in the language_fortran case.
4830 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4832 (read_type_die) <DW_TAG_module>: New.
4833 (MAX_SEP_LEN): Increase to 7.
4834 (typename_concat): New parameter physname. New variable lead. Support
4835 also language_fortran.
4836 * f-exp.y (yylex): Consider : also as a symbol name character class.
4837 * f-lang.c: Include cp-support.h.
4838 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4839 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4840 f_word_break_characters and f_make_symbol_completion_list.
4841 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4842 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4843 * symtab.c (symbol_init_language_specific): Support language_fortran.
4844 (symbol_find_demangled_name): New comment on language_fortran.
4845 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4846 for language_fortran.
4847 (lookup_symbol_aux_local): Check imports also for language_fortran.
4848 (default_make_symbol_completion_list): Rename to ...
4849 (default_make_symbol_completion_list_break_on): ... this name. New
4850 parameter break_on, use it.
4851 (default_make_symbol_completion_list): New stub.
4852 * symtab.h (default_make_symbol_completion_list_break_on): New
4855 2010-06-02 Joel Brobecker <brobecker@adacore.com>
4857 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4860 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4862 * dwarf2read.c (typename_concat): Add const to the variable sep.
4864 2010-06-02 Tom Tromey <tromey@redhat.com>
4866 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4867 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4868 type is const. Add 'def' argument. Add missing operators, remove
4870 (decode_locdesc): Update.
4871 (dwarf2_always_disassemble): New global.
4872 (show_dwarf2_always_disassemble): New function.
4873 (_initialize_dwarf2_read): Add always-disassemble.
4874 (dwarf2_per_cu_offset_size): New function.
4875 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4876 (piece_end_p): New function.
4877 (locexpr_describe_location_piece): Replace 'size' argument with
4878 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
4879 some constants. Remove errors.
4880 (disassemble_dwarf_expression): New function.
4881 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4882 Add 'offset_size' argument.
4883 (loclist_describe_location): Change output formatting.
4884 * dwarf2expr.h (dwarf_stack_op_name): Declare.
4886 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
4888 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4889 anonymous type case.
4891 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
4893 * dwarf2read.c (read_subrange_type): Handle missing base type
4894 according to Dwarf-2 specifications.
4896 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
4898 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4900 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4901 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4902 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4903 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4904 UNOP_CHMAX, UNOP_CHMIN.
4905 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4906 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4907 UNOP_CHMIN>: Remove opcodes.
4909 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
4911 * dwarf2read.c (read_func_scope): Do not complain for
4912 external function if bounds are not found.
4914 2010-06-01 Pedro Alves <pedro@codesourcery.com>
4916 * NEWS: Mention gdbserver fast tracepoints support.
4918 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
4920 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4922 (windows_set_console_info): New function.
4923 (windows_create_inferior): Call windows_set_console_info
4924 if NEW_CONSOLE is true.
4925 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4926 (_initialize_loadable): Initialize GetConsoleFontSize and
4927 GetCurrentConsoleFont.
4929 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4931 * Makefile.in (RDYNAMIC): New.
4932 (SFILES): Add proc-service.list.
4933 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4934 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4935 * config/arm/linux.mh: Likewise.
4936 * config/i386/linux.mh: Likewise.
4937 * config/i386/linux64.mh: Likewise.
4938 * config/ia64/linux.mh: Likewise.
4939 * config/m32r/linux.mh: Likewise.
4940 * config/m68k/linux.mh: Likewise.
4941 * config/mips/linux.mh: Likewise.
4942 * config/pa/linux.mh: Likewise.
4943 * config/powerpc/linux.mh: Likewise.
4944 * config/powerpc/ppc64-linux.mh: Likewise.
4945 * config/s390/s390.mh: Likewise.
4946 * config/sparc/linux.mh: Likewise.
4947 * config/sparc/linux64.mh: Likewise.
4948 * config/xtensa/linux.mh: Likewise.
4949 * configure.ac: New RDYNAMIC on native host and GCC.
4950 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4951 * configure: Regenerate.
4952 * proc-service.list: New.
4954 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4956 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4959 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4961 * linux-nat.c (linux_nat_wait_1): Do not call
4962 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4963 TARGET_WAITKIND_SIGNALLED.
4965 2010-05-27 Joel Brobecker <brobecker@adacore.com>
4967 * ada-lang.c (ada_inferior_data): New struct.
4968 (ada_inferior_data): New static global.
4969 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4970 (ada_get_tsd_type): New functions.
4971 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4972 to look the tsd type up.
4973 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4974 event. Set ada_inferior_data.
4976 2010-05-27 Pedro Alves <pedro@codesourcery.com>
4978 * remote.c (unpack_varlen_hex): Remove forward declaration.
4979 (remote_console_output): Make static, and add forward declaration.
4980 * remote.h: Drop FIXME comment.
4981 (unpack_varlen_hex): Declare.
4982 (remote_console_output, remote_cisco_objfile_relocate)
4983 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4984 Delete declarations.
4985 * tracepoint.c: Include "remote.h".
4986 (unpack_varlen_hex): Delete declaration.
4988 2010-05-27 Tom Tromey <tromey@redhat.com>
4990 * dwarf2loc.c (struct piece_closure) <refc>: New field.
4991 (allocate_piece_closure): Initialize refc.
4992 (copy_pieced_value_closure): Use refc.
4993 (free_pieced_value_closure): Likewise.
4995 2010-05-27 Tom Tromey <tromey@redhat.com>
4997 * arm-tdep.c (push_stack_item): 'contents' now const.
4998 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
4999 value_contents_writeable. Introduce new temporary.
5001 2010-05-27 Tom Tromey <tromey@redhat.com>
5003 * findcmd.c (parse_find_args): Use value_contents, not
5006 2010-05-27 Tom Tromey <tromey@redhat.com>
5008 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
5009 const. Use value_contents, not value_contents_writeable.
5011 2010-05-27 Joel Brobecker <brobecker@adacore.com>
5013 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
5014 by call to value_contents.
5016 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
5018 * MAINTAINERS: Add myself for write after approval privileges.
5020 2010-05-26 Doug Evans <dje@google.com>
5022 Allow python to find its files if moved from original location.
5023 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
5024 (GDB_AC_WITH_DIR): Call it.
5025 * configure.ac: Define WITH_PYTHON_PATH if we can find the
5026 python installation directory.
5027 * config.in: Regenerate.
5028 * configure: Regenerate.
5029 * defs.h (python_libdir): Declare.
5030 * main.c (python_libdir): Define.
5031 (captured_main): Initialize python_libdir.
5032 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
5033 call Py_SetProgramName to make sure python can find its libraries
5036 * configure.ac: Try to use python's distutils to fetch compilation
5038 * configure: Regenerate.
5039 * python/python-config.py: New file.
5041 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
5043 * ser-tcp.c (net_open): Check error return from socket() call by its
5044 equality to -1 not by it being negative.
5045 (net_close): Likewise.
5047 2010-05-26 Pedro Alves <pedro@codesourcery.com>
5049 * NEWS: Mention the `qRelocInsn' feature.
5050 * gdbarch.sh (relocate_instruction): New.
5051 * amd64-tdep.c (rip_relative_offset): New.
5052 (append_insns): New.
5053 (amd64_relocate_instruction): New.
5054 (amd64_init_abi): Install it.
5055 * i386-tdep.c (append_insns): New.
5056 (i386_relocate_instruction): New.
5057 (i386_gdbarch_init): Install it.
5058 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
5059 * gdbarch.h, gdbarch.c: Regenerate.
5061 2010-05-26 Tom Tromey <tromey@redhat.com>
5063 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
5064 (struct dwarf2_loclist_baton) <data>: Likewise.
5065 * dwarf2loc.c (find_location_expression): Constify return type.
5066 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
5067 (dwarf2_loc_desc_needs_frame): Likewise.
5068 (loclist_read_variable): Constify.
5069 (loclist_describe_location): Likewise.
5070 (loclist_tracepoint_var_ref): Likewise.
5072 2010-05-25 Tom Tromey <tromey@redhat.com>
5074 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
5075 (dwarf_expr_frame_base_1): Likewise.
5076 (read_pieced_value): Update.
5077 (needs_frame_frame_base): Constify.
5078 (dwarf2_tracepoint_var_loc): Likewise.
5079 (dwarf2_tracepoint_var_access): Likewise.
5080 (locexpr_describe_location_piece): Likewise.
5081 (locexpr_describe_location_1): Likewise.
5082 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
5085 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
5086 (dwarf_expr_eval, read_uleb128, read_sleb128)
5087 (dwarf2_read_address): Update.
5088 * dwarf2expr.c (dwarf_expr_eval): Constify.
5089 (read_uleb128): Likewise.
5090 (read_sleb128): Likewise.
5091 (dwarf2_read_address): Likewise.
5092 (require_composition): Likewise.
5093 (execute_stack_op): Likewise.
5094 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
5096 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
5098 (no_get_frame_base): Constify.
5099 (execute_stack_op): Likewise.
5100 (execute_cfa_program): Likewise.
5101 (read_encoded_value): Likewise.
5103 2010-05-25 Doug Evans <dje@google.com>
5105 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
5107 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
5108 * event-loop.c: ... here.
5109 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
5110 `error' for clarity.
5111 (tui_getc): Pass correct value for `error' parameter to
5112 tui_readline_output.
5114 Add python gdb.GdbError and gdb.string_to_argv.
5115 * NEWS: Document them.
5116 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
5117 the exception is gdb.GdbError. Print a second traceback if there's
5118 an error computing the error message.
5119 (gdbpy_string_to_argv): New function.
5120 * python/py-utils.c (gdbpy_obj_to_string): New function.
5121 (gdbpy_exception_to_string): New function.
5122 * python/python-internal.h (gdbpy_string_to_argv): Declare.
5123 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
5124 (gdbpy_gdberror_exc): Declare.
5125 * python/python.c (gdbpy_gdberror_exc): New global.
5126 (_initialize_python): Initialize gdbpy_gdberror_exc and create
5128 (GdbMethods): Add string_to_argv.
5130 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5132 * windows-nat.c (display_selector): Call GetLastError to give better
5133 failure explanation.
5135 2010-05-24 Pedro Alves <pedro@codesourcery.com>
5137 * config.in: Regenerate.
5139 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5142 * target.c (push_target): Return only void. Remove the return value
5144 * target.h (push_target): Return only void.
5146 2010-05-23 Pedro Alves <pedro@codesourcery.com>
5148 Update gnulib from latest git.
5149 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5151 * gnulib/memcmp.c: Removed.
5152 * gnulib/memchr.valgrind: New.
5153 * gnulib/stddef.in.h: New.
5154 * gnulib/Makefile.am: Updated.
5155 * gnulib/memchr.c: Updated.
5156 * gnulib/memmem.c: Updated.
5157 * gnulib/stdint.in.h: Updated.
5158 * gnulib/str-two-way.h: Updated.
5159 * gnulib/string.in.h: Updated.
5160 * gnulib/wchar.in.h: Updated.
5162 * gnulib/extra/link-warning.h: Removed.
5163 * gnulib/extra/c++defs.h: New.
5164 * gnulib/extra/warn-on-use.h: New.
5165 * gnulib/extra/arg-nonnull.h: Updated.
5167 * gnulib/m4/extensions.m4: Updated.
5168 * gnulib/m4/gnulib-cache.m4: Updated.
5169 * gnulib/m4/gnulib-common.m4: Updated.
5170 * gnulib/m4/gnulib-comp.m4: Updated.
5171 * gnulib/m4/gnulib-tool.m4: Updated.
5172 * gnulib/m4/include_next.m4: Updated.
5173 * gnulib/m4/longlong.m4: Updated.
5174 * gnulib/m4/memchr.m4: Updated.
5175 * gnulib/m4/memmem.m4: Updated.
5176 * gnulib/m4/stdint.m4: Updated.
5177 * gnulib/m4/string_h.m4: Updated.
5178 * gnulib/m4/memcmp.m4: Removed.
5179 * gnulib/m4/onceonly_2_57.m4: Removed.
5180 * gnulib/m4/00gnulib.m4: New.
5181 * gnulib/m4/mmap-anon.m4: New.
5182 * gnulib/m4/multiarch.m4: New.
5183 * gnulib/m4/onceonly.m4: New.
5184 * gnulib/m4/stddef_h.m4: New.
5185 * gnulib/m4/warn-on-use.m4: New.
5186 * gnulib/m4/wchar.m4: Removed.
5187 * gnulib/m4/wchar_h.m4: New.
5188 * gnulib/m4/wchar_t.m4: New.
5189 * gnulib/m4/wint_t.m4: New.
5191 * aclocal.m4: Regenerate.
5192 * config.in: Likewise.
5193 * configure: Likewise.
5194 * gnulib/Makefile.in: Likewise.
5196 2010-05-21 Tom Tromey <tromey@redhat.com>
5198 * dwarf2loc.c (extract_bits_primitive): New function.
5199 (extract_bits): Likewise.
5200 (insert_bits): Likewise.
5201 (copy_bitwise): Likewise.
5202 (read_pieced_value): Do all operations in bits.
5203 (write_pieced_value): Likewise.
5204 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
5205 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
5206 Always use xrealloc to resize piece array.
5207 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
5208 <DW_OP_piece>: Update.
5209 <DW_OP_bit_piece>: New case.
5211 2010-05-21 Tom Tromey <tromey@redhat.com>
5213 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
5214 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
5215 * dwarf2expr.h (enum dwarf_value_location)
5216 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
5217 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
5218 (add_piece): Handle empty piece.
5219 (execute_stack_op) <DW_OP_piece>: Handle
5220 DWARF_VALUE_OPTIMIZED_OUT.
5222 2010-05-21 Tom Tromey <tromey@redhat.com>
5224 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
5225 evaluate_subexp, not evaluate_subexp_with_coercion.
5227 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5229 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
5232 2010-05-21 Tom Tromey <tromey@redhat.com>
5234 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
5236 (write_pieced_value): Likewise.
5238 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5240 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
5241 and DW_TAG_volatile_type.
5242 (new_symbol): Likewise.
5244 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
5246 * p-valprint.c (pascal_val_print): Call get_array_bounds
5247 to obtain the number of elements in an array.
5249 2010-05-19 Doug Evans <dje@google.com>
5251 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
5253 * python.c (source_python_script): Add comment.
5254 (source_python_script_for_objfile): Remove unnecessary call to
5257 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5258 Sergio Durigan Junior <sergiodj@redhat.com>
5261 * parse.c (exp_iterate): Use operator_length wrapper function.
5263 2010-05-18 Michael Snyder <msnyder@vmware.com>
5265 * ada-lang.c: White space.
5266 * ada-typeprint.c: White space.
5267 * ada-valprint.c: White space.
5268 * addrmap.c: White space.
5269 * auxv.c: White space.
5270 * ax-gdb.c: White space.
5272 2010-05-18 Hui Zhu <teawater@gmail.com>
5274 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
5276 (inferior_call_waitpid): Move make_cleanup out of check.
5277 Check the return of waitpid.
5278 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
5280 2010-05-17 Michael Snyder <msnyder@vmware.com>
5282 * tui/tui.c: White space.
5283 * tui/tui-data.c: White space.
5284 * tui/tui-disasm.c: White space.
5285 * tui/tui-file.c: White space.
5286 * tui/tui-interp.c: White space.
5287 * tui/tui-main.c: White space.
5288 * tui/tui-out.c: White space.
5289 * tui/tui-regs.c: White space.
5290 * tui/tui-source.c: White space.
5291 * tui/tui-stack.c: White space.
5292 * tui/tui-win.c: White space.
5293 * tui/tui-winsource.c: White space.
5295 * procfs.c: White space.
5297 * python/py-auto-load.c: White space.
5298 * python/py-block.c: White space.
5299 * python/py-breakpoint.c: White space.
5300 * python/py-cmd.c: White space.
5301 * python/py-function.c: White space.
5302 * python/py-lazy-string.c: White space.
5303 * python/py-objfile.c: White space.
5304 * python/py-param.c: White space.
5305 * python/py-prettyprint.c: White space.
5306 * python/py-progspace.c: White space.
5307 * python/py-symtab.c: White space.
5308 * python/python.c: White space.
5309 * python/py-type.c: White space.
5310 * python/py-utils.c: White space.
5311 * python/py-value.c: White space.
5313 * mi/mi-cmd-break.c: White space.
5314 * mi/mi-cmd-env.c: White space.
5315 * mi/mi-cmds.c: White space.
5316 * mi/mi-cmd-stack.c: White space.
5317 * mi/mi-cmd-var.c: White space.
5318 * mi/mi-console.c: White space.
5319 * mi/mi-getopt.c: White space.
5320 * mi/mi-interp.c: White space.
5321 * mi/mi-main.c: White space.
5322 * mi/mi-out.c: White space.
5323 * mi/mi-parse.c: White space.
5325 * cli/cli-cmds.c: White space.
5326 * cli/cli-decode.c: White space.
5327 * cli/cli-dump.c: White space.
5328 * cli/cli-interp.c: White space.
5329 * cli/cli-logging.c: White space.
5330 * cli/cli-script.c: White space.
5331 * cli/cli-setshow.c: White space.
5333 * valarith.c: White space.
5334 * valops.c: White space.
5335 * valprint.c: White space.
5336 * value.c: White space.
5337 * varobj.c: White space.
5338 * xcoffread.c: White space.
5339 * xml-support.c: White space.
5340 * xml-tdesc.c: White space.
5342 2010-05-17 Andreas Schwab <schwab@redhat.com>
5345 * c-lang.c (c_printstr): Compute real length of NUL terminated
5348 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5350 * parse.c (parse_exp_in_context): When block is not NULL, use
5351 its associated language to parse the expression instead of
5352 the current_language.
5354 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5356 * jv-lang.c (java_lookup_class): Remove commented out code.
5357 (type_from_class): Likewise.
5358 (java_op_print_tab): Remove commented-out elements.
5360 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5362 * ada-lang.c (to_fixed_range_type): The the raw index type as
5363 argument instead of the raw type name. Remove orig_type parameter.
5364 Update calls throughout.
5365 (ada_fixup_array_indexes_type): New function.
5366 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
5367 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
5368 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
5369 Remove name parameter.
5370 (print_array_type): Add call to ada_fixup_array_indexes_type.
5371 Update calls to print_range_type.
5372 (ada_print_type): Update calls to print_range_type.
5374 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5376 * dwarf2read.c (read_set_type): Set type length if
5377 DW_AT_byte_size attribute is present.
5379 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5381 * p-valprint.c (pascal_val_print): Handle set type if range limits
5382 are undefined but size is known.
5384 2010-05-17 Pedro Alves <pedro@codesourcery.com>
5386 * procfs.c: Reformat.
5388 2010-05-16 Michael Snyder <msnyder@vmware.com>
5390 * target.c: White space.
5391 * target-descriptions.c: White space.
5392 * target-memory.c: White space.
5393 * thread.c: White space.
5394 * top.c: White space.
5395 * tracepoint.c: White space.
5396 * trad-frame.c: White space.
5397 * tramp-frame.c: White space.
5398 * ui-file.c: White space.
5399 * ui-out.c: White space.
5400 * user-regs.c: White space.
5401 * utils.c: White space.
5403 * scm-exp.c: White space.
5404 * scm-lang.c: White space.
5405 * scm-valprint.c: White space.
5406 * sentinel-frame.c: White space.
5407 * ser-base.c: White space.
5408 * ser-go32.c: White space.
5409 * serial.c: White space.
5410 * ser-mingw.c: White space.
5411 * ser-pipe.c: White space.
5412 * ser-tcp.c: White space.
5413 * ser-unix.c: White space.
5414 * solib.c: White space.
5415 * solib-darwin.c: White space.
5416 * solib-frv.c: White space.
5417 * solib-irix.c: White space.
5418 * solib-osf.c: White space.
5419 * solib-pa64.c: White space.
5420 * solib-som.c: White space.
5421 * solib-spu.c: White space.
5422 * solib-svr4.c: White space.
5423 * solib-target.c: White space.
5424 * source.c: White space.
5425 * stabsread.c: White space.
5426 * stack.c: White space.
5427 * std-regs.c: White space.
5428 * symfile.c: White space.
5429 * symmisc.c: White space.
5430 * symtab.c: White space.
5432 2010-05-16 Michael Snyder <msnyder@vmware.com>
5434 * source.c (_initialize_source): Add "rev" as an abbreviation
5435 for the "reverse-search" command.
5437 2010-05-16 Michael Snyder <msnyder@vmware.com>
5439 * record.c: White space.
5440 * regcache.c: White space.
5441 * reggroups.c: White space.
5442 * remote-fileio.c: White space.
5443 * remote-m32r-sdi.c: White space.
5444 * remote-mips.c: White space.
5445 * remote-sim.c: White space.
5446 * remote.c: White space.
5447 (process_g_packet): Remove orphan braces.
5449 2010-05-15 Michael Snyder <msnyder@vmware.com>
5451 * parse.c: White space.
5452 * p-lang.c: White space.
5453 * posix-hdep.c: White space.
5454 * printcmd.c: White space.
5455 * progspace.c: White space.
5456 * prologue-value.c: White space.
5457 * psymtab.c: White space.
5458 * p-typeprint.c: White space.
5459 * p-valprint.c: White space.
5461 * objc-lang.c: White space.
5462 * objfiles.c: White space.
5463 * observer.c: White space.
5464 * osabi.c: White space.
5465 * osdata.c: White space.
5467 * m2-lang.c: White space.
5468 * m2-valprint.c: White space.
5469 * macrocmd.c: White space.
5470 * macroexp.c: White space.
5471 * macroscope.c: White space.
5472 * macrotab.c: White space.
5473 * main.c: White space.
5474 * maint.c: White space.
5475 * mdebugread.c: White space.
5476 * memattr.c: White space.
5477 * minsyms.c: White space.
5478 * monitor.c: White space.
5480 2010-05-14 Michael Snyder <msnyder@vmware.com>
5482 * jv-lang.c: White space.
5483 * jv-typeprint.c: White space.
5484 * jv-valprint.c: White space.
5485 * language.c: White space.
5486 * libunwind-frame.c: White space.
5487 * linespec.c: White space.
5488 * linux-nat.c: White space.
5489 * linux-record.c: White space.
5490 * linux-thread-db.c: White space.
5492 * infcall.c: White space.
5493 * inf-child.c: White space.
5494 * infcmd.c: White space.
5495 * inferior.c: White space.
5496 * inf-loop.c: White space.
5497 * inflow.c: White space.
5498 * inline-frame.c: White space.
5499 * interps.c: White space.
5501 * gcore.c: White space.
5502 * gdb.c: White space.
5503 * gdbtypes.c: White space.
5504 * gnu-nat.c: White space.
5505 * gnu-v2-abi.c: White space.
5506 * gnu-v3-abi.c: White space.
5508 * findcmd.c: White space.
5509 * findvar.c: White space.
5510 * fork-child.c: White space.
5511 * frame-base.c: White space.
5512 * frame.c: White space.
5513 * frame-unwind.c: White space.
5514 * f-valprint.c: White space.
5516 * elfread.c: White space.
5517 * environ.c: White space.
5518 * eval.c: White space.
5519 * event-loop.c: White space.
5520 * event-top.c: White space.
5521 * exceptions.c: White space.
5522 * exec.c: White space.
5523 * expprint.c: White space.
5525 * dbxread.c: White space.
5526 * dcache.c: White space.
5527 * disasm.c: White space.
5528 * doublest.c: White space.
5529 * dsrec.c: White space.
5530 * dummy-frame.c: White space.
5531 * dwarf2expr.c: White space.
5532 * dwarf2-frame.c: White space.
5533 * dwarf2loc.c: White space.
5534 * dwarf2read.c: White space.
5536 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
5540 * python/py-value.c (valpy_hash): New function.
5541 (value_object_type): Register valpy_hash.
5543 2010-05-14 Hui Zhu <teawater@gmail.com>
5544 Michael Snyder <msnyder@vmware.com>
5546 * linux-fork.c (gdbthread.h): New include.
5547 (fork_info): Add parent_ptid.
5548 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5550 (delete_checkpoint_command): Call inferior_call_waitpid.
5551 (checkpoint_command): Set parent_ptid.
5553 2010-05-13 Michael Snyder <msnyder@vmware.com>
5555 * dictionary.c: Re-indent to GNU coding standard.
5557 * charset.c: White space.
5558 * c-lang.c: White space.
5559 * cli-out.c: White space.
5560 * coffread.c: White space.
5561 * complaints.c: White space.
5562 * completer.c: White space.
5563 * corefile.c: White space.
5564 * corelow.c: White space.
5565 * cp-abi.c: White space.
5566 * cp-namespace.c: White space.
5567 * cp-support.c: White space.
5568 * cp-valprint.c: White space.
5569 * c-typeprint.c: White space.
5570 * c-valprint.c: White space.
5571 * blockframe.c: White space.
5572 * breakpoint.c: White space.
5573 * buildsym.c: White space.
5574 * blockframe.c: White space.
5575 * bcache.c: White space.
5576 * gdbarch.sh: White space, add blank lines.
5577 * arch-utils.c: Ditto.
5578 * gdbarch.c: Regenerate.
5579 * frame.c: White space, add blank lines.
5580 * stack.c: White space, add blank lines.
5581 (initialize_stack): Remove long-dead code.
5583 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5586 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5587 (locexpr_read_variable, loclist_read_variable): Update the callers.
5589 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5592 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5593 Remove check of NULL returned by tag_type_to_type.
5594 (die_containing_type): Remove variable type. Remove type_die variable
5595 initialization. Remove check of NULL returned by tag_type_to_type.
5597 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5600 * gdbtypes.c (lookup_struct_elt_type): Also lookup
5601 names of unnamed structures or unions.
5603 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5605 * procfs.c (proc_watchpoint_address): New function.
5606 (procfs_stopped_by_watchpoint): Remove useless check after
5607 find_procinfo_or_die call.
5608 (procfs_stopped_data_address): New function.
5609 (procfs_use_watchpoints): Register new watchpoint related function.
5611 2010-05-11 Tom Tromey <tromey@redhat.com>
5613 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5615 2010-05-10 Michael Snyder <msnyder@vmware.com>
5617 * utils.c: White space cleanup.
5619 2010-05-10 Tom Tromey <tromey@redhat.com>
5621 * eval.c (ptrmath_type_p): Add 'lang' argument.
5622 (evaluate_subexp_standard): Update.
5623 (evaluate_subexp_with_coercion): Update.
5624 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5626 2010-05-10 Michael Snyder <msnyder@vmware.com>
5628 * utils.c (do_fclose_cleanup) Restore local variable.
5630 2010-05-09 Doug Evans <dje@google.com>
5632 * record.c (init_record_core_ops): Rename record_core to record-core.
5634 2010-05-08 Joel Brobecker <brobecker@adacore.com>
5636 Implement task switching on pa-hpux.
5637 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5638 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5640 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5642 * valops.c (find_overload_match): Add missing i18n markup.
5644 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5646 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5648 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5650 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5651 list for the obconcat call.
5652 * mdebugread.c (parse_symbol): Likewise.
5653 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5655 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5656 New variable ap. Remove variables len and val.
5657 * symfile.h (obconcat): Likewise for the prototype.
5659 2010-05-07 Michael Snyder <msnyder@vmware.com>
5661 * python/python.c (execute_gdb_command): Remove unused variables.
5662 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
5663 * python/py-breakpoint.c (gdbpy_breakpoint_created):
5664 Remove unused variable.
5665 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5666 (cmdpy_completer): Remove unused variable.
5667 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5668 * python/py-function.c (fnpy_call): Remove unused variable.
5669 * python/py-objfile.c (objfile_to_objfile_object):
5670 Remove unused variable.
5671 * python/py-param.c (parmpy_init): Remove unused variable.
5672 * python/py-prettyprint.c (apply_varobj_pretty_printer):
5673 Remove unused variable.
5674 (gdbpy_default_visualizer): Remove unused variable.
5675 * python/py-progspace.c (pspace_to_pspace_object):
5676 Remove unused variable.
5677 * python/py-symtab.c (symtab_and_line_to_sal_object):
5678 Remove unused variable.
5679 * python/py-type.c (typy_template_argument):
5680 Remove unused variable.
5681 * python/py-value.c (valpy_string): Remove unused variable.
5682 (convert_value_from_python): Remove unused variables.
5684 2010-05-07 Michael Snyder <msnyder@vmware.com>
5686 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5687 and use it to compute variable 't1'.
5689 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5691 * ada-lang.c (assign_aggregate): Remove unused variable.
5693 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5696 * valops.c (find_overload_match): Handle fsym == NULL case.
5697 Add int no_adl argument.
5698 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5700 Add int no_adl argument.
5701 (find_oload_champ_namespace): Add int no_adl argument.
5702 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5704 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5705 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5706 Evaluate arguments and use them to perform ADL lookup.
5707 Pass no_adl argument to find_overload_match.
5708 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5709 * cp-support.h: Added prototype for
5710 make_symbol_overload_list_namespace.
5711 * cp-support.c (make_symbol_overload_list_namespace): New function.
5712 (make_symbol_overload_list_adl_namespace): New function.
5713 (make_symbol_overload_list_adl): New function.
5714 (make_symbol_overload_list_using): Moved code to add function to
5715 overload set to make_symbol_overload_list_namespace.
5716 * c-exp.y: create UNKNOWN_CPP_NAME token.
5717 Add parse rule for ADL functions.
5718 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5720 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5722 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5725 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5727 Implement task switching on solaris targets.
5728 * sol-thread.c (thread_db_find_thread_from_tid)
5729 (sol_get_ada_task_ptid): New functions.
5730 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5732 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5734 * remote.c (remote_query_supported_append): Use reconcat.
5735 (remote_query_supported): Install a cleanup. Use reconcat.
5737 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5739 * gdbarch.sh (qsupported): Delete.
5740 * gdbarch.h, gdbarch.c: Regenerate.
5741 * remote.c (remote_query_supported): Remove use of
5744 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5746 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5749 2010-05-06 Michael Snyder <msnyder@vmware.com>
5751 * xml-support.c (xinclude_start_include): Delete unused variable.
5752 (xml_process_xincludes): Delete unused variable.
5753 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5754 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5755 (tdesc_find_arch_register): Delete unused variable.
5756 (tdesc_use_registers): Delete unused variable.
5757 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5758 * inferior.c (print_inferior): Delete unused variable.
5759 * record.c (record_open_1): Delete unused variable.
5760 (record_restore): Delete unused variable.
5761 (cmd_record_save): Delete unused variable.
5762 * gcore.c (derive_heap_segment): Delete unused variable.
5763 (objfile_find_memory_regions): Use unused variable.
5764 * jit.c (jit_inferior_init): Delete unused variable.
5765 * progspace.c (clone_program_space): Delete unused variable.
5766 (pspace_empty_p): Delete unused variable.
5768 * frame-unwind.c (frame_unwind_find_by_frame):
5769 Delete unused variable.
5770 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5771 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5772 (method_name_from_physname): Delete unused variable.
5773 (cp_func_name): Delete unused variable.
5774 (cp_validate_operator): Delete unused variable.
5775 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
5776 Delete unused variable.
5777 * trad-frame.c (trad_frame_get_prev_register):
5778 Delete unused variable.
5779 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5781 * serial.c (serial_for_fd): Delete unused variable.
5782 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5783 * top.c (execute_command): Delete unused variable.
5784 (init_main): Delete unused variable.
5785 * utils.c (do_fclose_cleanup): Delete unused variable.
5786 (do_all_inferior_continuations): Delete unused variable.
5787 (initialize_utils): Delete unused variable.
5788 (internal_problem_mode): Delete unused global.
5789 * frame.c (get_prev_frame): Delete unused global.
5790 (get_frame_locals_address): Delete unused global.
5791 (get_frame_args_address): Delete unused global.
5793 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5794 (pascal_type_print_varspec_prefix): Delete unused variable.
5795 * f-typeprint.c (f_type_print_base): Delete unused variable.
5796 (f_type_print_varspec_suffix): Delete unused variable.
5797 * m2-typeprint.c (m2_print_type): Delete unused variable.
5798 (m2_long_set): Delete unused variable.
5799 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5800 * d-valprint.c (dynamic_array_type): Delete unused variable.
5801 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
5802 Delete unused variable.
5803 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5804 * m2-valprint.c (m2_val_print): Delete unused variable.
5806 * ui-out.c (ui_out_field_int): Delete unused variable.
5807 (ui_out_field_fmt_int): Delete unused variable.
5808 * varobj.c (varobj_list_children): Delete unused variable.
5809 (varobj_set_value): Delete unused variable.
5810 (install_new_value_visualizer): Delete unused variable.
5811 (varobj_set_visualizer): Delete unused variable.
5812 (varobj_update): Delete unused variable.
5813 (varobj_editable_p): Delete unused variable.
5814 (c_value_of_root): Delete unused variable.
5815 (cplus_describe_child): Delete unused variable.
5817 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5818 (decode_constrained_packed_array_type): Delete unused variable.
5819 (add_defn_to_vec): Delete unused variable.
5820 (symbol_completion_match): Delete unused variable.
5821 (value_tag_from_contents_and_address): Delete unused variable.
5822 (ada_evaluate_subexp): Delete unused variable.
5823 * c-lang.c (classify_type): Delete unused variable.
5824 * f-lang.c (f_printstr): Delete unused variable.
5825 * objc-lang.c (objc_printstr): Delete unused variable.
5826 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5827 * jv-lang.c (type_from_class): ifdef unused variable.
5828 (java_class_name_from_physname): Delete unused variable.
5829 * m2-lang.c (m2_printstr): Delete unused variable.
5831 * objfiles.c (objfile_relocate): Delete unused variable.
5832 * maint.c (_initialize_maint_cmds): Delete unused variable.
5833 * demangle.c (_initialize_demangler): Delete unused variable.
5834 * corefile.c (reopen_exec_file): Delete unused variable.
5835 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5836 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5838 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5839 * memattr.c (mem_delete): Delete unused variable.
5840 (invalidate_target_mem_regions): Delete unused variable.
5841 * mem-break.c (default_memory_insert_breakpoint):
5842 Delete unused variable.
5843 * target.c (target_get_osdata): Delete unused variable.
5844 * parse.c (length_of_subexp): Delete unused variable.
5845 (prefixify_subexp): Delete unused variable.
5846 (exp_iterate): Delete unused variable.
5847 * reverse.c (delete_bookmark_command): Delete unused variable.
5849 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5850 * macroexp.c (gather_arguments): Delete unused variable.
5851 (substitute_args): Delete unused variable.
5852 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5853 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5854 (_initialize_gdbarch): Delete unused variable.
5855 * gdbarch.c, gdbarch.h: Regenerate.
5856 * arch-utils.c (initialize_current_architecture):
5857 Delete unused variable.
5858 (_initialize_gdbarch_utils): Delete unused variable.
5859 * gdbtypes.c (make_cv_type): Delete unused variable.
5860 (make_type_with_address_space): Delete unused variable.
5862 * linespec.c (decode_compound): Delete unused variable.
5863 * dictionary.c (iterator_next_hashed): Delete unused variable.
5864 * infcall.c (call_function_by_hand): Delete unused variable.
5865 * infcmd.c (step_1): Delete unused variable.
5866 (registers_info): Delete unused variable.
5867 (attach_command): Delete unused variable.
5868 * infrun.c (follow_exec): Delete unused variable.
5869 (handle_step_into_function_backwards): Delete unused variable.
5870 (_initialize_infrun): Delete unused variable.
5871 * stack.c (parse_frame_specification_1): Delete unused variable.
5872 (frame_info): Delete unused variable.
5873 (backtrace_command_1): Delete unused variable.
5874 (catch_info): Delete unused variable.
5876 * eval.c (evaluate_subexp_standard): Delete unused variable.
5877 * valops.c (value_cast_pointers): Delete unused variable.
5878 (value_dynamic_cast): Delete unused variable.
5879 (value_array): Delete unused variable.
5880 (find_overload_match): Delete unused variable.
5881 * valarith.c (value_subscript): Delete unused variable.
5882 (value_binop): Delete unused variable.
5883 * valprint.c (_initialize_valprint): Delete unused variable.
5884 * printcmd.c (print_command_1): Delete unused variable.
5885 (address_info): Delete unused variable.
5886 (printf_command): Delete unused variable.
5888 * auxv.c (target_auxv_search): Delete unused variable.
5889 * blockframe.c (get_frame_block): Delete unused variable.
5890 * regcache.c (regcache_cpy): Delete unused variable.
5891 (regcache_cpy_no_passthrough): Delete unused variable.
5892 * charset.c (wchar_iterate): Delete unused variable.
5893 (find_charset_names): Delete unused variable.
5894 (_initialize_charset): Delete unused variable.
5895 * disasm.c (do_mixed_source_and_assembly):
5896 Delete unused variable.
5897 * source.c (set_default_source_symtab_and_line):
5898 Delete unused variable.
5899 (set_substitute_path_command): Delete unused variable.
5900 * value.c (preserve_values): Delete unused variable.
5901 (value_from_double): Delete unused variable.
5903 2010-05-05 Michael Snyder <msnyder@vmware.com>
5905 * psymtab.c (lookup_partial_symbol): Delete unused variable.
5906 (find_last_source_symtab_from_partial): Delete unused variable.
5907 * symfile.c (place_section): Delete unused variable.
5908 (default_symfile_offsets): Delete unused variable.
5909 (get_debug_link_info): Delete unused variable.
5910 (find_separate_debug_file_by_debuglink): Delete unused variable.
5911 (add_symbol_file_command): Delete unused variable.
5912 (symfile_find_segment_sections): Delete unused variable.
5913 * symmisc.c (free_symtab): Delete unused variable.
5914 (dump_symtab_1): Delete unused variable.
5915 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5916 (find_pc_sect_symtab): Delete unused variable.
5917 (skip_prologue_using_lineinfo): Delete unused variable.
5918 (sources_info): Delete unused variable.
5919 (completion_list_add_name): Delete unused variable.
5920 (expand_line_sal): Delete unused variable.
5922 * breakpoint.c (validate_commands_for_breakpoint):
5923 Delete unused variables.
5924 (insert_catchpoint): Delete unused variable.
5925 (update_watchpoint): Delete unused variable.
5926 (insert_bp_location): Delete unused variable.
5927 (insert_breakpoint_locations): Delete unused variable.
5928 (remove_breakpoint_1): Delete unused variable.
5929 (software_breakpoint_inserted_here_p): Delete unused variable.
5930 (watchpoints_triggered): Delete unused variable.
5931 (bpstat_check_watchpoint): Delete unused variable.
5932 (bpstat_stop_status): Delete unused variable.
5933 (print_one_breakpoint_location): Delete unused variable.
5934 (allocate_bp_location): Delete unused variable.
5935 (create_breakpoint): Delete unused variable.
5936 (watch_command_1): Delete unused variable.
5937 (catch_exception_command_1): Delete unused variable.
5938 (catch_ada_exception_command): Delete unused variable.
5939 (delete_breakpoint): Delete unused variable.
5940 (breakpoint_re_set_one): Delete unused variable.
5941 (do_enable_breakpoint): Delete unused variable.
5943 2010-05-06 Pedro Alves <pedro@codesourcery.com>
5945 * amd64-tdep.c: Include disasm.h.
5946 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5947 (amd64_insn_length): Moved to disasm.c and renamed.
5948 (fixup_riprel): Adjust.
5949 * disasm.c (do_ui_file_delete): New.
5950 (gdb_insn_length): New.
5951 (gdb_buffered_insn_length_fprintf)
5952 (gdb_buffered_insn_length_init_dis)
5953 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5955 * disasm.h (gdb_insn_length): Declare.
5956 (gdb_buffered_insn_length): Declare.
5958 2010-05-06 Pedro Alves <pedro@codesourcery.com>
5960 * remote.c (clear_threads_parsing_context): New.
5961 (remote_threads_info): Delete unused null_cleanup. Install a
5962 cleanup to clear the threads_parsing_context in case parsing
5965 2010-05-05 Michael Snyder <msnyder@vmware.com>
5967 * c-exp.y (parse_string_or_char): Delete unused variable.
5968 (c_lex): Delete unused variable.
5969 * cp-name-parser.y (cpname_lex): Delete unused variable.
5970 * ada-exp.y (find_primitive_type): Delete unused variable.
5971 (write_var_or_type): Delete unused variable.
5972 * jv-exp.y (java_parse): Delete unused variable.
5973 (push_expression_name): Delete unused variable.
5974 * p-exp.y (pascal_lex): Delete unused variable.
5976 2010-05-05 Pedro Alves <pedro@codesourcery.com>
5978 * remote.c (remote_threads_info): Really revert previous previous
5981 2010-05-05 Michael Snyder <msnyder@vmware.com>
5983 * elfread.c (elf_symtab_read): Delete unused variable.
5984 (find_separate_debug_file_by_buildid): Delete unused variables.
5985 (elf_symfile_read): Delete unused variable.
5987 * coffread.c (coff_symfile_read): Delete unused variables.
5989 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5990 (read_pe_exported_syms): Delete unused variable.
5992 * stabsread.c (define_symbol): Delete unused variable.
5994 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5995 (process_psymtab_comp_unit): Delete unused variable.
5996 (dwarf2_build_psymtabs_hard): Delete unused variable.
5997 (load_partial_comp_unit): Delete unused variable.
5998 (create_all_comp_units): Delete unused variable.
5999 (scan_partial_symbols): Delete unused variable.
6000 (add_partial_symbol): Delete unused variable.
6001 (add_partial_namespace): Delete unused variable.
6002 (add_partial_enumeration): Delete unused variable.
6003 (load_full_comp_unit): Delete unused variable.
6004 (process_full_comp_unit): Delete unused variable.
6005 (read_file_scope): Delete unused variable.
6006 (read_type_unit_scope): Delete unused variable.
6007 (process_structure_scope): Delete unused variable.
6008 (process_enumeration_scope): Delete unused variable.
6009 (read_tag_ptr_to_member_type): Delete unused variable.
6010 (read_typedef): Delete unused variable.
6011 (read_partial_die): Delete unused variable.
6012 (decode_locdesc): Delete unused variable.
6013 (zeroed_partial_die): Delete unused global variable.
6015 * tui/tui-interp.c (_initialize_tui_interp):
6016 Delete unused variable.
6017 * tui/tui-regs.c tui_display_registers_from):
6018 Delete unused variable.
6019 (tui_check_register_values): Delete unused variable.
6020 (tui_register_format): Delete unused variable.
6021 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
6022 * tui/tui-windata.c (tui_display_data_from_line):
6023 Delete unused variables.
6024 (tui_vertical_data_scroll): Delete unused variables.
6026 2010-05-05 Michael Snyder <msnyder@vmware.com>
6028 * remote.c (remote_threads_info): Revert questionable part of
6029 the previous change.
6031 2010-05-05 Michael Snyder <msnyder@vmware.com>
6033 * mi/mi-out.c (mi_table_begin): Delete unused variable.
6034 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
6035 (mi_cmd_var_list_children): Delete unused variable.
6036 (varobj_update_one): Delete unused variable.
6037 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
6038 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
6039 Delete unused variable.
6040 (mi_cmd_stack_list_variables): Delete unused variable.
6041 (list_args_or_locals): Delete unused variable.
6042 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
6043 Delete unused variables.
6044 (mi_cmd_file_list_exec_source_files): Delete unused variable.
6045 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
6046 Delete unused variable.
6047 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
6048 (mi_cmd_interpreter_exec): Delete unused variable.
6049 (mi_on_normal_stop): Delete unused variable.
6050 * mi/mi-main.c (run_one_inferior): Delete unused variable.
6051 (print_one_inferior): Delete unused variables.
6052 (mi_execute_command): Delete unused variable.
6053 (mi_cmd_execute): Delete unused variable.
6054 (timestamp): Delete unused variable.
6056 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
6057 (restore_binary_file): Delete unused variable.
6058 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
6059 * cli/cli-script.c (define_command): Delete unused variables.
6060 (recurse_read_control_structure): Delete unused variable.
6061 (script_from_file): Delete unused variable.
6062 * cli/cli-cmds.c (complete_command): Delete unused variable.
6063 (disassemble_command): Delete unused variable.
6065 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
6066 * tracepoint.c (delete_trace_variable_command):
6067 Delete unused variables.
6068 (encode_actions_1): Delete unused variables.
6069 (start_tracing): Delete unused variable.
6070 (trace_status_mi): Delete unused variable.
6071 (tfind_1): Delete unused variable.
6072 (trace_find_pc_command): Delete unused variable.
6073 (trace_find_line_command): Delete unused variables.
6074 (trace_find_range_command): Delete unused variables.
6075 (trace_find_outside_command): Delete unused variables.
6076 (parse_tracepoint_definition): Delete unused variables.
6077 (tfile_fetch_registers): Delete unused variable.
6079 * dcache.c (dcache_init): Delete unused variable.
6080 (dcache_info): Delete unused variable.
6082 * remote.c (remote_threads_info): Delete unused variable.
6083 (process_stop_reply) :Delete unused variable.
6084 (remote_get_trace_status): Delete unused variables.
6086 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
6087 (thread_from_lwp): Delete unused variable.
6088 (enable_thread_event_reporting): Delete unused variable.
6089 (check_for_thread_db): Delete unused variables.
6090 (thread_db_find_new_threads_2): Delete unused variable.
6092 * linux-fork.c (info_checkpoints_command): Delete unused variables.
6093 (checkpoint_command): Delete unused variable.
6094 (linux_fork_context): Delete unused variables.
6096 * linux-nat.c (linux_parent_pid): Delete unused global variable.
6097 (linux_tracefork_child): Delete unused variable.
6098 (linux_child_follow_fork): Delete unused variable.
6099 (linux_nat_detach): Delete unused variable.
6100 (linux_handle_extended_wait): Delete unused variable.
6101 (linux_nat_has_pending_sigint): Delete unused variable.
6102 (linux_nat_find_memory_regions): Delete unused variable.
6103 (linux_nat_make_corefile_notes): Delete unused variables.
6104 (linux_nat_info_proc_cmd): Delete unused variable.
6105 (linux_proc_pending_signals): Delete unused variable.
6106 (linux_nat_stop_lwp): Delete unused variables.
6107 (_initialize_linux_nat): Delete unused variable.
6109 * ser-pipe.c (pipe_ops): Delete unused global variable.
6111 * linux-record.c (record_linux_system_call):
6112 Delete unused variables.
6114 * corelow.c (core_xfer_partial): Delete unused variables.
6116 * solib-svr4.c (find_program_interpreter): Delete unused variable.
6117 (svr4_solib_create_inferior_hook): Add ifdef around
6118 conditionally-used variable declarations.
6120 * solib.c (solib_find): Delete unused variable.
6121 (free_so_symbols): Delete unused variable.
6122 (info_sharedlibrary_command): Delete unused variable.
6123 (reload_shared_libraries_1): Delete unused variable.
6124 (_initialize_solib): Delete unused variable.
6126 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
6127 (i386_collect_xstateregset): Delete unused variable.
6128 * i387-tdep.c (i387_print_float_info): Delete unused variable.
6130 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
6131 Delete unused variable 'type'.
6133 2010-05-05 Joel Brobecker <brobecker@adacore.com>
6135 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
6136 ada-lang.c: Remove comment mentioning these macros.
6137 * m2-exp.y: Delete commented out code.
6139 2010-05-05 Joel Brobecker <brobecker@adacore.com>
6141 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
6143 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
6145 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6147 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
6148 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6150 (cleanup_kernel_helper_return): Likewise.
6151 * arm-tdep.c (copy_unmodified): Likewise.
6152 (copy_preload): Likewise.
6153 (copy_copro_load_store): Likewise.
6154 (cleanup_branch): Likewise.
6155 (copy_b_bl_blx): Likewise.
6156 (copy_bx_blx_reg): Likewise.
6157 (copy_alu_imm): Likewise.
6158 (copy_alu_reg): Likewise.
6159 (copy_alu_shifted_reg): Likewise.
6160 (cleanup_load): Likewise.
6161 (cleanup_store): Likewise.
6162 (cleanup_block_load_pc): Likewise.
6163 (cleanup_svc): Likewise.
6164 (copy_undef): Likewise.
6165 (copy_unpred): Likewise.
6166 * remote.c (register_remote_support_xml): Likewise.
6168 2010-05-05 Hui Zhu <teawater@gmail.com>
6170 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
6172 2010-05-04 Mark Kettenis <kettenis@gnu.org>
6174 * remote.c (register_remote_support_xml)
6175 (remote_query_supported_append, remote_query_supported): Add cast
6176 to NULL used as sentinel.
6177 * tracepoint.c (tvariables_info_1): Likewise.
6178 * utils.c (add_internal_problem_command): Likewise.
6180 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6182 * dwarf2loc.c (read_pieced_value, write_pieced_value,
6183 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
6184 registers gracefully.
6186 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6188 * exec.c (print_section_info): Display entry point without arch
6191 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6194 * printcmd.c (x_command): Only dereference once implicitly for
6197 2010-05-03 Doug Evans <dje@google.com>
6199 * event-loop.c (gdb_timer): Delete unused global.
6200 (create_timer): Update.
6202 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6204 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
6205 CURRENT->DECLARATION case.
6206 * cp-support.h (struct using_direct): Provide extended comment.
6208 2010-05-03 Mark Kettenis <kettenis@gnu.org>
6210 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
6211 HPPABSD_SIZEOF_GREGS.
6212 (HPPAOBSD_SIZEOF_FPREGS): New define.
6213 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
6214 (hppaobsd_supply_fpregset): New function.
6215 (hppaobsd_gregset): Renamed from hppabsd_gregset.
6216 (hppaobsd_fpregset): New variable.
6217 (hppaobsd_regset_from_core_section): Handle floating-point registers.
6218 (_initialize_hppabsd_tdep): Remove spurious blank line.
6220 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6223 * p-valprint.c (pascal_value_print): Always dereference a value with
6224 type code TYPE_CODE_REF.
6226 2010-05-03 Pedro Alves <pedro@codesourcery.com>
6228 * remote.c (remote_notice_signals): New.
6229 (remote_start_remote): In non-stop mode, update the remote end on
6230 which signals it can silently pass.
6231 (init_remote_ops): Install remote_notice_signals.
6233 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6235 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
6236 * command.h (error_no_arg): ... here. Remove NORETURN, change
6237 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6238 * defs.h (NORETURN, ATTR_NORETURN): Remove.
6239 (perror_with_name, verror, error, error_stream, vfatal, fatal)
6240 (internal_verror, internal_error, nomem): Remove NORETURN, change
6241 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6242 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
6243 (throw_vfatal, throw_error): Remove NORETURN.
6244 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
6245 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
6246 (throw_error, deprecated_throw_reason): Remove NORETURN, change
6247 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6248 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
6249 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
6251 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
6252 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
6254 * target.c (tcomplain): Likewise.
6255 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
6257 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
6258 (internal_error, perror_with_name, nomem): Remove NORETURN.
6259 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
6262 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6264 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6265 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
6266 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
6267 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6268 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
6269 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6270 * complaints.h (complaint, internal_complaint): Likewise.
6271 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
6272 (ATTR_FORMAT): Remove.
6273 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
6274 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
6275 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
6276 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
6277 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
6278 (internal_error, internal_vwarning, internal_warning, warning)
6279 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6280 * disasm.c (fprintf_disasm): Likewise.
6281 * exceptions.c (throw_it): Likewise.
6282 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
6283 (throw_error): Likewise.
6284 * language.h (type_error, range_error): Likewise.
6285 * linespec.c (cplusplus_error): Likewise.
6286 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
6287 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
6288 * monitor.c (monitor_debug): Likewise.
6289 * parser-defs.h (parser_fprintf): Likewise.
6290 * serial.h (serial_printf): Likewise.
6291 * tui/tui-hooks.c (tui_query_hook): Likewise.
6292 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
6293 (uo_message): Likewise.
6294 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
6295 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
6297 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
6299 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6301 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
6302 (cli_table_header, cli_begin, cli_end, cli_field_int)
6303 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
6304 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
6305 Delete forward declarations.
6306 (cli_ui_out_impl): Move below the callbacks.
6307 (_initialize_cli_out): Delete.
6309 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6311 * README: Use consistent `GDB' and `GDBserver' spellings.
6313 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6315 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
6317 2010-05-01 Pedro Alves <pedro@codesourcery.com>
6319 * infrun.c (prepare_for_detach): In non-stop, context switch to
6320 the thread that got the event before handling the event.
6322 2010-04-30 Tom Tromey <tromey@redhat.com>
6324 * symtab.c (symbol_set_names): Fix typo.
6326 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6328 * python/py-param.c (parm_constants): Avoid ARI warning
6329 by adding ARI comment.
6330 (parmpy_init): Likewise.
6332 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6334 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
6335 and created type for re-use.
6337 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6339 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
6341 2010-04-29 Doug Evans <dje@google.com>
6343 * ser-base.h (reschedule): Delete prototype.
6344 * ser-base.c (reschedule): Make static.
6346 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6348 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
6349 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
6350 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
6352 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
6355 2010-04-29 Pedro Alves <pedro@codesourcery.com>
6359 * regcache.c (registers_changed): Rename to ...
6360 (registers_changed_ptid): ... this, and only delete register cache
6361 entries matching the ptid filter argument.
6362 (registers_changed): Reimplement on top of registers_changed_ptid.
6363 * regcache.h (registers_changed_ptid): Declare.
6364 * target.c (target_resume): Flush register caches.
6366 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
6367 Tom Tromey <tromey@redhat.com>
6368 Thiago Jung Bauermann <bauerman@br.ibm.com>
6370 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
6371 (SUBDIR_PYTHON_SRCS): Likewise.
6372 (py-parameter.o): New rule.
6373 * python/py-parameter.c: New file.
6374 * python/python-internal.h (gdbpy_initialize_parameter)
6375 (gdbpy_parameter, gdbpy_parameter_value)
6376 (gdbpy_parse_command_name): Declare.
6377 * python/py-cmd.c (parse_command_name): Rename to
6378 gdbpy_parse_command_name.
6379 (gdbpy_parse_command_name): Accept a starting list parameter and
6381 (cmdpy_init): Use gdbpy_parse_command_name.
6382 * python/python.c (parameter_to_python): Rename to
6383 gdbpy_parameter_to_python. Accept enum var_types and value.
6384 (gdbpy_parameter): Use gdbpy_parameter_value.
6385 (_initialize_python): Call gdbpy_initialize_parameters.
6387 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6389 * MAINTAINERS: Add myself for write after approval privileges.
6391 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
6394 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
6395 (COMMON_OBS): Add d-lang.o d-valprint.o.
6396 (HFILES_NO_SRCDIR): Add d-lang.h.
6397 * NEWS: Mention D language support.
6398 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
6399 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
6400 * d-lang.c: New file.
6401 * d-lang.h: New file.
6402 * d-valprint.c: New file.
6403 * defs.h (enum language): Add language_d.
6404 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
6405 * language.c (binop_result_type, integral_type, character_type)
6406 (string_type, boolean_type, structured_type): Add language_d.
6407 * symfile.c (init_filename_language_table): Add language_d.
6408 * symtab.c: Include d-lang.h.
6409 (symbol_init_language_specific, symbol_find_demangled_name)
6410 (symbol_natural_name, lookup_symbol_in_language)
6411 (symbol_demangled_name, symbol_matches_domain): Add language_d.
6413 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6415 * solib-svr4.c (solib_svr4_r_map): Expand function description.
6417 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6419 * symfile.c (init_filename_language_table): Register .dg files
6422 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6424 * gdbtypes.h (struct main_type): Expand comment about target_type
6427 2010-04-27 Pedro Alves <pedro@codesourcery.com>
6428 Tristan Gingold <gingold@adacore.com>
6430 * symfile.c (reread_symbols): Also search for file in libraries.
6433 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6435 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
6436 in terms of configuration.
6438 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6440 * objfiles.c: Include solist.h.
6441 (free_all_objfiles): New variable so. Check stale solist objfiles.
6442 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
6443 and no_shared_libraries.
6445 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6448 * python/py-auto-load.c (source_section_scripts): Remove trailing
6449 new-line in i18n string.
6451 2010-04-26 Doug Evans <dje@google.com>
6453 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
6455 2010-04-26 Tom Tromey <tromey@redhat.com>
6457 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
6460 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6462 Removal of config/i386/nm-i386sol2.h native configuration file.
6463 * config/i386/nm-i386sol2.h: Remove file.
6464 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
6465 * config/i386/sol2-64.mh: Idem.
6466 * config/djgpp/fnchange.lst: Remove reference to that file.
6467 * Makefile.in (HFILES_NO_SRCDIR): Idem.
6469 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6471 PR breakpoints/11531.
6472 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
6473 macro definition and related comment.
6474 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
6475 (resume): Remove code and comment related to this macro.
6477 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6479 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
6482 2010-04-24 Pedro Alves <pedro@codesourcery.com>
6484 * defs.h: Adjust comment.
6485 * filesystem.h, filesystem.c: New files.
6486 * Makefile.in (SFILES): Add filesystem.c.
6487 (COMMON_OBS): Add filesystem.o.
6488 * solib.c (solib_find): Handle DOS-based filesystems. Handle
6489 different target and host path flavours.
6490 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6491 has_dos_based_file_system on the gdbarch.
6492 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
6493 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
6494 * i386-tdep.c (i386_go32_init_abi): Ditto.
6495 * gdbarch.sh (has_dos_based_file_system): New.
6496 * gdbarch.h, gdbarch.c: Regenerate.
6497 * NEWS: Mention improved support for remote targets with DOS-based
6498 filesystems. Mention new `set/show target-file-system-kind'
6501 2010-04-23 Stan Shebs <stan@codesourcery.com>
6503 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6505 (struct agent_reqs): Remove.
6506 (ax_reg_mask): Declare.
6507 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6508 (free_agent_expr): Free reg_mask.
6509 (ax_print): Add scope and register mask info.
6510 (ax_reqs): Remove agent_reqs argument, use agent expression
6511 fields, and move part of register mask computation to...
6512 (ax_reg_mask): New function.
6513 * ax-gdb.c (gen_trace_static_fields): Call it.
6514 (gen_traced_pop): Ditto.
6515 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6516 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6517 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6518 (gen_eval_for_expr): Ditto, and require an rvalue.
6519 (agent_command): Call ax_reqs.
6520 (agent_eval_command): Ditto.
6521 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6522 (validate_action_line): Ditto.
6523 (collect_symbol): Ditto.
6524 (encode_actions_1): Ditto.
6526 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
6527 Paul Pluzhnikov <ppluzhnikov@google.com>
6528 Jan Kratochvil <jan.kratochvil@redhat.com>
6530 Fix deadlock on looped list of loaded shared objects.
6531 * solib-svr4.c (LM_PREV): New function.
6532 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6533 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
6534 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
6535 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6537 2010-04-23 Doug Evans <dje@google.com>
6539 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6541 * configure: Regenerate.
6542 * main.c: #include "python/python.h".
6543 (captured_main): Defer loading auto-loaded scripts until after
6544 local_gdbinit has been sourced.
6545 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6546 (load_auto_scripts_for_objfile): New function.
6547 (auto_load_new_objfile): Call it.
6548 * python/python.h (gdbpy_global_auto_load): Declare.
6549 (load_auto_scripts_for_objfile): Declare.
6551 Add support for auto-loading scripts from .debug_gdb_scripts section.
6552 * NEWS: Add entry for .debug_gdb_scripts.
6553 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6554 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6555 (py-auto-load.o): New rule.
6556 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6557 * cli/cli-cmds.h (find_and_open_script): Update prototype.
6558 * python/py-auto-load.c: New file.
6559 * python/python-internal.h: #include <stdio.h>.
6560 (set_python_list, show_python_list): Declare.
6561 (gdbpy_initialize_auto_load): Declare.
6562 (source_python_script_for_objfile): Declare.
6563 * python/python.c: Remove #include of observer.h.
6564 (gdbpy_auto_load): Moved to py-auto-load.c.
6565 (GDBPY_AUTO_FILENAME): Ditto.
6566 (gdbpy_new_objfile): Delete.
6567 (source_python_script_for_objfile): New function.
6568 (set_python_list, show_python_list): Make externally visible.
6569 (_initialize_python): Move "auto-load" command to py-auto-load.c
6570 and observer_attach_new_objfile to py-auto-load.c.
6572 2010-04-23 Jerome Guitton <guitton@adacore.com>
6574 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6575 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6576 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6578 (alpha_heuristic_analyze_probing_loop): New function.
6579 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6580 and handle cases when a stack probe loop is generated.
6581 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6582 (alpha_mdebug_max_frame_size_exceeded): New function.
6583 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6584 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6585 Return 0 when the maximum debuggable frame size has been exceeded.
6587 2010-04-23 Joel Brobecker <brobecker@adacore.com>
6590 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6592 2010-04-20 Chris Moller <cmoller@redhat.com>
6596 * symtab.c (rbreak_command): Added code to include a filename
6597 specification in the rbreak argument.
6598 * NEWS: Added a brief description of filename-qualified rbreak.
6600 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6602 Fix crashes on dangling display expressions.
6603 * ada-lang.c (ada_operator_check): New function.
6604 (ada_exp_descriptor): Fill-in the field operator_check.
6605 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6606 * jv-lang.c (exp_descriptor_java): Likewise.
6607 * m2-lang.c (exp_descriptor_modula2): Likewise.
6608 * scm-lang.c (exp_descriptor_scm): Likewise.
6609 * parse.c (exp_descriptor_standard): Likewise.
6610 (operator_check_standard): New function.
6611 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6612 * parser-defs.h (struct exp_descriptor): New field operator_check.
6613 (operator_check_standard, exp_uses_objfile): New declarations.
6614 * printcmd.c: Remove the inclusion of solib.h.
6615 (display_uses_solib_p): Remove the function.
6616 (clear_dangling_display_expressions): Call lookup_objfile_from_block
6617 and exp_uses_objfile instead of display_uses_solib_p.
6618 * solist.h (struct so_list) <objfile>: New comment.
6619 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6620 * symtab.h (lookup_objfile_from_block): New declaration.
6621 (struct general_symbol_info) <obj_section>: Extend the comment.
6623 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6624 Thiago Jung Bauermann <bauerman@br.ibm.com>
6626 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6627 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6628 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6629 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6630 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6631 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6632 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6633 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6634 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6635 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6636 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6637 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6638 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6639 Define, in case <ptrace.h> doesn't provide it.
6640 (booke_debug_info): New variable.
6641 (max_slots_number): Ditto.
6642 (hw_break_tuple): New struct.
6643 (thread_points): Ditto.
6644 (ppc_threads): New variable.
6645 (PPC_DEBUG_CURRENT_VERSION): New define.
6646 (have_ptrace_new_debug_booke): New function.
6647 (ppc_linux_check_watch_resources): Renamed to ...
6648 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6649 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6650 (booke_cmp_hw_point): New function.
6651 (booke_find_thread_points_by_tid): Ditto.
6652 (booke_insert_point): Ditto.
6653 (booke_remove_point): Ditto.
6654 (ppc_linux_insert_hw_breakpoint): Ditto.
6655 (ppc_linux_remove_hw_breakpoint): Ditto.
6656 (get_trigger_type): Ditto.
6657 (ppc_linux_insert_watchpoint): Handle BookE processors.
6658 (ppc_linux_remove_watchpoint): Ditto.
6659 (ppc_linux_new_thread): Ditto.
6660 (ppc_linux_thread_exit): New function..
6661 (ppc_linux_stopped_data_address): Handle BookE processors.
6662 (ppc_linux_watchpoint_addr_within_range): Ditto.
6663 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6664 to_remove_hw_breakpoint fields of the target operations struct.
6665 Add observe for the thread_exit event.
6667 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6669 * i386-linux-nat.c (regmap): Removed.
6670 (fetch_register): Replace regmap with
6671 i386_linux_gregset_reg_offset.
6672 (store_register): Likewise.
6673 (supply_gregset): Likewise.
6674 (fill_gregset): Likewise.
6676 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6679 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6681 2010-04-22 Chris Moller <cmoller@redhat.com>
6683 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6684 method of popping recursion-detection stack with a method based on
6685 obstack_object_size(). (Similar to the PR9167 patch below, but for
6686 the static array obstack rather than the static member obstack.)
6688 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6690 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6691 (_initialize_amd64_linux_nat): Replace
6692 amd64_linux_gregset64_reg_offset with
6693 amd64_linux_gregset_reg_offset.
6695 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6698 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6700 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6703 * stabsread.c (set_length_in_type_chain): New function.
6704 (read_struct_type): Call set_length_in_type_chain function.
6705 (read_enum_type): Idem.
6707 2010-04-21 Stan Shebs <stan@codesourcery.com>
6708 Nathan Sidwell <nathan@codesourcery.com>
6710 * tracepoint.c (trace_save): Open in binary mode.
6712 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6714 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6716 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
6717 builtin_char32 fields.
6718 * printcmd.c (decode_format): Set char size to '\0'
6719 for strings unless explicit size is given.
6720 (print_formatted): Correct calculation of NEXT_ADDRESS
6721 for 16 or 32 bit strings.
6722 (do_examine): Do not force byte size for strings.
6723 Use builtin_char16 and builtin_char32 types to display
6724 16 or 32 bit-wide strings.
6725 (x_command): Set LAST_SIZE to 'b' for string type.
6727 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6730 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6733 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6734 there is no .reg-xstate section.
6735 (i386_linux_core_read_description): Check XCR0 first.
6737 2010-04-21 Mike Frysinger <vapier@gentoo.org>
6739 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6742 2010-04-21 Chris Moller <cmoller@redhat.com>
6745 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6746 method of popping recursion-detection stack with a method based on
6747 obstack_object_size().
6749 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6752 * p-valprint.c (pascal_val_print): Fix default printing of integer
6755 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6757 Fix compilation warning on gcc-4.1.2.
6758 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6759 local variable`pc' to zero.
6761 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6763 Implement thread support with core files on alpha-tru64.
6764 * dec-thread.c (dec_thread_find_new_threads): New function,
6765 extracted from resync_thread_list.
6766 (resync_thread_list): Add OPS parameter. Replace extracted-out
6767 code by call to dec_thread_find_new_threads.
6768 (dec_thread_wait): Update call to resync_thread_list.
6769 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6771 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6773 * ada-lang.c (value_pointer): New function.
6774 (make_array_descriptor): Call value_pointer to convert addresses to
6777 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6779 * rs6000-aix-tdep.c: #include exceptions.h.
6780 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6781 while reading the memory at ADDR, then ADDR cannot be a function
6784 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6786 * ada-typeprint.c (ada_print_typedef): New function.
6787 * ada-lang.h (ada_print_typedef): Add declaration.
6788 * ada-lang.c (ada_language_defn): set la_print_typdef field
6789 to ada_print_typedef.
6791 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6793 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6795 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6797 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6798 (iterate_over_mappings): Adjust function profile. Add declaration.
6799 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6802 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6804 * procfs.c (solib_mappings_callback): Move function up to avoid
6807 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6809 * procfs.c (find_signalled_thread, find_stop_signal): Move
6810 these functions down to define them only when used.
6812 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6814 * valprint.c (common_val_print): Fix the value before extracting
6816 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6817 * ada-lang.h (ada_to_fixed_value): New function declaration.
6818 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6819 to avoid code duplication and fix a bug in the handling of
6820 fixed types contents.
6822 2010-04-20 Tom Tromey <tromey@redhat.com>
6824 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6825 (read_partial_die): Likewise.
6826 (dwarf_attr_name): Likewise.
6828 2010-04-20 Chris Moller <cmoller@redhat.com>
6832 * cp-valprint.c (global): Adding new static array recursion
6834 (cp_print_value_fields, cp_print_static_field): Added new static
6835 array recursion detection code.
6837 2010-04-20 Mark Kettenis <kettenis@gnu.org>
6839 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6840 general-purpose register set should be 68 instead of 144.
6841 (i386_linux_sse_regset_sections): Likewise.
6842 (i386_linux_avx_regset_sections): Likewise.
6844 2010-04-20 Stan Shebs <stan@codesourcery.com>
6845 Nathan Sidwell <nathan@codesourcery.com>
6847 * dwarf2loc.c (struct axs_var_loc): New struct.
6848 (dwarf2_tracepoint_var_loc): New function.
6849 (dwarf2_tracepoint_var_access): New function.
6850 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6852 (locexpr_describe_location_piece): New function.
6853 (locexpr_describe_location_1): New function.
6854 (locexpr_describe_location): Call it, update signature.
6855 (loclist_describe_location): Rewrite to loop over locations,
6857 * symtab.h (struct symbol_computed_ops): Add address to
6858 describe_location arguments, return void.
6859 * printcmd.c (address_info): Get context PC, pass to computed
6860 location description.
6861 * tracepoint.c (scope_info): Ditto.
6862 * ax-gdb.c (trace_kludge): Export.
6864 2010-04-20 Tom Tromey <tromey@redhat.com>
6866 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6867 (struct dwarf2_cie) <segment_size>: New field.
6868 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6869 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6871 (read_attribute_value): Handle DW_FORM_flag_present,
6872 DW_FORM_sec_offset, DW_FORM_exprloc.
6873 (dump_die_shallow): Likewise.
6874 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6875 (dwarf2_const_value): Handle DW_FORM_exprloc.
6876 (attr_form_is_block): Likewise.
6877 (struct line_header) <maximum_ops_per_instruction>: New field.
6878 (dwarf_decode_line_header): Set new field.
6879 (dwarf_decode_lines): Handle new field.
6881 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6883 * f-exp.y: Add new production to recognize the `logical*8' type.
6884 (LOGICAL_S8_KEYWORD): New token.
6885 * f-lang.c (enum f_primitive_types)
6886 <f_primitive_type_logical_s8>: New field.
6887 (f_language_arch_info): Handling `logical*8' type.
6888 (build_fortran_types): Building `logical*8' type.
6889 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6891 2010-04-19 Doug Evans <dje@google.com>
6893 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6894 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6895 (pipe_close): Ditto.
6897 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6899 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6901 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6903 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6904 type to void function.
6906 2010-04-19 Stan Shebs <stan@codesourcery.com>
6907 Vladimir Prus <vladimir@codesourcery.com>
6909 * tracepoint.c (tfind_1): Add missing newline, report exit from
6911 * target.c (update_current_target): Make default
6912 to_trace_find return -1.
6914 2010-04-19 Mike Frysinger <vapier@gentoo.org>
6916 * objc-lang.c (find_methods): Move symname check up.
6918 2010-04-19 Pedro Alves <pedro@codesourcery.com>
6920 * ada-lang.c (print_recreate_exception)
6921 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6922 not "catch unhandled".
6924 2010-04-19 Pedro Alves <pedro@codesourcery.com>
6926 PR breakpoints/8554.
6928 Implement `save-breakpoints'.
6930 * breakpoint.c (save_cmdlist): New.
6931 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6933 (print_recreate_catch_fork): New.
6934 (catch_fork_breakpoint_ops): Install it.
6935 (print_recreate_catch_vfork): New.
6936 (catch_vfork_breakpoint_ops): Install it.
6937 (print_recreate_catch_syscall): New.
6938 (catch_syscall_breakpoint_ops): Install it.
6939 (print_recreate_catch_exec): New.
6940 (catch_exec_breakpoint_ops): Install it.
6941 (print_recreate_exception_catchpoint): New.
6942 (gnu_v3_exception_catchpoint_ops): Install it.
6943 (save_breakpoints): New, based on tracepoint_save_command, but
6944 handle all breakpoint types.
6945 (save_breakpoints_command): New.
6946 (tracepoint_save_command): Rename to...
6947 (save_tracepoints_command): ... this, and reimplement using
6949 (save_command): New.
6950 (_initialize_breakpoints): Install the "save" command prefix.
6951 Install the "save breakpoints" command. Make "save-tracepoints" a
6952 deprecated alias for "save tracepoints".
6953 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6954 * ada-lang.c (print_recreate_exception): New.
6955 (print_recreate_catch_exception): New.
6956 (catch_exception_breakpoint_ops): Install it.
6957 (print_recreate_catch_exception_unhandled): New.
6958 (catch_exception_unhandled_breakpoint_ops): Install it.
6959 (print_recreate_catch_assert): New.
6960 (catch_assert_breakpoint_ops): Install it.
6962 * NEWS: Mention the new `save breakpoints' command. Mention the
6963 new `save tracepoints' alias and that `save-tracepoints' is now
6966 2010-04-18 Pedro Alves <pedro@codesourcery.com>
6970 * tui/tui-out.c: Include cli-out.h.
6971 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6972 (tui_begin, tui_end, tui_field_int, tui_field_skip)
6973 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6974 (tui_message, tui_wrap_hint, tui_flush): Delete forward
6976 (struct ui_out_data): Rename to...
6977 (struct tui_ui_out_data): ... this. Remove `stream' and
6978 `suppress_output' fields, and inherit cli_ui_out_data.
6979 (tui_out_data): New typedef.
6980 (tui_ui_out_impl): Don't initialize fields staticaly.
6981 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6982 (tui_begin, tui_end): Delete.
6983 (tui_field_int): Adjust to delegate most work to the base type.
6984 (tui_field_skip): Delete.
6985 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
6986 delegate most work to the base type.
6987 (tui_spaces): Delete.
6988 (tui_text): Adjust to delegate most work to the base type.
6989 (tui_message): Delete.
6990 (tui_wrap_hint): Delete.
6991 (tui_flush): Delete.
6992 (out_field_fmt): Delete.
6993 (field_separator): Delete.
6994 (tui_out_new): Adjust to initialize the base type.
6995 (_initialize_tui_out): Initialize tui_ui_out_impl.
6996 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6998 (cli_out_data): Adjust.
6999 (cli_ui_out_impl): Make extern.
7000 (cli_table_header, cli_field_int, cli_field_skip): Use
7001 uo_field_string instead of cli_field_string.
7002 (cli_redirect): Adjust to use cli_out_data.
7003 (cli_out_data_ctor): New.
7004 (cli_out_new): Use it.
7005 * cli-out.h (struct ui_file): Remove forward declaration.
7006 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
7007 (cli_ui_out_impl): Declare.
7008 (cli_out_data_ctor): Declare.
7009 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
7010 (uo_field_string): No longer static.
7011 (ui_out_data): Change return type to void pointer.
7012 (ui_out_new): Change `data' parameter type to void pointer.
7013 * ui-out.h (struct ui_out_data): Don't forward declare.
7014 (ui_out_data): Change return type to void pointer.
7015 (ui_out_new): Change `data' parameter type to void pointer.
7016 (uo_field_string): Declare.
7018 2010-04-17 Pedro Alves <pedro@codesourcery.com>
7020 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
7021 instead of always false.
7023 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
7026 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
7029 2010-04-17 Pedro Alves <pedro@codesourcery.com>
7031 * breakpoint.c (watchpoints_triggered): Use
7032 is_hardware_watchpoint.
7033 (watchpoints_triggered): Ditto.
7034 (bpstat_check_location): Use is_watchpoint and
7035 is_hardware_watchpoint.
7036 (bpstat_check_watchpoint): Use is_watchpoint and
7037 is_hardware_watchpoint.
7038 (bpstat_stop_status): Fix comment.
7039 (user_settable_breakpoint): Use is_watchpoint.
7040 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
7041 (disable_watchpoints_before_interactive_call_start): Use
7043 (enable_watchpoints_after_interactive_call_stop): Use
7045 (clear_command): Use is_watchpoint.
7046 (do_enable_breakpoint): Use is_watchpoint.
7048 2010-04-16 Mike Frysinger <vapier@gentoo.org>
7050 * solib-frv.c (enable_break1_done): Delete.
7051 (enable_break2): Do not check enable_break1_done. Move the
7052 enable_break2_done setting and call to
7053 remove_solib_event_breakpoints() to the end. Return without
7054 warning when the contents of _dl_debug_addr are 0.
7055 (enable_break): Do not set enable_break1_done.
7056 (frv_clear_solib): Likewise.
7058 2010-04-16 Kevin Buettner <kevinb@redhat.com>
7060 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
7061 instead of an error if no PLT entry is found. Return a
7062 potentially useful result.
7063 (m32c_m16c_pointer_to_address): Add code to search for function
7064 address when no .plt entry is found.
7066 2010-04-16 Stan Shebs <stan@codesourcery.com>
7068 * tracepoint.c (trace_variable_command): Run a cleanup.
7070 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7072 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
7074 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7076 Support for Windows OS Thread Information Block.
7077 * NEWS: Document new feature.
7078 * remote.c (PACKET_qGetTIBAddr): New enum element.
7079 (remote_get_tib_address): New function.
7080 (init_remote_ops): Set to_get_tib_address field
7081 to remote_get_tib_address.
7082 (_initialize_remote): Add add_packet_config_cmd
7083 for PACKET_qGetTIBAddr.
7084 * target.c (update_current_target): Set default value for
7085 new to_get_tib_address field.
7086 * target.h (target_ops): New field to_get_tib_address.
7087 (target_get_tib_address): New macro.
7088 * windows-nat.c (thread_info): Add thread_local_base field.
7089 (windows_add_thread): Add tlb argument of type 'void *'.
7090 (fake_create_process): Adapt windows_add_thread call.
7091 (get_windows_debug_event): Idem.
7092 (windows_get_tib_address): New function.
7093 (init_windows_ops): Set to_get_tib_address field
7094 to remote_get_tib_address.
7095 (_initialize_windows_nat): Replace info_w32_cmdlist
7096 initialization by a call to init_w32_command_list.
7097 (info_w32_command, info_w32_cmdlist): Removed from here...
7098 to windows-tdep.c file.
7099 * windows-tdep.h (info_w32_cmdlist): Declare.
7100 (init_w32_command_list): New external function
7102 * windows-tdep.c: Add several headers.
7103 (info_w32_cmdlist): to here, made global.
7104 (thread_information_32): New struct.
7105 (thread_information_64): New struct.
7106 (TIB_NAME): New char array.
7107 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
7108 (maint_display_all_tib): New static variable.
7109 (windows_get_tlb_type): New function.
7110 (tlb_value_read, tlb_value_write): New functions.
7111 (tlb_value_funcs): New static struct.
7112 (tlb_make_value): New function.
7113 (display_one_tib): New function.
7114 (display_tib): New function.
7115 (show_maint_show_all_tib):New function.
7116 (info_w32_command): Moved from windows-nat.c.
7117 (init_w32_command_list): New function.
7118 (_initialize_windows_tdep): New function.
7119 New "maint set/show show-all-tib" command
7120 New "$_tlb" internal variable.
7122 2010-04-16 Joel Brobecker <brobecker@adacore.com>
7124 * tui/tui-regs.c (tui_display_register): Add comment about
7126 * tui/tui-stack.c (tui_show_locator_content): Ditto.
7128 2010-04-15 Stan Shebs <stan@codesourcery.com>
7130 * frame.c: Include tracepoint.h.
7131 (get_current_frame): Allow a trace frame to be an alternate source
7132 of stack frame data.
7133 * tracepoint.c (tfind_1): Don't try to get current stack frame if
7136 2010-04-15 Pedro Alves <pedro@codesourcery.com>
7138 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
7140 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
7142 2010-04-15 Doug Evans <dje@google.com>
7144 * NEWS: Add entry for python program space support.
7145 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
7146 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
7147 (py-progspace.o): New rule.
7148 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
7150 (find_pretty_printer_from_progspace): New function.
7151 (find_pretty_printer_from_gdb): New function.
7152 (find_pretty_printer): Rewrite.
7153 * python/py-progspace.c: New file.
7154 * python/python-internal.h (program_space): Add forward decl.
7155 (pspace_to_pspace_object, pspy_get_printers): Declare.
7156 (gdbpy_initialize_pspace): Declare.
7157 * python/python.c: #include "progspace.h".
7158 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
7159 (_initialize_python): Call gdbpy_initialize_pspace.
7160 (GdbMethods): Add current_progspace, progspaces.
7162 Add -s option to source command.
7163 * NEWS: Document new option.
7164 * cli/cli-cmds.c (find_and_open_script): Add function comment.
7165 Delete from_tty and cleanupp args. Split filep arg into file and
7166 full_pathp. New arg search_path.
7167 (source_script_from_stream): New function.
7168 (source_script_with_search): New function.
7169 (source_script): Rewrite.
7170 (source_command): Parse "-s" option.
7171 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
7172 * python/python.c (source_python_script): Make file arg a const char *.
7173 Don't call fclose, leave for caller.
7174 * python/python.h (source_python_script): Update.
7176 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7177 Pedro Alves <pedro@codesourcery.com>
7179 Avoid rereading shared libraries that haven't changed.
7181 * solib.c (free_so_symbols): New function, from ...
7182 (free_so): ... here. Call it.
7183 (solib_read_symbols): Don't warn here if symbols have already been
7185 (solib_add): Warn here instead, if a pattern was specified.
7186 (reload_shared_libraries_1): New.
7187 (reload_shared_libraries): Rewrite to not fetch the library list.
7189 2010-04-14 Doug Evans <dje@google.com>
7191 * source.c (openp): Strip DOS drive letter if present before
7192 concatenating string to search path.
7194 2010-04-14 Pedro Alves <pedro@codesourcery.com>
7196 * objfiles.h (gdb_bfd_close_or_warn): Declare.
7197 * objfiles.c (gdb_bfd_close_or_warn): New.
7198 * corelow.c: Include objfiles.h
7199 (core_close): Use gdb_bfd_close_or_warn.
7200 * elfread.c (build_id_verify): Ditto.
7201 * exec.c (exec_close, exec_close_1): Ditto.
7203 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7204 Pedro Alves <pedro@codesourcery.com>
7206 Group errors for many missing shared libraries.
7208 * solist.h (struct so_list): Remove from_tty.
7209 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
7210 (solib_map_sections): Take so_list argument. Return 0 if we
7211 failed to open a BFD. Add target sections here.
7212 (symbol_add_stub): Delete.
7213 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
7214 not from_tty copied from the so_list. Don't warn a second time
7215 for a missing library.
7216 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
7217 add to the section table here. Print out a single warning for all
7219 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
7222 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7224 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
7225 error/warning messages. Capitalize and use complete sentences.
7226 (blpy_block_syms_iternext): Likewise.
7227 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
7228 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
7229 (frame_info_to_frame_object, frapy_read_var)
7230 (gdbpy_frame_stop_reason_string): Likewise.
7231 * python/py-lazy-string.c (stpy_convert_to_value)
7232 (gdbpy_create_lazy_string_object): Likewise.
7233 * python/py-objfile.c (objfpy_set_printers): Likewise.
7234 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
7235 * python/python.c (parameter_to_python): Likewise.
7236 * python/py-type.c (typy_range, typy_target): Likewise.
7237 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
7238 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
7241 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7245 * python/py-prettyprint.c (pretty_print_one_value): Test for
7247 (print_string_repr): Test for Py_None. Set flags accordingly.
7248 Return value depending on return type.
7249 (print_children): Take a value indicating whether data was printed
7250 before this function was called. Alter output accordingly.
7251 (apply_val_pretty_printer): Capture return value from
7252 print_string_repr and pass to print_children.
7254 2010-04-13 Mark Kettenis <kettenis@gnu.org>
7257 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
7258 register note sections.
7259 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
7261 (i386_linux_init_abi): Install list of supported register note
7262 sections that matches the target description.
7264 2010-04-13 Pedro Alves <pedro@codesourcery.com>
7266 * remote.c (remote_get_noisy_reply): Don't error out on empty
7268 (remote_start_remote): Update and merge tracepoints and trace
7269 state variables as long as the target supports tracepoints.
7270 (remote_trace_init): Fix prototype.
7271 (remote_download_trace_state_variable): Validate reply.
7272 (remote_trace_set_readonly_regions): Fix prototype.
7273 (remote_trace_start): Fix prototype. Check for empty reply.
7274 (remote_get_trace_status): Small cleanup.
7275 (remote_trace_stop): Fix prototype. Check for empty reply.
7276 (remote_trace_find): Check for empty reply.
7277 (remote_save_trace_data): Validate reply.
7278 (remote_set_disconnected_tracing): Check for empty reply, and
7280 (remote_set_circular_trace_buffer): Ditto.
7282 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
7284 Suppress unused value warning during compilation.
7285 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
7287 * tui/tui-stack.c (tui_show_locator_content): Likewise.
7289 2010-04-12 Stan Shebs <stan@codesourcery.com>
7291 * tracepoint.c (tfile_xfer_partial): Check read result.
7293 2010-04-12 Mike Frysinger <vapier@gentoo.org>
7295 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
7296 * remote-sim.c (gdbsim_files_info): Likewise.
7298 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7300 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
7301 * arm-linux-nat.c (arm_linux_vfp_register_count): New
7303 (fetch_vfp_registers): New function to fetch VFP registers.
7304 (store_vfp_registers): New function to store VFP registers.
7305 (arm_linux_fetch_inferior_registers): Add support for VFP
7307 (arm_linux_store_inferior_registers): Likewise.
7308 (arm_linux_read_description): Likewise.
7309 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
7312 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
7314 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
7316 (amd64_collect_xstateregset): Likewise.
7318 2010-04-09 Stan Shebs <stan@codesourcery.com>
7320 * tracepoint.c (trace_status_mi): Report frames created.
7322 * tracepoint.c (trace_dump_command): Include default-collect
7325 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
7327 * symtab.c (find_function_start_sal): Never return SAL pointing
7328 before function start address, even if line info is missing.
7330 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7332 * NEWS: Mention tracepoints support.
7334 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7336 * tracepoint.c (trace_status_mi): Report disconnected tracing and
7337 circular trace buffer statuses.
7339 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7341 * config/djgpp/fnchange.lst: Fix typo in translations for
7342 symbol-without-target_section.exp and symbol-without-target_section.c.
7344 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7346 * breakpoint.c (condition_command): Pass condition expression to
7347 set_breakpoint_condition stripped from breakpoint number.
7349 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
7350 Thiago Jung Bauermann <bauerman@br.ibm.com>
7351 Tom Tromey <tromey@redhat.com>
7353 * breakpoint.c (condition_command): Simplify. Move condition
7355 (set_breakpoint_condition): ... here. New function.
7356 * breakpoint.h (set_breakpoint_condition): Declare.
7357 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
7358 (SUBDIR_PYTHON_SRCS): Likewise.
7359 (py-breakpoint.o): New rule.
7360 * python/py-breakpoint.c: New file.
7361 * python/python-internal.h (gdbpy_breakpoints)
7362 (gdbpy_initialize_breakpoints): Declare.
7363 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
7365 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7367 * regformats/regdat.sh: Include server.h. Don't include
7370 2010-04-08 Stan Shebs <stan@codesourcery.com>
7371 Pedro Alves <pedro@codesourcery.com>
7373 * tracepoint.h (struct trace_status): New fields disconnected_tracing
7374 and circular_buffer.
7375 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
7376 * tracepoint.c (trace_status_command): Display target's status for
7377 disconnected tracing and circular buffer.
7378 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
7379 query for non-disconnected-tracing case, remove the stop_tracing
7381 (tfile_open): Clear disconnected and circular buffer status.
7382 (trace_save): Save disconnected and circular buffer status.
7383 (parse_trace_status): Parse disconnected and circular buffer status,
7384 also recognize disconnected as a stop reason.
7385 * remote.c (remote_set_disconnected_tracing): Only set
7386 QTDisconnected if the remote end supports disconnected tracing.
7387 Warn otherwise, if trying to enable disconnected tracing.
7388 * infcmd.c (detach_command): Update disconnect_tracing call.
7389 * cli/cli-cmds.c (quit_command): Ditto.
7391 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7393 * i387-tdep.c (i387_collect_xsave): Replace abort with
7396 2010-04-08 Stan Shebs <stan@codesourcery.com>
7398 * breakpoint.c (default_collect_info): New function.
7399 (breakpoints_info): Call it.
7400 (maintenance_info_breakpoints): Ditto.
7401 (tracepoints_info): Ditto.
7403 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7405 * i387-tdep.c (i387_collect_xsave): Re-indent.
7407 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7409 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
7410 if HAVE_PTRACE_GETFPXREGS is defined.
7411 (i386_linux_read_description): Set have_ptrace_getfpxregs and
7412 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
7414 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
7415 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
7416 if .reg-xfp section doesn't exist.
7417 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
7419 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
7421 * i386-tdep.c: Include "features/i386/i386-mmx.c".
7422 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
7423 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
7424 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
7425 (i386_gdbarch_init): Update comments.
7426 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
7428 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
7430 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
7432 * features/Makefile (i386/i386-mmx-expedite): New.
7433 (i386/i386-mmx-linux-expedite): Likewise.
7434 ($(outdir)/i386/i386-mmx.dat): Likewise.
7435 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
7437 * features/i386/i386-mmx-linux.c: New.
7438 * features/i386/i386-mmx-linux.xml: Likewise.
7439 * features/i386/i386-mmx.c: Likewise.
7440 * features/i386/i386-mmx.xml: Likewise.
7441 * regformats/i386/i386-mmx-linux.dat: Likewise.
7442 * regformats/i386/i386-mmx.dat: Likewise.
7444 * features/Makefile (WHICH): Add i386/i386-mmx and
7445 i386/i386-mmx-linux.
7447 2010-04-08 Doug Evans <dje@google.com>
7449 * source.c (openp): Skip $cdir in PATH.
7451 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
7454 * python/py-lazy-string.c (stpy_convert_to_value): Check for
7456 (gdbpy_create_lazy_string_object): Allow strings with a NULL
7457 address and a zero length.
7459 2010-04-08 Hui Zhu <teawater@gmail.com>
7461 * i386-tdep.c (i386_process_record): Add support for insn
7464 2010-04-07 Doug Evans <dje@google.com>
7466 * python/python.c (source_python_script): Use ensure_python_env
7467 to prepare environment for script.
7469 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7471 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
7472 <sys/uio.h> and "i386-xstate.h".
7473 (PTRACE_GETREGSET): New.
7474 (PTRACE_SETREGSET): Likewise.
7475 (have_ptrace_getregset): Likewise.
7476 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
7478 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
7480 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
7481 (amd64_linux_store_inferior_registers): Likewise.
7482 (amd64_linux_read_description): Check and enable AVX target
7485 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
7486 and "features/i386/amd64-avx-linux.c".
7487 (amd64_linux_regset_sections): New.
7488 (amd64_linux_core_read_description): Check and enable AVX
7490 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
7491 set_gdbarch_core_regset_sections.
7492 (_initialize_amd64_linux_tdep): Call
7493 initialize_tdesc_amd64_avx_linux.
7495 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
7496 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7497 (tdesc_amd64_avx_linux): New.
7498 (amd64_linux_update_xstateregset): Likewise.
7500 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7501 (amd64_ymm_names): New.
7502 (amd64_ymmh_names): Likewise.
7503 (amd64_register_name): Likewise.
7504 (amd64_supply_xstateregset): Likewise.
7505 (amd64_collect_xstateregset): Likewise.
7506 (amd64_supply_xsave): Likewise.
7507 (amd64_collect_xsave): Likewise.
7508 (AMD64_NUM_REGS): Removed.
7509 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7510 %xmmN if AVX is available.
7511 (amd64_pseudo_register_name): Support pseudo YMM registers.
7512 (amd64_regset_from_core_section): Support .reg-xstate section.
7513 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7514 and ymm0h_regnum. Call set_gdbarch_register_name.
7515 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7517 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7518 AMD64_YMM15H_REGNUM.
7519 (AMD64_NUM_REGS): New.
7520 (amd64_supply_xsave): Likewise.
7521 (amd64_collect_xsave): Likewise.
7522 (amd64_register_name): Removed.
7523 (amd64_register_type): Likewise.
7525 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7527 * i387-tdep.c: Include "i386-xstate.h".
7528 (XSAVE_XSTATE_BV_ADDR): New.
7529 (xsave_avxh_offset): Likewise.
7530 (XSAVE_AVXH_ADDR): Likewise.
7531 (i387_supply_xsave): Likewise.
7532 (i387_collect_xsave): Likewise.
7534 * i387-tdep.h (I387_NUM_YMM_REGS): New.
7535 (I387_YMM0H_REGNUM): Likewise.
7536 (I387_YMMENDH_REGNUM): Likewise.
7537 (i387_supply_xsave): Likewise.
7538 (i387_collect_xsave): Likewise.
7540 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7542 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7543 <sys/uio.h> and "i386-xstate.h".
7544 (PTRACE_GETREGSET): New.
7545 (PTRACE_SETREGSET): Likewise.
7546 (fetch_xstateregs): Likewise.
7547 (store_xstateregs): Likewise.
7548 (GETXSTATEREGS_SUPPLIES): Likewise.
7549 (regmap): Include 8 upper YMM registers.
7550 (i386_linux_fetch_inferior_registers): Support XSAVE extended
7552 (i386_linux_store_inferior_registers): Likewise.
7553 (i386_linux_read_description): Check and enable AVX target
7556 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7557 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7558 (i386_linux_regset_sections): Add ".reg-xstate".
7559 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7560 (i386_linux_core_read_xcr0): New.
7561 (i386_linux_core_read_description): Check and enable AVX target
7563 (i386_linux_init_abi): Set xsave_xcr0_offset.
7564 (_initialize_i386_linux_tdep): Call
7565 initialize_tdesc_i386_avx_linux.
7567 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7568 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7569 (i386_linux_core_read_xcr0): New.
7570 (tdesc_i386_avx_linux): Likewise.
7571 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7573 * i386-tdep.c: Include "i386-xstate.h" and
7574 "features/i386/i386-avx.c".
7575 (i386_ymm_names): New.
7576 (i386_ymmh_names): Likewise.
7577 (i386_ymmh_regnum_p): Likewise.
7578 (i386_ymm_regnum_p): Likewise.
7579 (i386_xmm_regnum_p): Likewise.
7580 (i386_register_name): Likewise.
7581 (i386_ymm_type): Likewise.
7582 (i386_supply_xstateregset): Likewise.
7583 (i386_collect_xstateregset): Likewise.
7584 (i386_sse_regnum_p): Removed.
7585 (i386_pseudo_register_name): Support pseudo YMM registers.
7586 (i386_pseudo_register_type): Likewise.
7587 (i386_pseudo_register_read): Likewise.
7588 (i386_pseudo_register_write): Likewise.
7589 (i386_dbx_reg_to_regnum): Return %ymmN register number for
7590 %xmmN if AVX is available.
7591 (i386_regset_from_core_section): Support .reg-xstate section.
7592 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7593 (i386_process_record): Replace i386_sse_regnum_p with
7595 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7596 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
7597 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
7598 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
7599 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
7600 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7602 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7604 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7605 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7607 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7608 (I386_AVX_NUM_REGS): New.
7609 (i386_xmm_regnum_p): Likewise.
7610 (i386_ymm_regnum_p): Likewise.
7611 (i386_ymmh_regnum_p): Likewise.
7613 * common/i386-xstate.h: New.
7615 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7617 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7619 * features/Makefile (WHICH): Add i386/i386-avx,
7620 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7621 (i386/i386-avx-expedite): New.
7622 (i386/i386-avx-linux-expedite): Likewise.
7623 (i386/x86-64-avx-expedite):Likewise.
7624 (i386/x86-64-avx-linux-expedite): Likewise.
7625 ($(outdir)/i386/i386-avx.dat): New dependency.
7626 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7627 ($(outdir)/i386/x86-avx-64.dat): Likewise.
7628 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7630 * features/i386/32bit-avx.xml: New.
7631 * features/i386/64bit-avx.xml: Likewise.
7632 * features/i386/i386-avx-linux.c: Likewise.
7633 * features/i386/i386-avx-linux.xml: Likewise.
7634 * features/i386/i386-avx.c: Likewise.
7635 * features/i386/i386-avx.xml: Likewise.
7636 * features/i386/x86-64-avx-linux.c: Likewise.
7637 * features/i386/x86-64-avx-linux.xml: Likewise.
7638 * features/i386/x86-64-avx.c: Likewise.
7639 * features/i386/x86-64-avx.xml: Likewise.
7640 * regformats/i386/i386-avx-linux.dat: Likewise.
7641 * regformats/i386/i386-avx.dat: Likewise.
7642 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7643 * regformats/i386/x86-64-avx.dat: Likewise.
7645 2010-04-07 Doug Evans <dje@google.com>
7647 * top.c (source_file_name): Make const char *.
7648 * top.h (source_file_name): Update.
7649 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7651 (script_from_file): Change `file' arg to const char *.
7652 * cli/cli-script.h (script_from_file): Update.
7654 2010-04-06 Doug Evans <dje@google.com>
7656 * cli/cli-cmds.c (source_command): Run cleanups.
7658 2010-04-06 Stan Shebs <stan@codesourcery.com>
7660 * defs.h (char_ptr): Move typedef here from...
7661 * ada-lang.c (char_ptr): Remove.
7662 * charset.c (char_ptr): Remove.
7663 * tracepoint.h (struct uploaded_string): Remove.
7664 (struct uploaded_tp): Use vectors for string arrays.
7665 * tracepoint.c (trace_save): Use vectors of actions.
7666 (parse_tracepoint_definition): Ditto.
7667 (get_uploaded_tp): Clear vectors.
7668 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7669 (next_cmd): Change to an int.
7670 (read_next_cmd): Use vector of command strings.
7672 2010-04-06 Doug Evans <dje@google.com>
7674 * top.h (source_script, cd_command): Delete.
7675 * main.c: #include "cli/cli-cmds.h"
7677 2010-04-06 Kevin Buettner <kevinb@redhat.com>
7679 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7680 type in bytes, not bits.
7682 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7684 * stabsread.c (define_symbol): Add support for char
7685 and string constants.
7687 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7689 Remove remaining "%ll" uses.
7690 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7692 * rs6000-nat.c (rs6000_ptrace64): Idem.
7693 * solib-pa64.c (pa64_current_sos): Idem.
7694 * solib-spu.c (spu_current_sos): Idem.
7695 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7697 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7699 * sh64-tdep.c (sh64_show_media_regs): Idem.
7701 2010-04-05 Stan Shebs <stan@codesourcery.com>
7703 * tracepoint.c: Include gdbcore.h.
7704 (tfile_xfer_partial): Return partial results, also try reading
7706 (tfile_has_all_memory): New function.
7707 (init_tfile_ops): Use it.
7709 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7712 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7713 the changes in data-directory.
7714 (init_sysinfo): Reload the syscall XML file if the data-directory
7717 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7720 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7722 2010-04-04 Stan Shebs <stan@codesourcery.com>
7723 Nathan Sidwell <nathan@codesourcery.com>
7725 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7726 breakpoints printed.
7727 (is_hardware_watchpoint): Make argument const.
7728 (is_watchpoint): Ditto.
7729 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7731 (breakpoints_info): Pass NULL to breakpoint_1.
7732 (maintenance_info_breakpoints): Ditto.
7733 (watchpoints_info): New function.
7734 (tracepoints_info): Use breakpoint_1 filter.
7735 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7736 (_initialize_breakpoint): Make "info watchpoints" its own command.
7737 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7738 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7740 2010-04-04 Stan Shebs <stan@codesourcery.com>
7742 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7744 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7746 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7747 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7749 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7751 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7752 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7754 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7756 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7759 2010-04-02 Hui Zhu <teawater@gmail.com>
7761 * i386-tdep.c (OT_DQUAD): New enum.
7762 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7763 SSE3, SSSE3 and SSE4.
7765 2010-04-02 Hui Zhu <teawater@gmail.com>
7767 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7770 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7772 * tracepoint.c (trace_dump_actions): New, factored out from
7773 trace_dump_command, and adjusted to recurse into while-stepping's
7775 (trace_dump_command): Use it.
7777 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7779 * breakpoint.h (struct counted_command_line): Moved definition to
7780 breakpoint.c, and forward declare.
7781 (breakpoint_commands): Declare.
7782 * breakpoint.c (struct counted_command_line): Moved here.
7783 (breakpoint_commands): New.
7784 * tracepoint.c (encode_actions): Use breakpoint_commands.
7785 * remote.c (remote_download_tracepoint): Ditto.
7787 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7789 * remote.c (remote_parse_stop_reply): Use hex_string instead
7790 of phex_nz for error.
7792 2010-04-01 Stan Shebs <stan@codesourcery.com>
7793 Nathan Sidwell <nathan@codesourcery.com>
7795 * tracepoint.h (enum actionline_type): Remove.
7796 (validate_actionline): Change return to void.
7797 * tracepoint.c (report_agent_reqs_errors): New function.
7798 (validate_actionline): Call it, change return to void, report errors
7800 (collect_symbol): Call report_agent_reqs_errors.
7801 (encode_actions_1): Ditto.
7802 (encode_actions): Don't expect a result from validate_actionline.
7804 2010-04-01 Stan Shebs <stan@codesourcery.com>
7806 * tracepoint.c (trace_start_command): Confirm if trace is running.
7807 (trace_stop_command): Error if trace not running.
7809 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7811 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7812 (AMD64_NUM_LOWER_BYTE_REGS): New.
7813 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7814 (amd64_pseudo_register_write): Likewise.
7815 (amd64_init_abi): Set num_byte_regs to 20.
7817 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7819 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7820 (prev_breakpoint_count): New.
7821 (set_breakpoint_count): Adjust.
7822 (rbreak_start_breakpoint_count): New.
7823 (start_rbreak_breakpoints): Adjust.
7824 (end_rbreak_breakpoints): Adjust.
7825 (struct commands_info) <arg>: New field.
7826 (do_map_commands_command): Tweak output to include breakpoint spec
7828 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7829 ARG was empty on entry. Set INFO's arg.
7830 (create_breakpoint): Adjust.
7832 * NEWS: Clarify `commands' changes.
7834 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7836 * tracepoint.c: Include stack.h.
7837 (struct add_local_symbols_data): New.
7838 (do_collect_symbol): New.
7839 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7840 iterate_over_block_local_vars.
7841 * stack.c (print_block_frame_locals): Rewrite as ...
7842 (iterate_over_block_locals): ... this. Take a callback function
7843 pointer and generic data pointer, and call that instead of
7844 print_variable_and_value.
7845 (struct print_variable_and_value_data): New.
7846 (do_print_variable_and_value): New.
7847 (iterate_over_block_local_vars): New, abstracted out from
7848 print_frame_local_vars.
7849 (print_frame_local_vars): Rewrite using
7850 iterate_over_block_local_vars.
7851 (iterate_over_block_arg_vars): New, abstracted out from
7852 print_frame_arg_vars.
7853 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7854 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7855 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7857 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
7859 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
7860 instructions. Use the PC+4 if the base of the TBB or TBH is the
7863 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7865 Fix crash on reading wrong function declaration DWARF.
7866 * dwarf2read.c (read_subroutine_type): New variable void_type.
7867 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7868 more close to their use.
7870 2010-03-31 Stan Shebs <stan@codesourcery.com>
7872 * breakpoint.c (tracepoint_save_command): Include variables,
7873 conditionals, tracepoint types, and default-collect.
7874 * tracepoint.c (save_trace_state_variables): New function.
7875 * tracepoint.h (save_trace_state_variables): Declare it.
7877 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
7879 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
7881 2010-03-30 Keith Seitz <keiths@redhat.com>
7883 * c-typeprint.c (c_type_print_args): Don't print "void"
7884 for java, regardless of whether it is TYPE_PROTOTYPED.
7885 Use the passed-in language instead of current_language.
7886 (c_type_print_varspec_suffix): Use current_language instead
7887 of assuming language_c.
7888 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7889 any return type specifier from the physname.
7891 2010-03-30 Pedro Alves <pedro@codesourcery.com>
7893 * tui/tui-interp.c (tui_is_toplevel): New.
7895 (tui_allowed_p): New.
7896 * tui/tui.c (tui_enable): Check if the TUI is allowed before
7898 * tui/tui.h (tui_allowed_p): Declare.
7900 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
7902 * serial.h: Include winsock2.h before windows.h.
7904 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
7906 * NEWS: Mention xmlRegisters= in qSupported packet.
7908 * i386-tdep.c: Include "remote.h".
7909 (_initialize_i386_tdep): Call register_remote_support_xml.
7911 * remote.c (remote_support_xml): New.
7912 (register_remote_support_xml): Likewise.
7913 (remote_query_supported_append): Likewise.
7914 (remote_query_supported): Support remote_support_xml.
7916 * remote.h (register_remote_support_xml): New.
7918 2010-03-29 Stan Shebs <stan@codesourcery.com>
7920 * tracepoint.c (trace_find_line_command): Remove dead code.
7922 * tracepoint.h (struct uploaded_string): New struct.
7923 (struct uploaded_tp): New fields for source strings.
7924 * breakpoint.c (this_utp, next_cmd): New globals.
7925 (read_uploaded_action): New function.
7926 (create_tracepoint_from_upload): Fill in more parts
7928 * tracepoint.c (encode_source_string): New function.
7929 (trace_save): Write out source strings, fix error checks.
7930 (parse_tracepoint_definition): Add source string parsing.
7931 * remote.c (PACKET_TracepointSource): New packet type.
7932 (remote_download_command_source): New function.
7933 (remote_download_tracepoint): Download source pieces also.
7934 (_initialize_remote): Add packet config command.
7936 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7939 * tracepoint.c (start_tracing): Check tracepoints before sending
7940 commands to target, don't start if all tracepoints disabled.
7942 2010-03-28 Pedro Alves <pedro@codesourcery.com>
7944 * cli/cli-script.c (process_next_line): Handle 'stepping'.
7946 2010-03-26 Stan Shebs <stan@codesourcery.com>
7948 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7950 2010-03-26 Tom Tromey <tromey@redhat.com>
7952 * breakpoint.c (commands_command_1): Duplicate 'arg'.
7954 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7956 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7957 (skip_prologue_sal): Remove local definition.
7958 (resolve_sal_pc): Remove now unnecessary code.
7959 * linespec.c (minsym_found): Call skip_prologue_sal.
7960 * symtab.c (find_function_start_pc): Remove.
7961 (find_function_start_sal): Extract prologue skipping into ...
7962 (skip_prologue_sal): ... this new function. Handle code both
7963 with and without debug info. Respect SAL's explicit_pc and
7964 explicit_line flags. Inline old find_function_start_pc.
7965 * symtab.h (find_function_start_pc): Remove.
7966 (skip_prologue_sal): Add prototype.
7968 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7970 * dwarf2read.c (read_func_scope): Also scan specification DIEs
7971 for DW_TAG_imported_module children.
7973 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7975 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7976 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7977 * completer.c (add_struct_fields): Fix inverted logic.
7979 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7981 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7983 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7985 * tracepoint.c (current_trace_status): Don't make sure error_desc
7987 (parse_trace_status): Release a previous error_desc string, and
7988 set it to NULL by default. If stop reason is tracepoint_error,
7989 make sure error_desc is not left NULL.
7991 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7993 * tracepoint.c (trace_save): Remove X from tracepoint error
7996 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7998 * tracepoint.c (parse_trace_status): Don't allow plain strings in
7999 the terror description. Don't expect an X prefix.
8001 2010-03-25 Stan Shebs <stan@codesourcery.com>
8003 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
8004 (struct trace_status): New field error_desc.
8005 * tracepoint.c (stop_reason_names): Add terror.
8006 (current_trace_status): Ensure non-NULL error description.
8007 (trace_status_command): Add error report.
8008 (trace_status_mi): Ditto.
8009 (trace_save): Add special case for error description.
8010 (parse_trace_status): Add case for errors.
8012 2010-03-25 Keith Seitz <keiths@redhat.com>
8014 * dwarf2read.c (read_subroutine_type): If the compilation unit
8015 language is Java, mark any formal parameter named "this" as
8016 artificial (GCC/43521).
8017 (dwarf2_name): Add special handling for Java constructors.
8019 2010-03-25 Tom Tromey <tromey@redhat.com>
8021 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
8022 * infrun.c (handle_inferior_event): Change initialization of
8024 (handle_inferior_event): Change assignment to stop_stack_dummy.
8025 (normal_stop): Update use of stop_stack_dummy.
8026 (struct inferior_status) <stop_stack_dummy>: Change type.
8027 * inferior.h (stop_stack_dummy): Update.
8028 * infcmd.c (stop_stack_dummy): Change type.
8029 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
8031 (call_function_by_hand): Call set_std_terminate_breakpoint.
8032 Rewrite std::terminate handling.
8033 * breakpoint.h (enum bptype) <bp_std_terminate,
8034 bp_std_terminate_master>: New.
8035 (enum stop_stack_kind): New.
8036 (struct bpstat_what) <call_dummy>: Change type.
8037 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
8039 * breakpoint.c (create_std_terminate_master_breakpoint): New
8041 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
8042 Call create_std_terminate_master_breakpoint.
8043 (print_it_typical): Handle new breakpoint kinds.
8044 (bpstat_stop_status): Handle bp_std_terminate_master.
8045 (bpstat_what): Correctly set call_dummy field. Handle
8046 bp_std_terminate_master and bp_std_terminate.
8047 (print_one_breakpoint_location): Update.
8048 (allocate_bp_location): Update.
8049 (set_std_terminate_breakpoint): New function.
8050 (delete_std_terminate_breakpoint): Likewise.
8051 (create_thread_event_breakpoint): Update.
8052 (delete_command): Update.
8053 (breakpoint_re_set_one): Update.
8054 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
8056 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8058 * symfile.c (build_section_addr_info_from_bfd): New.
8059 (build_section_addr_info_from_objfile): Base it on
8060 build_section_addr_info_from_bfd.
8061 (addrs_section_compar, addrs_section_sort): New.
8062 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
8063 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
8064 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
8066 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
8068 * elfread.c (find_separate_debug_file_by_buildid):
8069 Remove unused local variable.
8071 2010-03-24 Tom Tromey <tromey@redhat.com>
8073 PR breakpoints/9352:
8074 * NEWS: Mention changes to `commands' and `rbreak'.
8075 * symtab.c (do_end_rbreak_breakpoints): New function.
8076 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
8077 end_rbreak_breakpoints.
8078 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
8079 (set_breakpoint_count): Likewise. Clear last_was_multi.
8080 (multi_start, multi_end, last_was_multi): New globals.
8081 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
8083 (struct commands_info): New
8084 (do_map_commands_command): New function.
8085 (commands_command_1): New function.
8086 (commands_command): Use it.
8087 (commands_from_control_command): Likewise.
8088 (do_delete_breakpoint): New function.
8089 (delete_command): Use it.
8090 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
8091 (do_map_disable_breakpoint): New function.
8092 (disable_command): Use it.
8093 (do_map_enable_breakpoint): New function.
8094 (enable_command): Use it.
8095 (enable_once_breakpoint): Add argument.
8096 (enable_once_command): Update.
8097 (enable_delete_breakpoint): Add argument.
8098 (enable_delete_command): Update.
8099 (break_command_really): Set last_was_multi when needed.
8100 (check_tracepoint_command): Fix formatting.
8101 (validate_commands_for_breakpoint): New function.
8102 (breakpoint_set_commands): Use it.
8103 (tracepoint_save_command): Update.
8104 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
8107 2010-03-24 Tom Tromey <tromey@redhat.com>
8109 * breakpoint.h (struct counted_command_line): New struct.
8110 (struct breakpoint) <commands>: Change type.
8111 (struct bpstats) <commands>: Change type.
8112 <commands_left>: New field.
8113 * breakpoint.c (alloc_counted_command_line): New function.
8114 (incref_counted_command_line): Likewise.
8115 (decref_counted_command_line): Likewise.
8116 (do_cleanup_counted_command_line): Likewise.
8117 (make_cleanup_decref_counted_command_line): Likewise.
8118 (breakpoint_set_commands): Use decref_counted_command_line and
8119 alloc_counted_command_line.
8120 (commands_command): Don't error if breakpoint commands are
8122 (commands_from_control_command): Likewise.
8123 (bpstat_free): Update.
8124 (bpstat_copy): Likewise.
8125 (bpstat_clear_actions): Likewise.
8126 (bpstat_do_actions_1): Likewise.
8127 (bpstat_stop_status): Likewise.
8128 (print_one_breakpoint_location): Likewise.
8129 (delete_breakpoint): Likewise.
8130 (bpstat_alloc): Initialize new field.
8131 (tracepoint_save_command): Update.
8132 * tracepoint.c (encode_actions): Update.
8133 (trace_dump_command): Update.
8135 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8137 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
8138 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
8139 (read_structure_type): For RealView, set TYPE_STUB on structures with
8140 no byte size and no children.
8141 (read_subroutine_type): Mark functions as prototyped by default.
8142 * symtab.c (producer_is_realview): New function.
8143 * symtab.h (expand_line_sal): Fix declaration formatting.
8144 (producer_is_realview): Declare.
8146 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8148 * arm-tdep.c (skip_prologue_function): New function.
8149 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
8150 (thumb_analyze_prologue): Document return value. Recognize more
8151 Thumb instructions, skippable calls, and some Thumb-2 instructions.
8153 (arm_skip_prologue): Remove call dummy check. Check the prologue
8154 for non-GNU compilers.
8155 (arm_instruction_changes_pc): New function.
8156 (arm_analyze_prologue): New function, broken out from
8157 arm_scan_prologue. Recognize more ARM instructions and skippable
8158 calls. Update comments. Handle NULL cache. Return the address
8159 of the first unrecognized instruction. Do not skip past other
8160 instructions which change control flow. Add debug output.
8161 (arm_scan_prologue): Use arm_analyze_prologue.
8162 (ARM_PC_32): Delete.
8163 (shifted_reg_val): Simplify ARM_PC_32 check.
8165 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8167 * tracepoint.c (tvariables_info_1): Actually compute
8168 the number of rows in the result.
8170 2010-03-24 Pedro Alves <pedro@codesourcery.com>
8172 * remote.c (crc32): Constify `buf' parameter.
8173 (remote_verify_memory): New, abstracted out from...
8174 (compare_sections_command): ... this. Remove hardcoded target
8176 (init_remote_ops): Install remote_verify_memory.
8177 * target.c (target_verify_memory): New.
8178 * target.h (struct target_ops) <to_verify_memory>: New field.
8179 (target_verify_memory): Declare.
8181 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8183 Implement -trace-save.
8185 * mi-cmds.h (mi_cmds_trace_save): Declare.
8186 * mi-cmds.c (mi_cmds): Register -trace-save.
8187 * mi/mi-main.c (mi_cmd_trace_save): New.
8188 * remote.c (remote_save_trace_data): Take const parameter.
8189 * target.h (struct target_ops::to_save_trace_data): Take
8191 * target.c (update_current_target): Adjust to the above.
8192 * tracepoint.c (trave_save): New, extracted from
8193 (trace_save_command): ...this.
8194 (tfile_trace_find): Remove message that is unnecessary now
8195 that 'tfind' reports found frame.
8196 * tracepoint.h (trace_save): Declare.
8198 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8200 Implement -trace-find.
8202 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
8203 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
8204 * mi/mi-main.c (mi_cmd_trace_find): New.
8205 * target.h (struct target_ops): Document to_trace_find.
8206 * tracepoint.h (tfind_1): Declare.
8207 * tracepoint.c (finish_tfind_command): Rename to...
8209 * remote.c (remote_trace_find): Return -1 if target say
8210 there's no frame. Improve error diagnostics.
8212 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8214 -trace-define-variable and -trace-list-variables.
8216 * tracepoint.c (create_trace_state_variable): Make
8217 private copy of name, as opposed to assuming the
8218 pointer lives forever.
8219 (tvariables_info_1): New.
8220 (tvariables_info): Use the above.
8221 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
8223 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
8224 and -trace-list-variables.
8225 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
8226 (mi_cmd_trace_list_variables): New.
8227 * mi/mi-main.c (mi_cmd_trace_define_variable)
8228 (mi_cmd_trace_list_variables): New.
8230 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8232 Implement -break-passcount.
8234 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
8235 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
8236 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
8238 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8240 -trace-start/-trace-end/-trace-status.
8242 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
8244 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
8245 (mi_cmd_trace_stop): Declare.
8246 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
8247 (mi_cmd_trace_stop): New.
8248 * tracepoint.c (start_tracing): New, extracted from...
8249 (trace_start_command): ...this.
8250 (trace_status_mi): New.
8251 * tracepoint.h (struct trace_status): Document
8252 stopping_tracepoint.
8253 (start_tracing, stop_tracing, trace_status_mi): Declare.
8255 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8257 Implement creating tracepoints with -break-insert.
8259 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
8260 to mean that tracepoint should be created.
8262 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8264 * breakpoint.c (check_no_tracepoint_commands): Use
8265 current spelling of 'teval'.
8267 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8269 Unify actions and commands
8271 * defs.h (read_command_lines, read_command_lines_1): New
8272 parameters validator and closure.
8273 * tracepoint.h (struct action_line): Remove.
8274 * breakpoint.h (struct breakpoint): Remove the 'actions'
8276 * defs.h (enum command_control_type): New value
8277 while_stepping_control.
8278 (struct command_line): Add comments.
8279 * breakpoint.c (breakoint_is_tracepoint): New.
8280 (breakpoint_set_commands): For tracepoints,
8281 verify the commands are permissible.
8282 (check_tracepoint_commands): New.
8283 (commands_command): Require that each new line is validated using
8284 check_tracepoint_command, if we set commands for a tracepoint.
8285 (create_tracepoint_from_upload): Likewise.
8286 (print_one_breakpoint_location): Remove the code to print
8287 actions specifically.
8288 (tracepoint_save_command): Relay to print_command_lines.
8289 * cli/cli-script.c (process_next_line): New parameters validator
8290 and closure. Handle 'while-stepping'. Call validator if not null.
8291 (read_command_lines, read_command_lines1): Likewise.
8292 (recurse_read_control_structure): New parameters validator and
8293 closure. Handle while_stepping_control.
8294 (print_command_lines): Handle while-stepping.
8295 (get_command_line, define_command, document_command): Adjust.
8296 * remote.c (remote_download_tracepoint): Adjust.
8297 * tracepoint.c (make_cleanup_free_actions, read_actions)
8298 (free_actions, do_free_actions_cleanup): Remove.
8299 (trace_actions_command): Use read_command_lines.
8300 (validate_actionline): Use error in one place.
8301 (encode_actions_1): New, extracted from...
8302 (encode_actions): ...this. Also use cleanups for exception
8304 (trace_dump_command): Adjust.
8305 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
8308 2010-03-23 Mike Frysinger <vapier@gentoo.org>
8310 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
8312 2010-03-22 Stan Shebs <stan@codesourcery.com>
8314 * value.c (value_static_field): Be lazy about the field's value.
8316 2010-03-22 Reid Kleckner <reid@kleckner.net>
8319 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
8321 (disable_breakpoints_in_shlibs): Likewise.
8323 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
8325 * dwarf2read.c (partial_die_parent_scope): Work around buggy
8326 GCC 4.1 debug info generation (GCC PR c++/28460).
8327 (determine_prefix): Likewise.
8329 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
8331 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
8333 * tui/tui-layout.c (extract_display_start_addr): Likewise.
8335 2010-03-19 Stan Shebs <stan@codesourcery.com>
8337 * ax-gdb.c (gen_fetch): Handle bool.
8338 (gen_usual_unary): Ditto.
8340 (gen_equal): New function.
8341 (gen_less): New function.
8342 (gen_expr_binop_rest): Call them, also return integer type from
8346 2010-03-19 Tom Tromey <tromey@redhat.com>
8348 * jv-lang.c (jv_dynamics_objfile_data_key)
8349 (jv_type_objfile_data_key): New globals.
8350 (class_symtab): Move earlier.
8351 (jv_per_objfile_free): New function.
8352 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
8354 Remove ancient #if 1.
8355 (add_class_symbol): Remove redundant declaration.
8356 (java_lookup_class): Use alloc_type, not alloc_type_arch.
8357 (java_link_class_type): Mark as static. Update.
8358 (jv_clear_object_type): New function.
8359 (set_java_object_type): Likewise.
8360 (get_java_object_type): Use set_java_object_type.
8361 (is_object_type): Likewise.
8362 (_initialize_java_language): Register new objfile keys.
8363 (get_java_class_symtab): Add 'gdbarch' parameter.
8364 (add_class_symtab_symbol): Update.
8365 (type_from_class): Update.
8367 2010-03-19 Stan Shebs <stan@codesourcery.com>
8369 * ax-general.c (ax_const_l): Fix a sizing bug.
8371 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8375 2010-03-18 Stan Shebs <stan@codesourcery.com>
8376 Pedro Alves <pedro@codesourcery.com>
8378 * target.h (struct target_ops): New method
8379 to_set_circular_trace_buffer.
8380 (target_set_circular_trace_buffer): New macro.
8381 * target.c (update_current_target): Add
8382 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
8384 * remote.c (remote_set_circular_trace_buffer): New function.
8385 (init_remote_ops): Add it to vector.
8386 * tracepoint.h (struct trace_status): New field traceframes_created,
8387 change buffer_size and buffer_free to int.
8388 * tracepoint.c (circular_trace_buffer): New global.
8389 (start_tracing): Send values of disconnected tracing and circular
8390 trace buffer settings.
8391 (set_circular_trace_buffer): New function.
8392 (parse_trace_state): Handle total space and frames created.
8393 (trace_status_command): Display total space and total frames
8395 (trace_save): Write out new status values.
8396 (parse_trace_status): Set traceframe_count, traceframes_created,
8397 buffer_free and buffer_size to -1 by default.
8398 (_initialize_tracepoint): New setshow for circular-trace-buffer.
8399 * NEWS: Mention the circular trace buffer option.
8401 2010-03-18 Tom Tromey <tromey@redhat.com>
8403 * infcmd.c (finish_command_continuation): Wrap print_return_value
8406 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8408 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
8409 DIE has a name before creating the associated partial symbol.
8410 (read_func_scope): Emit a complaint if the subprogram does not
8411 have a name or when we can't extract the subprogram PC bounds.
8413 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
8415 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
8416 instead of selected frame architecture.
8418 2010-03-18 Pedro Alves <pedro@codesourcery.com>
8420 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
8421 a valid selected thread, and that it is not running.
8422 (advance_command): Ditto.
8423 (finish_command): Ditto.
8425 2010-03-17 Stan Shebs <stan@codesourcery.com>
8427 * ax-gdb.c (require_rvalue): Disallow non-scalars.
8429 * infcall.c: Include tracepoint.h.
8430 (call_function_by_hand): Disallow calls in tfind mode.
8431 * infcmd.c: Include tracepoint.h.
8432 (ensure_not_tfind_mode): New function.
8433 (continue_1): Call it.
8435 (jump_command): Ditto.
8436 (signal_command): Ditto.
8437 (advance_command): Ditto.
8438 (until_command): Ditto.
8439 (finish_command): Ditto.
8440 * tracepoint.h (disconnect_or_stop_tracing): Declare.
8442 * ax-gdb.h (struct axs_value): New field optimized_out.
8443 (gen_trace_for_var): Add gdbarch argument.
8444 * ax-gdb.c (gen_trace_static_fields): New function.
8445 (gen_traced_pop): Call it, add gdbarch argument.
8446 (gen_trace_for_expr): Update call to it.
8447 (gen_trace_for_var): Ditto, and report optimized-out variables.
8448 (gen_struct_ref_recursive): Check for optimized-out value.
8449 (gen_struct_elt_for_reference): Ditto.
8450 (gen_static_field): Pass gdbarch instead of expression, assume
8451 optimization if field not found.
8452 (gen_var_ref): Set the optimized_out flag.
8453 (gen_expr): Error on optimized-out variable.
8454 * tracepoint.c (collect_symbol): Handle struct-valued vars as
8455 expressions, skip optimized-out variables with computed locations.
8456 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
8457 erroring out if location expression missing.
8458 (loclist_tracepoint_var_ref): Don't error out here.
8460 2010-03-17 Tom Tromey <tromey@redhat.com>
8462 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
8463 DWARF data is available.
8465 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
8467 * symfile.c (generic_load): Reset breakpoints after loading.
8469 2010-03-17 Tom Tromey <tromey@redhat.com>
8471 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
8473 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8475 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
8476 create_breakpoint call, adjust the parameters.
8478 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8479 Chandru <chandru@in.ibm.com>
8481 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
8482 * valarith.c (value_subscripted_rvalue): Suppress error if
8483 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
8485 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
8487 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
8489 2010-03-16 Joel Brobecker <brobecker@adacore.com>
8491 * ada-tasks.c (task_command_1): Check that the task ptid is valid
8492 before doing the associated thread switch.
8494 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
8496 * MAINTAINERS: Update my email address.
8498 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
8500 Simplify MI breakpoint setting.
8502 * breakpoint.c (break_command_really): Make nonstatic and
8504 (create_breakpoint): ...this. Rename prior function by this name
8506 (create_breakpoint_sal): ...this.
8507 (create_breakpoints): Rename to...
8508 (create_breakpoints_sal): ...this.
8509 (set_breakpoint): Remove.
8510 * breakpoint.h: Adjust to above changes.
8511 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8513 2010-03-15 Stan Shebs <stan@codesourcery.com>
8515 * ax-gdb.c: Include cp-support.h.
8516 (find_field): Remove.
8517 (gen_primitive_field): New function.
8518 (gen_struct_ref_recursive): New function.
8519 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8521 (gen_static_field): New function.
8522 (gen_struct_elt_for_reference): New.
8523 (gen_namespace_elt): New.
8524 (gen_maybe_namespace_elt): New.
8525 (gen_aggregate_elt_ref): New.
8526 (gen_expr): Add OP_SCOPE, display opcode name in error message.
8528 2010-03-15 Tom Tromey <tromey@redhat.com>
8530 * dwarf2read.c (die_needs_namespace): Also return 0 for
8533 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
8536 * cp-support.h: Added char *declaration element to using_direct
8538 (cp_add_using): Added char *declaration argument.
8539 (cp_add_using_directive): Ditto.
8540 (cp_lookup_symbol_imports): made extern.
8541 * cp-namespace.c: Updated with the above changes.
8542 * dwarf2read.c (read_import_statement): Ditto.
8543 (read_namespace): Ditto.
8544 (read_import_statement): Support import declarations.
8545 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8547 Added support for 'declaration_only' search.
8548 (cp_lookup_symbol_namespace): Attempt to search for the name as
8549 is before consideration of imports.
8550 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8551 search at every block level search.
8552 Now takes language argument.
8553 (lookup_symbol_aux): Updated.
8555 2010-03-15 Tom Tromey <tromey@redhat.com>
8557 * c-exp.y (name_not_typename): Add 'operator' clause.
8559 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
8561 * configure.ac: Exit if ${gdb_target_obs}" is not set.
8562 * configure: Regenerate.
8564 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8566 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8567 and ".sdynbss". Update the comment.
8569 2010-03-15 Jie Zhang <jie@codesourcery.com>
8571 * MAINTAINERS: Update my email address.
8573 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8575 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8577 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8579 * charset.c [USE_WIN32API]: Include <windows.h>.
8580 (_initialize_charset): Correct type of w32_host_default_charset.
8582 2010-03-14 Pedro Alves <pedro@codesourcery.com>
8584 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8586 2010-03-12 Tom Tromey <tromey@redhat.com>
8589 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8590 in a lexical block does not need a namespace.
8591 (new_symbol) <DW_TAG_variable>: Put extern variables on
8592 list_in_scope in all cases.
8594 2010-03-12 Stan Shebs <stan@codesourcery.com>
8596 * ax-gdb.c (gen_expr): Add shift expressions.
8597 (gen_expr_binop_rest): Ditto.
8599 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
8601 * buildsym.c (finish_block): Reset using_directives pointer
8602 after block initialization.
8604 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
8606 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8607 * i386-tdep.c (i386_word_names): Likewise.
8609 2010-03-12 Pedro Alves <pedro@codesourcery.com>
8611 * target.c (memory_xfer_partial): Don't use the stack cache if
8612 inspecting trace frames.
8613 * tracepoint.c (finish_tfind_command): Invalidate the target
8616 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8618 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8619 for the PIC displacement, print also the displacement value.
8620 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
8622 2010-03-10 Kevin Buettner <kevinb@redhat.com>
8624 * remote-mips.c (close_ports, mips_initialize_cleanups)
8625 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8626 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8627 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8628 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8629 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8630 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8631 comments describing each of these functions.
8632 (mips_enter_debug, mips_exit_debug, common_open)
8633 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8634 blank line after the comment describing the function.
8636 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8638 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8639 parameter displacementp. Update comment.
8640 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8641 element exists. Return if svr4_exec_displacement was not successful.
8644 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8645 Daniel Jacobowitz <dan@codesourcery.com>
8647 * solib-svr4.c (read_program_header): Support type == -1 to read
8648 all program headers.
8649 (read_program_headers_from_bfd): New function.
8650 (svr4_static_exec_displacement): Remove and move the comment ...
8651 (svr4_exec_displacement): ... here. Remove variable found. New
8652 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8653 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8654 targets using read_program_headers_from_bfd. Remove the call of
8655 svr4_static_exec_displacement.
8657 2010-03-10 Tom Tromey <tromey@redhat.com>
8659 * dwarf2read.c (struct pubnames_header): Remove.
8660 (_PUBNAMES_HEADER): Remove.
8661 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8662 (struct aranges_header): Remove.
8663 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8664 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8665 (PUBNAMES_SECTION): Remove.
8666 (ARANGES_SECTION): Remove.
8667 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8668 (dwarf2_build_psymtabs): Remove dead code.
8669 (dwarf2_build_psymtabs_easy): Remove.
8671 2010-03-10 Tom Tromey <tromey@redhat.com>
8673 * elfread.c (elf_symfile_read): Don't call
8674 dwarf2_build_frame_info.
8675 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8676 (struct dwarf2_per_objfile) <objfile>: New field.
8677 (dwarf2_has_info): Now idempotent. Set objfile field.
8678 (dwarf2_read_section): Check and set readin field. Call
8680 (dwarf2_build_psymtabs): Don't read all sections.
8681 (read_type_comp_unit_head): Read types section.
8682 (create_debug_types_hash_table): Likewise.
8683 (init_cu_die_reader): Add asserts.
8684 (process_type_comp_unit): Add assert.
8685 (dwarf2_build_psymtabs_hard): Read info section.
8686 (load_partial_comp_unit): Add assert.
8687 (create_all_comp_units): Read info section.
8688 (load_full_comp_unit): Likewise.
8689 (dwarf2_ranges_read): Read ranges section.
8690 (dwarf2_record_block_ranges): Add assert.
8691 (dwarf2_read_abbrevs): Read abbrev section.
8692 (read_indirect_string): Read str section.
8693 (dwarf_decode_line_header): Read line section.
8694 (read_signatured_type_at_offset): Read types section.
8695 (dwarf_decode_macros): Read macinfo section.
8696 (dwarf2_symbol_mark_computed): Read loc section.
8697 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8698 dwarf2_build_frame_info.
8699 (dwarf2_build_frame_info): Unconditionally set
8700 dwarf2_frame_objfile_data on the objfile.
8701 * configure.ac: Check for posix_madvise.
8702 * config.in, configure: Rebuild.
8704 2010-03-10 Tom Tromey <tromey@redhat.com>
8706 * xcoffread.c (xcoff_start_psymtab): Update.
8707 (xcoff_end_psymtab): Update.
8708 * psymtab.c (allocate_psymtab): Remove dead code.
8709 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8711 * mdebugread.c (parse_partial_symbols): Update.
8712 (new_psymtab): Likewise.
8713 * dwarf2read.c (process_psymtab_comp_unit): Update.
8714 (psymtab_to_symtab_1): Update.
8715 * dbxread.c (start_psymtab): Update.
8716 (end_psymtab): Likewise.
8718 2010-03-10 Tom Tromey <tromey@redhat.com>
8720 * xcoffread.c: Include psymtab.h.
8721 (xcoff_sym_fns): Update.
8722 * symtab.h (struct partial_symbol): Remove.
8723 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8724 (struct partial_symtab): Remove.
8725 (PSYMTAB_TO_SYMTAB): Remove.
8726 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8727 (find_pc_sect_psymtab): Remove.
8728 (find_pc_sect_symtab_via_partial): Declare.
8729 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8730 (find_main_psymtab): Remove.
8731 (find_main_filename): Declare.
8732 (fixup_psymbol_section): Remove.
8733 (fixup_section): Declare.
8734 * symtab.c: Include psymtab.h.
8735 (lookup_symtab): Use lookup_symtab method.
8736 (lookup_partial_symtab): Remove.
8737 (find_pc_sect_psymtab_closer): Remove.
8738 (find_pc_sect_psymtab): Remove.
8739 (find_pc_sect_symtab_via_partial): New function.
8740 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8741 (fixup_section): No longer static.
8742 (fixup_psymbol_section): Remove.
8743 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8744 (lookup_global_symbol_from_objfile): Likewise.
8745 (lookup_symbol_aux_psymtabs): Remove.
8746 (lookup_symbol_aux_quick): New function.
8747 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8748 (lookup_partial_symbol): Remove.
8749 (basic_lookup_transparent_type_quick): New function.
8750 (basic_lookup_transparent_type): Use it.
8751 (find_main_psymtab): Remove.
8752 (find_main_filename): New function.
8753 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8754 (find_line_symtab): Use expand_symtabs_with_filename method.
8755 (output_partial_symbol_filename): New function.
8756 (sources_info): Use map_partial_symbol_filenames.
8757 (struct search_symbols_data): New type.
8758 (search_symbols_file_matches): New function.
8759 (search_symbols_name_matches): Likewise.
8760 (search_symbols): Use expand_symtabs_matching method.
8761 (struct add_name_data): Rename from add_macro_name_data.
8762 (add_macro_name): Update.
8763 (add_partial_symbol_name): New function.
8764 (default_make_symbol_completion_list): Use
8765 map_partial_symbol_names.
8766 (struct add_partial_symbol_name): New type.
8767 (maybe_add_partial_symtab_filename): New function.
8768 (make_source_files_completion_list): Use
8769 map_partial_symbol_filenames.
8770 (expand_line_sal): Use expand_symtabs_with_filename method.
8771 * symmisc.c: Include psymtab.h.
8772 (print_objfile_statistics): Use print_stats method.
8773 (dump_objfile): Use dump method.
8774 (dump_psymtab, maintenance_print_psymbols)
8775 (maintenance_info_psymtabs, maintenance_check_symtabs)
8776 (extend_psymbol_list): Remove.
8777 * symfile.h (struct quick_symbol_functions): New struct.
8778 (struct sym_fns) <qf>: New field.
8779 (sort_pst_symbols): Remove.
8780 (increment_reading_symtab): Declare.
8781 * symfile.c: Include psymtab.h.
8782 (compare_psymbols, sort_pst_symbols): Remove.
8783 (psymtab_to_symtab): Remove.
8784 (increment_reading_symtab): New function.
8785 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8787 (set_initial_language): Use find_main_filename.
8788 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8789 (free_named_symtabs): Remove unused code.
8790 (start_psymtab_common, add_psymbol_to_bcache)
8791 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8793 * stack.c: Include psymtab.h, symfile.h.
8794 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8795 * source.h (psymtab_to_fullname): Don't declare.
8796 * source.c: Include psymtab.h.
8797 (select_source_symtab): Use find_last_source_symtab method.
8798 (forget_cached_source_info): Use forget_cached_source_info
8800 (find_and_open_source): No longer static.
8801 (psymtab_to_fullname): Remove.
8802 * somread.c: Include psymtab.h.
8803 (som_sym_fns): Update.
8804 * psympriv.h: New file.
8805 * psymtab.h: New file.
8806 * psymtab.c: New file.
8807 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8808 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8809 * objfiles.c: Include psymtab.h.
8810 (objfile_relocate1): Use relocate method.
8811 (objfile_has_partial_symbols): Use has_symbols method.
8812 * mipsread.c: Include psymtab.h.
8813 (ecoff_sym_fns): Update.
8814 * mi/mi-cmd-file.c: Include psymtab.h.
8815 (print_partial_file_name): New function.
8816 (mi_cmd_file_list_exec_source_files): Use
8817 map_partial_symbol_filenames.
8818 * mdebugread.c: Include psympriv.h.
8819 * machoread.c: Include psympriv.h.
8820 (macho_sym_fns): Update.
8821 * m2-exp.y (yylex): Use lookup_symtab.
8822 * elfread.c: Include psympriv.h.
8823 (elf_sym_fns): Update.
8824 * dwarf2read.c: Include psympriv.h.
8825 * dbxread.c: Include psympriv.h.
8826 (aout_sym_fns): Update.
8827 * cp-support.c: Include psymtab.h.
8828 (read_in_psymtabs): Remove.
8829 (make_symbol_overload_list_qualified): Use
8830 expand_symtabs_for_function method.
8831 * coffread.c: Include psympriv.h.
8832 (coff_sym_fns): Update.
8833 * blockframe.c: Include psymtab.h.
8834 (find_pc_partial_function): Use find_pc_sect_symtab method.
8835 * ada-lang.h (ada_update_initial_language): Update.
8836 * ada-lang.c: Include psymtab.h.
8837 (ada_update_initial_language): Remove 'main_pst' argument.
8838 (ada_lookup_partial_symbol): Remove.
8839 (struct ada_psym_data): New type.
8840 (ada_add_psyms): New function.
8841 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8842 (struct add_partial_datum): New type.
8843 (ada_add_partial_symbol_completions): New function.
8844 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8845 (ada_exception_support_info_sniffer): Update.
8846 * Makefile.in (SFILES): Add psymtab.c.
8847 (COMMON_OBS): Add psymtab.o.
8848 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8850 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8852 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8854 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8857 * cp-namespace.c (cp_add_using): Deleted.
8858 (cp_add_using_directive): Use obstack allocations.
8859 Merged the function cp_add_using into this one.
8860 Added 'struct obstack *' argument.
8861 (cp_scan_for_anonymous_namespaces): Updated.
8862 * cp-support.h: Updated.
8863 * dwarf2read.c (read_import_statement): Updated.
8864 (read_namespace): Updated.
8866 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8868 * windows-nat.c (cygwin_conv_path): Remove old macro.
8870 2010-03-10 Pedro Alves <pedro@codesourcery.com>
8872 * breakpoint.c (condition_command): Handle watchpoint conditions.
8873 (is_hardware_watchpoint): Add comment.
8874 (is_watchpoint): New.
8875 (update_watchpoint): Don't reparse the watchpoint's condition
8878 (watchpoint_check): Use it.
8879 (bpstat_check_watchpoint): Handle it.
8880 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8881 conditions in a frame where it makes sense.
8882 (watch_command_1): Store the innermost block of the condition
8884 (delete_breakpoint): Delete the watchpoint condition expression.
8885 * breakpoint.h (struct bp_location) <cond>: Update comment.
8886 (struct breakpoint): New field `cond_exp_valid_block'.
8888 2010-03-09 Joel Brobecker <brobecker@adacore.com>
8890 Adjust handling of Ada DIEs after dwarf2_physname patch.
8891 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8893 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
8894 Pierre Muller <muller@ics.u-strasbg.fr>
8896 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8897 from/to posix/win32.
8898 (windows_make_so): Use non-Cygwin 1.7 specific function.
8899 (windows_create_inferior): Make sure that cygallargs points to
8900 original args in non Cygwin 1.7. case.
8902 2010-03-09 Michael Snyder <msnyder@vmware.com>
8904 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8905 after target_read_memory to get host byte order.
8906 (i386_process_record): Ditto.
8908 2010-03-09 Keith Seitz <keiths@redhat.com>
8910 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
8911 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8912 print out const or volatile qualifiers, too.
8913 (c_type_print_args): Add parameters show_artificial and language.
8914 Skip artificial parameters when requested.
8915 Use the appropriate language printer.
8916 (c_type_print_varspec): Tell c_type_print_args to skip artificial
8917 parameters and pass language_c.
8918 * dwarf2read.c (die_list): New file global.
8919 (struct partial_die_info): Update comments for name field.
8920 (pdi_needs_namespace): Renamed to ...
8921 (die_needs_namespace): ... this. Rewrite.
8922 (dwarf2_linkage_name): Remove.
8923 (add_partial_symbol): Do not predicate the call to
8924 partial_die_full_name based on pdi_needs_namespace.
8925 Remove call to cp_check_possible_namespace_symbols and associated
8927 (guess_structure_name): Do not inspect child subprogram DIEs.
8928 (dwarf2_fullname): Update comments.
8929 Use die_needs_namespace to assist in computing the name.
8930 (read_func_scope): Use dwarf2_name to get the DIE's name.
8931 Use dwarf2_physname to get the "linkage name" of the DIE.
8932 (dwarf2_add_member_field): Use dwarf2_physname instead of
8933 dwarf2_linkage_name.
8934 (read_structure_type): For structs and classes, set TYPE_NAME, too.
8935 (determine_class): Remove.
8936 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8938 (new_symbol): Unconditionally call dwarf2_name.
8939 Compute the "linkage name" using dwarf2_physname.
8940 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8941 When determining to scan for anonymous C++ namespaces, ignore
8943 (dwarf2_physname): New function.
8944 (dwarf2_full_name): Move content to new function and call
8946 (dwarf2_compute_name): "New" function.
8947 (_initialize_dwarf2_read): Initialize die_list.
8948 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8950 (gnu_v3_print_method_ptr): Use the physname for virtual methods
8951 without a demangled name.
8952 Print out type information for non-virtual methods.
8953 * linespec.c (decode_line_1): Force ANY string using "::" (or
8954 "." for java) to use decode_compound, and clean up any stray quoting.
8955 If we found a file symtab, re-evaluate whether the remainder is_quoted.
8956 (decode_compound): Stop consuming at an open parenthesis.
8957 Keep template parameters.
8958 Keep any overload information.
8959 Keep keywords like "const".
8960 Remove paren_pointer.
8961 Move is_quoted check from set_flags to here.
8962 Remove #if 0 code from 2000. Ten years is long enough.
8963 (find_method): Before comparing symbol names, canonicalize the string
8965 If a specific overload is requested, find it. Otherwise throw an error.
8966 (find_method_overload_end): New function.
8967 (set_flags): Remove.
8968 (decode_compound): Assume that parentheses are matched.
8970 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8972 * linespec.c (decode_line_1): Keep important keywords like
8973 "const" and "volatile".
8974 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8975 * typeprint.h (c_type_print_args): Add declaration.
8976 * ui-file.c (do_ui_file_obsavestring): New function.
8977 (ui_file_obsavestring): New function.
8978 * ui-file.h (ui_file_obsavestring): Add declaration.
8979 * valops.c (find_overload_match): Resolve the object to
8981 If the object is a data member, search the object for the member
8982 and return with staticp set.
8983 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8984 Do not attempt to extract a function name from non-function types.
8985 If the extracted function name and the original name are the same,
8986 we don't have a C++ method.
8988 From Jan Kratochvil <jan.kratochvil@redhat.com>:
8989 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
8991 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8992 and arguments from symbol lookups.
8993 * ax-gdb.c (gen_expr): Likewise.
8994 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8995 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8996 lookup_possible_namespace_symbol): Likewise.
8997 * cp-support.c (read_in_psymtabs): Likewise.
8998 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8999 * language.h (la_lookup_symbol_nonlocal): Likewise.
9000 * scm-valprint.c (scm_inferior_print): Likewise.
9001 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
9002 * solib-svr.c (elf_lookup_lib): Likewise.
9003 * solib.c (show_auto_solib_add): Likewise.
9004 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
9005 * symmisc.c (maintenance_check_symtabs): Likewise.
9006 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
9007 lookup_symbol_aux_local, lookup_symbol_aux_block,
9008 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
9009 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
9010 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
9011 basic_lookup_transparent_type, find_main_psymtab,
9012 lookup_block_symbol): Likewise.
9013 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
9014 lookup_symbol_global, lookup_symbol_aux_block,
9015 lookup_symbol_partial_symbol, lookup_block_symbol,
9016 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
9018 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
9020 * python/python-internal.h: Include symtab.h.
9022 2010-03-09 Joel Brobecker <brobecker@adacore.com>
9023 Pierre Muller <muller@ics.u-strasbg.fr>
9025 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
9026 * p-valprint.c (pascal_val_print): Remove undeed block and fix
9029 2010-03-08 Tom Tromey <tromey@redhat.com>
9031 * breakpoint.c (breakpoint_1): Add "QUIT".
9033 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
9034 Pedro Alves <pedro@codesourcery.com>
9036 * solib.c (solib_find): Replace extension if
9037 solib_symbols_extension is set in the target gdbarch.
9038 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
9039 solib_symbols_extension to "sym".
9040 * gdbarch.sh (solib_symbols_extension): New variable.
9041 (pstring): New function.
9042 * gdbarch.h, gdbarch.c: Regenerate.
9044 2010-03-08 Tom Tromey <tromey@redhat.com>
9048 * utils.c: Include main.h.
9049 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
9050 (defaulted_query): Use default answer if `batch_flag'.
9051 * main.h (batch_flag): Declare.
9052 * main.c (batch_flag): New global.
9053 (captured_main): Remove 'batch'. Update.
9055 2010-03-08 Kevin Buettner <kevinb@redhat.com>
9057 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
9060 * remote-mips.c (rockhopper_ops): New target_ops struct.
9061 (MON_ROCKHOPPER): New mips_monitor_type.
9062 (read_hex_value): New function.
9063 (mips_request): Send 8-byte values with a 'T' packet. Read the
9064 packet argument as a string and use read_hex_value to parse it.
9065 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
9066 (rockhopper_open): New function.
9067 (mips_wait): Read the PC, FP and SP fields as strings. Use
9068 read_hex_value to parse them and mips_set_register to commit them.
9069 (mips_set_register): New function.
9070 (mips_fetch_registers): Do not cast register value to "unsigned"
9071 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
9072 (mips_store_registers): Use a 'T' packet to set registers when
9073 using MON_ROCKHOPPER.
9074 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
9075 and expect the total to be printed before the entry address.
9076 (_initialize_remote_mips): Initialize and add rockhopper_ops.
9078 2010-03-08 Kevin Buettner <kevinb@redhat.com>
9080 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
9081 Change return value to int. Store value fetched in location
9082 addressed by `val'. Use function's return value as success
9083 or failure indicator. Adjust all callers.
9085 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
9087 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
9089 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9090 Hui Zhu <teawater@gmail.com>
9092 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
9093 tmp_to_stopped_data_address.
9094 (record_open): Reset tmp_to_stopped_by_watchpoint and
9095 tmp_to_stopped_data_address.
9096 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
9097 to_stopped_data_address.
9099 2010-03-08 Hui Zhu <teawater@gmail.com>
9101 * i386-tdep.c (i386_process_record): Initialize regnum.
9103 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9105 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
9106 Do not warn on ".gnu.liblist" and ".gnu.conflict".
9108 2010-03-08 Joel Brobecker <brobecker@adacore.com>
9110 Memory error when reading wrong core file.
9111 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
9112 errors while reading the inferior memory, and return zero if
9113 an exception was raised.
9115 2010-03-07 Michael Snyder <msnyder@vmware.com>
9117 * record.c (record_restore): Rename tmpu8 to rectype.
9119 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
9120 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
9122 (i386_record_push): Rename local tmpulongest to addr.
9124 (i386_process_record): Rename local tmpulongest to addr.
9126 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
9129 Rename local variable tmpu8 to opcode8 and regnum.
9131 2010-03-07 Joel Brobecker <brobecker@adacore.com>
9133 * remote.c (remote_get_ada_task_ptid): New function.
9134 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
9136 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
9138 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
9139 block. Define helper macros to reduce ifdefs in code.
9140 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
9141 size. Call unadorned GetModuleFileNameEx rather than
9142 GetModuleFileNameEx*.
9143 (windows_make_so): Use __PMAX to denote maximum buffer size and
9144 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
9146 (get_image_name): Use __PMAX to denote maximum buffer size.
9147 (handle_load_dll): Likewise.
9148 (windows_pid_to_exec_file): Likewise.
9149 (windows_create_inferior): Add many accommodations for older Cygwin and
9151 (bad_GetModuleFileNameExW): Control inclusion of this function based on
9152 __USEWIDE conditional.
9153 (bad_GetModuleFileNameExA): Likewise.
9154 (_initialize_loadable): Just use real function names without the dyn_
9155 part since they are defined earlier.
9157 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
9158 Tom Tromey <tromey@redhat.com>
9160 * utils.c (host_char_to_target): Add 'gdbarch' argument.
9161 (parse_escape): Likewise.
9162 * python/py-utils.c (unicode_to_target_string): Update.
9163 (unicode_to_target_python_string): Update.
9164 (target_string_to_unicode): Update.
9165 * printcmd.c (printf_command): Update.
9166 * p-exp.y (yylex): Update.
9167 * objc-exp.y (yylex): Update.
9168 * mi/mi-parse.c: Include charset.h.
9169 (mi_parse_escape): New function.
9170 (mi_parse_argv): Use it.
9171 * jv-exp.y (yylex): Update.
9172 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
9174 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
9175 * gdbarch.sh (auto_charset, auto_wide_charset): New.
9176 * gdbarch.c: Rebuild.
9177 * gdbarch.h: Rebuild.
9178 * defs.h (parse_escape): Update.
9179 * cli/cli-setshow.c: Include arch-utils.h.
9180 (do_setshow_command): Update.
9181 * cli/cli-cmds.c (echo_command): Update.
9182 * charset.h (target_charset, target_wide_charset): Update.
9183 * charset.c: Include arch-utils.h.
9184 (target_charset_name): Default to "auto".
9185 (target_wide_charset_name): Likewise.
9186 (show_target_charset_name): Handle "auto".
9187 (show_target_wide_charset_name): Likewise.
9188 (be_le_arch): New global.
9189 (set_be_le_names): Add 'gdbarch' argument.
9190 (validate): Likewise. Don't call set_be_le_names.
9191 (set_charset_sfunc, set_host_charset_sfunc)
9192 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
9194 (target_charset): Add 'gdbarch' argument.
9195 (target_wide_charset): Likewise. Remove 'byte_order' argument.
9196 (auto_target_charset_name): New global.
9197 (default_auto_charset, default_auto_wide_charset): New functions.
9198 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
9199 for target charsets. Copy result of nl_langinfo. Use GetACP if
9201 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
9202 remove 'byte_order' argument. Update.
9203 (classify_type): Likewise.
9204 (c_emit_char): Update.
9205 (c_printchar): Update.
9206 (c_printstr): Update.
9207 (c_get_string): Update.
9208 (evaluate_subexp_c): Update.
9209 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
9211 * python/python.c (gdbpy_target_charset): New function.
9212 (gdbpy_target_wide_charset): Likewise.
9213 (GdbMethods): Update.
9216 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9218 * symfile.c (build_section_addr_info_from_objfile): Do not mask
9219 off high address bits.
9221 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9223 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
9224 address as UnsignedLongLong, not LongLong.
9226 2010-03-05 Kevin Buettner <kevinb@redhat.com>
9227 Pedro Alves <pedro@codesourcery.com>
9229 * remote-mips.c (gdbthread.h): Include.
9230 (remote_mips_ptid): Declare.
9231 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
9232 (common_open): Set inferior_ptid, add it as an inferior, and
9233 as a thread too. Delete FIXME comment regarding start_remote().
9234 (mips_close): Invoke generic_mourn_inferior().
9235 (mips_kill): Make sure that target_mourn_inferior is invoked.
9236 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
9237 it's now invoked from mips_close().
9238 (mips_load): Don't null out inferior_ptid. Don't call
9239 clear_symtab_users().
9240 (mips_thread_alive, mips_pid_to_str): New functions.
9241 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
9242 to_thread_alive and to_pid_to_str operations.
9244 2010-03-04 Tom Tromey <tromey@redhat.com>
9246 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
9247 in DWARF 3 and later.
9248 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
9250 2010-03-04 Keith Seitz <keiths@redhat.com>
9252 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
9253 If the filename portion of the linespec was quoted, recheck the
9254 remainder for additional quoting.
9255 (locate_first_half): Skip over completer chars, too.
9257 2010-03-04 Tom Tromey <tromey@redhat.com>
9259 * printcmd.c (printf_command): Pass dummy argument to
9262 2010-03-04 Doug Evans <dje@google.com>
9264 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
9267 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
9269 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9271 * breakpoint.c (update_watchpoint): Create a sentinel location if
9272 the software watchpoint isn't watching any memory.
9273 (breakpoint_address_bits): Skip dummy software watchpoint locations.
9275 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9277 * utils.c (fputs_maybe_filtered): Check if there's already a top
9278 level interpreter before dereferencing it. If there isn't one,
9279 don't paginate either.
9281 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9283 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
9284 the state right when single stepping.
9285 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
9286 Get the next PC along with the instruction state.
9287 (thumb_get_next_pc): Remove.
9288 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
9290 2010-03-04 Hui Zhu <teawater@gmail.com>
9292 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
9294 2010-03-03 Pedro Alves <pedro@codesourcery.com>
9296 * utils.c (fputs_maybe_filtered): Always disable pagination if the
9297 top level interpreter is MI.
9299 2010-03-03 Stan Shebs <stan@codesourcery.com>
9301 * remote.c (remote_download_tracepoint): Iterate over locations.
9302 * tracepoint.c (validate_actionline): Ditto.
9303 (encode_actions): Add location argument.
9304 (trace_dump_command): Check all locations to see if stepping
9307 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
9308 Eli Zaretskii <eliz@gnu.org>
9310 * NEWS: Add X86 general purpose registers section.
9312 2010-03-03 Tom Tromey <tromey@redhat.com>
9315 * varobj.c (install_new_value): Handle case where new print_value
9318 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
9321 * printcmd.c (printf_command): Print end of format string using
9324 2010-03-02 Tom Tromey <tromey@redhat.com>
9326 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
9327 * defs.h (read_command_lines_1): Add missing 'void'.
9328 * cli/cli-script.c (recurse_read_control_structure): Add missing
9330 (read_next_line): Likewise.
9331 (read_command_lines_1): Likewise.
9333 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9335 * spu-tdep.c (spu_analyze_prologue): Track instruction to
9336 store backchain as part of prologue.
9338 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
9340 * progspace.c (update_address_spaces): Update inferior address spaces
9343 2010-03-02 Doug Evans <dje@google.com>
9345 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
9346 lowpc,highpc args to addrmap_set_empty.
9348 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
9350 * amd64-tdep.c (amd64_byte_names): New.
9351 (amd64_word_names): Likewise.
9352 (amd64_dword_names): Likewise.
9353 (amd64_pseudo_register_name): Likewise.
9354 (amd64_pseudo_register_read): Likewise.
9355 (amd64_pseudo_register_write): Likewise.
9356 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
9357 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
9358 set_gdbarch_pseudo_register_write and
9359 set_tdesc_pseudo_register_name. Don't call
9360 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
9362 * i386-tdep.c (i386_num_mmx_regs): Removed.
9363 (i386_num_pseudo_regs): Likewise.
9364 (i386_byte_names): New.
9365 (i386_word_names): Likewise.
9366 (i386_byte_regnum_p): Likewise.
9367 (i386_word_regnum_p): Likewise.
9368 (i386_mmx_regnum_p): Updated.
9369 (i386_pseudo_register_name): Make it global. Handle byte and
9370 word pseudo-registers.
9371 (i386_pseudo_register_read): Likewise.
9372 (i386_pseudo_register_write): Likewise.
9373 (i386_pseudo_register_type): Handle byte, word and dword
9375 (i386_register_reggroup_p): Don't include pseudo
9376 registers, except for MXX, in any register groups. Don't
9377 include pseudo byte, word, dword registers in general_reggroup.
9378 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
9379 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
9380 pseudo-registers after word pseudo-registers. Call
9381 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
9383 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
9384 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
9386 (i386_byte_regnum_p): New.
9387 (i386_word_regnum_p): Likewise.
9388 (i386_dword_regnum_p): Likewise.
9389 (i386_pseudo_register_name): Likewise.
9390 (i386_pseudo_register_read): Likewise.
9391 (i386_pseudo_register_write): Likewise.
9393 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9395 * target-descriptions.c (tdesc_type): Remove
9396 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9397 (tdesc_predefined_types): Likewise.
9398 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
9399 if flag name is empty.
9400 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
9402 * features/i386/32bit-core.xml: Define i386_eflags.
9403 * features/i386/64bit-core.xml: Likewise.
9405 * features/i386/32bit-sse.xml: Define i386_mxcsr.
9406 * features/i386/64bit-sse.xml: Likewise.
9408 * features/i386/amd64-linux.c: Regenerated.
9409 * features/i386/amd64.c: Likewise.
9410 * features/i386/i386-linux.c: Likewise.
9411 * features/i386/i386.c: Likewise.
9413 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
9415 * gdbtypes.c (append_composite_type_field_raw): New.
9416 (append_composite_type_field_aligned): Use the new function.
9417 * gdbtypes.h (append_composite_type_field_raw): Declare.
9418 * target-descriptions.c (struct tdesc_type_field): Add start and end.
9419 (struct tdesc_type_flag): New type.
9420 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
9421 kind. Add size to u.u. Add u.f for flags.
9422 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
9423 (tdesc_free_type): Likewise.
9424 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
9425 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
9426 (tdesc_add_bitfield, tdesc_add_flag): New.
9427 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
9428 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
9429 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
9430 current_type. Add current_type_size and current_type_is_flags.
9431 (tdesc_start_union): Clear the new fields.
9432 (tdesc_start_struct, tdesc_start_flags): New.
9433 (tdesc_start_field): Handle struct fields, including bitfields.
9434 (field_attributes): Make type optional. Add start and end.
9435 (union_children): Rename to struct_union_children.
9436 (union_attributes): Rename to struct_union_attributes. Add optional
9438 (flags_attributes): New.
9439 (feature_children): Add struct and flags.
9440 * features/gdb-target.dtd: Add flags and struct to features.
9441 Make field type optional. Add field start and end.
9443 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9445 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
9446 (amd64_linux_read_description): Likewise.
9447 (_initialize_amd64_linux_nat): Set to_read_description to
9448 amd64_linux_read_description.
9450 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
9451 (amd64_linux_register_name): Removed.
9452 (amd64_linux_register_type): Likewise.
9453 (amd64_linux_core_read_description): New.
9454 (amd64_linux_init_abi): Set target description to
9455 tdesc_amd64_linux if needed. Support orig_rax in target
9456 description. Don't call set_gdbarch_register_name nor
9457 set_gdbarch_register_type. Call
9458 set_gdbarch_core_read_description.
9459 (_initialize_amd64_linux_tdep): Call
9460 initialize_tdesc_amd64_linux.
9462 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
9464 * amd64-tdep.c: Include "features/i386/amd64.c".
9465 (amd64_register_names): Removed.
9466 (amd64_register_name): Likewise.
9467 (amd64_register_type): Likewise.
9468 (amd64_init_abi): Set num_core_regs and register_names. Set
9469 target description to tdesc_amd64 if needed. Don't call
9470 set_gdbarch_register_name nor set_gdbarch_register_type.
9471 (_initialize_amd64_tdep): New.
9473 * i386-linux-nat.c (i386_linux_read_description): New.
9474 (_initialize_i386_linux_nat): Set to_read_description to
9475 i386_linux_read_description.
9477 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
9478 (i386_linux_register_name): Removed.
9479 (i386_linux_core_read_description): New.
9480 (i386_linux_read_description): Likewise.
9481 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
9482 Set target description to tdesc_i386_linux if needed. Support
9483 orig_eax. Set register_reggroup_p. Call
9484 set_gdbarch_core_read_description.
9485 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
9487 * i386-linux-tdep.h (tdesc_i386_linux): New.
9489 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
9492 * i386-tdep.c: Include "features/i386/i386.c".
9493 (i386_register_names): Make it const.
9494 (i386_mmx_names): Likewise.
9495 (i386_num_register_names): Removed.
9496 (i386_register_name): Likewise.
9497 (i386_eflags_type): Likewise.
9498 (i386_mxcsr_type): Likewise.
9499 (i386_sse_type): Likewise.
9500 (i386_register_type): Likewise.
9501 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9502 (i386_pseudo_register_name): New.
9503 (i386_pseudo_register_type): Likewise.
9504 (i386_mmx_type): Make it static.
9505 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
9506 I387_NUM_REGS. Set num_core_regs and register_names. Don't
9507 call set_gdbarch_register_name nor set_gdbarch_register_type.
9508 Set register_reggroup_p. Set target description to tdesc_i386
9509 if needed. Call set_tdesc_pseudo_register_type,
9510 set_tdesc_pseudo_register_name and tdesc_use_registers.
9511 (_initialize_i386_tdep): Call initialize_tdesc_i386.
9512 initialize_tdesc_x86_64.
9514 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9515 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
9516 register_names, tdesc and register_reggroup_p.
9517 (I386_NUM_FREGS): Removed.
9518 (i386_eflags_type): Likewise.
9519 (i386_mxcsr_type): Likewise.
9520 (i386_mmx_type): Likewise.
9521 (i386_sse_type): Likewise.
9522 (i386_register_name): Likewise.
9523 (i386_regnum): Add I386_MXCSR_REGNUM.
9524 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9526 * i387-tdep.h (I387_NUM_REGS): New.
9528 * regformats/i386/i386-linux.dat: Generated.
9529 * regformats/i386/i386.dat: Likewise.
9530 * regformats/i386/amd64-linux.dat: Likewise.
9531 * regformats/i386/amd64.dat: Likewise.
9533 * regformats/reg-i386-linux.dat: Removed.
9534 * regformats/reg-i386.dat: Likewise.
9535 * regformats/reg-x86-64-linux.dat: Likewise.
9536 * regformats/reg-x86-64.dat: Likewise.
9538 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
9540 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9541 cygwin_conv_path API rather than the deprecated
9542 cygwin_conv_to_full_posix_path.
9544 (GetModuleFileNameExA): Undefine for Cygwin.
9545 (GetModuleFileNameExW): Define for Cygwin.
9546 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9547 Call GetModuleFileNameExW and convert path to POSIX using
9549 (windows_make_so): Always define p. Drop unused variable m.
9550 Don't use Win32 functions to check file existance, rather use
9551 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
9552 Use canonicalize_file_name to get full path.
9553 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9554 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
9555 use correct target buffer size in call to WideCharToMultiByte.
9556 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9557 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9558 (windows_create_inferior): Convert all paths and arguments to wchar_t
9559 and use CreateProcessW on Cygwin.
9560 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9561 (bad_GetModuleFileNameExA): Undefine for Cygwin.
9562 (bad_GetModuleFileNameExW): Define for Cygwin.
9563 (_initialize_loadable): Load GetModuleFileNameExW into
9564 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
9566 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
9569 * python/py-frame.c (frapy_read_var): Add block argument and logic
9570 to cope with user provided blocks.
9572 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9574 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9577 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
9579 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9580 (COMMON_OBS): ... to here since it's used unconditionally.
9581 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9584 2010-02-26 David Daney <ddaney@caviumnetworks.com>
9586 * mips-linux-tdep.c: Update struct sigframe comments.
9587 (SIGFRAME_CODE_OFFSET): Delete macro.
9588 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9590 (mips_linux_n32n64_sigframe_init): Same.
9592 2010-02-26 Kevin Buettner <kevinb@redhat.com>
9594 * remote-mips.c (mips_load): Don't use pseudo-register when
9595 invalidating regcache.
9597 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9599 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9601 2010-02-26 Pedro Alves <pedro@codesourcery.com>
9603 * NEWS: Add "New targets" section, and mention ARM Symbian
9606 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
9608 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9609 add ADDR_SIZE member.
9610 (allocate_piece_closure): Update.
9611 (copy_pieced_value_closure): Likewise.
9612 (dwarf2_evaluate_loc_desc): Likewise.
9613 (read_pieced_value): Use DWARF address size instead of
9614 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9616 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
9617 Tom Tromey <tromey@redhat.com>
9619 * python/py-type.c (typy_lookup_typename): Add in block argument.
9620 If provided restrict lookup to specified blocks.
9621 (gdbpy_lookup_type): Likewise.
9622 (typy_lookup_type): Likewise.
9624 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9629 * arm-symbian-tdep.c: New.
9630 * configure.tgt (arm*-*-symbianelf*): New target.
9631 (*-*-symbianelf*): New OS.
9632 * osabi.c (gdb_osabi_names): Add Symbian.
9633 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9634 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9635 (ALLDEPFILES): Add arm-symbian-tdep.c.
9637 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9639 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9641 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9643 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9645 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
9646 Tom Tromey <tromey@redhat.com>
9647 Thiago Jung Bauermann <bauerman@br.ibm.com>
9649 * python/python.c (_initialize_python): Call
9650 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9651 gdbpy_initialize_blocks.
9652 * python/python-internal.h: Declare struct symbol, block and
9653 symtab_and_line. Declare block_object_type and
9655 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9656 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9657 (symbol_to_symbol_object, block_to_block_object)
9658 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9659 (gdbpy_initialize_blocks ): Declare.
9660 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9661 (frapy_select): Add methods.
9662 (frapy_read_var): Add symbol branch.
9663 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9665 (SUBDIR_PYTHON_SRCS): Likewise.
9666 (py-symbol.o): New rule.
9667 (py-symtab.o): Likewise.
9668 (py-block.o): Likewise.
9669 * python/py-symbol.c: New file.
9670 * python/py-symtab.c: Likewise.
9671 * python/py-block.c: Likewise.
9673 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9677 * inferior.h (prepare_for_detach): Declare.
9678 (struct inferior) <detaching>: New field.
9679 * infrun.c (prepare_for_detach): New.
9680 (handle_inferior_event) <random signal>: Don't stop if detaching.
9681 * target.c (target_detach): Call prepare_for_detach.
9683 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9685 Per-process displaced stepping queue.
9687 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9688 (displaced_step_gdbarch, displaced_step_closure,
9689 (displaced_step_original, displaced_step_copy): Move globals to
9691 (struct displaced_step_inferior_state): ... new structure.
9692 (displaced_step_inferior_states): New global.
9693 (get_displaced_stepping_state, add_displaced_stepping_state)
9694 (remove_displaced_stepping_state, infrun_inferior_exit): New
9696 (displaced_step_clear): Add displaced_step_inferior_state
9697 parameter, and adjust to handle it.
9698 (displaced_step_clear_cleanup): Parameter is now a
9699 displaced_step_inferior_state. Adjust.
9700 (displaced_step_prepare): Adjust.
9701 (displaced_step_fixup, displaced_step_fixup)
9702 (infrun_thread_ptid_changed, resume): Adjust.
9703 (init_wait_for_inferior): Don't call displaced_step_clear.
9704 (infrun_thread_stop_requested): Rewrite.
9705 (_initialize_infrun): Install infrun_inferior_exit as
9706 inferior_exit observer.
9708 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9710 * inferior.h (ptid_match): Declare.
9711 * infrun.c (ptid_match): New.
9712 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9713 (handle_notification): Add debug output.
9714 * linux-nat.c (ptid_match): Delete.
9716 2010-02-24 David S. Miller <davem@davemloft.net>
9718 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9719 * syscalls/sparc-linux.xml: New.
9720 * syscalls/sparc64-linux.xml: New.
9721 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9722 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9723 (sparc32_linux_get_syscall_number): New function.
9724 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9725 syscall number fetcher.
9726 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9727 (sparc64_linux_get_syscall_number): New function.
9728 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9729 syscall number fetcher.
9731 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9735 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9736 * inferior.c (add_inferior_silent): Notify inferior_added
9738 (delete_inferior_1): Notify inferior_removed observer.
9739 (exit_inferior_1): Pass inferior, not pid, to observer.
9740 (inferior_appeared): Likewise.
9741 (add_inferior_with_spaces): New.
9742 (add_inferior_command): Use the above.
9743 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9746 * inflow.c (inflow_inferior_exit): Likewise.
9747 * jit.c (jit_inferior_exit_hook): Likewise.
9749 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9751 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9752 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9753 (report_initial_inferior): New.
9754 (mi_inferior_removed): Register the above. Make sure
9755 inferior_added observer is called on the first inferior.
9756 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9757 inferior number, not pid.
9758 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9760 * mi/mi-main.c (current_context): New.
9761 (proceed_thread_callback): Use typed closure.
9762 Proceed everything if pid is 0. Most implementation split into
9763 (proceed_thread): ... this.
9764 (run_one_inferior): New.
9765 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9766 Adjust for multiexec behaviour.
9767 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9768 (mi_cmd_execute): Handle the 'thread-group' option here.
9769 Do some extra checks.
9770 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9772 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9774 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9776 Make -exec-run a proper MI commands.
9778 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9779 * mi/mi-cmds.c (mi_cmds): Adjust.
9780 * mi/mi-main.c (mi_cmd_exec_run): New.
9782 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9783 Stan Shebs <stan@codesourcery.com>
9785 * tracepoint.h (set_traceframe_number)
9786 (cleanup_restore_current_traceframe): Declare.
9787 * tracepoint.c (set_traceframe_number): New.
9788 (struct current_traceframe_cleanup): New.
9789 (do_restore_current_traceframe_cleanup)
9790 (restore_current_traceframe_cleanup_dtor)
9791 (make_cleanup_restore_current_traceframe): New.
9792 * infrun.c: Include tracepoint.h.
9793 (fetch_inferior_event): Switch out and in of tfind mode.
9795 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9797 * breakpoint.c (breakpoint_init_inferior): Also delete
9798 bp_shlib_event breakpoints.
9799 * solib-frv.c (enable_break): Remove call to
9800 remove_solib_event_breakpoints.
9801 * solib-svr4.c (enable_break): Ditto.
9802 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9803 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9804 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9805 * solib-spu.c (spu_enable_break): Ditto.
9807 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9809 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9811 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9813 * varobj.c (varobj_update): Avoid non-constants in initializers.
9815 2010-02-23 Tom Tromey <tromey@redhat.com>
9817 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9818 handle big-endian values.
9819 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9821 2010-02-22 Pedro Alves <pedro@codesourcery.com>
9826 * breakpoint.c (insert_bp_location): If inserting the read
9827 watchpoint failed, fallback to an access watchpoint.
9828 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9829 if the value changed, if not watching the same memory for writes.
9830 (watchpoint_locations_match): Add comment.
9831 (update_global_location_list): Copy the location's watchpoint type.
9832 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9833 handle read watchpoints here.
9834 (i386_insert_watchpoint): Read watchpoints aren't supported.
9835 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9837 * target.h (target_insert_watchpoint): Update description.
9839 2010-02-19 Tom Tromey <tromey@redhat.com>
9841 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9842 * m2-typeprint.c (m2_print_type): Update.
9843 * gdbtypes.c (recursive_dump_type): Update.
9844 (copy_type_recursive): Update.
9845 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9846 (c_type_print_base): Update.
9847 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9849 (struct cplus_struct_type) <ntemplate_args>: Remove.
9850 <struct template_arg>: Remove.
9851 <is_dynamic>: Move earlier.
9852 (TYPE_TEMPLATE_ARGS): Remove.
9853 (TYPE_NTEMPLATE_ARGS): Remove.
9854 (TYPE_TEMPLATE_ARG): Remove.
9856 2010-02-19 Tom Tromey <tromey@redhat.com>
9858 PR c++/8693, PR c++/9496:
9859 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9860 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9861 write_dollar_variable. Don't try to classify NAME tokens.
9862 (token_and_value): New type.
9863 (token_fifo, popping, name_obstack): New globals.
9864 (classify_name): New function.
9865 (classify_inner_name): Likewise.
9867 (VARIABLE): Now has type sval.
9868 (exp : VARIABLE): Call write_dollar_variable.
9869 (qualified_name): Use TYPENAME, not typebase. Add production for
9870 multiple "::" instances.
9871 (variable): Use name_not_typename.
9872 (qualified_type): Remove.
9875 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9877 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
9878 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
9879 found by bfd_get_section_by_name.
9880 * symfile.h (struct section_addr_info) <sectindex>: New comment.
9882 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9884 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
9885 7.0 section" into "Changes in 7.1".
9887 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9889 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9890 * version.in: Bump version to 7.1.50.20100219-cvs.
9892 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
9894 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9895 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9897 2010-02-17 Tom Tromey <tromey@redhat.com>
9899 * NEWS: Add Python API Improvements section.
9901 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
9903 * NEWS: Correct typo.
9905 2010-02-17 Tom Tromey <tromey@redhat.com>
9907 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9909 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9911 * symfile.c (build_section_addr_info_from_objfile): Include sections
9912 only if they are SEC_ALLOC or SEC_LOAD.
9914 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
9917 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9918 of ULONGEST for address size.
9920 2010-02-17 Tom Tromey <tromey@redhat.com>
9922 * NEWS: Add C++ improvements section.
9924 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
9926 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9927 PyThreadState_Swap): Avoid "statement with no effect" warning.
9929 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9931 * solib-svr4.c (enable_break <target_auxv_search>): New variable
9932 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
9934 2010-02-17 Tristan Gingold <gingold@adacore.com>
9935 Petr Hluzin <petr.hluzin@gmail.com>
9937 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9938 gdb_assert. Fix info->size for SIG prologue.
9940 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9942 * infcmd.c (show_inferior_tty_command): Check for NULL.
9943 Correct output message.
9945 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9947 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9948 FUNCTION contains parentheses. Improve removal of a trailing
9951 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9953 * gcore.c (do_bfd_delete_cleanup): New function.
9954 (gcore_command): Use it. Discard the cleanup after success.
9955 (gcore_copy_callback): Delete dead code.
9957 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9959 * symfile.c (addr_info_make_relative): Always use
9960 find_lowest_section.
9962 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
9964 * NEWS: Added entry for namespace fixes.
9966 2010-02-15 Tom Tromey <tromey@redhat.com>
9968 * dwarf2read.c (guess_structure_name): Allocate name on the
9971 2010-02-15 Tom Tromey <tromey@redhat.com>
9973 * c-typeprint.c (c_type_print_base): Reverse order of test.
9975 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9977 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
9978 initialize it from ELF BFD. Extend the prelink condition by it.
9980 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9982 * defs.h (parse_pid_to_attach): New.
9983 * utils.c (parse_pid_to_attach): New.
9984 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9985 * gnu-nat.c (gnu_attach): Likewise.
9986 * nto-procfs.c (procfs_attach): Likewise.
9987 * procfs.c (procfs_attach): Likewise.
9988 * windows-nat.c (windows_attach): Likewise.
9989 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
9990 * inf-ttrace.c (inf_ttrace_attach): Likewise.
9991 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
9994 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
9996 * MAINTAINERS: Add myself for write after approval privileges.
9998 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10000 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
10003 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10005 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
10006 only if INFO_VERBOSE.
10008 2010-02-12 Tomas Holmberg <th@virtutech.com>
10010 * mi/mi-main.c: Added the --reverse flag to the following MI
10011 commands: exec-continue, exec-finish, exec-next, exec-step,
10012 exec-next-instruction, exec-step-instruction. This is to
10013 support reverse execution over the MI interface to gdb.
10015 2010-02-12 Pedro Alves <pedro@codesourcery.com>
10017 * tracepoint.c (_initialize_tracepoint): Specify that the address
10018 range of `tfind outsize' is exclusive, and that the address range
10019 of `tfind range' is inclusive, in the commands' help strings.
10021 2010-02-12 Joel Brobecker <brobecker@adacore.com>
10023 Spurious "dll not found" error messages on x64-windows.
10024 * windows-nat.c: Add include of complaints.h.
10025 (handle_unload_dll): Change dll-not-found error into a complaint.
10027 2010-02-12 Pedro Alves <pedro@codesourcery.com>
10029 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
10030 bp_tracepoint and bp_fast_tracepoint, not
10031 bp_loc_software_breakpoint.
10032 (update_global_location_list): Tracepoints are never duplicates of
10035 2010-02-12 Pedro Alves <pedro@codesourcery.com>
10037 * breakpoint.c (break_command_really): Change return type to int.
10038 Return false if no breakpoint was created, true otherwise.
10039 (trace_command): Don't set the tracepoint count if no tracepoint
10041 (ftrace_command): Ditto.
10042 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
10043 created in the breakpoints table.
10045 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10046 Ulrich Weigand <uweigand@de.ibm.com>
10048 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
10050 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10052 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
10053 the offset value isn't of integral type.
10055 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10057 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
10060 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10062 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
10063 non-subscriptable types.
10064 * valarith.c (binop_types_user_defined_p): New, abstracted out
10066 (binop_user_defined_p): ... this.
10067 * value.h (binop_types_user_defined_p): Declare.
10069 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10071 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
10072 Merge uploaded TSVs before merging uploaded tracepoints.
10074 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10076 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
10078 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
10080 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
10081 whitespace character after a dot in comment.
10082 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
10084 (list_args_or_locals): For the 'all' (that is
10085 -stack-list-variables) case, always output list of tuples.
10086 Output 'arg' field if variable is argument.
10088 2010-02-10 Tom Tromey <tromey@redhat.com>
10090 * parser-defs.h (parser_debug): Declare.
10091 * parse.c (_initialize_parse): Install "debug parser" set/show
10093 (parser_debug): New global.
10094 (show_parserdebug): New function.
10095 * c-exp.y (c_parse): Set yydebug.
10097 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
10099 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
10100 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10101 (tdesc_predefined_types): Add i387_ext, i386_eflags and
10103 (tdesc_find_type): New.
10104 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
10105 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10107 * target-descriptions.h (tdesc_find_type): New.
10109 2010-02-10 Michael Snyder <msnyder@vmware.com>
10111 * gdb-gdb.py: Comment fix.
10113 2010-02-09 Tristan Gingold <gingold@adacore.com>
10115 * machoread.c (macho_symfile_relocate): New function.
10116 (macho_sym_fns): Use macho_symfile_relocate instead of
10117 default_symfile_relocate.
10118 (macho_oso_data): New type.
10119 (current_oso): New variable.
10120 (macho_add_oso_symfile): Do not compute section_addr_info, but
10121 instead set vma of sections.
10122 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
10123 Set and clear current_oso.
10125 2010-02-09 Joel Brobecker <brobecker@adacore.com>
10127 Wrong type description for tagged type parameter.
10128 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
10129 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
10130 reference to a tagged type.
10132 2010-02-09 Tristan Gingold <gingold@adacore.com>
10134 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
10135 brothers of the parent.
10137 2010-02-08 Tom Tromey <tromey@redhat.com>
10141 * valops.c (search_struct_field): Make 'name' const.
10142 (search_struct_method): Likewise.
10143 (find_method_list): Make 'method' const.
10144 (value_struct_elt): Make 'name' and 'err' const.
10145 (value_find_oload_method_list): Make 'method' const.
10146 (find_overload_match): Make 'name' const.
10147 * eval.c (evaluate_subexp_standard): New locals function,
10149 <OP_FUNCALL>: Handle OP_SCOPE specially.
10151 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10153 * infrun.c (handle_inferior_event): Do not look up regcache
10154 for exited processes.
10156 2010-02-08 Chris Moller <moller@mollerware.com>
10159 * valarith.c (value_ptrdiff): Added a test for a zero type length,
10160 warn if found, and assume length = 1.
10162 2010-02-08 Chris Moller <cmoller@redhat.com>
10165 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
10166 (cp_print_static_field) Fix use of obstacks.
10168 2010-02-08 Pedro Alves <pedro@codesourcery.com>
10170 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
10171 resumed LWPs as resumed.
10172 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
10173 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
10174 of throwing an internal error. If an LWP of a process we're not
10175 waiting for reports a signal, don't force collecting a SIGSTOP,
10176 and if it was breakpoint hit in non-stop mode, cancel it. Don't
10177 go through all LWPs cancelling breakpoints in non-stop mode.
10178 (resume_stopped_resumed_lwps): New.
10179 (linux_nat_wait): Use it.
10181 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
10183 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
10184 i386/amd64 and i386/amd64-linux.
10185 (i386/i386-expedite): New.
10186 (i386/i386-linux-expedite): Likewise.
10187 (i386/amd64-expedite):Likewise.
10188 (i386/amd64-linux-expedite): Likewise.
10189 ($(outdir)/i386/i386-linux.dat): Likewise.
10190 ($(outdir)/i386/amd64.dat): Likewise.
10191 ($(outdir)/i386/amd64-linux.dat): Likewise.
10193 * features/i386/32bit-core.xml: New.
10194 * features/i386/32bit-linux.xml: Likewise.
10195 * features/i386/32bit-sse.xml: Likewise.
10196 * features/i386/64bit-core.xml: Likewise.
10197 * features/i386/64bit-linux.xml: Likewise.
10198 * features/i386/64bit-sse.xml: Likewise.
10199 * features/i386/i386-linux.xml: Likewise.
10200 * features/i386/i386.xml: Likewise.
10201 * features/i386/amd64-linux.xml: Likewise.
10202 * features/i386/amd64.xml: Likewise.
10203 * features/i386/i386-linux.c: Likewise.
10204 * features/i386/i386.c: Likewise.
10205 * features/i386/amd64-linux.c: Likewise.
10206 * features/i386/amd64.c: Likewise.
10208 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
10211 * cp-support.h: Added char* alias element to using_direct data
10213 (cp_add_using): Added char* alias argument.
10214 (cp_add_using_directive): Ditto.
10215 * cp-namespace.c: Updated with the above changes.
10216 (cp_lookup_symbol_imports): Check for aliases.
10217 * dwarf2read.c (read_import_statement): Figure out local alias
10218 for the import and pass it on to cp_add_using.
10219 (read_namespace): Pass alias argument to cp_add_using.
10221 2010-02-05 Hui Zhu <teawater@gmail.com>
10223 * defs.h (gdb_bfd_errmsg): New extern.
10224 * exec.c (exec_file_attach): Change bfd_errmsg to
10226 * utils.c (AMBIGUOUS_MESS1): New macro.
10227 (AMBIGUOUS_MESS2): New macro.
10228 (gdb_bfd_errmsg): New function.
10230 2010-02-04 Doug Evans <dje@google.com>
10232 * solib-svr4.c (enable_break): Add comment.
10234 2010-02-04 Anthony Green <green@moxielogic.com>
10236 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
10239 2010-02-04 Tom Tromey <tromey@redhat.com>
10241 * valops.c (search_struct_field): Account for
10242 value_embedded_offset. Fix check for virtual base past the end of
10243 the object. Use value_copy when making a slice of the value.
10245 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10248 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
10249 only if gdb_stdout is a tty.
10251 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10253 * target-descriptions.c: Include "osabi.h".
10254 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
10257 2010-02-04 Tristan Gingold <gingold@adacore.com>
10259 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
10260 (macho_symtab_read): Adjust calls to macho_add_oso.
10261 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
10262 (macho_symfile_read): Adjust call to macho_oso_symfile.
10263 (macho_new_init): Move this function after declarations.
10264 (macho_symfile_init): Ditto.
10265 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
10266 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
10268 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
10270 Include MI command in remotelog.
10272 * mi/mi-main.c (mi_execute_command): Call target_log_command.
10274 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10276 * remote.c (remote_state): Remove gdbarch.
10277 (init_remote_state): Don't set gdbarch.
10278 (remote_query_supported): Pass target_gdbarch instead of
10279 rs->gdbarch to gdbarch_qsupported.
10281 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10283 * gdbarch.sh: Add qsupported.
10285 * gdbarch.c: Regenerated.
10286 * gdbarch.h: Likewise.
10288 * remote.c (remote_state): Add gdbarch.
10289 (init_remote_state): Set gdbarch.
10290 (remote_query_supported): Support gdbarch_qsupported.
10292 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
10294 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
10295 __FreeBSD_kernel_version.
10297 2010-02-03 Tristan Gingold <gingold@adacore.com>
10299 * symfile.h (struct sym_fns): Add sym_relocate field.
10300 (default_symfile_relocate): New prototype.
10301 (symfile_relocate_debug_section): First argument is now an objfile.
10302 * symfile.c (default_symfile_relocate): Rename from
10303 symfile_relocate_debug_section, first argument is now an objfile.
10304 (symfile_relocate_debug_section): New function.
10305 * coffread.c (coff_sym_fns): Set sym_relocate field.
10306 * somread.c (som_sym_fns): Ditto.
10307 * mipsread.c (ecoff_sym_fns): Ditto.
10308 * machoread.c (macho_sym_fns): Ditto.
10309 * elfread.c (elf_sym_fns): Ditto.
10310 * dwarf2read.c (dwarf2_read_section): Ditto.
10311 * xcoffread.c (xcoff_sym_fns): Ditto.
10312 * dbxread.c (aout_sym_fns): Ditto.
10313 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
10314 (elfstab_build_psymtabs): Ditto.
10316 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10318 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
10320 2010-02-02 Tom Tromey <tromey@redhat.com>
10322 * valops.c (value_cast_structs): Try downcasting using the RTTI
10325 2010-02-02 Tom Tromey <tromey@redhat.com>
10327 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
10328 (gnuv2_baseclass_offset): Now static.
10329 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
10330 * gnu-v2-abi.h: Remove.
10332 2010-02-02 Tom Tromey <tromey@redhat.com>
10334 * m2-typeprint.c (m2_record_fields): Don't use
10335 TYPE_DECLARED_TYPE.
10336 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
10337 (struct main_type) <flag_declared_class>: New field.
10338 (struct cplus_struct_type) <declared_type>: Remove.
10339 <ntemplate_args>: Move earlier.
10340 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
10341 (DECLARED_TYPE_TEMPLATE): Remove.
10342 (TYPE_DECLARED_TYPE): Remove.
10343 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
10344 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
10345 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
10346 TYPE_DECLARED_TYPE.
10348 2010-02-02 Tom Tromey <tromey@redhat.com>
10350 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
10351 * valops.c (search_struct_field): Compute nbases after calling
10353 (check_field): Call CHECK_TYPEDEF.
10354 * cp-valprint.c (cp_print_value): Pass correct address to
10355 baseclass_offset. Fix check for virtual base past the end of the
10356 object. Don't offset address passed to cp_print_value_fields or
10357 apply_val_pretty_printer.
10358 (cp_print_value_fields): Fix call to val_print.
10359 (cp_print_value_fields_rtti): New function.
10360 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
10361 * p-valprint.c (pascal_object_print_value_fields): Fix call to
10363 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
10365 * language.h (struct language_defn) <la_val_print>: Document.
10366 * c-lang.h (cp_print_value_fields_rtti): Declare.
10368 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10371 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10372 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
10373 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10375 2010-02-01 Michael Matz <matz@suse.de>
10376 Daniel Jacobowitz <dan@codesourcery.com>
10378 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
10379 functions use a frame pointer.
10381 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10383 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
10384 by a conditional setting DYN_ADDR. Use DYN_ADDR.
10385 * config/djgpp/fnchange.lst: Add translations for
10386 symbol-without-target_section.exp and symbol-without-target_section.c.
10388 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10390 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
10391 (remote_breakpoint_for_pc): Correct invalid_p check.
10392 * gdbarch.c: Regenerated.
10394 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10396 * arm-tdep.c (arm_find_mapping_symbol): New function, from
10398 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
10399 (extend_buffer_earlier): New function.
10400 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
10401 (arm_adjust_breakpoint_address): New function.
10402 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
10404 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10406 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
10407 (arm_linux_thumb2_le_breakpoint): New constants.
10408 (arm_linux_init_abi): Set thumb2_breakpoint and
10409 thumb2_breakpoint_size.
10410 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
10411 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
10412 Implement support for single stepping through IT blocks if
10413 a 32-bit Thumb breakpoint instruction is available.
10414 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
10415 is available, use it when needed.
10416 (arm_remote_breakpoint_from_pc): New function.
10417 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
10418 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
10419 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
10421 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10423 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
10424 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
10425 * gdbarch.c, gdbarch.h: Regenerated.
10426 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
10427 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
10428 gdbarch_remote_breakpoint_from_pc.
10430 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10432 * infrun.c (prepare_to_proceed): Handle other signals which might
10433 match a breakpoint.
10434 (handle_inferior_event): Move the check for unusual breakpoint
10437 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
10439 amd64 - function returning record with field straddling 2 registers.
10440 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
10441 a record of length <= 16 in which a field straddles the two
10444 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10446 Implement return values on amd64-windows.
10447 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
10448 (amd64_windows_return_value): New function.
10449 (amd64_windows_init_abi): Call set_gdbarch_return_value with
10450 amd64_windows_return_value.
10452 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10454 amd64-windows: 32 bytes allocated on stack by caller for integer
10455 parameter registers.
10456 * i386-tdep.h (struct gdbarch_tdep): Add new field
10457 integer_param_regs_saved_in_caller_frame.
10458 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10459 tdep->integer_param_regs_saved_in_caller_frame to 1.
10460 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
10461 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
10463 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10465 amd64-windows: memory args passed by pointer during function calls.
10466 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
10467 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
10468 where tdep->memory_args_by_pointer is non-zero.
10469 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10470 tdep->memory_args_by_pointer to 1.
10472 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10474 amd64-windows: Integer parameters in function calls.
10475 * i386-tdep.h (enum amd64_reg_class): New, moved here from
10477 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
10478 call_dummy_integer_regs, and classify.
10479 * amd64-tdep.h (amd64_classify): Add declaration.
10480 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
10481 (amd64_reg_class): Delete, moved to i386-tdep.h.
10482 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
10483 Replace call to amd64_classify by call to tdep->classify.
10484 (amd64_push_arguments): Get the list of registers to use for
10485 passing integer parameters from the gdbarch tdep structure,
10486 rather than using a hardcoded one. Replace calls to amd64_classify
10487 by calls to tdep->classify.
10488 (amd64_push_dummy_call): Get the register number used for
10489 the "hidden" argument from tdep->call_dummy_integer_regs.
10490 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
10491 and tdep->call_dummy_integer_regs. Set tdep->classify.
10492 * amd64-windows-tdep.c: Add include of gdbtypes.h.
10493 (amd64_windows_dummy_call_integer_regs): New static global.
10494 (amd64_windows_classify): New function.
10495 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
10496 tdep->call_dummy_integer_regs and tdep->classify.
10498 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10500 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
10501 for the new regcache. All callers updated.
10502 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10503 (get_thread_arch_regcache): Do not set aspace here.
10504 * regcache.h (regcache_xmalloc): Update declaration.
10506 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10507 regcache_xmalloc updated.
10509 2010-01-28 Joel Brobecker <brobecker@adacore.com>
10511 Another -Wunused-function error in procfs.c (sparc-solaris)
10512 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
10513 Only define if SYS_syssgi is defined.
10514 (remove_dbx_link_breakpoint): Delete declaration. Move up.
10515 (dbx_link_addr, insert_dbx_link_bpt_in_file)
10516 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
10519 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
10521 * windows-nat.c (windows_initialization_done): New variable.
10522 (get_windows_debug_event): Issue error when process dies before
10523 completely initializing.
10524 (do_initial_windows_stuff): Set flag to indicate when we are done with
10525 the initial steps of attaching to the child.
10527 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10529 * symtab.h (struct symbol <symtab>): New comment on NULL values.
10531 2010-01-27 Doug Evans <dje@google.com>
10533 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10535 * breakpoint.c (bpstat_stop_status): Delete useless code.
10537 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10539 * printcmd.c (display_uses_solib_p): Remove variable section. Access
10540 objfile via SYMBOL_SYMTAB.
10542 2010-01-26 Tom Tromey <tromey@redhat.com>
10545 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10546 coerce_array on result.
10548 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10550 * cp-namespace.c (cp_lookup_symbol_namespace): Added
10551 search_parent argument.
10552 (cp_add_using): Initialize 'searched' field.
10553 (reset_directive_searched): New function.
10554 * cp-support.h: Add 'searched' field to using_direct struct.
10555 (cp_lookup_symbol_imports): Ditto.
10556 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10557 Perform recursive search.
10558 Implement non parent search.
10559 * valops.c (value_maybe_namespace_elt): Updated.
10561 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10564 * dwarf2read.c (read_lexical_block_scope): Create blocks for
10565 scopes which contain using directives even if they contain no
10567 * symtab.c (lookup_symbol_aux): Pass lowest level block to
10568 la_lookup_symbol_nonlocal.
10569 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10570 cp_lookup_symbol_namespace.
10571 (cp_lookup_symbol_namespace): Perform an import lookup at every
10573 (cp_lookup_symbol_imports): New function.
10574 (cp_lookup_symbol_in_namespace): New function.
10576 2010-01-25 Tom Tromey <tromey@redhat.com>
10579 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10582 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10584 * configure.ac: Only use host_os part when disabling TUI on osf.
10585 Use test to check variables, prefix strings with x.
10586 * configure: Regenerate.
10588 * solib-osf.c (osf_current_sos): Initialize tail.
10590 2010-01-25 gingold <gingold@adacore.com>
10592 * windows-nat.c (windows_continue): Use %x to print thread id.
10593 (get_windows_debug_event): Ditto.
10595 2010-01-22 Tom Tromey <tromey@redhat.com>
10598 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10599 type and arguments. Use smash_to_methodptr_type.
10600 (read_structure_type): Call quirk_gcc_member_function_pointer
10602 * gdbtypes.h (smash_to_methodptr_type): Declare.
10603 * gdbtypes.c (smash_to_methodptr_type): New function.
10604 (lookup_methodptr_type): Use it.
10606 2010-01-21 Tom Tromey <tromey@redhat.com>
10609 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10610 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10611 * glibc-tdep.c (find_minsym_and_objfile): Remove.
10612 (glibc_skip_solib_resolver): Use
10613 lookup_minimal_symbol_and_objfile.
10615 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
10617 * inflow.c (check_syscall): Guard by #if clause for GO32 and
10620 2010-01-20 Tom Tromey <tromey@redhat.com>
10622 PR backtrace/10770:
10623 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10624 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
10625 * dwarf2expr.c (new_dwarf_expr_context): Allocate
10626 dwarf_stack_values, not CORE_ADDRs.
10627 (execute_stack_op): Change DW_OP_div and comparison operators to
10628 use signed operands.
10630 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10632 Per-inferior args and tty and environment.
10634 * infcmd.c (inferior_args): Rename to ...
10635 (inferior_args_scratch): ... this.
10636 (inferior_io_terminal): Rename to ...
10637 (inferior_io_terminal_scratch): ... this.
10638 (inferior_argc, inferior_argv): Remove.
10639 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10640 inside current_inferior().
10641 (set_inferior_tty_command, show_inferior_tty_command): New.
10642 (get_inferior_args, set_inferior_args): Store inside
10643 current_inferior().
10644 (notice_args_set): Likewise and rename to...
10645 (set_args_command): ... this.
10646 (set_inferior_args_vector): Likewise.
10647 (notice_args_read): Rename to...
10648 (show_args_command): ...new.
10649 (tty_command): Remove.
10650 (run_command_1): Don't free old args, as they are freed by
10651 set_inferior_arg now.
10652 (run_no_args_command): Likewise.
10653 (inferior_environ): Remove.
10654 (run_command_1): Use environment of the current inferior.
10655 (environment_info, set_environment_command)
10656 (unset_environment_command, path_info, path_command): Likewise.
10657 (_initialize_infcmd): Adjust for function and variable renames.
10658 Do not init inferior_environ.
10659 * inferior.h (set_inferior_arg): Adjust prototype.
10660 (struct inferior): New fields args, argc, argv, terminal, environment.
10661 (inferior_environ): Remove declaration.
10662 * inferior.c (free_inferior): Free new fields.
10663 (add_inferior_silent): Initialize 'environment' field.
10664 * main.c (captured_main): Set arguments only after the initial
10665 inferior has been created. Set set_inferior_io_terminal,
10667 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10669 (_initialize_mi_cmd_env): Adjust for disappearance of global
10671 * solib.c (solib_find): Use environment of the current inferior.
10673 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10675 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10677 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10679 2010-01-20 Joel Brobecker <brobecker@adacore.com>
10681 Get rid of ada-lang.c:function_name_from_pc.
10682 * ada-lang.c: Add "stack.h" #include.
10683 (function_name_from_pc): Delete.
10684 (is_known_support_routine): Replace call to function_name_from_pc
10685 by call to find_frame_funname.
10686 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10688 2010-01-19 Tom Tromey <tromey@redhat.com>
10691 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10694 2010-01-19 Tom Tromey <tromey@redhat.com>
10696 * top.c (stop_sig, float_handler, do_nothing): Remove.
10698 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10700 * breakpoint.c (watchpoint_check): Check the call
10701 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10702 Extend the comment.
10703 * config/djgpp/fnchange.lst: Add translations for
10704 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10705 watchpoint-cond-gone-stripped.c.
10707 2010-01-19 Tom Tromey <tromey@redhat.com>
10710 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10711 into parent scope, and enumerator into grandparent scope.
10713 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10715 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10717 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10719 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10720 i[34567]86-*-solaris2.1[0-9]*.
10721 * configure.tgt: Likewise.
10723 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10725 * NEWS: Document the source command enhancement allowing it
10726 to load Python scripts. Document the "set/show script-extension"
10729 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10731 Add -Wunused-function to compile flags.
10732 * configure.ac: Add -Wunused-function to build_warnings.
10733 * configure: Regenerate.
10735 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10737 "delete" ada-lex.c:input function, not used.
10738 * ada-lex.l: #define YY_NO_INPUT.
10740 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10742 Delete free_named_symtabs and associated cleanup.
10743 * symfile.h (free_named_symtabs): Delete declaration.
10744 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10745 (cashier_psymtab): Comment function out.
10746 Delete declaration.
10747 (free_named_symtabs): Delete.
10748 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10749 * dbxread.c (end_psymtab): Likewise.
10750 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10751 * exec.c (exec_close_1): Ditto.
10752 * xcoffread.c (xcoff_end_psymtab): Likewise.
10754 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10756 * stack.c (print_block_frame_labels): Comment function out.
10758 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10760 Delete unused or undefined functions.
10761 * breakpoint.c (ep_parse_optional_filename): Delete.
10762 * dcache.c (dcache_write_line): Remove declaration.
10763 * infrun.c (build_infrun): Remove declaration.
10764 * tracepoint.c (tracepoint_save_command): Remove declaration.
10765 * linux-nat.c (init_lwp_list): Delete. No longer used.
10766 * event-loop.c (check_async_signal_handlers): Delete declaration.
10767 * infrun.c (init_execution_control_state): Delete.
10768 (proceed): Update comment to avoid mentioning
10769 init_execution_control_state.
10770 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10771 * ada-lang.c (ada_to_static_fixed_value): Delete.
10772 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10773 * cp-namespace.c (cp_copy_usings): Delete.
10774 * xml-syscall.c (xml_number_of_syscalls): Delete.
10775 * progspace.c (find_program_space_by_num): Delete.
10776 * inflow.c (handle_sigio): Delete declaration.
10777 * hppa-tdep.c (hppa_alignof): Delete.
10778 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10779 (mipsnbsd_core_osabi_sniffer): Delete.
10781 2010-01-18 Tom Tromey <tromey@redhat.com>
10784 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10785 (CONST_CAST): New tokens.
10786 (exp): Add new productions.
10787 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10789 (is_cast_operator): New function.
10790 (yylex): Handle cast operators specially.
10791 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10792 UNOP_REINTERPRET_CAST>: New cases.
10793 * expprint.c (print_subexp_standard): Likewise.
10794 (op_name_standard): Likewise.
10795 (dump_subexp_body_standard): Likewise.
10796 * parse.c (operator_length_standard): Likewise.
10797 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10798 UNOP_REINTERPRET_CAST.
10799 * gdbtypes.c (class_types_same_p): New function.
10800 (is_ancestor): Use it.
10801 (is_public_ancestor): New function.
10802 (is_unique_ancestor_worker): Likewise.
10803 (is_unique_ancestor): Likewise.
10804 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10805 (is_unique_ancestor): Declare.
10806 * valops.c (value_reinterpret_cast): New function.
10807 (dynamic_cast_check_1): Likewise.
10808 (dynamic_cast_check_2): Likewise.
10809 (value_dynamic_cast): Likewise.
10810 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10812 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10814 Fix build failure when building without Python support.
10815 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10818 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10820 Use XVS field type instead of doing a parallel lookup.
10821 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10822 if it is a reference type instead of doing a type lookup using
10823 the XVS field name.
10825 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10827 Trust PAD types instead of using PAD___XVS.
10828 * ada-lang.c (trust_pad_over_xvs): New static variable.
10829 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10830 parallel XVS type, follow the XVS type instead of the PAD type.
10831 (unwrap_value): Make sure that there is no parallel XVE type
10832 before returning the value as is.
10833 (set_ada_list, show_ada_list): New static variables.
10834 (set_ada_command, show_ada_command): New functions.
10835 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10836 Add new "set/show ada trust-PAD-over-XVS" setting.
10838 2010-01-18 Tom Tromey <tromey@redhat.com>
10839 Thiago Jung Bauermann <bauerman@br.ibm.com>
10841 Allow "source" to load python scripts.
10842 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10843 * python/python.c (source_python_script): New function.
10844 * python/python.h (source_python_script): Add declaration.
10845 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10846 (script_ext_off, script_ext_soft, script_ext_strict)
10847 (script_ext_enums, script_ext_mode): New static constants.
10848 (show_script_ext_mode, find_and_open_script): New functions.
10849 (source_script): Enhance to handle Python scripts.
10850 (init_cli_cmds): Add set/show script-extension commands.
10852 2010-01-16 Stan Shebs <stan@codesourcery.com>
10854 * tracepoint.h (struct trace_status): Use unsigned long long
10856 * tracepoint.c (trace_status_command): Fix printf directive.
10857 (trace_save_command): Check fwrite returns, fix printf directive.
10858 (trace_filename): New global.
10859 (tfile_open): Set it, check read returns.
10860 (tfile_close): Free trace_filename.
10861 (tfile_get_traceframe_address): Check read returns.
10862 (tfile_trace_find): Ditto.
10863 (tfile_fetch_registers): Ditto.
10864 (tfile_xfer_partial): Ditto.
10865 (tfile_get_trace_state_variable_value): Ditto.
10867 2010-01-15 Stan Shebs <stan@codesourcery.com>
10869 Add trace file support.
10870 * tracepoint.h (enum trace_stop_reason): New enum.
10871 (struct trace_status): New struct.
10872 (parse_trace_status): Declare.
10873 (struct uploaded_tp): Move here from remote.c,
10874 add fields for actions.
10875 (struct uploaded_tsv): New struct.
10876 * tracepoint.c (tfile_ops): New target vector.
10877 (trace_fd): New global.
10878 (tfile_open): New function.
10879 (tfile_close): New function.
10880 (tfile_files_info): New function.
10881 (tfile_get_trace_status): New function.
10882 (tfile_get_traceframe_address): New function.
10883 (tfile_trace_find): New function.
10884 (tfile_fetch_registers): New function.
10885 (tfile_xfer_partial): New function.
10886 (tfile_get_trace_state_variable_value): New function.
10887 (init_tfile_ops): New function.
10888 (_initialize_tracepoint): Call it, add tfile target.
10889 (trace_status): New global.
10890 (current_trace_status): New function.
10891 (trace_running_p): Remove, change all users to get from
10892 current_trace_status()->running.
10893 (get_trace_status): Remove.
10894 (trace_status_command): Call target_get_trace_status directly,
10895 report more detail including tracing stop reasons.
10896 (trace_find_command): Always allow tfind on a file.
10897 (trace_find_pc_command): Ditto.
10898 (trace_find_tracepoint_command): Ditto.
10899 (trace_find_line_command): Ditto.
10900 (trace_find_range_command): Ditto.
10901 (trace_find_outside_command): Ditto.
10902 (trace_frames_offset, cur_offset): Declare as off_t.
10903 (trace_regblock_size): Rename from reg_size, update users.
10904 (parse_trace_status): New function.
10905 (tfile_interp_line): New function.
10906 (disconnect_or_stop_tracing): Ensure current trace
10907 status before asking what to do.
10908 (stop_reason_names): New global.
10909 (trace_save_command): New command.
10910 (get_uploaded_tp): Move here from remote.c.
10911 (find_matching_tracepoint): Ditto.
10912 (merge_uploaded_tracepoints): New function.
10913 (parse_trace_status): Use stop_reason_names.
10914 (_initialize_tracepoint): Define tsave command.
10915 * target.h (target_ops): New fields to_save_trace_data,
10916 to_upload_tracepoints, to_upload_trace_state_variables,
10917 to_get_raw_trace_data, change to_get_trace_status
10918 to take a pointer to a status struct.
10919 (target_save_trace_data): New macro.
10920 (target_upload_tracepoints): New macro.
10921 (target_upload_trace_state_variables): New macro.
10922 (target_get_raw_trace_data): New macro.
10923 * target.c (update_current_target): Add new methods, change
10924 signature of to_get_trace_status.
10925 * remote.c (hex2bin): Make globally visible.
10927 (remote_download_trace_state_variable): Download name also.
10928 (remote_get_trace_status): Update parameter, use
10929 parse_trace_status.
10930 (remote_save_trace_data): New function.
10931 (remote_upload_tracepoints): New function.
10932 (remote_upload_trace_state_variables): New function.
10933 (remote_get_raw_trace_data): New function.
10934 (remote_start_remote): Use them.
10935 (_initialize_remote_ops): Add operations.
10936 * ax-gdb.c: Include breakpoint.h.
10937 * breakpoint.c (create_tracepoint_from_upload): Use
10938 break_command_really, return tracepoint, warn about unimplemented
10940 * NEWS: Mention trace file addition.
10942 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10944 Fix compilation warning on gcc-3.4.
10945 * exec.c (print_section_info): Move the `displacement' variable
10946 initialization to its declaration.
10948 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10950 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10953 2010-01-15 Eric Botcazou <botcazou@adacore.com>
10955 "info tasks" broken by typedefs in ATCB type definitions.
10956 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10957 ada_check_typedef before retrieving the length of the type for
10960 2010-01-15 Joel Brobecker <brobecker@adacore.com>
10962 Do not use name-based lookup for unconstrained packed arrays.
10963 * ada-lang.c (find_parallel_type_by_descriptive_type):
10964 Limit the fallback to name-based lookups to the case where
10965 the type is a constrained packed array.
10967 2010-01-15 Joel Brobecker <brobecker@adacore.com>
10969 Enhance gdb-gdb.py to handle main_type.type_specific.
10970 * gdb-gdb.py: Print the type-specific part of struct main_type.
10972 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10974 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10975 * configure: Regenerate.
10976 * config.in: Regenerate.
10977 * utils.c: Include sys/resource.h.
10978 (dump_core, can_dump_core): New.
10979 (internal_vproblem): Update the comment. Check can_dump_core while
10980 setting dump_core_p. Replace two abort calls by dump_core calls.
10982 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10983 Eli Zaretskii <eliz@gnu.org>
10985 * NEWS: Document the PIE support.
10987 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10989 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10990 (check_is_pie_binary, _initialize_linux_tdep): Remove.
10992 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10994 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10995 Replace exec_entry_point call by bfd_get_start_address.
10997 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10999 Support Valgrind attachments broken by the PIE support.
11000 * auxv.c: Include gdbcore.h.
11001 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
11002 parameters ops, object and annex. Remove their assertions.
11003 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
11004 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
11005 (memory_xfer_auxv): ... here.
11006 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
11008 * procfs.c (procfs_xfer_partial): Likewise.
11009 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
11010 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
11011 (svr4_solib_create_inferior_hook): Conditionalize the
11012 svr4_relocate_main_executable call.
11014 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11016 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
11017 target_section. Find SECT in current_target_sections, gdb_assert it.
11018 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
11020 * symtab.c (lookup_objfile_from_block): Return the binary file instead
11021 of separate debug info file.
11023 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11025 Support PIEs with no symfile_objfile.
11026 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
11027 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
11029 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11031 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
11033 (svr4_static_exec_displacement): ... a new function.
11034 (svr4_exec_displacement): New function.
11035 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
11036 new_offsets using alloca now. Remove variable old_chain and changed.
11037 Call objfile_relocate unconditionally now.
11039 2010-01-14 Doug Evans <dje@google.com>
11041 * gdbtypes.c (arch_flags_type): Fix comment.
11042 * gdbtypes.h (arch_composite_type): Fix comment.
11044 2009-01-14 Tristan Gingold <gingold@adacore.com>
11046 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
11047 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
11048 to symbol_file_add_from_bfd. Add OSO as separate objfile.
11049 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
11050 macho_add_oso_symfile.
11051 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
11053 2010-01-14 Joel Brobecker <brobecker@adacore.com>
11055 Tru64: Dead threads are never deleted.
11056 * dec-thread.c (dec_thread_ptid_is_alive): New function.
11057 (dec_thread_count_gdb_threads): Fix counter increment.
11058 (dec_thread_add_gdb_thread): Fix *listp increment.
11059 (resync_thread_list): Fix bug in deletion of dead threads that
11060 caused all threads to be deleted, instead of just the dead ones.
11062 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
11066 * python/python-internal.h: Add lazy_string_object_type
11068 (create_lazy_string_object, gdbpy_initialize_lazy_string)
11069 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
11070 * python/py-value.c (valpy_lazy_string): New function.
11071 (convert_value_from_python): Add lazy string conversion.
11072 * python/py-prettyprint.c (pretty_print_one_value): Check if
11073 return is also a lazy string.
11074 (print_string_repr): Add lazy string printing branch.
11075 (print_children): Likewise.
11076 * python/py-lazy-string.c: New file. Implement lazy strings.
11077 * python/python.c (_initialize_python): Call
11078 gdbpy_initialize_lazy_string.
11079 * varobj.c (value_get_print_value): Add lazy string printing
11080 branch. Account for encoding.
11081 * c-lang.c (c_printstr): Account for new encoding argument. If
11082 encoding is NULL, find encoding suited for type, otherwise use
11084 * language.h (language_defn): Add encoding argument.
11085 (LA_PRINT_STRING): Likewise.
11086 * language.c (unk_lang_printstr): Update to reflect new encoding
11087 argument to language_defn.
11088 * ada-lang.h (ada_printstr): Likewise.
11089 * c-lang.h (c_printstr): Likewise.
11090 * p-lang.h (pascal_printstr);
11091 * f-lang.c (f_printstr): Likewise.
11092 * m2-lang.c (m2_printstr): Likewise.
11093 * objc-lang.c (objc_printstr): Likewise.
11094 * p-lang.c (pascal_printstr): Likewise.
11095 * scm-lang.c (scm_printstr): Likewise.
11096 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
11098 * ada-valprint.c (ada_printstr): Likewise.
11099 * f-valprint.c (f_val_print): Likewise
11100 * m2-valprint.c (m2_val_print): Likewise.
11101 * p-valprint.c (pascal_val_print): Likewise.
11102 * expprint.c (print_subexp_standard): Likewise.
11103 * valprint.c (val_print_string): Likewise.
11104 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
11105 (SUBDIR_PYTHON_SRCS): Likewise.
11106 (py-lazy-string.o): New rule.
11108 2010-01-13 Doug Evans <dje@google.com>
11110 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
11111 uninitialized" warning from gcc on local `tree'.
11113 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
11115 Implement core awareness.
11117 * bcache.c (compare_ints): Remove
11118 (print_percentage): Use compare_positive_ints.
11119 * defs.h (compare_positive_ints): Declare.
11120 * linux-nat.h (struct lin_lwp): New field core.
11121 (linux_nat_core_of_thread_1): Declare.
11122 * linux-nat.c (add_lwp): Init the 'core' field.
11123 (linux_nat_wait_1): Record the core.
11124 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
11125 (linux_nat_add_target): Register the above.
11126 * linux-thread-db.c (update_thread_core): New.
11127 (thread_db_find_new_threads): Update core information for
11129 * remote.c (struct private_thread_info): New.
11130 (free_private_thread_info, demand_private_info): New.
11131 (PACKET_qXfer_threads, use_osdata_threads): New.
11132 (struct thread_item, threads_parsing_context
11133 (start_thread, end_thread, thread_attributes)
11134 (thread_children, threads_children, threads_elements): New.
11135 (remote_threads_info): Try qXfer:threads before anything
11137 (remote_protocol_packets): Register qXfer:threads.
11138 (remote_open_1): Init use_osdata_threads.
11139 (struct stop_reply): New field 'core'.
11140 (remote_parse_stop_reply): Parse core number.
11141 (process_stop_reply): Record core number.
11142 (remote_xfer_partial): Handle qXfer:threads.
11143 (remote_core_of_thread): New.
11144 (init_remote_ops): Register remote_core_of_thread.
11145 (_initialize_remote): Register qXfer:read.
11146 * target.c (target_core_of_thread): New
11147 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
11148 (struct target_ops): New field to_core_of_threads.
11149 (target_core_of_thread): Declare.
11150 * gdbthread.h (struct thread_info): New field private_dtor.
11151 * thread.c (print_thread_info): Report the core.
11152 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
11153 * utils.c (compare_positive_ints): New.
11154 * features/threads.dtd: New.
11155 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
11156 * mi/mi-main.c (struct collect_cores_data, collect_cores)
11157 (do_nothing, free_vector_of_osdata_items)
11158 (splay_tree_int_comparator, free_splay_tree): New.
11159 (print_one_inferior_data): Implemented printing of selected
11160 inferiors. Collect and print cores.
11161 (output_cores): New.
11162 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
11163 thread groups together with --available.
11165 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11167 * configure: Regenerate (for _STRUCTURED_PROC).
11169 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11171 Delete dead function.
11172 * ada-lang.c (extract_string): Delete. No longer used.
11174 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11176 Fix -Wunused warning in dec-thread.c.
11177 * dec-thread.c (dec_thread_count_gdb_threads)
11178 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
11180 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11182 * ada-valprint.c (ada_print_floating): Remove trailing space.
11184 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11186 Add support for DW_AT_GNAT_descriptive_type.
11187 * gdbtypes.h (enum type_specific_kind): New enum.
11188 (struct main_type) [type_specific_field]: New component.
11189 [type_specific]: Add new component "gnat_stuff".
11190 (struct gnat_aux_type): New type.
11191 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
11192 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
11193 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
11194 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
11195 (TYPE_SPECIFIC_FIELD): New macros.
11196 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
11197 type does not hold any cplus-specific data.
11198 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
11199 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
11200 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
11201 cplus-specific data.
11202 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
11203 Set new component TYPE_SPECIFIC_FIELD (type).
11204 (gnat_aux_default): New constant.
11205 (allocate_gnat_aux_type): New function.
11206 (init_type): Add initialization the type-specific stuff for
11207 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
11208 (print_gnat_stuff): New function.
11209 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
11210 specific data. Adjust code that prints the contents of the
11211 type-specific union using the TYPE_SPECIFIC_FIELD value.
11212 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
11213 the type cplus stuff for Ada types.
11214 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
11215 Error out if these routines are called with an Ada type.
11216 (read_structure_type, read_array_type, read_subrange_type):
11217 Add call to set_descriptive_type.
11218 (set_die_type): Initialize the gnat-specific data if necessary.
11219 (need_gnat_info, die_descriptive_type, set_descriptive_type):
11221 * ada-lang.c (decode_constrained_packed_array_type): Use
11222 decode_constrained_packed_array_type instead of doing a standard
11223 lookup to locate a parallel type.
11224 (find_parallel_type_by_descriptive_type): New function.
11225 (ada_find_parallel_type_with_name): New function.
11226 (ada_find_parallel_type): Reimplement using
11227 ada_find_parallel_type_with_name.
11228 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
11229 to check if type has a cplus stuff.
11230 * linespec.c (total_number_of_methods): Likewise.
11231 * mdebugread.c (new_type): Likewise.
11233 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11235 * NEWS: Document the 0b binary number prefix parsing.
11237 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11239 * objfiles.c (objfile_relocate1): Change the return type to int.
11240 Describe the new return value. Return non-zero if data changed.
11241 (objfile_relocate): New variable changed. Set it. Call
11242 breakpoint_re_set depending on CHANGED.
11244 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11246 Implement binary numbers parsing.
11247 * c-exp.y (parse_number): New case 'b' and 'B'.
11249 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11250 Tristan Gingold <gingold@adacore.com>
11252 * solib.c (info_sharedlibrary_command): Replace
11253 objfile_has_partial_symbols and objfile_has_full_symbols calls by
11254 objfile_has_symbols.
11256 2010-01-10 Joel Brobecker <brobecker@adacore.com>
11258 * NEWS: Document the improvements made to the mips-irix port.
11260 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11262 Fix the documentation of valprint.c:value_print.
11263 * valprint.c (value_print): Update the function description to
11264 mention that the syntax of the output follows the current_language,
11267 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11269 Fix displacement of separate debug info files.
11270 * objfiles.c (objfile_relocate): Rename to ...
11271 (objfile_relocate1): ... here and make it static. Extend the comment.
11272 (objfile_relocate): New function.
11273 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
11274 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
11275 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
11276 allocated using alloca.
11277 * symfile.c (copy_section_addr_info): Remove.
11278 (build_section_addr_info_from_objfile): Make it global. New variables
11279 addr_bit and mask, use them.
11280 * symfile.h (build_section_addr_info_from_objfile): New prototype.
11281 (copy_section_addr_info): Remove.
11283 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11285 Signal unwinder for mips-irix N32.
11286 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
11288 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
11289 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
11290 (SIGCONTEXT_LO_OFF): New macros.
11291 (mips_irix_n32_tramp_frame_init): New function.
11292 (mips_irix_n32_tramp_frame): New static constant.
11293 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
11295 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11297 Breakpoint in shared library does not work on mips-irix.
11298 * procfs.c: #include "observer.h".
11299 (procfs_inferior_created): New function, moving here the code
11300 which unsets the syssgi syscall-exit notifications.
11301 (procfs_create_inferior): Remove the code which unsets the syssgi
11302 syscall-exit notifications. It is too early to do this here.
11303 (_initialize_procfs): Attach the procfs_inferior_created observer.
11305 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11307 Wrong return convention for arrays (mips-irix).
11308 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
11309 128 bits or smaller are returned the same way as structs
11310 and unions of the the same size.
11312 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11314 Cannot set the PC on mips-irix.
11315 * irix5-nat.c (fill_gregset): Check regno against the raw PC
11316 register number, no the cooked one.
11318 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11320 Error while loading core file on mips-irix.
11321 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
11322 if debugging from a core file.
11324 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11326 GDB hangs when attaching to process on mips-irix.
11327 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
11328 attaching to a process.
11330 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11332 Use the correct breakpoint instruction on mips-irix.
11333 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
11334 containing the correct breakpoint instruction to use on mips-irix.
11335 Use it when the osabi is GDB_OSABI_IRIX.
11337 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11339 -Wunused warning in procfs.c (mips-irix only).
11340 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
11341 throughout instead of using praddset and prdelset respectively.
11343 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11345 GDB crash while stepping into function.
11346 * infrun.c (handle_inferior_event): Refetch the current frame
11347 after handling what.main_action, in case that pointer became
11350 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11352 Fix build failure of solaris-hosted cross debuggers.
11353 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
11355 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
11357 Fix build failure on sparc-solaris.
11358 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
11360 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11362 Move some symfile code into subroutines.
11363 * symfile.h (relative_addr_info_to_section_offsets)
11364 (addr_info_make_relative): New prototypes.
11365 * symfile.c (default_symfile_offsets): Move a part to ...
11366 (relative_addr_info_to_section_offsets): ... this new function.
11367 (default_symfile_offsets): Call it.
11368 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
11370 (addr_info_make_relative): ... this new function.
11372 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11374 Add from_tty to solib_create_inferior_hook.
11375 * infcmd.c (post_create_inferior): Move solib_add after
11376 solib_create_inferior_hook. Pass from_tty to
11377 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
11378 0 from_tty and comment why.
11379 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
11380 * linux-nat.c (linux_child_follow_fork): Likewise.
11381 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
11382 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
11384 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
11385 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
11386 * solib-null.c (null_solib_create_inferior_hook): Likewise.
11387 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
11388 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
11389 * solib-som.c (som_solib_create_inferior_hook): Likewise.
11390 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
11391 Pass it to svr4_so_ops.solib_create_inferior_hook.
11392 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
11394 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
11396 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
11398 * solib-target.c (solib_target_solib_create_inferior_hook): New
11399 parameter from_tty.
11400 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
11401 it to ops->solib_create_inferior_hook.
11402 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
11403 Move solib_add after solib_create_inferior_hook, call it now with
11404 from_tty as 0. New comment there.
11405 * solib.h (solib_create_inferior_hook): New parameter from_tty.
11406 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
11409 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
11411 Fix multiexec race.
11412 * infrun.c (handle_inferior_event): Use get_thread_regcache
11413 with events ptid, not get_current_regcache.
11415 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11417 GDB crash with empty executable name (MinGW).
11418 * source.c (openp): Add assert that parameter string is not NULL.
11419 if parameter string is an empty string, then return with a failure
11422 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11424 Get rid of support for VAX Floats.
11425 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11426 (ada_vax_float_print_function): Delete.
11427 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11428 (ada_vax_float_print_function): Delete.
11429 * ada-typeprint.c (print_vax_floating_point_type): Delete.
11430 (ada_print_type): Remove support for VAX floats.
11431 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
11433 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11435 * stabsread.c (read_args): Handle zero arguments.
11437 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11439 Cannot find in-tree libiconv.a after reconfigure.
11440 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
11441 that we can use, then cache the path to this archive.
11442 * configure: Regenerate.
11444 2010-01-07 Stan Shebs <stan@codesourcery.com>
11446 Make tracepoint operations go through target vector.
11447 * target.h (enum trace_find_type): New enum.
11448 (struct target_ops): New fields to_trace_init,
11449 to_download_tracepoint, to_download_trace_state_variable,
11450 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
11451 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
11452 to_set_disconnected_tracing.
11453 (target_trace_init): New macro.
11454 (target_download_tracepoint): New macro.
11455 (target_download_trace_state_variable): New macro.
11456 (target_trace_start): New macro.
11457 (target_trace_set_readonly_regions): New macro.
11458 (target_get_trace_status): New macro.
11459 (target_trace_stop): New macro.
11460 (target_trace_find): New macro.
11461 (target_get_trace_state_variable_value): New macro.
11462 (target_set_disconnected_tracing): New macro.
11463 * target.c (update_current_target): Inherit and set defaults for
11464 tracepoint operations.
11465 * tracepoint.c (default_collect): Make globally visible.
11466 (target_is_remote): Remove, along with all calls.
11467 (tvariables_info): Call target_get_trace_state_variable_value.
11468 (remote_set_transparent_ranges): Remove.
11469 (trace_start_command): Call target_trace_init,
11470 target_download_tracepoint, etc.
11471 (download_tracepoint): Remove.
11472 (trace_stop_command): Simplify.
11473 (stop_tracing): Call target_trace_stop.
11474 (get_trace_status): Call target_get_trace_status.
11475 (trace_status_command): Add case for targets that cannot trace.
11476 (finish_tfind_command): Change to take numerical arguments, call
11478 (trace_find_command): Update call to finish_tfind_command.
11479 (trace_find_pc_command): Ditto.
11480 (trace_find_tracepoint_command): Ditto.
11481 (trace_find_line_command): Ditto.
11482 (trace_find_range_command): Ditto.
11483 (trace_find_outside_command): Ditto.
11484 (set_disconnected_tracing_value): Call
11485 target_set_disconnected_tracing.
11486 * remote.c: Add protocol encoding bits from tracepoint.c.
11487 (trace_error): Move from tracepoint.c.
11488 (remote_get_noisy_reply): Ditto.
11489 (free_actions_list_cleanup_wrapper): Ditto.
11490 (free_actions_list): Ditto.
11491 (remote_trace_init): New function.
11492 (remote_download_tracepoint): New function.
11493 (remote_download_trace_state_variable): New function.
11494 (remote_trace_set_readonly_regions): New function.
11495 (remote_trace_start): New function.
11496 (remote_get_trace_status): New function.
11497 (remote_trace_stop): New function.
11498 (remote_trace_find): New function.
11499 (remote_download_trace_state_variable): New function.
11500 (remote_set_disconnected_tracing): New function.
11501 (init_remote_ops): Add tracepoint operations.
11503 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11505 2010-01-07 Tristan Gingold <gingold@adacore.com>
11507 * symfile.c (build_section_addr_info_from_objfile): New function.
11508 (symbol_file_add_separate): Don't use offsets from objfile but
11509 built an addr info.
11511 2010-01-06 Stan Shebs <stan@codesourcery.com>
11513 Support disconnected tracing.
11514 * infcmd.c (detach_command): Ask whether to stop tracing.
11515 * cli/cli-cmds.c (quit_command): Ditto.
11516 * breakpoint.h (struct breakpoint): New field number_on_target.
11517 * breakpoint.c (create_tracepoint_from_upload): New function.
11518 (get_tracepoint_by_number_on_target): New function.
11519 * remote.c (struct remote): New field disconnected_tracing.
11520 (remote_disconnected_tracing_feature): New function.
11521 (remote_protocol_features): Add DisconnectedTracing.
11522 (struct uploaded_tp): New struct.
11523 (uploaded_tps): New global.
11524 (get_uploaded_tp): New function.
11525 (find_matching_tracepoint): New function.
11526 (remote_get_tracing_state): New function.
11527 (remote_start_remote): Call it.
11528 * tracepoint.c (disconnected_tracing): New global.
11529 (trace_start_command): Initialize number_on_target.
11530 (stop_tracing): New function, split out from...
11531 (trace_stop_command): Call stop_tracing.
11532 (get_trace_status): New function, split out from...
11533 (trace_status_command): Call get_trace_status, add info on
11534 disconnection behavior.
11535 (disconnect_or_stop_tracing): New function.
11536 (finish_tfind_command): Translate from number on target.
11537 (trace_find_tracepoint_command): Translate to number on target.
11538 (send_disconnected_tracing_value): New function.
11539 (set_disconnected_tracing): New function.
11540 (_initialize_tracepoint): Add disconnected-tracing variable.
11541 * NEWS: Mention disconnected tracing.
11543 2010-01-06 Tristan Gingold <gingold@adacore.com>
11545 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11546 parameter to main_objfile. Iterate on all separate debug objfiles.
11547 * symfile.h (symbol_file_add_separate)
11548 (find_separate_debug_file_by_debuglink): Remove parameter names.
11549 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11550 (reread_symbols): Use free_objfile_separate_debug.
11551 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11553 (objfile_separate_debug_iterate, add_separate_debug_objfile)
11554 (free_objfile_separate_debug): New prototypes.
11555 * objfiles.c (objfile_separate_debug_iterate): New function.
11556 (add_separate_debug_objfile, free_objfile_separate_debug): New
11558 (free_objfile): Use free_objfile_separate_debug. Adjust for
11559 multiple separate debug objfile.
11560 (objfile_has_symbols): Adjust comment. Iterate on all separate
11562 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11564 (lookup_minimal_symbol_text): Ditto.
11565 (lookup_minimal_symbol_by_pc_name): Ditto.
11566 (lookup_minimal_symbol_solib_trampoline): Ditto.
11567 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11570 2010-01-05 Stan Shebs <stan@codesourcery.com>
11572 Add fast tracepoints.
11573 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11574 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11575 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11576 * breakpoint.c (tracepoint_type): New function.
11577 (ALL_TRACEPOINTS): Use it.
11578 (should_be_inserted): Ditto.
11579 (bpstat_check_location): Ditto.
11580 (print_one_breakpoint_location): Ditto.
11581 (user_settable_breakpoint): Ditto.
11582 (set_breakpoint_location_function): Ditto.
11583 (disable_breakpoints_in_shlibs): Ditto.
11584 (delete_trace_command): Ditto.
11585 (print_it_typical): Add bp_fast_tracepoint case.
11586 (bpstat_what): Ditto.
11587 (print_one_breakpoint_location): Ditto.
11588 (allocate_bp_location): Ditto.
11590 (breakpoint_re_set_one): Ditto.
11591 (disable_command): Ditto.
11592 (enable_command): Ditto.
11593 (check_fast_tracepoint_sals): New function.
11594 (break_command_really): Call it.
11595 (ftrace_command): New function.
11596 (_initialize_breakpoint): Add ftrace command.
11597 * gdbarch.sh (fast_tracepoint_valid_at): New.
11598 * gdbarch.h, gdbarch.c: Regenerate.
11599 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11600 (i386_gdbarch_init): Use it.
11601 * remote.c (struct remote_state): New field fast_tracepoints.
11602 (PACKET_FastTracepoints): New packet config type.
11603 (remote_fast_tracepoint_feature): New function.
11604 (remote_protocol_features): Add FastTracepoints.
11605 (remote_supports_fast_tracepoints): New function.
11606 (_initialize_remote): Add FastTracepoints.
11607 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11608 * NEWS: Mention fast tracepoints.
11610 2010-01-06 Joel Brobecker <brobecker@adacore.com>
11612 * gdb-gdb.py: New file.
11614 2010-01-05 Michael Snyder <msnyder@vmware.com>
11616 * infrun.c (handle_inferior_event): Fix typo in comment.
11618 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11620 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11622 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11624 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
11626 (s390-linux32-expedite): Define.
11627 (s390-linux64-expedite): Define.
11628 (s390x-linux64-expedite): Define.
11629 * features/s390-acr.xml: New file.
11630 * features/s390-fpr.xml: New file.
11631 * features/s390-core32.xml: New file.
11632 * features/s390-core64.xml: New file.
11633 * features/s390x-core64.xml: New file.
11634 * features/s390-linux32.xml: New file.
11635 * features/s390-linux64.xml: New file.
11636 * features/s390x-linux64.xml: New file.
11637 * features/s390-linux32.c: New generated file.
11638 * features/s390-linux64.c: New generated file.
11639 * features/s390x-linux64.c: New generated file.
11641 * regformats/s390-linux32.dat: New generated file.
11642 * regformats/s390-linux64.dat: New generated file.
11643 * regformats/s390x-linux64.dat: New generated file.
11644 * regformats/reg-s390.dat: Remove.
11645 * regformats/reg-s390x.dat: Remove.
11647 * s390-nat.c: Include "auxv.h" and <elf.h>.
11648 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11649 (s390_target_wordsize): New function.
11650 (s390_auxv_parse): Likewise.
11651 (s390_get_hwcap): Likewise.
11652 (s390_read_description): Likewise.
11653 (_initialize_s390_nat): Install s390_auxv_parse and
11654 s390_read_description.
11656 * s390-tdep.c: Include "features/s390-linux32.c",
11657 "features/s390-linux64.c", and "features/s390x-linux64.c".
11658 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11659 (s390_register_call_saved): New function.
11660 (s390_register_name): Remove.
11661 (s390_register_type): Remove.
11662 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11663 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11664 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11665 (s390_pseudo_register_name): New function.
11666 (s390_pseudo_register_type): New function.
11667 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11668 Handle full GPR pesudos and varying pseudo register numbers.
11669 (s390_pseudo_register_write): Likewise
11670 (s390x_pseudo_register_read): Remove.
11671 (s390x_pseudo_register_write): Likewise.
11672 (s390_register_group): Remove.
11673 (s390_pseudo_register_group): New function.
11674 (s390_regmap_gregset): Add GPR upper halves.
11675 (s390x_regmap_gregset): Likewise.
11676 (s390_regmap_fpregset): Likewise.
11677 (s390_regmap_upper): New global variable.
11678 (s390_upper_regset): New global variable.
11679 (s390_upper_regset_sections): New global variable.
11680 (s390_regset_from_core_section): Handle GPR upper halves.
11681 (s390_core_read_description): New function.
11682 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11683 register information. Handle varying pseudo register numbers.
11684 (s390_backchain_frame_unwind_cache): Likewise.
11685 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11686 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11687 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11688 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11689 Handle varying pseudo register numbers.
11690 (s390_unwind_pc): Handle varying pseudo register numbers.
11691 (s390_dwarf2_prev_register): New function.
11692 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11693 register information. Handle varying pseudo register numbers.
11694 Install s390_dwarf2_prev_register to unwind full GPRs.
11695 (s390_gdbarch_init): Handle target descriptions. Assign varying
11696 pseudo register numbers. Install s390_adjust_frame_regnum.
11697 (_initialize_s390_tdep): Initialize target descriptions.
11699 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11700 (S390_NUM_REGS): Redefine to include upper half registers.
11701 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11702 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11703 (tdesc_s390_linux32): Add declaration.
11704 (tdesc_s390_linux64): Likewise.
11705 (tdesc_s390x_linux64): Likewise.
11707 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11709 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11710 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11711 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11712 (ppc_linux_vmx_regset_sections): Likewise.
11713 (ppc_linux_fp_regset_sections): Likewise.
11715 * corelow.c (get_core_register_section): Constify arguments.
11716 (get_core_registers): Use gdbarch_core_regset_sections instead
11717 of hard-coded platform-specific register section names.
11719 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11721 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
11722 a register, assume the least-significant part is used.
11723 (write_pieced_value): Likewise.
11725 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11727 * printcmd.c: Include "arch-utils.h".
11728 (do_one_display): Re-parse expression if current architecture changed.
11730 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11731 Joel Brobecker <brobecker@adacore.com>
11733 * gdbtypes.c (check_typedef): New comment on type length.
11734 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11735 comment on type length.
11736 (value_primitive_field): Keep the original TYPE value, new comment.
11738 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11740 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11741 p_start. Change != comparisons to > and < comparisons.
11743 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11745 * cli/cli-script.c (process_next_line): Check P2 overrun.
11747 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11749 Update the copyright hearder to add year 2010 for most GDB files.
11751 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11753 Fix build failure in inf-ptrace.c.
11754 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11756 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11758 * top.c (print_gdb_version): Update copyright year.
11760 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
11762 Fix break *FUN'address thread NUM.
11763 * ada-lex.l (task): Expand rule to also match the thread keyword.
11765 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11767 Fix break *FUN'address task NUM.
11768 * ada-lex.l (task): New rule.
11769 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11770 been built before using it.
11772 For older changes see ChangeLog-2009.
11778 version-control: never