1 2010-12-29 Jie Zhang <jie.zhang@analog.com>
2 Mike Frysinger <vapier@gentoo.org>
4 * Makefile.in (ALLDEPFILES): Add bfin-linux-tdep.c and bfin-tdep.c.
5 (HFILES_NO_SRCDIR): Add bfin-tdep.h.
6 (ALL_TARGET_OBS): Add bfin-linux-tdep.o and bfin-tdep.o.
7 * NEWS: Mention new Blackfin port.
8 * bfin-tdep.c, bfin-tdep.h, bfin-linux-tdep.c,
9 syscalls/bfin-linux.xml: New files.
10 * configure.tgt (bfin-*-*): Handle bfin targets.
12 2010-12-29 Hui Zhu <teawater@gmail.com>
14 * ax-gdb.c (gen_expr): Change error message.
16 2010-12-29 Joel Brobecker <brobecker@adacore.com>
18 * gdb.c: Revert the previous change, which was probably committed
21 2010-12-29 Joel Brobecker <brobecker@adacore.com>
23 * ada-lang.c: Fix typo in comment.
25 2010-12-29 Joel Brobecker <brobecker@adacore.com>
27 * ada-valprint.c (ada_val_print_1): Print null array pointers as
28 `0x0' rather than `(null)'. Add assertion.
30 2010-12-29 Joel Brobecker <brobecker@adacore.com>
32 * ada-lang.h (ada_coerce_to_simple_array): Add declaration.
33 * ada-lang.c (ada_typedef_target_type): New function.
34 (desc_base_type): Add handling of fat pointer typedefs.
35 (ada_coerce_to_simple_array): Make non-static.
36 (decode_packed_array_bitsize): Add handling of fat pointer typedefs.
38 (ada_template_to_fixed_record_type_1, ada_to_fixed_type)
39 (ada_check_typedef): Add handling of fat pointer typedefs.
40 (ada_evaluate_subexp) [OP_FUNCALL]: Likewise.
41 * ada-typeprint.c (ada_print_type): Add handling of fat pointer
43 * ada-valprint.c (ada_val_print_1): Convert fat pointers that are not
44 array accesses to simple arrays rather than simple array pointers.
45 (ada_value_print): In the case of array descriptors, do not print
46 the value type description unless it is an array access.
48 2010-12-29 Joel Brobecker <brobecker@adacore.com>
50 * target.h (enum target_object): Expand the documentation of
51 TARGET_OBJECT_OSDATA a bit.
53 2010-12-28 Michael Snyder <msnyder@vmware.com>
55 * command.h: Comment clean-up.
56 * cli/cli-cmds.c: Ditto.
57 * cli/cli-cmds.h: Ditto.
58 * cli/cli-decode.c: Ditto.
59 * cli/cli-decode.h: Ditto.
60 * cli/cli-dump.c: Ditto.
61 * cli/cli-interp.c: Ditto.
62 * cli/cli-logging.c: Ditto.
63 * cli/cli-script.c: Ditto.
64 * cli/cli-setshow.c: Ditto.
65 * cli/cli-setshow.h: Ditto.
67 2010-12-28 Michael Snyder <msnyder@vmware.com>
69 * event-loop.c: Comment clean-up.
70 * event-loop.h: Ditto.
78 2010-12-28 Pedro Alves <pedro@codesourcery.com>
80 * ax-gdb.c (gen_expr) <OP_REGISTER>: Error out if trying to
81 collect a user register.
83 2010-12-28 Hui Zhu <teawater@gmail.com>
85 * gdbarch.sh (ax_pseudo_register_collect,
86 ax_pseudo_register_push_stack): new callbacks.
87 (agent_expr): Forward declare.
88 * gdbarch.h, gdbarch.c: Regenerate.
89 * ax-gdb.c (gen_expr): Remove pseudo-register check code.
90 * ax-general.c (user-regs.h): New include.
91 (ax_reg): Call gdbarch_ax_pseudo_register_push_stack.
92 (ax_reg_mask): Call gdbarch_ax_pseudo_register_collect.
93 * mips-tdep.c (ax.h): New include.
94 (mips_ax_pseudo_register_collect,
95 mips_ax_pseudo_register_push_stack): New functions.
96 (mips_gdbarch_init): Set mips_ax_pseudo_register_collect and
97 mips_ax_pseudo_register_push_stack.
99 2010-12-28 Yao Qi <yao@codesourcery.com>
101 * arm-tdep.c (arm_register_aliases): Remove sp, pc, and fp.
103 2010-12-28 Joel Brobecker <brobecker@adacore.com>
105 * inf-child.c (inf_child_acknowledge_created_inferior): Delete.
106 (inf_child_target): Do not set t->to_acknowledge_created_inferior.
107 * inf-ptrace.c (inf_ptrace_create_inferior): Remove call to
108 target_acknowledge_created_inferior.
109 * inf-ttrace.c (inf_ttrace_him): Likewise.
110 * target.h (struct target_ops): Delete to_acknowledge_created_inferior
112 (target_acknowledge_created_inferior): Delete.
113 * target.c (update_current_target): Remove setting of
114 to_acknowledge_created_inferior field. Do default value for that
116 (debug_to_acknowledge_created_inferior): Delete.
117 (setup_target_debug): Remove setting of
118 current_target.to_acknowledge_created_inferior.
120 2010-12-27 Pedro Alves <pedro@codesourcery.com>
123 * breakpoint.c (breakpoint_restore_shadows): When looking for the
124 location with the lowest address that overlaps the memory range we
125 want to restore shadows for, account for multiple locations at the
128 2010-12-27 Jan Kratochvil <jan.kratochvil@redhat.com>
130 Code cleanup - renaming.
131 * breakpoint.c: Use bl for `*bp_location' variables, blp_tmp for
132 `**bp_location' helper variables, b_tmp for `*breakpoint' helper
135 2010-12-27 Kevin Buettner <kevinb@redhat.com>
136 Hui Zhu <teawater@gmail.com>
138 * mips-tedp.c (mips_register_name): Add comments.
140 2010-12-23 Yao Qi <yao@codesourcery.com>
142 * arm-tdep.c (thumb_analyze_prologue): Move some code ...
143 (EXTRACT_MOVW_MOVT_IMM_T): ... here. New macro.
144 (EXTRACT_MOVW_MOVT_IMM_A): New macro.
145 (arm_analyze_load_stack_chk_guard): New.
146 (arm_skip_stack_protector): New.
147 (arm_skip_prologue): Adjust post_prologue_pc by
148 arm_skip_stack_protector.
151 2010-12-23 Yao Qi <yao@codesourcery.com>
153 * arm-tdep.c (arm_gdbarch_init): Remove invoke to
154 set_gdbarch_deprecated_fp_regnum.
156 2010-12-22 Marc Khouzam <marc.khouzam@ericsson.com>
158 * inferior.c (remove_inferior_command): Don't remove an active inferior.
159 * mi/mi-main.c (mi_cmd_remove_inferior): Ditto.
161 2010-12-21 Tom Tromey <tromey@redhat.com>
163 * thread.c (print_thread_info): Make a ui-out table in CLI mode.
165 2010-12-20 Yao Qi <yao@codesourcery.com>
167 * arm-tdep.c (arm_register_reggroup_p): New.
168 (arm_gdbarch_init): Set arm_register_reggroup_p for hook
171 2010-12-20 Yao Qi <yao@codesourcery.com>
173 * features/arm-core.xml: Add attribute type to reg from r0 to r12.
174 * features/arm-with-iwmmxt.c: Regenerate.
175 * features/arm-with-neon.c: Regenerate.
176 * features/arm-with-vfpv2.c: Regenerate.
177 * features/arm-with-vfpv3.c: Regenerate.
179 2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
181 * mi/mi-main.c (mi_cmd_remove_inferior): Don't delete current inferior.
182 (get_other_inferior): New.
184 2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
186 * python/py-progspace.c (py_free_pspace): Obtain arch another
187 way to avoid dereferencing a null pointer.
189 2010-12-17 Michael Snyder <msnyder@vmware.com>
191 * utils.c (do_my_cleanups): Comment fix-up.
193 2010-12-17 Kevin Buettner <kevinb@redhat.com>
195 * mips-tdep.c (make_mips16_addr): New function.
196 (mips_elf_make_msymbol_special): Don't set the low bit in the
198 (mips_read_pc, mips_unwind_pc, mips_addr_bits_remove): Strip bit
199 indicating mips16 address, if present.
200 (mips_write_pc): Set bit indicating mips16 address when in a mips16
202 (mips_eabi_push_dummy_call, mips_o64_push_dummy_call): Likewise,
203 but for each function pointer argument to inferior function call.
205 2010-12-17 Tom Tromey <tromey@redhat.com>
207 * psympriv.h (struct partial_symtab) <readin>: Move field
210 2010-12-16 Kevin Buettner <kevinb@redhat.com>
212 * mips-tdep.c (mips_convert_register_float_case_p)
213 (mips_convert_register_gpreg_case_p): New functions.
214 (mips_convert_register_p): Invoke new functions above.
215 (mips_register_to_value): Add case for fetching value shorter
216 than 64 bits from a 64-bit register.
217 (mips_value_to_register): Add case for storing value shorter
218 than 64 bits into a 64-bit register.
220 2010-12-16 Joel Borggrén-Franck <joel.borggren.franck@gmail.com>
222 * python/py-value.c (value_object_type) <tp_flags>: Add
225 2010-12-16 Mike Frysinger <vapier@gentoo.org>
227 * NEWS: Mention new sim --map-info flag.
229 2010-12-15 Doug Evans <dje@google.com>
231 * dwarf2read.c (_initialize_dwarf2_read): Fix help text of
232 "save gdb-index" command.
234 2010-12-15 Tom Tromey <tromey@redhat.com>
236 * infrun.c (save_infcall_control_state): Handle the
237 exception-resume breakpoint.
238 (restore_infcall_control_state): Likewise.
239 (discard_infcall_control_state): Likewise.
241 2010-12-15 Kevin Buettner <kevinb@redhat.com>
243 * mips-tdep.c (mips_pseudo_register_write): Sign extend 32-bit
244 cooked values that are being transferred to 64-bit raw registers.
245 (mips_pseudo_register_read): Revise to preserve symmetry with
246 mips_pseudo_register_write().
248 2010-12-15 Greg Watson <g.watson@computer.org>
250 * f-exp.y (yylex): Check entire token against keywords.
252 2010-12-15 Doug Evans <dje@google.com>
254 Rename "maint set python auto-load" to "set auto-load-scripts".
256 * python/py-auto-load.c (auto_load_scripts): Renamed from
258 (load_auto_scripts_for_objfile): Update.
259 (gdbpy_initialize_auto_load): Rename "maint set python auto-load" to
260 "set auto-load-scripts".
262 2010-12-14 Kevin Buettner <kevinb@redhat.com>
264 * mips-tdep.c (mips_eabi_push_dummy_call): Place signed, rather
265 than unsigned, values in registers.
267 2010-12-14 Ken Werner <ken.werner@de.ibm.com>
269 * valops.c (value_one): Use get_array_bounds to compute the number
270 of array elements instead of dividing the length of the array by the
271 length of the element types.
272 * valarith.c (value_complement, value_neg): Likewise.
274 2010-12-14 Joel Brobecker <brobecker@adacore.com>
276 * irix5-nat.c: Replace fp_r, fp_regs and fp_scr by __fp_r, __fp_regs
277 and __fp_scr respectively throughout.
278 * configure.ac: Compile with -Dsiginfo=__siginfo if building with
279 Python using GCC on IRIX.
280 * configure: Regenerate.
282 2010-12-13 Kevin Buettner <kevinb@redhat.com>
284 * solib-svr4.c (enable_break): Don't attempt to place breakpoints,
285 when attaching, on the names in bkpt_names: _start, __start, and
288 2010-12-12 Stan Shebs <stan@codesourcery.com>
290 * value.c (value_of_internalvar): Add case for trace state
293 2010-12-12 Doug Evans <dje@google.com>
295 * dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table.
296 (dwarf2_per_cu_quick_data): Move definition down to "quick functions"
297 section. Delete members lines full_names. Rename read_lines to
299 (quick_file_names): New struct.
300 (hash_file_name_entry, eq_file_name_entry): New functions.
301 (delete_file_name_entry, create_quick_file_names_table): New functions.
302 (dwarf2_read_index): Initialize quick_file_names_table.
303 (dw2_get_file_names): Renamed from dw2_require_line_header.
304 Return pointer to quick_file_names entry. All callers updated.
305 (dw2_get_real_path): Renamed from dw2_require_full_path.
306 Replace per_cu arg with pointer to quick_file_names entry.
308 (dw2_free_cached_file_names): New function.
309 (dw2_forget_cached_source_info): Call it (via htab_traverse_noresize).
310 (dwarf2_initialize_objfile): Initialize quick_file_names_table in
311 the OBJF_READNOW case.
312 (dwarf2_free_objfile): Rewrite freeing of quick file names tables.
314 2010-12-12 Mark Kettenis <kettenis@gnu.org>
316 * mips64obsd-tdep.c (floatformats_mips64_quad): New define.
317 (mips64obsd_init_abi): Set long_double_bit and long_double_format.
319 2010-12-12 Mark Kettenis <kettenis@gnu.org>
321 * sparc-tdep.c: Fix typo in comment.
323 2010-12-10 Doug Evans <dje@google.com>
325 * dwarf2read.c: Whitespace cleanup, plus comment additions.
328 2010-12-10 Tom Tromey <tromey@redhat.com>
330 * NEWS: Document exception-handling change.
332 2010-12-09 Marc Khouzam <marc.khouzam@ericsson.com>
334 * mi/mi-parse.c (mi_parse): Wrong error message.
336 2010-12-09 Doug Evans <dje@google.com>
338 * symfile.h (quick_symbol_functions): Clarify usage of
339 map_symbol_filenames.
341 2010-12-09 Tom Tromey <tromey@redhat.com>
343 * mi/mi-parse.h (mi_parse): Update.
344 * mi/mi-parse.c (mi_parse_cleanup): New function.
345 (mi_parse): Add 'token' argument. Throw exception on error.
346 * mi/mi-main.c (mi_print_exception): New function.
347 (mi_execute_command): Use mi_print_exception. Catch exceptions
350 2010-12-09 Tom Tromey <tromey@redhat.com>
353 * thread.c (clear_thread_inferior_resources): Call
354 delete_longjmp_breakpoint.
355 * infrun.c (handle_inferior_event): Handle exception breakpoints.
356 (handle_inferior_event): Likewise.
357 (insert_exception_resume_breakpoint): New function.
358 (check_exception_resume): Likewise.
359 * inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
360 * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
361 (step_1): Set thread's initiating frame.
362 (until_next_continuation): New function.
363 (until_next_command): Support exception breakpoints.
364 (finish_command_continuation): Delete longjmp breakpoint.
365 (finish_forward): Support exception breakpoints.
366 * gdbthread.h (struct thread_info) <initiating_frame>: New field.
367 * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
368 bp_exception_master>: New constants.
369 (struct bpstat_what) <is_longjmp>: New field.
370 (set_longjmp_breakpoint): Update.
371 * breakpoint.c (create_exception_master_breakpoint): New function.
372 (update_breakpoints_after_exec): Handle bp_exception_master. Call
373 create_exception_master_breakpoint.
374 (print_it_typical): Handle bp_exception_master, bp_exception.
375 (bpstat_stop_status): Handle bp_exception_master.
376 (bpstat_what): Handle bp_exception_master, bp_exception,
378 (bptype_string): Likewise.
379 (print_one_breakpoint_location): Likewise.
380 (allocate_bp_location): Likewise.
381 (set_longjmp_breakpoint): Handle exception breakpoints. Change
383 (delete_longjmp_breakpoint): Handle exception breakpoints.
385 (struct until_break_command_continuation_args) <thread_num>: New
387 (until_break_command_continuation): Call
388 delete_longjmp_breakpoint.
389 (until_break_command): Support exception breakpoints.
390 (delete_command): Likewise.
391 (breakpoint_re_set_one): Likewise.
392 (breakpoint_re_set): Likewise.
394 2010-12-08 Doug Evans <dje@google.com>
396 * gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
398 * gdbtypes.c (check_typedef): Tweak comment.
401 * dwarf2read.c (struct psymtab_cu_index_map): New struct.
402 (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
403 (struct addrmap_index_data): New struct.
404 (add_address_entry): Remove arg `pst', new args `start', `end'.
405 (add_address_entry_worker, write_address_map): New functions.
406 (write_psymtabs_to_index): Address table generation moved to
407 write_address_map. Build a table mapping psymtab to CU index
410 * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
413 * symfile.h (quick_symbol_functions): Clarify usage of
414 expand_symtabs_with_filename.
415 * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
416 comp units, ignore type units.
418 * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
420 2010-12-07 Doug Evans <dje@google.com>
422 * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
426 * NEWS: Mention -data-directory.
427 * main.c (captured_main): Recognize -data-directory.
429 2010-12-06 Marc Khouzam <marc.khouzam@ericsson.com>
431 * mi/mi-parse.c (mi_parse): Missing else.
433 2010-12-04 Masaki Muranaka <monaka@monami-software.com>
435 * configure.tgt: Accept microblaze*-*-linux* for linux target
436 and microblaze*-*-* for as target.
438 2010-12-02 Keith Seitz <keiths@redhat.com>
440 * linespec.c (find_method): Move name canonicalization outside
442 Be paranoid and use a cleanup.
444 2010-12-01 Doug Evans <dje@google.com>
446 * dwarf2read.c (save_gdb_index_command): Add comment.
448 2010-12-01 Ulrich Weigand <uweigand@de.ibm.com>
450 * valops.c (value_assign): Returned value is never lazy. If a
451 C++ class type is returned, fix incorrect enclosing type / embedded
452 offset. If internal variable is returned, allocate new internalvar
453 value using value_of_internalvar.
455 * NEWS: Document changes in behavior of "print x = 0" and similar
458 2010-11-29 Doug Evans <dje@google.com>
460 * python/lib/gdb/printing.py (register_pretty_printer): Change
461 printer-name:subprinter-name to printer-name;subprinter-name.
462 * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
464 (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
466 2010-11-29 Tom Tromey <tromey@redhat.com>
468 * opencl-lang.c (lval_func_check_synthetic_pointer): New
470 * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
472 (value_bits_synthetic_pointer): Declare.
473 * value.c (value_bits_synthetic_pointer): New function.
474 * valprint.c (valprint_check_validity): Handle synthetic
476 * valops.c (value_ind): Use new 'indirect' lval_funcs method.
477 * valarith.c (value_ptradd): Use set_value_component_location.
478 * p-valprint.c (pascal_object_print_value_fields): Handle
480 * jv-valprint.c (java_print_value_fields): Handle synthetic
482 * dwarf2read.c (dwarf_stack_op_name): Add
483 DW_OP_GNU_implicit_pointer.
484 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
485 arguments. Handle location lists.
486 (fill_in_loclist_baton): New function.
487 (dwarf2_symbol_mark_computed): Use it.
488 * dwarf2loc.h (dwarf2_find_location_expression): Declare.
489 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
491 * dwarf2loc.c (dwarf2_find_location_expression): Rename from
492 find_location_expression. No longer static. Update all callers.
493 (dwarf_expr_frame_pc): New function.
494 (per_cu_dwarf_call): Add get_frame_pc, baton arguments. Update
496 (struct piece_closure) <per_cu>: New field.
497 (allocate_piece_closure): Add per_cu argument.
498 (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
499 (check_pieced_value_bits): Remove validity argument, add check_for
500 argument. Handle DWARF_VALUE_IMPLICIT_POINTER.
501 (check_pieced_value_validity, check_pieced_value_invalid):
503 (check_pieced_synthetic_pointer): New function.
504 (get_frame_address_in_block_wrapper): New function.
505 (indirect_pieced_value): New function.
506 (pieced_value_funcs): Update.
507 (invalid_synthetic_pointer): New function.
508 (dwarf2_evaluate_loc_desc_full): Rename from
509 dwarf2_evaluate_loc_desc. Add byte_offset argument.
510 (dwarf2_evaluate_loc_desc): Rewrite.
511 (dwarf2_loc_desc_needs_frame): Set new field on context.
512 (get_ax_pc): New function.
513 (disassemble_dwarf_expression): Handle
514 DW_OP_GNU_implicit_pointer.
515 * dwarf2expr.h (enum dwarf_value_location)
516 <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
517 (struct dwarf_expr_context) <get_frame_pc>: New field.
518 (struct dwarf_expr_piece) <v.ptr>: New field.
519 * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
520 (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
521 * dwarf2-frame.c (no_get_frame_pc): New function.
522 (execute_stack_op): Set new field on context.
523 * cp-valprint.c (cp_print_value_fields): Handle synthetic
526 2010-11-29 Phil Muldoon <pmuldoon@redhat.com>
530 * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
532 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
534 Fix step_resume_breakpoint unsaved during an infcall.
535 * gdbthread.h (struct thread_control_state): Move here field
536 step_resume_breakpoint ...
537 (struct thread_info): ... from here.
538 * infrun.c (save_infcall_control_state): Reset
539 control.step_resume_breakpoint to NULL.
540 (restore_infcall_control_state, discard_infcall_control_state): Delete
541 control.step_resume_breakpoint.
542 * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
545 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
547 Rename and move inferior_thread_state and inferior_status.
548 * gdbthread.h (struct thread_control_state): New struct, move fields
549 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
550 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
551 stop_step and stop_bpstat here from struct thread_info.
552 (struct thread_suspend_state): New struct, move field stop_signal here
553 from struct thread_info.
554 (struct thread_info): Move the fields above from this struct.
555 * inferior.h: Move the inferior_thread_state and inferior_status
556 declarations comment to their definitions at infrun.c.
557 (struct inferior_control_state): New struct, move field stop_soon from
558 struct inferior here.
559 (struct inferior_suspend_state): New empty struct.
560 (struct inferior): New fields control and suspend. Move out field
562 * infrun.c (struct inferior_thread_state): Rename to ...
563 (infcall_suspend_state): ... here. Replace field stop_signal by
564 fields thread_suspend and inferior_suspend.
565 (save_inferior_thread_state): Rename to ...
566 (save_infcall_suspend_state): ... here. New variable inf. Update the
568 (restore_inferior_thread_state): Rename to ...
569 (restore_infcall_suspend_state): ... here. New variable inf. Update
570 the code for new fields.
571 (do_restore_inferior_thread_state_cleanup): Rename to ...
572 (do_restore_infcall_suspend_state_cleanup): ... here.
573 (make_cleanup_restore_inferior_thread_state): Rename to ...
574 (make_cleanup_restore_infcall_suspend_state): ... here.
575 (discard_inferior_thread_state): Rename to ...
576 (discard_infcall_suspend_state): ... here.
577 (get_inferior_thread_state_regcache): Rename to ...
578 (get_infcall_suspend_state_regcache): ... here.
579 (struct inferior_status): Rename to ...
580 (struct infcall_control_state): ... here. Replace fields
581 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
582 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
583 stop_step, stop_bpstat and stop_soon by fields thread_control and
585 (save_inferior_status): Rename to ...
586 (save_infcall_control_state): ... here. Update the code for new
588 (restore_inferior_status): Rename to ...
589 (restore_infcall_control_state): ... here. Update the code for new
591 (do_restore_inferior_status_cleanup): Rename to ...
592 (do_restore_infcall_control_state_cleanup): ... here.
593 (make_cleanup_restore_inferior_status): Rename to ...
594 (make_cleanup_restore_infcall_control_state): ... here.
595 (discard_inferior_status): Rename to ...
596 (discard_infcall_control_state): ... here.
597 * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
598 exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
599 inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
600 mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
601 solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
602 references to the moved fields and renamed functions.
604 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
606 * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
608 (save_inferior_thread_state): Reset tp->stop_signal.
610 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
612 * infcall.c (call_function_by_hand): Remove variable
613 caller_state_cleanup.
615 2010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
619 * breakpoint.c (is_marker_spec): Check for NULL.
621 2010-11-25 Pedro Alves <pedro@codesourcery.com>
623 * breakpoint.h: No longer include python.h or python-internal.h.
624 (struct breakpoint_object): Forward declare.
625 * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
626 * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
627 * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
629 (gdbpy_breakpoint_created): Remove casts around py_bp_object
632 2010-11-24 Joel Brobecker <brobecker@adacore.com>
634 * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
635 only if HAVE_ELF is defined.
637 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
640 * infrun.c (struct inferior_status) <stepping_over_breakpoint>
641 (save_inferior_status) <stepping_over_breakpoint>
642 (restore_inferior_status) <stepping_over_breakpoint>: Rename to
644 (struct inferior_status) <step_resume_break_address>: Remove.
646 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
649 * infrun.c (struct inferior_status, save_inferior_status)
650 (restore_inferior_status): Group and reorder the fields, comment their
653 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
657 (struct dict_vector) <iter_match_first, iter_match_next>
658 (iter_match_first_hashed, iter_match_next_hashed)
659 (iter_match_first_linear, iter_match_next_linear)
660 (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
661 (iter_match_next_hashed, iter_match_first_linear)
662 (iter_match_next_linear): Use symbol_compare_ftype.
663 * dictionary.h: Include symfile.h.
664 (dict_iter_match_first, dict_iter_match_next): Use
665 symbol_compare_ftype.
666 * dwarf2read.c (dw2_map_matching_symbols): Likewise.
667 * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
668 (map_matching_symbols_psymtab): Likewise.
669 * symfile.h (symbol_compare_ftype): New typedef.
670 (struct quick_symbol_functions) <map_matching_symbols): Use
671 symbol_compare_ftype.
673 2010-11-23 Tom Tromey <tromey@redhat.com>
675 * configure: Rebuild.
676 * configure.ac (READLINE_TEXI_INCFLAG): New subst.
678 2010-11-19 Tom Tromey <tromey@redhat.com>
680 * Makefile.in (SUBDIRS): Add doc.
681 * configure: Rebuild.
682 * configure.ac: Don't configure in doc. Create doc/Makefile.
684 2010-11-23 Phil Muldoon <pmuldoon@redhat.com>
688 * python/py-inferior.c (find_thread_object): Check if PIDGET
691 010-11-22 Joel Brobecker <brobecker@adacore.com>
693 * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
695 2010-11-22 Joel Brobecker <brobecker@adacore.com>
697 * ada-lang.c (ada_to_fixed_type): Expand function documentation.
698 Return the original type if the main type portions match rather
699 than when the type themselves match.
701 2010-11-22 Joel Brobecker <brobecker@adacore.com>
703 * ada-lang.c (ada_template_to_fixed_record_type_1):
704 For dynamic fields, check the field size against the maximum
707 2010-11-22 Joel Brobecker <brobecker@adacore.com>
709 * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
711 (mips_irix_n32_stack_tramp_frame): New static global.
712 (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
715 2010-11-22 Jerome Guitton <guitton@adacore.com>
717 * ada-tasks.c (get_tcb_types_info): Use C lookups to get
720 2010-11-22 Joel Brobecker <brobecker@adacore.com>
722 * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
723 if type1 is a typedef.
725 2010-11-22 Joel Brobecker <brobecker@adacore.com>
727 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
728 "_finalizer" to the list.
730 2010-11-22 Joel Brobecker <brobecker@adacore.com>
732 * symfile.c: Remove all "#if 0"/"#endif" blocks.
734 2010-11-22 Joel Brobecker <brobecker@adacore.com>
736 * symfile.c: Add missing second space after period in various comments.
738 2010-11-22 Joel Brobecker <brobecker@adacore.com>
740 * ada-typeprint.c (print_array_type): Fix formatting in comment.
741 (print_selected_record_field_types): Fix formatting in function
744 2010-11-22 Joel Brobecker <brobecker@adacore.com>
746 * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
747 in name of "show ravenscar" prefix command name.
749 2010-11-22 Joel Brobecker <brobecker@adacore.com>
751 * ravenscar-thread.c (show_ravenscar_task_switching_command):
752 Add missing '\n' in output.
754 2010-11-22 Joel Brobecker <brobecker@adacore.com>
756 * ravenscar-thread.c (running_thread_name): Change value.
757 (read_thread_id): Remove advance declaration.
758 (get_running_thread_msymbol): New function.
759 (has_ravenscar_runtime): Use get_running_thread_msymbol to
760 compute msym_running_thread.
761 (get_running_thread_id): Renames read_thread_id. Slight modifications
762 to not take any argument anymore, using get_running_thread_msymbol
763 to determine which symbol to use instead.
764 (ravenscar_running_thread): Use get_running_thread_id instead of
767 2010-11-22 Joel Brobecker <brobecker@adacore.com>
769 * ravenscar-sparc-thread.c (supply_register_at_address):
770 Fix passing of buf in call to regcache_raw_supply.
772 2010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
774 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
776 2010-11-22 Tom Tromey <tromey@redhat.com>
778 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
780 2010-11-19 Keith Seitz <keiths@redhat.com>
782 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
783 Remove extraneous '/' after $(DESTDIR).
784 (PYTHON_INSTALL_DIR): Likewise.
786 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
788 Fix stale memory references.
789 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
792 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
793 Tom Tromey <tromey@redhat.com>
795 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
796 (.PHONY): Remove for .y outputs.
798 2010-11-19 Will Drewry <wad@google.com>
799 Tavis Ormandy <taviso@google.com>
800 Jan Kratochvil <jan.kratochvil@redhat.com>
802 * dwarf2read.c (decode_locdesc): Enforce location description stack
805 2010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
807 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
808 instruction is found.
810 2010-11-17 Tom Tromey <tromey@redhat.com>
812 * value.c (value_entirely_optimized_out): Check the
813 'check_any_valid' field.
815 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
817 * ada-lang.c (modify_general_field): Remove.
818 (make_array_descriptor): Replace all modify_general_field calls by
820 * value.c (modify_field): Update comment. New variable bytesize.
821 Normalize BITPOS. Initialize BYTESIZE, use it.
823 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
825 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
826 elements after xfree.
828 2010-11-16 Tom Tromey <tromey@redhat.com>
830 * gdb-add-index.sh: Really remove.
832 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
835 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
836 (init_one_comp_unit): ... this one.
837 (prepare_one_comp_unit): New prototype.
838 (dw2_require_line_header, process_psymtab_comp_unit): Use
840 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
841 (load_partial_comp_unit): Remove variable attr. Use
842 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
843 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
844 prepare_one_comp_unit.
845 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
846 Use prepare_one_comp_unit.
847 (alloc_one_comp_unit): Rename to ...
848 (init_one_comp_unit): ... here and remove there calloc, new parameter
850 (prepare_one_comp_unit): New function.
852 2010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
854 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
855 possible used of uninitialized variable.
857 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
859 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
860 (rs6000_gdbarch_init): Call it.
862 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
864 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
865 instructions if debugging an E500 binary.
867 2010-11-12 Tom Tromey <tromey@redhat.com>
869 * varobj.c (value_get_print_value): Rearrange. Pass stream to
870 apply_varobj_pretty_printer.
871 * c-lang.c: Include exceptions.h.
872 (c_get_string): Throw MEMORY_ERROR when appropriate.
873 * python/py-prettyprint.c (enum string_repr_result): New.
874 (print_stack_unless_memory_error): New function.
875 (print_string_repr): Change return type. Use
876 print_stack_unless_memory_error.
877 (print_children): Use print_stack_unless_memory_error.
878 (apply_val_pretty_printer): Update. Don't print children if
879 string representation threw an exception.
880 (apply_varobj_pretty_printer): Add 'stream' argument. Use
881 print_stack_unless_memory_error.
882 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
884 (_initialize_python): Initialize them.
885 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
886 gdbpy_convert_exception.
887 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
888 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
889 (gdbpy_convert_exception): Declare.
890 (apply_varobj_pretty_printer): Update.
891 * python/py-utils.c (gdbpy_convert_exception): New function.
893 2010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
895 * mi/mi-main.c (mi_cmd_target_detach): Accept new
896 thread-group id format.
898 2010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
900 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
902 2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
904 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
906 (BPPY_SET_REQUIRE_VALID): Ditto.
907 (bpnum_is_valid): Delete function.
908 (bppy_get_visibility): New function.
909 (bppy_new): Parse for, and validate internal keyword. Pass
910 internal keyword to breakpoint or watchpoint functions.
911 (build_bp_list): New function.
912 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
913 iterate_over_breakpoints.
914 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
916 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
917 to internal breakpoint chain.
919 * breakpoint.c (set_breakpoint_number): New function.
920 (breakpoint_1): Check if breakpoint number is more than zero.
921 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
922 (create_breakpoint_sal): Take a new parameter called internal.
923 Call set_breakpoint_number with internal parameter. Do not
924 mention internal breakpoints. All callers updated.
925 (create_breakpoint): Ditto.
926 (create_breakpoints_sal): Ditto.
927 (watch_command_1): Ditto.
928 (watch_command_wrapper): Take a new parameter called internal.
930 (rwatch_command_wrapper): Ditto.
931 (awatch_command_wrapper): Ditto.
932 (save_breakpoints): Update breakpoint save condition check.
933 (iterate_over_breakpoints): New function.
934 * breakpoint.h: Add conditional python includes. Add py_bp_object
935 and comment to struct breakpoint. Update all callers.
936 * defs.h: Add PyObject definition for GDB builds without Python.
938 2010-11-10 Doug Evans <dje@google.com>
940 * python/lib/gdb/command/pretty_printers.py
941 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
943 * value.c (set_value_enclosing_type): Renamed from
944 value_change_enclosing_type. All callers updated.
945 * value.h (set_value_enclosing_type): Update.
946 * valops.c (value_full_object): Always return a copy if we need to
947 make changes to the input value.
949 2010-11-09 Pedro Alves <pedro@codesourcery.com>
951 * breakpoint.c (watch_command_1): Get a pointer of the lazy
952 version of the expression's value, even if reading the value from
953 memory fails. When creating a -location watchpoint, get the
954 value's address from the lazy value pointer.
956 2010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
958 * infrun.c (restore_inferior_thread_state): Use
959 discard_inferior_thread_state to free the data.
960 (discard_inferior_thread_state): xfree also siginfo_data.
962 2010-11-05 Doug Evans <dje@google.com>
964 Make gdb.parameter("directories") work.
965 New command "set directories".
966 * NEWS: Document them.
967 * source.c (set_directories_command): New function.
968 (show_directories_1): Renamed from show_directories.
970 (show_directories_command): New function.
971 (_initialize_source): Install "directories" as a set/show
972 variable instead of just a show command.
974 2010-11-05 Ken Werner <ken.werner@de.ibm.com>
976 * NEWS: Mention OpenCL C language support.
977 * Makefile.in (SFILES): Add opencl-lang.c.
978 (COMMON_OBS): Add opencl-lang.o.
979 * opencl-lang.c: New File
980 * defs.h (enum language): Add language_opencl.
981 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
982 IBM XL C OpenCL compiler.
983 * c-lang.h: Include "parser-defs.h".
984 (evaluate_subexp_c): Declare.
985 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
986 (c_op_print_tab): Add declaration.
987 * eval.c (binop_promote): Handle language_opencl.
988 * c-exp.y: Lookup the primitive types instead of referring to the
991 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
993 Fix configure --enable-plugins --without-python.
994 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
995 * configure: Regenerate.
997 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
999 * solib.c (solib_read_symbols): Call exception_fprintf even without
1000 FROM_TTY. Print also so->so_name.
1002 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
1004 * gdbtypes.h (struct rank): Created subrank.
1005 * gdbtypes.c: Initialized subrank for all
1006 'BADNESS' constants.
1007 (distance_to_ancestor): New function.
1008 (is_ancestor): Use distance_to_ancestor.
1009 (is_public_ancestor): Ditto.
1010 (sum_ranks): Handle subrank.
1011 (compare_ranks): Ditto.
1012 (rank_one_type): Subrank base conversions.
1014 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
1016 * gdbtypes.h: Create struct rank.
1017 Convert all 'BADNESS' macros to const struct rank declarations.
1018 (sum_ranks): New function.
1019 (compare_ranks): New function.
1020 * valops.c (find_oload_champ): Updated.
1021 (classify_oload_match): Use compare_ranks.
1023 (compare_parameters): Use compare_ranks.
1024 * gdbtypes.c: Initialize 'BADNESS' constants.
1025 (sum_ranks): New function.
1026 (compare_ranks): New function.
1027 (compare_badness): Use compare_ranks.
1028 (rank_function): Use global constants instead of literals.
1029 (rank_one_type): Ditto.
1033 2010-11-04 Doug Evans <dje@google.com>
1035 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
1036 (find_pretty_printer): Fix comments.
1038 2010-11-04 Hui Zhu <teawater@gmail.com>
1040 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
1042 2010-11-03 Joel Brobecker <brobecker@adacore.com>
1044 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
1045 and `len' declaration and computation inside block where they
1048 2010-11-03 Joel Brobecker <brobecker@adacore.com>
1050 * valprint.c (val_print_array_elements): Put back handling of
1053 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
1055 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
1056 DIE and set the length of the type.
1057 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
1058 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
1059 return 0 if the corresponding bounds of the type are undefined.
1060 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
1061 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
1062 (val_print_array_elements): Use get_array_bounds to compute the number
1063 of array elements instead of dividing the length of the array by the
1064 length of the element types.
1065 * valarith.c (vector_binop): Likewise.
1066 * valops.c (value_cast): Likewise.
1067 * c-valprint.c (c_val_print): Likewise.
1068 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1070 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
1072 * valarith.c (value_pos, value_neg, value_complement): Handle
1074 * valops.c (value_one): Likewise.
1076 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
1078 * value.h (value_non_lval): Declare.
1079 * value.c (value_non_lval): New function.
1080 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
1081 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
1084 2010-11-02 Doug Evans <dje@google.com>
1086 New python module gdb.printing, and new commands info pretty-printer,
1087 enable pretty-printer, disable pretty-printer.
1088 * NEWS: Mention them.
1089 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
1090 gdb/command/__init__.py, gdb/command/pretty_printers.py.
1091 * python/lib/gdb/__init__.py: Install pretty-printer commands.
1092 * python/lib/gdb/printing.py: New file.
1093 * python/lib/gdb/command/__init__.py: New file.
1094 * python/lib/gdb/command/pretty_printers.py: New file.
1096 2010-11-02 Tom Tromey <tromey@redhat.com>
1098 * NEWS: Mention Guile removal.
1099 * defs.h (enum language) <language_scm>: Remove.
1100 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
1102 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
1103 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
1104 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
1107 2010-11-02 Doug Evans <dje@google.com>
1109 * top.c: #include "python/python.h".
1110 (gdb_init): Add a comment regarding initialize_all_files.
1111 Call finish_python_initialization at the end.
1112 * python/python.h (finish_python_initialization): Declare.
1113 * python/python.c (finish_python_initialization): New function.
1114 (_initialize_python): Move python-implemented initialization there
1116 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
1118 2010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1121 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1122 Pedro Alves <pedro@codesourcery.com>
1123 * gdbthread.h (currently_stepping): New declaration.
1124 * infrun.c (currently_stepping): Remove the forward declaration.
1125 (currently_stepping): Make it global.
1126 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1127 variables tp and step, initialized them. Pass STEP to to_resume.
1128 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1129 * remote.c (currently_stepping_callback): New.
1130 (remote_vcont_resume)
1131 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1132 New variable tp. Call currently_stepping_callback and step such
1135 2010-11-01 Hui Zhu <teawater@gmail.com>
1137 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
1139 2010-10-28 Hui Zhu <teawater@gmail.com>
1141 * tracepoint.c (trace_save): Change utp->actions to
1144 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1146 * (_FILE_OFFSET_BITS): Fix typo in comment.
1148 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1150 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
1151 (PyEval_InitThreads): Remove duplicate. Define as nothing.
1152 (PyEval_ReleaseLock): Define as nothing.
1154 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1156 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
1157 by call to FILENAME_CMP.
1159 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1161 * dictionary.c (dict_hash): Move assignment out of if condition.
1163 2010-10-22 Jie Zhang <jie@codesourcery.com>
1165 * Makefile.in (install): Remove dependency of install-only and
1166 recursively invoke make for install-only.
1167 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
1168 (install): Pass FLAGS_TO_PASS when recursively make install-only.
1170 2010-10-20 Hui Zhu <teawater@gmail.com>
1172 * tracepoint.c (tfile_get_traceframe_address): Call
1173 extract_signed_integer.
1174 (tfile_trace_find): Call extract_signed_integer and
1175 extract_unsigned_integer. Change data_size to unsigned int.
1176 (tfile_fetch_registers): Call extract_unsigned_integer.
1177 (tfile_xfer_partial): Ditto.
1178 (tfile_get_trace_state_variable_value): Call
1179 extract_signed_integer and extract_unsigned_integer.
1181 2010-10-20 Vladimir Prus <vladimir@codesourcery.com>
1183 * remote.c (remote_get_threadlist): If we got empty
1184 response, bail out immediately, and don't emit any
1187 2010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1189 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
1190 for "mov pc, REG" as well.
1191 (thumb_instruction_changes_pc): Likewise.
1193 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1196 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
1197 * eval.c (evaluate_subexp_standard): Check for overload of
1199 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
1200 (value_x_unop): Ditto.
1201 * valops.c: Include "exceptions.h".
1202 (find_overload_match): Throw NOT_FOUND_ERROR.
1203 (value_struct_elt): Ditto.
1205 2010-10-19 Tom Tromey <tromey@redhat.com>
1207 * python/py-cmd.c (cmdpy_function): Unreference exception state.
1209 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1211 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
1212 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
1214 Make all other conversions illegal.
1216 2010-10-18 Doug Evans <dje@google.com>
1218 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
1219 assumptions of when this case happens. Print "<unnamed typedef>".
1221 2010-10-18 Tom Tromey <tromey@redhat.com>
1223 * valprint.c (val_print_string): Pass 'encoding' to
1226 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1228 Fix the `stopped language detection' testcase for gcc-4.5.
1229 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
1230 * symfile.c (set_initial_language): Move variable filename to a more
1231 inner block. Prefer LANGUAGE_OF_MAIN.
1232 * symtab.c (language_of_main): New variable.
1233 (set_main_name): Always reset LANGUAGE_OF_MAIN.
1234 * symtab.h (language_of_main): New declaration.
1236 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1237 Pedro Alves <pedro@codesourcery.com>
1239 * gdbthread.h (currently_stepping): New declaration.
1240 * infrun.c (currently_stepping): Remove the forward declaration.
1241 (currently_stepping): Make it global.
1242 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1243 variables tp and step, initialized them. Pass STEP to to_resume.
1244 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1245 * remote.c (currently_stepping_callback): New.
1246 (remote_vcont_resume)
1247 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1248 New variable tp. Call currently_stepping_callback and step such
1251 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1253 * infrun.c (follow_exec): Replace symbol_file_add_main by
1254 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
1256 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
1258 * objfiles.c (free_all_objfiles): Likewise.
1259 * remote-m32r-sdi.c (m32r_load): Likewise.
1260 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1261 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
1262 clear_symtab_users with ADD_FLAGS.
1263 (reread_symbols): Use parameter 0 for clear_symtab_users.
1264 (clear_symtab_users): New parameter add_flags. Do not call
1265 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
1266 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
1267 * symtab.h (clear_symtab_users): New parameter add_flags.
1269 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1271 Fix GCC false warning.
1272 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
1274 2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
1276 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
1277 display of type of method arguments.
1279 2010-10-15 Tom Tromey <tromey@redhat.com>
1282 * varobj.c (value_get_print_value): Use val_print_string to print
1284 * python/py-prettyprint.c (print_string_repr): Use
1285 val_print_string to print lazy strings. Fix cleanup logic.
1286 (print_children): Likewise.
1287 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
1288 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
1289 Change return type to 'void', add 'addr' argument.
1290 * value.h (val_print_string): Update.
1291 * valprint.c (val_print_string): Add 'encoding' argument.
1292 * printcmd.c (print_formatted): Update.
1293 * p-valprint.c (pascal_val_print): Update.
1294 * m2-valprint.c (print_unpacked_pointer): Update.
1295 (m2_print_array_contents): Likewise.
1296 * jv-valprint.c (java_value_print): Update.
1297 * f-valprint.c (f_val_print): Update.
1298 * c-valprint.c (c_val_print): Update.
1299 * auxv.c (fprint_target_auxv): Update.
1301 2010-10-15 Doug Evans <dje@google.com>
1302 Jan Kratochvil <jan.kratochvil@redhat.com>
1305 * gdbtypes.c (check_typedef): Clean up function comment.
1306 Keep track of instance flags as we strip typedefs and create a new
1307 type to preserve them if necessary.
1308 * gdbtypes.h (type) <instance_flags>: Extend the comment.
1310 2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1312 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
1314 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
1316 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
1317 * gdbtypes.c (rank_one_type): Move type comparison code out of here
1319 (types_equal): ...here. And changed it as follows:
1320 Outside of typedefs type must be of the same TYPE_CODE.
1321 When compairing two pointers or references they are equal if their
1323 Correct pointer conversions.
1325 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
1327 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
1328 having fields without names.
1330 2010-10-13 Tom Tromey <tromey@redhat.com>
1332 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
1334 2010-10-13 Doug Evans <dje@google.com>
1336 New python module gdb.types.
1337 * NEWS: Document it.
1338 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
1339 * python/lib/gdb/types.py: New file.
1341 * c-typeprint.c: Whitespace cleanup.
1342 (cp_type_print_method_args): Remove unnecessary forward decl.
1343 (cp_type_print_derivation_info): Ditto.
1344 (c_type_print_varspec_prefix): Mark as static at definition.
1345 (c_type_print_modifier): Fix arg descriptions.
1347 2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1349 * python/py-breakpoint.c (bppy_set_condition): New comment.
1350 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
1351 failed PyUnicode_Decode.
1352 (cmdpy_completer): Skip element for failed
1353 python_string_to_host_string.
1354 (cmdpy_init): Return -1 on failed python_string_to_host_string.
1355 * python/py-frame.c (frapy_read_var): Extend the function comment.
1356 * python/py-function.c (fnpy_init): Return -1 on failed
1357 python_string_to_host_string.
1358 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
1359 the function comment.
1360 (infpy_search_memory): Extend the function comment. Remove the
1361 PyErr_SetString call on already set error state.
1362 * python/py-param.c (set_parameter_value): Extend the function
1363 comment. Return -1 on failed python_string_to_host_string, twice.
1364 (set_attr): Extend the function comment.
1365 (compute_enum_values): Extend the function comment. New variable
1366 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
1367 failed python_string_to_host_string.
1368 (get_doc_string): Call gdbpy_print_stack on failed
1369 python_string_to_host_string.
1370 (parmpy_init): Extend the function comment.
1371 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
1372 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
1373 failed python_string_to_host_string.
1374 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
1375 (valpy_binop, valpy_richcompare): Extend the function comment.
1377 (struct python_env) <error_type, error_value, error_traceback>: New
1379 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
1380 (ensure_python_env): Call PyErr_Fetch.
1381 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
1382 failed convert_value_from_python.
1383 (value_get_print_value): Call gdbpy_print_stack on failed
1384 python_string_to_target_python_string.
1386 2010-10-12 Tom Tromey <tromey@redhat.com>
1388 * python/py-prettyprint.c (search_pp_list): Fix error checking.
1390 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
1392 * gdbtypes.c (do_is_ancestor): New function.
1393 (is_ancestor): Use do_is_ancestor.
1394 (is_public_ancestor): Use do_is_ancestor.
1396 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
1398 * ser-go32.c (struct dos_ops): Add missing fdopen field.
1400 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1402 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
1404 2010-10-11 Doug Evans <dje@google.com>
1406 * c-typeprint.c (c_type_print_modifier): Add note that this prints
1407 the address space id too.
1409 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1411 Fix attaching to re-prelinked executables on ppc64.
1412 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
1413 initialize it, try to adjust FILESZ field by it.
1415 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
1417 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
1418 messages if info_verbose.
1420 2010-10-08 Ken Werner <ken.werner@de.ibm.com>
1422 * valops.c (value_cast): Handle vector types.
1423 * valarith.c (value_binop): Widen scalar to vector if appropriate.
1425 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1427 * arm-tdep.c (thumb_expand_immediate): New function.
1428 (thumb_instruction_changes_pc): Likewise.
1429 (thumb2_instruction_changes_pc): Likewise.
1430 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
1431 prologue parsing. Improved support for optimized code.
1432 (thumb_scan_prologue): Do not reply on line-number information,
1433 use same heuristics as arm_scan_prologue insead.
1434 (skip_prologue_function): Accept functions
1435 "__tls_get_addr" and "__aeabi_read_tp".
1437 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1438 Daniel Jacobowitz <dan@codesourcery.com>
1440 * arm-tdep.c (thumb_in_function_epilogue_p)
1441 (arm_in_function_epilogue_p): New.
1442 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
1443 gdbarch_in_function_epilogue_p callback.
1445 2010-10-07 Doug Evans <dje@google.com>
1447 * cc-with-index.sh (output_file): Default to a.out.
1449 * dwarf2read.c (mapped_index): Rename member index_table to
1450 symbol_table and index_table_slots to symbol_table_slots.
1452 (create_symbol_hash_table): Renamed from create_index_table.
1453 All callers updated.
1454 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
1455 (write_hash_table): Rename local index_table to symbol_hash_table.
1457 * addrmap.h (addrmap_foreach_fn): New typedef.
1458 (addrmap_foreach): Declare.
1459 * addrmap.c (struct addrmap_funcs): New member foreach.
1460 (addrmap_foreach): New function.
1461 (addrmap_fixed_foreach): New function.
1462 (addrmap_fixed_funcs): Update.
1463 (struct mutable_foreach_data): New struct.
1464 (addrmap_mutable_foreach_worker): New function.
1465 (addrmap_mutable_foreach): New function.
1466 (addrmap_mutable_funcs): Update.
1468 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1470 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
1473 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1475 * ada-lang.c (full_match): Declare.
1476 (ada_match_name): Rename to match_name (we should avoid prefixing static
1477 symbols with "ada_").
1478 (match_name): New name for ada_match_name.
1479 (struct ada_psym_data): Remove and replace with...
1480 (struct match_data): User data for map_matching_symbols.
1481 (ada_add_psyms): Remove.
1482 (aux_add_nonlocal_symbols): New function, used as callback for
1483 map_matching_symbols.
1484 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
1486 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
1487 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
1488 Rework to use map_matching_symbols instead of map_ada_symtabs.
1489 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
1490 * psymtab.c: Include dependency on dictionary.h.
1491 (match_partial_symbol): New function.
1492 (ada_lookup_partial_symbol): Remove.
1493 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
1494 (map_matching_symbols_psymtab): New function.
1495 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
1496 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
1498 2010-10-06 Paul Hilfinger <hilfinger@adacore.com>
1500 * ada-lang.c (ada_match_name): Use new API for wild_match.
1501 (wild_match): Change API to be consistent with that of strcmp_iw;
1502 return 0 for a match, and switch operand order.
1503 (full_match): New function.
1504 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
1505 matching to allow use of hashing.
1506 * dictionary.c (struct dict_vector): Generalize iter_name_first,
1507 iter_name_next ot iter_match_first, iter_match_next.
1508 (iter_name_first_hashed): Replace with iter_match_first_hashed.
1509 (iter_name_next_hashed): Replace with iter_match_next_hashed.
1510 (iter_name_first_linear): Replace with iter_match_first_linear.
1511 (iter_name_next_linear): Replace with iter_match_next_linear.
1512 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
1513 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
1514 (dict_iter_match_first): New function.
1515 (dict_iter_match_next): New function.
1516 (dict_hash): New function.
1517 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
1518 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
1520 2010-10-06 Doug Evans <dje@google.com>
1522 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
1524 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1526 * dwarf2read.c (read_tag_const_type): Handle const arrays.
1528 2010-10-06 Doug Evans <dje@google.com>
1530 * Makefile.in (REQUIRED_SUBDIRS): New var.
1531 (subdir_do): Verify required subdir Makefiles exist.
1533 Create subdir data-directory.
1534 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
1535 data-directory/Makefile.in.
1536 (SUBDIRS): Add data-directory.
1537 (all): Remove xml-syscall-copy dependency.
1538 (xml-syscall-copy): Moved to data-directory/Makefile.in as
1540 (xml-syscall-install): Moved to data-directory/Makefile.in as
1542 (install-only): Remove xml-syscall-install dependency.
1543 (all-data-directory): New rule.
1544 (data-directory/Makefile): New rule.
1545 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
1546 * configure: Regenerate.
1547 * data-directory/Makefile.in: New file.
1548 * python/lib/gdb/__init__.py: New file.
1550 2010-10-06 Joel Brobecker <brobecker@adacore.com>
1552 Fix ARI warnings in advance_wild_match.
1553 * ada-lang.c (advance_wild_match): Delete local variable t2.
1554 Adjust code accordingly. Minor reformatting.
1556 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1558 * gdbtypes.h (struct main_type): Remove flag_nottext.
1559 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
1560 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
1561 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
1562 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
1563 of TYPE_FLAG_NOTTEXT.
1564 (init_type): Remove the initialization of the flag_nottext field.
1565 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
1567 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
1569 2010-10-04 Doug Evans <dje@google.com>
1571 * cc-with-index.sh: New file.
1573 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
1575 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
1576 (create_cus_from_index, create_addrmap_from_index): Ditto.
1577 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
1578 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
1579 (dw2_do_expand_symtabs_matching): Ditto.
1580 (eq_strtab_entry, create_strtab, add_string): Ditto.
1581 (hash_strtab_entry): Ditto.
1582 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
1583 (create_index_table, create_mapped_symtab, find_slot): Ditto.
1584 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
1585 (write_hash_table, add_address_entry, write_psymbols): Ditto.
1586 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
1587 (write_psymtabs_to_index): Ditto.
1589 2010-10-04 Joel Brobecker <brobecker@adacore.com>
1591 * ada-lang.c: #include "value.h".
1592 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
1593 arguments. Implement using value_allocate_space_in_inferior
1594 instead of allocating memory from the stack.
1595 (make_array_descriptor): Remove gdbarch and sp parameters. Update
1596 calls to ensure_lval.
1597 (ada_convert_actual): Remove gdbarch and sp parameters. Update
1598 calls to make_array_descriptor and ensure_lval.
1599 * ada-lang.h (ada_convert_actual): Update declaration.
1600 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
1602 2010-10-04 Doug Evans <dje@google.com>
1604 * python/python.c (_initialize_python): Define new function
1605 GdbSetPythonDirectory in python. Use it to update sys.path and
1608 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1610 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
1611 incorporating and generalizing print_record_field_types.
1612 (print_record_field_types): Change return value and update comment.
1613 Re-implement using print_selected_record_field_types.
1614 (print_choices): Print "=>" here.
1615 Handle case of unencoded variant branch.
1616 (print_variant_clauses): Reformat comment.
1617 Special-case unencoded variant branch.
1619 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1621 * ada-lang.c (wild_match): Reimplement.
1622 Change API to eliminate unused length argument, reverse arguments and
1623 make 0 the 'true' return value.
1624 (advance_wild_match): New auxiliary function for wild_match to improve
1626 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1627 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1629 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1631 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1633 2010-10-01 Doug Evans <dje@google.com>
1635 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1636 for `save gdb-index' command.
1638 2010-10-01 Tom Tromey <tromey@redhat.com>
1640 * symfile.h (allocate_symtab): Update.
1641 * symfile.c (allocate_symtab): Make 'filename' const.
1642 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1643 (add_psymbol_to_list): Likewise.
1644 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1646 (add_psymbol_to_list): Update.
1647 * mdebugread.c (new_symtab): Make 'name' const.
1648 (psymtab_to_symtab_1): Make 'filename' const.
1649 * elfread.c (elfstab_offset_sections): Update.
1650 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1651 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1652 (psymtab_include_file_name): Update.
1653 * dbxread.c (find_stab_function_addr): Make 'filename' const.
1654 * buildsym.h (start_subfile): Update.
1655 * buildsym.c (start_subfile): Make arguments const.
1657 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
1659 * fork-child.c (breakup_args): Fix crash if shell forking is
1660 disabled at compile time.
1662 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1664 * ada-lang.c (desc_bounds): Add handling of the case where
1665 the P_BOUNDS field is a pointer to a stub.
1666 (desc_data_target_type): Same for P_ARRAY field.
1667 (ada_check_typedef): Strip the typedef layers from the type
1668 found by ada_find_any_type.
1670 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1672 * sparc-tdep.c (sparc32_frame_align): New function.
1673 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1674 * sparc64-tdep.c (sparc64_frame_align): New function.
1675 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1677 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
1679 * defs.h (MAX_REGISTER_SIZE): Set to 64.
1681 2010-09-30 Tom Tromey <tromey@redhat.com>
1683 * symfile.h (struct sym_fns) <next>: Remove.
1684 (add_symtab_fns): Update.
1685 * symfile.c (sym_fns_ptr): New typedef.
1686 (symtab_fns): Now a VEC.
1687 (add_symtab_fns): Update. Change argument type.
1688 (find_sym_fns): Update. Change return type.
1689 (get_symfile_segment_data): Update.
1690 * objfiles.h (struct objfile) <sf>: Now const.
1691 * somread.c (som_sym_fns): Now const. Update.
1692 * xcoffread.c (xcoff_sym_fns): Now const. Update.
1693 * mipsread.c (ecoff_sym_fns): Now const. Update.
1694 * machoread.c (macho_sym_fns): Now const. Update.
1695 * elfread.c (elf_sym_fns): Now const. Update.
1696 (elf_sym_fns_gdb_index): Likewise.
1697 * dbxread.c (aout_sym_fns): Now const. Update.
1698 * coffread.c (coff_sym_fns): Now const. Update.
1700 2010-09-30 Tom Tromey <tromey@redhat.com>
1702 * value.c (value_primitive_field): Take 'offset' into account for
1705 2010-09-30 Tom Tromey <tromey@redhat.com>
1707 * completer.c (count_struct_fields): Handle anonymous structs and
1709 (add_struct_fields): Likewise.
1711 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1713 Fix printing parameters of inlined functions.
1714 * ada-lang.c (is_known_support_routine)
1715 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1716 for find_frame_funname.
1717 * python/py-frame.c (frapy_name): Likewise.
1718 * stack.c (find_frame_funname): New parameter funcp. Update the
1719 function comment. Fill it in.
1720 (print_frame): New variable func. Initialize it by
1721 find_frame_funname. Print arguments only if FUNC is not NULL. Use
1722 FUNC as the parameter of print_args_stub.
1723 * stack.h (find_frame_funname): New parameter funcp. Remove the
1724 function declaration comment.
1726 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1729 * inferior.c (have_live_inferiors): New variables old_chain, inf and
1730 tp. Iterate INFERIOR_LIST and call target_has_execution.
1732 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1734 Fix GDB crash on inferior calls with self-referencing classes.
1735 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1738 2010-09-29 Doug Evans <dje@google.com>
1740 Workaround for gcc/45682.
1741 * dwarf2read.c (partial_die_info): New fields fixup_called,
1743 (guess_partial_die_structure_name): Renamed from guess_structure_name.
1744 Move definition next to use. Use linkage_name to determine if class
1745 is in a namespace. All callers updated.
1746 (fixup_partial_die): Return early if already called.
1747 Set fixup_called when done.
1748 (guess_full_die_structure_name): New function.
1749 (determine_prefix): Call it for class/struct/union dies if c++ and
1750 .debug_types section is present and parent is DW_TAG_compile_unit.
1752 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1754 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1755 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1757 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1759 * NEWS: Announce Ravenscar Profile support.
1761 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1762 Jerome Guitton <guitton@adacore.com>
1764 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1766 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1767 ravenscar-sparc-thread.o to gdb_target_obs.
1769 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1771 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1772 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1774 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1776 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1777 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1778 skip_main_prologue method.
1780 2010-09-27 Tom Tromey <tromey@redhat.com>
1782 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1783 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1784 Only emit a given psymbol once.
1785 (struct signatured_type_index_data) <psyms_seen>: New field.
1786 (write_one_signatured_type): Update.
1787 (cleanup_htab): New function.
1788 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1790 (save_gdb_index_command): Update index documentation.
1792 2010-09-27 Tom Tromey <tromey@redhat.com>
1794 * bcache.c (expand_hash_table): Use hash_function, not hash.
1796 2010-09-27 Tom Tromey <tromey@redhat.com>
1798 * gdb_wchar.h: Change minimum libiconv to 0x108.
1800 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1802 Fix lost siginfo_t for inferior calls.
1804 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1805 (save_inferior_thread_state): New variables regcache, gdbarch and
1806 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1807 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1809 (restore_inferior_thread_state): New variables regcache and gdbarch.
1810 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1811 REGCACHE. Free also SIGINFO_DATA.
1813 2010-09-24 Tom Tromey <tromey@redhat.com>
1815 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1817 (dw2_map_symbol_names): Likewise.
1819 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1821 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1822 discard_cleanups do_cleanups.
1824 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1828 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1829 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1830 si_code is < 0. Check for si_code == SI_TIMER before checking for
1833 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1835 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1837 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1839 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1840 debugging a core file.
1842 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1845 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1846 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1848 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1849 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1851 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1852 Remove the conditional.
1853 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1855 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1857 * main.c: Include objfiles.h.
1858 (captured_main): New variable objfile. Call
1859 load_auto_scripts_for_objfile for ALL_OBJFILES.
1861 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1863 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1866 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1868 * dwarf2read.c (scan_partial_symbols): Add handling of
1869 DW_TAG_constant DIEs.
1870 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1872 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1874 * configure.ac: Add support for --enable-gdbserver.
1875 * configure: Regenerate.
1877 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1880 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1881 'old_cleanups' reassignment.
1883 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1885 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1888 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1891 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1892 read_var_value and common_val_print and print a warning.
1894 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1896 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1897 keep the list in alphabetical order. Use longer e-mail address.
1899 2010-09-15 Tom Tromey <tromey@redhat.com>
1901 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1903 2010-09-15 Tom Tromey <tromey@redhat.com>
1905 * charset.c (iconv_open): New define.
1907 (iconv_close): Likewise.
1908 (phony_iconv_open): Add "phony_" prefix.
1909 (phony_iconv_close): Likewise.
1910 (phony_iconv): Likewise.
1911 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1912 Change how INTERMEDIATE_ENCODING is defined.
1914 2010-09-15 Doug Evans <dje@google.com>
1916 * dwarf2read.c (struct die_info): Fix comment.
1918 2010-09-15 Alan Modra <amodra@gmail.com>
1921 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1922 than setting SEC_NEVER_LOAD on sections that need not be copied.
1924 2010-09-14 Tom Tromey <tromey@redhat.com>
1926 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1927 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1929 * symfile.h (extend_psymbol_list): Remove.
1930 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1931 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1932 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1934 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1936 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1939 2010-09-14 Tom Tromey <tromey@redhat.com>
1942 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1943 for unrecognized frame base expression.
1945 2010-09-14 Tom Tromey <tromey@redhat.com>
1948 * value.c (value_static_field): Use value_of_variable.
1950 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1952 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1953 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1955 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1958 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1961 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1963 * NEWS: Add x86-lynxos to the list of platforms supported by
1966 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1968 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1970 2010-09-13 Tom Tromey <tromey@redhat.com>
1972 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1974 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1976 * i386-tdep.c (i386_ymm_type): Set type name to
1977 builtin_type_vec256i.
1979 2010-09-12 Michael Snyder <msnyder@vmware.com>
1981 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1983 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1985 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1987 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1989 * amd64-tdep.c (amd64_register_name): Removed.
1990 (amd64_init_abi): Don't call set_gdbarch_register_name.
1992 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1994 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1996 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1997 Paul Bolle <pebolle@tiscali.nl>
1999 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
2000 * cli-logging.c (struct saved_output_files) <targerr>: New.
2001 (set_logging_redirect, pop_output_files, handle_redirections):
2002 Redirect also gdb_stdtargerr.
2003 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
2005 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
2006 also gdb_stdtargerr.
2007 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
2008 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
2009 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
2010 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
2011 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
2014 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
2016 * hppa-tdep.c (unwind_command): Use host_address_to_string function
2017 to display a host address.
2018 * monitor.c (monitor_read_memory): Likewise.
2019 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
2021 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
2023 * coffread.c (struct coff_symbol): Change c_value type from `long' to
2024 `CORE_ADDRESS' as it might contain target addresses.
2026 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
2028 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
2029 before cast to pointer to avoid warning.
2031 2010-09-09 Kevin Buettner <kevinb@redhat.com>
2033 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
2036 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
2038 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
2039 anonymous class partial DIEs.
2041 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2043 * dwarf2read.c (dwarf2_compute_name): Check that the first
2044 argument is a pointer.
2046 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2048 * dwarf2read.c (read_func_scope, read_structure_type)
2049 (read_common_block): Check for a NULL return from new_symbol.
2051 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2053 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
2055 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2057 * dwarf2read.c (read_structure_type): Move processing of
2058 fields and member functions from here...
2059 (process_structure_scope): ... to here.
2061 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2063 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
2065 (gnuv3_make_method_ptr): Likewise.
2067 2010-09-08 Tom Tromey <tromey@redhat.com>
2069 * breakpoint.c (create_breakpoint): Add missing _().
2071 2010-09-08 Doug Evans <dje@google.com>
2073 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
2075 2010-09-08 Tom Tromey <tromey@redhat.com>
2078 2010-09-01 Tom Tromey <tromey@redhat.com>
2079 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
2080 symtab.h: Revert earlier change.
2082 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
2084 * psymtab.c (add_psymbol_to_bcache): Initialize
2086 memset psymbol.ginfo.value to 0.
2088 2010-09-06 Pedro Alves <pedro@codesourcery.com>
2090 * infrun.c (resume): Extend comment on ignoring single-step
2091 requests on vfork parents waiting for a vfork-done.
2093 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2094 Pedro Alves <pedro@codesourcery.com>
2096 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
2098 * fork-child.c (startup_inferior) <resume_signal>: Use enum
2100 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
2101 calling strsignal. Use enum target_signal type for saved_signo.
2102 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
2103 (linux_nat_wait_1): Use enum target_signal type for signo. Use
2104 target_signal_to_host before calling strsignal.
2105 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
2108 2010-09-06 Pedro Alves <pedro@codesourcery.com>
2109 Jan Kratochvil <jan.kratochvil@redhat.com>
2111 * common/signals.c (ANY): Remove.
2112 (SET): No longer use ANY.
2114 2010-09-06 Yao Qi <yao@codesourcery.com>
2116 * infrunc(resume): When inferior is waiting_for_vfork_done,
2117 clear step and don't use displaced stepping.
2119 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
2121 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
2124 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2126 Code cleanup - split print_stop_reason.
2127 * infrun.c (enum inferior_stop_reason): Remove.
2128 (print_stop_reason): Remove by splitting into ...
2129 (print_exited_reason, print_signal_exited_reason)
2130 (print_no_history_reason, print_signal_received_reason)
2131 (print_end_stepping_range_reason): ... these new functions. Update
2132 the preceding comment.
2133 (handle_inferior_event): Change the calls to print_exited_reason,
2134 print_signal_exited_reason, print_no_history_reason,
2135 print_signal_received_reason, print_end_stepping_range_reason.
2136 (handle_step_into_function, handle_step_into_function_backward):
2137 Change the calls to print_end_stepping_range_reason.
2139 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2141 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
2142 * cli-out.c: Include vec.h.
2143 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
2144 variable stream, initialize it, use it.
2145 (cli_redirect): New function comment. Replace the stream and
2146 original_stream fields by the new streams field. Remove the
2147 original_stream != NULL conditional, assert error on NULL instead.
2148 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
2149 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
2150 original_stream fields by the new streams field.
2151 (cli_out_set_stream): Replace the stream field by the new streams
2153 * cli-out.h: Include vec.h.
2154 (ui_filep): New typedef, call DEF_VEC_P for it.
2155 (struct cli_ui_out_data): Replace the stream and original_stream
2156 fields by the new streams field.
2157 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
2158 NULL first. Extend the comment.
2159 (handle_redirections): Call ui_out_redirect with output.
2160 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
2161 calls outside of the TRY_CATCH block.
2163 2010-09-03 Joel Brobecker <brobecker@adacore.com>
2167 2010-09-02 Joel Brobecker <brobecker@adacore.com>
2169 Back out the following change:
2170 | 2010-06-29 Hui Zhu <teawater@gmail.com>
2171 | * record.c (set_record_pic_cmdlist,
2172 | show_record_pic_cmdlist): New variables.
2173 | (set_record_pic_command,
2174 | show_record_pic_command): New functions.
2175 | (record_pic_function, record_pic_line, record_pic_enum,
2176 | set_record_pic_type, record_pic_hide_nofunction,
2177 | record_pic_hide_nosource, record_pic_hide_same): New variables.
2178 | (record_pic_fputs): New function.
2179 | (function_list, node_list, edge_list): New struct.
2180 | (function_list, node_list, edge_list): New variables.
2181 | (record_pic_cleanups, record_pic_node,
2182 | record_pic_edge, cmd_record_pic): New functions.
2183 | (_initialize_record): Add new commands for record pic.
2185 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
2187 * config.in, configure: Regenerated.
2188 * configure.ac: Check for waitpid.
2189 * ser-pipe.c (pipe_close): Wait for the program to exit.
2191 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2193 * cli/cli-logging.c: Include gdb_assert.h.
2194 (set_logging_overwrite): New function.
2195 (logging_redirect): New comment.
2196 (logging_no_redirect_file, set_logging_redirect)
2197 (pop_output_files) <logging_no_redirect_file>: New.
2198 (handle_redirections) <!logging_redirect>: New variable
2199 no_redirect_file. Remove file autoclose for tee_file_new. No longer
2200 discard cleanup for the close of former OUTPUT. Set
2201 LOGGING_NO_REDIRECT_FILE.
2202 (handle_redirections) <logging_redirect>: gdb_assert
2203 LOGGING_NO_REDIRECT_FILE.
2204 (show_logging_command) <logging_redirect handling>: Adjust messages
2205 for SAVED_FILENAME not NULL.
2206 (_initialize_cli_logging): Install set_logging_overwrite and
2207 set_logging_redirect.
2209 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2211 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
2213 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2215 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
2216 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
2217 add $(GDB_WARN_CFLAGS_NO_FORMAT).
2218 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
2220 2010-09-02 Yao Qi <yao@codesourcery.com>
2222 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
2223 number from a WIFSIGNALED status.
2225 2010-09-01 Tom Tromey <tromey@redhat.com>
2227 * symtab.h (lookup_type_symbol): Declare.
2228 * symtab.c (lookup_symbol_in_language_full): Rename from
2229 lookup_symbol_in_language. Add 'for_type' argument.
2230 (lookup_symbol_in_language): New function.
2231 (lookup_type_symbol): Likewise.
2232 (lookup_symbol_aux): Add 'for_type' argument.
2233 (match_symbol_aux): New function.
2234 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
2235 (match_transparent_type): New function.
2236 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
2237 * symfile.h (struct quick_symbol_functions)
2238 <pre_expand_symtabs_matching>: Remove.
2239 <expand_one_symtab_matching>: New field.
2240 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
2241 (pre_expand_symtabs_matching_psymtabs): Remove.
2242 (psym_functions): Update.
2243 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
2244 * dwarf2read.c (dw2_lookup_symbol): Update comment.
2245 (dw2_pre_expand_symtabs_matching): Remove.
2246 (dw2_expand_one_symtab_matching): New function.
2247 (dwarf2_gdb_index_functions): Update.
2249 2010-09-01 Joel Brobecker <brobecker@adacore.com>
2251 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
2253 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
2255 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
2256 as a feature reported by -list-target-features.
2258 2010-09-01 Joel Brobecker <brobecker@adacore.com>
2260 * features/Makefile (WHICH): Add rs6000/powerpc-32.
2261 (powerpc-32.o, powerpc-32.c): New rules.
2262 (clean): Also remove powerpc-32.c.
2263 * regformats/rs6000/powerpc-32.dat: Generate.
2265 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2267 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
2268 psymbol_bcache_init.
2269 * psymtab.h (psymbol_bcache_init): New function prototype.
2270 (psymbol_bcache_free): New function prototype.
2271 (psymbol_bcache_get_bcache): New function prototype.
2272 * psymtab.c (psymbol_bcache_init): New function.
2273 (psymbol_bcache_free): New function.
2274 (psymbol_bcache_full): New function.
2275 (psymbol_bcache_get_bcache): New function.
2276 (add_psymbol_to_bcache): use psymbol_bcache_full.
2277 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
2279 * symmisc.c (print_symbol_bcache_statistics): Updated.
2280 (print_objfile_statistics): Updated.
2281 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
2283 (free_objfile): Use psymbol_bcache_free.
2285 2010-08-31 Tom Tromey <tromey@redhat.com>
2288 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
2289 Don't set TYPE_NAME on the type.
2291 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2293 * infrun.c (set_exec_direction_func): Error out if target does not
2294 support reverse execution.
2296 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2298 Make linux_get_siginfo_type `type *' unique.
2299 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
2300 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
2301 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
2302 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
2303 (_initialize_linux_tdep): New.
2305 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2308 * defs.h (find_memory_region_ftype): New typedef.
2309 (exec_set_find_memory_regions): Use it.
2310 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
2311 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
2312 * gcore.c (objfile_find_memory_regions): Likewise.
2313 * gnu-nat.c (gnu_find_memory_regions): Likewise.
2314 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
2315 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
2316 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
2317 find_memory_region_ftype.
2318 (insert_dbx_link_bpt_in_region): Likewise.
2319 (iterate_over_mappings): Likewise. Drop the comment part about the
2321 (find_memory_regions_callback): Use find_memory_region_ftype.
2322 (proc_find_memory_regions): Likewise.
2323 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
2324 find_memory_region_ftype.
2325 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
2326 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
2328 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2330 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
2331 'static partial_symbol psymbol'.
2332 (psymbol_hash): New function.
2333 (psymbol_compare): New function.
2334 * bcache.c (hash_continue): New.
2335 (hash): Use hash_continue.
2336 * bcache.c: Add hash_function and compare_function
2337 pointers to bcache struct.
2338 (bcache_full): Use bcache->hash_function, and
2339 bcache->compare_function.
2340 (bcache_compare): New function.
2341 (bcache_xmalloc): Take hash_function and
2342 compare_function arguments and initialize the
2345 * objfiles.c (allocate_objfile): Updated.
2346 * symfile.c (reread_symbols): Updated.
2347 * python/py-type.c (typy_richcompare): Updated.
2349 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
2350 Tom Tromey <tromey@redhat.com>
2353 * python/py-value.c (valpy_get_dynamic_type): New function.
2354 (value_object_getset): Add "dynamic_type".
2355 (valpy_get_type): Fail on error.
2357 2010-08-30 Yao Qi <yao@codesourcery.com>
2359 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
2360 (arm_linux_syscall_next_pc): New.
2361 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
2362 (arm_linux_init_abi): Initialize syscall_next_pc.
2363 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
2364 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
2365 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
2366 Declare arm_frame_is_thumb.
2368 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2371 * breakpoint.c (bpstat_alloc): Remove unused prototype.
2372 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
2374 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
2375 calls of bpstat_alloc. Remove explicit bs chain termination.
2377 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2380 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
2381 (my_waitpid): Likewise.
2383 2010-08-27 Doug Evans <dje@google.com>
2385 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
2388 2010-08-27 Tom Tromey <tromey@redhat.com>
2390 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
2391 TYPE_FIELD_IGNORE_BITS.
2393 2010-08-27 Doug Evans <dje@google.com>
2395 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
2396 the order they're defined in. munmap .debug_types buffer.
2398 2010-08-26 Doug Evans <dje@google.com>
2400 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
2401 (dw2_forget_cached_source_info): Rename local cu to per_cu.
2402 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
2403 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
2404 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
2405 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
2406 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
2407 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
2408 (write_psymtabs_to_index): Ditto.
2410 2010-08-26 Pedro Alves <pedro@codesourcery.com>
2412 * NEWS: Mention libthread_db debugging with core files.
2414 2010-08-26 Doug Evans <dje@google.com>
2416 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
2417 forward decl. Pass pst->dirname to dwarf_decode_lines.
2418 (psymtab_include_file_name): New function.
2419 (dwarf_decode_lines): Call it. Update comments.
2421 2010-08-25 Pedro Alves <pedro@codesourcery.com>
2423 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
2424 compilation unit being different from target die's.
2426 2010-08-24 Doug Evans <dje@google.com>
2429 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
2430 debug_types_type_hash.
2431 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
2433 (lookup_die_type): Renamed from tag_type_to_tag. First look in
2434 appropriate type_hash table. All callers updated.
2435 (allocate_signatured_type_table): Renamed from
2436 allocate_signatured_type_hash_table. All callers updated.
2437 (create_signatured_type_table_from_index): Renamed from
2438 create_signatured_type_hash_from_index. All callers updated.
2439 (read_die_type): Add comment. Move actual reading to ...
2440 (read_die_type_1): ... here. New function.
2441 (follow_die_ref_or_sig): Tweak comment.
2442 (set_die_type): Rewrite to use appropriate choice of
2443 debug_info_type_hash or debug_types_type_hash.
2444 (get_die_type_at_offset): New function.
2445 (get_die_type): Call it.
2447 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2449 * python/py-type.c (typy_richcompare): Initialize worklist.
2451 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
2452 Kazu Hirata <kazu@codesourcery.com>
2453 Jonathan Larmour <jifl@eCosCentric.com>
2455 * arm-tdep.c: Include features/arm-with-m.c.
2456 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
2458 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
2459 Check is_m after force-mode.
2460 (arm_gdbarch_init): Check the binary before the target description.
2461 Add check for M profile attribute. If we have an M-profile device,
2462 but no target register description, use arm-with-m. Recognize the
2463 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
2464 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
2465 * arm-tdep.h (XPSR_T): Define.
2466 (struct gdbarch_tdep): Add is_m member.
2467 * features/arm-m-profile.xml, features/arm-with-m.c,
2468 features/arm-with-m.xml: New files.
2470 2010-08-23 Doug Evans <dje@google.com>
2472 * dwarf2read.c (read_structure_type): Add comment.
2473 (read_enumeration_type): Add comment.
2474 (process_enumeration_scope): Move definition of some locals
2475 closer to their use.
2476 (read_namespace_type): Add comment.
2477 (set_die_type): Fix typo in comment.
2479 2010-08-23 Tom Tromey <tromey@redhat.com>
2482 * python/py-value.c: Include expression.h.
2483 (valpy_do_cast): New function.
2484 (valpy_cast): Use it.
2485 (valpy_dynamic_cast): New function.
2486 (valpy_reinterpret_cast): Likewise.
2487 (value_object_methods): Add dynamic_cast, reinterpret_cast.
2489 2010-08-23 Tom Tromey <tromey@redhat.com>
2492 * python/py-value.c (valpy_nonzero): Don't throw error for other
2495 2010-08-23 Tom Tromey <tromey@redhat.com>
2498 * python/py-type.c: Include bcache.h, vec.h.
2499 (struct type_equality_entry): New.
2500 (compare_strings): New function.
2501 (check_types_equal): Likewise.
2502 (check_types_worklist): Likewise.
2503 (typy_richcompare): Likewise.
2504 (type_object_type): Set tp_richcompare field.
2506 2010-08-23 Tom Tromey <tromey@redhat.com>
2509 * python/py-type.c (typy_fields): Call check_typedef.
2510 (typy_template_argument): Add TRY_CATCH.
2512 2010-08-23 Tom Tromey <tromey@redhat.com>
2515 * python/py-type.c (typy_array): New function.
2516 (type_object_methods): Add "array".
2518 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2520 * python/python.c: Include "serial.h".
2521 (gdbpy_event_fds): Change type to `struct serial *' a array from
2523 (gdbpy_run_events): Change parameters. Use serial_readchar in
2525 (gdbpy_post_event): Use serial_write in place of write.
2526 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
2527 serial_async in place of add_file_handler.
2529 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2531 * serial.h (gdb_pipe, serial_pipe): Declare.
2532 * serial.c (serial_interface_lookup): Take a const char pointer.
2533 (serial_fdopen): Rename to ...
2534 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
2535 Call the OPS' fdopen function if there is one.
2536 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
2538 (struct serial_ops) <fdopen>: New field.
2540 * ser-mingw.c (free_pipe_state):
2541 (free_pipe_state): Close output on non-pex pipes.
2542 (pipe_windows_fdopen): New.
2544 (_initialize_ser_windows): Register pipe_windows_fdopen.
2545 * ser-go32.c (gdb_pipe): New.
2546 * ser-pipe.c (pipe_close): Close file descriptor even if there's
2551 2010-08-20 Keith Seitz <keiths@redhat.com>
2554 * dwarf2read.c (struct delayed_method_info): New struct.
2555 (struct dwarf2_cu): Add vector method_list.
2556 (scan_partial_symbols): Count methods for union, class, structure,
2557 and interface types.
2558 (add_to_method_list): New function.
2559 (free_delayed_list): New function.
2560 (compute_delayed_physnames): New function.
2561 (process_full_comp_unit): Make a cleanup for the CU's delayed
2562 physname list, compute the delayed physnames, and free the
2564 (dwarf2_add_member_fn): For C++ and Java, delay the computation
2565 of the physname until after the CU is read.
2567 * dwarf2read.c (read_structure_type): Check if the current
2568 DIE's type was already completed after dwarf2_full_name
2571 2010-08-19 Stan Shebs <stan@codesourcery.com>
2573 * NEWS: Mention some additional changes.
2575 2010-08-19 Tom Tromey <tromey@redhat.com>
2577 * Makefile.in (install-python): Add DESTDIR.
2579 2010-08-19 Doug Evans <dje@google.com>
2582 * parser-defs.h (parse_float, parse_c_float): Declare.
2583 * parse.c (parse_float, parse_c_float): New function.
2584 * c-exp.y (parse_number): Call parse_c_float.
2585 * objc-exp.y (parse_number): Ditto.
2586 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
2587 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
2589 2010-08-19 Joel Brobecker <brobecker@adacore.com>
2591 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
2592 the arguments in the correct order.
2593 * symtab.c (maybe_add_partial_symtab_filename): Declare
2594 the arguments in the correct order.
2596 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2598 * varobj.c (varobj_create): Replace variable old_fi with old_id,
2599 initialize it by null_frame_id, wrap its usage by get_frame_id,
2600 frame_id_p and frame_find_by_id.
2602 2010-08-18 Tom Tromey <tromey@redhat.com>
2605 * configure: Rebuild.
2606 * configure.ac: Add install-python to CONFIG_INSTALL.
2607 * Makefile.in (install-python): New.
2609 2010-08-18 Doug Evans <dje@google.com>
2611 * gdb_assert.h (gdb_assert_not_reached): New macro.
2612 (gdb_assert_fail): Fix typo in comment.
2613 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
2615 * darwin-nat.c (darwin_check_new_threads): Ditto.
2616 * dwarf2read.c (dwarf2_get_section_info): Ditto.
2617 (munmap_section_buffer): Ditto.
2618 * m32c-tdep.c (make_types): Ditto.
2619 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2620 * macroexp.c (get_character_constant): Ditto.
2621 (get_string_literal): Ditto.
2622 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2623 (mep_pseudo_cr_index, mep_register_type): Ditto.
2624 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2625 (mep_get_insn, mep_analyze_prologue): Ditto.
2626 * objfiles.c (qsort_cmp): Ditto.
2627 * prologue-value.c (pv_is_identical): Ditto.
2628 * record.c (record_get_loc): Ditto.
2629 * value.c (value_static_field): Ditto.
2630 * xtensa-tdep.c (call0_track_op): Ditto.
2632 2010-08-18 Tom Tromey <tromey@redhat.com>
2635 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2636 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
2637 name-copying lower. Document exception behavior.
2638 * completer.c (expression_completer): Catch exceptions from
2639 parse_field_expression.
2641 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2645 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2646 workaround on core files.
2647 (try_thread_db_load_1): Don't try enabling thread event reporting
2649 (thread_db_load): Allow thread_db on core files.
2650 (attach_thread): Don't check thread signals on core files, nor try
2651 really attaching to the thread, nor enabling thread event event
2653 (thread_db_detach): Don't try disabing thread event reporting or
2654 removing thread event breakpoints when debugging a core file.
2655 (find_new_threads_callback): Don't try enabling thread event
2656 reporting on core files.
2657 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2658 debugging a core file.
2659 (thread_db_find_new_threads): Don't update thread
2660 cores (processors) when debugging a core (dump).
2662 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2666 * corelow.c (add_to_thread_list): Don't use
2667 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
2668 (get_core_register_section): Don't use
2669 gdbarch_core_reg_section_encodes_pid.
2671 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2672 * gdbarch.h, gdbarch.c: Regenerate.
2673 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2674 gdbarch_core_reg_section_encodes_pid.
2675 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2676 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2677 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2679 2010-08-18 Yao Qi <yao@codesourcery.com>
2681 * MAINTAINERS : Add myself under Write After Approval.
2683 2010-08-17 Tom Tromey <tromey@redhat.com>
2685 * NEWS: Mention template parameter support.
2687 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2689 PR breakpoints/11371
2691 * breakpoint.c (decref_bp_location): Assert the reference count is
2694 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2696 PR breakpoints/11371
2698 * breakpoint.c (breakpoint_init_inferior): Decrement the
2699 location's reference count instead of deleting right away.
2700 (bpstat_free): Decrement the location's reference count. Make
2702 (bpstat_copy): Increment the location's reference count.
2703 (bpstat_find_breakpoint): Adjust.
2704 (bpstat_num): Adjust.
2705 (print_it_typical): Adjust. Use the breakpoint pointer in the
2706 bpstat instead of the location's owner.
2707 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2708 Adjust to record the location's owner in the bpstat.
2709 (watchpoint_check): Use the breakpoint pointer in the bpstat
2710 instead of the location's owner.
2711 (bpstat_check_breakpoint_conditions): Don't handle
2712 bp_watchpoint_scope here. Use the breakpoint pointer in the
2713 bpstat instead of the location's owner.
2714 (bpstat_stop_status): Defer inferior function calls to after
2715 building the bpstat list. Handle bp_watchpoint_scope here. Use
2716 the breakpoint pointer in the bpstat instead of the location's
2718 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2719 the location's owner.
2720 (free_bp_location): Don't walk bpstats clearing locations.
2721 (incref_bp_location): New.
2722 (decref_bp_location): New.
2723 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2724 instead of the location's owner.
2725 (update_global_location_list): Clear the location's owner, and
2726 decrement the location's reference count instead of deleting it
2728 (breakpoint_retire_moribund): Decrement the location's reference
2729 count instead of deleting it right away.
2730 (bpstat_remove_bp_location): Delete.
2731 (bpstat_remove_breakpoint): New.
2732 (bpstat_remove_bp_location_callback): Delete.
2733 (bpstat_remove_breakpoint_callback): New.
2734 (delete_breakpoint): Iterate over all threads' stop_bpstat's
2735 clearing references to the breakpoint that is being deleted.
2737 * breakpoint.h (struct bp_location) <refc>: New field.
2738 <owner>: Update comments.
2739 (bpstat_free): Delete declaration.
2740 (struct bpstats): Change the type of the breakpoint_at field to
2741 struct breakpoint point, from struct bp_location pointer. Add new
2742 field bp_location_at.
2744 2010-08-16 Tom Tromey <tromey@redhat.com>
2748 2010-08-16 Tom Tromey <tromey@redhat.com>
2750 * NEWS: Mention watch -location.
2752 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2754 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2755 EXP_STRING_REPARSE to EXP_STRING.
2756 (watch_command_1): Set also EXP_STRING_REPARSE.
2757 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2758 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2759 Update comment for exp_string.
2761 2010-08-16 Tom Tromey <tromey@redhat.com>
2763 * value.c (release_value): Clear 'next' pointer.
2764 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2765 (watch_command_wrapper): Update.
2766 (watch_maybe_just_location): New function.
2767 (watch_command): Update.
2768 (rwatch_command_wrapper): Update.
2769 (rwatch_command): Update.
2770 (awatch_command_wrapper): Update.
2771 (awatch_command): Update.
2772 (check_for_argument): New function.
2773 (_initialize_breakpoint): Update help text.
2775 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2777 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2778 typedef'ed function types correctly.
2780 2010-08-13 Tom Tromey <tromey@redhat.com>
2782 * python/python-internal.h (gdbpy_get_hook_function): Don't
2785 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2787 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
2790 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
2792 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2793 the format strings to be compatible with Python 2.4.
2795 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2797 Easier and more stubborn MI memory read commands.
2799 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2800 and data-write-memory-bytes.
2801 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2802 (mi_cmd_data_write_memory_bytes): New.
2803 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2804 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2806 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2807 * target.c (target_read_until_error): Remove.
2808 (read_whatever_is_readable, free_memory_read_result_vector)
2809 (read_memory_robust): New.
2810 * target.h (target_read_until_error): Remove.
2811 (struct memory_read_result, free_memory_read_result_vector)
2812 (read_memory_robust): New.
2814 2010-08-13 Hui Zhu <teawater@gmail.com>
2816 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2817 (read_comp_unit): Initialize back_to.
2819 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2820 Pedro Alves <pedro@codesourcery.com>
2822 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2823 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2824 (struct partial_die_info) <has_template_arguments>: New field.
2825 <num_attrs>: Change type to unsigned char.
2826 <building_fullname>: New field.
2827 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2828 allocate a CU if we don't have one already. Add a cleanup for the
2830 (partial_die_full_name): Handle template arguments not in
2832 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2833 (load_full_comp_unit): Only allocate a CU if we don't have one
2835 (do_ui_file_peek_last): New.
2836 (dwarf2_compute_name): Handle template parameters not in
2838 (read_comp_unit): Read and free abbrevs if not read yet.
2839 (load_partial_dies): Handle template arguments not in DW_AT_name.
2840 (find_partial_die): If we have a CU, but no a partial dies yet,
2841 also read in the CU.
2842 (dwarf2_const_value_attr): New, abstracted out from
2844 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2845 dwarf2_const_value_attr.
2846 (determine_prefix): Detect and break loops created by RCVT's debug
2848 (maybe_queue_comp_unit): Bail out early if reading partial
2850 (follow_die_offset): Load full CU if we have no dies.
2851 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2852 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2854 2010-08-11 Tom Tromey <tromey@redhat.com>
2855 Phil Muldoon <pmuldoon@redhat.com>
2857 * python/python.c (gdbpy_run_events): New function.
2858 (gdbpy_post_event): Likewise.
2859 (gdbpy_initialize_events): Likewise.
2860 (_initialize_python): Call gdbpy_initialize_events.
2862 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
2864 * gdb/valarith.c (vector_binop): New function.
2865 (scalar_binop): Likewise.
2866 (value_binop): Call scalar_binop or vector_binop depending on the types.
2867 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2868 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2870 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2872 2010-08-11 Brad Roberts <braddr@puremagic.com>
2874 * d-lang.c (extract_identifiers): Handle multiple digits.
2876 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2879 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2880 Rename to dummy_frame_unwind.
2881 (dummy_frame_unwind): Remove.
2882 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2883 * frame-unwind.c (frame_unwind_init): Use address of
2884 dummy_frame_unwind and inline_frame_unwind.
2885 * frame.c (create_sentinel_frame): Use address of
2886 sentinel_frame_unwind.
2887 * inline-frame.c (inline_frame_unwinder): Rename to
2888 inline_frame_unwind.
2889 (inline_frame_unwind): Remove.
2890 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2891 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2892 sentinel_frame_unwind.
2893 (sentinel_frame_unwind): Remove.
2894 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2897 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2900 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2901 and returned value. New comment from frame-unwind.h.
2902 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2904 * frame.c (get_frame_id, frame_unwind_register_value)
2905 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2906 (get_frame_type, frame_unwind_arch): Do not use the return value of
2907 frame_unwind_find_by_frame.
2909 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
2910 Thiago Jung Bauermann <bauerman@br.ibm.com>
2911 Tom Tromey <tromey@redhat.com>
2913 * python/python.c (gdbpy_solib_address): New function.
2914 (gdbpy_decode_line): Likewise.
2916 2010-08-10 Tom Tromey <tromey@redhat.com>
2918 Revert gdb-add-index addition:
2919 * Makefile.in (install-only): Don't install gdb-add-index.
2920 * gdb-add-index.sh: Remove.
2922 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2924 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2925 `target_has_execution' check with `to_has_memory' check.
2926 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2927 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2928 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2930 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2932 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2933 (resume_siggnal, resume_step): Move these static globals...
2934 (struct sim_inferior_data): ...into this new struct.
2935 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2937 (gdb_callback, callbacks_initialized): Move these globals to
2938 a point earlier in the file.
2939 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2940 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2941 (gdbsim_close_inferior, gdbsim_resume_inferior)
2942 (gdbsim_stop_inferior): New functions.
2943 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2945 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2946 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2947 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2948 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2949 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2950 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2951 new local variable `sim_data' in each of these functions. Use
2952 `sim_data' to reference former globals `program_loaded',
2953 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2955 (gdbsim_open): Remove local variable `argv'. Put results of call
2956 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2957 make a cleanup for it. Free it though when a sim instance cannot
2959 (gdbsim_close): Free sim_argv and null it out as appropriate.
2960 Close sim instances in all inferiors.
2961 (gdbsim_cntrl_c): Stop all inferiors.
2963 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2965 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2967 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2968 function after symbol construction is complete.
2969 Do the same for template symbol addition to template_symbols list.
2971 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2973 * symtab.c (symbol_get_demangled_name): Remove assertion and
2974 return NULL when language_specific.cplus_specific is not initialized.
2975 * stabsread.c (define_symbol): Set the name before calling
2976 cp_scan_for_anonymous_namespaces.
2978 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2980 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2981 SYMBOL_SET_LANGUAGE.
2982 (symbol_init_language_specific): Renamed to symbol_set_language.
2983 * symtab.c (symbol_init_language_specific): Removed redundant check
2985 Renamed to symbol_set_language.
2986 * stabsread.c (define_symbol): Updated.
2987 (read_enum_type): Updated
2988 * psymtab.c (add_psymbol_to_bcache): Updated.
2989 * minsyms.c (install_minimal_symbols): Updated.
2990 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2991 SYMBOL_LANGUAGE to set the language.
2992 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2993 * mdebugread.c (new_symbol): Ditto.
2994 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2995 * dwarf2read.c (new_symbol_full): Ditto.
2996 * jv-lang.c (add_class_symbol): Ditto.
2998 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3000 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
3001 (make_cleanup_restore_page_info)
3002 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
3003 * gdbcmd.h (execute_command_to_string): New declaration.
3004 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
3005 (make_cleanup_restore_ui_file): Move to utils.c
3006 (execute_gdb_command) <to_string>: Move ...
3007 * top.c (execute_command_to_string): ... here. Call
3008 set_batch_flag_and_make_cleanup_restore_page_info.
3009 * utils.c (make_cleanup_restore_integer): New source file blank line.
3010 (make_cleanup_restore_uinteger): New.
3011 (struct restore_ui_file_closure, do_restore_ui_file)
3012 (make_cleanup_restore_ui_file): Move here from python/python.c.
3013 (init_page_info) <batch_flag>
3014 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
3015 (set_batch_flag_and_make_cleanup_restore_page_info): New.
3017 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
3019 * thread.c (add_thread_silent): Use null_ptid instead of
3020 minus_one_ptid while getting rid of stale inferior_ptid.
3022 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
3024 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
3025 Throughout, call read_encoded_value with ptr_size rather than addr_size.
3026 (decode_frame_entry_1): Remove redundant setting of
3027 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
3028 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
3029 on examined frame section. Add comment to explain why.
3030 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
3031 comment to explain usage.
3032 * gdbarch.c: Regenerate.
3033 * gdbarch.h: Regenerate.
3035 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
3037 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3040 * varobj.c (varobj_create): Move variables fi, old_fi and block to
3043 2010-08-05 Pedro Alves <pedro@codesourcery.com>
3045 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
3046 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
3047 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
3048 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
3049 linux-tdep.o to gdb_target_obs.
3051 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
3053 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
3056 2010-08-05 Hui Zhu <teawater@gmail.com>
3058 * mips-linux-tdep.c(regset.h): New include.
3059 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
3060 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
3061 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
3062 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
3063 mips_linux_regset_from_core_section): New functions.
3064 (fetch_core_registers, regset_core_fns): Deleted.
3065 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
3066 Deleted regset_core_fns.
3067 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
3068 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
3069 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
3072 2010-08-04 Pedro Alves <pedro@codesourcery.com>
3074 * s390-tdep.c: Include linux-tdep.h.
3075 (s390_gdbarch_init): Call linux_init_abi.
3077 2010-08-04 Pedro Alves <pedro@codesourcery.com>
3079 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
3080 instead of printing "Thread" here.
3081 * linux-tdep.c: Include inferior.h.
3082 (linux_core_pid_to_str): New.
3083 (linux_init_abi): New.
3084 * linux-tdep.h (linux_init_abi): Declare.
3085 * alpha-linux-tdep.c: Include linux-tdep.h.
3086 (alpha_linux_init_abi): Call linux_init_abi.
3087 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
3088 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
3089 * frv-linux-tdep.c: Include linux-tdep.h
3090 (frv_linux_init_abi): Call linux_init_abi.
3091 * hppa-linux-tdep.c: Include linux-tdep.h
3092 (hppa_linux_init_abi): Call linux_init_abi.
3093 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
3094 * ia64-linux-tdep.c: Include linux-tdep.h.
3095 (ia64_linux_init_abi): Call linux_init_abi.
3096 * m32r-linux-tdep.c: Include linux-tdep.h.
3097 (m32r_linux_init_abi): Call linux_init_abi.
3098 * m68klinux-tdep.c: Include linux-tdep.h.
3099 (m68k_linux_init_abi): Call linux_init_abi.
3100 * microblaze-linux-tdep.c: Include linux-tdep.h.
3101 (microblaze_linux_init_abi): Call linux_init_abi.
3102 * mips-linux-tdep.c: Include linux-tdep.h.
3103 (mips_linux_init_abi): Call linux_init_abi.
3104 * mn10300-linux-tdep.c: Include linux-tdep.h.
3105 (am33_linux_init_osabi): Call linux_init_abi. Rename the
3106 'gdbinfo' parameter to 'info'.
3107 * ppc-linux-tdep.c: Include linux-tdep.h.
3108 (ppc_linux_init_abi): Call linux_init_abi.
3109 * sh-linux-tdep.c: Include linux-tdep.h.
3110 (sh_linux_init_abi): Call linux_init_abi.
3111 * sparc-linux-tdep.c: Include linux-tdep.h.
3112 (sparc32_linux_init_abi): Call linux_init_abi.
3113 * sparc64-linux-tdep.c: Include linux-tdep.h.
3114 (sparc64_linux_init_abi): Call linux_init_abi.
3115 * xtensa-linux-tdep.c: Include linux-tdep.h.
3116 (xtensa_linux_init_abi): Call linux_init_abi.
3117 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
3118 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
3121 2010-08-03 Doug Evans <dje@google.com>
3123 * breakpoint.c (bpdisp_text): Constify bpdisps.
3124 * solib-svr4.c (solib_break_names): Constify.
3125 (bkpt_names, main_name_list): Constify.
3126 (match_main): Constify soname arg.
3127 (bfd_lookup_symbol): Remove unnecessary forward decl.
3128 Constify symname arg.
3129 (enable_break): Constify bkpt_namep.
3130 * symtab.c (search_symbols): Constify types, types2, types3, types4.
3131 (symtab_symbol_info): Constify classnames.
3133 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
3135 * NEWS: Document Python value inferior function calls.
3137 2010-08-02 Doug Evans <dje@google.com>
3139 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
3141 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3143 * linux-thread-db.c (libthread_db_debug): New variable.
3144 (thread_db_find_new_threads_silently): Control verbosity with it.
3145 (try_thread_db_load_1, try_thread_db_load): Likewise.
3146 (find_new_threads_once): Likewise.
3147 (_initialize_thread_db): Set/show it.
3149 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3151 * common/signals.c (signals): Move the content to signals.def.
3152 Include it. Remove the INDENT comments.
3154 2010-07-30 Tom Tromey <tromey@redhat.com>
3156 * Makefile.in (install-only): Install gdb-add-index.
3157 * gdb-add-index.sh: New file.
3159 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
3161 * MAINTAINERS: Add myself for write after approval privileges.
3163 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3165 * symfile.c (addr_section_name): New function.
3166 (addrs_section_compar): Use it.
3167 (addr_info_make_relative): Use it. Move variable sect_name into a more
3168 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
3170 2010-07-30 Tom Tromey <tromey@redhat.com>
3172 * configure: Rebuild.
3173 * configure.ac: Add missing case for Python 2.7.
3175 2010-07-29 DJ Delorie <dj@redhat.com>
3177 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
3180 2010-07-29 Pedro Alves <pedro@codesourcery.com>
3182 * PROBLEMS: Remove mention of all problems.
3184 2010-07-28 Pedro Alves <pedro@codesourcery.com>
3187 * configure.ac: Check for wresize.
3188 * configure, config.in: Regenerate.
3189 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
3192 2010-07-28 Tom Tromey <tromey@redhat.com>
3195 * python/py-type.c (typy_legacy_template_argument): New function,
3196 extracted from typy_template_argument.
3197 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
3200 2010-07-28 Oleg Nesterov <oleg@redhat.com>
3202 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
3204 2010-07-27 Tom Tromey <tromey@redhat.com>
3206 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
3208 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
3210 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
3211 handling DW_AT_object_pointer, and workaround GCC PR 43053.
3213 2010-07-28 Tom Tromey <tromey@redhat.com>
3215 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
3217 2010-07-28 Joel Brobecker <brobecker@adacore.com>
3219 * remote.c (remote_download_tracepoint): Add missing gettext markup.
3220 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
3222 2010-07-28 Joel Brobecker <brobecker@adacore.com>
3224 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
3225 down, just before the block that parse the breakpoint addr_string.
3227 2010-07-28 Tom Tromey <tromey@redhat.com>
3230 * symfile.c (reread_symbols): Clear template_symbols.
3231 * symtab.h (struct symbol) <is_cplus_template_function>: New
3233 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
3234 (struct template_symbol): New.
3235 * symtab.c (lookup_symbol_aux_local): Use
3236 cp_lookup_symbol_imports_or_template.
3237 * objfiles.h (struct objfile) <template_symbols>: New field.
3238 * objfiles.c (relocate_one_symbol): New function.
3239 (objfile_relocate1): Use it. Relocate isolated symbols.
3240 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
3241 template_arguments>: New fields.
3242 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
3243 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
3244 (TYPE_TEMPLATE_ARGUMENT): Likewise.
3245 (lookup_typename): Update.
3246 * gdbtypes.c (lookup_typename): Constify "block" argument.
3247 * dwarf2read.c: Include vec.h.
3248 (symbolp): New typedef.
3249 (read_func_scope): Read template arguments. Allocate a
3250 template_symbol when needed.
3251 (read_structure_type): Read template arguments.
3252 (new_symbol_full): New function, from new_symbol. Handle
3253 DW_TAG_template_type_param and DW_TAG_template_value_param.
3254 (new_symbol): Rewrite as wrapper.
3255 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
3256 * cp-namespace.c: Include language.h.
3257 (search_symbol_list): New function.
3258 (cp_lookup_symbol_imports_or_template): Likewise.
3260 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3262 * tui/tui-win.c (make_visible_with_new_height): Resize and move
3263 the command window to the new size and position.
3265 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3267 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
3270 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3272 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
3273 after a detecting a resize.
3274 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
3277 2010-07-28 Pedro Alves <pedro@codesourcery.com>
3279 * configure.ac: Check for resize_term.
3280 * configure, config.in: Regenerate.
3282 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3284 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
3286 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3288 * dwarf2read.c (read_string): Rename to ...
3289 (read_direct_string): ... this.
3290 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
3291 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
3293 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3295 * linux-nat.c (linux_nat_lp_status_is_event): New function.
3296 (count_events_callback, select_event_lwp_callback)
3297 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
3299 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3301 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
3302 (_initialize_ia64_linux_nat): Install it.
3303 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
3304 (linux_nat_set_status_is_event): New.
3305 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
3306 cancel_breakpoints_callback, linux_nat_filter_event)
3307 (linux_nat_wait_1): Use linux_nat_status_is_event.
3308 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
3310 2010-07-27 Tom Tromey <tromey@redhat.com>
3312 * NEWS: Mention labels, .gdb_index.
3314 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
3316 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3317 "start,+length" form of arguments.
3318 * NEWS: Add "Changed commands" (disassemble) section for "Changes
3319 since GDB 7.1"; and merge two separated paragraphs of disassemble
3320 description in "Changes in GDB 7.0".
3322 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3324 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
3325 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
3326 (fputs_maybe_filtered): Do not do filtering also on
3327 ! INPUT_FROM_TERMINAL_P.
3329 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3331 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
3334 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
3336 * python/py-value.c (valpy_call): New Function.
3338 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
3340 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
3341 types_list_elements variables.
3343 2010-07-26 Tom Tromey <tromey@redhat.com>
3345 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
3346 TLS with DW_OP_const4u or DW_OP_const8u.
3348 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
3350 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
3351 VSX registers contents.
3353 2010-07-26 Jerome Guitton <guitton@adacore.com>
3355 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
3356 its adress is null. Add comment to explain why.
3357 (new_symbol): Ditto.
3359 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3361 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
3362 the host signal first.
3364 2010-07-23 Tom Tromey <tromey@redhat.com>
3366 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
3367 type_comp_units>: New fields.
3368 (dw2_get_cu): New function.
3369 (create_cus_from_index): Remove unused argument.
3370 (create_signatured_type_hash_from_index): New function.
3371 (create_addrmap_from_index): Update.
3372 (dwarf2_read_index): Handle version 2.
3373 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
3374 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
3375 (dw2_print_stats, dw2_expand_all_symtabs)
3376 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
3377 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
3378 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
3379 (allocate_signatured_type_hash_table): New function.
3380 (add_signatured_type_cu_to_list): Likewise.
3381 (create_debug_types_hash_table): Use them. Set type_comp_units.
3382 (read_signatured_type): Ensure section data is available.
3383 (add_address_entry): Don't record empty ranges.
3384 (struct signatured_type_index_data): New.
3385 (write_one_signatured_type): New function.
3386 (write_psymtabs_to_index): Write type CUs.
3387 (save_gdb_index_command): Update comment.
3388 (process_type_comp_unit): Move inititalization of
3390 (create_debug_types_hash_table): ... here.
3392 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3394 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
3395 cleanup and generating of gdb script to it.
3396 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
3397 and terminal size. Convert $tmpfile to a series of -ex-es.
3399 2010-07-23 Keith Seitz <keiths@redhat.com>
3401 * symtab.c (basic_lookup_transparent_type): Call pre-expand
3402 hook for STATIC_BLOCK types, too.
3404 2010-07-23 Keith Seitz <keiths@redhat.com>
3406 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
3407 and vector definition.
3409 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3411 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
3413 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3415 * dwarf2read.c: Include completer.h.
3416 (save_gdb_index_command): Use matching usage command name.
3417 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
3418 Set filename_completer for it.
3420 2010-07-22 Tom Tromey <tromey@redhat.com>
3422 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
3423 type signature's per-CU data.
3425 2010-07-22 Pedro Alves <pedro@codesourcery.com>
3427 * NEWS: Mention target reported shared libraries support by
3430 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3435 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3436 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3437 and DW_TAG_volatile_type.
3438 (new_symbol): Likewise.
3440 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
3442 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
3443 function symbols before overload resolution.
3445 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3447 * breakpoint.c (bptype_string): New, abstracted out from
3448 print_one_breakpoint_location.
3449 (print_one_breakpoint_location): Adjust.
3450 (breakpoint_1): Adjust the type column width dynamically.
3452 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3454 * symfile.c (find_separate_debug_file_by_debuglink): Remove
3455 a gdb_assert call, new comment.
3457 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3459 * linux-nat.c (linux_handle_extended_wait): Handle case when
3460 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
3462 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3465 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
3466 linux_nat_wait_1. Use always LP->STATUS afterwards.
3468 2010-07-20 Hui Zhu <teawater@gmail.com>
3470 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
3471 (inf_ptrace_attach): Ditto.
3473 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3475 Make core files the process_stratum.
3476 * corefile.c (core_target): New variable.
3477 (core_file_command): Remove variable t, use core_target.
3478 * corelow.c (core_ops): Make it static.
3479 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
3480 * defs.h (make_cleanup_unpush_target): New prototype.
3481 * gdbarch.h: Regenerate.
3482 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
3483 * gdbcore.h (core_target): New declaration.
3484 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
3485 variables ops_already_pushed and back_to. Use push_target,
3486 make_cleanup_unpush_target and discard_cleanups calls.
3487 * record.c (record_open): Replace core_stratum by a core_bfd check.
3488 * target.c (target_is_pushed): New function.
3489 (find_core_target): Remove.
3490 * target.h (enum strata) <core_stratum>: Remove.
3491 (target_is_pushed): New declaration.
3492 (find_core_target): Remove declaration.
3493 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
3494 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
3496 2010-07-19 Hui Zhu <teawater@gmail.com>
3498 * breakpoint.c (single_step_breakpoints_inserted): New
3500 * breakpoint.h (single_step_breakpoints_inserted): Extern.
3501 * infrun.c (maybe_software_singlestep): Add check code.
3502 * record.c (record_resume): Add code for software single step.
3503 (record_wait): Ditto.
3505 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3507 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
3508 a more inner block. Remove its unused declaration initializer.
3510 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
3512 * NEWS: Mention support for the new ptrace interface and hardware
3513 accelerated watchpoint conditions on powerpc-linux.
3515 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
3517 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
3518 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
3519 and host_address_to_string() and %s for pointers.
3520 (debug_to_remove_breakpoint): Likewise.
3521 (debug_to_region_ok_for_hw_watchpoint): Likewise.
3522 (debug_to_can_accel_watchpoint_condition): Likewise.
3523 (debug_to_stopped_data_address): Likewise.
3524 (debug_to_watchpoint_addr_within_range): Likewise.
3525 (debug_to_insert_hw_breakpoint): Likewise.
3526 (debug_to_remove_hw_breakpoint): Likewise.
3527 (debug_to_insert_watchpoint): Likewise.
3528 (debug_to_remove_watchpoint): Likewise.
3530 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3532 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
3534 (cplus_specific): New struct.
3535 * symtab.c (symbol_set_demangled_name): Updated.
3536 Use cplus_specific for cplus symbols.
3537 (symbol_get_demangled_name): Retrive the name from the cplus_specific
3538 struct for cplus symbols.
3539 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
3540 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
3541 * symtab.c (symbol_init_cplus_specific): New function.
3543 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3545 * symtab.h (symbol_set_demangled_name): New function.
3546 (symbol_get_demangled_name): New function.
3547 * symtab.c (symbol_set_demangled_name): New function.
3548 (symbol_get_demangled_name): New function.
3549 (symbol_init_language_specific): Use demangled_name setter and getter.
3550 (symbol_set_names): Ditto.
3551 (symbol_natural_name): Ditto.
3552 (symbol_demangled_name): Ditto.
3553 * dwarf2read.c (new_symbol): Ditto.
3555 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3557 * symtab.h: Renamed cplus_specific to mangled_lang.
3558 * symtab.c (symbol_init_language_specific): Updated.
3559 (symbol_set_names): Updated.
3560 (symbol_natural_name): Updated.
3561 (symbol_demangled_name): Updated.
3562 * ada-lang.c (ada_decode_symbol): Updated.
3563 * dwarf2read.c (new_symbol): Updated.
3565 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3567 * valops.c (value_assign): Do not call to value_coerce_to_target.
3568 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
3570 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3572 * MAINTAINERS: Add myself for write after approval privileges.
3574 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
3576 * c-valprint.c (c_val_print): Add embedded_offset to address in
3577 call to val_print_array_elements.
3579 2010-07-13 Tom Tromey <tromey@redhat.com>
3581 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
3583 2010-07-13 Tom Tromey <tromey@redhat.com>
3585 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
3588 2010-07-13 Tom Tromey <tromey@redhat.com>
3590 * symfile.c (set_initial_language): Update.
3591 (deduce_language_from_filename): Argument type now const.
3592 * symtab.h (find_main_filename): Update.
3593 (deduce_language_from_filename): Update.
3594 * symtab.c (find_main_filename): Make result const.
3595 * dwarf2read.c (dw2_find_symbol_file): Change return type.
3596 * psymtab.c (find_symbol_file_from_partial): Change return type.
3597 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3600 2010-07-13 Tom Tromey <tromey@redhat.com>
3602 * breakpoint.c (save_cmdlist): No longer static.
3603 * gdbcmd.h (save_cmdlist): Declare.
3604 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
3605 OBJF_READNOW on objfile if readnow_symbol_files.
3606 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
3607 (elf_sym_fns_gdb_index): New global.
3608 * dwarf2read.c: Include exceptions.h.
3610 (struct mapped_index): New.
3611 (dwarf2_per_cu_data_ptr): New typedef.
3612 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
3614 (GDB_INDEX_SECTION): New define.
3615 (struct dwarf2_per_cu_quick_data): New.
3616 (struct dwarf2_per_cu_data) <objfile>: New field.
3619 (byte_swap): New function.
3620 (MAYBE_SWAP): New macro.
3621 (INDEX_SUFFIX): New macro.
3622 (dw2_do_instantiate_symtab): New function.
3623 (dw2_instantiate_symtab): Likewise.
3624 (create_cus_from_index): Likewise.
3625 (create_addrmap_from_index): Likewise.
3626 (mapped_index_string_hash): Likewise.
3627 (find_slot_in_mapped_hash): Likewise.
3628 (dwarf2_read_index): Likewise.
3629 (dw2_setup): Likewise.
3630 (dw2_require_line_header): Likewise.
3631 (dw2_require_full_path): Likewise.
3632 (dw2_find_last_source_symtab): Likewise.
3633 (dw2_forget_cached_source_info): Likewise.
3634 (dw2_lookup_symtab): Likewise.
3635 (dw2_lookup_symbol): Likewise.
3636 (dw2_do_expand_symtabs_matching): Likewise.
3637 (dw2_pre_expand_symtabs_matching): Likewise.
3638 (dw2_print_stats): Likewise.
3639 (dw2_dump): Likewise.
3640 (dw2_relocate): Likewise.
3641 (dw2_expand_symtabs_for_function): Likewise.
3642 (dw2_expand_all_symtabs): Likewise.
3643 (dw2_expand_symtabs_with_filename): Likewise.
3644 (dw2_find_symbol_file): Likewise.
3645 (dw2_map_ada_symtabs): Likewise.
3646 (dw2_expand_symtabs_matching): Likewise.
3647 (dw2_find_pc_sect_symtab): Likewise.
3648 (dw2_map_symbol_names): Likewise.
3649 (dw2_map_symbol_filenames): Likewise.
3650 (dw2_has_symbols): Likewise.
3651 (dwarf2_gdb_index_functions): New global.
3652 (dwarf2_initialize_objfile): New function.
3653 (process_psymtab_comp_unit): Update.
3654 (add_partial_subprogram): Likewise.
3655 (dwarf2_psymtab_to_symtab): Likewise.
3656 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3657 (process_full_comp_unit): Update.
3658 (find_file_and_directory): New function.
3659 (read_file_scope): Use find_file_and_directory.
3660 (dwarf2_per_cu_objfile): Update.
3661 (dwarf2_per_cu_addr_size): Update.
3662 (dwarf2_per_cu_offset_size): Update.
3663 (dwarf2_free_objfile): Free the index, if needed.
3664 (dwarf2_per_objfile_free): Unmap the index, if needed.
3665 (struct strtab_entry): New.
3666 (hash_strtab_entry): New function.
3667 (eq_strtab_entry): Likewise.
3668 (create_strtab): Likewise.
3669 (add_string): Likewise.
3670 (struct symtab_index_entry): New.
3671 (struct mapped_symtab): New.
3672 (hash_symtab_entry): New function.
3673 (eq_symtab_entry): Likewise.
3674 (delete_symtab_entry): Likewise.
3675 (create_index_table): Likewise.
3676 (create_mapped_symtab): Likewise.
3677 (cleanup_mapped_symtab): Likewise.
3678 (find_slot): Likewise.
3679 (hash_expand): Likewise.
3680 (add_index_entry): Likewise.
3681 (add_indices_to_cpool): Likewise.
3682 (write_hash_table): Likewise.
3683 (add_address_entry): Likewise.
3684 (write_psymbols): Likewise.
3685 (write_obstack): Likewise.
3686 (unlink_if_set): Likewise.
3687 (write_psymtabs_to_index): Likewise.
3688 (save_gdb_index_command): Likewise.
3689 (_initialize_dwarf2_read): Install "save gdb-index"
3691 (create_all_comp_units): Initialize 'objfile' field of CU.
3692 (dwarf2_locate_sections): Check for .gdb_index.
3693 * psymtab.h (dwarf2_gdb_index_functions): Declare.
3694 * symfile.h (dwarf2_initialize_objfile): Declare.
3696 2010-07-13 Tom Tromey <tromey@redhat.com>
3698 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3699 (basic_lookup_transparent_type): Likewise.
3700 * symfile.h (struct quick_symbol_functions)
3701 <pre_expand_symtabs_matching>: New field.
3702 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3703 (psym_functions): Update.
3705 2010-07-13 Tom Tromey <tromey@redhat.com>
3707 PR breakpoints/8357:
3708 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3709 * linespec.c (decode_line_1): Update comment. Call decode_label.
3710 (decode_label): New function.
3711 (symbol_found): Handle LOC_LABEL.
3712 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3713 domain. Call add_symbol_to_list.
3715 2010-07-13 Tom Tromey <tromey@redhat.com>
3717 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3718 * dwarf2loc.c (find_location_expression): Use
3719 dwarf2_per_cu_text_offset.
3720 (dwarf2_evaluate_loc_desc): Likewise.
3721 (dwarf2_loc_desc_needs_frame): Likewise.
3722 (compile_dwarf_to_ax): Likewise.
3723 (loclist_describe_location): Likewise.
3724 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3725 (dwarf2_per_cu_objfile): Update comment.
3727 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3729 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3730 * p-lang.c (pascal_printstr): Likewise.
3732 2010-07-09 Tom Tromey <tromey@redhat.com>
3734 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3735 'hint' if it is NULL.
3737 2010-07-09 Hui Zhu <teawater@gmail.com>
3739 * source.c (print_source_lines_base): Add check for noprint.
3741 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3743 * python/python-config.py: Resync with Python 2.7 version of this
3746 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3748 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3750 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3752 * NEWS: Create a new section for the next release branch.
3753 Rename the section of the current branch, now that it has
3756 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3758 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3759 * version.in: Bump version to 7.2.50.20100707-cvs.
3761 2010-07-07 Tom Tromey <tromey@redhat.com>
3763 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3764 LOC_COMPUTED symbol.
3765 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3766 (dwarf2_loc_desc_needs_frame): Likewise.
3767 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3768 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3769 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3770 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3772 (struct dwarf2_frame_cache) <text_offset>: New field.
3773 (dwarf2_frame_cache): Set new field.
3774 (dwarf2_frame_prev_register): Update.
3775 (dwarf2_frame_sniffer): Update.
3776 (dwarf2_frame_base_sniffer): Update.
3777 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3779 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3780 Thiago Jung Bauermann <bauerman@br.ibm.com>
3782 Support for hw accelerated condition watchpoints in booke powerpc.
3784 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3785 and move to eval.c. Change callers.
3786 (insert_bp_location): Pass watchpoint condition in
3787 target_insert_watchpoint.
3788 (remove_breakpoint_1) Pass watchpoint condition in
3789 target_remove_watchpoint.
3790 (watchpoint_locations_match): Call
3791 target_can_accel_watchpoint_condition.
3792 * eval.c: Include wrapper.h.
3793 (fetch_subexp_value): Moved from breakpoint.c.
3794 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3796 (can_use_watchpoint_cond_accel): New function.
3797 (calculate_dvc): Likewise.
3798 (num_memory_accesses): Likewise.
3799 (check_condition): Likewise.
3800 (ppc_linux_can_accel_watchpoint_condition): Likewise
3801 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3802 check_condition and calculate_dvc.
3803 (ppc_linux_remove_watchpoint): Likewise.
3804 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3805 ppc_linux_can_accel_watchpoint_condition
3806 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3808 (debug_to_remove_watchpoint): Likewise.
3809 (debug_to_can_accel_watchpoint_condition): New function.
3810 (update_current_target): Set to_can_accel_watchpoint_condition.
3811 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3812 * target.h: Add opaque declaration for struct expression.
3813 (struct target_ops) <to_insert_watchpoint>,
3814 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3815 <to_can_accel_watchpoint_condition>: New member.
3816 condition. Update all callers and implementations.
3817 (target_can_accel_watchpoint_condition): New macro.
3818 * value.c (free_value_chain): New function.
3819 * value.h (fetch_subexp_value): New prototype.
3820 (free_value_chain): Likewise.
3822 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3824 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3825 from gdbarch_core_regset_sections also for .reg if present.
3827 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3828 section size for .reg.
3829 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3830 (ppc_linux_vmx_regset_sections): Likewise.
3831 (ppc_linux_fp_regset_sections): Likewise.
3832 (ppc64_linux_vsx_regset_sections): New variable.
3833 (ppc64_linux_vmx_regset_sections): Likewise.
3834 (ppc64_linux_fp_regset_sections): Likewise.
3835 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3836 for current word size.
3838 2010-07-06 Joel Brobecker <brobecker@adacore.com>
3840 * server.c (myresume): Make static.
3842 2010-07-06 Tom Tromey <tromey@redhat.com>
3844 * configure, config.in: Rebuild.
3845 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3846 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3848 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3850 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3853 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
3855 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3856 * gdbtypes.c (floatformats_ieee_half): New variable.
3857 * doublest.c (floatformat_from_length): Set format to
3858 gdbarch_half_format if length matches.
3859 * gdbarch.sh (half_bit): New architecture method.
3860 (half_format): Likewise.
3861 * gdbarch.h: Regenerate.
3862 * gdbarch.c: Likewise.
3864 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3865 Joel Brobecker <brobecker@adacore.com>
3867 Fix re-run of PIE executable, PR shlibs/11776.
3868 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3869 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3871 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3872 Joel Brobecker <brobecker@adacore.com>
3874 * auxv.c (memory_xfer_auxv): Update attach comment.
3875 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3876 svr4_relocate_main_executable.
3877 (svr4_solib_create_inferior_hook): Make the call to
3878 svr4_relocate_main_executable unconditional.
3880 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3881 Joel Brobecker <brobecker@adacore.com>
3883 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3885 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3886 Joel Brobecker <brobecker@adacore.com>
3888 Fix attaching to PIEs prelinked on the disk after the process was
3890 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3891 Verify it against bfd_get_arch_size. Try to match arbitrary
3892 displacement for the phdrs comparison.
3894 2010-07-02 Tom Tromey <tromey@redhat.com>
3897 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3898 value as optimized-out.
3900 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3901 Thiago Jung Bauermann <bauerman@br.ibm.com>
3903 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3904 represent?" question in comment. Change comment to a proper sentence.
3906 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
3908 * c-valprint.c (c_val_print): Fix printing of character vectors.
3910 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3912 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3913 create_breakpoint prototype.
3915 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3917 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3918 usefulness suggestion of multiple breakpoints at same location.
3920 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3922 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3924 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3926 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3927 (loclist_tracepoint_var_ref): Handle optimized out values.
3929 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3931 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3932 unnecessary space in string.
3933 * filesystem.c (_initialize_filesystem): Ditto.
3934 * frame.c (_initialize_frame): Ditto.
3935 * infcmd.c (step_once): Ditto.
3936 * infrun.c (_initialize_infrun): Ditto.
3937 * linux-nat.c (linux_child_follow_fork): Ditto.
3938 * maint.c (maintenance_deprecate): Ditto.
3939 * memattr.c (_initialize_mem): Ditto.
3940 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3941 * monitor.c (monitor_open): Ditto.
3942 * procfs.c (procfs_xfer_memory): Ditto.
3943 * reverse.c (bookmarks_info): Ditto.
3944 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3945 * stack.c (_initialize_stack): Ditto.
3946 * tracepoint.c (_initialize_tracepoint): Ditto.
3947 * xtensa-tdep.c (xtensa_supply_gregset,
3948 xtensa_regset_from_core_section): Ditto.
3950 2010-07-01 Tom Tromey <tromey@redhat.com>
3952 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3954 * value.c (value_entirely_optimized_out): Invert result. Update
3955 for new function name.
3957 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3959 Static tracepoints support.
3961 * NEWS: Mention new support for static tracepoints.
3962 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3963 qXfer:statictrace:read.
3964 (New features in the GDB remote stub, GDBserver): Mention static
3965 tracepoints support using an UST based backend.
3966 (New commands): Mention "info static-tracepoint-markers" and
3968 * breakpoint.c (is_marker_spec): New.
3969 (is_tracepoint): Handle static tracepoints.
3970 (validate_commands_for_breakpoint): Static tracepoints can't do
3972 (static_tracepoints_here): New.
3973 (bpstat_what): Handle static tracepoints.
3974 (print_one_breakpoint_location, allocate_bp_location, mention):
3976 (create_breakpoint_sal): Ditto.
3977 (decode_static_tracepoint_spec): New.
3978 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3979 `type_wanted'. Adjust. Handle static tracepoint marker
3981 (break_command_1): Adjust.
3982 (update_static_tracepoint): New.
3983 (update_breakpoint_locations): Handle static tracepoints.
3984 (breakpoint_re_set_one): Handle static tracepoint marker
3986 (disable_command, enable_command): Handle static tracepoints.
3987 (trace_command, ftrace_command): Adjust.
3988 (strace_command): New.
3989 (create_tracepoint_from_upload): Adjust.
3990 (save_breakpoints): Handle static tracepoints.
3991 (_initialize_breakpoint): Install the "strace" command.
3992 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3993 (struct breakpoint): New fields static_trace_marker_id and
3994 static_trace_marker_id_idx.
3995 (breakpoints_here_p): Declare.
3996 (create_breakpoint): Adjust.
3997 (static_tracepoints_here): Declare.
3998 * remote.c (struct remote_state) <static_tracepoints>: New field.
3999 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
4000 (remote_static_tracepoint_marker_at): New.
4001 (remote_static_tracepoint_markers_by_strid): New.
4002 (remote_static_tracepoint_feature): New.
4003 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
4004 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
4005 (remote_supports_static_tracepoints): New.
4006 (remote_download_tracepoint): Download static tracepoints.
4007 (init_remote_ops): Install remote_static_tracepoint_marker_at and
4008 remote_static_tracepoint_markers_by_strid.
4009 (_initialize_remote): Install set|show remote static-tracepoints,
4010 and set|show remote read-sdata-object commands.
4011 * target.c (update_current_target): Inherit and default
4012 to_static_tracepoint_marker_at, and
4013 to_static_tracepoint_markers_by_strid.
4014 * target.h (static_tracepoint_marker): Forward declare.
4015 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
4016 (static_tracepoint_marker_p): New typedef.
4017 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
4018 (struct target_ops): New fields to_static_tracepoint_marker_at and
4019 to_static_tracepoint_markers_by_strid.
4020 (target_static_tracepoint_marker_at)
4021 (target_static_tracepoint_markers_by_strid): New.
4022 * tracepoint.c: Include source.h.
4023 (validate_actionline): Handle $_sdata.
4024 (struct collection_list): New field strace_data.
4025 (add_static_trace_data): New.
4026 (clear_collection_list): Clear strace_data.
4027 (stringify_collection_list): Account for a possible static trace
4029 (encode_actions_1): Encode an $_sdata collection.
4030 (parse_tracepoint_definition): Handle static tracepoints.
4031 (parse_static_tracepoint_marker_definition): New.
4032 (release_static_tracepoint_marker): New.
4033 (print_one_static_tracepoint_marker): New.
4034 (info_static_tracepoint_markers_command): New.
4035 (sdata_make_value): New.
4036 (_initialize_tracepoint): Create the $_sdata convenience variable.
4037 Add the "info static-tracepoint-markers" command.
4038 Mention $_sdata in the "collect" command's help output.
4039 * tracepoint.h (struct static_tracepoint_marker): New.
4040 (parse_static_tracepoint_marker_definition)
4041 (release_static_tracepoint_marker): Declare.
4042 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4043 * python/py-breakpoint.c (bppy_new): Adjust.
4045 2010-06-30 Joel Brobecker <brobecker@adacore.com>
4047 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
4050 2010-06-29 Doug Evans <dje@google.com>
4053 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
4054 DW_AT_external is present.
4058 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
4059 create a symbol for the field and record the value.
4060 (new_symbol): Handle DW_TAG_member.
4061 * gdbtypes.c (field_is_static): Remove FIXME.
4062 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
4063 only ignore LOC_CONST symbols that are enums.
4065 * dwarf2read.c: Remove trailing whitespace.
4067 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
4068 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
4069 (struct main_type, field loc): Delete dwarf_block.
4070 (FIELD_DWARF_BLOCK): Delete.
4071 (SET_FIELD_DWARF_BLOCK): Delete.
4072 (TYPE_FIELD_DWARF_BLOCK): Delete.
4073 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
4076 2010-06-29 Hui Zhu <teawater@gmail.com>
4078 * record.c (set_record_pic_cmdlist,
4079 show_record_pic_cmdlist): New variables.
4080 (set_record_pic_command,
4081 show_record_pic_command): New functions.
4082 (record_pic_function, record_pic_line, record_pic_enum,
4083 set_record_pic_type, record_pic_hide_nofunction,
4084 record_pic_hide_nosource, record_pic_hide_same): New variables.
4085 (record_pic_fputs): New function.
4086 (function_list, node_list, edge_list): New struct.
4087 (function_list, node_list, edge_list): New variables.
4088 (record_pic_cleanups, record_pic_node,
4089 record_pic_edge, cmd_record_pic): New functions.
4090 (_initialize_record): Add new commands for record pic.
4092 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4094 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
4095 ALLOCATE_CPLUS_STRUCT_TYPE.
4097 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
4098 Tom Tromey <tromey@redhat.com>
4099 Thiago Jung Bauermann <bauerman@br.ibm.com>
4101 * value.c (pack_unsigned_long): New function.
4102 (value_from_ulongest): New function.
4103 * value.h (value_from_ulongest): Declare.
4104 * python/python.c (_initialize_python): Call
4105 gdbpy_initialize_thread and gdbpy_initialize_inferior.
4106 * python/python-internal.h: Define thread_object.
4107 (gdbpy_inferiors, gdbpy_selected_thread)
4108 (frame_info_to_frame_object, create_thread_object)
4109 (find_thread_object, find_inferior_object)
4110 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
4111 (gdbpy_is_value_object, get_addr_from_python): Declare.
4112 * python/py-value.c (builtin_type_upylong): Define.
4113 (convert_value_from_python): Add logic for ulongest.
4114 (gdbpy_is_value_object): New function.
4115 * python/py-utils.c (get_addr_from_python): New function.
4116 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
4117 (gdbpy_selected_frame): Use PyObject over frame_info.
4118 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
4120 (SUBDIR_PYTHON_SRCS): Likewise.
4121 (py-inferior.o): New Rule.
4122 (py-infthread.o): New Rule.
4123 * python/py-inferior.c: New File.
4124 * python/py-infthread.c: New File.
4126 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4128 * c-typeprint.c (c_type_print_base): For no fields check include also
4129 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
4130 * dwarf2read.c (struct typedef_field_list)
4131 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
4132 (dwarf2_add_typedef): New.
4133 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
4134 Copy also FI.TYPEDEF_FIELD_LIST.
4135 * gdbtypes.h (struct typedef_field)
4136 (struct cplus_struct_type) <typedef_field, typedef_field_count>
4137 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
4138 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
4140 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4142 * cp-namespace.c (cp_lookup_nested_type): New variable
4143 concatenated_name. Turn the current return condition into a reverse
4144 one. Call also lookup_static_symbol_aux on the constructed qualified
4146 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
4147 other files into a called ...
4148 (lookup_static_symbol_aux): ... new function here.
4149 * symtab.h (lookup_static_symbol_aux): New prototype.
4150 * valops.c (value_maybe_namespace_elt): Call also
4151 lookup_static_symbol_aux if we failed otherwise.
4153 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4155 Fix PR c++/11703 and PR gdb/1448.
4156 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
4159 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4161 Fix modification of cplus_struct_default.
4162 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
4163 Call ALLOCATE_CPLUS_STRUCT_TYPE.
4164 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
4166 2010-06-28 Joel Brobecker <brobecker@adacore.com>
4168 * NEWS: Add entry announcing the python directory.
4170 2010-06-28 Tom Tromey <tromey@redhat.com>
4172 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
4174 2010-06-28 Doug Evans <dje@google.com>
4176 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
4177 All callers updated.
4179 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4181 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
4182 obstack_begin after each obstack_free.
4184 2010-06-27 Doug Evans <dje@google.com>
4186 * value.c (value_static_field): Use `switch' instead of `if'.
4187 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
4189 * valops.c (search_struct_field): Fix typo in error message.
4191 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
4193 * dwarf2expr.c (execute_stack_op): Place preprocessor
4194 directives at the start of the source line.
4196 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
4198 * defs.h (make_command_stats_cleanup): Declare.
4199 (set_display_time): Declare.
4200 (set_display_space): Declare.
4201 * event-top.c (command_handler): Use make_command_stats_cleanup.
4202 * main.c (display_time, display_space): Move definitions to utils.c.
4203 (captured_main): Use make_command_stats_cleanup to get start-up
4205 Use set_display_time and set_display_space for processing OPT_STATISTICS
4207 * maint.c (maintenance_time_display): Use set_display_time.
4208 (maintenance_space_display): Use set_display_space.
4209 * top.c (execute_command): Remove obsolete 'maint time' code.
4210 (command_loop): Use make_command_stats_cleanup.
4211 * utils.c (struct cmd_stats): Structure for storing initial time
4213 (display_time, display_space): Move definitions here from utils.c.
4214 (set_display_time): New function.
4215 (set_display_space): New function.
4216 (make_command_stats_cleanup): New function.
4217 (report_command_stats): New auxiliary function for
4218 make_command_stats_cleanup.
4220 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4222 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
4223 hosts where CORE_ADDR is long long.
4225 2010-06-25 Tom Tromey <tromey@redhat.com>
4228 * python/python.c (execute_gdb_command): Add keywords. Accept
4229 "to_string" argument.
4230 (struct restore_ui_file_closure): New.
4231 (restore_ui_file): New function.
4232 (make_cleanup_restore_ui_file): Likewise.
4233 (GdbMethods) <execute>: Update.
4235 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4237 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
4238 during inferior call stack frame setup.
4240 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
4242 * solib-spu.c: Include "exception.h".
4243 (ocl_program_data_key): New variable.
4244 (append_ocl_sos): New function.
4245 (ocl_enable_break): Likewise.
4246 (spu_current_sos): Call append_ocl_sos.
4247 (spu_solib_loaded): Call ocl_enable_break.
4248 (_initialize_spu_solib): Register ocl_program_data_key.
4250 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4252 * cp-support.c (reset_directive_searched): New function.
4253 (make_symbol_overload_list_using): Prevent recursive calls.
4255 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
4257 * printcmd.c (print_variable_and_value): Print error message on
4260 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4262 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
4264 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
4266 (dwarf_expr_push): Change input type to ULONGEST.
4267 (dwarf_expr_fetch): Change return type to ULONGEST.
4268 (dwarf_expr_fetch_address): Add prototype.
4269 (dwarf2_read_address): Remove prototype.
4270 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
4271 Truncate stack values to ctx->addr_size bytes.
4272 (dwarf_expr_fetch): Change return value to ULONGEST.
4273 (dwarf_expr_fetch_address): New function.
4274 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
4275 when appropriate. Update for struct dwarf_expr_piece changes.
4276 (dwarf2_read_address): Remove.
4277 (unsigned_address_type): Remove.
4278 (signed_address_type): Remove.
4279 (execute_stack_op): Use dwarf_expr_fetch_address instead of
4280 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
4281 values. Perform operations on ULONGEST instead of on GDB values,
4282 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
4283 values and DW_OP_deref results as unsigned integers.
4284 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
4286 (write_pieced_value): Likewise.
4287 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
4288 dwarf_expr_fetch when appropriate.
4289 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
4290 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
4291 instead of dwarf_expr_fetch when appropriate.
4293 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
4295 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
4297 2010-06-24 Joel Brobecker <brobecker@adacore.com>
4299 * python/python.c (_initialize_python): Add new "constant"
4300 PYTHONDIR in gdb module. Insert this path at the head of
4301 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
4302 exec its __init__.py script if it exists in that directory.
4304 2010-06-24 Kevin Buettner <kevinb@redhat.com>
4306 * rx-tdep.c (RX_ACC_REGNUM): Define.
4307 (RX_NUM_REGS): Redefine to 26.
4308 (rx_register_name): Add register "acc". Change order of several
4309 registers. Change name of "vct" register to "fintv" to match RX
4311 (rx_register_type): Add case for RX_ACC_REGNUM.
4313 2010-06-24 Tom Tromey <tromey@redhat.com>
4315 * psymtab.c (lookup_partial_symbol): Mark definition as static.
4317 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4318 Tom Tromey <tromey@redhat.com>
4320 Fix GDB startup on readonly filesystem.
4321 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
4323 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4324 Pedro Alves <pedro@codesourcery.com>
4327 * breakpoint.c (handle_jit_event): New function.
4328 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
4329 jit, err, table and bs_class. New variables shlib_event, jit_event,
4330 this_action and bptype. Change bs_class assignments to this_action
4331 assignments. new unhandled bptype internal error. Move here
4332 shlib_event and jit_event handling from handle_inferior_event.
4333 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
4334 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
4335 BPSTAT_WHAT_CHECK_JIT.
4336 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
4337 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
4338 (handle_inferior_event): Reinitialize frame and gdbarch after
4339 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
4340 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
4341 gdbarch when frame gets reinitialized.
4343 2010-06-24 Hui Zhu <teawater@gmail.com>
4345 * printcmd.c (ui_printf): New function.
4346 (printf_command): Call ui_printf.
4347 (_initialize_printcmd): New command "eval".
4349 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
4351 * infrun.c (handle_inferior_event): Handle presence of single-step
4352 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
4353 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
4354 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
4355 * breakpoint.c (detach_single_step_breakpoints): New function.
4356 (detach_breakpoints): Call it.
4357 (cancel_single_step_breakpoints): New function.
4358 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
4360 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
4361 (spu_gdbarch_init): Install it.
4363 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4365 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
4366 * configure: Regenerate.
4368 2010-06-22 Hui Zhu <teawater@gmail.com>
4370 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
4371 (i386_process_record): Ditto.
4372 * record.c (record_memory_query): New variable.
4373 (_initialize_record): New command "set record memory-query".
4374 * record.h (record_memory_query): New extern.
4376 2010-06-21 Doug Evans <dje@google.com>
4378 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
4379 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
4380 (i386_syscall_p): Change type of lengthp to int.
4381 (i386_displaced_step_fixup): Handle kernels that run one past a
4383 * i386-linux-tdep.c (i386_linux_init_abi): Use
4384 i386_displaced_step_copy_insn instead of
4385 simple_displaced_step_copy_insn.
4387 2010-06-21 Tom Tromey <tromey@redhat.com>
4389 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
4390 (dwarf_type_encoding_name): Likewise.
4392 2010-06-21 Tom Tromey <tromey@redhat.com>
4394 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
4395 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
4396 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
4397 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
4398 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
4399 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
4400 * dwarf2read.c (tag_type_to_type): Create a new error type on
4402 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
4403 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
4405 2010-06-21 Michael Snyder <msnyder@vmware.com>
4407 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
4408 not add_abbrev_prefix_cmd, for "enable breakpoints".
4410 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
4412 * dwarf2loc.c (find_location_expression): Add relocation offset
4413 to base-address-selection entry base addresses. Read addresses
4414 (and offsets) as signed/unsigned integers, depending on the
4415 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
4416 (loclist_describe_location): Likewise.
4417 (disassemble_dwarf_expression): Read DW_OP_addr operand as
4418 unsigned integer. Do not call dwarf2_read_address.
4419 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
4421 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4423 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
4424 value instead of hard-coded SPU_LS_SIZE.
4425 (spu_software_single_step): Likewise.
4426 * spu-tdep.h (SPU_LS_SIZE): Remove.
4428 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4430 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
4431 limit on local store memory accesses.
4432 * spu-linux-nat.c (spu_xfer_partial): Likewise.
4433 * spu-tdep.c (spu_lslr): Remove.
4434 (spu_pointer_to_address): Do not truncate addresses.
4435 (spu_integer_to_address): Likewise.
4436 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
4437 * spu-tdep.h: Add comments.
4438 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
4439 (SPU_OVERLAY_LMA): Define.
4441 2010-06-18 Stan Shebs <stan@codesourcery.com>
4443 * osdata.c (get_osdata): Warn separately if target does not report
4445 (info_osdata_command): Allow empty type, report error if target
4446 does not return available types of OS data.
4447 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
4448 types if no annex supplied.
4450 * thread.c (thread_id_make_value): Make a value representing the
4452 (_initialize_thread): Create $_thread.
4454 2010-06-17 Joel Brobecker <brobecker@adacore.com>
4456 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
4457 last local variable declaration. No real code change.
4459 2010-06-17 Tom Tromey <tromey@redhat.com>
4461 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
4462 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
4465 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
4466 Jan Kratochvil <jan.kratochvil@redhat.com>
4468 * breakpoint.c: Include parser-defs.h.
4469 (watchpoint_exp_is_const): New function.
4470 (watch_command_1): Call watchpoint_exp_is_const to check
4471 if the expression is constant.
4473 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
4475 * configure.ac: Check for RDYNAMIC also for cross builds.
4476 * configure: Regenerate.
4478 2010-06-15 Pedro Alves <pedro@codesourcery.com>
4480 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4481 (SFILES): Remove solib-null.c, add solib-target.c.
4482 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
4483 (ALLDEPFILES): Remove solib-target.c.
4484 * solib-target.c (_initialize_solib_target): Set
4485 current_target_so_ops to solib_target_so_ops if not already set.
4486 * solib-null.c: Delete.
4488 2010-06-14 Pedro Alves <pedro@codesourcery.com>
4490 * NEWS: Mention GDBserver's JIT compilation of tracepoint
4493 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4495 * cp-valprint.c (cp_print_static_field): Members of
4496 dont_print_stat_array_obstack are of type "struct type *".
4497 (_initialize_cp_valprint): Likewise.
4499 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4501 * frame.c (frame_register_unwind): Do not access contents
4502 of "optimized out" unwound register value.
4504 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4506 * ada-lang.h (ada_print_type): Make varstring const.
4507 * ada-typeprint.c (print_func_type): Make name const.
4508 (ada_print_type): Make varstring const.
4509 * c-lang.h (c_print_type): Make varstring const.
4510 * c-typeprint.c (c_print_type): Likewise.
4511 * f-lang.h (f_print_type): Likewise.
4512 * f-typeprint.c (f_print_type): Likewise.
4513 * jv-lang.h (java_print_type): Likewise.
4514 * jv-typeprint.c (java_print_type): Likewise.
4515 * language.c (unk_lang_print_type): Likewise.
4516 * language.h (struct language_defn) <la_print_type>: Likewise.
4517 * m2-lang.h (m2_print_type): Likewise.
4518 * m2-typeprint.c (m2_print_type): Likewise.
4519 * p-lang.h (pascal_print_type): Likewise.
4520 * p-typeprint.c (pascal_print_type): Likewise.
4522 2010-06-11 Stan Shebs <stan@codesourcery.com>
4524 Add per-operation permission flags.
4526 * target.h (struct target_ops): New method to_set_permissions.
4527 (target_set_permissions): New macro.
4528 (target_insert_breakpoint): Change macro to function.
4529 (target_remove_breakpoint): Ditto.
4530 (target_stop): Ditto.
4531 (may_write_registers): Declare.
4532 (may_write_memory): Declare.
4533 (may_insert_breakpoints): Declare.
4534 (may_insert_tracepoints): Declare.
4535 (may_insert_fast_tracepoints): Declare.
4536 (may_stop): Declare.
4537 * target.c (may_write_registers, may_write_registers_1): New globals.
4538 (may_write_memory, may_write_memory_1): New globals.
4539 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
4540 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
4541 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
4543 (may_stop, may_stop_1): New global.
4544 (target_xfer_partial): Test for write permission.
4545 (target_store_registers): Ditto.
4546 (target_insert_breakpoint): New function.
4547 (target_remove_breakpoint): New function.
4548 (target_stop): New function.
4549 (_initialize_targets): Add new set/show variables.
4550 (set_write_memory_permission): New function.
4551 (update_target_permissions): New function.
4552 (set_target_permissions): New function.
4553 (update_current_target): Default to_set_permissions.
4554 (_initialize_targets): Use new globals and setter function.
4555 * tracepoint.c (start_tracing): Test for permission.
4556 * inferior.h (update_observer_mode): Declare.
4557 * infrun.c (non_stop_1): Define earlier.
4558 (observer_mode, observer_mode_1): New globals.
4559 (set_observer_mode, show_observer_mode): New functions.
4560 (update_observer_mode): New function.
4561 (_initialize_infrun): Define "set observer" command.
4562 * remote.c (PACKET_QAllow): New optional packet.
4563 (remote_protocol_features): Add QAllow.
4564 (remote_set_permissions): New function.
4565 (remote_start_remote): Call it.
4566 (init_remote_ops): Add it to target vector.
4567 (_initialize_remote): Add config command for QAllow.
4569 2010-06-11 Tom Tromey <tromey@redhat.com>
4571 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
4572 DW_AT_vtable_elem_location even when GCC extension is seen.
4574 2010-06-11 Tom Tromey <tromey@redhat.com>
4576 PR gdb/9977, PR exp/11636:
4577 * value.h (value_offset): Update.
4578 (struct lval_funcs) <check_validity>: New field.
4579 <copy_closure>: Make argument const.
4580 (value_computed_closure): Update.
4581 (value_contents_for_printing): Declare.
4582 (value_bits_valid): Likewise.
4583 (val_print): Likewise.
4584 (set_value_component_location): Update.
4585 (value_entirely_optimized_out): Declare.
4586 * value.c (value_offset): Argument now const.
4587 (require_not_optimized_out): New function.
4588 (value_contents_for_printing): New function.
4589 (value_contents_all): Call require_not_optimized_out.
4590 (value_contents): Likewise.
4591 (value_bits_valid): New function.
4592 (value_computed_closure): Argument now const.
4593 (set_value_component_location): Make 'whole' argument const.
4594 (value_entirely_optimized_out): New function.
4595 (value_bitsize): Argument now 'const'.
4596 (value_bitpos): Likewise.
4597 (value_type): Likewise.
4598 * valprint.h (val_print_array_elements): Update.
4599 * valprint.c (val_print): Add 'val' argument. Use
4600 valprint_check_validity.
4601 (valprint_check_validity): New function.
4602 (value_check_printable): Use value_entirely_optimized_out.
4603 (common_val_print): Update.
4604 (value_print): Likewise.
4605 (val_print_array_elements): Add 'val' argument.
4606 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
4607 value_bits_valid. Reinit frame cache for lval_computed.
4608 * sh64-tdep.c (sh64_do_register): Update.
4609 * scm-valprint.c (scm_val_print): Add 'val' argument.
4610 * scm-lang.h (scm_val_print): Update.
4611 * python/python.h (apply_val_pretty_printer): Update.
4612 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
4613 argument. Call set_value_component_location.
4614 * printcmd.c (print_scalar_formatted): Update.
4615 * p-valprint.c (pascal_val_print): Add 'val' argument.
4616 (pascal_object_print_value_fields): Likewise.
4617 (pascal_object_print_value): Likewise.
4618 (pascal_object_print_static_field): Update.
4619 * p-lang.h (pascal_val_print): Update.
4620 (pascal_object_print_value_fields): Update.
4621 * mt-tdep.c (mt_registers_info): Update.
4622 * mi/mi-main.c (get_register): Update.
4623 (mi_cmd_data_evaluate_expression): Use common_val_print.
4624 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4625 (m2_print_unbounded_array): Likewise.
4626 (m2_val_print): Likewise.
4627 * m2-lang.h (m2_val_print): Update.
4628 * language.h (struct language_defn) <la_val_print>: Add 'val'
4630 (LA_VAL_PRINT): Likewise.
4631 * language.c (unk_lang_val_print): Add 'val' argument.
4632 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4633 (java_val_print): Likewise.
4634 * jv-lang.h (java_val_print): Add 'val' argument.
4635 * infcmd.c (default_print_registers_info): Update.
4636 * f-valprint.c (f77_print_array_1): Add 'val' argument.
4637 (f77_print_array): Likewise.
4638 (f_val_print): Likewise.
4639 * f-lang.h (f_val_print): Add 'val' argument.
4640 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4642 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
4643 set_value_optimized_out.
4644 (write_pieced_value): Use value_bitsize and value_bitpos.
4645 <default>: Don't exit loop.
4646 (check_pieced_value_validity): New function.
4647 (pieced_value_funcs): Reference check_pieced_value_validity,
4648 check_pieced_value_invalid.
4649 (copy_pieced_value_closure): Update.
4650 (check_pieced_value_bits): New function.
4651 (check_pieced_value_invalid): New function.
4652 * d-valprint.c (dynamic_array_type): Add 'val' argument.
4653 (d_val_print): Likewise.
4654 * d-lang.h (d_val_print): Update.
4655 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4656 (cp_print_value_fields_rtti): Likewise.
4657 (cp_print_value): Likewise.
4658 (cp_print_static_field): Update.
4659 * c-valprint.c (c_val_print): Add 'val' argument.
4660 (c_value_print): Update.
4661 * c-lang.h (c_val_print): Update.
4662 (cp_print_value_fields): Likewise.
4663 (cp_print_value_fields_rtti): Likewise.
4664 * ada-valprint.c (struct ada_val_print_args): Remove.
4665 (val_print_packed_array_elements): Add 'val' argument.
4666 (ada_val_print): Likewise. Rewrite.
4667 (ada_val_print_stub): Remove.
4668 (ada_val_print_array): Add 'val' argument.
4669 (ada_val_print_1): Likewise.
4670 (print_variant_part): Likewise.
4671 (ada_value_print): Update.
4672 (print_record): Add 'val' argument.
4673 (print_field_values): Likewise.
4674 * ada-lang.h (ada_val_print): Update.
4676 2010-06-11 Tom Tromey <tromey@redhat.com>
4678 * vec.h (VEC_cleanup): New macro.
4679 (DEF_VEC_ALLOC_FUNC_I): Update.
4680 (DEF_VEC_ALLOC_FUNC_P): Likewise.
4681 (DEF_VEC_ALLOC_FUNC_O): Likewise.
4682 * dwarf2loc.c (struct axs_var_loc): Remove.
4683 (unimplemented): New function.
4684 (translate_register): Likewise.
4685 (access_memory): Likewise.
4686 (compile_dwarf_to_ax): Likewise.
4687 (dwarf2_tracepoint_var_loc): Remove.
4688 (dwarf2_tracepoint_var_access): Likewise.
4689 (dwarf2_tracepoint_var_ref): Likewise.
4690 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4691 (loclist_tracepoint_var_ref): Likewise.
4692 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4693 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4694 require_composition. No longer static.
4695 (execute_stack_op): Update.
4696 * ax-gdb.h (trace_kludge): Declare.
4698 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4700 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4701 (should_be_inserted): Return zero also on NULL OWNER.
4702 (breakpoint_program_space_exit): New OWNER comment.
4703 (insert_breakpoint_locations): Extend comment for OWNER.
4704 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4705 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4707 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4708 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4709 (bpstat_check_location): New assert on OWNER.
4710 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4711 and B initializations to the code block. New assert on them.
4712 (print_one_breakpoint_location): New OWNER comment.
4713 (watchpoint_locations_match): Assert on OWNER.
4714 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4715 initializations to the code block. New assert on OWNER.
4716 (set_breakpoint_location_function): New assert on OWNER.
4717 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4718 (bp_location_compare, update_global_location_list)
4719 (update_global_location_list): New OWNER comment.
4721 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4723 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4725 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4727 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4728 (lin_thread_get_thread_signals): Remove prototype.
4729 (GET_THREAD_SIGNALS): Remove.
4730 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4731 * linux-thread-db.c (check_thread_signals): Directly call
4732 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4734 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4736 * gregset.h (GDB_FPXREGSET_T): Remove.
4737 (gdb_fpxregset_t): Likewise.
4738 (supply_fpxregset): Remove prototype.
4739 (fill_fpxregset): Likewise.
4740 * i386-linux-nat.c (supply_fpxregset): Remove.
4741 (fill_fpxregset): Likewise.
4742 (fetch_fpxregs): Inline supply_fpxregset call.
4743 (store_fpxregs): Inline fill_fpxregset call.
4745 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4746 * config/i386/nm-linux.h: Remove file.
4748 2010-06-09 Michael Snyder <msnyder@vmware.com>
4750 * target.c (update_current_target): Fix spelling error in comment.
4751 (target_mourn_inferior): Fix spelling error in error message.
4753 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4755 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4756 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4758 2010-06-08 Michael Snyder <msnyder@vmware.com>
4760 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4762 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4764 * configure.ac <"${have_libpython}" != no>: New workaround of
4766 * configure: Regenerate.
4768 2010-06-08 Hui Zhu <teawater@gmail.com>
4770 * record.c (record_wait): Move signal out of replay code.
4772 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4775 * dwarf2-frame.c (no_dwarf_call): New function.
4776 (execute_stack_op): Set CTX->DWARF_CALL.
4777 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4778 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4779 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4780 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4781 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4782 (needs_frame_dwarf_call): New function.
4783 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4784 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4785 Update the comment. Move variables die, offset and error call to ...
4786 (follow_die_ref): ... a new function.
4787 (dwarf2_fetch_die_location_block): New function.
4788 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4790 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4792 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4793 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4794 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4795 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4797 (struct needs_frame_baton): New field per_cu.
4798 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4799 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4801 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4803 * cp-support.c (make_symbol_overload_list_namespace): Only search
4804 static and global blocks.
4805 (make_symbol_overload_list_block): New function.
4806 (make_symbol_overload_list): Separate namespace search from block
4808 (make_symbol_overload_list_qualified): Use
4809 make_symbol_overload_list_block.
4811 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4813 * value.h: Created oload_search_type enum.
4814 (find_overload_match): Use oload_search_type enum.
4815 * valops.c (find_overload_match): Support combined member and
4817 * eval.c (evaluate_subexp_standard): Calls to
4818 find_overload_match now use oload_search_type enum.
4819 (oload_method_static): Verify index is a proper value.
4820 * valarith.c (value_user_defined_cpp_op): Search for and handle
4821 both member and non-member operators.
4822 (value_user_defined_cpp_op): New function.
4823 (value_user_defined_op): New function.
4824 (value_x_unop): Use value_user_defined_op.
4825 (value_x_binop): Ditto.
4826 * cp-support.c (make_symbol_overload_list_using): Added block
4828 Add check for namespace aliases and imported declarations.
4830 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4832 * breakpoint.h (owner): Extend the comment.
4834 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4836 Clear stale specific bp_location from former whole breakpoint.
4837 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4839 (free_bp_location): ... here. Rename there the called function to
4840 bpstat_remove_bp_location_callback.
4841 (bpstat_remove_breakpoint_callback): Rename to ...
4842 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4843 to struct bp_location. Change the called function to
4844 bpstat_remove_bp_location. Create new declaration for the function.
4845 (bpstat_remove_breakpoint): Rename to ...
4846 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4847 code for the new parameter type.
4849 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4851 * README: Make version-agnostic.
4853 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4855 Fix duplicate types for single DIE.
4856 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4858 (read_array_type): Remove type initialization. Recheck get_die_type
4859 after initial die_type. Move set_die_type before set_descriptive_type.
4860 (read_set_type): New variable domain_type. Recheck get_die_type after
4861 initial die_type. Move attr initialization later.
4862 (read_tag_pointer_type, read_tag_reference_type): New variable
4863 target_type. Recheck get_die_type after initial die_type.
4864 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4865 die_type and die_containing_type.
4866 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4867 Recheck get_die_type after initial die_type.
4868 (read_subrange_type): Recheck get_die_type after initial die_type.
4869 Move set_die_type before set_descriptive_type.
4870 (set_die_type): Extend the function comment. Call complaint if DIE has
4871 some type already set.
4873 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4875 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4876 for current naming of thread groups (iN, not N).
4878 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4880 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4881 * parse.c (operator_length): Likewise.
4882 (operator_length_standard): Likewise.
4883 * parser-defs.h (operator_length): Likewise.
4884 (operator_length_standard): Likewise.
4885 (struct exp_descriptor <operator_length>): Likewise.
4887 2010-06-04 Doug Evans <dje@google.com>
4889 Add support for enabling/disabling individual pretty-printers.
4890 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4891 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4892 * python/python.c (gdbpy_enabled_cst): Define.
4893 (_initialize_python): Initialize gdbpy_enabled_cst.
4896 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4898 * breakpoint.c (update_global_location_list): Fix comment typo.
4900 2010-06-04 Hui Zhu <teawater@gmail.com>
4902 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4904 2010-06-03 Doug Evans <dje@google.com>
4906 * configure.ac: Don't fail if python is unusable when
4907 configured with --with-python=auto.
4908 * configure: Regenerate.
4910 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4912 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
4914 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4916 * valprint.h (get_array_bounds): Change low and high parameter types
4918 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
4920 (val_print_array_elements): Adapt to change above.
4921 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4922 * p-valprint.c (pascal_val_print): Likewise.
4924 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4926 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4927 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4930 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4932 Support DW_TAG_module as separate namespaces.
4933 * dwarf2read.c (typename_concat): New parameter physname.
4934 (read_module_type): New function and declaration.
4935 (scan_partial_symbols): Scan also DW_TAG_module children.
4936 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4937 to typename_concat backward compatible physname value 0.
4938 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4939 backward compatible physname value 0.
4940 (add_partial_module, read_module): Remove FIXME comment.
4941 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4942 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4943 DIEs under DW_TAG_module.
4944 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4945 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4946 && physname and return there instead of just setting NAME. Extend
4947 the main block for language_fortran. Pass physname parameter to the
4948 typename_concat call.
4949 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4950 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4951 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4952 missing from SYMBOL_SET_NAMES in the language_fortran case.
4953 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4955 (read_type_die) <DW_TAG_module>: New.
4956 (MAX_SEP_LEN): Increase to 7.
4957 (typename_concat): New parameter physname. New variable lead. Support
4958 also language_fortran.
4959 * f-exp.y (yylex): Consider : also as a symbol name character class.
4960 * f-lang.c: Include cp-support.h.
4961 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4962 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4963 f_word_break_characters and f_make_symbol_completion_list.
4964 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4965 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4966 * symtab.c (symbol_init_language_specific): Support language_fortran.
4967 (symbol_find_demangled_name): New comment on language_fortran.
4968 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4969 for language_fortran.
4970 (lookup_symbol_aux_local): Check imports also for language_fortran.
4971 (default_make_symbol_completion_list): Rename to ...
4972 (default_make_symbol_completion_list_break_on): ... this name. New
4973 parameter break_on, use it.
4974 (default_make_symbol_completion_list): New stub.
4975 * symtab.h (default_make_symbol_completion_list_break_on): New
4978 2010-06-02 Joel Brobecker <brobecker@adacore.com>
4980 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4983 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4985 * dwarf2read.c (typename_concat): Add const to the variable sep.
4987 2010-06-02 Tom Tromey <tromey@redhat.com>
4989 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4990 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4991 type is const. Add 'def' argument. Add missing operators, remove
4993 (decode_locdesc): Update.
4994 (dwarf2_always_disassemble): New global.
4995 (show_dwarf2_always_disassemble): New function.
4996 (_initialize_dwarf2_read): Add always-disassemble.
4997 (dwarf2_per_cu_offset_size): New function.
4998 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4999 (piece_end_p): New function.
5000 (locexpr_describe_location_piece): Replace 'size' argument with
5001 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
5002 some constants. Remove errors.
5003 (disassemble_dwarf_expression): New function.
5004 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
5005 Add 'offset_size' argument.
5006 (loclist_describe_location): Change output formatting.
5007 * dwarf2expr.h (dwarf_stack_op_name): Declare.
5009 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
5011 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
5012 anonymous type case.
5014 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
5016 * dwarf2read.c (read_subrange_type): Handle missing base type
5017 according to Dwarf-2 specifications.
5019 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
5021 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
5023 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
5024 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
5025 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
5026 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
5027 UNOP_CHMAX, UNOP_CHMIN.
5028 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
5029 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
5030 UNOP_CHMIN>: Remove opcodes.
5032 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
5034 * dwarf2read.c (read_func_scope): Do not complain for
5035 external function if bounds are not found.
5037 2010-06-01 Pedro Alves <pedro@codesourcery.com>
5039 * NEWS: Mention gdbserver fast tracepoints support.
5041 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
5043 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
5045 (windows_set_console_info): New function.
5046 (windows_create_inferior): Call windows_set_console_info
5047 if NEW_CONSOLE is true.
5048 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
5049 (_initialize_loadable): Initialize GetConsoleFontSize and
5050 GetCurrentConsoleFont.
5052 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5054 * Makefile.in (RDYNAMIC): New.
5055 (SFILES): Add proc-service.list.
5056 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
5057 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
5058 * config/arm/linux.mh: Likewise.
5059 * config/i386/linux.mh: Likewise.
5060 * config/i386/linux64.mh: Likewise.
5061 * config/ia64/linux.mh: Likewise.
5062 * config/m32r/linux.mh: Likewise.
5063 * config/m68k/linux.mh: Likewise.
5064 * config/mips/linux.mh: Likewise.
5065 * config/pa/linux.mh: Likewise.
5066 * config/powerpc/linux.mh: Likewise.
5067 * config/powerpc/ppc64-linux.mh: Likewise.
5068 * config/s390/s390.mh: Likewise.
5069 * config/sparc/linux.mh: Likewise.
5070 * config/sparc/linux64.mh: Likewise.
5071 * config/xtensa/linux.mh: Likewise.
5072 * configure.ac: New RDYNAMIC on native host and GCC.
5073 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
5074 * configure: Regenerate.
5075 * proc-service.list: New.
5077 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5079 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
5082 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5084 * linux-nat.c (linux_nat_wait_1): Do not call
5085 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
5086 TARGET_WAITKIND_SIGNALLED.
5088 2010-05-27 Joel Brobecker <brobecker@adacore.com>
5090 * ada-lang.c (ada_inferior_data): New struct.
5091 (ada_inferior_data): New static global.
5092 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
5093 (ada_get_tsd_type): New functions.
5094 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
5095 to look the tsd type up.
5096 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
5097 event. Set ada_inferior_data.
5099 2010-05-27 Pedro Alves <pedro@codesourcery.com>
5101 * remote.c (unpack_varlen_hex): Remove forward declaration.
5102 (remote_console_output): Make static, and add forward declaration.
5103 * remote.h: Drop FIXME comment.
5104 (unpack_varlen_hex): Declare.
5105 (remote_console_output, remote_cisco_objfile_relocate)
5106 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
5107 Delete declarations.
5108 * tracepoint.c: Include "remote.h".
5109 (unpack_varlen_hex): Delete declaration.
5111 2010-05-27 Tom Tromey <tromey@redhat.com>
5113 * dwarf2loc.c (struct piece_closure) <refc>: New field.
5114 (allocate_piece_closure): Initialize refc.
5115 (copy_pieced_value_closure): Use refc.
5116 (free_pieced_value_closure): Likewise.
5118 2010-05-27 Tom Tromey <tromey@redhat.com>
5120 * arm-tdep.c (push_stack_item): 'contents' now const.
5121 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
5122 value_contents_writeable. Introduce new temporary.
5124 2010-05-27 Tom Tromey <tromey@redhat.com>
5126 * findcmd.c (parse_find_args): Use value_contents, not
5129 2010-05-27 Tom Tromey <tromey@redhat.com>
5131 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
5132 const. Use value_contents, not value_contents_writeable.
5134 2010-05-27 Joel Brobecker <brobecker@adacore.com>
5136 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
5137 by call to value_contents.
5139 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
5141 * MAINTAINERS: Add myself for write after approval privileges.
5143 2010-05-26 Doug Evans <dje@google.com>
5145 Allow python to find its files if moved from original location.
5146 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
5147 (GDB_AC_WITH_DIR): Call it.
5148 * configure.ac: Define WITH_PYTHON_PATH if we can find the
5149 python installation directory.
5150 * config.in: Regenerate.
5151 * configure: Regenerate.
5152 * defs.h (python_libdir): Declare.
5153 * main.c (python_libdir): Define.
5154 (captured_main): Initialize python_libdir.
5155 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
5156 call Py_SetProgramName to make sure python can find its libraries
5159 * configure.ac: Try to use python's distutils to fetch compilation
5161 * configure: Regenerate.
5162 * python/python-config.py: New file.
5164 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
5166 * ser-tcp.c (net_open): Check error return from socket() call by its
5167 equality to -1 not by it being negative.
5168 (net_close): Likewise.
5170 2010-05-26 Pedro Alves <pedro@codesourcery.com>
5172 * NEWS: Mention the `qRelocInsn' feature.
5173 * gdbarch.sh (relocate_instruction): New.
5174 * amd64-tdep.c (rip_relative_offset): New.
5175 (append_insns): New.
5176 (amd64_relocate_instruction): New.
5177 (amd64_init_abi): Install it.
5178 * i386-tdep.c (append_insns): New.
5179 (i386_relocate_instruction): New.
5180 (i386_gdbarch_init): Install it.
5181 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
5182 * gdbarch.h, gdbarch.c: Regenerate.
5184 2010-05-26 Tom Tromey <tromey@redhat.com>
5186 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
5187 (struct dwarf2_loclist_baton) <data>: Likewise.
5188 * dwarf2loc.c (find_location_expression): Constify return type.
5189 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
5190 (dwarf2_loc_desc_needs_frame): Likewise.
5191 (loclist_read_variable): Constify.
5192 (loclist_describe_location): Likewise.
5193 (loclist_tracepoint_var_ref): Likewise.
5195 2010-05-25 Tom Tromey <tromey@redhat.com>
5197 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
5198 (dwarf_expr_frame_base_1): Likewise.
5199 (read_pieced_value): Update.
5200 (needs_frame_frame_base): Constify.
5201 (dwarf2_tracepoint_var_loc): Likewise.
5202 (dwarf2_tracepoint_var_access): Likewise.
5203 (locexpr_describe_location_piece): Likewise.
5204 (locexpr_describe_location_1): Likewise.
5205 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
5208 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
5209 (dwarf_expr_eval, read_uleb128, read_sleb128)
5210 (dwarf2_read_address): Update.
5211 * dwarf2expr.c (dwarf_expr_eval): Constify.
5212 (read_uleb128): Likewise.
5213 (read_sleb128): Likewise.
5214 (dwarf2_read_address): Likewise.
5215 (require_composition): Likewise.
5216 (execute_stack_op): Likewise.
5217 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
5219 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
5221 (no_get_frame_base): Constify.
5222 (execute_stack_op): Likewise.
5223 (execute_cfa_program): Likewise.
5224 (read_encoded_value): Likewise.
5226 2010-05-25 Doug Evans <dje@google.com>
5228 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
5230 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
5231 * event-loop.c: ... here.
5232 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
5233 `error' for clarity.
5234 (tui_getc): Pass correct value for `error' parameter to
5235 tui_readline_output.
5237 Add python gdb.GdbError and gdb.string_to_argv.
5238 * NEWS: Document them.
5239 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
5240 the exception is gdb.GdbError. Print a second traceback if there's
5241 an error computing the error message.
5242 (gdbpy_string_to_argv): New function.
5243 * python/py-utils.c (gdbpy_obj_to_string): New function.
5244 (gdbpy_exception_to_string): New function.
5245 * python/python-internal.h (gdbpy_string_to_argv): Declare.
5246 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
5247 (gdbpy_gdberror_exc): Declare.
5248 * python/python.c (gdbpy_gdberror_exc): New global.
5249 (_initialize_python): Initialize gdbpy_gdberror_exc and create
5251 (GdbMethods): Add string_to_argv.
5253 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5255 * windows-nat.c (display_selector): Call GetLastError to give better
5256 failure explanation.
5258 2010-05-24 Pedro Alves <pedro@codesourcery.com>
5260 * config.in: Regenerate.
5262 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5265 * target.c (push_target): Return only void. Remove the return value
5267 * target.h (push_target): Return only void.
5269 2010-05-23 Pedro Alves <pedro@codesourcery.com>
5271 Update gnulib from latest git.
5272 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5274 * gnulib/memcmp.c: Removed.
5275 * gnulib/memchr.valgrind: New.
5276 * gnulib/stddef.in.h: New.
5277 * gnulib/Makefile.am: Updated.
5278 * gnulib/memchr.c: Updated.
5279 * gnulib/memmem.c: Updated.
5280 * gnulib/stdint.in.h: Updated.
5281 * gnulib/str-two-way.h: Updated.
5282 * gnulib/string.in.h: Updated.
5283 * gnulib/wchar.in.h: Updated.
5285 * gnulib/extra/link-warning.h: Removed.
5286 * gnulib/extra/c++defs.h: New.
5287 * gnulib/extra/warn-on-use.h: New.
5288 * gnulib/extra/arg-nonnull.h: Updated.
5290 * gnulib/m4/extensions.m4: Updated.
5291 * gnulib/m4/gnulib-cache.m4: Updated.
5292 * gnulib/m4/gnulib-common.m4: Updated.
5293 * gnulib/m4/gnulib-comp.m4: Updated.
5294 * gnulib/m4/gnulib-tool.m4: Updated.
5295 * gnulib/m4/include_next.m4: Updated.
5296 * gnulib/m4/longlong.m4: Updated.
5297 * gnulib/m4/memchr.m4: Updated.
5298 * gnulib/m4/memmem.m4: Updated.
5299 * gnulib/m4/stdint.m4: Updated.
5300 * gnulib/m4/string_h.m4: Updated.
5301 * gnulib/m4/memcmp.m4: Removed.
5302 * gnulib/m4/onceonly_2_57.m4: Removed.
5303 * gnulib/m4/00gnulib.m4: New.
5304 * gnulib/m4/mmap-anon.m4: New.
5305 * gnulib/m4/multiarch.m4: New.
5306 * gnulib/m4/onceonly.m4: New.
5307 * gnulib/m4/stddef_h.m4: New.
5308 * gnulib/m4/warn-on-use.m4: New.
5309 * gnulib/m4/wchar.m4: Removed.
5310 * gnulib/m4/wchar_h.m4: New.
5311 * gnulib/m4/wchar_t.m4: New.
5312 * gnulib/m4/wint_t.m4: New.
5314 * aclocal.m4: Regenerate.
5315 * config.in: Likewise.
5316 * configure: Likewise.
5317 * gnulib/Makefile.in: Likewise.
5319 2010-05-21 Tom Tromey <tromey@redhat.com>
5321 * dwarf2loc.c (extract_bits_primitive): New function.
5322 (extract_bits): Likewise.
5323 (insert_bits): Likewise.
5324 (copy_bitwise): Likewise.
5325 (read_pieced_value): Do all operations in bits.
5326 (write_pieced_value): Likewise.
5327 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
5328 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
5329 Always use xrealloc to resize piece array.
5330 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
5331 <DW_OP_piece>: Update.
5332 <DW_OP_bit_piece>: New case.
5334 2010-05-21 Tom Tromey <tromey@redhat.com>
5336 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
5337 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
5338 * dwarf2expr.h (enum dwarf_value_location)
5339 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
5340 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
5341 (add_piece): Handle empty piece.
5342 (execute_stack_op) <DW_OP_piece>: Handle
5343 DWARF_VALUE_OPTIMIZED_OUT.
5345 2010-05-21 Tom Tromey <tromey@redhat.com>
5347 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
5348 evaluate_subexp, not evaluate_subexp_with_coercion.
5350 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5352 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
5355 2010-05-21 Tom Tromey <tromey@redhat.com>
5357 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
5359 (write_pieced_value): Likewise.
5361 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5363 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
5364 and DW_TAG_volatile_type.
5365 (new_symbol): Likewise.
5367 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
5369 * p-valprint.c (pascal_val_print): Call get_array_bounds
5370 to obtain the number of elements in an array.
5372 2010-05-19 Doug Evans <dje@google.com>
5374 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
5376 * python.c (source_python_script): Add comment.
5377 (source_python_script_for_objfile): Remove unnecessary call to
5380 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5381 Sergio Durigan Junior <sergiodj@redhat.com>
5384 * parse.c (exp_iterate): Use operator_length wrapper function.
5386 2010-05-18 Michael Snyder <msnyder@vmware.com>
5388 * ada-lang.c: White space.
5389 * ada-typeprint.c: White space.
5390 * ada-valprint.c: White space.
5391 * addrmap.c: White space.
5392 * auxv.c: White space.
5393 * ax-gdb.c: White space.
5395 2010-05-18 Hui Zhu <teawater@gmail.com>
5397 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
5399 (inferior_call_waitpid): Move make_cleanup out of check.
5400 Check the return of waitpid.
5401 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
5403 2010-05-17 Michael Snyder <msnyder@vmware.com>
5405 * tui/tui.c: White space.
5406 * tui/tui-data.c: White space.
5407 * tui/tui-disasm.c: White space.
5408 * tui/tui-file.c: White space.
5409 * tui/tui-interp.c: White space.
5410 * tui/tui-main.c: White space.
5411 * tui/tui-out.c: White space.
5412 * tui/tui-regs.c: White space.
5413 * tui/tui-source.c: White space.
5414 * tui/tui-stack.c: White space.
5415 * tui/tui-win.c: White space.
5416 * tui/tui-winsource.c: White space.
5418 * procfs.c: White space.
5420 * python/py-auto-load.c: White space.
5421 * python/py-block.c: White space.
5422 * python/py-breakpoint.c: White space.
5423 * python/py-cmd.c: White space.
5424 * python/py-function.c: White space.
5425 * python/py-lazy-string.c: White space.
5426 * python/py-objfile.c: White space.
5427 * python/py-param.c: White space.
5428 * python/py-prettyprint.c: White space.
5429 * python/py-progspace.c: White space.
5430 * python/py-symtab.c: White space.
5431 * python/python.c: White space.
5432 * python/py-type.c: White space.
5433 * python/py-utils.c: White space.
5434 * python/py-value.c: White space.
5436 * mi/mi-cmd-break.c: White space.
5437 * mi/mi-cmd-env.c: White space.
5438 * mi/mi-cmds.c: White space.
5439 * mi/mi-cmd-stack.c: White space.
5440 * mi/mi-cmd-var.c: White space.
5441 * mi/mi-console.c: White space.
5442 * mi/mi-getopt.c: White space.
5443 * mi/mi-interp.c: White space.
5444 * mi/mi-main.c: White space.
5445 * mi/mi-out.c: White space.
5446 * mi/mi-parse.c: White space.
5448 * cli/cli-cmds.c: White space.
5449 * cli/cli-decode.c: White space.
5450 * cli/cli-dump.c: White space.
5451 * cli/cli-interp.c: White space.
5452 * cli/cli-logging.c: White space.
5453 * cli/cli-script.c: White space.
5454 * cli/cli-setshow.c: White space.
5456 * valarith.c: White space.
5457 * valops.c: White space.
5458 * valprint.c: White space.
5459 * value.c: White space.
5460 * varobj.c: White space.
5461 * xcoffread.c: White space.
5462 * xml-support.c: White space.
5463 * xml-tdesc.c: White space.
5465 2010-05-17 Andreas Schwab <schwab@redhat.com>
5468 * c-lang.c (c_printstr): Compute real length of NUL terminated
5471 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5473 * parse.c (parse_exp_in_context): When block is not NULL, use
5474 its associated language to parse the expression instead of
5475 the current_language.
5477 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5479 * jv-lang.c (java_lookup_class): Remove commented out code.
5480 (type_from_class): Likewise.
5481 (java_op_print_tab): Remove commented-out elements.
5483 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5485 * ada-lang.c (to_fixed_range_type): The the raw index type as
5486 argument instead of the raw type name. Remove orig_type parameter.
5487 Update calls throughout.
5488 (ada_fixup_array_indexes_type): New function.
5489 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
5490 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
5491 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
5492 Remove name parameter.
5493 (print_array_type): Add call to ada_fixup_array_indexes_type.
5494 Update calls to print_range_type.
5495 (ada_print_type): Update calls to print_range_type.
5497 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5499 * dwarf2read.c (read_set_type): Set type length if
5500 DW_AT_byte_size attribute is present.
5502 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5504 * p-valprint.c (pascal_val_print): Handle set type if range limits
5505 are undefined but size is known.
5507 2010-05-17 Pedro Alves <pedro@codesourcery.com>
5509 * procfs.c: Reformat.
5511 2010-05-16 Michael Snyder <msnyder@vmware.com>
5513 * target.c: White space.
5514 * target-descriptions.c: White space.
5515 * target-memory.c: White space.
5516 * thread.c: White space.
5517 * top.c: White space.
5518 * tracepoint.c: White space.
5519 * trad-frame.c: White space.
5520 * tramp-frame.c: White space.
5521 * ui-file.c: White space.
5522 * ui-out.c: White space.
5523 * user-regs.c: White space.
5524 * utils.c: White space.
5526 * scm-exp.c: White space.
5527 * scm-lang.c: White space.
5528 * scm-valprint.c: White space.
5529 * sentinel-frame.c: White space.
5530 * ser-base.c: White space.
5531 * ser-go32.c: White space.
5532 * serial.c: White space.
5533 * ser-mingw.c: White space.
5534 * ser-pipe.c: White space.
5535 * ser-tcp.c: White space.
5536 * ser-unix.c: White space.
5537 * solib.c: White space.
5538 * solib-darwin.c: White space.
5539 * solib-frv.c: White space.
5540 * solib-irix.c: White space.
5541 * solib-osf.c: White space.
5542 * solib-pa64.c: White space.
5543 * solib-som.c: White space.
5544 * solib-spu.c: White space.
5545 * solib-svr4.c: White space.
5546 * solib-target.c: White space.
5547 * source.c: White space.
5548 * stabsread.c: White space.
5549 * stack.c: White space.
5550 * std-regs.c: White space.
5551 * symfile.c: White space.
5552 * symmisc.c: White space.
5553 * symtab.c: White space.
5555 2010-05-16 Michael Snyder <msnyder@vmware.com>
5557 * source.c (_initialize_source): Add "rev" as an abbreviation
5558 for the "reverse-search" command.
5560 2010-05-16 Michael Snyder <msnyder@vmware.com>
5562 * record.c: White space.
5563 * regcache.c: White space.
5564 * reggroups.c: White space.
5565 * remote-fileio.c: White space.
5566 * remote-m32r-sdi.c: White space.
5567 * remote-mips.c: White space.
5568 * remote-sim.c: White space.
5569 * remote.c: White space.
5570 (process_g_packet): Remove orphan braces.
5572 2010-05-15 Michael Snyder <msnyder@vmware.com>
5574 * parse.c: White space.
5575 * p-lang.c: White space.
5576 * posix-hdep.c: White space.
5577 * printcmd.c: White space.
5578 * progspace.c: White space.
5579 * prologue-value.c: White space.
5580 * psymtab.c: White space.
5581 * p-typeprint.c: White space.
5582 * p-valprint.c: White space.
5584 * objc-lang.c: White space.
5585 * objfiles.c: White space.
5586 * observer.c: White space.
5587 * osabi.c: White space.
5588 * osdata.c: White space.
5590 * m2-lang.c: White space.
5591 * m2-valprint.c: White space.
5592 * macrocmd.c: White space.
5593 * macroexp.c: White space.
5594 * macroscope.c: White space.
5595 * macrotab.c: White space.
5596 * main.c: White space.
5597 * maint.c: White space.
5598 * mdebugread.c: White space.
5599 * memattr.c: White space.
5600 * minsyms.c: White space.
5601 * monitor.c: White space.
5603 2010-05-14 Michael Snyder <msnyder@vmware.com>
5605 * jv-lang.c: White space.
5606 * jv-typeprint.c: White space.
5607 * jv-valprint.c: White space.
5608 * language.c: White space.
5609 * libunwind-frame.c: White space.
5610 * linespec.c: White space.
5611 * linux-nat.c: White space.
5612 * linux-record.c: White space.
5613 * linux-thread-db.c: White space.
5615 * infcall.c: White space.
5616 * inf-child.c: White space.
5617 * infcmd.c: White space.
5618 * inferior.c: White space.
5619 * inf-loop.c: White space.
5620 * inflow.c: White space.
5621 * inline-frame.c: White space.
5622 * interps.c: White space.
5624 * gcore.c: White space.
5625 * gdb.c: White space.
5626 * gdbtypes.c: White space.
5627 * gnu-nat.c: White space.
5628 * gnu-v2-abi.c: White space.
5629 * gnu-v3-abi.c: White space.
5631 * findcmd.c: White space.
5632 * findvar.c: White space.
5633 * fork-child.c: White space.
5634 * frame-base.c: White space.
5635 * frame.c: White space.
5636 * frame-unwind.c: White space.
5637 * f-valprint.c: White space.
5639 * elfread.c: White space.
5640 * environ.c: White space.
5641 * eval.c: White space.
5642 * event-loop.c: White space.
5643 * event-top.c: White space.
5644 * exceptions.c: White space.
5645 * exec.c: White space.
5646 * expprint.c: White space.
5648 * dbxread.c: White space.
5649 * dcache.c: White space.
5650 * disasm.c: White space.
5651 * doublest.c: White space.
5652 * dsrec.c: White space.
5653 * dummy-frame.c: White space.
5654 * dwarf2expr.c: White space.
5655 * dwarf2-frame.c: White space.
5656 * dwarf2loc.c: White space.
5657 * dwarf2read.c: White space.
5659 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
5663 * python/py-value.c (valpy_hash): New function.
5664 (value_object_type): Register valpy_hash.
5666 2010-05-14 Hui Zhu <teawater@gmail.com>
5667 Michael Snyder <msnyder@vmware.com>
5669 * linux-fork.c (gdbthread.h): New include.
5670 (fork_info): Add parent_ptid.
5671 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5673 (delete_checkpoint_command): Call inferior_call_waitpid.
5674 (checkpoint_command): Set parent_ptid.
5676 2010-05-13 Michael Snyder <msnyder@vmware.com>
5678 * dictionary.c: Re-indent to GNU coding standard.
5680 * charset.c: White space.
5681 * c-lang.c: White space.
5682 * cli-out.c: White space.
5683 * coffread.c: White space.
5684 * complaints.c: White space.
5685 * completer.c: White space.
5686 * corefile.c: White space.
5687 * corelow.c: White space.
5688 * cp-abi.c: White space.
5689 * cp-namespace.c: White space.
5690 * cp-support.c: White space.
5691 * cp-valprint.c: White space.
5692 * c-typeprint.c: White space.
5693 * c-valprint.c: White space.
5694 * blockframe.c: White space.
5695 * breakpoint.c: White space.
5696 * buildsym.c: White space.
5697 * blockframe.c: White space.
5698 * bcache.c: White space.
5699 * gdbarch.sh: White space, add blank lines.
5700 * arch-utils.c: Ditto.
5701 * gdbarch.c: Regenerate.
5702 * frame.c: White space, add blank lines.
5703 * stack.c: White space, add blank lines.
5704 (initialize_stack): Remove long-dead code.
5706 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5709 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5710 (locexpr_read_variable, loclist_read_variable): Update the callers.
5712 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5715 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5716 Remove check of NULL returned by tag_type_to_type.
5717 (die_containing_type): Remove variable type. Remove type_die variable
5718 initialization. Remove check of NULL returned by tag_type_to_type.
5720 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5723 * gdbtypes.c (lookup_struct_elt_type): Also lookup
5724 names of unnamed structures or unions.
5726 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5728 * procfs.c (proc_watchpoint_address): New function.
5729 (procfs_stopped_by_watchpoint): Remove useless check after
5730 find_procinfo_or_die call.
5731 (procfs_stopped_data_address): New function.
5732 (procfs_use_watchpoints): Register new watchpoint related function.
5734 2010-05-11 Tom Tromey <tromey@redhat.com>
5736 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5738 2010-05-10 Michael Snyder <msnyder@vmware.com>
5740 * utils.c: White space cleanup.
5742 2010-05-10 Tom Tromey <tromey@redhat.com>
5744 * eval.c (ptrmath_type_p): Add 'lang' argument.
5745 (evaluate_subexp_standard): Update.
5746 (evaluate_subexp_with_coercion): Update.
5747 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5749 2010-05-10 Michael Snyder <msnyder@vmware.com>
5751 * utils.c (do_fclose_cleanup) Restore local variable.
5753 2010-05-09 Doug Evans <dje@google.com>
5755 * record.c (init_record_core_ops): Rename record_core to record-core.
5757 2010-05-08 Joel Brobecker <brobecker@adacore.com>
5759 Implement task switching on pa-hpux.
5760 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5761 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5763 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5765 * valops.c (find_overload_match): Add missing i18n markup.
5767 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5769 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5771 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5773 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5774 list for the obconcat call.
5775 * mdebugread.c (parse_symbol): Likewise.
5776 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5778 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5779 New variable ap. Remove variables len and val.
5780 * symfile.h (obconcat): Likewise for the prototype.
5782 2010-05-07 Michael Snyder <msnyder@vmware.com>
5784 * python/python.c (execute_gdb_command): Remove unused variables.
5785 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
5786 * python/py-breakpoint.c (gdbpy_breakpoint_created):
5787 Remove unused variable.
5788 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5789 (cmdpy_completer): Remove unused variable.
5790 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5791 * python/py-function.c (fnpy_call): Remove unused variable.
5792 * python/py-objfile.c (objfile_to_objfile_object):
5793 Remove unused variable.
5794 * python/py-param.c (parmpy_init): Remove unused variable.
5795 * python/py-prettyprint.c (apply_varobj_pretty_printer):
5796 Remove unused variable.
5797 (gdbpy_default_visualizer): Remove unused variable.
5798 * python/py-progspace.c (pspace_to_pspace_object):
5799 Remove unused variable.
5800 * python/py-symtab.c (symtab_and_line_to_sal_object):
5801 Remove unused variable.
5802 * python/py-type.c (typy_template_argument):
5803 Remove unused variable.
5804 * python/py-value.c (valpy_string): Remove unused variable.
5805 (convert_value_from_python): Remove unused variables.
5807 2010-05-07 Michael Snyder <msnyder@vmware.com>
5809 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5810 and use it to compute variable 't1'.
5812 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5814 * ada-lang.c (assign_aggregate): Remove unused variable.
5816 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5819 * valops.c (find_overload_match): Handle fsym == NULL case.
5820 Add int no_adl argument.
5821 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5823 Add int no_adl argument.
5824 (find_oload_champ_namespace): Add int no_adl argument.
5825 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5827 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5828 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5829 Evaluate arguments and use them to perform ADL lookup.
5830 Pass no_adl argument to find_overload_match.
5831 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5832 * cp-support.h: Added prototype for
5833 make_symbol_overload_list_namespace.
5834 * cp-support.c (make_symbol_overload_list_namespace): New function.
5835 (make_symbol_overload_list_adl_namespace): New function.
5836 (make_symbol_overload_list_adl): New function.
5837 (make_symbol_overload_list_using): Moved code to add function to
5838 overload set to make_symbol_overload_list_namespace.
5839 * c-exp.y: create UNKNOWN_CPP_NAME token.
5840 Add parse rule for ADL functions.
5841 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5843 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5845 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5848 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5850 Implement task switching on solaris targets.
5851 * sol-thread.c (thread_db_find_thread_from_tid)
5852 (sol_get_ada_task_ptid): New functions.
5853 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5855 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5857 * remote.c (remote_query_supported_append): Use reconcat.
5858 (remote_query_supported): Install a cleanup. Use reconcat.
5860 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5862 * gdbarch.sh (qsupported): Delete.
5863 * gdbarch.h, gdbarch.c: Regenerate.
5864 * remote.c (remote_query_supported): Remove use of
5867 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5869 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5872 2010-05-06 Michael Snyder <msnyder@vmware.com>
5874 * xml-support.c (xinclude_start_include): Delete unused variable.
5875 (xml_process_xincludes): Delete unused variable.
5876 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5877 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5878 (tdesc_find_arch_register): Delete unused variable.
5879 (tdesc_use_registers): Delete unused variable.
5880 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5881 * inferior.c (print_inferior): Delete unused variable.
5882 * record.c (record_open_1): Delete unused variable.
5883 (record_restore): Delete unused variable.
5884 (cmd_record_save): Delete unused variable.
5885 * gcore.c (derive_heap_segment): Delete unused variable.
5886 (objfile_find_memory_regions): Use unused variable.
5887 * jit.c (jit_inferior_init): Delete unused variable.
5888 * progspace.c (clone_program_space): Delete unused variable.
5889 (pspace_empty_p): Delete unused variable.
5891 * frame-unwind.c (frame_unwind_find_by_frame):
5892 Delete unused variable.
5893 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5894 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5895 (method_name_from_physname): Delete unused variable.
5896 (cp_func_name): Delete unused variable.
5897 (cp_validate_operator): Delete unused variable.
5898 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
5899 Delete unused variable.
5900 * trad-frame.c (trad_frame_get_prev_register):
5901 Delete unused variable.
5902 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5904 * serial.c (serial_for_fd): Delete unused variable.
5905 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5906 * top.c (execute_command): Delete unused variable.
5907 (init_main): Delete unused variable.
5908 * utils.c (do_fclose_cleanup): Delete unused variable.
5909 (do_all_inferior_continuations): Delete unused variable.
5910 (initialize_utils): Delete unused variable.
5911 (internal_problem_mode): Delete unused global.
5912 * frame.c (get_prev_frame): Delete unused global.
5913 (get_frame_locals_address): Delete unused global.
5914 (get_frame_args_address): Delete unused global.
5916 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5917 (pascal_type_print_varspec_prefix): Delete unused variable.
5918 * f-typeprint.c (f_type_print_base): Delete unused variable.
5919 (f_type_print_varspec_suffix): Delete unused variable.
5920 * m2-typeprint.c (m2_print_type): Delete unused variable.
5921 (m2_long_set): Delete unused variable.
5922 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5923 * d-valprint.c (dynamic_array_type): Delete unused variable.
5924 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
5925 Delete unused variable.
5926 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5927 * m2-valprint.c (m2_val_print): Delete unused variable.
5929 * ui-out.c (ui_out_field_int): Delete unused variable.
5930 (ui_out_field_fmt_int): Delete unused variable.
5931 * varobj.c (varobj_list_children): Delete unused variable.
5932 (varobj_set_value): Delete unused variable.
5933 (install_new_value_visualizer): Delete unused variable.
5934 (varobj_set_visualizer): Delete unused variable.
5935 (varobj_update): Delete unused variable.
5936 (varobj_editable_p): Delete unused variable.
5937 (c_value_of_root): Delete unused variable.
5938 (cplus_describe_child): Delete unused variable.
5940 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5941 (decode_constrained_packed_array_type): Delete unused variable.
5942 (add_defn_to_vec): Delete unused variable.
5943 (symbol_completion_match): Delete unused variable.
5944 (value_tag_from_contents_and_address): Delete unused variable.
5945 (ada_evaluate_subexp): Delete unused variable.
5946 * c-lang.c (classify_type): Delete unused variable.
5947 * f-lang.c (f_printstr): Delete unused variable.
5948 * objc-lang.c (objc_printstr): Delete unused variable.
5949 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5950 * jv-lang.c (type_from_class): ifdef unused variable.
5951 (java_class_name_from_physname): Delete unused variable.
5952 * m2-lang.c (m2_printstr): Delete unused variable.
5954 * objfiles.c (objfile_relocate): Delete unused variable.
5955 * maint.c (_initialize_maint_cmds): Delete unused variable.
5956 * demangle.c (_initialize_demangler): Delete unused variable.
5957 * corefile.c (reopen_exec_file): Delete unused variable.
5958 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5959 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5961 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5962 * memattr.c (mem_delete): Delete unused variable.
5963 (invalidate_target_mem_regions): Delete unused variable.
5964 * mem-break.c (default_memory_insert_breakpoint):
5965 Delete unused variable.
5966 * target.c (target_get_osdata): Delete unused variable.
5967 * parse.c (length_of_subexp): Delete unused variable.
5968 (prefixify_subexp): Delete unused variable.
5969 (exp_iterate): Delete unused variable.
5970 * reverse.c (delete_bookmark_command): Delete unused variable.
5972 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5973 * macroexp.c (gather_arguments): Delete unused variable.
5974 (substitute_args): Delete unused variable.
5975 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5976 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5977 (_initialize_gdbarch): Delete unused variable.
5978 * gdbarch.c, gdbarch.h: Regenerate.
5979 * arch-utils.c (initialize_current_architecture):
5980 Delete unused variable.
5981 (_initialize_gdbarch_utils): Delete unused variable.
5982 * gdbtypes.c (make_cv_type): Delete unused variable.
5983 (make_type_with_address_space): Delete unused variable.
5985 * linespec.c (decode_compound): Delete unused variable.
5986 * dictionary.c (iterator_next_hashed): Delete unused variable.
5987 * infcall.c (call_function_by_hand): Delete unused variable.
5988 * infcmd.c (step_1): Delete unused variable.
5989 (registers_info): Delete unused variable.
5990 (attach_command): Delete unused variable.
5991 * infrun.c (follow_exec): Delete unused variable.
5992 (handle_step_into_function_backwards): Delete unused variable.
5993 (_initialize_infrun): Delete unused variable.
5994 * stack.c (parse_frame_specification_1): Delete unused variable.
5995 (frame_info): Delete unused variable.
5996 (backtrace_command_1): Delete unused variable.
5997 (catch_info): Delete unused variable.
5999 * eval.c (evaluate_subexp_standard): Delete unused variable.
6000 * valops.c (value_cast_pointers): Delete unused variable.
6001 (value_dynamic_cast): Delete unused variable.
6002 (value_array): Delete unused variable.
6003 (find_overload_match): Delete unused variable.
6004 * valarith.c (value_subscript): Delete unused variable.
6005 (value_binop): Delete unused variable.
6006 * valprint.c (_initialize_valprint): Delete unused variable.
6007 * printcmd.c (print_command_1): Delete unused variable.
6008 (address_info): Delete unused variable.
6009 (printf_command): Delete unused variable.
6011 * auxv.c (target_auxv_search): Delete unused variable.
6012 * blockframe.c (get_frame_block): Delete unused variable.
6013 * regcache.c (regcache_cpy): Delete unused variable.
6014 (regcache_cpy_no_passthrough): Delete unused variable.
6015 * charset.c (wchar_iterate): Delete unused variable.
6016 (find_charset_names): Delete unused variable.
6017 (_initialize_charset): Delete unused variable.
6018 * disasm.c (do_mixed_source_and_assembly):
6019 Delete unused variable.
6020 * source.c (set_default_source_symtab_and_line):
6021 Delete unused variable.
6022 (set_substitute_path_command): Delete unused variable.
6023 * value.c (preserve_values): Delete unused variable.
6024 (value_from_double): Delete unused variable.
6026 2010-05-05 Michael Snyder <msnyder@vmware.com>
6028 * psymtab.c (lookup_partial_symbol): Delete unused variable.
6029 (find_last_source_symtab_from_partial): Delete unused variable.
6030 * symfile.c (place_section): Delete unused variable.
6031 (default_symfile_offsets): Delete unused variable.
6032 (get_debug_link_info): Delete unused variable.
6033 (find_separate_debug_file_by_debuglink): Delete unused variable.
6034 (add_symbol_file_command): Delete unused variable.
6035 (symfile_find_segment_sections): Delete unused variable.
6036 * symmisc.c (free_symtab): Delete unused variable.
6037 (dump_symtab_1): Delete unused variable.
6038 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
6039 (find_pc_sect_symtab): Delete unused variable.
6040 (skip_prologue_using_lineinfo): Delete unused variable.
6041 (sources_info): Delete unused variable.
6042 (completion_list_add_name): Delete unused variable.
6043 (expand_line_sal): Delete unused variable.
6045 * breakpoint.c (validate_commands_for_breakpoint):
6046 Delete unused variables.
6047 (insert_catchpoint): Delete unused variable.
6048 (update_watchpoint): Delete unused variable.
6049 (insert_bp_location): Delete unused variable.
6050 (insert_breakpoint_locations): Delete unused variable.
6051 (remove_breakpoint_1): Delete unused variable.
6052 (software_breakpoint_inserted_here_p): Delete unused variable.
6053 (watchpoints_triggered): Delete unused variable.
6054 (bpstat_check_watchpoint): Delete unused variable.
6055 (bpstat_stop_status): Delete unused variable.
6056 (print_one_breakpoint_location): Delete unused variable.
6057 (allocate_bp_location): Delete unused variable.
6058 (create_breakpoint): Delete unused variable.
6059 (watch_command_1): Delete unused variable.
6060 (catch_exception_command_1): Delete unused variable.
6061 (catch_ada_exception_command): Delete unused variable.
6062 (delete_breakpoint): Delete unused variable.
6063 (breakpoint_re_set_one): Delete unused variable.
6064 (do_enable_breakpoint): Delete unused variable.
6066 2010-05-06 Pedro Alves <pedro@codesourcery.com>
6068 * amd64-tdep.c: Include disasm.h.
6069 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
6070 (amd64_insn_length): Moved to disasm.c and renamed.
6071 (fixup_riprel): Adjust.
6072 * disasm.c (do_ui_file_delete): New.
6073 (gdb_insn_length): New.
6074 (gdb_buffered_insn_length_fprintf)
6075 (gdb_buffered_insn_length_init_dis)
6076 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
6078 * disasm.h (gdb_insn_length): Declare.
6079 (gdb_buffered_insn_length): Declare.
6081 2010-05-06 Pedro Alves <pedro@codesourcery.com>
6083 * remote.c (clear_threads_parsing_context): New.
6084 (remote_threads_info): Delete unused null_cleanup. Install a
6085 cleanup to clear the threads_parsing_context in case parsing
6088 2010-05-05 Michael Snyder <msnyder@vmware.com>
6090 * c-exp.y (parse_string_or_char): Delete unused variable.
6091 (c_lex): Delete unused variable.
6092 * cp-name-parser.y (cpname_lex): Delete unused variable.
6093 * ada-exp.y (find_primitive_type): Delete unused variable.
6094 (write_var_or_type): Delete unused variable.
6095 * jv-exp.y (java_parse): Delete unused variable.
6096 (push_expression_name): Delete unused variable.
6097 * p-exp.y (pascal_lex): Delete unused variable.
6099 2010-05-05 Pedro Alves <pedro@codesourcery.com>
6101 * remote.c (remote_threads_info): Really revert previous previous
6104 2010-05-05 Michael Snyder <msnyder@vmware.com>
6106 * elfread.c (elf_symtab_read): Delete unused variable.
6107 (find_separate_debug_file_by_buildid): Delete unused variables.
6108 (elf_symfile_read): Delete unused variable.
6110 * coffread.c (coff_symfile_read): Delete unused variables.
6112 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
6113 (read_pe_exported_syms): Delete unused variable.
6115 * stabsread.c (define_symbol): Delete unused variable.
6117 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
6118 (process_psymtab_comp_unit): Delete unused variable.
6119 (dwarf2_build_psymtabs_hard): Delete unused variable.
6120 (load_partial_comp_unit): Delete unused variable.
6121 (create_all_comp_units): Delete unused variable.
6122 (scan_partial_symbols): Delete unused variable.
6123 (add_partial_symbol): Delete unused variable.
6124 (add_partial_namespace): Delete unused variable.
6125 (add_partial_enumeration): Delete unused variable.
6126 (load_full_comp_unit): Delete unused variable.
6127 (process_full_comp_unit): Delete unused variable.
6128 (read_file_scope): Delete unused variable.
6129 (read_type_unit_scope): Delete unused variable.
6130 (process_structure_scope): Delete unused variable.
6131 (process_enumeration_scope): Delete unused variable.
6132 (read_tag_ptr_to_member_type): Delete unused variable.
6133 (read_typedef): Delete unused variable.
6134 (read_partial_die): Delete unused variable.
6135 (decode_locdesc): Delete unused variable.
6136 (zeroed_partial_die): Delete unused global variable.
6138 * tui/tui-interp.c (_initialize_tui_interp):
6139 Delete unused variable.
6140 * tui/tui-regs.c tui_display_registers_from):
6141 Delete unused variable.
6142 (tui_check_register_values): Delete unused variable.
6143 (tui_register_format): Delete unused variable.
6144 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
6145 * tui/tui-windata.c (tui_display_data_from_line):
6146 Delete unused variables.
6147 (tui_vertical_data_scroll): Delete unused variables.
6149 2010-05-05 Michael Snyder <msnyder@vmware.com>
6151 * remote.c (remote_threads_info): Revert questionable part of
6152 the previous change.
6154 2010-05-05 Michael Snyder <msnyder@vmware.com>
6156 * mi/mi-out.c (mi_table_begin): Delete unused variable.
6157 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
6158 (mi_cmd_var_list_children): Delete unused variable.
6159 (varobj_update_one): Delete unused variable.
6160 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
6161 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
6162 Delete unused variable.
6163 (mi_cmd_stack_list_variables): Delete unused variable.
6164 (list_args_or_locals): Delete unused variable.
6165 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
6166 Delete unused variables.
6167 (mi_cmd_file_list_exec_source_files): Delete unused variable.
6168 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
6169 Delete unused variable.
6170 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
6171 (mi_cmd_interpreter_exec): Delete unused variable.
6172 (mi_on_normal_stop): Delete unused variable.
6173 * mi/mi-main.c (run_one_inferior): Delete unused variable.
6174 (print_one_inferior): Delete unused variables.
6175 (mi_execute_command): Delete unused variable.
6176 (mi_cmd_execute): Delete unused variable.
6177 (timestamp): Delete unused variable.
6179 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
6180 (restore_binary_file): Delete unused variable.
6181 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
6182 * cli/cli-script.c (define_command): Delete unused variables.
6183 (recurse_read_control_structure): Delete unused variable.
6184 (script_from_file): Delete unused variable.
6185 * cli/cli-cmds.c (complete_command): Delete unused variable.
6186 (disassemble_command): Delete unused variable.
6188 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
6189 * tracepoint.c (delete_trace_variable_command):
6190 Delete unused variables.
6191 (encode_actions_1): Delete unused variables.
6192 (start_tracing): Delete unused variable.
6193 (trace_status_mi): Delete unused variable.
6194 (tfind_1): Delete unused variable.
6195 (trace_find_pc_command): Delete unused variable.
6196 (trace_find_line_command): Delete unused variables.
6197 (trace_find_range_command): Delete unused variables.
6198 (trace_find_outside_command): Delete unused variables.
6199 (parse_tracepoint_definition): Delete unused variables.
6200 (tfile_fetch_registers): Delete unused variable.
6202 * dcache.c (dcache_init): Delete unused variable.
6203 (dcache_info): Delete unused variable.
6205 * remote.c (remote_threads_info): Delete unused variable.
6206 (process_stop_reply) :Delete unused variable.
6207 (remote_get_trace_status): Delete unused variables.
6209 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
6210 (thread_from_lwp): Delete unused variable.
6211 (enable_thread_event_reporting): Delete unused variable.
6212 (check_for_thread_db): Delete unused variables.
6213 (thread_db_find_new_threads_2): Delete unused variable.
6215 * linux-fork.c (info_checkpoints_command): Delete unused variables.
6216 (checkpoint_command): Delete unused variable.
6217 (linux_fork_context): Delete unused variables.
6219 * linux-nat.c (linux_parent_pid): Delete unused global variable.
6220 (linux_tracefork_child): Delete unused variable.
6221 (linux_child_follow_fork): Delete unused variable.
6222 (linux_nat_detach): Delete unused variable.
6223 (linux_handle_extended_wait): Delete unused variable.
6224 (linux_nat_has_pending_sigint): Delete unused variable.
6225 (linux_nat_find_memory_regions): Delete unused variable.
6226 (linux_nat_make_corefile_notes): Delete unused variables.
6227 (linux_nat_info_proc_cmd): Delete unused variable.
6228 (linux_proc_pending_signals): Delete unused variable.
6229 (linux_nat_stop_lwp): Delete unused variables.
6230 (_initialize_linux_nat): Delete unused variable.
6232 * ser-pipe.c (pipe_ops): Delete unused global variable.
6234 * linux-record.c (record_linux_system_call):
6235 Delete unused variables.
6237 * corelow.c (core_xfer_partial): Delete unused variables.
6239 * solib-svr4.c (find_program_interpreter): Delete unused variable.
6240 (svr4_solib_create_inferior_hook): Add ifdef around
6241 conditionally-used variable declarations.
6243 * solib.c (solib_find): Delete unused variable.
6244 (free_so_symbols): Delete unused variable.
6245 (info_sharedlibrary_command): Delete unused variable.
6246 (reload_shared_libraries_1): Delete unused variable.
6247 (_initialize_solib): Delete unused variable.
6249 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
6250 (i386_collect_xstateregset): Delete unused variable.
6251 * i387-tdep.c (i387_print_float_info): Delete unused variable.
6253 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
6254 Delete unused variable 'type'.
6256 2010-05-05 Joel Brobecker <brobecker@adacore.com>
6258 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
6259 ada-lang.c: Remove comment mentioning these macros.
6260 * m2-exp.y: Delete commented out code.
6262 2010-05-05 Joel Brobecker <brobecker@adacore.com>
6264 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
6266 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
6268 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6270 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
6271 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6273 (cleanup_kernel_helper_return): Likewise.
6274 * arm-tdep.c (copy_unmodified): Likewise.
6275 (copy_preload): Likewise.
6276 (copy_copro_load_store): Likewise.
6277 (cleanup_branch): Likewise.
6278 (copy_b_bl_blx): Likewise.
6279 (copy_bx_blx_reg): Likewise.
6280 (copy_alu_imm): Likewise.
6281 (copy_alu_reg): Likewise.
6282 (copy_alu_shifted_reg): Likewise.
6283 (cleanup_load): Likewise.
6284 (cleanup_store): Likewise.
6285 (cleanup_block_load_pc): Likewise.
6286 (cleanup_svc): Likewise.
6287 (copy_undef): Likewise.
6288 (copy_unpred): Likewise.
6289 * remote.c (register_remote_support_xml): Likewise.
6291 2010-05-05 Hui Zhu <teawater@gmail.com>
6293 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
6295 2010-05-04 Mark Kettenis <kettenis@gnu.org>
6297 * remote.c (register_remote_support_xml)
6298 (remote_query_supported_append, remote_query_supported): Add cast
6299 to NULL used as sentinel.
6300 * tracepoint.c (tvariables_info_1): Likewise.
6301 * utils.c (add_internal_problem_command): Likewise.
6303 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6305 * dwarf2loc.c (read_pieced_value, write_pieced_value,
6306 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
6307 registers gracefully.
6309 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6311 * exec.c (print_section_info): Display entry point without arch
6314 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6317 * printcmd.c (x_command): Only dereference once implicitly for
6320 2010-05-03 Doug Evans <dje@google.com>
6322 * event-loop.c (gdb_timer): Delete unused global.
6323 (create_timer): Update.
6325 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6327 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
6328 CURRENT->DECLARATION case.
6329 * cp-support.h (struct using_direct): Provide extended comment.
6331 2010-05-03 Mark Kettenis <kettenis@gnu.org>
6333 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
6334 HPPABSD_SIZEOF_GREGS.
6335 (HPPAOBSD_SIZEOF_FPREGS): New define.
6336 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
6337 (hppaobsd_supply_fpregset): New function.
6338 (hppaobsd_gregset): Renamed from hppabsd_gregset.
6339 (hppaobsd_fpregset): New variable.
6340 (hppaobsd_regset_from_core_section): Handle floating-point registers.
6341 (_initialize_hppabsd_tdep): Remove spurious blank line.
6343 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6346 * p-valprint.c (pascal_value_print): Always dereference a value with
6347 type code TYPE_CODE_REF.
6349 2010-05-03 Pedro Alves <pedro@codesourcery.com>
6351 * remote.c (remote_notice_signals): New.
6352 (remote_start_remote): In non-stop mode, update the remote end on
6353 which signals it can silently pass.
6354 (init_remote_ops): Install remote_notice_signals.
6356 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6358 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
6359 * command.h (error_no_arg): ... here. Remove NORETURN, change
6360 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6361 * defs.h (NORETURN, ATTR_NORETURN): Remove.
6362 (perror_with_name, verror, error, error_stream, vfatal, fatal)
6363 (internal_verror, internal_error, nomem): Remove NORETURN, change
6364 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6365 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
6366 (throw_vfatal, throw_error): Remove NORETURN.
6367 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
6368 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
6369 (throw_error, deprecated_throw_reason): Remove NORETURN, change
6370 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6371 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
6372 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
6374 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
6375 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
6377 * target.c (tcomplain): Likewise.
6378 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
6380 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
6381 (internal_error, perror_with_name, nomem): Remove NORETURN.
6382 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
6385 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6387 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6388 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
6389 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
6390 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6391 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
6392 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6393 * complaints.h (complaint, internal_complaint): Likewise.
6394 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
6395 (ATTR_FORMAT): Remove.
6396 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
6397 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
6398 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
6399 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
6400 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
6401 (internal_error, internal_vwarning, internal_warning, warning)
6402 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6403 * disasm.c (fprintf_disasm): Likewise.
6404 * exceptions.c (throw_it): Likewise.
6405 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
6406 (throw_error): Likewise.
6407 * language.h (type_error, range_error): Likewise.
6408 * linespec.c (cplusplus_error): Likewise.
6409 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
6410 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
6411 * monitor.c (monitor_debug): Likewise.
6412 * parser-defs.h (parser_fprintf): Likewise.
6413 * serial.h (serial_printf): Likewise.
6414 * tui/tui-hooks.c (tui_query_hook): Likewise.
6415 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
6416 (uo_message): Likewise.
6417 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
6418 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
6420 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
6422 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6424 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
6425 (cli_table_header, cli_begin, cli_end, cli_field_int)
6426 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
6427 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
6428 Delete forward declarations.
6429 (cli_ui_out_impl): Move below the callbacks.
6430 (_initialize_cli_out): Delete.
6432 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6434 * README: Use consistent `GDB' and `GDBserver' spellings.
6436 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6438 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
6440 2010-05-01 Pedro Alves <pedro@codesourcery.com>
6442 * infrun.c (prepare_for_detach): In non-stop, context switch to
6443 the thread that got the event before handling the event.
6445 2010-04-30 Tom Tromey <tromey@redhat.com>
6447 * symtab.c (symbol_set_names): Fix typo.
6449 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6451 * python/py-param.c (parm_constants): Avoid ARI warning
6452 by adding ARI comment.
6453 (parmpy_init): Likewise.
6455 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6457 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
6458 and created type for re-use.
6460 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6462 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
6464 2010-04-29 Doug Evans <dje@google.com>
6466 * ser-base.h (reschedule): Delete prototype.
6467 * ser-base.c (reschedule): Make static.
6469 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6471 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
6472 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
6473 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
6475 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
6478 2010-04-29 Pedro Alves <pedro@codesourcery.com>
6482 * regcache.c (registers_changed): Rename to ...
6483 (registers_changed_ptid): ... this, and only delete register cache
6484 entries matching the ptid filter argument.
6485 (registers_changed): Reimplement on top of registers_changed_ptid.
6486 * regcache.h (registers_changed_ptid): Declare.
6487 * target.c (target_resume): Flush register caches.
6489 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
6490 Tom Tromey <tromey@redhat.com>
6491 Thiago Jung Bauermann <bauerman@br.ibm.com>
6493 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
6494 (SUBDIR_PYTHON_SRCS): Likewise.
6495 (py-parameter.o): New rule.
6496 * python/py-parameter.c: New file.
6497 * python/python-internal.h (gdbpy_initialize_parameter)
6498 (gdbpy_parameter, gdbpy_parameter_value)
6499 (gdbpy_parse_command_name): Declare.
6500 * python/py-cmd.c (parse_command_name): Rename to
6501 gdbpy_parse_command_name.
6502 (gdbpy_parse_command_name): Accept a starting list parameter and
6504 (cmdpy_init): Use gdbpy_parse_command_name.
6505 * python/python.c (parameter_to_python): Rename to
6506 gdbpy_parameter_to_python. Accept enum var_types and value.
6507 (gdbpy_parameter): Use gdbpy_parameter_value.
6508 (_initialize_python): Call gdbpy_initialize_parameters.
6510 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6512 * MAINTAINERS: Add myself for write after approval privileges.
6514 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
6517 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
6518 (COMMON_OBS): Add d-lang.o d-valprint.o.
6519 (HFILES_NO_SRCDIR): Add d-lang.h.
6520 * NEWS: Mention D language support.
6521 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
6522 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
6523 * d-lang.c: New file.
6524 * d-lang.h: New file.
6525 * d-valprint.c: New file.
6526 * defs.h (enum language): Add language_d.
6527 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
6528 * language.c (binop_result_type, integral_type, character_type)
6529 (string_type, boolean_type, structured_type): Add language_d.
6530 * symfile.c (init_filename_language_table): Add language_d.
6531 * symtab.c: Include d-lang.h.
6532 (symbol_init_language_specific, symbol_find_demangled_name)
6533 (symbol_natural_name, lookup_symbol_in_language)
6534 (symbol_demangled_name, symbol_matches_domain): Add language_d.
6536 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6538 * solib-svr4.c (solib_svr4_r_map): Expand function description.
6540 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6542 * symfile.c (init_filename_language_table): Register .dg files
6545 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6547 * gdbtypes.h (struct main_type): Expand comment about target_type
6550 2010-04-27 Pedro Alves <pedro@codesourcery.com>
6551 Tristan Gingold <gingold@adacore.com>
6553 * symfile.c (reread_symbols): Also search for file in libraries.
6556 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6558 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
6559 in terms of configuration.
6561 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6563 * objfiles.c: Include solist.h.
6564 (free_all_objfiles): New variable so. Check stale solist objfiles.
6565 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
6566 and no_shared_libraries.
6568 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6571 * python/py-auto-load.c (source_section_scripts): Remove trailing
6572 new-line in i18n string.
6574 2010-04-26 Doug Evans <dje@google.com>
6576 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
6578 2010-04-26 Tom Tromey <tromey@redhat.com>
6580 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
6583 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6585 Removal of config/i386/nm-i386sol2.h native configuration file.
6586 * config/i386/nm-i386sol2.h: Remove file.
6587 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
6588 * config/i386/sol2-64.mh: Idem.
6589 * config/djgpp/fnchange.lst: Remove reference to that file.
6590 * Makefile.in (HFILES_NO_SRCDIR): Idem.
6592 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6594 PR breakpoints/11531.
6595 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
6596 macro definition and related comment.
6597 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
6598 (resume): Remove code and comment related to this macro.
6600 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6602 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
6605 2010-04-24 Pedro Alves <pedro@codesourcery.com>
6607 * defs.h: Adjust comment.
6608 * filesystem.h, filesystem.c: New files.
6609 * Makefile.in (SFILES): Add filesystem.c.
6610 (COMMON_OBS): Add filesystem.o.
6611 * solib.c (solib_find): Handle DOS-based filesystems. Handle
6612 different target and host path flavours.
6613 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6614 has_dos_based_file_system on the gdbarch.
6615 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
6616 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
6617 * i386-tdep.c (i386_go32_init_abi): Ditto.
6618 * gdbarch.sh (has_dos_based_file_system): New.
6619 * gdbarch.h, gdbarch.c: Regenerate.
6620 * NEWS: Mention improved support for remote targets with DOS-based
6621 filesystems. Mention new `set/show target-file-system-kind'
6624 2010-04-23 Stan Shebs <stan@codesourcery.com>
6626 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6628 (struct agent_reqs): Remove.
6629 (ax_reg_mask): Declare.
6630 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6631 (free_agent_expr): Free reg_mask.
6632 (ax_print): Add scope and register mask info.
6633 (ax_reqs): Remove agent_reqs argument, use agent expression
6634 fields, and move part of register mask computation to...
6635 (ax_reg_mask): New function.
6636 * ax-gdb.c (gen_trace_static_fields): Call it.
6637 (gen_traced_pop): Ditto.
6638 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6639 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6640 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6641 (gen_eval_for_expr): Ditto, and require an rvalue.
6642 (agent_command): Call ax_reqs.
6643 (agent_eval_command): Ditto.
6644 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6645 (validate_action_line): Ditto.
6646 (collect_symbol): Ditto.
6647 (encode_actions_1): Ditto.
6649 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
6650 Paul Pluzhnikov <ppluzhnikov@google.com>
6651 Jan Kratochvil <jan.kratochvil@redhat.com>
6653 Fix deadlock on looped list of loaded shared objects.
6654 * solib-svr4.c (LM_PREV): New function.
6655 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6656 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
6657 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
6658 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6660 2010-04-23 Doug Evans <dje@google.com>
6662 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6664 * configure: Regenerate.
6665 * main.c: #include "python/python.h".
6666 (captured_main): Defer loading auto-loaded scripts until after
6667 local_gdbinit has been sourced.
6668 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6669 (load_auto_scripts_for_objfile): New function.
6670 (auto_load_new_objfile): Call it.
6671 * python/python.h (gdbpy_global_auto_load): Declare.
6672 (load_auto_scripts_for_objfile): Declare.
6674 Add support for auto-loading scripts from .debug_gdb_scripts section.
6675 * NEWS: Add entry for .debug_gdb_scripts.
6676 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6677 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6678 (py-auto-load.o): New rule.
6679 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6680 * cli/cli-cmds.h (find_and_open_script): Update prototype.
6681 * python/py-auto-load.c: New file.
6682 * python/python-internal.h: #include <stdio.h>.
6683 (set_python_list, show_python_list): Declare.
6684 (gdbpy_initialize_auto_load): Declare.
6685 (source_python_script_for_objfile): Declare.
6686 * python/python.c: Remove #include of observer.h.
6687 (gdbpy_auto_load): Moved to py-auto-load.c.
6688 (GDBPY_AUTO_FILENAME): Ditto.
6689 (gdbpy_new_objfile): Delete.
6690 (source_python_script_for_objfile): New function.
6691 (set_python_list, show_python_list): Make externally visible.
6692 (_initialize_python): Move "auto-load" command to py-auto-load.c
6693 and observer_attach_new_objfile to py-auto-load.c.
6695 2010-04-23 Jerome Guitton <guitton@adacore.com>
6697 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6698 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6699 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6701 (alpha_heuristic_analyze_probing_loop): New function.
6702 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6703 and handle cases when a stack probe loop is generated.
6704 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6705 (alpha_mdebug_max_frame_size_exceeded): New function.
6706 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6707 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6708 Return 0 when the maximum debuggable frame size has been exceeded.
6710 2010-04-23 Joel Brobecker <brobecker@adacore.com>
6713 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6715 2010-04-20 Chris Moller <cmoller@redhat.com>
6719 * symtab.c (rbreak_command): Added code to include a filename
6720 specification in the rbreak argument.
6721 * NEWS: Added a brief description of filename-qualified rbreak.
6723 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6725 Fix crashes on dangling display expressions.
6726 * ada-lang.c (ada_operator_check): New function.
6727 (ada_exp_descriptor): Fill-in the field operator_check.
6728 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6729 * jv-lang.c (exp_descriptor_java): Likewise.
6730 * m2-lang.c (exp_descriptor_modula2): Likewise.
6731 * scm-lang.c (exp_descriptor_scm): Likewise.
6732 * parse.c (exp_descriptor_standard): Likewise.
6733 (operator_check_standard): New function.
6734 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6735 * parser-defs.h (struct exp_descriptor): New field operator_check.
6736 (operator_check_standard, exp_uses_objfile): New declarations.
6737 * printcmd.c: Remove the inclusion of solib.h.
6738 (display_uses_solib_p): Remove the function.
6739 (clear_dangling_display_expressions): Call lookup_objfile_from_block
6740 and exp_uses_objfile instead of display_uses_solib_p.
6741 * solist.h (struct so_list) <objfile>: New comment.
6742 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6743 * symtab.h (lookup_objfile_from_block): New declaration.
6744 (struct general_symbol_info) <obj_section>: Extend the comment.
6746 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6747 Thiago Jung Bauermann <bauerman@br.ibm.com>
6749 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6750 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6751 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6752 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6753 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6754 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6755 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6756 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6757 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6758 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6759 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6760 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6761 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6762 Define, in case <ptrace.h> doesn't provide it.
6763 (booke_debug_info): New variable.
6764 (max_slots_number): Ditto.
6765 (hw_break_tuple): New struct.
6766 (thread_points): Ditto.
6767 (ppc_threads): New variable.
6768 (PPC_DEBUG_CURRENT_VERSION): New define.
6769 (have_ptrace_new_debug_booke): New function.
6770 (ppc_linux_check_watch_resources): Renamed to ...
6771 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6772 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6773 (booke_cmp_hw_point): New function.
6774 (booke_find_thread_points_by_tid): Ditto.
6775 (booke_insert_point): Ditto.
6776 (booke_remove_point): Ditto.
6777 (ppc_linux_insert_hw_breakpoint): Ditto.
6778 (ppc_linux_remove_hw_breakpoint): Ditto.
6779 (get_trigger_type): Ditto.
6780 (ppc_linux_insert_watchpoint): Handle BookE processors.
6781 (ppc_linux_remove_watchpoint): Ditto.
6782 (ppc_linux_new_thread): Ditto.
6783 (ppc_linux_thread_exit): New function..
6784 (ppc_linux_stopped_data_address): Handle BookE processors.
6785 (ppc_linux_watchpoint_addr_within_range): Ditto.
6786 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6787 to_remove_hw_breakpoint fields of the target operations struct.
6788 Add observe for the thread_exit event.
6790 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6792 * i386-linux-nat.c (regmap): Removed.
6793 (fetch_register): Replace regmap with
6794 i386_linux_gregset_reg_offset.
6795 (store_register): Likewise.
6796 (supply_gregset): Likewise.
6797 (fill_gregset): Likewise.
6799 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6802 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6804 2010-04-22 Chris Moller <cmoller@redhat.com>
6806 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6807 method of popping recursion-detection stack with a method based on
6808 obstack_object_size(). (Similar to the PR9167 patch below, but for
6809 the static array obstack rather than the static member obstack.)
6811 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6813 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6814 (_initialize_amd64_linux_nat): Replace
6815 amd64_linux_gregset64_reg_offset with
6816 amd64_linux_gregset_reg_offset.
6818 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6821 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6823 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6826 * stabsread.c (set_length_in_type_chain): New function.
6827 (read_struct_type): Call set_length_in_type_chain function.
6828 (read_enum_type): Idem.
6830 2010-04-21 Stan Shebs <stan@codesourcery.com>
6831 Nathan Sidwell <nathan@codesourcery.com>
6833 * tracepoint.c (trace_save): Open in binary mode.
6835 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6837 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6839 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
6840 builtin_char32 fields.
6841 * printcmd.c (decode_format): Set char size to '\0'
6842 for strings unless explicit size is given.
6843 (print_formatted): Correct calculation of NEXT_ADDRESS
6844 for 16 or 32 bit strings.
6845 (do_examine): Do not force byte size for strings.
6846 Use builtin_char16 and builtin_char32 types to display
6847 16 or 32 bit-wide strings.
6848 (x_command): Set LAST_SIZE to 'b' for string type.
6850 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6853 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6856 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6857 there is no .reg-xstate section.
6858 (i386_linux_core_read_description): Check XCR0 first.
6860 2010-04-21 Mike Frysinger <vapier@gentoo.org>
6862 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6865 2010-04-21 Chris Moller <cmoller@redhat.com>
6868 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6869 method of popping recursion-detection stack with a method based on
6870 obstack_object_size().
6872 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6875 * p-valprint.c (pascal_val_print): Fix default printing of integer
6878 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6880 Fix compilation warning on gcc-4.1.2.
6881 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6882 local variable`pc' to zero.
6884 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6886 Implement thread support with core files on alpha-tru64.
6887 * dec-thread.c (dec_thread_find_new_threads): New function,
6888 extracted from resync_thread_list.
6889 (resync_thread_list): Add OPS parameter. Replace extracted-out
6890 code by call to dec_thread_find_new_threads.
6891 (dec_thread_wait): Update call to resync_thread_list.
6892 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6894 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6896 * ada-lang.c (value_pointer): New function.
6897 (make_array_descriptor): Call value_pointer to convert addresses to
6900 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6902 * rs6000-aix-tdep.c: #include exceptions.h.
6903 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6904 while reading the memory at ADDR, then ADDR cannot be a function
6907 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6909 * ada-typeprint.c (ada_print_typedef): New function.
6910 * ada-lang.h (ada_print_typedef): Add declaration.
6911 * ada-lang.c (ada_language_defn): set la_print_typdef field
6912 to ada_print_typedef.
6914 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6916 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6918 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6920 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6921 (iterate_over_mappings): Adjust function profile. Add declaration.
6922 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6925 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6927 * procfs.c (solib_mappings_callback): Move function up to avoid
6930 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6932 * procfs.c (find_signalled_thread, find_stop_signal): Move
6933 these functions down to define them only when used.
6935 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6937 * valprint.c (common_val_print): Fix the value before extracting
6939 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6940 * ada-lang.h (ada_to_fixed_value): New function declaration.
6941 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6942 to avoid code duplication and fix a bug in the handling of
6943 fixed types contents.
6945 2010-04-20 Tom Tromey <tromey@redhat.com>
6947 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6948 (read_partial_die): Likewise.
6949 (dwarf_attr_name): Likewise.
6951 2010-04-20 Chris Moller <cmoller@redhat.com>
6955 * cp-valprint.c (global): Adding new static array recursion
6957 (cp_print_value_fields, cp_print_static_field): Added new static
6958 array recursion detection code.
6960 2010-04-20 Mark Kettenis <kettenis@gnu.org>
6962 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6963 general-purpose register set should be 68 instead of 144.
6964 (i386_linux_sse_regset_sections): Likewise.
6965 (i386_linux_avx_regset_sections): Likewise.
6967 2010-04-20 Stan Shebs <stan@codesourcery.com>
6968 Nathan Sidwell <nathan@codesourcery.com>
6970 * dwarf2loc.c (struct axs_var_loc): New struct.
6971 (dwarf2_tracepoint_var_loc): New function.
6972 (dwarf2_tracepoint_var_access): New function.
6973 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6975 (locexpr_describe_location_piece): New function.
6976 (locexpr_describe_location_1): New function.
6977 (locexpr_describe_location): Call it, update signature.
6978 (loclist_describe_location): Rewrite to loop over locations,
6980 * symtab.h (struct symbol_computed_ops): Add address to
6981 describe_location arguments, return void.
6982 * printcmd.c (address_info): Get context PC, pass to computed
6983 location description.
6984 * tracepoint.c (scope_info): Ditto.
6985 * ax-gdb.c (trace_kludge): Export.
6987 2010-04-20 Tom Tromey <tromey@redhat.com>
6989 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6990 (struct dwarf2_cie) <segment_size>: New field.
6991 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6992 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6994 (read_attribute_value): Handle DW_FORM_flag_present,
6995 DW_FORM_sec_offset, DW_FORM_exprloc.
6996 (dump_die_shallow): Likewise.
6997 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6998 (dwarf2_const_value): Handle DW_FORM_exprloc.
6999 (attr_form_is_block): Likewise.
7000 (struct line_header) <maximum_ops_per_instruction>: New field.
7001 (dwarf_decode_line_header): Set new field.
7002 (dwarf_decode_lines): Handle new field.
7004 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7006 * f-exp.y: Add new production to recognize the `logical*8' type.
7007 (LOGICAL_S8_KEYWORD): New token.
7008 * f-lang.c (enum f_primitive_types)
7009 <f_primitive_type_logical_s8>: New field.
7010 (f_language_arch_info): Handling `logical*8' type.
7011 (build_fortran_types): Building `logical*8' type.
7012 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
7014 2010-04-19 Doug Evans <dje@google.com>
7016 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
7017 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
7018 (pipe_close): Ditto.
7020 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7022 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
7024 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7026 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
7027 type to void function.
7029 2010-04-19 Stan Shebs <stan@codesourcery.com>
7030 Vladimir Prus <vladimir@codesourcery.com>
7032 * tracepoint.c (tfind_1): Add missing newline, report exit from
7034 * target.c (update_current_target): Make default
7035 to_trace_find return -1.
7037 2010-04-19 Mike Frysinger <vapier@gentoo.org>
7039 * objc-lang.c (find_methods): Move symname check up.
7041 2010-04-19 Pedro Alves <pedro@codesourcery.com>
7043 * ada-lang.c (print_recreate_exception)
7044 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
7045 not "catch unhandled".
7047 2010-04-19 Pedro Alves <pedro@codesourcery.com>
7049 PR breakpoints/8554.
7051 Implement `save-breakpoints'.
7053 * breakpoint.c (save_cmdlist): New.
7054 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
7056 (print_recreate_catch_fork): New.
7057 (catch_fork_breakpoint_ops): Install it.
7058 (print_recreate_catch_vfork): New.
7059 (catch_vfork_breakpoint_ops): Install it.
7060 (print_recreate_catch_syscall): New.
7061 (catch_syscall_breakpoint_ops): Install it.
7062 (print_recreate_catch_exec): New.
7063 (catch_exec_breakpoint_ops): Install it.
7064 (print_recreate_exception_catchpoint): New.
7065 (gnu_v3_exception_catchpoint_ops): Install it.
7066 (save_breakpoints): New, based on tracepoint_save_command, but
7067 handle all breakpoint types.
7068 (save_breakpoints_command): New.
7069 (tracepoint_save_command): Rename to...
7070 (save_tracepoints_command): ... this, and reimplement using
7072 (save_command): New.
7073 (_initialize_breakpoints): Install the "save" command prefix.
7074 Install the "save breakpoints" command. Make "save-tracepoints" a
7075 deprecated alias for "save tracepoints".
7076 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
7077 * ada-lang.c (print_recreate_exception): New.
7078 (print_recreate_catch_exception): New.
7079 (catch_exception_breakpoint_ops): Install it.
7080 (print_recreate_catch_exception_unhandled): New.
7081 (catch_exception_unhandled_breakpoint_ops): Install it.
7082 (print_recreate_catch_assert): New.
7083 (catch_assert_breakpoint_ops): Install it.
7085 * NEWS: Mention the new `save breakpoints' command. Mention the
7086 new `save tracepoints' alias and that `save-tracepoints' is now
7089 2010-04-18 Pedro Alves <pedro@codesourcery.com>
7093 * tui/tui-out.c: Include cli-out.h.
7094 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
7095 (tui_begin, tui_end, tui_field_int, tui_field_skip)
7096 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
7097 (tui_message, tui_wrap_hint, tui_flush): Delete forward
7099 (struct ui_out_data): Rename to...
7100 (struct tui_ui_out_data): ... this. Remove `stream' and
7101 `suppress_output' fields, and inherit cli_ui_out_data.
7102 (tui_out_data): New typedef.
7103 (tui_ui_out_impl): Don't initialize fields staticaly.
7104 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
7105 (tui_begin, tui_end): Delete.
7106 (tui_field_int): Adjust to delegate most work to the base type.
7107 (tui_field_skip): Delete.
7108 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
7109 delegate most work to the base type.
7110 (tui_spaces): Delete.
7111 (tui_text): Adjust to delegate most work to the base type.
7112 (tui_message): Delete.
7113 (tui_wrap_hint): Delete.
7114 (tui_flush): Delete.
7115 (out_field_fmt): Delete.
7116 (field_separator): Delete.
7117 (tui_out_new): Adjust to initialize the base type.
7118 (_initialize_tui_out): Initialize tui_ui_out_impl.
7119 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
7121 (cli_out_data): Adjust.
7122 (cli_ui_out_impl): Make extern.
7123 (cli_table_header, cli_field_int, cli_field_skip): Use
7124 uo_field_string instead of cli_field_string.
7125 (cli_redirect): Adjust to use cli_out_data.
7126 (cli_out_data_ctor): New.
7127 (cli_out_new): Use it.
7128 * cli-out.h (struct ui_file): Remove forward declaration.
7129 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
7130 (cli_ui_out_impl): Declare.
7131 (cli_out_data_ctor): Declare.
7132 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
7133 (uo_field_string): No longer static.
7134 (ui_out_data): Change return type to void pointer.
7135 (ui_out_new): Change `data' parameter type to void pointer.
7136 * ui-out.h (struct ui_out_data): Don't forward declare.
7137 (ui_out_data): Change return type to void pointer.
7138 (ui_out_new): Change `data' parameter type to void pointer.
7139 (uo_field_string): Declare.
7141 2010-04-17 Pedro Alves <pedro@codesourcery.com>
7143 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
7144 instead of always false.
7146 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
7149 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
7152 2010-04-17 Pedro Alves <pedro@codesourcery.com>
7154 * breakpoint.c (watchpoints_triggered): Use
7155 is_hardware_watchpoint.
7156 (watchpoints_triggered): Ditto.
7157 (bpstat_check_location): Use is_watchpoint and
7158 is_hardware_watchpoint.
7159 (bpstat_check_watchpoint): Use is_watchpoint and
7160 is_hardware_watchpoint.
7161 (bpstat_stop_status): Fix comment.
7162 (user_settable_breakpoint): Use is_watchpoint.
7163 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
7164 (disable_watchpoints_before_interactive_call_start): Use
7166 (enable_watchpoints_after_interactive_call_stop): Use
7168 (clear_command): Use is_watchpoint.
7169 (do_enable_breakpoint): Use is_watchpoint.
7171 2010-04-16 Mike Frysinger <vapier@gentoo.org>
7173 * solib-frv.c (enable_break1_done): Delete.
7174 (enable_break2): Do not check enable_break1_done. Move the
7175 enable_break2_done setting and call to
7176 remove_solib_event_breakpoints() to the end. Return without
7177 warning when the contents of _dl_debug_addr are 0.
7178 (enable_break): Do not set enable_break1_done.
7179 (frv_clear_solib): Likewise.
7181 2010-04-16 Kevin Buettner <kevinb@redhat.com>
7183 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
7184 instead of an error if no PLT entry is found. Return a
7185 potentially useful result.
7186 (m32c_m16c_pointer_to_address): Add code to search for function
7187 address when no .plt entry is found.
7189 2010-04-16 Stan Shebs <stan@codesourcery.com>
7191 * tracepoint.c (trace_variable_command): Run a cleanup.
7193 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7195 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
7197 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7199 Support for Windows OS Thread Information Block.
7200 * NEWS: Document new feature.
7201 * remote.c (PACKET_qGetTIBAddr): New enum element.
7202 (remote_get_tib_address): New function.
7203 (init_remote_ops): Set to_get_tib_address field
7204 to remote_get_tib_address.
7205 (_initialize_remote): Add add_packet_config_cmd
7206 for PACKET_qGetTIBAddr.
7207 * target.c (update_current_target): Set default value for
7208 new to_get_tib_address field.
7209 * target.h (target_ops): New field to_get_tib_address.
7210 (target_get_tib_address): New macro.
7211 * windows-nat.c (thread_info): Add thread_local_base field.
7212 (windows_add_thread): Add tlb argument of type 'void *'.
7213 (fake_create_process): Adapt windows_add_thread call.
7214 (get_windows_debug_event): Idem.
7215 (windows_get_tib_address): New function.
7216 (init_windows_ops): Set to_get_tib_address field
7217 to remote_get_tib_address.
7218 (_initialize_windows_nat): Replace info_w32_cmdlist
7219 initialization by a call to init_w32_command_list.
7220 (info_w32_command, info_w32_cmdlist): Removed from here...
7221 to windows-tdep.c file.
7222 * windows-tdep.h (info_w32_cmdlist): Declare.
7223 (init_w32_command_list): New external function
7225 * windows-tdep.c: Add several headers.
7226 (info_w32_cmdlist): to here, made global.
7227 (thread_information_32): New struct.
7228 (thread_information_64): New struct.
7229 (TIB_NAME): New char array.
7230 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
7231 (maint_display_all_tib): New static variable.
7232 (windows_get_tlb_type): New function.
7233 (tlb_value_read, tlb_value_write): New functions.
7234 (tlb_value_funcs): New static struct.
7235 (tlb_make_value): New function.
7236 (display_one_tib): New function.
7237 (display_tib): New function.
7238 (show_maint_show_all_tib):New function.
7239 (info_w32_command): Moved from windows-nat.c.
7240 (init_w32_command_list): New function.
7241 (_initialize_windows_tdep): New function.
7242 New "maint set/show show-all-tib" command
7243 New "$_tlb" internal variable.
7245 2010-04-16 Joel Brobecker <brobecker@adacore.com>
7247 * tui/tui-regs.c (tui_display_register): Add comment about
7249 * tui/tui-stack.c (tui_show_locator_content): Ditto.
7251 2010-04-15 Stan Shebs <stan@codesourcery.com>
7253 * frame.c: Include tracepoint.h.
7254 (get_current_frame): Allow a trace frame to be an alternate source
7255 of stack frame data.
7256 * tracepoint.c (tfind_1): Don't try to get current stack frame if
7259 2010-04-15 Pedro Alves <pedro@codesourcery.com>
7261 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
7263 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
7265 2010-04-15 Doug Evans <dje@google.com>
7267 * NEWS: Add entry for python program space support.
7268 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
7269 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
7270 (py-progspace.o): New rule.
7271 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
7273 (find_pretty_printer_from_progspace): New function.
7274 (find_pretty_printer_from_gdb): New function.
7275 (find_pretty_printer): Rewrite.
7276 * python/py-progspace.c: New file.
7277 * python/python-internal.h (program_space): Add forward decl.
7278 (pspace_to_pspace_object, pspy_get_printers): Declare.
7279 (gdbpy_initialize_pspace): Declare.
7280 * python/python.c: #include "progspace.h".
7281 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
7282 (_initialize_python): Call gdbpy_initialize_pspace.
7283 (GdbMethods): Add current_progspace, progspaces.
7285 Add -s option to source command.
7286 * NEWS: Document new option.
7287 * cli/cli-cmds.c (find_and_open_script): Add function comment.
7288 Delete from_tty and cleanupp args. Split filep arg into file and
7289 full_pathp. New arg search_path.
7290 (source_script_from_stream): New function.
7291 (source_script_with_search): New function.
7292 (source_script): Rewrite.
7293 (source_command): Parse "-s" option.
7294 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
7295 * python/python.c (source_python_script): Make file arg a const char *.
7296 Don't call fclose, leave for caller.
7297 * python/python.h (source_python_script): Update.
7299 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7300 Pedro Alves <pedro@codesourcery.com>
7302 Avoid rereading shared libraries that haven't changed.
7304 * solib.c (free_so_symbols): New function, from ...
7305 (free_so): ... here. Call it.
7306 (solib_read_symbols): Don't warn here if symbols have already been
7308 (solib_add): Warn here instead, if a pattern was specified.
7309 (reload_shared_libraries_1): New.
7310 (reload_shared_libraries): Rewrite to not fetch the library list.
7312 2010-04-14 Doug Evans <dje@google.com>
7314 * source.c (openp): Strip DOS drive letter if present before
7315 concatenating string to search path.
7317 2010-04-14 Pedro Alves <pedro@codesourcery.com>
7319 * objfiles.h (gdb_bfd_close_or_warn): Declare.
7320 * objfiles.c (gdb_bfd_close_or_warn): New.
7321 * corelow.c: Include objfiles.h
7322 (core_close): Use gdb_bfd_close_or_warn.
7323 * elfread.c (build_id_verify): Ditto.
7324 * exec.c (exec_close, exec_close_1): Ditto.
7326 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7327 Pedro Alves <pedro@codesourcery.com>
7329 Group errors for many missing shared libraries.
7331 * solist.h (struct so_list): Remove from_tty.
7332 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
7333 (solib_map_sections): Take so_list argument. Return 0 if we
7334 failed to open a BFD. Add target sections here.
7335 (symbol_add_stub): Delete.
7336 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
7337 not from_tty copied from the so_list. Don't warn a second time
7338 for a missing library.
7339 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
7340 add to the section table here. Print out a single warning for all
7342 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
7345 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7347 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
7348 error/warning messages. Capitalize and use complete sentences.
7349 (blpy_block_syms_iternext): Likewise.
7350 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
7351 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
7352 (frame_info_to_frame_object, frapy_read_var)
7353 (gdbpy_frame_stop_reason_string): Likewise.
7354 * python/py-lazy-string.c (stpy_convert_to_value)
7355 (gdbpy_create_lazy_string_object): Likewise.
7356 * python/py-objfile.c (objfpy_set_printers): Likewise.
7357 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
7358 * python/python.c (parameter_to_python): Likewise.
7359 * python/py-type.c (typy_range, typy_target): Likewise.
7360 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
7361 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
7364 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7368 * python/py-prettyprint.c (pretty_print_one_value): Test for
7370 (print_string_repr): Test for Py_None. Set flags accordingly.
7371 Return value depending on return type.
7372 (print_children): Take a value indicating whether data was printed
7373 before this function was called. Alter output accordingly.
7374 (apply_val_pretty_printer): Capture return value from
7375 print_string_repr and pass to print_children.
7377 2010-04-13 Mark Kettenis <kettenis@gnu.org>
7380 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
7381 register note sections.
7382 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
7384 (i386_linux_init_abi): Install list of supported register note
7385 sections that matches the target description.
7387 2010-04-13 Pedro Alves <pedro@codesourcery.com>
7389 * remote.c (remote_get_noisy_reply): Don't error out on empty
7391 (remote_start_remote): Update and merge tracepoints and trace
7392 state variables as long as the target supports tracepoints.
7393 (remote_trace_init): Fix prototype.
7394 (remote_download_trace_state_variable): Validate reply.
7395 (remote_trace_set_readonly_regions): Fix prototype.
7396 (remote_trace_start): Fix prototype. Check for empty reply.
7397 (remote_get_trace_status): Small cleanup.
7398 (remote_trace_stop): Fix prototype. Check for empty reply.
7399 (remote_trace_find): Check for empty reply.
7400 (remote_save_trace_data): Validate reply.
7401 (remote_set_disconnected_tracing): Check for empty reply, and
7403 (remote_set_circular_trace_buffer): Ditto.
7405 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
7407 Suppress unused value warning during compilation.
7408 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
7410 * tui/tui-stack.c (tui_show_locator_content): Likewise.
7412 2010-04-12 Stan Shebs <stan@codesourcery.com>
7414 * tracepoint.c (tfile_xfer_partial): Check read result.
7416 2010-04-12 Mike Frysinger <vapier@gentoo.org>
7418 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
7419 * remote-sim.c (gdbsim_files_info): Likewise.
7421 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7423 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
7424 * arm-linux-nat.c (arm_linux_vfp_register_count): New
7426 (fetch_vfp_registers): New function to fetch VFP registers.
7427 (store_vfp_registers): New function to store VFP registers.
7428 (arm_linux_fetch_inferior_registers): Add support for VFP
7430 (arm_linux_store_inferior_registers): Likewise.
7431 (arm_linux_read_description): Likewise.
7432 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
7435 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
7437 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
7439 (amd64_collect_xstateregset): Likewise.
7441 2010-04-09 Stan Shebs <stan@codesourcery.com>
7443 * tracepoint.c (trace_status_mi): Report frames created.
7445 * tracepoint.c (trace_dump_command): Include default-collect
7448 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
7450 * symtab.c (find_function_start_sal): Never return SAL pointing
7451 before function start address, even if line info is missing.
7453 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7455 * NEWS: Mention tracepoints support.
7457 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7459 * tracepoint.c (trace_status_mi): Report disconnected tracing and
7460 circular trace buffer statuses.
7462 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7464 * config/djgpp/fnchange.lst: Fix typo in translations for
7465 symbol-without-target_section.exp and symbol-without-target_section.c.
7467 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7469 * breakpoint.c (condition_command): Pass condition expression to
7470 set_breakpoint_condition stripped from breakpoint number.
7472 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
7473 Thiago Jung Bauermann <bauerman@br.ibm.com>
7474 Tom Tromey <tromey@redhat.com>
7476 * breakpoint.c (condition_command): Simplify. Move condition
7478 (set_breakpoint_condition): ... here. New function.
7479 * breakpoint.h (set_breakpoint_condition): Declare.
7480 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
7481 (SUBDIR_PYTHON_SRCS): Likewise.
7482 (py-breakpoint.o): New rule.
7483 * python/py-breakpoint.c: New file.
7484 * python/python-internal.h (gdbpy_breakpoints)
7485 (gdbpy_initialize_breakpoints): Declare.
7486 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
7488 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7490 * regformats/regdat.sh: Include server.h. Don't include
7493 2010-04-08 Stan Shebs <stan@codesourcery.com>
7494 Pedro Alves <pedro@codesourcery.com>
7496 * tracepoint.h (struct trace_status): New fields disconnected_tracing
7497 and circular_buffer.
7498 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
7499 * tracepoint.c (trace_status_command): Display target's status for
7500 disconnected tracing and circular buffer.
7501 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
7502 query for non-disconnected-tracing case, remove the stop_tracing
7504 (tfile_open): Clear disconnected and circular buffer status.
7505 (trace_save): Save disconnected and circular buffer status.
7506 (parse_trace_status): Parse disconnected and circular buffer status,
7507 also recognize disconnected as a stop reason.
7508 * remote.c (remote_set_disconnected_tracing): Only set
7509 QTDisconnected if the remote end supports disconnected tracing.
7510 Warn otherwise, if trying to enable disconnected tracing.
7511 * infcmd.c (detach_command): Update disconnect_tracing call.
7512 * cli/cli-cmds.c (quit_command): Ditto.
7514 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7516 * i387-tdep.c (i387_collect_xsave): Replace abort with
7519 2010-04-08 Stan Shebs <stan@codesourcery.com>
7521 * breakpoint.c (default_collect_info): New function.
7522 (breakpoints_info): Call it.
7523 (maintenance_info_breakpoints): Ditto.
7524 (tracepoints_info): Ditto.
7526 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7528 * i387-tdep.c (i387_collect_xsave): Re-indent.
7530 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7532 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
7533 if HAVE_PTRACE_GETFPXREGS is defined.
7534 (i386_linux_read_description): Set have_ptrace_getfpxregs and
7535 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
7537 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
7538 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
7539 if .reg-xfp section doesn't exist.
7540 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
7542 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
7544 * i386-tdep.c: Include "features/i386/i386-mmx.c".
7545 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
7546 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
7547 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
7548 (i386_gdbarch_init): Update comments.
7549 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
7551 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
7553 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
7555 * features/Makefile (i386/i386-mmx-expedite): New.
7556 (i386/i386-mmx-linux-expedite): Likewise.
7557 ($(outdir)/i386/i386-mmx.dat): Likewise.
7558 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
7560 * features/i386/i386-mmx-linux.c: New.
7561 * features/i386/i386-mmx-linux.xml: Likewise.
7562 * features/i386/i386-mmx.c: Likewise.
7563 * features/i386/i386-mmx.xml: Likewise.
7564 * regformats/i386/i386-mmx-linux.dat: Likewise.
7565 * regformats/i386/i386-mmx.dat: Likewise.
7567 * features/Makefile (WHICH): Add i386/i386-mmx and
7568 i386/i386-mmx-linux.
7570 2010-04-08 Doug Evans <dje@google.com>
7572 * source.c (openp): Skip $cdir in PATH.
7574 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
7577 * python/py-lazy-string.c (stpy_convert_to_value): Check for
7579 (gdbpy_create_lazy_string_object): Allow strings with a NULL
7580 address and a zero length.
7582 2010-04-08 Hui Zhu <teawater@gmail.com>
7584 * i386-tdep.c (i386_process_record): Add support for insn
7587 2010-04-07 Doug Evans <dje@google.com>
7589 * python/python.c (source_python_script): Use ensure_python_env
7590 to prepare environment for script.
7592 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7594 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
7595 <sys/uio.h> and "i386-xstate.h".
7596 (PTRACE_GETREGSET): New.
7597 (PTRACE_SETREGSET): Likewise.
7598 (have_ptrace_getregset): Likewise.
7599 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
7601 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
7603 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
7604 (amd64_linux_store_inferior_registers): Likewise.
7605 (amd64_linux_read_description): Check and enable AVX target
7608 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
7609 and "features/i386/amd64-avx-linux.c".
7610 (amd64_linux_regset_sections): New.
7611 (amd64_linux_core_read_description): Check and enable AVX
7613 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
7614 set_gdbarch_core_regset_sections.
7615 (_initialize_amd64_linux_tdep): Call
7616 initialize_tdesc_amd64_avx_linux.
7618 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
7619 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7620 (tdesc_amd64_avx_linux): New.
7621 (amd64_linux_update_xstateregset): Likewise.
7623 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7624 (amd64_ymm_names): New.
7625 (amd64_ymmh_names): Likewise.
7626 (amd64_register_name): Likewise.
7627 (amd64_supply_xstateregset): Likewise.
7628 (amd64_collect_xstateregset): Likewise.
7629 (amd64_supply_xsave): Likewise.
7630 (amd64_collect_xsave): Likewise.
7631 (AMD64_NUM_REGS): Removed.
7632 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7633 %xmmN if AVX is available.
7634 (amd64_pseudo_register_name): Support pseudo YMM registers.
7635 (amd64_regset_from_core_section): Support .reg-xstate section.
7636 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7637 and ymm0h_regnum. Call set_gdbarch_register_name.
7638 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7640 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7641 AMD64_YMM15H_REGNUM.
7642 (AMD64_NUM_REGS): New.
7643 (amd64_supply_xsave): Likewise.
7644 (amd64_collect_xsave): Likewise.
7645 (amd64_register_name): Removed.
7646 (amd64_register_type): Likewise.
7648 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7650 * i387-tdep.c: Include "i386-xstate.h".
7651 (XSAVE_XSTATE_BV_ADDR): New.
7652 (xsave_avxh_offset): Likewise.
7653 (XSAVE_AVXH_ADDR): Likewise.
7654 (i387_supply_xsave): Likewise.
7655 (i387_collect_xsave): Likewise.
7657 * i387-tdep.h (I387_NUM_YMM_REGS): New.
7658 (I387_YMM0H_REGNUM): Likewise.
7659 (I387_YMMENDH_REGNUM): Likewise.
7660 (i387_supply_xsave): Likewise.
7661 (i387_collect_xsave): Likewise.
7663 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7665 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7666 <sys/uio.h> and "i386-xstate.h".
7667 (PTRACE_GETREGSET): New.
7668 (PTRACE_SETREGSET): Likewise.
7669 (fetch_xstateregs): Likewise.
7670 (store_xstateregs): Likewise.
7671 (GETXSTATEREGS_SUPPLIES): Likewise.
7672 (regmap): Include 8 upper YMM registers.
7673 (i386_linux_fetch_inferior_registers): Support XSAVE extended
7675 (i386_linux_store_inferior_registers): Likewise.
7676 (i386_linux_read_description): Check and enable AVX target
7679 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7680 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7681 (i386_linux_regset_sections): Add ".reg-xstate".
7682 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7683 (i386_linux_core_read_xcr0): New.
7684 (i386_linux_core_read_description): Check and enable AVX target
7686 (i386_linux_init_abi): Set xsave_xcr0_offset.
7687 (_initialize_i386_linux_tdep): Call
7688 initialize_tdesc_i386_avx_linux.
7690 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7691 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7692 (i386_linux_core_read_xcr0): New.
7693 (tdesc_i386_avx_linux): Likewise.
7694 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7696 * i386-tdep.c: Include "i386-xstate.h" and
7697 "features/i386/i386-avx.c".
7698 (i386_ymm_names): New.
7699 (i386_ymmh_names): Likewise.
7700 (i386_ymmh_regnum_p): Likewise.
7701 (i386_ymm_regnum_p): Likewise.
7702 (i386_xmm_regnum_p): Likewise.
7703 (i386_register_name): Likewise.
7704 (i386_ymm_type): Likewise.
7705 (i386_supply_xstateregset): Likewise.
7706 (i386_collect_xstateregset): Likewise.
7707 (i386_sse_regnum_p): Removed.
7708 (i386_pseudo_register_name): Support pseudo YMM registers.
7709 (i386_pseudo_register_type): Likewise.
7710 (i386_pseudo_register_read): Likewise.
7711 (i386_pseudo_register_write): Likewise.
7712 (i386_dbx_reg_to_regnum): Return %ymmN register number for
7713 %xmmN if AVX is available.
7714 (i386_regset_from_core_section): Support .reg-xstate section.
7715 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7716 (i386_process_record): Replace i386_sse_regnum_p with
7718 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7719 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
7720 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
7721 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
7722 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
7723 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7725 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7727 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7728 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7730 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7731 (I386_AVX_NUM_REGS): New.
7732 (i386_xmm_regnum_p): Likewise.
7733 (i386_ymm_regnum_p): Likewise.
7734 (i386_ymmh_regnum_p): Likewise.
7736 * common/i386-xstate.h: New.
7738 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7740 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7742 * features/Makefile (WHICH): Add i386/i386-avx,
7743 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7744 (i386/i386-avx-expedite): New.
7745 (i386/i386-avx-linux-expedite): Likewise.
7746 (i386/x86-64-avx-expedite):Likewise.
7747 (i386/x86-64-avx-linux-expedite): Likewise.
7748 ($(outdir)/i386/i386-avx.dat): New dependency.
7749 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7750 ($(outdir)/i386/x86-avx-64.dat): Likewise.
7751 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7753 * features/i386/32bit-avx.xml: New.
7754 * features/i386/64bit-avx.xml: Likewise.
7755 * features/i386/i386-avx-linux.c: Likewise.
7756 * features/i386/i386-avx-linux.xml: Likewise.
7757 * features/i386/i386-avx.c: Likewise.
7758 * features/i386/i386-avx.xml: Likewise.
7759 * features/i386/x86-64-avx-linux.c: Likewise.
7760 * features/i386/x86-64-avx-linux.xml: Likewise.
7761 * features/i386/x86-64-avx.c: Likewise.
7762 * features/i386/x86-64-avx.xml: Likewise.
7763 * regformats/i386/i386-avx-linux.dat: Likewise.
7764 * regformats/i386/i386-avx.dat: Likewise.
7765 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7766 * regformats/i386/x86-64-avx.dat: Likewise.
7768 2010-04-07 Doug Evans <dje@google.com>
7770 * top.c (source_file_name): Make const char *.
7771 * top.h (source_file_name): Update.
7772 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7774 (script_from_file): Change `file' arg to const char *.
7775 * cli/cli-script.h (script_from_file): Update.
7777 2010-04-06 Doug Evans <dje@google.com>
7779 * cli/cli-cmds.c (source_command): Run cleanups.
7781 2010-04-06 Stan Shebs <stan@codesourcery.com>
7783 * defs.h (char_ptr): Move typedef here from...
7784 * ada-lang.c (char_ptr): Remove.
7785 * charset.c (char_ptr): Remove.
7786 * tracepoint.h (struct uploaded_string): Remove.
7787 (struct uploaded_tp): Use vectors for string arrays.
7788 * tracepoint.c (trace_save): Use vectors of actions.
7789 (parse_tracepoint_definition): Ditto.
7790 (get_uploaded_tp): Clear vectors.
7791 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7792 (next_cmd): Change to an int.
7793 (read_next_cmd): Use vector of command strings.
7795 2010-04-06 Doug Evans <dje@google.com>
7797 * top.h (source_script, cd_command): Delete.
7798 * main.c: #include "cli/cli-cmds.h"
7800 2010-04-06 Kevin Buettner <kevinb@redhat.com>
7802 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7803 type in bytes, not bits.
7805 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7807 * stabsread.c (define_symbol): Add support for char
7808 and string constants.
7810 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7812 Remove remaining "%ll" uses.
7813 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7815 * rs6000-nat.c (rs6000_ptrace64): Idem.
7816 * solib-pa64.c (pa64_current_sos): Idem.
7817 * solib-spu.c (spu_current_sos): Idem.
7818 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7820 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7822 * sh64-tdep.c (sh64_show_media_regs): Idem.
7824 2010-04-05 Stan Shebs <stan@codesourcery.com>
7826 * tracepoint.c: Include gdbcore.h.
7827 (tfile_xfer_partial): Return partial results, also try reading
7829 (tfile_has_all_memory): New function.
7830 (init_tfile_ops): Use it.
7832 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7835 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7836 the changes in data-directory.
7837 (init_sysinfo): Reload the syscall XML file if the data-directory
7840 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7843 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7845 2010-04-04 Stan Shebs <stan@codesourcery.com>
7846 Nathan Sidwell <nathan@codesourcery.com>
7848 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7849 breakpoints printed.
7850 (is_hardware_watchpoint): Make argument const.
7851 (is_watchpoint): Ditto.
7852 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7854 (breakpoints_info): Pass NULL to breakpoint_1.
7855 (maintenance_info_breakpoints): Ditto.
7856 (watchpoints_info): New function.
7857 (tracepoints_info): Use breakpoint_1 filter.
7858 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7859 (_initialize_breakpoint): Make "info watchpoints" its own command.
7860 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7861 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7863 2010-04-04 Stan Shebs <stan@codesourcery.com>
7865 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7867 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7869 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7870 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7872 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7874 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7875 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7877 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7879 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7882 2010-04-02 Hui Zhu <teawater@gmail.com>
7884 * i386-tdep.c (OT_DQUAD): New enum.
7885 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7886 SSE3, SSSE3 and SSE4.
7888 2010-04-02 Hui Zhu <teawater@gmail.com>
7890 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7893 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7895 * tracepoint.c (trace_dump_actions): New, factored out from
7896 trace_dump_command, and adjusted to recurse into while-stepping's
7898 (trace_dump_command): Use it.
7900 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7902 * breakpoint.h (struct counted_command_line): Moved definition to
7903 breakpoint.c, and forward declare.
7904 (breakpoint_commands): Declare.
7905 * breakpoint.c (struct counted_command_line): Moved here.
7906 (breakpoint_commands): New.
7907 * tracepoint.c (encode_actions): Use breakpoint_commands.
7908 * remote.c (remote_download_tracepoint): Ditto.
7910 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7912 * remote.c (remote_parse_stop_reply): Use hex_string instead
7913 of phex_nz for error.
7915 2010-04-01 Stan Shebs <stan@codesourcery.com>
7916 Nathan Sidwell <nathan@codesourcery.com>
7918 * tracepoint.h (enum actionline_type): Remove.
7919 (validate_actionline): Change return to void.
7920 * tracepoint.c (report_agent_reqs_errors): New function.
7921 (validate_actionline): Call it, change return to void, report errors
7923 (collect_symbol): Call report_agent_reqs_errors.
7924 (encode_actions_1): Ditto.
7925 (encode_actions): Don't expect a result from validate_actionline.
7927 2010-04-01 Stan Shebs <stan@codesourcery.com>
7929 * tracepoint.c (trace_start_command): Confirm if trace is running.
7930 (trace_stop_command): Error if trace not running.
7932 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7934 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7935 (AMD64_NUM_LOWER_BYTE_REGS): New.
7936 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7937 (amd64_pseudo_register_write): Likewise.
7938 (amd64_init_abi): Set num_byte_regs to 20.
7940 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7942 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7943 (prev_breakpoint_count): New.
7944 (set_breakpoint_count): Adjust.
7945 (rbreak_start_breakpoint_count): New.
7946 (start_rbreak_breakpoints): Adjust.
7947 (end_rbreak_breakpoints): Adjust.
7948 (struct commands_info) <arg>: New field.
7949 (do_map_commands_command): Tweak output to include breakpoint spec
7951 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7952 ARG was empty on entry. Set INFO's arg.
7953 (create_breakpoint): Adjust.
7955 * NEWS: Clarify `commands' changes.
7957 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7959 * tracepoint.c: Include stack.h.
7960 (struct add_local_symbols_data): New.
7961 (do_collect_symbol): New.
7962 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7963 iterate_over_block_local_vars.
7964 * stack.c (print_block_frame_locals): Rewrite as ...
7965 (iterate_over_block_locals): ... this. Take a callback function
7966 pointer and generic data pointer, and call that instead of
7967 print_variable_and_value.
7968 (struct print_variable_and_value_data): New.
7969 (do_print_variable_and_value): New.
7970 (iterate_over_block_local_vars): New, abstracted out from
7971 print_frame_local_vars.
7972 (print_frame_local_vars): Rewrite using
7973 iterate_over_block_local_vars.
7974 (iterate_over_block_arg_vars): New, abstracted out from
7975 print_frame_arg_vars.
7976 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7977 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7978 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7980 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
7982 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
7983 instructions. Use the PC+4 if the base of the TBB or TBH is the
7986 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7988 Fix crash on reading wrong function declaration DWARF.
7989 * dwarf2read.c (read_subroutine_type): New variable void_type.
7990 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7991 more close to their use.
7993 2010-03-31 Stan Shebs <stan@codesourcery.com>
7995 * breakpoint.c (tracepoint_save_command): Include variables,
7996 conditionals, tracepoint types, and default-collect.
7997 * tracepoint.c (save_trace_state_variables): New function.
7998 * tracepoint.h (save_trace_state_variables): Declare it.
8000 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
8002 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
8004 2010-03-30 Keith Seitz <keiths@redhat.com>
8006 * c-typeprint.c (c_type_print_args): Don't print "void"
8007 for java, regardless of whether it is TYPE_PROTOTYPED.
8008 Use the passed-in language instead of current_language.
8009 (c_type_print_varspec_suffix): Use current_language instead
8010 of assuming language_c.
8011 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
8012 any return type specifier from the physname.
8014 2010-03-30 Pedro Alves <pedro@codesourcery.com>
8016 * tui/tui-interp.c (tui_is_toplevel): New.
8018 (tui_allowed_p): New.
8019 * tui/tui.c (tui_enable): Check if the TUI is allowed before
8021 * tui/tui.h (tui_allowed_p): Declare.
8023 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
8025 * serial.h: Include winsock2.h before windows.h.
8027 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
8029 * NEWS: Mention xmlRegisters= in qSupported packet.
8031 * i386-tdep.c: Include "remote.h".
8032 (_initialize_i386_tdep): Call register_remote_support_xml.
8034 * remote.c (remote_support_xml): New.
8035 (register_remote_support_xml): Likewise.
8036 (remote_query_supported_append): Likewise.
8037 (remote_query_supported): Support remote_support_xml.
8039 * remote.h (register_remote_support_xml): New.
8041 2010-03-29 Stan Shebs <stan@codesourcery.com>
8043 * tracepoint.c (trace_find_line_command): Remove dead code.
8045 * tracepoint.h (struct uploaded_string): New struct.
8046 (struct uploaded_tp): New fields for source strings.
8047 * breakpoint.c (this_utp, next_cmd): New globals.
8048 (read_uploaded_action): New function.
8049 (create_tracepoint_from_upload): Fill in more parts
8051 * tracepoint.c (encode_source_string): New function.
8052 (trace_save): Write out source strings, fix error checks.
8053 (parse_tracepoint_definition): Add source string parsing.
8054 * remote.c (PACKET_TracepointSource): New packet type.
8055 (remote_download_command_source): New function.
8056 (remote_download_tracepoint): Download source pieces also.
8057 (_initialize_remote): Add packet config command.
8059 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
8062 * tracepoint.c (start_tracing): Check tracepoints before sending
8063 commands to target, don't start if all tracepoints disabled.
8065 2010-03-28 Pedro Alves <pedro@codesourcery.com>
8067 * cli/cli-script.c (process_next_line): Handle 'stepping'.
8069 2010-03-26 Stan Shebs <stan@codesourcery.com>
8071 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
8073 2010-03-26 Tom Tromey <tromey@redhat.com>
8075 * breakpoint.c (commands_command_1): Duplicate 'arg'.
8077 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8079 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
8080 (skip_prologue_sal): Remove local definition.
8081 (resolve_sal_pc): Remove now unnecessary code.
8082 * linespec.c (minsym_found): Call skip_prologue_sal.
8083 * symtab.c (find_function_start_pc): Remove.
8084 (find_function_start_sal): Extract prologue skipping into ...
8085 (skip_prologue_sal): ... this new function. Handle code both
8086 with and without debug info. Respect SAL's explicit_pc and
8087 explicit_line flags. Inline old find_function_start_pc.
8088 * symtab.h (find_function_start_pc): Remove.
8089 (skip_prologue_sal): Add prototype.
8091 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8093 * dwarf2read.c (read_func_scope): Also scan specification DIEs
8094 for DW_TAG_imported_module children.
8096 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8098 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
8099 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
8100 * completer.c (add_struct_fields): Fix inverted logic.
8102 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8104 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
8106 2010-03-26 Pedro Alves <pedro@codesourcery.com>
8108 * tracepoint.c (current_trace_status): Don't make sure error_desc
8110 (parse_trace_status): Release a previous error_desc string, and
8111 set it to NULL by default. If stop reason is tracepoint_error,
8112 make sure error_desc is not left NULL.
8114 2010-03-26 Pedro Alves <pedro@codesourcery.com>
8116 * tracepoint.c (trace_save): Remove X from tracepoint error
8119 2010-03-26 Pedro Alves <pedro@codesourcery.com>
8121 * tracepoint.c (parse_trace_status): Don't allow plain strings in
8122 the terror description. Don't expect an X prefix.
8124 2010-03-25 Stan Shebs <stan@codesourcery.com>
8126 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
8127 (struct trace_status): New field error_desc.
8128 * tracepoint.c (stop_reason_names): Add terror.
8129 (current_trace_status): Ensure non-NULL error description.
8130 (trace_status_command): Add error report.
8131 (trace_status_mi): Ditto.
8132 (trace_save): Add special case for error description.
8133 (parse_trace_status): Add case for errors.
8135 2010-03-25 Keith Seitz <keiths@redhat.com>
8137 * dwarf2read.c (read_subroutine_type): If the compilation unit
8138 language is Java, mark any formal parameter named "this" as
8139 artificial (GCC/43521).
8140 (dwarf2_name): Add special handling for Java constructors.
8142 2010-03-25 Tom Tromey <tromey@redhat.com>
8144 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
8145 * infrun.c (handle_inferior_event): Change initialization of
8147 (handle_inferior_event): Change assignment to stop_stack_dummy.
8148 (normal_stop): Update use of stop_stack_dummy.
8149 (struct inferior_status) <stop_stack_dummy>: Change type.
8150 * inferior.h (stop_stack_dummy): Update.
8151 * infcmd.c (stop_stack_dummy): Change type.
8152 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
8154 (call_function_by_hand): Call set_std_terminate_breakpoint.
8155 Rewrite std::terminate handling.
8156 * breakpoint.h (enum bptype) <bp_std_terminate,
8157 bp_std_terminate_master>: New.
8158 (enum stop_stack_kind): New.
8159 (struct bpstat_what) <call_dummy>: Change type.
8160 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
8162 * breakpoint.c (create_std_terminate_master_breakpoint): New
8164 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
8165 Call create_std_terminate_master_breakpoint.
8166 (print_it_typical): Handle new breakpoint kinds.
8167 (bpstat_stop_status): Handle bp_std_terminate_master.
8168 (bpstat_what): Correctly set call_dummy field. Handle
8169 bp_std_terminate_master and bp_std_terminate.
8170 (print_one_breakpoint_location): Update.
8171 (allocate_bp_location): Update.
8172 (set_std_terminate_breakpoint): New function.
8173 (delete_std_terminate_breakpoint): Likewise.
8174 (create_thread_event_breakpoint): Update.
8175 (delete_command): Update.
8176 (breakpoint_re_set_one): Update.
8177 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
8179 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8181 * symfile.c (build_section_addr_info_from_bfd): New.
8182 (build_section_addr_info_from_objfile): Base it on
8183 build_section_addr_info_from_bfd.
8184 (addrs_section_compar, addrs_section_sort): New.
8185 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
8186 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
8187 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
8189 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
8191 * elfread.c (find_separate_debug_file_by_buildid):
8192 Remove unused local variable.
8194 2010-03-24 Tom Tromey <tromey@redhat.com>
8196 PR breakpoints/9352:
8197 * NEWS: Mention changes to `commands' and `rbreak'.
8198 * symtab.c (do_end_rbreak_breakpoints): New function.
8199 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
8200 end_rbreak_breakpoints.
8201 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
8202 (set_breakpoint_count): Likewise. Clear last_was_multi.
8203 (multi_start, multi_end, last_was_multi): New globals.
8204 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
8206 (struct commands_info): New
8207 (do_map_commands_command): New function.
8208 (commands_command_1): New function.
8209 (commands_command): Use it.
8210 (commands_from_control_command): Likewise.
8211 (do_delete_breakpoint): New function.
8212 (delete_command): Use it.
8213 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
8214 (do_map_disable_breakpoint): New function.
8215 (disable_command): Use it.
8216 (do_map_enable_breakpoint): New function.
8217 (enable_command): Use it.
8218 (enable_once_breakpoint): Add argument.
8219 (enable_once_command): Update.
8220 (enable_delete_breakpoint): Add argument.
8221 (enable_delete_command): Update.
8222 (break_command_really): Set last_was_multi when needed.
8223 (check_tracepoint_command): Fix formatting.
8224 (validate_commands_for_breakpoint): New function.
8225 (breakpoint_set_commands): Use it.
8226 (tracepoint_save_command): Update.
8227 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
8230 2010-03-24 Tom Tromey <tromey@redhat.com>
8232 * breakpoint.h (struct counted_command_line): New struct.
8233 (struct breakpoint) <commands>: Change type.
8234 (struct bpstats) <commands>: Change type.
8235 <commands_left>: New field.
8236 * breakpoint.c (alloc_counted_command_line): New function.
8237 (incref_counted_command_line): Likewise.
8238 (decref_counted_command_line): Likewise.
8239 (do_cleanup_counted_command_line): Likewise.
8240 (make_cleanup_decref_counted_command_line): Likewise.
8241 (breakpoint_set_commands): Use decref_counted_command_line and
8242 alloc_counted_command_line.
8243 (commands_command): Don't error if breakpoint commands are
8245 (commands_from_control_command): Likewise.
8246 (bpstat_free): Update.
8247 (bpstat_copy): Likewise.
8248 (bpstat_clear_actions): Likewise.
8249 (bpstat_do_actions_1): Likewise.
8250 (bpstat_stop_status): Likewise.
8251 (print_one_breakpoint_location): Likewise.
8252 (delete_breakpoint): Likewise.
8253 (bpstat_alloc): Initialize new field.
8254 (tracepoint_save_command): Update.
8255 * tracepoint.c (encode_actions): Update.
8256 (trace_dump_command): Update.
8258 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8260 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
8261 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
8262 (read_structure_type): For RealView, set TYPE_STUB on structures with
8263 no byte size and no children.
8264 (read_subroutine_type): Mark functions as prototyped by default.
8265 * symtab.c (producer_is_realview): New function.
8266 * symtab.h (expand_line_sal): Fix declaration formatting.
8267 (producer_is_realview): Declare.
8269 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8271 * arm-tdep.c (skip_prologue_function): New function.
8272 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
8273 (thumb_analyze_prologue): Document return value. Recognize more
8274 Thumb instructions, skippable calls, and some Thumb-2 instructions.
8276 (arm_skip_prologue): Remove call dummy check. Check the prologue
8277 for non-GNU compilers.
8278 (arm_instruction_changes_pc): New function.
8279 (arm_analyze_prologue): New function, broken out from
8280 arm_scan_prologue. Recognize more ARM instructions and skippable
8281 calls. Update comments. Handle NULL cache. Return the address
8282 of the first unrecognized instruction. Do not skip past other
8283 instructions which change control flow. Add debug output.
8284 (arm_scan_prologue): Use arm_analyze_prologue.
8285 (ARM_PC_32): Delete.
8286 (shifted_reg_val): Simplify ARM_PC_32 check.
8288 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8290 * tracepoint.c (tvariables_info_1): Actually compute
8291 the number of rows in the result.
8293 2010-03-24 Pedro Alves <pedro@codesourcery.com>
8295 * remote.c (crc32): Constify `buf' parameter.
8296 (remote_verify_memory): New, abstracted out from...
8297 (compare_sections_command): ... this. Remove hardcoded target
8299 (init_remote_ops): Install remote_verify_memory.
8300 * target.c (target_verify_memory): New.
8301 * target.h (struct target_ops) <to_verify_memory>: New field.
8302 (target_verify_memory): Declare.
8304 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8306 Implement -trace-save.
8308 * mi-cmds.h (mi_cmds_trace_save): Declare.
8309 * mi-cmds.c (mi_cmds): Register -trace-save.
8310 * mi/mi-main.c (mi_cmd_trace_save): New.
8311 * remote.c (remote_save_trace_data): Take const parameter.
8312 * target.h (struct target_ops::to_save_trace_data): Take
8314 * target.c (update_current_target): Adjust to the above.
8315 * tracepoint.c (trave_save): New, extracted from
8316 (trace_save_command): ...this.
8317 (tfile_trace_find): Remove message that is unnecessary now
8318 that 'tfind' reports found frame.
8319 * tracepoint.h (trace_save): Declare.
8321 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8323 Implement -trace-find.
8325 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
8326 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
8327 * mi/mi-main.c (mi_cmd_trace_find): New.
8328 * target.h (struct target_ops): Document to_trace_find.
8329 * tracepoint.h (tfind_1): Declare.
8330 * tracepoint.c (finish_tfind_command): Rename to...
8332 * remote.c (remote_trace_find): Return -1 if target say
8333 there's no frame. Improve error diagnostics.
8335 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8337 -trace-define-variable and -trace-list-variables.
8339 * tracepoint.c (create_trace_state_variable): Make
8340 private copy of name, as opposed to assuming the
8341 pointer lives forever.
8342 (tvariables_info_1): New.
8343 (tvariables_info): Use the above.
8344 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
8346 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
8347 and -trace-list-variables.
8348 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
8349 (mi_cmd_trace_list_variables): New.
8350 * mi/mi-main.c (mi_cmd_trace_define_variable)
8351 (mi_cmd_trace_list_variables): New.
8353 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8355 Implement -break-passcount.
8357 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
8358 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
8359 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
8361 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8363 -trace-start/-trace-end/-trace-status.
8365 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
8367 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
8368 (mi_cmd_trace_stop): Declare.
8369 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
8370 (mi_cmd_trace_stop): New.
8371 * tracepoint.c (start_tracing): New, extracted from...
8372 (trace_start_command): ...this.
8373 (trace_status_mi): New.
8374 * tracepoint.h (struct trace_status): Document
8375 stopping_tracepoint.
8376 (start_tracing, stop_tracing, trace_status_mi): Declare.
8378 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8380 Implement creating tracepoints with -break-insert.
8382 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
8383 to mean that tracepoint should be created.
8385 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8387 * breakpoint.c (check_no_tracepoint_commands): Use
8388 current spelling of 'teval'.
8390 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8392 Unify actions and commands
8394 * defs.h (read_command_lines, read_command_lines_1): New
8395 parameters validator and closure.
8396 * tracepoint.h (struct action_line): Remove.
8397 * breakpoint.h (struct breakpoint): Remove the 'actions'
8399 * defs.h (enum command_control_type): New value
8400 while_stepping_control.
8401 (struct command_line): Add comments.
8402 * breakpoint.c (breakoint_is_tracepoint): New.
8403 (breakpoint_set_commands): For tracepoints,
8404 verify the commands are permissible.
8405 (check_tracepoint_commands): New.
8406 (commands_command): Require that each new line is validated using
8407 check_tracepoint_command, if we set commands for a tracepoint.
8408 (create_tracepoint_from_upload): Likewise.
8409 (print_one_breakpoint_location): Remove the code to print
8410 actions specifically.
8411 (tracepoint_save_command): Relay to print_command_lines.
8412 * cli/cli-script.c (process_next_line): New parameters validator
8413 and closure. Handle 'while-stepping'. Call validator if not null.
8414 (read_command_lines, read_command_lines1): Likewise.
8415 (recurse_read_control_structure): New parameters validator and
8416 closure. Handle while_stepping_control.
8417 (print_command_lines): Handle while-stepping.
8418 (get_command_line, define_command, document_command): Adjust.
8419 * remote.c (remote_download_tracepoint): Adjust.
8420 * tracepoint.c (make_cleanup_free_actions, read_actions)
8421 (free_actions, do_free_actions_cleanup): Remove.
8422 (trace_actions_command): Use read_command_lines.
8423 (validate_actionline): Use error in one place.
8424 (encode_actions_1): New, extracted from...
8425 (encode_actions): ...this. Also use cleanups for exception
8427 (trace_dump_command): Adjust.
8428 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
8431 2010-03-23 Mike Frysinger <vapier@gentoo.org>
8433 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
8435 2010-03-22 Stan Shebs <stan@codesourcery.com>
8437 * value.c (value_static_field): Be lazy about the field's value.
8439 2010-03-22 Reid Kleckner <reid@kleckner.net>
8442 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
8444 (disable_breakpoints_in_shlibs): Likewise.
8446 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
8448 * dwarf2read.c (partial_die_parent_scope): Work around buggy
8449 GCC 4.1 debug info generation (GCC PR c++/28460).
8450 (determine_prefix): Likewise.
8452 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
8454 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
8456 * tui/tui-layout.c (extract_display_start_addr): Likewise.
8458 2010-03-19 Stan Shebs <stan@codesourcery.com>
8460 * ax-gdb.c (gen_fetch): Handle bool.
8461 (gen_usual_unary): Ditto.
8463 (gen_equal): New function.
8464 (gen_less): New function.
8465 (gen_expr_binop_rest): Call them, also return integer type from
8469 2010-03-19 Tom Tromey <tromey@redhat.com>
8471 * jv-lang.c (jv_dynamics_objfile_data_key)
8472 (jv_type_objfile_data_key): New globals.
8473 (class_symtab): Move earlier.
8474 (jv_per_objfile_free): New function.
8475 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
8477 Remove ancient #if 1.
8478 (add_class_symbol): Remove redundant declaration.
8479 (java_lookup_class): Use alloc_type, not alloc_type_arch.
8480 (java_link_class_type): Mark as static. Update.
8481 (jv_clear_object_type): New function.
8482 (set_java_object_type): Likewise.
8483 (get_java_object_type): Use set_java_object_type.
8484 (is_object_type): Likewise.
8485 (_initialize_java_language): Register new objfile keys.
8486 (get_java_class_symtab): Add 'gdbarch' parameter.
8487 (add_class_symtab_symbol): Update.
8488 (type_from_class): Update.
8490 2010-03-19 Stan Shebs <stan@codesourcery.com>
8492 * ax-general.c (ax_const_l): Fix a sizing bug.
8494 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8498 2010-03-18 Stan Shebs <stan@codesourcery.com>
8499 Pedro Alves <pedro@codesourcery.com>
8501 * target.h (struct target_ops): New method
8502 to_set_circular_trace_buffer.
8503 (target_set_circular_trace_buffer): New macro.
8504 * target.c (update_current_target): Add
8505 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
8507 * remote.c (remote_set_circular_trace_buffer): New function.
8508 (init_remote_ops): Add it to vector.
8509 * tracepoint.h (struct trace_status): New field traceframes_created,
8510 change buffer_size and buffer_free to int.
8511 * tracepoint.c (circular_trace_buffer): New global.
8512 (start_tracing): Send values of disconnected tracing and circular
8513 trace buffer settings.
8514 (set_circular_trace_buffer): New function.
8515 (parse_trace_state): Handle total space and frames created.
8516 (trace_status_command): Display total space and total frames
8518 (trace_save): Write out new status values.
8519 (parse_trace_status): Set traceframe_count, traceframes_created,
8520 buffer_free and buffer_size to -1 by default.
8521 (_initialize_tracepoint): New setshow for circular-trace-buffer.
8522 * NEWS: Mention the circular trace buffer option.
8524 2010-03-18 Tom Tromey <tromey@redhat.com>
8526 * infcmd.c (finish_command_continuation): Wrap print_return_value
8529 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8531 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
8532 DIE has a name before creating the associated partial symbol.
8533 (read_func_scope): Emit a complaint if the subprogram does not
8534 have a name or when we can't extract the subprogram PC bounds.
8536 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
8538 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
8539 instead of selected frame architecture.
8541 2010-03-18 Pedro Alves <pedro@codesourcery.com>
8543 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
8544 a valid selected thread, and that it is not running.
8545 (advance_command): Ditto.
8546 (finish_command): Ditto.
8548 2010-03-17 Stan Shebs <stan@codesourcery.com>
8550 * ax-gdb.c (require_rvalue): Disallow non-scalars.
8552 * infcall.c: Include tracepoint.h.
8553 (call_function_by_hand): Disallow calls in tfind mode.
8554 * infcmd.c: Include tracepoint.h.
8555 (ensure_not_tfind_mode): New function.
8556 (continue_1): Call it.
8558 (jump_command): Ditto.
8559 (signal_command): Ditto.
8560 (advance_command): Ditto.
8561 (until_command): Ditto.
8562 (finish_command): Ditto.
8563 * tracepoint.h (disconnect_or_stop_tracing): Declare.
8565 * ax-gdb.h (struct axs_value): New field optimized_out.
8566 (gen_trace_for_var): Add gdbarch argument.
8567 * ax-gdb.c (gen_trace_static_fields): New function.
8568 (gen_traced_pop): Call it, add gdbarch argument.
8569 (gen_trace_for_expr): Update call to it.
8570 (gen_trace_for_var): Ditto, and report optimized-out variables.
8571 (gen_struct_ref_recursive): Check for optimized-out value.
8572 (gen_struct_elt_for_reference): Ditto.
8573 (gen_static_field): Pass gdbarch instead of expression, assume
8574 optimization if field not found.
8575 (gen_var_ref): Set the optimized_out flag.
8576 (gen_expr): Error on optimized-out variable.
8577 * tracepoint.c (collect_symbol): Handle struct-valued vars as
8578 expressions, skip optimized-out variables with computed locations.
8579 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
8580 erroring out if location expression missing.
8581 (loclist_tracepoint_var_ref): Don't error out here.
8583 2010-03-17 Tom Tromey <tromey@redhat.com>
8585 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
8586 DWARF data is available.
8588 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
8590 * symfile.c (generic_load): Reset breakpoints after loading.
8592 2010-03-17 Tom Tromey <tromey@redhat.com>
8594 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
8596 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8598 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
8599 create_breakpoint call, adjust the parameters.
8601 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8602 Chandru <chandru@in.ibm.com>
8604 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
8605 * valarith.c (value_subscripted_rvalue): Suppress error if
8606 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
8608 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
8610 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
8612 2010-03-16 Joel Brobecker <brobecker@adacore.com>
8614 * ada-tasks.c (task_command_1): Check that the task ptid is valid
8615 before doing the associated thread switch.
8617 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
8619 * MAINTAINERS: Update my email address.
8621 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
8623 Simplify MI breakpoint setting.
8625 * breakpoint.c (break_command_really): Make nonstatic and
8627 (create_breakpoint): ...this. Rename prior function by this name
8629 (create_breakpoint_sal): ...this.
8630 (create_breakpoints): Rename to...
8631 (create_breakpoints_sal): ...this.
8632 (set_breakpoint): Remove.
8633 * breakpoint.h: Adjust to above changes.
8634 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8636 2010-03-15 Stan Shebs <stan@codesourcery.com>
8638 * ax-gdb.c: Include cp-support.h.
8639 (find_field): Remove.
8640 (gen_primitive_field): New function.
8641 (gen_struct_ref_recursive): New function.
8642 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8644 (gen_static_field): New function.
8645 (gen_struct_elt_for_reference): New.
8646 (gen_namespace_elt): New.
8647 (gen_maybe_namespace_elt): New.
8648 (gen_aggregate_elt_ref): New.
8649 (gen_expr): Add OP_SCOPE, display opcode name in error message.
8651 2010-03-15 Tom Tromey <tromey@redhat.com>
8653 * dwarf2read.c (die_needs_namespace): Also return 0 for
8656 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
8659 * cp-support.h: Added char *declaration element to using_direct
8661 (cp_add_using): Added char *declaration argument.
8662 (cp_add_using_directive): Ditto.
8663 (cp_lookup_symbol_imports): made extern.
8664 * cp-namespace.c: Updated with the above changes.
8665 * dwarf2read.c (read_import_statement): Ditto.
8666 (read_namespace): Ditto.
8667 (read_import_statement): Support import declarations.
8668 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8670 Added support for 'declaration_only' search.
8671 (cp_lookup_symbol_namespace): Attempt to search for the name as
8672 is before consideration of imports.
8673 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8674 search at every block level search.
8675 Now takes language argument.
8676 (lookup_symbol_aux): Updated.
8678 2010-03-15 Tom Tromey <tromey@redhat.com>
8680 * c-exp.y (name_not_typename): Add 'operator' clause.
8682 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
8684 * configure.ac: Exit if ${gdb_target_obs}" is not set.
8685 * configure: Regenerate.
8687 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8689 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8690 and ".sdynbss". Update the comment.
8692 2010-03-15 Jie Zhang <jie@codesourcery.com>
8694 * MAINTAINERS: Update my email address.
8696 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8698 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8700 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8702 * charset.c [USE_WIN32API]: Include <windows.h>.
8703 (_initialize_charset): Correct type of w32_host_default_charset.
8705 2010-03-14 Pedro Alves <pedro@codesourcery.com>
8707 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8709 2010-03-12 Tom Tromey <tromey@redhat.com>
8712 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8713 in a lexical block does not need a namespace.
8714 (new_symbol) <DW_TAG_variable>: Put extern variables on
8715 list_in_scope in all cases.
8717 2010-03-12 Stan Shebs <stan@codesourcery.com>
8719 * ax-gdb.c (gen_expr): Add shift expressions.
8720 (gen_expr_binop_rest): Ditto.
8722 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
8724 * buildsym.c (finish_block): Reset using_directives pointer
8725 after block initialization.
8727 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
8729 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8730 * i386-tdep.c (i386_word_names): Likewise.
8732 2010-03-12 Pedro Alves <pedro@codesourcery.com>
8734 * target.c (memory_xfer_partial): Don't use the stack cache if
8735 inspecting trace frames.
8736 * tracepoint.c (finish_tfind_command): Invalidate the target
8739 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8741 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8742 for the PIC displacement, print also the displacement value.
8743 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
8745 2010-03-10 Kevin Buettner <kevinb@redhat.com>
8747 * remote-mips.c (close_ports, mips_initialize_cleanups)
8748 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8749 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8750 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8751 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8752 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8753 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8754 comments describing each of these functions.
8755 (mips_enter_debug, mips_exit_debug, common_open)
8756 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8757 blank line after the comment describing the function.
8759 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8761 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8762 parameter displacementp. Update comment.
8763 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8764 element exists. Return if svr4_exec_displacement was not successful.
8767 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8768 Daniel Jacobowitz <dan@codesourcery.com>
8770 * solib-svr4.c (read_program_header): Support type == -1 to read
8771 all program headers.
8772 (read_program_headers_from_bfd): New function.
8773 (svr4_static_exec_displacement): Remove and move the comment ...
8774 (svr4_exec_displacement): ... here. Remove variable found. New
8775 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8776 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8777 targets using read_program_headers_from_bfd. Remove the call of
8778 svr4_static_exec_displacement.
8780 2010-03-10 Tom Tromey <tromey@redhat.com>
8782 * dwarf2read.c (struct pubnames_header): Remove.
8783 (_PUBNAMES_HEADER): Remove.
8784 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8785 (struct aranges_header): Remove.
8786 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8787 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8788 (PUBNAMES_SECTION): Remove.
8789 (ARANGES_SECTION): Remove.
8790 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8791 (dwarf2_build_psymtabs): Remove dead code.
8792 (dwarf2_build_psymtabs_easy): Remove.
8794 2010-03-10 Tom Tromey <tromey@redhat.com>
8796 * elfread.c (elf_symfile_read): Don't call
8797 dwarf2_build_frame_info.
8798 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8799 (struct dwarf2_per_objfile) <objfile>: New field.
8800 (dwarf2_has_info): Now idempotent. Set objfile field.
8801 (dwarf2_read_section): Check and set readin field. Call
8803 (dwarf2_build_psymtabs): Don't read all sections.
8804 (read_type_comp_unit_head): Read types section.
8805 (create_debug_types_hash_table): Likewise.
8806 (init_cu_die_reader): Add asserts.
8807 (process_type_comp_unit): Add assert.
8808 (dwarf2_build_psymtabs_hard): Read info section.
8809 (load_partial_comp_unit): Add assert.
8810 (create_all_comp_units): Read info section.
8811 (load_full_comp_unit): Likewise.
8812 (dwarf2_ranges_read): Read ranges section.
8813 (dwarf2_record_block_ranges): Add assert.
8814 (dwarf2_read_abbrevs): Read abbrev section.
8815 (read_indirect_string): Read str section.
8816 (dwarf_decode_line_header): Read line section.
8817 (read_signatured_type_at_offset): Read types section.
8818 (dwarf_decode_macros): Read macinfo section.
8819 (dwarf2_symbol_mark_computed): Read loc section.
8820 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8821 dwarf2_build_frame_info.
8822 (dwarf2_build_frame_info): Unconditionally set
8823 dwarf2_frame_objfile_data on the objfile.
8824 * configure.ac: Check for posix_madvise.
8825 * config.in, configure: Rebuild.
8827 2010-03-10 Tom Tromey <tromey@redhat.com>
8829 * xcoffread.c (xcoff_start_psymtab): Update.
8830 (xcoff_end_psymtab): Update.
8831 * psymtab.c (allocate_psymtab): Remove dead code.
8832 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8834 * mdebugread.c (parse_partial_symbols): Update.
8835 (new_psymtab): Likewise.
8836 * dwarf2read.c (process_psymtab_comp_unit): Update.
8837 (psymtab_to_symtab_1): Update.
8838 * dbxread.c (start_psymtab): Update.
8839 (end_psymtab): Likewise.
8841 2010-03-10 Tom Tromey <tromey@redhat.com>
8843 * xcoffread.c: Include psymtab.h.
8844 (xcoff_sym_fns): Update.
8845 * symtab.h (struct partial_symbol): Remove.
8846 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8847 (struct partial_symtab): Remove.
8848 (PSYMTAB_TO_SYMTAB): Remove.
8849 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8850 (find_pc_sect_psymtab): Remove.
8851 (find_pc_sect_symtab_via_partial): Declare.
8852 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8853 (find_main_psymtab): Remove.
8854 (find_main_filename): Declare.
8855 (fixup_psymbol_section): Remove.
8856 (fixup_section): Declare.
8857 * symtab.c: Include psymtab.h.
8858 (lookup_symtab): Use lookup_symtab method.
8859 (lookup_partial_symtab): Remove.
8860 (find_pc_sect_psymtab_closer): Remove.
8861 (find_pc_sect_psymtab): Remove.
8862 (find_pc_sect_symtab_via_partial): New function.
8863 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8864 (fixup_section): No longer static.
8865 (fixup_psymbol_section): Remove.
8866 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8867 (lookup_global_symbol_from_objfile): Likewise.
8868 (lookup_symbol_aux_psymtabs): Remove.
8869 (lookup_symbol_aux_quick): New function.
8870 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8871 (lookup_partial_symbol): Remove.
8872 (basic_lookup_transparent_type_quick): New function.
8873 (basic_lookup_transparent_type): Use it.
8874 (find_main_psymtab): Remove.
8875 (find_main_filename): New function.
8876 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8877 (find_line_symtab): Use expand_symtabs_with_filename method.
8878 (output_partial_symbol_filename): New function.
8879 (sources_info): Use map_partial_symbol_filenames.
8880 (struct search_symbols_data): New type.
8881 (search_symbols_file_matches): New function.
8882 (search_symbols_name_matches): Likewise.
8883 (search_symbols): Use expand_symtabs_matching method.
8884 (struct add_name_data): Rename from add_macro_name_data.
8885 (add_macro_name): Update.
8886 (add_partial_symbol_name): New function.
8887 (default_make_symbol_completion_list): Use
8888 map_partial_symbol_names.
8889 (struct add_partial_symbol_name): New type.
8890 (maybe_add_partial_symtab_filename): New function.
8891 (make_source_files_completion_list): Use
8892 map_partial_symbol_filenames.
8893 (expand_line_sal): Use expand_symtabs_with_filename method.
8894 * symmisc.c: Include psymtab.h.
8895 (print_objfile_statistics): Use print_stats method.
8896 (dump_objfile): Use dump method.
8897 (dump_psymtab, maintenance_print_psymbols)
8898 (maintenance_info_psymtabs, maintenance_check_symtabs)
8899 (extend_psymbol_list): Remove.
8900 * symfile.h (struct quick_symbol_functions): New struct.
8901 (struct sym_fns) <qf>: New field.
8902 (sort_pst_symbols): Remove.
8903 (increment_reading_symtab): Declare.
8904 * symfile.c: Include psymtab.h.
8905 (compare_psymbols, sort_pst_symbols): Remove.
8906 (psymtab_to_symtab): Remove.
8907 (increment_reading_symtab): New function.
8908 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8910 (set_initial_language): Use find_main_filename.
8911 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8912 (free_named_symtabs): Remove unused code.
8913 (start_psymtab_common, add_psymbol_to_bcache)
8914 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8916 * stack.c: Include psymtab.h, symfile.h.
8917 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8918 * source.h (psymtab_to_fullname): Don't declare.
8919 * source.c: Include psymtab.h.
8920 (select_source_symtab): Use find_last_source_symtab method.
8921 (forget_cached_source_info): Use forget_cached_source_info
8923 (find_and_open_source): No longer static.
8924 (psymtab_to_fullname): Remove.
8925 * somread.c: Include psymtab.h.
8926 (som_sym_fns): Update.
8927 * psympriv.h: New file.
8928 * psymtab.h: New file.
8929 * psymtab.c: New file.
8930 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8931 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8932 * objfiles.c: Include psymtab.h.
8933 (objfile_relocate1): Use relocate method.
8934 (objfile_has_partial_symbols): Use has_symbols method.
8935 * mipsread.c: Include psymtab.h.
8936 (ecoff_sym_fns): Update.
8937 * mi/mi-cmd-file.c: Include psymtab.h.
8938 (print_partial_file_name): New function.
8939 (mi_cmd_file_list_exec_source_files): Use
8940 map_partial_symbol_filenames.
8941 * mdebugread.c: Include psympriv.h.
8942 * machoread.c: Include psympriv.h.
8943 (macho_sym_fns): Update.
8944 * m2-exp.y (yylex): Use lookup_symtab.
8945 * elfread.c: Include psympriv.h.
8946 (elf_sym_fns): Update.
8947 * dwarf2read.c: Include psympriv.h.
8948 * dbxread.c: Include psympriv.h.
8949 (aout_sym_fns): Update.
8950 * cp-support.c: Include psymtab.h.
8951 (read_in_psymtabs): Remove.
8952 (make_symbol_overload_list_qualified): Use
8953 expand_symtabs_for_function method.
8954 * coffread.c: Include psympriv.h.
8955 (coff_sym_fns): Update.
8956 * blockframe.c: Include psymtab.h.
8957 (find_pc_partial_function): Use find_pc_sect_symtab method.
8958 * ada-lang.h (ada_update_initial_language): Update.
8959 * ada-lang.c: Include psymtab.h.
8960 (ada_update_initial_language): Remove 'main_pst' argument.
8961 (ada_lookup_partial_symbol): Remove.
8962 (struct ada_psym_data): New type.
8963 (ada_add_psyms): New function.
8964 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8965 (struct add_partial_datum): New type.
8966 (ada_add_partial_symbol_completions): New function.
8967 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8968 (ada_exception_support_info_sniffer): Update.
8969 * Makefile.in (SFILES): Add psymtab.c.
8970 (COMMON_OBS): Add psymtab.o.
8971 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8973 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8975 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8977 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8980 * cp-namespace.c (cp_add_using): Deleted.
8981 (cp_add_using_directive): Use obstack allocations.
8982 Merged the function cp_add_using into this one.
8983 Added 'struct obstack *' argument.
8984 (cp_scan_for_anonymous_namespaces): Updated.
8985 * cp-support.h: Updated.
8986 * dwarf2read.c (read_import_statement): Updated.
8987 (read_namespace): Updated.
8989 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8991 * windows-nat.c (cygwin_conv_path): Remove old macro.
8993 2010-03-10 Pedro Alves <pedro@codesourcery.com>
8995 * breakpoint.c (condition_command): Handle watchpoint conditions.
8996 (is_hardware_watchpoint): Add comment.
8997 (is_watchpoint): New.
8998 (update_watchpoint): Don't reparse the watchpoint's condition
9001 (watchpoint_check): Use it.
9002 (bpstat_check_watchpoint): Handle it.
9003 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
9004 conditions in a frame where it makes sense.
9005 (watch_command_1): Store the innermost block of the condition
9007 (delete_breakpoint): Delete the watchpoint condition expression.
9008 * breakpoint.h (struct bp_location) <cond>: Update comment.
9009 (struct breakpoint): New field `cond_exp_valid_block'.
9011 2010-03-09 Joel Brobecker <brobecker@adacore.com>
9013 Adjust handling of Ada DIEs after dwarf2_physname patch.
9014 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
9016 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
9017 Pierre Muller <muller@ics.u-strasbg.fr>
9019 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
9020 from/to posix/win32.
9021 (windows_make_so): Use non-Cygwin 1.7 specific function.
9022 (windows_create_inferior): Make sure that cygallargs points to
9023 original args in non Cygwin 1.7. case.
9025 2010-03-09 Michael Snyder <msnyder@vmware.com>
9027 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
9028 after target_read_memory to get host byte order.
9029 (i386_process_record): Ditto.
9031 2010-03-09 Keith Seitz <keiths@redhat.com>
9033 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
9034 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
9035 print out const or volatile qualifiers, too.
9036 (c_type_print_args): Add parameters show_artificial and language.
9037 Skip artificial parameters when requested.
9038 Use the appropriate language printer.
9039 (c_type_print_varspec): Tell c_type_print_args to skip artificial
9040 parameters and pass language_c.
9041 * dwarf2read.c (die_list): New file global.
9042 (struct partial_die_info): Update comments for name field.
9043 (pdi_needs_namespace): Renamed to ...
9044 (die_needs_namespace): ... this. Rewrite.
9045 (dwarf2_linkage_name): Remove.
9046 (add_partial_symbol): Do not predicate the call to
9047 partial_die_full_name based on pdi_needs_namespace.
9048 Remove call to cp_check_possible_namespace_symbols and associated
9050 (guess_structure_name): Do not inspect child subprogram DIEs.
9051 (dwarf2_fullname): Update comments.
9052 Use die_needs_namespace to assist in computing the name.
9053 (read_func_scope): Use dwarf2_name to get the DIE's name.
9054 Use dwarf2_physname to get the "linkage name" of the DIE.
9055 (dwarf2_add_member_field): Use dwarf2_physname instead of
9056 dwarf2_linkage_name.
9057 (read_structure_type): For structs and classes, set TYPE_NAME, too.
9058 (determine_class): Remove.
9059 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
9061 (new_symbol): Unconditionally call dwarf2_name.
9062 Compute the "linkage name" using dwarf2_physname.
9063 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
9064 When determining to scan for anonymous C++ namespaces, ignore
9066 (dwarf2_physname): New function.
9067 (dwarf2_full_name): Move content to new function and call
9069 (dwarf2_compute_name): "New" function.
9070 (_initialize_dwarf2_read): Initialize die_list.
9071 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
9073 (gnu_v3_print_method_ptr): Use the physname for virtual methods
9074 without a demangled name.
9075 Print out type information for non-virtual methods.
9076 * linespec.c (decode_line_1): Force ANY string using "::" (or
9077 "." for java) to use decode_compound, and clean up any stray quoting.
9078 If we found a file symtab, re-evaluate whether the remainder is_quoted.
9079 (decode_compound): Stop consuming at an open parenthesis.
9080 Keep template parameters.
9081 Keep any overload information.
9082 Keep keywords like "const".
9083 Remove paren_pointer.
9084 Move is_quoted check from set_flags to here.
9085 Remove #if 0 code from 2000. Ten years is long enough.
9086 (find_method): Before comparing symbol names, canonicalize the string
9088 If a specific overload is requested, find it. Otherwise throw an error.
9089 (find_method_overload_end): New function.
9090 (set_flags): Remove.
9091 (decode_compound): Assume that parentheses are matched.
9093 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
9095 * linespec.c (decode_line_1): Keep important keywords like
9096 "const" and "volatile".
9097 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
9098 * typeprint.h (c_type_print_args): Add declaration.
9099 * ui-file.c (do_ui_file_obsavestring): New function.
9100 (ui_file_obsavestring): New function.
9101 * ui-file.h (ui_file_obsavestring): Add declaration.
9102 * valops.c (find_overload_match): Resolve the object to
9104 If the object is a data member, search the object for the member
9105 and return with staticp set.
9106 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
9107 Do not attempt to extract a function name from non-function types.
9108 If the extracted function name and the original name are the same,
9109 we don't have a C++ method.
9111 From Jan Kratochvil <jan.kratochvil@redhat.com>:
9112 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
9114 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
9115 and arguments from symbol lookups.
9116 * ax-gdb.c (gen_expr): Likewise.
9117 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
9118 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
9119 lookup_possible_namespace_symbol): Likewise.
9120 * cp-support.c (read_in_psymtabs): Likewise.
9121 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
9122 * language.h (la_lookup_symbol_nonlocal): Likewise.
9123 * scm-valprint.c (scm_inferior_print): Likewise.
9124 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
9125 * solib-svr.c (elf_lookup_lib): Likewise.
9126 * solib.c (show_auto_solib_add): Likewise.
9127 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
9128 * symmisc.c (maintenance_check_symtabs): Likewise.
9129 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
9130 lookup_symbol_aux_local, lookup_symbol_aux_block,
9131 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
9132 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
9133 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
9134 basic_lookup_transparent_type, find_main_psymtab,
9135 lookup_block_symbol): Likewise.
9136 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
9137 lookup_symbol_global, lookup_symbol_aux_block,
9138 lookup_symbol_partial_symbol, lookup_block_symbol,
9139 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
9141 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
9143 * python/python-internal.h: Include symtab.h.
9145 2010-03-09 Joel Brobecker <brobecker@adacore.com>
9146 Pierre Muller <muller@ics.u-strasbg.fr>
9148 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
9149 * p-valprint.c (pascal_val_print): Remove undeed block and fix
9152 2010-03-08 Tom Tromey <tromey@redhat.com>
9154 * breakpoint.c (breakpoint_1): Add "QUIT".
9156 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
9157 Pedro Alves <pedro@codesourcery.com>
9159 * solib.c (solib_find): Replace extension if
9160 solib_symbols_extension is set in the target gdbarch.
9161 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
9162 solib_symbols_extension to "sym".
9163 * gdbarch.sh (solib_symbols_extension): New variable.
9164 (pstring): New function.
9165 * gdbarch.h, gdbarch.c: Regenerate.
9167 2010-03-08 Tom Tromey <tromey@redhat.com>
9171 * utils.c: Include main.h.
9172 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
9173 (defaulted_query): Use default answer if `batch_flag'.
9174 * main.h (batch_flag): Declare.
9175 * main.c (batch_flag): New global.
9176 (captured_main): Remove 'batch'. Update.
9178 2010-03-08 Kevin Buettner <kevinb@redhat.com>
9180 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
9183 * remote-mips.c (rockhopper_ops): New target_ops struct.
9184 (MON_ROCKHOPPER): New mips_monitor_type.
9185 (read_hex_value): New function.
9186 (mips_request): Send 8-byte values with a 'T' packet. Read the
9187 packet argument as a string and use read_hex_value to parse it.
9188 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
9189 (rockhopper_open): New function.
9190 (mips_wait): Read the PC, FP and SP fields as strings. Use
9191 read_hex_value to parse them and mips_set_register to commit them.
9192 (mips_set_register): New function.
9193 (mips_fetch_registers): Do not cast register value to "unsigned"
9194 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
9195 (mips_store_registers): Use a 'T' packet to set registers when
9196 using MON_ROCKHOPPER.
9197 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
9198 and expect the total to be printed before the entry address.
9199 (_initialize_remote_mips): Initialize and add rockhopper_ops.
9201 2010-03-08 Kevin Buettner <kevinb@redhat.com>
9203 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
9204 Change return value to int. Store value fetched in location
9205 addressed by `val'. Use function's return value as success
9206 or failure indicator. Adjust all callers.
9208 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
9210 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
9212 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9213 Hui Zhu <teawater@gmail.com>
9215 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
9216 tmp_to_stopped_data_address.
9217 (record_open): Reset tmp_to_stopped_by_watchpoint and
9218 tmp_to_stopped_data_address.
9219 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
9220 to_stopped_data_address.
9222 2010-03-08 Hui Zhu <teawater@gmail.com>
9224 * i386-tdep.c (i386_process_record): Initialize regnum.
9226 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9228 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
9229 Do not warn on ".gnu.liblist" and ".gnu.conflict".
9231 2010-03-08 Joel Brobecker <brobecker@adacore.com>
9233 Memory error when reading wrong core file.
9234 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
9235 errors while reading the inferior memory, and return zero if
9236 an exception was raised.
9238 2010-03-07 Michael Snyder <msnyder@vmware.com>
9240 * record.c (record_restore): Rename tmpu8 to rectype.
9242 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
9243 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
9245 (i386_record_push): Rename local tmpulongest to addr.
9247 (i386_process_record): Rename local tmpulongest to addr.
9249 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
9252 Rename local variable tmpu8 to opcode8 and regnum.
9254 2010-03-07 Joel Brobecker <brobecker@adacore.com>
9256 * remote.c (remote_get_ada_task_ptid): New function.
9257 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
9259 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
9261 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
9262 block. Define helper macros to reduce ifdefs in code.
9263 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
9264 size. Call unadorned GetModuleFileNameEx rather than
9265 GetModuleFileNameEx*.
9266 (windows_make_so): Use __PMAX to denote maximum buffer size and
9267 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
9269 (get_image_name): Use __PMAX to denote maximum buffer size.
9270 (handle_load_dll): Likewise.
9271 (windows_pid_to_exec_file): Likewise.
9272 (windows_create_inferior): Add many accommodations for older Cygwin and
9274 (bad_GetModuleFileNameExW): Control inclusion of this function based on
9275 __USEWIDE conditional.
9276 (bad_GetModuleFileNameExA): Likewise.
9277 (_initialize_loadable): Just use real function names without the dyn_
9278 part since they are defined earlier.
9280 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
9281 Tom Tromey <tromey@redhat.com>
9283 * utils.c (host_char_to_target): Add 'gdbarch' argument.
9284 (parse_escape): Likewise.
9285 * python/py-utils.c (unicode_to_target_string): Update.
9286 (unicode_to_target_python_string): Update.
9287 (target_string_to_unicode): Update.
9288 * printcmd.c (printf_command): Update.
9289 * p-exp.y (yylex): Update.
9290 * objc-exp.y (yylex): Update.
9291 * mi/mi-parse.c: Include charset.h.
9292 (mi_parse_escape): New function.
9293 (mi_parse_argv): Use it.
9294 * jv-exp.y (yylex): Update.
9295 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
9297 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
9298 * gdbarch.sh (auto_charset, auto_wide_charset): New.
9299 * gdbarch.c: Rebuild.
9300 * gdbarch.h: Rebuild.
9301 * defs.h (parse_escape): Update.
9302 * cli/cli-setshow.c: Include arch-utils.h.
9303 (do_setshow_command): Update.
9304 * cli/cli-cmds.c (echo_command): Update.
9305 * charset.h (target_charset, target_wide_charset): Update.
9306 * charset.c: Include arch-utils.h.
9307 (target_charset_name): Default to "auto".
9308 (target_wide_charset_name): Likewise.
9309 (show_target_charset_name): Handle "auto".
9310 (show_target_wide_charset_name): Likewise.
9311 (be_le_arch): New global.
9312 (set_be_le_names): Add 'gdbarch' argument.
9313 (validate): Likewise. Don't call set_be_le_names.
9314 (set_charset_sfunc, set_host_charset_sfunc)
9315 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
9317 (target_charset): Add 'gdbarch' argument.
9318 (target_wide_charset): Likewise. Remove 'byte_order' argument.
9319 (auto_target_charset_name): New global.
9320 (default_auto_charset, default_auto_wide_charset): New functions.
9321 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
9322 for target charsets. Copy result of nl_langinfo. Use GetACP if
9324 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
9325 remove 'byte_order' argument. Update.
9326 (classify_type): Likewise.
9327 (c_emit_char): Update.
9328 (c_printchar): Update.
9329 (c_printstr): Update.
9330 (c_get_string): Update.
9331 (evaluate_subexp_c): Update.
9332 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
9334 * python/python.c (gdbpy_target_charset): New function.
9335 (gdbpy_target_wide_charset): Likewise.
9336 (GdbMethods): Update.
9339 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9341 * symfile.c (build_section_addr_info_from_objfile): Do not mask
9342 off high address bits.
9344 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9346 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
9347 address as UnsignedLongLong, not LongLong.
9349 2010-03-05 Kevin Buettner <kevinb@redhat.com>
9350 Pedro Alves <pedro@codesourcery.com>
9352 * remote-mips.c (gdbthread.h): Include.
9353 (remote_mips_ptid): Declare.
9354 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
9355 (common_open): Set inferior_ptid, add it as an inferior, and
9356 as a thread too. Delete FIXME comment regarding start_remote().
9357 (mips_close): Invoke generic_mourn_inferior().
9358 (mips_kill): Make sure that target_mourn_inferior is invoked.
9359 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
9360 it's now invoked from mips_close().
9361 (mips_load): Don't null out inferior_ptid. Don't call
9362 clear_symtab_users().
9363 (mips_thread_alive, mips_pid_to_str): New functions.
9364 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
9365 to_thread_alive and to_pid_to_str operations.
9367 2010-03-04 Tom Tromey <tromey@redhat.com>
9369 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
9370 in DWARF 3 and later.
9371 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
9373 2010-03-04 Keith Seitz <keiths@redhat.com>
9375 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
9376 If the filename portion of the linespec was quoted, recheck the
9377 remainder for additional quoting.
9378 (locate_first_half): Skip over completer chars, too.
9380 2010-03-04 Tom Tromey <tromey@redhat.com>
9382 * printcmd.c (printf_command): Pass dummy argument to
9385 2010-03-04 Doug Evans <dje@google.com>
9387 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
9390 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
9392 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9394 * breakpoint.c (update_watchpoint): Create a sentinel location if
9395 the software watchpoint isn't watching any memory.
9396 (breakpoint_address_bits): Skip dummy software watchpoint locations.
9398 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9400 * utils.c (fputs_maybe_filtered): Check if there's already a top
9401 level interpreter before dereferencing it. If there isn't one,
9402 don't paginate either.
9404 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9406 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
9407 the state right when single stepping.
9408 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
9409 Get the next PC along with the instruction state.
9410 (thumb_get_next_pc): Remove.
9411 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
9413 2010-03-04 Hui Zhu <teawater@gmail.com>
9415 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
9417 2010-03-03 Pedro Alves <pedro@codesourcery.com>
9419 * utils.c (fputs_maybe_filtered): Always disable pagination if the
9420 top level interpreter is MI.
9422 2010-03-03 Stan Shebs <stan@codesourcery.com>
9424 * remote.c (remote_download_tracepoint): Iterate over locations.
9425 * tracepoint.c (validate_actionline): Ditto.
9426 (encode_actions): Add location argument.
9427 (trace_dump_command): Check all locations to see if stepping
9430 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
9431 Eli Zaretskii <eliz@gnu.org>
9433 * NEWS: Add X86 general purpose registers section.
9435 2010-03-03 Tom Tromey <tromey@redhat.com>
9438 * varobj.c (install_new_value): Handle case where new print_value
9441 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
9444 * printcmd.c (printf_command): Print end of format string using
9447 2010-03-02 Tom Tromey <tromey@redhat.com>
9449 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
9450 * defs.h (read_command_lines_1): Add missing 'void'.
9451 * cli/cli-script.c (recurse_read_control_structure): Add missing
9453 (read_next_line): Likewise.
9454 (read_command_lines_1): Likewise.
9456 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9458 * spu-tdep.c (spu_analyze_prologue): Track instruction to
9459 store backchain as part of prologue.
9461 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
9463 * progspace.c (update_address_spaces): Update inferior address spaces
9466 2010-03-02 Doug Evans <dje@google.com>
9468 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
9469 lowpc,highpc args to addrmap_set_empty.
9471 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
9473 * amd64-tdep.c (amd64_byte_names): New.
9474 (amd64_word_names): Likewise.
9475 (amd64_dword_names): Likewise.
9476 (amd64_pseudo_register_name): Likewise.
9477 (amd64_pseudo_register_read): Likewise.
9478 (amd64_pseudo_register_write): Likewise.
9479 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
9480 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
9481 set_gdbarch_pseudo_register_write and
9482 set_tdesc_pseudo_register_name. Don't call
9483 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
9485 * i386-tdep.c (i386_num_mmx_regs): Removed.
9486 (i386_num_pseudo_regs): Likewise.
9487 (i386_byte_names): New.
9488 (i386_word_names): Likewise.
9489 (i386_byte_regnum_p): Likewise.
9490 (i386_word_regnum_p): Likewise.
9491 (i386_mmx_regnum_p): Updated.
9492 (i386_pseudo_register_name): Make it global. Handle byte and
9493 word pseudo-registers.
9494 (i386_pseudo_register_read): Likewise.
9495 (i386_pseudo_register_write): Likewise.
9496 (i386_pseudo_register_type): Handle byte, word and dword
9498 (i386_register_reggroup_p): Don't include pseudo
9499 registers, except for MXX, in any register groups. Don't
9500 include pseudo byte, word, dword registers in general_reggroup.
9501 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
9502 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
9503 pseudo-registers after word pseudo-registers. Call
9504 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
9506 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
9507 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
9509 (i386_byte_regnum_p): New.
9510 (i386_word_regnum_p): Likewise.
9511 (i386_dword_regnum_p): Likewise.
9512 (i386_pseudo_register_name): Likewise.
9513 (i386_pseudo_register_read): Likewise.
9514 (i386_pseudo_register_write): Likewise.
9516 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9518 * target-descriptions.c (tdesc_type): Remove
9519 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9520 (tdesc_predefined_types): Likewise.
9521 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
9522 if flag name is empty.
9523 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
9525 * features/i386/32bit-core.xml: Define i386_eflags.
9526 * features/i386/64bit-core.xml: Likewise.
9528 * features/i386/32bit-sse.xml: Define i386_mxcsr.
9529 * features/i386/64bit-sse.xml: Likewise.
9531 * features/i386/amd64-linux.c: Regenerated.
9532 * features/i386/amd64.c: Likewise.
9533 * features/i386/i386-linux.c: Likewise.
9534 * features/i386/i386.c: Likewise.
9536 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
9538 * gdbtypes.c (append_composite_type_field_raw): New.
9539 (append_composite_type_field_aligned): Use the new function.
9540 * gdbtypes.h (append_composite_type_field_raw): Declare.
9541 * target-descriptions.c (struct tdesc_type_field): Add start and end.
9542 (struct tdesc_type_flag): New type.
9543 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
9544 kind. Add size to u.u. Add u.f for flags.
9545 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
9546 (tdesc_free_type): Likewise.
9547 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
9548 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
9549 (tdesc_add_bitfield, tdesc_add_flag): New.
9550 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
9551 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
9552 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
9553 current_type. Add current_type_size and current_type_is_flags.
9554 (tdesc_start_union): Clear the new fields.
9555 (tdesc_start_struct, tdesc_start_flags): New.
9556 (tdesc_start_field): Handle struct fields, including bitfields.
9557 (field_attributes): Make type optional. Add start and end.
9558 (union_children): Rename to struct_union_children.
9559 (union_attributes): Rename to struct_union_attributes. Add optional
9561 (flags_attributes): New.
9562 (feature_children): Add struct and flags.
9563 * features/gdb-target.dtd: Add flags and struct to features.
9564 Make field type optional. Add field start and end.
9566 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9568 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
9569 (amd64_linux_read_description): Likewise.
9570 (_initialize_amd64_linux_nat): Set to_read_description to
9571 amd64_linux_read_description.
9573 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
9574 (amd64_linux_register_name): Removed.
9575 (amd64_linux_register_type): Likewise.
9576 (amd64_linux_core_read_description): New.
9577 (amd64_linux_init_abi): Set target description to
9578 tdesc_amd64_linux if needed. Support orig_rax in target
9579 description. Don't call set_gdbarch_register_name nor
9580 set_gdbarch_register_type. Call
9581 set_gdbarch_core_read_description.
9582 (_initialize_amd64_linux_tdep): Call
9583 initialize_tdesc_amd64_linux.
9585 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
9587 * amd64-tdep.c: Include "features/i386/amd64.c".
9588 (amd64_register_names): Removed.
9589 (amd64_register_name): Likewise.
9590 (amd64_register_type): Likewise.
9591 (amd64_init_abi): Set num_core_regs and register_names. Set
9592 target description to tdesc_amd64 if needed. Don't call
9593 set_gdbarch_register_name nor set_gdbarch_register_type.
9594 (_initialize_amd64_tdep): New.
9596 * i386-linux-nat.c (i386_linux_read_description): New.
9597 (_initialize_i386_linux_nat): Set to_read_description to
9598 i386_linux_read_description.
9600 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
9601 (i386_linux_register_name): Removed.
9602 (i386_linux_core_read_description): New.
9603 (i386_linux_read_description): Likewise.
9604 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
9605 Set target description to tdesc_i386_linux if needed. Support
9606 orig_eax. Set register_reggroup_p. Call
9607 set_gdbarch_core_read_description.
9608 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
9610 * i386-linux-tdep.h (tdesc_i386_linux): New.
9612 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
9615 * i386-tdep.c: Include "features/i386/i386.c".
9616 (i386_register_names): Make it const.
9617 (i386_mmx_names): Likewise.
9618 (i386_num_register_names): Removed.
9619 (i386_register_name): Likewise.
9620 (i386_eflags_type): Likewise.
9621 (i386_mxcsr_type): Likewise.
9622 (i386_sse_type): Likewise.
9623 (i386_register_type): Likewise.
9624 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9625 (i386_pseudo_register_name): New.
9626 (i386_pseudo_register_type): Likewise.
9627 (i386_mmx_type): Make it static.
9628 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
9629 I387_NUM_REGS. Set num_core_regs and register_names. Don't
9630 call set_gdbarch_register_name nor set_gdbarch_register_type.
9631 Set register_reggroup_p. Set target description to tdesc_i386
9632 if needed. Call set_tdesc_pseudo_register_type,
9633 set_tdesc_pseudo_register_name and tdesc_use_registers.
9634 (_initialize_i386_tdep): Call initialize_tdesc_i386.
9635 initialize_tdesc_x86_64.
9637 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9638 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
9639 register_names, tdesc and register_reggroup_p.
9640 (I386_NUM_FREGS): Removed.
9641 (i386_eflags_type): Likewise.
9642 (i386_mxcsr_type): Likewise.
9643 (i386_mmx_type): Likewise.
9644 (i386_sse_type): Likewise.
9645 (i386_register_name): Likewise.
9646 (i386_regnum): Add I386_MXCSR_REGNUM.
9647 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9649 * i387-tdep.h (I387_NUM_REGS): New.
9651 * regformats/i386/i386-linux.dat: Generated.
9652 * regformats/i386/i386.dat: Likewise.
9653 * regformats/i386/amd64-linux.dat: Likewise.
9654 * regformats/i386/amd64.dat: Likewise.
9656 * regformats/reg-i386-linux.dat: Removed.
9657 * regformats/reg-i386.dat: Likewise.
9658 * regformats/reg-x86-64-linux.dat: Likewise.
9659 * regformats/reg-x86-64.dat: Likewise.
9661 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
9663 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9664 cygwin_conv_path API rather than the deprecated
9665 cygwin_conv_to_full_posix_path.
9667 (GetModuleFileNameExA): Undefine for Cygwin.
9668 (GetModuleFileNameExW): Define for Cygwin.
9669 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9670 Call GetModuleFileNameExW and convert path to POSIX using
9672 (windows_make_so): Always define p. Drop unused variable m.
9673 Don't use Win32 functions to check file existance, rather use
9674 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
9675 Use canonicalize_file_name to get full path.
9676 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9677 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
9678 use correct target buffer size in call to WideCharToMultiByte.
9679 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9680 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9681 (windows_create_inferior): Convert all paths and arguments to wchar_t
9682 and use CreateProcessW on Cygwin.
9683 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9684 (bad_GetModuleFileNameExA): Undefine for Cygwin.
9685 (bad_GetModuleFileNameExW): Define for Cygwin.
9686 (_initialize_loadable): Load GetModuleFileNameExW into
9687 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
9689 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
9692 * python/py-frame.c (frapy_read_var): Add block argument and logic
9693 to cope with user provided blocks.
9695 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9697 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9700 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
9702 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9703 (COMMON_OBS): ... to here since it's used unconditionally.
9704 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9707 2010-02-26 David Daney <ddaney@caviumnetworks.com>
9709 * mips-linux-tdep.c: Update struct sigframe comments.
9710 (SIGFRAME_CODE_OFFSET): Delete macro.
9711 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9713 (mips_linux_n32n64_sigframe_init): Same.
9715 2010-02-26 Kevin Buettner <kevinb@redhat.com>
9717 * remote-mips.c (mips_load): Don't use pseudo-register when
9718 invalidating regcache.
9720 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9722 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9724 2010-02-26 Pedro Alves <pedro@codesourcery.com>
9726 * NEWS: Add "New targets" section, and mention ARM Symbian
9729 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
9731 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9732 add ADDR_SIZE member.
9733 (allocate_piece_closure): Update.
9734 (copy_pieced_value_closure): Likewise.
9735 (dwarf2_evaluate_loc_desc): Likewise.
9736 (read_pieced_value): Use DWARF address size instead of
9737 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9739 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
9740 Tom Tromey <tromey@redhat.com>
9742 * python/py-type.c (typy_lookup_typename): Add in block argument.
9743 If provided restrict lookup to specified blocks.
9744 (gdbpy_lookup_type): Likewise.
9745 (typy_lookup_type): Likewise.
9747 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9752 * arm-symbian-tdep.c: New.
9753 * configure.tgt (arm*-*-symbianelf*): New target.
9754 (*-*-symbianelf*): New OS.
9755 * osabi.c (gdb_osabi_names): Add Symbian.
9756 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9757 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9758 (ALLDEPFILES): Add arm-symbian-tdep.c.
9760 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9762 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9764 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9766 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9768 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
9769 Tom Tromey <tromey@redhat.com>
9770 Thiago Jung Bauermann <bauerman@br.ibm.com>
9772 * python/python.c (_initialize_python): Call
9773 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9774 gdbpy_initialize_blocks.
9775 * python/python-internal.h: Declare struct symbol, block and
9776 symtab_and_line. Declare block_object_type and
9778 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9779 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9780 (symbol_to_symbol_object, block_to_block_object)
9781 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9782 (gdbpy_initialize_blocks ): Declare.
9783 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9784 (frapy_select): Add methods.
9785 (frapy_read_var): Add symbol branch.
9786 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9788 (SUBDIR_PYTHON_SRCS): Likewise.
9789 (py-symbol.o): New rule.
9790 (py-symtab.o): Likewise.
9791 (py-block.o): Likewise.
9792 * python/py-symbol.c: New file.
9793 * python/py-symtab.c: Likewise.
9794 * python/py-block.c: Likewise.
9796 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9800 * inferior.h (prepare_for_detach): Declare.
9801 (struct inferior) <detaching>: New field.
9802 * infrun.c (prepare_for_detach): New.
9803 (handle_inferior_event) <random signal>: Don't stop if detaching.
9804 * target.c (target_detach): Call prepare_for_detach.
9806 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9808 Per-process displaced stepping queue.
9810 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9811 (displaced_step_gdbarch, displaced_step_closure,
9812 (displaced_step_original, displaced_step_copy): Move globals to
9814 (struct displaced_step_inferior_state): ... new structure.
9815 (displaced_step_inferior_states): New global.
9816 (get_displaced_stepping_state, add_displaced_stepping_state)
9817 (remove_displaced_stepping_state, infrun_inferior_exit): New
9819 (displaced_step_clear): Add displaced_step_inferior_state
9820 parameter, and adjust to handle it.
9821 (displaced_step_clear_cleanup): Parameter is now a
9822 displaced_step_inferior_state. Adjust.
9823 (displaced_step_prepare): Adjust.
9824 (displaced_step_fixup, displaced_step_fixup)
9825 (infrun_thread_ptid_changed, resume): Adjust.
9826 (init_wait_for_inferior): Don't call displaced_step_clear.
9827 (infrun_thread_stop_requested): Rewrite.
9828 (_initialize_infrun): Install infrun_inferior_exit as
9829 inferior_exit observer.
9831 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9833 * inferior.h (ptid_match): Declare.
9834 * infrun.c (ptid_match): New.
9835 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9836 (handle_notification): Add debug output.
9837 * linux-nat.c (ptid_match): Delete.
9839 2010-02-24 David S. Miller <davem@davemloft.net>
9841 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9842 * syscalls/sparc-linux.xml: New.
9843 * syscalls/sparc64-linux.xml: New.
9844 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9845 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9846 (sparc32_linux_get_syscall_number): New function.
9847 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9848 syscall number fetcher.
9849 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9850 (sparc64_linux_get_syscall_number): New function.
9851 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9852 syscall number fetcher.
9854 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9858 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9859 * inferior.c (add_inferior_silent): Notify inferior_added
9861 (delete_inferior_1): Notify inferior_removed observer.
9862 (exit_inferior_1): Pass inferior, not pid, to observer.
9863 (inferior_appeared): Likewise.
9864 (add_inferior_with_spaces): New.
9865 (add_inferior_command): Use the above.
9866 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9869 * inflow.c (inflow_inferior_exit): Likewise.
9870 * jit.c (jit_inferior_exit_hook): Likewise.
9872 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9874 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9875 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9876 (report_initial_inferior): New.
9877 (mi_inferior_removed): Register the above. Make sure
9878 inferior_added observer is called on the first inferior.
9879 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9880 inferior number, not pid.
9881 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9883 * mi/mi-main.c (current_context): New.
9884 (proceed_thread_callback): Use typed closure.
9885 Proceed everything if pid is 0. Most implementation split into
9886 (proceed_thread): ... this.
9887 (run_one_inferior): New.
9888 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9889 Adjust for multiexec behaviour.
9890 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9891 (mi_cmd_execute): Handle the 'thread-group' option here.
9892 Do some extra checks.
9893 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9895 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9897 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9899 Make -exec-run a proper MI commands.
9901 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9902 * mi/mi-cmds.c (mi_cmds): Adjust.
9903 * mi/mi-main.c (mi_cmd_exec_run): New.
9905 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9906 Stan Shebs <stan@codesourcery.com>
9908 * tracepoint.h (set_traceframe_number)
9909 (cleanup_restore_current_traceframe): Declare.
9910 * tracepoint.c (set_traceframe_number): New.
9911 (struct current_traceframe_cleanup): New.
9912 (do_restore_current_traceframe_cleanup)
9913 (restore_current_traceframe_cleanup_dtor)
9914 (make_cleanup_restore_current_traceframe): New.
9915 * infrun.c: Include tracepoint.h.
9916 (fetch_inferior_event): Switch out and in of tfind mode.
9918 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9920 * breakpoint.c (breakpoint_init_inferior): Also delete
9921 bp_shlib_event breakpoints.
9922 * solib-frv.c (enable_break): Remove call to
9923 remove_solib_event_breakpoints.
9924 * solib-svr4.c (enable_break): Ditto.
9925 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9926 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9927 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9928 * solib-spu.c (spu_enable_break): Ditto.
9930 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9932 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9934 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9936 * varobj.c (varobj_update): Avoid non-constants in initializers.
9938 2010-02-23 Tom Tromey <tromey@redhat.com>
9940 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9941 handle big-endian values.
9942 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9944 2010-02-22 Pedro Alves <pedro@codesourcery.com>
9949 * breakpoint.c (insert_bp_location): If inserting the read
9950 watchpoint failed, fallback to an access watchpoint.
9951 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9952 if the value changed, if not watching the same memory for writes.
9953 (watchpoint_locations_match): Add comment.
9954 (update_global_location_list): Copy the location's watchpoint type.
9955 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9956 handle read watchpoints here.
9957 (i386_insert_watchpoint): Read watchpoints aren't supported.
9958 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9960 * target.h (target_insert_watchpoint): Update description.
9962 2010-02-19 Tom Tromey <tromey@redhat.com>
9964 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9965 * m2-typeprint.c (m2_print_type): Update.
9966 * gdbtypes.c (recursive_dump_type): Update.
9967 (copy_type_recursive): Update.
9968 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9969 (c_type_print_base): Update.
9970 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9972 (struct cplus_struct_type) <ntemplate_args>: Remove.
9973 <struct template_arg>: Remove.
9974 <is_dynamic>: Move earlier.
9975 (TYPE_TEMPLATE_ARGS): Remove.
9976 (TYPE_NTEMPLATE_ARGS): Remove.
9977 (TYPE_TEMPLATE_ARG): Remove.
9979 2010-02-19 Tom Tromey <tromey@redhat.com>
9981 PR c++/8693, PR c++/9496:
9982 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9983 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9984 write_dollar_variable. Don't try to classify NAME tokens.
9985 (token_and_value): New type.
9986 (token_fifo, popping, name_obstack): New globals.
9987 (classify_name): New function.
9988 (classify_inner_name): Likewise.
9990 (VARIABLE): Now has type sval.
9991 (exp : VARIABLE): Call write_dollar_variable.
9992 (qualified_name): Use TYPENAME, not typebase. Add production for
9993 multiple "::" instances.
9994 (variable): Use name_not_typename.
9995 (qualified_type): Remove.
9998 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10000 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
10001 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
10002 found by bfd_get_section_by_name.
10003 * symfile.h (struct section_addr_info) <sectindex>: New comment.
10005 2010-02-19 Joel Brobecker <brobecker@adacore.com>
10007 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
10008 7.0 section" into "Changes in 7.1".
10010 2010-02-19 Joel Brobecker <brobecker@adacore.com>
10012 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
10013 * version.in: Bump version to 7.1.50.20100219-cvs.
10015 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
10017 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
10018 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
10020 2010-02-17 Tom Tromey <tromey@redhat.com>
10022 * NEWS: Add Python API Improvements section.
10024 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
10026 * NEWS: Correct typo.
10028 2010-02-17 Tom Tromey <tromey@redhat.com>
10030 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
10032 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10034 * symfile.c (build_section_addr_info_from_objfile): Include sections
10035 only if they are SEC_ALLOC or SEC_LOAD.
10037 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
10040 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
10041 of ULONGEST for address size.
10043 2010-02-17 Tom Tromey <tromey@redhat.com>
10045 * NEWS: Add C++ improvements section.
10047 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
10049 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
10050 PyThreadState_Swap): Avoid "statement with no effect" warning.
10052 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10054 * solib-svr4.c (enable_break <target_auxv_search>): New variable
10055 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
10057 2010-02-17 Tristan Gingold <gingold@adacore.com>
10058 Petr Hluzin <petr.hluzin@gmail.com>
10060 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
10061 gdb_assert. Fix info->size for SIG prologue.
10063 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10065 * infcmd.c (show_inferior_tty_command): Check for NULL.
10066 Correct output message.
10068 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10070 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
10071 FUNCTION contains parentheses. Improve removal of a trailing
10074 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10076 * gcore.c (do_bfd_delete_cleanup): New function.
10077 (gcore_command): Use it. Discard the cleanup after success.
10078 (gcore_copy_callback): Delete dead code.
10080 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10082 * symfile.c (addr_info_make_relative): Always use
10083 find_lowest_section.
10085 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
10087 * NEWS: Added entry for namespace fixes.
10089 2010-02-15 Tom Tromey <tromey@redhat.com>
10091 * dwarf2read.c (guess_structure_name): Allocate name on the
10094 2010-02-15 Tom Tromey <tromey@redhat.com>
10096 * c-typeprint.c (c_type_print_base): Reverse order of test.
10098 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10100 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
10101 initialize it from ELF BFD. Extend the prelink condition by it.
10103 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10105 * defs.h (parse_pid_to_attach): New.
10106 * utils.c (parse_pid_to_attach): New.
10107 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
10108 * gnu-nat.c (gnu_attach): Likewise.
10109 * nto-procfs.c (procfs_attach): Likewise.
10110 * procfs.c (procfs_attach): Likewise.
10111 * windows-nat.c (windows_attach): Likewise.
10112 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
10113 * inf-ttrace.c (inf_ttrace_attach): Likewise.
10114 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
10117 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
10119 * MAINTAINERS: Add myself for write after approval privileges.
10121 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10123 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
10126 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10128 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
10129 only if INFO_VERBOSE.
10131 2010-02-12 Tomas Holmberg <th@virtutech.com>
10133 * mi/mi-main.c: Added the --reverse flag to the following MI
10134 commands: exec-continue, exec-finish, exec-next, exec-step,
10135 exec-next-instruction, exec-step-instruction. This is to
10136 support reverse execution over the MI interface to gdb.
10138 2010-02-12 Pedro Alves <pedro@codesourcery.com>
10140 * tracepoint.c (_initialize_tracepoint): Specify that the address
10141 range of `tfind outsize' is exclusive, and that the address range
10142 of `tfind range' is inclusive, in the commands' help strings.
10144 2010-02-12 Joel Brobecker <brobecker@adacore.com>
10146 Spurious "dll not found" error messages on x64-windows.
10147 * windows-nat.c: Add include of complaints.h.
10148 (handle_unload_dll): Change dll-not-found error into a complaint.
10150 2010-02-12 Pedro Alves <pedro@codesourcery.com>
10152 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
10153 bp_tracepoint and bp_fast_tracepoint, not
10154 bp_loc_software_breakpoint.
10155 (update_global_location_list): Tracepoints are never duplicates of
10158 2010-02-12 Pedro Alves <pedro@codesourcery.com>
10160 * breakpoint.c (break_command_really): Change return type to int.
10161 Return false if no breakpoint was created, true otherwise.
10162 (trace_command): Don't set the tracepoint count if no tracepoint
10164 (ftrace_command): Ditto.
10165 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
10166 created in the breakpoints table.
10168 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10169 Ulrich Weigand <uweigand@de.ibm.com>
10171 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
10173 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10175 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
10176 the offset value isn't of integral type.
10178 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10180 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
10183 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10185 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
10186 non-subscriptable types.
10187 * valarith.c (binop_types_user_defined_p): New, abstracted out
10189 (binop_user_defined_p): ... this.
10190 * value.h (binop_types_user_defined_p): Declare.
10192 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10194 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
10195 Merge uploaded TSVs before merging uploaded tracepoints.
10197 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10199 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
10201 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
10203 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
10204 whitespace character after a dot in comment.
10205 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
10207 (list_args_or_locals): For the 'all' (that is
10208 -stack-list-variables) case, always output list of tuples.
10209 Output 'arg' field if variable is argument.
10211 2010-02-10 Tom Tromey <tromey@redhat.com>
10213 * parser-defs.h (parser_debug): Declare.
10214 * parse.c (_initialize_parse): Install "debug parser" set/show
10216 (parser_debug): New global.
10217 (show_parserdebug): New function.
10218 * c-exp.y (c_parse): Set yydebug.
10220 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
10222 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
10223 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10224 (tdesc_predefined_types): Add i387_ext, i386_eflags and
10226 (tdesc_find_type): New.
10227 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
10228 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10230 * target-descriptions.h (tdesc_find_type): New.
10232 2010-02-10 Michael Snyder <msnyder@vmware.com>
10234 * gdb-gdb.py: Comment fix.
10236 2010-02-09 Tristan Gingold <gingold@adacore.com>
10238 * machoread.c (macho_symfile_relocate): New function.
10239 (macho_sym_fns): Use macho_symfile_relocate instead of
10240 default_symfile_relocate.
10241 (macho_oso_data): New type.
10242 (current_oso): New variable.
10243 (macho_add_oso_symfile): Do not compute section_addr_info, but
10244 instead set vma of sections.
10245 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
10246 Set and clear current_oso.
10248 2010-02-09 Joel Brobecker <brobecker@adacore.com>
10250 Wrong type description for tagged type parameter.
10251 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
10252 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
10253 reference to a tagged type.
10255 2010-02-09 Tristan Gingold <gingold@adacore.com>
10257 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
10258 brothers of the parent.
10260 2010-02-08 Tom Tromey <tromey@redhat.com>
10264 * valops.c (search_struct_field): Make 'name' const.
10265 (search_struct_method): Likewise.
10266 (find_method_list): Make 'method' const.
10267 (value_struct_elt): Make 'name' and 'err' const.
10268 (value_find_oload_method_list): Make 'method' const.
10269 (find_overload_match): Make 'name' const.
10270 * eval.c (evaluate_subexp_standard): New locals function,
10272 <OP_FUNCALL>: Handle OP_SCOPE specially.
10274 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10276 * infrun.c (handle_inferior_event): Do not look up regcache
10277 for exited processes.
10279 2010-02-08 Chris Moller <moller@mollerware.com>
10282 * valarith.c (value_ptrdiff): Added a test for a zero type length,
10283 warn if found, and assume length = 1.
10285 2010-02-08 Chris Moller <cmoller@redhat.com>
10288 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
10289 (cp_print_static_field) Fix use of obstacks.
10291 2010-02-08 Pedro Alves <pedro@codesourcery.com>
10293 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
10294 resumed LWPs as resumed.
10295 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
10296 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
10297 of throwing an internal error. If an LWP of a process we're not
10298 waiting for reports a signal, don't force collecting a SIGSTOP,
10299 and if it was breakpoint hit in non-stop mode, cancel it. Don't
10300 go through all LWPs cancelling breakpoints in non-stop mode.
10301 (resume_stopped_resumed_lwps): New.
10302 (linux_nat_wait): Use it.
10304 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
10306 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
10307 i386/amd64 and i386/amd64-linux.
10308 (i386/i386-expedite): New.
10309 (i386/i386-linux-expedite): Likewise.
10310 (i386/amd64-expedite):Likewise.
10311 (i386/amd64-linux-expedite): Likewise.
10312 ($(outdir)/i386/i386-linux.dat): Likewise.
10313 ($(outdir)/i386/amd64.dat): Likewise.
10314 ($(outdir)/i386/amd64-linux.dat): Likewise.
10316 * features/i386/32bit-core.xml: New.
10317 * features/i386/32bit-linux.xml: Likewise.
10318 * features/i386/32bit-sse.xml: Likewise.
10319 * features/i386/64bit-core.xml: Likewise.
10320 * features/i386/64bit-linux.xml: Likewise.
10321 * features/i386/64bit-sse.xml: Likewise.
10322 * features/i386/i386-linux.xml: Likewise.
10323 * features/i386/i386.xml: Likewise.
10324 * features/i386/amd64-linux.xml: Likewise.
10325 * features/i386/amd64.xml: Likewise.
10326 * features/i386/i386-linux.c: Likewise.
10327 * features/i386/i386.c: Likewise.
10328 * features/i386/amd64-linux.c: Likewise.
10329 * features/i386/amd64.c: Likewise.
10331 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
10334 * cp-support.h: Added char* alias element to using_direct data
10336 (cp_add_using): Added char* alias argument.
10337 (cp_add_using_directive): Ditto.
10338 * cp-namespace.c: Updated with the above changes.
10339 (cp_lookup_symbol_imports): Check for aliases.
10340 * dwarf2read.c (read_import_statement): Figure out local alias
10341 for the import and pass it on to cp_add_using.
10342 (read_namespace): Pass alias argument to cp_add_using.
10344 2010-02-05 Hui Zhu <teawater@gmail.com>
10346 * defs.h (gdb_bfd_errmsg): New extern.
10347 * exec.c (exec_file_attach): Change bfd_errmsg to
10349 * utils.c (AMBIGUOUS_MESS1): New macro.
10350 (AMBIGUOUS_MESS2): New macro.
10351 (gdb_bfd_errmsg): New function.
10353 2010-02-04 Doug Evans <dje@google.com>
10355 * solib-svr4.c (enable_break): Add comment.
10357 2010-02-04 Anthony Green <green@moxielogic.com>
10359 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
10362 2010-02-04 Tom Tromey <tromey@redhat.com>
10364 * valops.c (search_struct_field): Account for
10365 value_embedded_offset. Fix check for virtual base past the end of
10366 the object. Use value_copy when making a slice of the value.
10368 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10371 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
10372 only if gdb_stdout is a tty.
10374 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10376 * target-descriptions.c: Include "osabi.h".
10377 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
10380 2010-02-04 Tristan Gingold <gingold@adacore.com>
10382 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
10383 (macho_symtab_read): Adjust calls to macho_add_oso.
10384 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
10385 (macho_symfile_read): Adjust call to macho_oso_symfile.
10386 (macho_new_init): Move this function after declarations.
10387 (macho_symfile_init): Ditto.
10388 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
10389 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
10391 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
10393 Include MI command in remotelog.
10395 * mi/mi-main.c (mi_execute_command): Call target_log_command.
10397 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10399 * remote.c (remote_state): Remove gdbarch.
10400 (init_remote_state): Don't set gdbarch.
10401 (remote_query_supported): Pass target_gdbarch instead of
10402 rs->gdbarch to gdbarch_qsupported.
10404 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10406 * gdbarch.sh: Add qsupported.
10408 * gdbarch.c: Regenerated.
10409 * gdbarch.h: Likewise.
10411 * remote.c (remote_state): Add gdbarch.
10412 (init_remote_state): Set gdbarch.
10413 (remote_query_supported): Support gdbarch_qsupported.
10415 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
10417 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
10418 __FreeBSD_kernel_version.
10420 2010-02-03 Tristan Gingold <gingold@adacore.com>
10422 * symfile.h (struct sym_fns): Add sym_relocate field.
10423 (default_symfile_relocate): New prototype.
10424 (symfile_relocate_debug_section): First argument is now an objfile.
10425 * symfile.c (default_symfile_relocate): Rename from
10426 symfile_relocate_debug_section, first argument is now an objfile.
10427 (symfile_relocate_debug_section): New function.
10428 * coffread.c (coff_sym_fns): Set sym_relocate field.
10429 * somread.c (som_sym_fns): Ditto.
10430 * mipsread.c (ecoff_sym_fns): Ditto.
10431 * machoread.c (macho_sym_fns): Ditto.
10432 * elfread.c (elf_sym_fns): Ditto.
10433 * dwarf2read.c (dwarf2_read_section): Ditto.
10434 * xcoffread.c (xcoff_sym_fns): Ditto.
10435 * dbxread.c (aout_sym_fns): Ditto.
10436 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
10437 (elfstab_build_psymtabs): Ditto.
10439 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10441 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
10443 2010-02-02 Tom Tromey <tromey@redhat.com>
10445 * valops.c (value_cast_structs): Try downcasting using the RTTI
10448 2010-02-02 Tom Tromey <tromey@redhat.com>
10450 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
10451 (gnuv2_baseclass_offset): Now static.
10452 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
10453 * gnu-v2-abi.h: Remove.
10455 2010-02-02 Tom Tromey <tromey@redhat.com>
10457 * m2-typeprint.c (m2_record_fields): Don't use
10458 TYPE_DECLARED_TYPE.
10459 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
10460 (struct main_type) <flag_declared_class>: New field.
10461 (struct cplus_struct_type) <declared_type>: Remove.
10462 <ntemplate_args>: Move earlier.
10463 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
10464 (DECLARED_TYPE_TEMPLATE): Remove.
10465 (TYPE_DECLARED_TYPE): Remove.
10466 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
10467 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
10468 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
10469 TYPE_DECLARED_TYPE.
10471 2010-02-02 Tom Tromey <tromey@redhat.com>
10473 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
10474 * valops.c (search_struct_field): Compute nbases after calling
10476 (check_field): Call CHECK_TYPEDEF.
10477 * cp-valprint.c (cp_print_value): Pass correct address to
10478 baseclass_offset. Fix check for virtual base past the end of the
10479 object. Don't offset address passed to cp_print_value_fields or
10480 apply_val_pretty_printer.
10481 (cp_print_value_fields): Fix call to val_print.
10482 (cp_print_value_fields_rtti): New function.
10483 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
10484 * p-valprint.c (pascal_object_print_value_fields): Fix call to
10486 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
10488 * language.h (struct language_defn) <la_val_print>: Document.
10489 * c-lang.h (cp_print_value_fields_rtti): Declare.
10491 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10494 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10495 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
10496 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10498 2010-02-01 Michael Matz <matz@suse.de>
10499 Daniel Jacobowitz <dan@codesourcery.com>
10501 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
10502 functions use a frame pointer.
10504 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10506 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
10507 by a conditional setting DYN_ADDR. Use DYN_ADDR.
10508 * config/djgpp/fnchange.lst: Add translations for
10509 symbol-without-target_section.exp and symbol-without-target_section.c.
10511 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10513 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
10514 (remote_breakpoint_for_pc): Correct invalid_p check.
10515 * gdbarch.c: Regenerated.
10517 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10519 * arm-tdep.c (arm_find_mapping_symbol): New function, from
10521 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
10522 (extend_buffer_earlier): New function.
10523 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
10524 (arm_adjust_breakpoint_address): New function.
10525 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
10527 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10529 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
10530 (arm_linux_thumb2_le_breakpoint): New constants.
10531 (arm_linux_init_abi): Set thumb2_breakpoint and
10532 thumb2_breakpoint_size.
10533 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
10534 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
10535 Implement support for single stepping through IT blocks if
10536 a 32-bit Thumb breakpoint instruction is available.
10537 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
10538 is available, use it when needed.
10539 (arm_remote_breakpoint_from_pc): New function.
10540 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
10541 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
10542 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
10544 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10546 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
10547 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
10548 * gdbarch.c, gdbarch.h: Regenerated.
10549 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
10550 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
10551 gdbarch_remote_breakpoint_from_pc.
10553 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10555 * infrun.c (prepare_to_proceed): Handle other signals which might
10556 match a breakpoint.
10557 (handle_inferior_event): Move the check for unusual breakpoint
10560 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
10562 amd64 - function returning record with field straddling 2 registers.
10563 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
10564 a record of length <= 16 in which a field straddles the two
10567 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10569 Implement return values on amd64-windows.
10570 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
10571 (amd64_windows_return_value): New function.
10572 (amd64_windows_init_abi): Call set_gdbarch_return_value with
10573 amd64_windows_return_value.
10575 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10577 amd64-windows: 32 bytes allocated on stack by caller for integer
10578 parameter registers.
10579 * i386-tdep.h (struct gdbarch_tdep): Add new field
10580 integer_param_regs_saved_in_caller_frame.
10581 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10582 tdep->integer_param_regs_saved_in_caller_frame to 1.
10583 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
10584 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
10586 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10588 amd64-windows: memory args passed by pointer during function calls.
10589 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
10590 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
10591 where tdep->memory_args_by_pointer is non-zero.
10592 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10593 tdep->memory_args_by_pointer to 1.
10595 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10597 amd64-windows: Integer parameters in function calls.
10598 * i386-tdep.h (enum amd64_reg_class): New, moved here from
10600 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
10601 call_dummy_integer_regs, and classify.
10602 * amd64-tdep.h (amd64_classify): Add declaration.
10603 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
10604 (amd64_reg_class): Delete, moved to i386-tdep.h.
10605 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
10606 Replace call to amd64_classify by call to tdep->classify.
10607 (amd64_push_arguments): Get the list of registers to use for
10608 passing integer parameters from the gdbarch tdep structure,
10609 rather than using a hardcoded one. Replace calls to amd64_classify
10610 by calls to tdep->classify.
10611 (amd64_push_dummy_call): Get the register number used for
10612 the "hidden" argument from tdep->call_dummy_integer_regs.
10613 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
10614 and tdep->call_dummy_integer_regs. Set tdep->classify.
10615 * amd64-windows-tdep.c: Add include of gdbtypes.h.
10616 (amd64_windows_dummy_call_integer_regs): New static global.
10617 (amd64_windows_classify): New function.
10618 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
10619 tdep->call_dummy_integer_regs and tdep->classify.
10621 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10623 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
10624 for the new regcache. All callers updated.
10625 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10626 (get_thread_arch_regcache): Do not set aspace here.
10627 * regcache.h (regcache_xmalloc): Update declaration.
10629 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10630 regcache_xmalloc updated.
10632 2010-01-28 Joel Brobecker <brobecker@adacore.com>
10634 Another -Wunused-function error in procfs.c (sparc-solaris)
10635 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
10636 Only define if SYS_syssgi is defined.
10637 (remove_dbx_link_breakpoint): Delete declaration. Move up.
10638 (dbx_link_addr, insert_dbx_link_bpt_in_file)
10639 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
10642 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
10644 * windows-nat.c (windows_initialization_done): New variable.
10645 (get_windows_debug_event): Issue error when process dies before
10646 completely initializing.
10647 (do_initial_windows_stuff): Set flag to indicate when we are done with
10648 the initial steps of attaching to the child.
10650 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10652 * symtab.h (struct symbol <symtab>): New comment on NULL values.
10654 2010-01-27 Doug Evans <dje@google.com>
10656 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10658 * breakpoint.c (bpstat_stop_status): Delete useless code.
10660 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10662 * printcmd.c (display_uses_solib_p): Remove variable section. Access
10663 objfile via SYMBOL_SYMTAB.
10665 2010-01-26 Tom Tromey <tromey@redhat.com>
10668 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10669 coerce_array on result.
10671 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10673 * cp-namespace.c (cp_lookup_symbol_namespace): Added
10674 search_parent argument.
10675 (cp_add_using): Initialize 'searched' field.
10676 (reset_directive_searched): New function.
10677 * cp-support.h: Add 'searched' field to using_direct struct.
10678 (cp_lookup_symbol_imports): Ditto.
10679 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10680 Perform recursive search.
10681 Implement non parent search.
10682 * valops.c (value_maybe_namespace_elt): Updated.
10684 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10687 * dwarf2read.c (read_lexical_block_scope): Create blocks for
10688 scopes which contain using directives even if they contain no
10690 * symtab.c (lookup_symbol_aux): Pass lowest level block to
10691 la_lookup_symbol_nonlocal.
10692 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10693 cp_lookup_symbol_namespace.
10694 (cp_lookup_symbol_namespace): Perform an import lookup at every
10696 (cp_lookup_symbol_imports): New function.
10697 (cp_lookup_symbol_in_namespace): New function.
10699 2010-01-25 Tom Tromey <tromey@redhat.com>
10702 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10705 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10707 * configure.ac: Only use host_os part when disabling TUI on osf.
10708 Use test to check variables, prefix strings with x.
10709 * configure: Regenerate.
10711 * solib-osf.c (osf_current_sos): Initialize tail.
10713 2010-01-25 gingold <gingold@adacore.com>
10715 * windows-nat.c (windows_continue): Use %x to print thread id.
10716 (get_windows_debug_event): Ditto.
10718 2010-01-22 Tom Tromey <tromey@redhat.com>
10721 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10722 type and arguments. Use smash_to_methodptr_type.
10723 (read_structure_type): Call quirk_gcc_member_function_pointer
10725 * gdbtypes.h (smash_to_methodptr_type): Declare.
10726 * gdbtypes.c (smash_to_methodptr_type): New function.
10727 (lookup_methodptr_type): Use it.
10729 2010-01-21 Tom Tromey <tromey@redhat.com>
10732 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10733 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10734 * glibc-tdep.c (find_minsym_and_objfile): Remove.
10735 (glibc_skip_solib_resolver): Use
10736 lookup_minimal_symbol_and_objfile.
10738 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
10740 * inflow.c (check_syscall): Guard by #if clause for GO32 and
10743 2010-01-20 Tom Tromey <tromey@redhat.com>
10745 PR backtrace/10770:
10746 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10747 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
10748 * dwarf2expr.c (new_dwarf_expr_context): Allocate
10749 dwarf_stack_values, not CORE_ADDRs.
10750 (execute_stack_op): Change DW_OP_div and comparison operators to
10751 use signed operands.
10753 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10755 Per-inferior args and tty and environment.
10757 * infcmd.c (inferior_args): Rename to ...
10758 (inferior_args_scratch): ... this.
10759 (inferior_io_terminal): Rename to ...
10760 (inferior_io_terminal_scratch): ... this.
10761 (inferior_argc, inferior_argv): Remove.
10762 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10763 inside current_inferior().
10764 (set_inferior_tty_command, show_inferior_tty_command): New.
10765 (get_inferior_args, set_inferior_args): Store inside
10766 current_inferior().
10767 (notice_args_set): Likewise and rename to...
10768 (set_args_command): ... this.
10769 (set_inferior_args_vector): Likewise.
10770 (notice_args_read): Rename to...
10771 (show_args_command): ...new.
10772 (tty_command): Remove.
10773 (run_command_1): Don't free old args, as they are freed by
10774 set_inferior_arg now.
10775 (run_no_args_command): Likewise.
10776 (inferior_environ): Remove.
10777 (run_command_1): Use environment of the current inferior.
10778 (environment_info, set_environment_command)
10779 (unset_environment_command, path_info, path_command): Likewise.
10780 (_initialize_infcmd): Adjust for function and variable renames.
10781 Do not init inferior_environ.
10782 * inferior.h (set_inferior_arg): Adjust prototype.
10783 (struct inferior): New fields args, argc, argv, terminal, environment.
10784 (inferior_environ): Remove declaration.
10785 * inferior.c (free_inferior): Free new fields.
10786 (add_inferior_silent): Initialize 'environment' field.
10787 * main.c (captured_main): Set arguments only after the initial
10788 inferior has been created. Set set_inferior_io_terminal,
10790 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10792 (_initialize_mi_cmd_env): Adjust for disappearance of global
10794 * solib.c (solib_find): Use environment of the current inferior.
10796 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10798 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10800 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10802 2010-01-20 Joel Brobecker <brobecker@adacore.com>
10804 Get rid of ada-lang.c:function_name_from_pc.
10805 * ada-lang.c: Add "stack.h" #include.
10806 (function_name_from_pc): Delete.
10807 (is_known_support_routine): Replace call to function_name_from_pc
10808 by call to find_frame_funname.
10809 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10811 2010-01-19 Tom Tromey <tromey@redhat.com>
10814 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10817 2010-01-19 Tom Tromey <tromey@redhat.com>
10819 * top.c (stop_sig, float_handler, do_nothing): Remove.
10821 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10823 * breakpoint.c (watchpoint_check): Check the call
10824 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10825 Extend the comment.
10826 * config/djgpp/fnchange.lst: Add translations for
10827 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10828 watchpoint-cond-gone-stripped.c.
10830 2010-01-19 Tom Tromey <tromey@redhat.com>
10833 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10834 into parent scope, and enumerator into grandparent scope.
10836 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10838 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10840 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10842 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10843 i[34567]86-*-solaris2.1[0-9]*.
10844 * configure.tgt: Likewise.
10846 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10848 * NEWS: Document the source command enhancement allowing it
10849 to load Python scripts. Document the "set/show script-extension"
10852 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10854 Add -Wunused-function to compile flags.
10855 * configure.ac: Add -Wunused-function to build_warnings.
10856 * configure: Regenerate.
10858 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10860 "delete" ada-lex.c:input function, not used.
10861 * ada-lex.l: #define YY_NO_INPUT.
10863 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10865 Delete free_named_symtabs and associated cleanup.
10866 * symfile.h (free_named_symtabs): Delete declaration.
10867 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10868 (cashier_psymtab): Comment function out.
10869 Delete declaration.
10870 (free_named_symtabs): Delete.
10871 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10872 * dbxread.c (end_psymtab): Likewise.
10873 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10874 * exec.c (exec_close_1): Ditto.
10875 * xcoffread.c (xcoff_end_psymtab): Likewise.
10877 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10879 * stack.c (print_block_frame_labels): Comment function out.
10881 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10883 Delete unused or undefined functions.
10884 * breakpoint.c (ep_parse_optional_filename): Delete.
10885 * dcache.c (dcache_write_line): Remove declaration.
10886 * infrun.c (build_infrun): Remove declaration.
10887 * tracepoint.c (tracepoint_save_command): Remove declaration.
10888 * linux-nat.c (init_lwp_list): Delete. No longer used.
10889 * event-loop.c (check_async_signal_handlers): Delete declaration.
10890 * infrun.c (init_execution_control_state): Delete.
10891 (proceed): Update comment to avoid mentioning
10892 init_execution_control_state.
10893 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10894 * ada-lang.c (ada_to_static_fixed_value): Delete.
10895 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10896 * cp-namespace.c (cp_copy_usings): Delete.
10897 * xml-syscall.c (xml_number_of_syscalls): Delete.
10898 * progspace.c (find_program_space_by_num): Delete.
10899 * inflow.c (handle_sigio): Delete declaration.
10900 * hppa-tdep.c (hppa_alignof): Delete.
10901 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10902 (mipsnbsd_core_osabi_sniffer): Delete.
10904 2010-01-18 Tom Tromey <tromey@redhat.com>
10907 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10908 (CONST_CAST): New tokens.
10909 (exp): Add new productions.
10910 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10912 (is_cast_operator): New function.
10913 (yylex): Handle cast operators specially.
10914 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10915 UNOP_REINTERPRET_CAST>: New cases.
10916 * expprint.c (print_subexp_standard): Likewise.
10917 (op_name_standard): Likewise.
10918 (dump_subexp_body_standard): Likewise.
10919 * parse.c (operator_length_standard): Likewise.
10920 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10921 UNOP_REINTERPRET_CAST.
10922 * gdbtypes.c (class_types_same_p): New function.
10923 (is_ancestor): Use it.
10924 (is_public_ancestor): New function.
10925 (is_unique_ancestor_worker): Likewise.
10926 (is_unique_ancestor): Likewise.
10927 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10928 (is_unique_ancestor): Declare.
10929 * valops.c (value_reinterpret_cast): New function.
10930 (dynamic_cast_check_1): Likewise.
10931 (dynamic_cast_check_2): Likewise.
10932 (value_dynamic_cast): Likewise.
10933 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10935 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10937 Fix build failure when building without Python support.
10938 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10941 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10943 Use XVS field type instead of doing a parallel lookup.
10944 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10945 if it is a reference type instead of doing a type lookup using
10946 the XVS field name.
10948 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10950 Trust PAD types instead of using PAD___XVS.
10951 * ada-lang.c (trust_pad_over_xvs): New static variable.
10952 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10953 parallel XVS type, follow the XVS type instead of the PAD type.
10954 (unwrap_value): Make sure that there is no parallel XVE type
10955 before returning the value as is.
10956 (set_ada_list, show_ada_list): New static variables.
10957 (set_ada_command, show_ada_command): New functions.
10958 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10959 Add new "set/show ada trust-PAD-over-XVS" setting.
10961 2010-01-18 Tom Tromey <tromey@redhat.com>
10962 Thiago Jung Bauermann <bauerman@br.ibm.com>
10964 Allow "source" to load python scripts.
10965 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10966 * python/python.c (source_python_script): New function.
10967 * python/python.h (source_python_script): Add declaration.
10968 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10969 (script_ext_off, script_ext_soft, script_ext_strict)
10970 (script_ext_enums, script_ext_mode): New static constants.
10971 (show_script_ext_mode, find_and_open_script): New functions.
10972 (source_script): Enhance to handle Python scripts.
10973 (init_cli_cmds): Add set/show script-extension commands.
10975 2010-01-16 Stan Shebs <stan@codesourcery.com>
10977 * tracepoint.h (struct trace_status): Use unsigned long long
10979 * tracepoint.c (trace_status_command): Fix printf directive.
10980 (trace_save_command): Check fwrite returns, fix printf directive.
10981 (trace_filename): New global.
10982 (tfile_open): Set it, check read returns.
10983 (tfile_close): Free trace_filename.
10984 (tfile_get_traceframe_address): Check read returns.
10985 (tfile_trace_find): Ditto.
10986 (tfile_fetch_registers): Ditto.
10987 (tfile_xfer_partial): Ditto.
10988 (tfile_get_trace_state_variable_value): Ditto.
10990 2010-01-15 Stan Shebs <stan@codesourcery.com>
10992 Add trace file support.
10993 * tracepoint.h (enum trace_stop_reason): New enum.
10994 (struct trace_status): New struct.
10995 (parse_trace_status): Declare.
10996 (struct uploaded_tp): Move here from remote.c,
10997 add fields for actions.
10998 (struct uploaded_tsv): New struct.
10999 * tracepoint.c (tfile_ops): New target vector.
11000 (trace_fd): New global.
11001 (tfile_open): New function.
11002 (tfile_close): New function.
11003 (tfile_files_info): New function.
11004 (tfile_get_trace_status): New function.
11005 (tfile_get_traceframe_address): New function.
11006 (tfile_trace_find): New function.
11007 (tfile_fetch_registers): New function.
11008 (tfile_xfer_partial): New function.
11009 (tfile_get_trace_state_variable_value): New function.
11010 (init_tfile_ops): New function.
11011 (_initialize_tracepoint): Call it, add tfile target.
11012 (trace_status): New global.
11013 (current_trace_status): New function.
11014 (trace_running_p): Remove, change all users to get from
11015 current_trace_status()->running.
11016 (get_trace_status): Remove.
11017 (trace_status_command): Call target_get_trace_status directly,
11018 report more detail including tracing stop reasons.
11019 (trace_find_command): Always allow tfind on a file.
11020 (trace_find_pc_command): Ditto.
11021 (trace_find_tracepoint_command): Ditto.
11022 (trace_find_line_command): Ditto.
11023 (trace_find_range_command): Ditto.
11024 (trace_find_outside_command): Ditto.
11025 (trace_frames_offset, cur_offset): Declare as off_t.
11026 (trace_regblock_size): Rename from reg_size, update users.
11027 (parse_trace_status): New function.
11028 (tfile_interp_line): New function.
11029 (disconnect_or_stop_tracing): Ensure current trace
11030 status before asking what to do.
11031 (stop_reason_names): New global.
11032 (trace_save_command): New command.
11033 (get_uploaded_tp): Move here from remote.c.
11034 (find_matching_tracepoint): Ditto.
11035 (merge_uploaded_tracepoints): New function.
11036 (parse_trace_status): Use stop_reason_names.
11037 (_initialize_tracepoint): Define tsave command.
11038 * target.h (target_ops): New fields to_save_trace_data,
11039 to_upload_tracepoints, to_upload_trace_state_variables,
11040 to_get_raw_trace_data, change to_get_trace_status
11041 to take a pointer to a status struct.
11042 (target_save_trace_data): New macro.
11043 (target_upload_tracepoints): New macro.
11044 (target_upload_trace_state_variables): New macro.
11045 (target_get_raw_trace_data): New macro.
11046 * target.c (update_current_target): Add new methods, change
11047 signature of to_get_trace_status.
11048 * remote.c (hex2bin): Make globally visible.
11050 (remote_download_trace_state_variable): Download name also.
11051 (remote_get_trace_status): Update parameter, use
11052 parse_trace_status.
11053 (remote_save_trace_data): New function.
11054 (remote_upload_tracepoints): New function.
11055 (remote_upload_trace_state_variables): New function.
11056 (remote_get_raw_trace_data): New function.
11057 (remote_start_remote): Use them.
11058 (_initialize_remote_ops): Add operations.
11059 * ax-gdb.c: Include breakpoint.h.
11060 * breakpoint.c (create_tracepoint_from_upload): Use
11061 break_command_really, return tracepoint, warn about unimplemented
11063 * NEWS: Mention trace file addition.
11065 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11067 Fix compilation warning on gcc-3.4.
11068 * exec.c (print_section_info): Move the `displacement' variable
11069 initialization to its declaration.
11071 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11073 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
11076 2010-01-15 Eric Botcazou <botcazou@adacore.com>
11078 "info tasks" broken by typedefs in ATCB type definitions.
11079 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
11080 ada_check_typedef before retrieving the length of the type for
11083 2010-01-15 Joel Brobecker <brobecker@adacore.com>
11085 Do not use name-based lookup for unconstrained packed arrays.
11086 * ada-lang.c (find_parallel_type_by_descriptive_type):
11087 Limit the fallback to name-based lookups to the case where
11088 the type is a constrained packed array.
11090 2010-01-15 Joel Brobecker <brobecker@adacore.com>
11092 Enhance gdb-gdb.py to handle main_type.type_specific.
11093 * gdb-gdb.py: Print the type-specific part of struct main_type.
11095 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11097 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
11098 * configure: Regenerate.
11099 * config.in: Regenerate.
11100 * utils.c: Include sys/resource.h.
11101 (dump_core, can_dump_core): New.
11102 (internal_vproblem): Update the comment. Check can_dump_core while
11103 setting dump_core_p. Replace two abort calls by dump_core calls.
11105 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11106 Eli Zaretskii <eliz@gnu.org>
11108 * NEWS: Document the PIE support.
11110 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11112 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
11113 (check_is_pie_binary, _initialize_linux_tdep): Remove.
11115 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11117 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
11118 Replace exec_entry_point call by bfd_get_start_address.
11120 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11122 Support Valgrind attachments broken by the PIE support.
11123 * auxv.c: Include gdbcore.h.
11124 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
11125 parameters ops, object and annex. Remove their assertions.
11126 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
11127 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
11128 (memory_xfer_auxv): ... here.
11129 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
11131 * procfs.c (procfs_xfer_partial): Likewise.
11132 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
11133 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
11134 (svr4_solib_create_inferior_hook): Conditionalize the
11135 svr4_relocate_main_executable call.
11137 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11139 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
11140 target_section. Find SECT in current_target_sections, gdb_assert it.
11141 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
11143 * symtab.c (lookup_objfile_from_block): Return the binary file instead
11144 of separate debug info file.
11146 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11148 Support PIEs with no symfile_objfile.
11149 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
11150 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
11152 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11154 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
11156 (svr4_static_exec_displacement): ... a new function.
11157 (svr4_exec_displacement): New function.
11158 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
11159 new_offsets using alloca now. Remove variable old_chain and changed.
11160 Call objfile_relocate unconditionally now.
11162 2010-01-14 Doug Evans <dje@google.com>
11164 * gdbtypes.c (arch_flags_type): Fix comment.
11165 * gdbtypes.h (arch_composite_type): Fix comment.
11167 2009-01-14 Tristan Gingold <gingold@adacore.com>
11169 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
11170 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
11171 to symbol_file_add_from_bfd. Add OSO as separate objfile.
11172 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
11173 macho_add_oso_symfile.
11174 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
11176 2010-01-14 Joel Brobecker <brobecker@adacore.com>
11178 Tru64: Dead threads are never deleted.
11179 * dec-thread.c (dec_thread_ptid_is_alive): New function.
11180 (dec_thread_count_gdb_threads): Fix counter increment.
11181 (dec_thread_add_gdb_thread): Fix *listp increment.
11182 (resync_thread_list): Fix bug in deletion of dead threads that
11183 caused all threads to be deleted, instead of just the dead ones.
11185 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
11189 * python/python-internal.h: Add lazy_string_object_type
11191 (create_lazy_string_object, gdbpy_initialize_lazy_string)
11192 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
11193 * python/py-value.c (valpy_lazy_string): New function.
11194 (convert_value_from_python): Add lazy string conversion.
11195 * python/py-prettyprint.c (pretty_print_one_value): Check if
11196 return is also a lazy string.
11197 (print_string_repr): Add lazy string printing branch.
11198 (print_children): Likewise.
11199 * python/py-lazy-string.c: New file. Implement lazy strings.
11200 * python/python.c (_initialize_python): Call
11201 gdbpy_initialize_lazy_string.
11202 * varobj.c (value_get_print_value): Add lazy string printing
11203 branch. Account for encoding.
11204 * c-lang.c (c_printstr): Account for new encoding argument. If
11205 encoding is NULL, find encoding suited for type, otherwise use
11207 * language.h (language_defn): Add encoding argument.
11208 (LA_PRINT_STRING): Likewise.
11209 * language.c (unk_lang_printstr): Update to reflect new encoding
11210 argument to language_defn.
11211 * ada-lang.h (ada_printstr): Likewise.
11212 * c-lang.h (c_printstr): Likewise.
11213 * p-lang.h (pascal_printstr);
11214 * f-lang.c (f_printstr): Likewise.
11215 * m2-lang.c (m2_printstr): Likewise.
11216 * objc-lang.c (objc_printstr): Likewise.
11217 * p-lang.c (pascal_printstr): Likewise.
11218 * scm-lang.c (scm_printstr): Likewise.
11219 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
11221 * ada-valprint.c (ada_printstr): Likewise.
11222 * f-valprint.c (f_val_print): Likewise
11223 * m2-valprint.c (m2_val_print): Likewise.
11224 * p-valprint.c (pascal_val_print): Likewise.
11225 * expprint.c (print_subexp_standard): Likewise.
11226 * valprint.c (val_print_string): Likewise.
11227 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
11228 (SUBDIR_PYTHON_SRCS): Likewise.
11229 (py-lazy-string.o): New rule.
11231 2010-01-13 Doug Evans <dje@google.com>
11233 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
11234 uninitialized" warning from gcc on local `tree'.
11236 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
11238 Implement core awareness.
11240 * bcache.c (compare_ints): Remove
11241 (print_percentage): Use compare_positive_ints.
11242 * defs.h (compare_positive_ints): Declare.
11243 * linux-nat.h (struct lin_lwp): New field core.
11244 (linux_nat_core_of_thread_1): Declare.
11245 * linux-nat.c (add_lwp): Init the 'core' field.
11246 (linux_nat_wait_1): Record the core.
11247 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
11248 (linux_nat_add_target): Register the above.
11249 * linux-thread-db.c (update_thread_core): New.
11250 (thread_db_find_new_threads): Update core information for
11252 * remote.c (struct private_thread_info): New.
11253 (free_private_thread_info, demand_private_info): New.
11254 (PACKET_qXfer_threads, use_osdata_threads): New.
11255 (struct thread_item, threads_parsing_context
11256 (start_thread, end_thread, thread_attributes)
11257 (thread_children, threads_children, threads_elements): New.
11258 (remote_threads_info): Try qXfer:threads before anything
11260 (remote_protocol_packets): Register qXfer:threads.
11261 (remote_open_1): Init use_osdata_threads.
11262 (struct stop_reply): New field 'core'.
11263 (remote_parse_stop_reply): Parse core number.
11264 (process_stop_reply): Record core number.
11265 (remote_xfer_partial): Handle qXfer:threads.
11266 (remote_core_of_thread): New.
11267 (init_remote_ops): Register remote_core_of_thread.
11268 (_initialize_remote): Register qXfer:read.
11269 * target.c (target_core_of_thread): New
11270 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
11271 (struct target_ops): New field to_core_of_threads.
11272 (target_core_of_thread): Declare.
11273 * gdbthread.h (struct thread_info): New field private_dtor.
11274 * thread.c (print_thread_info): Report the core.
11275 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
11276 * utils.c (compare_positive_ints): New.
11277 * features/threads.dtd: New.
11278 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
11279 * mi/mi-main.c (struct collect_cores_data, collect_cores)
11280 (do_nothing, free_vector_of_osdata_items)
11281 (splay_tree_int_comparator, free_splay_tree): New.
11282 (print_one_inferior_data): Implemented printing of selected
11283 inferiors. Collect and print cores.
11284 (output_cores): New.
11285 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
11286 thread groups together with --available.
11288 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11290 * configure: Regenerate (for _STRUCTURED_PROC).
11292 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11294 Delete dead function.
11295 * ada-lang.c (extract_string): Delete. No longer used.
11297 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11299 Fix -Wunused warning in dec-thread.c.
11300 * dec-thread.c (dec_thread_count_gdb_threads)
11301 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
11303 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11305 * ada-valprint.c (ada_print_floating): Remove trailing space.
11307 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11309 Add support for DW_AT_GNAT_descriptive_type.
11310 * gdbtypes.h (enum type_specific_kind): New enum.
11311 (struct main_type) [type_specific_field]: New component.
11312 [type_specific]: Add new component "gnat_stuff".
11313 (struct gnat_aux_type): New type.
11314 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
11315 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
11316 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
11317 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
11318 (TYPE_SPECIFIC_FIELD): New macros.
11319 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
11320 type does not hold any cplus-specific data.
11321 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
11322 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
11323 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
11324 cplus-specific data.
11325 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
11326 Set new component TYPE_SPECIFIC_FIELD (type).
11327 (gnat_aux_default): New constant.
11328 (allocate_gnat_aux_type): New function.
11329 (init_type): Add initialization the type-specific stuff for
11330 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
11331 (print_gnat_stuff): New function.
11332 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
11333 specific data. Adjust code that prints the contents of the
11334 type-specific union using the TYPE_SPECIFIC_FIELD value.
11335 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
11336 the type cplus stuff for Ada types.
11337 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
11338 Error out if these routines are called with an Ada type.
11339 (read_structure_type, read_array_type, read_subrange_type):
11340 Add call to set_descriptive_type.
11341 (set_die_type): Initialize the gnat-specific data if necessary.
11342 (need_gnat_info, die_descriptive_type, set_descriptive_type):
11344 * ada-lang.c (decode_constrained_packed_array_type): Use
11345 decode_constrained_packed_array_type instead of doing a standard
11346 lookup to locate a parallel type.
11347 (find_parallel_type_by_descriptive_type): New function.
11348 (ada_find_parallel_type_with_name): New function.
11349 (ada_find_parallel_type): Reimplement using
11350 ada_find_parallel_type_with_name.
11351 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
11352 to check if type has a cplus stuff.
11353 * linespec.c (total_number_of_methods): Likewise.
11354 * mdebugread.c (new_type): Likewise.
11356 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11358 * NEWS: Document the 0b binary number prefix parsing.
11360 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11362 * objfiles.c (objfile_relocate1): Change the return type to int.
11363 Describe the new return value. Return non-zero if data changed.
11364 (objfile_relocate): New variable changed. Set it. Call
11365 breakpoint_re_set depending on CHANGED.
11367 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11369 Implement binary numbers parsing.
11370 * c-exp.y (parse_number): New case 'b' and 'B'.
11372 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11373 Tristan Gingold <gingold@adacore.com>
11375 * solib.c (info_sharedlibrary_command): Replace
11376 objfile_has_partial_symbols and objfile_has_full_symbols calls by
11377 objfile_has_symbols.
11379 2010-01-10 Joel Brobecker <brobecker@adacore.com>
11381 * NEWS: Document the improvements made to the mips-irix port.
11383 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11385 Fix the documentation of valprint.c:value_print.
11386 * valprint.c (value_print): Update the function description to
11387 mention that the syntax of the output follows the current_language,
11390 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11392 Fix displacement of separate debug info files.
11393 * objfiles.c (objfile_relocate): Rename to ...
11394 (objfile_relocate1): ... here and make it static. Extend the comment.
11395 (objfile_relocate): New function.
11396 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
11397 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
11398 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
11399 allocated using alloca.
11400 * symfile.c (copy_section_addr_info): Remove.
11401 (build_section_addr_info_from_objfile): Make it global. New variables
11402 addr_bit and mask, use them.
11403 * symfile.h (build_section_addr_info_from_objfile): New prototype.
11404 (copy_section_addr_info): Remove.
11406 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11408 Signal unwinder for mips-irix N32.
11409 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
11411 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
11412 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
11413 (SIGCONTEXT_LO_OFF): New macros.
11414 (mips_irix_n32_tramp_frame_init): New function.
11415 (mips_irix_n32_tramp_frame): New static constant.
11416 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
11418 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11420 Breakpoint in shared library does not work on mips-irix.
11421 * procfs.c: #include "observer.h".
11422 (procfs_inferior_created): New function, moving here the code
11423 which unsets the syssgi syscall-exit notifications.
11424 (procfs_create_inferior): Remove the code which unsets the syssgi
11425 syscall-exit notifications. It is too early to do this here.
11426 (_initialize_procfs): Attach the procfs_inferior_created observer.
11428 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11430 Wrong return convention for arrays (mips-irix).
11431 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
11432 128 bits or smaller are returned the same way as structs
11433 and unions of the the same size.
11435 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11437 Cannot set the PC on mips-irix.
11438 * irix5-nat.c (fill_gregset): Check regno against the raw PC
11439 register number, no the cooked one.
11441 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11443 Error while loading core file on mips-irix.
11444 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
11445 if debugging from a core file.
11447 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11449 GDB hangs when attaching to process on mips-irix.
11450 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
11451 attaching to a process.
11453 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11455 Use the correct breakpoint instruction on mips-irix.
11456 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
11457 containing the correct breakpoint instruction to use on mips-irix.
11458 Use it when the osabi is GDB_OSABI_IRIX.
11460 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11462 -Wunused warning in procfs.c (mips-irix only).
11463 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
11464 throughout instead of using praddset and prdelset respectively.
11466 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11468 GDB crash while stepping into function.
11469 * infrun.c (handle_inferior_event): Refetch the current frame
11470 after handling what.main_action, in case that pointer became
11473 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11475 Fix build failure of solaris-hosted cross debuggers.
11476 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
11478 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
11480 Fix build failure on sparc-solaris.
11481 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
11483 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11485 Move some symfile code into subroutines.
11486 * symfile.h (relative_addr_info_to_section_offsets)
11487 (addr_info_make_relative): New prototypes.
11488 * symfile.c (default_symfile_offsets): Move a part to ...
11489 (relative_addr_info_to_section_offsets): ... this new function.
11490 (default_symfile_offsets): Call it.
11491 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
11493 (addr_info_make_relative): ... this new function.
11495 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11497 Add from_tty to solib_create_inferior_hook.
11498 * infcmd.c (post_create_inferior): Move solib_add after
11499 solib_create_inferior_hook. Pass from_tty to
11500 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
11501 0 from_tty and comment why.
11502 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
11503 * linux-nat.c (linux_child_follow_fork): Likewise.
11504 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
11505 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
11507 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
11508 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
11509 * solib-null.c (null_solib_create_inferior_hook): Likewise.
11510 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
11511 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
11512 * solib-som.c (som_solib_create_inferior_hook): Likewise.
11513 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
11514 Pass it to svr4_so_ops.solib_create_inferior_hook.
11515 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
11517 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
11519 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
11521 * solib-target.c (solib_target_solib_create_inferior_hook): New
11522 parameter from_tty.
11523 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
11524 it to ops->solib_create_inferior_hook.
11525 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
11526 Move solib_add after solib_create_inferior_hook, call it now with
11527 from_tty as 0. New comment there.
11528 * solib.h (solib_create_inferior_hook): New parameter from_tty.
11529 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
11532 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
11534 Fix multiexec race.
11535 * infrun.c (handle_inferior_event): Use get_thread_regcache
11536 with events ptid, not get_current_regcache.
11538 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11540 GDB crash with empty executable name (MinGW).
11541 * source.c (openp): Add assert that parameter string is not NULL.
11542 if parameter string is an empty string, then return with a failure
11545 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11547 Get rid of support for VAX Floats.
11548 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11549 (ada_vax_float_print_function): Delete.
11550 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11551 (ada_vax_float_print_function): Delete.
11552 * ada-typeprint.c (print_vax_floating_point_type): Delete.
11553 (ada_print_type): Remove support for VAX floats.
11554 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
11556 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11558 * stabsread.c (read_args): Handle zero arguments.
11560 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11562 Cannot find in-tree libiconv.a after reconfigure.
11563 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
11564 that we can use, then cache the path to this archive.
11565 * configure: Regenerate.
11567 2010-01-07 Stan Shebs <stan@codesourcery.com>
11569 Make tracepoint operations go through target vector.
11570 * target.h (enum trace_find_type): New enum.
11571 (struct target_ops): New fields to_trace_init,
11572 to_download_tracepoint, to_download_trace_state_variable,
11573 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
11574 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
11575 to_set_disconnected_tracing.
11576 (target_trace_init): New macro.
11577 (target_download_tracepoint): New macro.
11578 (target_download_trace_state_variable): New macro.
11579 (target_trace_start): New macro.
11580 (target_trace_set_readonly_regions): New macro.
11581 (target_get_trace_status): New macro.
11582 (target_trace_stop): New macro.
11583 (target_trace_find): New macro.
11584 (target_get_trace_state_variable_value): New macro.
11585 (target_set_disconnected_tracing): New macro.
11586 * target.c (update_current_target): Inherit and set defaults for
11587 tracepoint operations.
11588 * tracepoint.c (default_collect): Make globally visible.
11589 (target_is_remote): Remove, along with all calls.
11590 (tvariables_info): Call target_get_trace_state_variable_value.
11591 (remote_set_transparent_ranges): Remove.
11592 (trace_start_command): Call target_trace_init,
11593 target_download_tracepoint, etc.
11594 (download_tracepoint): Remove.
11595 (trace_stop_command): Simplify.
11596 (stop_tracing): Call target_trace_stop.
11597 (get_trace_status): Call target_get_trace_status.
11598 (trace_status_command): Add case for targets that cannot trace.
11599 (finish_tfind_command): Change to take numerical arguments, call
11601 (trace_find_command): Update call to finish_tfind_command.
11602 (trace_find_pc_command): Ditto.
11603 (trace_find_tracepoint_command): Ditto.
11604 (trace_find_line_command): Ditto.
11605 (trace_find_range_command): Ditto.
11606 (trace_find_outside_command): Ditto.
11607 (set_disconnected_tracing_value): Call
11608 target_set_disconnected_tracing.
11609 * remote.c: Add protocol encoding bits from tracepoint.c.
11610 (trace_error): Move from tracepoint.c.
11611 (remote_get_noisy_reply): Ditto.
11612 (free_actions_list_cleanup_wrapper): Ditto.
11613 (free_actions_list): Ditto.
11614 (remote_trace_init): New function.
11615 (remote_download_tracepoint): New function.
11616 (remote_download_trace_state_variable): New function.
11617 (remote_trace_set_readonly_regions): New function.
11618 (remote_trace_start): New function.
11619 (remote_get_trace_status): New function.
11620 (remote_trace_stop): New function.
11621 (remote_trace_find): New function.
11622 (remote_download_trace_state_variable): New function.
11623 (remote_set_disconnected_tracing): New function.
11624 (init_remote_ops): Add tracepoint operations.
11626 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11628 2010-01-07 Tristan Gingold <gingold@adacore.com>
11630 * symfile.c (build_section_addr_info_from_objfile): New function.
11631 (symbol_file_add_separate): Don't use offsets from objfile but
11632 built an addr info.
11634 2010-01-06 Stan Shebs <stan@codesourcery.com>
11636 Support disconnected tracing.
11637 * infcmd.c (detach_command): Ask whether to stop tracing.
11638 * cli/cli-cmds.c (quit_command): Ditto.
11639 * breakpoint.h (struct breakpoint): New field number_on_target.
11640 * breakpoint.c (create_tracepoint_from_upload): New function.
11641 (get_tracepoint_by_number_on_target): New function.
11642 * remote.c (struct remote): New field disconnected_tracing.
11643 (remote_disconnected_tracing_feature): New function.
11644 (remote_protocol_features): Add DisconnectedTracing.
11645 (struct uploaded_tp): New struct.
11646 (uploaded_tps): New global.
11647 (get_uploaded_tp): New function.
11648 (find_matching_tracepoint): New function.
11649 (remote_get_tracing_state): New function.
11650 (remote_start_remote): Call it.
11651 * tracepoint.c (disconnected_tracing): New global.
11652 (trace_start_command): Initialize number_on_target.
11653 (stop_tracing): New function, split out from...
11654 (trace_stop_command): Call stop_tracing.
11655 (get_trace_status): New function, split out from...
11656 (trace_status_command): Call get_trace_status, add info on
11657 disconnection behavior.
11658 (disconnect_or_stop_tracing): New function.
11659 (finish_tfind_command): Translate from number on target.
11660 (trace_find_tracepoint_command): Translate to number on target.
11661 (send_disconnected_tracing_value): New function.
11662 (set_disconnected_tracing): New function.
11663 (_initialize_tracepoint): Add disconnected-tracing variable.
11664 * NEWS: Mention disconnected tracing.
11666 2010-01-06 Tristan Gingold <gingold@adacore.com>
11668 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11669 parameter to main_objfile. Iterate on all separate debug objfiles.
11670 * symfile.h (symbol_file_add_separate)
11671 (find_separate_debug_file_by_debuglink): Remove parameter names.
11672 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11673 (reread_symbols): Use free_objfile_separate_debug.
11674 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11676 (objfile_separate_debug_iterate, add_separate_debug_objfile)
11677 (free_objfile_separate_debug): New prototypes.
11678 * objfiles.c (objfile_separate_debug_iterate): New function.
11679 (add_separate_debug_objfile, free_objfile_separate_debug): New
11681 (free_objfile): Use free_objfile_separate_debug. Adjust for
11682 multiple separate debug objfile.
11683 (objfile_has_symbols): Adjust comment. Iterate on all separate
11685 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11687 (lookup_minimal_symbol_text): Ditto.
11688 (lookup_minimal_symbol_by_pc_name): Ditto.
11689 (lookup_minimal_symbol_solib_trampoline): Ditto.
11690 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11693 2010-01-05 Stan Shebs <stan@codesourcery.com>
11695 Add fast tracepoints.
11696 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11697 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11698 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11699 * breakpoint.c (tracepoint_type): New function.
11700 (ALL_TRACEPOINTS): Use it.
11701 (should_be_inserted): Ditto.
11702 (bpstat_check_location): Ditto.
11703 (print_one_breakpoint_location): Ditto.
11704 (user_settable_breakpoint): Ditto.
11705 (set_breakpoint_location_function): Ditto.
11706 (disable_breakpoints_in_shlibs): Ditto.
11707 (delete_trace_command): Ditto.
11708 (print_it_typical): Add bp_fast_tracepoint case.
11709 (bpstat_what): Ditto.
11710 (print_one_breakpoint_location): Ditto.
11711 (allocate_bp_location): Ditto.
11713 (breakpoint_re_set_one): Ditto.
11714 (disable_command): Ditto.
11715 (enable_command): Ditto.
11716 (check_fast_tracepoint_sals): New function.
11717 (break_command_really): Call it.
11718 (ftrace_command): New function.
11719 (_initialize_breakpoint): Add ftrace command.
11720 * gdbarch.sh (fast_tracepoint_valid_at): New.
11721 * gdbarch.h, gdbarch.c: Regenerate.
11722 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11723 (i386_gdbarch_init): Use it.
11724 * remote.c (struct remote_state): New field fast_tracepoints.
11725 (PACKET_FastTracepoints): New packet config type.
11726 (remote_fast_tracepoint_feature): New function.
11727 (remote_protocol_features): Add FastTracepoints.
11728 (remote_supports_fast_tracepoints): New function.
11729 (_initialize_remote): Add FastTracepoints.
11730 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11731 * NEWS: Mention fast tracepoints.
11733 2010-01-06 Joel Brobecker <brobecker@adacore.com>
11735 * gdb-gdb.py: New file.
11737 2010-01-05 Michael Snyder <msnyder@vmware.com>
11739 * infrun.c (handle_inferior_event): Fix typo in comment.
11741 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11743 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11745 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11747 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
11749 (s390-linux32-expedite): Define.
11750 (s390-linux64-expedite): Define.
11751 (s390x-linux64-expedite): Define.
11752 * features/s390-acr.xml: New file.
11753 * features/s390-fpr.xml: New file.
11754 * features/s390-core32.xml: New file.
11755 * features/s390-core64.xml: New file.
11756 * features/s390x-core64.xml: New file.
11757 * features/s390-linux32.xml: New file.
11758 * features/s390-linux64.xml: New file.
11759 * features/s390x-linux64.xml: New file.
11760 * features/s390-linux32.c: New generated file.
11761 * features/s390-linux64.c: New generated file.
11762 * features/s390x-linux64.c: New generated file.
11764 * regformats/s390-linux32.dat: New generated file.
11765 * regformats/s390-linux64.dat: New generated file.
11766 * regformats/s390x-linux64.dat: New generated file.
11767 * regformats/reg-s390.dat: Remove.
11768 * regformats/reg-s390x.dat: Remove.
11770 * s390-nat.c: Include "auxv.h" and <elf.h>.
11771 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11772 (s390_target_wordsize): New function.
11773 (s390_auxv_parse): Likewise.
11774 (s390_get_hwcap): Likewise.
11775 (s390_read_description): Likewise.
11776 (_initialize_s390_nat): Install s390_auxv_parse and
11777 s390_read_description.
11779 * s390-tdep.c: Include "features/s390-linux32.c",
11780 "features/s390-linux64.c", and "features/s390x-linux64.c".
11781 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11782 (s390_register_call_saved): New function.
11783 (s390_register_name): Remove.
11784 (s390_register_type): Remove.
11785 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11786 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11787 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11788 (s390_pseudo_register_name): New function.
11789 (s390_pseudo_register_type): New function.
11790 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11791 Handle full GPR pesudos and varying pseudo register numbers.
11792 (s390_pseudo_register_write): Likewise
11793 (s390x_pseudo_register_read): Remove.
11794 (s390x_pseudo_register_write): Likewise.
11795 (s390_register_group): Remove.
11796 (s390_pseudo_register_group): New function.
11797 (s390_regmap_gregset): Add GPR upper halves.
11798 (s390x_regmap_gregset): Likewise.
11799 (s390_regmap_fpregset): Likewise.
11800 (s390_regmap_upper): New global variable.
11801 (s390_upper_regset): New global variable.
11802 (s390_upper_regset_sections): New global variable.
11803 (s390_regset_from_core_section): Handle GPR upper halves.
11804 (s390_core_read_description): New function.
11805 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11806 register information. Handle varying pseudo register numbers.
11807 (s390_backchain_frame_unwind_cache): Likewise.
11808 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11809 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11810 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11811 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11812 Handle varying pseudo register numbers.
11813 (s390_unwind_pc): Handle varying pseudo register numbers.
11814 (s390_dwarf2_prev_register): New function.
11815 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11816 register information. Handle varying pseudo register numbers.
11817 Install s390_dwarf2_prev_register to unwind full GPRs.
11818 (s390_gdbarch_init): Handle target descriptions. Assign varying
11819 pseudo register numbers. Install s390_adjust_frame_regnum.
11820 (_initialize_s390_tdep): Initialize target descriptions.
11822 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11823 (S390_NUM_REGS): Redefine to include upper half registers.
11824 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11825 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11826 (tdesc_s390_linux32): Add declaration.
11827 (tdesc_s390_linux64): Likewise.
11828 (tdesc_s390x_linux64): Likewise.
11830 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11832 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11833 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11834 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11835 (ppc_linux_vmx_regset_sections): Likewise.
11836 (ppc_linux_fp_regset_sections): Likewise.
11838 * corelow.c (get_core_register_section): Constify arguments.
11839 (get_core_registers): Use gdbarch_core_regset_sections instead
11840 of hard-coded platform-specific register section names.
11842 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11844 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
11845 a register, assume the least-significant part is used.
11846 (write_pieced_value): Likewise.
11848 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11850 * printcmd.c: Include "arch-utils.h".
11851 (do_one_display): Re-parse expression if current architecture changed.
11853 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11854 Joel Brobecker <brobecker@adacore.com>
11856 * gdbtypes.c (check_typedef): New comment on type length.
11857 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11858 comment on type length.
11859 (value_primitive_field): Keep the original TYPE value, new comment.
11861 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11863 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11864 p_start. Change != comparisons to > and < comparisons.
11866 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11868 * cli/cli-script.c (process_next_line): Check P2 overrun.
11870 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11872 Update the copyright hearder to add year 2010 for most GDB files.
11874 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11876 Fix build failure in inf-ptrace.c.
11877 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11879 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11881 * top.c (print_gdb_version): Update copyright year.
11883 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
11885 Fix break *FUN'address thread NUM.
11886 * ada-lex.l (task): Expand rule to also match the thread keyword.
11888 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11890 Fix break *FUN'address task NUM.
11891 * ada-lex.l (task): New rule.
11892 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11893 been built before using it.
11895 For older changes see ChangeLog-2009.
11901 version-control: never