1 2010-12-31 Michael Snyder <msnyder@vmware.com>
3 * annotate.c: Comment cleanup, shorten long lines.
10 * ax-general.c: Ditto.
11 * breakpoint.h: Ditto.
14 2010-12-30 Mike Frysinger <vapier@gentoo.org>
16 * bfin-tdep.c (bfin_register_type): Move || to start of line.
18 2010-12-29 Michael Snyder <msnyder@vmware.com>
20 * bcache.c: Comment clean-up, shorten long lines..
22 * blockframe.c: Ditto.
23 * breakpoint.c: Ditto.
27 2010-12-29 Jie Zhang <jie.zhang@analog.com>
29 * configure.tgt (bfin-*-*): Set build_gdbserver to yes.
30 * NEWS: Mention new Blackfin support.
31 * regformats/reg-bfin.dat: New file.
33 2010-12-29 Jie Zhang <jie.zhang@analog.com>
34 Mike Frysinger <vapier@gentoo.org>
36 * Makefile.in (ALLDEPFILES): Add bfin-linux-tdep.c and bfin-tdep.c.
37 (HFILES_NO_SRCDIR): Add bfin-tdep.h.
38 (ALL_TARGET_OBS): Add bfin-linux-tdep.o and bfin-tdep.o.
39 * NEWS: Mention new Blackfin port.
40 * bfin-tdep.c, bfin-tdep.h, bfin-linux-tdep.c,
41 syscalls/bfin-linux.xml: New files.
42 * configure.tgt (bfin-*-*): Handle bfin targets.
44 2010-12-29 Hui Zhu <teawater@gmail.com>
46 * ax-gdb.c (gen_expr): Change error message.
48 2010-12-29 Joel Brobecker <brobecker@adacore.com>
50 * gdb.c: Revert the previous change, which was probably committed
53 2010-12-29 Joel Brobecker <brobecker@adacore.com>
55 * ada-lang.c: Fix typo in comment.
57 2010-12-29 Joel Brobecker <brobecker@adacore.com>
59 * ada-valprint.c (ada_val_print_1): Print null array pointers as
60 `0x0' rather than `(null)'. Add assertion.
62 2010-12-29 Joel Brobecker <brobecker@adacore.com>
64 * ada-lang.h (ada_coerce_to_simple_array): Add declaration.
65 * ada-lang.c (ada_typedef_target_type): New function.
66 (desc_base_type): Add handling of fat pointer typedefs.
67 (ada_coerce_to_simple_array): Make non-static.
68 (decode_packed_array_bitsize): Add handling of fat pointer typedefs.
70 (ada_template_to_fixed_record_type_1, ada_to_fixed_type)
71 (ada_check_typedef): Add handling of fat pointer typedefs.
72 (ada_evaluate_subexp) [OP_FUNCALL]: Likewise.
73 * ada-typeprint.c (ada_print_type): Add handling of fat pointer
75 * ada-valprint.c (ada_val_print_1): Convert fat pointers that are not
76 array accesses to simple arrays rather than simple array pointers.
77 (ada_value_print): In the case of array descriptors, do not print
78 the value type description unless it is an array access.
80 2010-12-29 Joel Brobecker <brobecker@adacore.com>
82 * target.h (enum target_object): Expand the documentation of
83 TARGET_OBJECT_OSDATA a bit.
85 2010-12-28 Michael Snyder <msnyder@vmware.com>
87 * command.h: Comment clean-up, shorten long lines.
88 * cli/cli-cmds.c: Ditto.
89 * cli/cli-cmds.h: Ditto.
90 * cli/cli-decode.c: Ditto.
91 * cli/cli-decode.h: Ditto.
92 * cli/cli-dump.c: Ditto.
93 * cli/cli-interp.c: Ditto.
94 * cli/cli-logging.c: Ditto.
95 * cli/cli-script.c: Ditto.
96 * cli/cli-setshow.c: Ditto.
97 * cli/cli-setshow.h: Ditto.
99 2010-12-28 Michael Snyder <msnyder@vmware.com>
101 * event-loop.c: Comment clean-up, shorten long lines.
102 * event-loop.h: Ditto.
103 * event-top.c: Ditto.
110 2010-12-28 Pedro Alves <pedro@codesourcery.com>
112 * ax-gdb.c (gen_expr) <OP_REGISTER>: Error out if trying to
113 collect a user register.
115 2010-12-28 Hui Zhu <teawater@gmail.com>
117 * gdbarch.sh (ax_pseudo_register_collect,
118 ax_pseudo_register_push_stack): new callbacks.
119 (agent_expr): Forward declare.
120 * gdbarch.h, gdbarch.c: Regenerate.
121 * ax-gdb.c (gen_expr): Remove pseudo-register check code.
122 * ax-general.c (user-regs.h): New include.
123 (ax_reg): Call gdbarch_ax_pseudo_register_push_stack.
124 (ax_reg_mask): Call gdbarch_ax_pseudo_register_collect.
125 * mips-tdep.c (ax.h): New include.
126 (mips_ax_pseudo_register_collect,
127 mips_ax_pseudo_register_push_stack): New functions.
128 (mips_gdbarch_init): Set mips_ax_pseudo_register_collect and
129 mips_ax_pseudo_register_push_stack.
131 2010-12-28 Yao Qi <yao@codesourcery.com>
133 * arm-tdep.c (arm_register_aliases): Remove sp, pc, and fp.
135 2010-12-28 Joel Brobecker <brobecker@adacore.com>
137 * inf-child.c (inf_child_acknowledge_created_inferior): Delete.
138 (inf_child_target): Do not set t->to_acknowledge_created_inferior.
139 * inf-ptrace.c (inf_ptrace_create_inferior): Remove call to
140 target_acknowledge_created_inferior.
141 * inf-ttrace.c (inf_ttrace_him): Likewise.
142 * target.h (struct target_ops): Delete to_acknowledge_created_inferior
144 (target_acknowledge_created_inferior): Delete.
145 * target.c (update_current_target): Remove setting of
146 to_acknowledge_created_inferior field. Do default value for that
148 (debug_to_acknowledge_created_inferior): Delete.
149 (setup_target_debug): Remove setting of
150 current_target.to_acknowledge_created_inferior.
152 2010-12-27 Pedro Alves <pedro@codesourcery.com>
155 * breakpoint.c (breakpoint_restore_shadows): When looking for the
156 location with the lowest address that overlaps the memory range we
157 want to restore shadows for, account for multiple locations at the
160 2010-12-27 Jan Kratochvil <jan.kratochvil@redhat.com>
162 Code cleanup - renaming.
163 * breakpoint.c: Use bl for `*bp_location' variables, blp_tmp for
164 `**bp_location' helper variables, b_tmp for `*breakpoint' helper
167 2010-12-27 Kevin Buettner <kevinb@redhat.com>
168 Hui Zhu <teawater@gmail.com>
170 * mips-tedp.c (mips_register_name): Add comments.
172 2010-12-23 Yao Qi <yao@codesourcery.com>
174 * arm-tdep.c (thumb_analyze_prologue): Move some code ...
175 (EXTRACT_MOVW_MOVT_IMM_T): ... here. New macro.
176 (EXTRACT_MOVW_MOVT_IMM_A): New macro.
177 (arm_analyze_load_stack_chk_guard): New.
178 (arm_skip_stack_protector): New.
179 (arm_skip_prologue): Adjust post_prologue_pc by
180 arm_skip_stack_protector.
183 2010-12-23 Yao Qi <yao@codesourcery.com>
185 * arm-tdep.c (arm_gdbarch_init): Remove invoke to
186 set_gdbarch_deprecated_fp_regnum.
188 2010-12-22 Marc Khouzam <marc.khouzam@ericsson.com>
190 * inferior.c (remove_inferior_command): Don't remove an active inferior.
191 * mi/mi-main.c (mi_cmd_remove_inferior): Ditto.
193 2010-12-21 Tom Tromey <tromey@redhat.com>
195 * thread.c (print_thread_info): Make a ui-out table in CLI mode.
197 2010-12-20 Yao Qi <yao@codesourcery.com>
199 * arm-tdep.c (arm_register_reggroup_p): New.
200 (arm_gdbarch_init): Set arm_register_reggroup_p for hook
203 2010-12-20 Yao Qi <yao@codesourcery.com>
205 * features/arm-core.xml: Add attribute type to reg from r0 to r12.
206 * features/arm-with-iwmmxt.c: Regenerate.
207 * features/arm-with-neon.c: Regenerate.
208 * features/arm-with-vfpv2.c: Regenerate.
209 * features/arm-with-vfpv3.c: Regenerate.
211 2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
213 * mi/mi-main.c (mi_cmd_remove_inferior): Don't delete current inferior.
214 (get_other_inferior): New.
216 2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
218 * python/py-progspace.c (py_free_pspace): Obtain arch another
219 way to avoid dereferencing a null pointer.
221 2010-12-17 Michael Snyder <msnyder@vmware.com>
223 * utils.c (do_my_cleanups): Comment fix-up.
225 2010-12-17 Kevin Buettner <kevinb@redhat.com>
227 * mips-tdep.c (make_mips16_addr): New function.
228 (mips_elf_make_msymbol_special): Don't set the low bit in the
230 (mips_read_pc, mips_unwind_pc, mips_addr_bits_remove): Strip bit
231 indicating mips16 address, if present.
232 (mips_write_pc): Set bit indicating mips16 address when in a mips16
234 (mips_eabi_push_dummy_call, mips_o64_push_dummy_call): Likewise,
235 but for each function pointer argument to inferior function call.
237 2010-12-17 Tom Tromey <tromey@redhat.com>
239 * psympriv.h (struct partial_symtab) <readin>: Move field
242 2010-12-16 Kevin Buettner <kevinb@redhat.com>
244 * mips-tdep.c (mips_convert_register_float_case_p)
245 (mips_convert_register_gpreg_case_p): New functions.
246 (mips_convert_register_p): Invoke new functions above.
247 (mips_register_to_value): Add case for fetching value shorter
248 than 64 bits from a 64-bit register.
249 (mips_value_to_register): Add case for storing value shorter
250 than 64 bits into a 64-bit register.
252 2010-12-16 Joel Borggrén-Franck <joel.borggren.franck@gmail.com>
254 * python/py-value.c (value_object_type) <tp_flags>: Add
257 2010-12-16 Mike Frysinger <vapier@gentoo.org>
259 * NEWS: Mention new sim --map-info flag.
261 2010-12-15 Doug Evans <dje@google.com>
263 * dwarf2read.c (_initialize_dwarf2_read): Fix help text of
264 "save gdb-index" command.
266 2010-12-15 Tom Tromey <tromey@redhat.com>
268 * infrun.c (save_infcall_control_state): Handle the
269 exception-resume breakpoint.
270 (restore_infcall_control_state): Likewise.
271 (discard_infcall_control_state): Likewise.
273 2010-12-15 Kevin Buettner <kevinb@redhat.com>
275 * mips-tdep.c (mips_pseudo_register_write): Sign extend 32-bit
276 cooked values that are being transferred to 64-bit raw registers.
277 (mips_pseudo_register_read): Revise to preserve symmetry with
278 mips_pseudo_register_write().
280 2010-12-15 Greg Watson <g.watson@computer.org>
282 * f-exp.y (yylex): Check entire token against keywords.
284 2010-12-15 Doug Evans <dje@google.com>
286 Rename "maint set python auto-load" to "set auto-load-scripts".
288 * python/py-auto-load.c (auto_load_scripts): Renamed from
290 (load_auto_scripts_for_objfile): Update.
291 (gdbpy_initialize_auto_load): Rename "maint set python auto-load" to
292 "set auto-load-scripts".
294 2010-12-14 Kevin Buettner <kevinb@redhat.com>
296 * mips-tdep.c (mips_eabi_push_dummy_call): Place signed, rather
297 than unsigned, values in registers.
299 2010-12-14 Ken Werner <ken.werner@de.ibm.com>
301 * valops.c (value_one): Use get_array_bounds to compute the number
302 of array elements instead of dividing the length of the array by the
303 length of the element types.
304 * valarith.c (value_complement, value_neg): Likewise.
306 2010-12-14 Joel Brobecker <brobecker@adacore.com>
308 * irix5-nat.c: Replace fp_r, fp_regs and fp_scr by __fp_r, __fp_regs
309 and __fp_scr respectively throughout.
310 * configure.ac: Compile with -Dsiginfo=__siginfo if building with
311 Python using GCC on IRIX.
312 * configure: Regenerate.
314 2010-12-13 Kevin Buettner <kevinb@redhat.com>
316 * solib-svr4.c (enable_break): Don't attempt to place breakpoints,
317 when attaching, on the names in bkpt_names: _start, __start, and
320 2010-12-12 Stan Shebs <stan@codesourcery.com>
322 * value.c (value_of_internalvar): Add case for trace state
325 2010-12-12 Doug Evans <dje@google.com>
327 * dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table.
328 (dwarf2_per_cu_quick_data): Move definition down to "quick functions"
329 section. Delete members lines full_names. Rename read_lines to
331 (quick_file_names): New struct.
332 (hash_file_name_entry, eq_file_name_entry): New functions.
333 (delete_file_name_entry, create_quick_file_names_table): New functions.
334 (dwarf2_read_index): Initialize quick_file_names_table.
335 (dw2_get_file_names): Renamed from dw2_require_line_header.
336 Return pointer to quick_file_names entry. All callers updated.
337 (dw2_get_real_path): Renamed from dw2_require_full_path.
338 Replace per_cu arg with pointer to quick_file_names entry.
340 (dw2_free_cached_file_names): New function.
341 (dw2_forget_cached_source_info): Call it (via htab_traverse_noresize).
342 (dwarf2_initialize_objfile): Initialize quick_file_names_table in
343 the OBJF_READNOW case.
344 (dwarf2_free_objfile): Rewrite freeing of quick file names tables.
346 2010-12-12 Mark Kettenis <kettenis@gnu.org>
348 * mips64obsd-tdep.c (floatformats_mips64_quad): New define.
349 (mips64obsd_init_abi): Set long_double_bit and long_double_format.
351 2010-12-12 Mark Kettenis <kettenis@gnu.org>
353 * sparc-tdep.c: Fix typo in comment.
355 2010-12-10 Doug Evans <dje@google.com>
357 * dwarf2read.c: Whitespace cleanup, plus comment additions.
360 2010-12-10 Tom Tromey <tromey@redhat.com>
362 * NEWS: Document exception-handling change.
364 2010-12-09 Marc Khouzam <marc.khouzam@ericsson.com>
366 * mi/mi-parse.c (mi_parse): Wrong error message.
368 2010-12-09 Doug Evans <dje@google.com>
370 * symfile.h (quick_symbol_functions): Clarify usage of
371 map_symbol_filenames.
373 2010-12-09 Tom Tromey <tromey@redhat.com>
375 * mi/mi-parse.h (mi_parse): Update.
376 * mi/mi-parse.c (mi_parse_cleanup): New function.
377 (mi_parse): Add 'token' argument. Throw exception on error.
378 * mi/mi-main.c (mi_print_exception): New function.
379 (mi_execute_command): Use mi_print_exception. Catch exceptions
382 2010-12-09 Tom Tromey <tromey@redhat.com>
385 * thread.c (clear_thread_inferior_resources): Call
386 delete_longjmp_breakpoint.
387 * infrun.c (handle_inferior_event): Handle exception breakpoints.
388 (handle_inferior_event): Likewise.
389 (insert_exception_resume_breakpoint): New function.
390 (check_exception_resume): Likewise.
391 * inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
392 * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
393 (step_1): Set thread's initiating frame.
394 (until_next_continuation): New function.
395 (until_next_command): Support exception breakpoints.
396 (finish_command_continuation): Delete longjmp breakpoint.
397 (finish_forward): Support exception breakpoints.
398 * gdbthread.h (struct thread_info) <initiating_frame>: New field.
399 * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
400 bp_exception_master>: New constants.
401 (struct bpstat_what) <is_longjmp>: New field.
402 (set_longjmp_breakpoint): Update.
403 * breakpoint.c (create_exception_master_breakpoint): New function.
404 (update_breakpoints_after_exec): Handle bp_exception_master. Call
405 create_exception_master_breakpoint.
406 (print_it_typical): Handle bp_exception_master, bp_exception.
407 (bpstat_stop_status): Handle bp_exception_master.
408 (bpstat_what): Handle bp_exception_master, bp_exception,
410 (bptype_string): Likewise.
411 (print_one_breakpoint_location): Likewise.
412 (allocate_bp_location): Likewise.
413 (set_longjmp_breakpoint): Handle exception breakpoints. Change
415 (delete_longjmp_breakpoint): Handle exception breakpoints.
417 (struct until_break_command_continuation_args) <thread_num>: New
419 (until_break_command_continuation): Call
420 delete_longjmp_breakpoint.
421 (until_break_command): Support exception breakpoints.
422 (delete_command): Likewise.
423 (breakpoint_re_set_one): Likewise.
424 (breakpoint_re_set): Likewise.
426 2010-12-08 Doug Evans <dje@google.com>
428 * gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
430 * gdbtypes.c (check_typedef): Tweak comment.
433 * dwarf2read.c (struct psymtab_cu_index_map): New struct.
434 (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
435 (struct addrmap_index_data): New struct.
436 (add_address_entry): Remove arg `pst', new args `start', `end'.
437 (add_address_entry_worker, write_address_map): New functions.
438 (write_psymtabs_to_index): Address table generation moved to
439 write_address_map. Build a table mapping psymtab to CU index
442 * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
445 * symfile.h (quick_symbol_functions): Clarify usage of
446 expand_symtabs_with_filename.
447 * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
448 comp units, ignore type units.
450 * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
452 2010-12-07 Doug Evans <dje@google.com>
454 * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
458 * NEWS: Mention -data-directory.
459 * main.c (captured_main): Recognize -data-directory.
461 2010-12-06 Marc Khouzam <marc.khouzam@ericsson.com>
463 * mi/mi-parse.c (mi_parse): Missing else.
465 2010-12-04 Masaki Muranaka <monaka@monami-software.com>
467 * configure.tgt: Accept microblaze*-*-linux* for linux target
468 and microblaze*-*-* for as target.
470 2010-12-02 Keith Seitz <keiths@redhat.com>
472 * linespec.c (find_method): Move name canonicalization outside
474 Be paranoid and use a cleanup.
476 2010-12-01 Doug Evans <dje@google.com>
478 * dwarf2read.c (save_gdb_index_command): Add comment.
480 2010-12-01 Ulrich Weigand <uweigand@de.ibm.com>
482 * valops.c (value_assign): Returned value is never lazy. If a
483 C++ class type is returned, fix incorrect enclosing type / embedded
484 offset. If internal variable is returned, allocate new internalvar
485 value using value_of_internalvar.
487 * NEWS: Document changes in behavior of "print x = 0" and similar
490 2010-11-29 Doug Evans <dje@google.com>
492 * python/lib/gdb/printing.py (register_pretty_printer): Change
493 printer-name:subprinter-name to printer-name;subprinter-name.
494 * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
496 (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
498 2010-11-29 Tom Tromey <tromey@redhat.com>
500 * opencl-lang.c (lval_func_check_synthetic_pointer): New
502 * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
504 (value_bits_synthetic_pointer): Declare.
505 * value.c (value_bits_synthetic_pointer): New function.
506 * valprint.c (valprint_check_validity): Handle synthetic
508 * valops.c (value_ind): Use new 'indirect' lval_funcs method.
509 * valarith.c (value_ptradd): Use set_value_component_location.
510 * p-valprint.c (pascal_object_print_value_fields): Handle
512 * jv-valprint.c (java_print_value_fields): Handle synthetic
514 * dwarf2read.c (dwarf_stack_op_name): Add
515 DW_OP_GNU_implicit_pointer.
516 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
517 arguments. Handle location lists.
518 (fill_in_loclist_baton): New function.
519 (dwarf2_symbol_mark_computed): Use it.
520 * dwarf2loc.h (dwarf2_find_location_expression): Declare.
521 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
523 * dwarf2loc.c (dwarf2_find_location_expression): Rename from
524 find_location_expression. No longer static. Update all callers.
525 (dwarf_expr_frame_pc): New function.
526 (per_cu_dwarf_call): Add get_frame_pc, baton arguments. Update
528 (struct piece_closure) <per_cu>: New field.
529 (allocate_piece_closure): Add per_cu argument.
530 (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
531 (check_pieced_value_bits): Remove validity argument, add check_for
532 argument. Handle DWARF_VALUE_IMPLICIT_POINTER.
533 (check_pieced_value_validity, check_pieced_value_invalid):
535 (check_pieced_synthetic_pointer): New function.
536 (get_frame_address_in_block_wrapper): New function.
537 (indirect_pieced_value): New function.
538 (pieced_value_funcs): Update.
539 (invalid_synthetic_pointer): New function.
540 (dwarf2_evaluate_loc_desc_full): Rename from
541 dwarf2_evaluate_loc_desc. Add byte_offset argument.
542 (dwarf2_evaluate_loc_desc): Rewrite.
543 (dwarf2_loc_desc_needs_frame): Set new field on context.
544 (get_ax_pc): New function.
545 (disassemble_dwarf_expression): Handle
546 DW_OP_GNU_implicit_pointer.
547 * dwarf2expr.h (enum dwarf_value_location)
548 <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
549 (struct dwarf_expr_context) <get_frame_pc>: New field.
550 (struct dwarf_expr_piece) <v.ptr>: New field.
551 * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
552 (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
553 * dwarf2-frame.c (no_get_frame_pc): New function.
554 (execute_stack_op): Set new field on context.
555 * cp-valprint.c (cp_print_value_fields): Handle synthetic
558 2010-11-29 Phil Muldoon <pmuldoon@redhat.com>
562 * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
564 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
566 Fix step_resume_breakpoint unsaved during an infcall.
567 * gdbthread.h (struct thread_control_state): Move here field
568 step_resume_breakpoint ...
569 (struct thread_info): ... from here.
570 * infrun.c (save_infcall_control_state): Reset
571 control.step_resume_breakpoint to NULL.
572 (restore_infcall_control_state, discard_infcall_control_state): Delete
573 control.step_resume_breakpoint.
574 * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
577 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
579 Rename and move inferior_thread_state and inferior_status.
580 * gdbthread.h (struct thread_control_state): New struct, move 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 and stop_bpstat here from struct thread_info.
584 (struct thread_suspend_state): New struct, move field stop_signal here
585 from struct thread_info.
586 (struct thread_info): Move the fields above from this struct.
587 * inferior.h: Move the inferior_thread_state and inferior_status
588 declarations comment to their definitions at infrun.c.
589 (struct inferior_control_state): New struct, move field stop_soon from
590 struct inferior here.
591 (struct inferior_suspend_state): New empty struct.
592 (struct inferior): New fields control and suspend. Move out field
594 * infrun.c (struct inferior_thread_state): Rename to ...
595 (infcall_suspend_state): ... here. Replace field stop_signal by
596 fields thread_suspend and inferior_suspend.
597 (save_inferior_thread_state): Rename to ...
598 (save_infcall_suspend_state): ... here. New variable inf. Update the
600 (restore_inferior_thread_state): Rename to ...
601 (restore_infcall_suspend_state): ... here. New variable inf. Update
602 the code for new fields.
603 (do_restore_inferior_thread_state_cleanup): Rename to ...
604 (do_restore_infcall_suspend_state_cleanup): ... here.
605 (make_cleanup_restore_inferior_thread_state): Rename to ...
606 (make_cleanup_restore_infcall_suspend_state): ... here.
607 (discard_inferior_thread_state): Rename to ...
608 (discard_infcall_suspend_state): ... here.
609 (get_inferior_thread_state_regcache): Rename to ...
610 (get_infcall_suspend_state_regcache): ... here.
611 (struct inferior_status): Rename to ...
612 (struct infcall_control_state): ... here. Replace fields
613 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
614 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
615 stop_step, stop_bpstat and stop_soon by fields thread_control and
617 (save_inferior_status): Rename to ...
618 (save_infcall_control_state): ... here. Update the code for new
620 (restore_inferior_status): Rename to ...
621 (restore_infcall_control_state): ... here. Update the code for new
623 (do_restore_inferior_status_cleanup): Rename to ...
624 (do_restore_infcall_control_state_cleanup): ... here.
625 (make_cleanup_restore_inferior_status): Rename to ...
626 (make_cleanup_restore_infcall_control_state): ... here.
627 (discard_inferior_status): Rename to ...
628 (discard_infcall_control_state): ... here.
629 * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
630 exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
631 inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
632 mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
633 solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
634 references to the moved fields and renamed functions.
636 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
638 * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
640 (save_inferior_thread_state): Reset tp->stop_signal.
642 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
644 * infcall.c (call_function_by_hand): Remove variable
645 caller_state_cleanup.
647 2010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
651 * breakpoint.c (is_marker_spec): Check for NULL.
653 2010-11-25 Pedro Alves <pedro@codesourcery.com>
655 * breakpoint.h: No longer include python.h or python-internal.h.
656 (struct breakpoint_object): Forward declare.
657 * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
658 * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
659 * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
661 (gdbpy_breakpoint_created): Remove casts around py_bp_object
664 2010-11-24 Joel Brobecker <brobecker@adacore.com>
666 * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
667 only if HAVE_ELF is defined.
669 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
672 * infrun.c (struct inferior_status) <stepping_over_breakpoint>
673 (save_inferior_status) <stepping_over_breakpoint>
674 (restore_inferior_status) <stepping_over_breakpoint>: Rename to
676 (struct inferior_status) <step_resume_break_address>: Remove.
678 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
681 * infrun.c (struct inferior_status, save_inferior_status)
682 (restore_inferior_status): Group and reorder the fields, comment their
685 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
689 (struct dict_vector) <iter_match_first, iter_match_next>
690 (iter_match_first_hashed, iter_match_next_hashed)
691 (iter_match_first_linear, iter_match_next_linear)
692 (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
693 (iter_match_next_hashed, iter_match_first_linear)
694 (iter_match_next_linear): Use symbol_compare_ftype.
695 * dictionary.h: Include symfile.h.
696 (dict_iter_match_first, dict_iter_match_next): Use
697 symbol_compare_ftype.
698 * dwarf2read.c (dw2_map_matching_symbols): Likewise.
699 * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
700 (map_matching_symbols_psymtab): Likewise.
701 * symfile.h (symbol_compare_ftype): New typedef.
702 (struct quick_symbol_functions) <map_matching_symbols): Use
703 symbol_compare_ftype.
705 2010-11-23 Tom Tromey <tromey@redhat.com>
707 * configure: Rebuild.
708 * configure.ac (READLINE_TEXI_INCFLAG): New subst.
710 2010-11-19 Tom Tromey <tromey@redhat.com>
712 * Makefile.in (SUBDIRS): Add doc.
713 * configure: Rebuild.
714 * configure.ac: Don't configure in doc. Create doc/Makefile.
716 2010-11-23 Phil Muldoon <pmuldoon@redhat.com>
720 * python/py-inferior.c (find_thread_object): Check if PIDGET
723 010-11-22 Joel Brobecker <brobecker@adacore.com>
725 * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
727 2010-11-22 Joel Brobecker <brobecker@adacore.com>
729 * ada-lang.c (ada_to_fixed_type): Expand function documentation.
730 Return the original type if the main type portions match rather
731 than when the type themselves match.
733 2010-11-22 Joel Brobecker <brobecker@adacore.com>
735 * ada-lang.c (ada_template_to_fixed_record_type_1):
736 For dynamic fields, check the field size against the maximum
739 2010-11-22 Joel Brobecker <brobecker@adacore.com>
741 * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
743 (mips_irix_n32_stack_tramp_frame): New static global.
744 (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
747 2010-11-22 Jerome Guitton <guitton@adacore.com>
749 * ada-tasks.c (get_tcb_types_info): Use C lookups to get
752 2010-11-22 Joel Brobecker <brobecker@adacore.com>
754 * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
755 if type1 is a typedef.
757 2010-11-22 Joel Brobecker <brobecker@adacore.com>
759 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
760 "_finalizer" to the list.
762 2010-11-22 Joel Brobecker <brobecker@adacore.com>
764 * symfile.c: Remove all "#if 0"/"#endif" blocks.
766 2010-11-22 Joel Brobecker <brobecker@adacore.com>
768 * symfile.c: Add missing second space after period in various comments.
770 2010-11-22 Joel Brobecker <brobecker@adacore.com>
772 * ada-typeprint.c (print_array_type): Fix formatting in comment.
773 (print_selected_record_field_types): Fix formatting in function
776 2010-11-22 Joel Brobecker <brobecker@adacore.com>
778 * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
779 in name of "show ravenscar" prefix command name.
781 2010-11-22 Joel Brobecker <brobecker@adacore.com>
783 * ravenscar-thread.c (show_ravenscar_task_switching_command):
784 Add missing '\n' in output.
786 2010-11-22 Joel Brobecker <brobecker@adacore.com>
788 * ravenscar-thread.c (running_thread_name): Change value.
789 (read_thread_id): Remove advance declaration.
790 (get_running_thread_msymbol): New function.
791 (has_ravenscar_runtime): Use get_running_thread_msymbol to
792 compute msym_running_thread.
793 (get_running_thread_id): Renames read_thread_id. Slight modifications
794 to not take any argument anymore, using get_running_thread_msymbol
795 to determine which symbol to use instead.
796 (ravenscar_running_thread): Use get_running_thread_id instead of
799 2010-11-22 Joel Brobecker <brobecker@adacore.com>
801 * ravenscar-sparc-thread.c (supply_register_at_address):
802 Fix passing of buf in call to regcache_raw_supply.
804 2010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
806 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
808 2010-11-22 Tom Tromey <tromey@redhat.com>
810 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
812 2010-11-19 Keith Seitz <keiths@redhat.com>
814 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
815 Remove extraneous '/' after $(DESTDIR).
816 (PYTHON_INSTALL_DIR): Likewise.
818 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
820 Fix stale memory references.
821 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
824 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
825 Tom Tromey <tromey@redhat.com>
827 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
828 (.PHONY): Remove for .y outputs.
830 2010-11-19 Will Drewry <wad@google.com>
831 Tavis Ormandy <taviso@google.com>
832 Jan Kratochvil <jan.kratochvil@redhat.com>
834 * dwarf2read.c (decode_locdesc): Enforce location description stack
837 2010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
839 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
840 instruction is found.
842 2010-11-17 Tom Tromey <tromey@redhat.com>
844 * value.c (value_entirely_optimized_out): Check the
845 'check_any_valid' field.
847 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
849 * ada-lang.c (modify_general_field): Remove.
850 (make_array_descriptor): Replace all modify_general_field calls by
852 * value.c (modify_field): Update comment. New variable bytesize.
853 Normalize BITPOS. Initialize BYTESIZE, use it.
855 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
857 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
858 elements after xfree.
860 2010-11-16 Tom Tromey <tromey@redhat.com>
862 * gdb-add-index.sh: Really remove.
864 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
867 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
868 (init_one_comp_unit): ... this one.
869 (prepare_one_comp_unit): New prototype.
870 (dw2_require_line_header, process_psymtab_comp_unit): Use
872 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
873 (load_partial_comp_unit): Remove variable attr. Use
874 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
875 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
876 prepare_one_comp_unit.
877 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
878 Use prepare_one_comp_unit.
879 (alloc_one_comp_unit): Rename to ...
880 (init_one_comp_unit): ... here and remove there calloc, new parameter
882 (prepare_one_comp_unit): New function.
884 2010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
886 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
887 possible used of uninitialized variable.
889 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
891 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
892 (rs6000_gdbarch_init): Call it.
894 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
896 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
897 instructions if debugging an E500 binary.
899 2010-11-12 Tom Tromey <tromey@redhat.com>
901 * varobj.c (value_get_print_value): Rearrange. Pass stream to
902 apply_varobj_pretty_printer.
903 * c-lang.c: Include exceptions.h.
904 (c_get_string): Throw MEMORY_ERROR when appropriate.
905 * python/py-prettyprint.c (enum string_repr_result): New.
906 (print_stack_unless_memory_error): New function.
907 (print_string_repr): Change return type. Use
908 print_stack_unless_memory_error.
909 (print_children): Use print_stack_unless_memory_error.
910 (apply_val_pretty_printer): Update. Don't print children if
911 string representation threw an exception.
912 (apply_varobj_pretty_printer): Add 'stream' argument. Use
913 print_stack_unless_memory_error.
914 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
916 (_initialize_python): Initialize them.
917 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
918 gdbpy_convert_exception.
919 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
920 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
921 (gdbpy_convert_exception): Declare.
922 (apply_varobj_pretty_printer): Update.
923 * python/py-utils.c (gdbpy_convert_exception): New function.
925 2010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
927 * mi/mi-main.c (mi_cmd_target_detach): Accept new
928 thread-group id format.
930 2010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
932 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
934 2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
936 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
938 (BPPY_SET_REQUIRE_VALID): Ditto.
939 (bpnum_is_valid): Delete function.
940 (bppy_get_visibility): New function.
941 (bppy_new): Parse for, and validate internal keyword. Pass
942 internal keyword to breakpoint or watchpoint functions.
943 (build_bp_list): New function.
944 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
945 iterate_over_breakpoints.
946 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
948 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
949 to internal breakpoint chain.
951 * breakpoint.c (set_breakpoint_number): New function.
952 (breakpoint_1): Check if breakpoint number is more than zero.
953 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
954 (create_breakpoint_sal): Take a new parameter called internal.
955 Call set_breakpoint_number with internal parameter. Do not
956 mention internal breakpoints. All callers updated.
957 (create_breakpoint): Ditto.
958 (create_breakpoints_sal): Ditto.
959 (watch_command_1): Ditto.
960 (watch_command_wrapper): Take a new parameter called internal.
962 (rwatch_command_wrapper): Ditto.
963 (awatch_command_wrapper): Ditto.
964 (save_breakpoints): Update breakpoint save condition check.
965 (iterate_over_breakpoints): New function.
966 * breakpoint.h: Add conditional python includes. Add py_bp_object
967 and comment to struct breakpoint. Update all callers.
968 * defs.h: Add PyObject definition for GDB builds without Python.
970 2010-11-10 Doug Evans <dje@google.com>
972 * python/lib/gdb/command/pretty_printers.py
973 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
975 * value.c (set_value_enclosing_type): Renamed from
976 value_change_enclosing_type. All callers updated.
977 * value.h (set_value_enclosing_type): Update.
978 * valops.c (value_full_object): Always return a copy if we need to
979 make changes to the input value.
981 2010-11-09 Pedro Alves <pedro@codesourcery.com>
983 * breakpoint.c (watch_command_1): Get a pointer of the lazy
984 version of the expression's value, even if reading the value from
985 memory fails. When creating a -location watchpoint, get the
986 value's address from the lazy value pointer.
988 2010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
990 * infrun.c (restore_inferior_thread_state): Use
991 discard_inferior_thread_state to free the data.
992 (discard_inferior_thread_state): xfree also siginfo_data.
994 2010-11-05 Doug Evans <dje@google.com>
996 Make gdb.parameter("directories") work.
997 New command "set directories".
998 * NEWS: Document them.
999 * source.c (set_directories_command): New function.
1000 (show_directories_1): Renamed from show_directories.
1001 All callers updated.
1002 (show_directories_command): New function.
1003 (_initialize_source): Install "directories" as a set/show
1004 variable instead of just a show command.
1006 2010-11-05 Ken Werner <ken.werner@de.ibm.com>
1008 * NEWS: Mention OpenCL C language support.
1009 * Makefile.in (SFILES): Add opencl-lang.c.
1010 (COMMON_OBS): Add opencl-lang.o.
1011 * opencl-lang.c: New File
1012 * defs.h (enum language): Add language_opencl.
1013 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
1014 IBM XL C OpenCL compiler.
1015 * c-lang.h: Include "parser-defs.h".
1016 (evaluate_subexp_c): Declare.
1017 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
1018 (c_op_print_tab): Add declaration.
1019 * eval.c (binop_promote): Handle language_opencl.
1020 * c-exp.y: Lookup the primitive types instead of referring to the
1023 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1025 Fix configure --enable-plugins --without-python.
1026 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
1027 * configure: Regenerate.
1029 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1031 * solib.c (solib_read_symbols): Call exception_fprintf even without
1032 FROM_TTY. Print also so->so_name.
1034 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
1036 * gdbtypes.h (struct rank): Created subrank.
1037 * gdbtypes.c: Initialized subrank for all
1038 'BADNESS' constants.
1039 (distance_to_ancestor): New function.
1040 (is_ancestor): Use distance_to_ancestor.
1041 (is_public_ancestor): Ditto.
1042 (sum_ranks): Handle subrank.
1043 (compare_ranks): Ditto.
1044 (rank_one_type): Subrank base conversions.
1046 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
1048 * gdbtypes.h: Create struct rank.
1049 Convert all 'BADNESS' macros to const struct rank declarations.
1050 (sum_ranks): New function.
1051 (compare_ranks): New function.
1052 * valops.c (find_oload_champ): Updated.
1053 (classify_oload_match): Use compare_ranks.
1055 (compare_parameters): Use compare_ranks.
1056 * gdbtypes.c: Initialize 'BADNESS' constants.
1057 (sum_ranks): New function.
1058 (compare_ranks): New function.
1059 (compare_badness): Use compare_ranks.
1060 (rank_function): Use global constants instead of literals.
1061 (rank_one_type): Ditto.
1065 2010-11-04 Doug Evans <dje@google.com>
1067 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
1068 (find_pretty_printer): Fix comments.
1070 2010-11-04 Hui Zhu <teawater@gmail.com>
1072 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
1074 2010-11-03 Joel Brobecker <brobecker@adacore.com>
1076 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
1077 and `len' declaration and computation inside block where they
1080 2010-11-03 Joel Brobecker <brobecker@adacore.com>
1082 * valprint.c (val_print_array_elements): Put back handling of
1085 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
1087 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
1088 DIE and set the length of the type.
1089 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
1090 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
1091 return 0 if the corresponding bounds of the type are undefined.
1092 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
1093 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
1094 (val_print_array_elements): Use get_array_bounds to compute the number
1095 of array elements instead of dividing the length of the array by the
1096 length of the element types.
1097 * valarith.c (vector_binop): Likewise.
1098 * valops.c (value_cast): Likewise.
1099 * c-valprint.c (c_val_print): Likewise.
1100 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1102 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
1104 * valarith.c (value_pos, value_neg, value_complement): Handle
1106 * valops.c (value_one): Likewise.
1108 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
1110 * value.h (value_non_lval): Declare.
1111 * value.c (value_non_lval): New function.
1112 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
1113 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
1116 2010-11-02 Doug Evans <dje@google.com>
1118 New python module gdb.printing, and new commands info pretty-printer,
1119 enable pretty-printer, disable pretty-printer.
1120 * NEWS: Mention them.
1121 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
1122 gdb/command/__init__.py, gdb/command/pretty_printers.py.
1123 * python/lib/gdb/__init__.py: Install pretty-printer commands.
1124 * python/lib/gdb/printing.py: New file.
1125 * python/lib/gdb/command/__init__.py: New file.
1126 * python/lib/gdb/command/pretty_printers.py: New file.
1128 2010-11-02 Tom Tromey <tromey@redhat.com>
1130 * NEWS: Mention Guile removal.
1131 * defs.h (enum language) <language_scm>: Remove.
1132 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
1134 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
1135 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
1136 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
1139 2010-11-02 Doug Evans <dje@google.com>
1141 * top.c: #include "python/python.h".
1142 (gdb_init): Add a comment regarding initialize_all_files.
1143 Call finish_python_initialization at the end.
1144 * python/python.h (finish_python_initialization): Declare.
1145 * python/python.c (finish_python_initialization): New function.
1146 (_initialize_python): Move python-implemented initialization there
1148 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
1150 2010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1153 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1154 Pedro Alves <pedro@codesourcery.com>
1155 * gdbthread.h (currently_stepping): New declaration.
1156 * infrun.c (currently_stepping): Remove the forward declaration.
1157 (currently_stepping): Make it global.
1158 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1159 variables tp and step, initialized them. Pass STEP to to_resume.
1160 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1161 * remote.c (currently_stepping_callback): New.
1162 (remote_vcont_resume)
1163 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1164 New variable tp. Call currently_stepping_callback and step such
1167 2010-11-01 Hui Zhu <teawater@gmail.com>
1169 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
1171 2010-10-28 Hui Zhu <teawater@gmail.com>
1173 * tracepoint.c (trace_save): Change utp->actions to
1176 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1178 * (_FILE_OFFSET_BITS): Fix typo in comment.
1180 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1182 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
1183 (PyEval_InitThreads): Remove duplicate. Define as nothing.
1184 (PyEval_ReleaseLock): Define as nothing.
1186 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1188 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
1189 by call to FILENAME_CMP.
1191 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1193 * dictionary.c (dict_hash): Move assignment out of if condition.
1195 2010-10-22 Jie Zhang <jie@codesourcery.com>
1197 * Makefile.in (install): Remove dependency of install-only and
1198 recursively invoke make for install-only.
1199 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
1200 (install): Pass FLAGS_TO_PASS when recursively make install-only.
1202 2010-10-20 Hui Zhu <teawater@gmail.com>
1204 * tracepoint.c (tfile_get_traceframe_address): Call
1205 extract_signed_integer.
1206 (tfile_trace_find): Call extract_signed_integer and
1207 extract_unsigned_integer. Change data_size to unsigned int.
1208 (tfile_fetch_registers): Call extract_unsigned_integer.
1209 (tfile_xfer_partial): Ditto.
1210 (tfile_get_trace_state_variable_value): Call
1211 extract_signed_integer and extract_unsigned_integer.
1213 2010-10-20 Vladimir Prus <vladimir@codesourcery.com>
1215 * remote.c (remote_get_threadlist): If we got empty
1216 response, bail out immediately, and don't emit any
1219 2010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1221 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
1222 for "mov pc, REG" as well.
1223 (thumb_instruction_changes_pc): Likewise.
1225 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1228 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
1229 * eval.c (evaluate_subexp_standard): Check for overload of
1231 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
1232 (value_x_unop): Ditto.
1233 * valops.c: Include "exceptions.h".
1234 (find_overload_match): Throw NOT_FOUND_ERROR.
1235 (value_struct_elt): Ditto.
1237 2010-10-19 Tom Tromey <tromey@redhat.com>
1239 * python/py-cmd.c (cmdpy_function): Unreference exception state.
1241 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1243 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
1244 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
1246 Make all other conversions illegal.
1248 2010-10-18 Doug Evans <dje@google.com>
1250 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
1251 assumptions of when this case happens. Print "<unnamed typedef>".
1253 2010-10-18 Tom Tromey <tromey@redhat.com>
1255 * valprint.c (val_print_string): Pass 'encoding' to
1258 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1260 Fix the `stopped language detection' testcase for gcc-4.5.
1261 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
1262 * symfile.c (set_initial_language): Move variable filename to a more
1263 inner block. Prefer LANGUAGE_OF_MAIN.
1264 * symtab.c (language_of_main): New variable.
1265 (set_main_name): Always reset LANGUAGE_OF_MAIN.
1266 * symtab.h (language_of_main): New declaration.
1268 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1269 Pedro Alves <pedro@codesourcery.com>
1271 * gdbthread.h (currently_stepping): New declaration.
1272 * infrun.c (currently_stepping): Remove the forward declaration.
1273 (currently_stepping): Make it global.
1274 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1275 variables tp and step, initialized them. Pass STEP to to_resume.
1276 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1277 * remote.c (currently_stepping_callback): New.
1278 (remote_vcont_resume)
1279 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1280 New variable tp. Call currently_stepping_callback and step such
1283 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1285 * infrun.c (follow_exec): Replace symbol_file_add_main by
1286 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
1288 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
1290 * objfiles.c (free_all_objfiles): Likewise.
1291 * remote-m32r-sdi.c (m32r_load): Likewise.
1292 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1293 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
1294 clear_symtab_users with ADD_FLAGS.
1295 (reread_symbols): Use parameter 0 for clear_symtab_users.
1296 (clear_symtab_users): New parameter add_flags. Do not call
1297 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
1298 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
1299 * symtab.h (clear_symtab_users): New parameter add_flags.
1301 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1303 Fix GCC false warning.
1304 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
1306 2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
1308 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
1309 display of type of method arguments.
1311 2010-10-15 Tom Tromey <tromey@redhat.com>
1314 * varobj.c (value_get_print_value): Use val_print_string to print
1316 * python/py-prettyprint.c (print_string_repr): Use
1317 val_print_string to print lazy strings. Fix cleanup logic.
1318 (print_children): Likewise.
1319 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
1320 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
1321 Change return type to 'void', add 'addr' argument.
1322 * value.h (val_print_string): Update.
1323 * valprint.c (val_print_string): Add 'encoding' argument.
1324 * printcmd.c (print_formatted): Update.
1325 * p-valprint.c (pascal_val_print): Update.
1326 * m2-valprint.c (print_unpacked_pointer): Update.
1327 (m2_print_array_contents): Likewise.
1328 * jv-valprint.c (java_value_print): Update.
1329 * f-valprint.c (f_val_print): Update.
1330 * c-valprint.c (c_val_print): Update.
1331 * auxv.c (fprint_target_auxv): Update.
1333 2010-10-15 Doug Evans <dje@google.com>
1334 Jan Kratochvil <jan.kratochvil@redhat.com>
1337 * gdbtypes.c (check_typedef): Clean up function comment.
1338 Keep track of instance flags as we strip typedefs and create a new
1339 type to preserve them if necessary.
1340 * gdbtypes.h (type) <instance_flags>: Extend the comment.
1342 2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1344 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
1346 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
1348 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
1349 * gdbtypes.c (rank_one_type): Move type comparison code out of here
1351 (types_equal): ...here. And changed it as follows:
1352 Outside of typedefs type must be of the same TYPE_CODE.
1353 When compairing two pointers or references they are equal if their
1355 Correct pointer conversions.
1357 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
1359 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
1360 having fields without names.
1362 2010-10-13 Tom Tromey <tromey@redhat.com>
1364 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
1366 2010-10-13 Doug Evans <dje@google.com>
1368 New python module gdb.types.
1369 * NEWS: Document it.
1370 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
1371 * python/lib/gdb/types.py: New file.
1373 * c-typeprint.c: Whitespace cleanup.
1374 (cp_type_print_method_args): Remove unnecessary forward decl.
1375 (cp_type_print_derivation_info): Ditto.
1376 (c_type_print_varspec_prefix): Mark as static at definition.
1377 (c_type_print_modifier): Fix arg descriptions.
1379 2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1381 * python/py-breakpoint.c (bppy_set_condition): New comment.
1382 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
1383 failed PyUnicode_Decode.
1384 (cmdpy_completer): Skip element for failed
1385 python_string_to_host_string.
1386 (cmdpy_init): Return -1 on failed python_string_to_host_string.
1387 * python/py-frame.c (frapy_read_var): Extend the function comment.
1388 * python/py-function.c (fnpy_init): Return -1 on failed
1389 python_string_to_host_string.
1390 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
1391 the function comment.
1392 (infpy_search_memory): Extend the function comment. Remove the
1393 PyErr_SetString call on already set error state.
1394 * python/py-param.c (set_parameter_value): Extend the function
1395 comment. Return -1 on failed python_string_to_host_string, twice.
1396 (set_attr): Extend the function comment.
1397 (compute_enum_values): Extend the function comment. New variable
1398 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
1399 failed python_string_to_host_string.
1400 (get_doc_string): Call gdbpy_print_stack on failed
1401 python_string_to_host_string.
1402 (parmpy_init): Extend the function comment.
1403 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
1404 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
1405 failed python_string_to_host_string.
1406 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
1407 (valpy_binop, valpy_richcompare): Extend the function comment.
1409 (struct python_env) <error_type, error_value, error_traceback>: New
1411 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
1412 (ensure_python_env): Call PyErr_Fetch.
1413 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
1414 failed convert_value_from_python.
1415 (value_get_print_value): Call gdbpy_print_stack on failed
1416 python_string_to_target_python_string.
1418 2010-10-12 Tom Tromey <tromey@redhat.com>
1420 * python/py-prettyprint.c (search_pp_list): Fix error checking.
1422 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
1424 * gdbtypes.c (do_is_ancestor): New function.
1425 (is_ancestor): Use do_is_ancestor.
1426 (is_public_ancestor): Use do_is_ancestor.
1428 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
1430 * ser-go32.c (struct dos_ops): Add missing fdopen field.
1432 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1434 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
1436 2010-10-11 Doug Evans <dje@google.com>
1438 * c-typeprint.c (c_type_print_modifier): Add note that this prints
1439 the address space id too.
1441 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1443 Fix attaching to re-prelinked executables on ppc64.
1444 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
1445 initialize it, try to adjust FILESZ field by it.
1447 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
1449 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
1450 messages if info_verbose.
1452 2010-10-08 Ken Werner <ken.werner@de.ibm.com>
1454 * valops.c (value_cast): Handle vector types.
1455 * valarith.c (value_binop): Widen scalar to vector if appropriate.
1457 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1459 * arm-tdep.c (thumb_expand_immediate): New function.
1460 (thumb_instruction_changes_pc): Likewise.
1461 (thumb2_instruction_changes_pc): Likewise.
1462 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
1463 prologue parsing. Improved support for optimized code.
1464 (thumb_scan_prologue): Do not reply on line-number information,
1465 use same heuristics as arm_scan_prologue insead.
1466 (skip_prologue_function): Accept functions
1467 "__tls_get_addr" and "__aeabi_read_tp".
1469 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1470 Daniel Jacobowitz <dan@codesourcery.com>
1472 * arm-tdep.c (thumb_in_function_epilogue_p)
1473 (arm_in_function_epilogue_p): New.
1474 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
1475 gdbarch_in_function_epilogue_p callback.
1477 2010-10-07 Doug Evans <dje@google.com>
1479 * cc-with-index.sh (output_file): Default to a.out.
1481 * dwarf2read.c (mapped_index): Rename member index_table to
1482 symbol_table and index_table_slots to symbol_table_slots.
1484 (create_symbol_hash_table): Renamed from create_index_table.
1485 All callers updated.
1486 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
1487 (write_hash_table): Rename local index_table to symbol_hash_table.
1489 * addrmap.h (addrmap_foreach_fn): New typedef.
1490 (addrmap_foreach): Declare.
1491 * addrmap.c (struct addrmap_funcs): New member foreach.
1492 (addrmap_foreach): New function.
1493 (addrmap_fixed_foreach): New function.
1494 (addrmap_fixed_funcs): Update.
1495 (struct mutable_foreach_data): New struct.
1496 (addrmap_mutable_foreach_worker): New function.
1497 (addrmap_mutable_foreach): New function.
1498 (addrmap_mutable_funcs): Update.
1500 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1502 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
1505 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1507 * ada-lang.c (full_match): Declare.
1508 (ada_match_name): Rename to match_name (we should avoid prefixing static
1509 symbols with "ada_").
1510 (match_name): New name for ada_match_name.
1511 (struct ada_psym_data): Remove and replace with...
1512 (struct match_data): User data for map_matching_symbols.
1513 (ada_add_psyms): Remove.
1514 (aux_add_nonlocal_symbols): New function, used as callback for
1515 map_matching_symbols.
1516 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
1518 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
1519 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
1520 Rework to use map_matching_symbols instead of map_ada_symtabs.
1521 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
1522 * psymtab.c: Include dependency on dictionary.h.
1523 (match_partial_symbol): New function.
1524 (ada_lookup_partial_symbol): Remove.
1525 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
1526 (map_matching_symbols_psymtab): New function.
1527 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
1528 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
1530 2010-10-06 Paul Hilfinger <hilfinger@adacore.com>
1532 * ada-lang.c (ada_match_name): Use new API for wild_match.
1533 (wild_match): Change API to be consistent with that of strcmp_iw;
1534 return 0 for a match, and switch operand order.
1535 (full_match): New function.
1536 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
1537 matching to allow use of hashing.
1538 * dictionary.c (struct dict_vector): Generalize iter_name_first,
1539 iter_name_next ot iter_match_first, iter_match_next.
1540 (iter_name_first_hashed): Replace with iter_match_first_hashed.
1541 (iter_name_next_hashed): Replace with iter_match_next_hashed.
1542 (iter_name_first_linear): Replace with iter_match_first_linear.
1543 (iter_name_next_linear): Replace with iter_match_next_linear.
1544 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
1545 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
1546 (dict_iter_match_first): New function.
1547 (dict_iter_match_next): New function.
1548 (dict_hash): New function.
1549 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
1550 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
1552 2010-10-06 Doug Evans <dje@google.com>
1554 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
1556 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1558 * dwarf2read.c (read_tag_const_type): Handle const arrays.
1560 2010-10-06 Doug Evans <dje@google.com>
1562 * Makefile.in (REQUIRED_SUBDIRS): New var.
1563 (subdir_do): Verify required subdir Makefiles exist.
1565 Create subdir data-directory.
1566 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
1567 data-directory/Makefile.in.
1568 (SUBDIRS): Add data-directory.
1569 (all): Remove xml-syscall-copy dependency.
1570 (xml-syscall-copy): Moved to data-directory/Makefile.in as
1572 (xml-syscall-install): Moved to data-directory/Makefile.in as
1574 (install-only): Remove xml-syscall-install dependency.
1575 (all-data-directory): New rule.
1576 (data-directory/Makefile): New rule.
1577 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
1578 * configure: Regenerate.
1579 * data-directory/Makefile.in: New file.
1580 * python/lib/gdb/__init__.py: New file.
1582 2010-10-06 Joel Brobecker <brobecker@adacore.com>
1584 Fix ARI warnings in advance_wild_match.
1585 * ada-lang.c (advance_wild_match): Delete local variable t2.
1586 Adjust code accordingly. Minor reformatting.
1588 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1590 * gdbtypes.h (struct main_type): Remove flag_nottext.
1591 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
1592 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
1593 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
1594 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
1595 of TYPE_FLAG_NOTTEXT.
1596 (init_type): Remove the initialization of the flag_nottext field.
1597 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
1599 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
1601 2010-10-04 Doug Evans <dje@google.com>
1603 * cc-with-index.sh: New file.
1605 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
1607 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
1608 (create_cus_from_index, create_addrmap_from_index): Ditto.
1609 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
1610 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
1611 (dw2_do_expand_symtabs_matching): Ditto.
1612 (eq_strtab_entry, create_strtab, add_string): Ditto.
1613 (hash_strtab_entry): Ditto.
1614 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
1615 (create_index_table, create_mapped_symtab, find_slot): Ditto.
1616 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
1617 (write_hash_table, add_address_entry, write_psymbols): Ditto.
1618 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
1619 (write_psymtabs_to_index): Ditto.
1621 2010-10-04 Joel Brobecker <brobecker@adacore.com>
1623 * ada-lang.c: #include "value.h".
1624 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
1625 arguments. Implement using value_allocate_space_in_inferior
1626 instead of allocating memory from the stack.
1627 (make_array_descriptor): Remove gdbarch and sp parameters. Update
1628 calls to ensure_lval.
1629 (ada_convert_actual): Remove gdbarch and sp parameters. Update
1630 calls to make_array_descriptor and ensure_lval.
1631 * ada-lang.h (ada_convert_actual): Update declaration.
1632 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
1634 2010-10-04 Doug Evans <dje@google.com>
1636 * python/python.c (_initialize_python): Define new function
1637 GdbSetPythonDirectory in python. Use it to update sys.path and
1640 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1642 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
1643 incorporating and generalizing print_record_field_types.
1644 (print_record_field_types): Change return value and update comment.
1645 Re-implement using print_selected_record_field_types.
1646 (print_choices): Print "=>" here.
1647 Handle case of unencoded variant branch.
1648 (print_variant_clauses): Reformat comment.
1649 Special-case unencoded variant branch.
1651 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1653 * ada-lang.c (wild_match): Reimplement.
1654 Change API to eliminate unused length argument, reverse arguments and
1655 make 0 the 'true' return value.
1656 (advance_wild_match): New auxiliary function for wild_match to improve
1658 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1659 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1661 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1663 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1665 2010-10-01 Doug Evans <dje@google.com>
1667 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1668 for `save gdb-index' command.
1670 2010-10-01 Tom Tromey <tromey@redhat.com>
1672 * symfile.h (allocate_symtab): Update.
1673 * symfile.c (allocate_symtab): Make 'filename' const.
1674 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1675 (add_psymbol_to_list): Likewise.
1676 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1678 (add_psymbol_to_list): Update.
1679 * mdebugread.c (new_symtab): Make 'name' const.
1680 (psymtab_to_symtab_1): Make 'filename' const.
1681 * elfread.c (elfstab_offset_sections): Update.
1682 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1683 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1684 (psymtab_include_file_name): Update.
1685 * dbxread.c (find_stab_function_addr): Make 'filename' const.
1686 * buildsym.h (start_subfile): Update.
1687 * buildsym.c (start_subfile): Make arguments const.
1689 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
1691 * fork-child.c (breakup_args): Fix crash if shell forking is
1692 disabled at compile time.
1694 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1696 * ada-lang.c (desc_bounds): Add handling of the case where
1697 the P_BOUNDS field is a pointer to a stub.
1698 (desc_data_target_type): Same for P_ARRAY field.
1699 (ada_check_typedef): Strip the typedef layers from the type
1700 found by ada_find_any_type.
1702 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1704 * sparc-tdep.c (sparc32_frame_align): New function.
1705 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1706 * sparc64-tdep.c (sparc64_frame_align): New function.
1707 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1709 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
1711 * defs.h (MAX_REGISTER_SIZE): Set to 64.
1713 2010-09-30 Tom Tromey <tromey@redhat.com>
1715 * symfile.h (struct sym_fns) <next>: Remove.
1716 (add_symtab_fns): Update.
1717 * symfile.c (sym_fns_ptr): New typedef.
1718 (symtab_fns): Now a VEC.
1719 (add_symtab_fns): Update. Change argument type.
1720 (find_sym_fns): Update. Change return type.
1721 (get_symfile_segment_data): Update.
1722 * objfiles.h (struct objfile) <sf>: Now const.
1723 * somread.c (som_sym_fns): Now const. Update.
1724 * xcoffread.c (xcoff_sym_fns): Now const. Update.
1725 * mipsread.c (ecoff_sym_fns): Now const. Update.
1726 * machoread.c (macho_sym_fns): Now const. Update.
1727 * elfread.c (elf_sym_fns): Now const. Update.
1728 (elf_sym_fns_gdb_index): Likewise.
1729 * dbxread.c (aout_sym_fns): Now const. Update.
1730 * coffread.c (coff_sym_fns): Now const. Update.
1732 2010-09-30 Tom Tromey <tromey@redhat.com>
1734 * value.c (value_primitive_field): Take 'offset' into account for
1737 2010-09-30 Tom Tromey <tromey@redhat.com>
1739 * completer.c (count_struct_fields): Handle anonymous structs and
1741 (add_struct_fields): Likewise.
1743 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1745 Fix printing parameters of inlined functions.
1746 * ada-lang.c (is_known_support_routine)
1747 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1748 for find_frame_funname.
1749 * python/py-frame.c (frapy_name): Likewise.
1750 * stack.c (find_frame_funname): New parameter funcp. Update the
1751 function comment. Fill it in.
1752 (print_frame): New variable func. Initialize it by
1753 find_frame_funname. Print arguments only if FUNC is not NULL. Use
1754 FUNC as the parameter of print_args_stub.
1755 * stack.h (find_frame_funname): New parameter funcp. Remove the
1756 function declaration comment.
1758 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1761 * inferior.c (have_live_inferiors): New variables old_chain, inf and
1762 tp. Iterate INFERIOR_LIST and call target_has_execution.
1764 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1766 Fix GDB crash on inferior calls with self-referencing classes.
1767 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1770 2010-09-29 Doug Evans <dje@google.com>
1772 Workaround for gcc/45682.
1773 * dwarf2read.c (partial_die_info): New fields fixup_called,
1775 (guess_partial_die_structure_name): Renamed from guess_structure_name.
1776 Move definition next to use. Use linkage_name to determine if class
1777 is in a namespace. All callers updated.
1778 (fixup_partial_die): Return early if already called.
1779 Set fixup_called when done.
1780 (guess_full_die_structure_name): New function.
1781 (determine_prefix): Call it for class/struct/union dies if c++ and
1782 .debug_types section is present and parent is DW_TAG_compile_unit.
1784 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1786 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1787 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1789 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1791 * NEWS: Announce Ravenscar Profile support.
1793 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1794 Jerome Guitton <guitton@adacore.com>
1796 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1798 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1799 ravenscar-sparc-thread.o to gdb_target_obs.
1801 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1803 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1804 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1806 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1808 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1809 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1810 skip_main_prologue method.
1812 2010-09-27 Tom Tromey <tromey@redhat.com>
1814 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1815 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1816 Only emit a given psymbol once.
1817 (struct signatured_type_index_data) <psyms_seen>: New field.
1818 (write_one_signatured_type): Update.
1819 (cleanup_htab): New function.
1820 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1822 (save_gdb_index_command): Update index documentation.
1824 2010-09-27 Tom Tromey <tromey@redhat.com>
1826 * bcache.c (expand_hash_table): Use hash_function, not hash.
1828 2010-09-27 Tom Tromey <tromey@redhat.com>
1830 * gdb_wchar.h: Change minimum libiconv to 0x108.
1832 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1834 Fix lost siginfo_t for inferior calls.
1836 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1837 (save_inferior_thread_state): New variables regcache, gdbarch and
1838 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1839 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1841 (restore_inferior_thread_state): New variables regcache and gdbarch.
1842 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1843 REGCACHE. Free also SIGINFO_DATA.
1845 2010-09-24 Tom Tromey <tromey@redhat.com>
1847 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1849 (dw2_map_symbol_names): Likewise.
1851 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1853 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1854 discard_cleanups do_cleanups.
1856 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1860 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1861 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1862 si_code is < 0. Check for si_code == SI_TIMER before checking for
1865 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1867 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1869 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1871 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1872 debugging a core file.
1874 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1877 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1878 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1880 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1881 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1883 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1884 Remove the conditional.
1885 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1887 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1889 * main.c: Include objfiles.h.
1890 (captured_main): New variable objfile. Call
1891 load_auto_scripts_for_objfile for ALL_OBJFILES.
1893 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1895 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1898 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1900 * dwarf2read.c (scan_partial_symbols): Add handling of
1901 DW_TAG_constant DIEs.
1902 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1904 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1906 * configure.ac: Add support for --enable-gdbserver.
1907 * configure: Regenerate.
1909 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1912 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1913 'old_cleanups' reassignment.
1915 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1917 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1920 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1923 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1924 read_var_value and common_val_print and print a warning.
1926 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1928 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1929 keep the list in alphabetical order. Use longer e-mail address.
1931 2010-09-15 Tom Tromey <tromey@redhat.com>
1933 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1935 2010-09-15 Tom Tromey <tromey@redhat.com>
1937 * charset.c (iconv_open): New define.
1939 (iconv_close): Likewise.
1940 (phony_iconv_open): Add "phony_" prefix.
1941 (phony_iconv_close): Likewise.
1942 (phony_iconv): Likewise.
1943 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1944 Change how INTERMEDIATE_ENCODING is defined.
1946 2010-09-15 Doug Evans <dje@google.com>
1948 * dwarf2read.c (struct die_info): Fix comment.
1950 2010-09-15 Alan Modra <amodra@gmail.com>
1953 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1954 than setting SEC_NEVER_LOAD on sections that need not be copied.
1956 2010-09-14 Tom Tromey <tromey@redhat.com>
1958 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1959 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1961 * symfile.h (extend_psymbol_list): Remove.
1962 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1963 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1964 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1966 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1968 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1971 2010-09-14 Tom Tromey <tromey@redhat.com>
1974 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1975 for unrecognized frame base expression.
1977 2010-09-14 Tom Tromey <tromey@redhat.com>
1980 * value.c (value_static_field): Use value_of_variable.
1982 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1984 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1985 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1987 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1990 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1993 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1995 * NEWS: Add x86-lynxos to the list of platforms supported by
1998 2010-09-13 Joel Brobecker <brobecker@adacore.com>
2000 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
2002 2010-09-13 Tom Tromey <tromey@redhat.com>
2004 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
2006 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
2008 * i386-tdep.c (i386_ymm_type): Set type name to
2009 builtin_type_vec256i.
2011 2010-09-12 Michael Snyder <msnyder@vmware.com>
2013 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
2015 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
2017 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
2019 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
2021 * amd64-tdep.c (amd64_register_name): Removed.
2022 (amd64_init_abi): Don't call set_gdbarch_register_name.
2024 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
2026 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
2028 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2029 Paul Bolle <pebolle@tiscali.nl>
2031 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
2032 * cli-logging.c (struct saved_output_files) <targerr>: New.
2033 (set_logging_redirect, pop_output_files, handle_redirections):
2034 Redirect also gdb_stdtargerr.
2035 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
2037 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
2038 also gdb_stdtargerr.
2039 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
2040 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
2041 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
2042 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
2043 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
2046 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
2048 * hppa-tdep.c (unwind_command): Use host_address_to_string function
2049 to display a host address.
2050 * monitor.c (monitor_read_memory): Likewise.
2051 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
2053 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
2055 * coffread.c (struct coff_symbol): Change c_value type from `long' to
2056 `CORE_ADDRESS' as it might contain target addresses.
2058 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
2060 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
2061 before cast to pointer to avoid warning.
2063 2010-09-09 Kevin Buettner <kevinb@redhat.com>
2065 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
2068 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
2070 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
2071 anonymous class partial DIEs.
2073 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2075 * dwarf2read.c (dwarf2_compute_name): Check that the first
2076 argument is a pointer.
2078 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2080 * dwarf2read.c (read_func_scope, read_structure_type)
2081 (read_common_block): Check for a NULL return from new_symbol.
2083 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2085 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
2087 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2089 * dwarf2read.c (read_structure_type): Move processing of
2090 fields and member functions from here...
2091 (process_structure_scope): ... to here.
2093 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2095 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
2097 (gnuv3_make_method_ptr): Likewise.
2099 2010-09-08 Tom Tromey <tromey@redhat.com>
2101 * breakpoint.c (create_breakpoint): Add missing _().
2103 2010-09-08 Doug Evans <dje@google.com>
2105 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
2107 2010-09-08 Tom Tromey <tromey@redhat.com>
2110 2010-09-01 Tom Tromey <tromey@redhat.com>
2111 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
2112 symtab.h: Revert earlier change.
2114 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
2116 * psymtab.c (add_psymbol_to_bcache): Initialize
2118 memset psymbol.ginfo.value to 0.
2120 2010-09-06 Pedro Alves <pedro@codesourcery.com>
2122 * infrun.c (resume): Extend comment on ignoring single-step
2123 requests on vfork parents waiting for a vfork-done.
2125 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2126 Pedro Alves <pedro@codesourcery.com>
2128 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
2130 * fork-child.c (startup_inferior) <resume_signal>: Use enum
2132 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
2133 calling strsignal. Use enum target_signal type for saved_signo.
2134 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
2135 (linux_nat_wait_1): Use enum target_signal type for signo. Use
2136 target_signal_to_host before calling strsignal.
2137 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
2140 2010-09-06 Pedro Alves <pedro@codesourcery.com>
2141 Jan Kratochvil <jan.kratochvil@redhat.com>
2143 * common/signals.c (ANY): Remove.
2144 (SET): No longer use ANY.
2146 2010-09-06 Yao Qi <yao@codesourcery.com>
2148 * infrunc(resume): When inferior is waiting_for_vfork_done,
2149 clear step and don't use displaced stepping.
2151 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
2153 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
2156 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2158 Code cleanup - split print_stop_reason.
2159 * infrun.c (enum inferior_stop_reason): Remove.
2160 (print_stop_reason): Remove by splitting into ...
2161 (print_exited_reason, print_signal_exited_reason)
2162 (print_no_history_reason, print_signal_received_reason)
2163 (print_end_stepping_range_reason): ... these new functions. Update
2164 the preceding comment.
2165 (handle_inferior_event): Change the calls to print_exited_reason,
2166 print_signal_exited_reason, print_no_history_reason,
2167 print_signal_received_reason, print_end_stepping_range_reason.
2168 (handle_step_into_function, handle_step_into_function_backward):
2169 Change the calls to print_end_stepping_range_reason.
2171 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2173 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
2174 * cli-out.c: Include vec.h.
2175 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
2176 variable stream, initialize it, use it.
2177 (cli_redirect): New function comment. Replace the stream and
2178 original_stream fields by the new streams field. Remove the
2179 original_stream != NULL conditional, assert error on NULL instead.
2180 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
2181 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
2182 original_stream fields by the new streams field.
2183 (cli_out_set_stream): Replace the stream field by the new streams
2185 * cli-out.h: Include vec.h.
2186 (ui_filep): New typedef, call DEF_VEC_P for it.
2187 (struct cli_ui_out_data): Replace the stream and original_stream
2188 fields by the new streams field.
2189 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
2190 NULL first. Extend the comment.
2191 (handle_redirections): Call ui_out_redirect with output.
2192 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
2193 calls outside of the TRY_CATCH block.
2195 2010-09-03 Joel Brobecker <brobecker@adacore.com>
2199 2010-09-02 Joel Brobecker <brobecker@adacore.com>
2201 Back out the following change:
2202 | 2010-06-29 Hui Zhu <teawater@gmail.com>
2203 | * record.c (set_record_pic_cmdlist,
2204 | show_record_pic_cmdlist): New variables.
2205 | (set_record_pic_command,
2206 | show_record_pic_command): New functions.
2207 | (record_pic_function, record_pic_line, record_pic_enum,
2208 | set_record_pic_type, record_pic_hide_nofunction,
2209 | record_pic_hide_nosource, record_pic_hide_same): New variables.
2210 | (record_pic_fputs): New function.
2211 | (function_list, node_list, edge_list): New struct.
2212 | (function_list, node_list, edge_list): New variables.
2213 | (record_pic_cleanups, record_pic_node,
2214 | record_pic_edge, cmd_record_pic): New functions.
2215 | (_initialize_record): Add new commands for record pic.
2217 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
2219 * config.in, configure: Regenerated.
2220 * configure.ac: Check for waitpid.
2221 * ser-pipe.c (pipe_close): Wait for the program to exit.
2223 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2225 * cli/cli-logging.c: Include gdb_assert.h.
2226 (set_logging_overwrite): New function.
2227 (logging_redirect): New comment.
2228 (logging_no_redirect_file, set_logging_redirect)
2229 (pop_output_files) <logging_no_redirect_file>: New.
2230 (handle_redirections) <!logging_redirect>: New variable
2231 no_redirect_file. Remove file autoclose for tee_file_new. No longer
2232 discard cleanup for the close of former OUTPUT. Set
2233 LOGGING_NO_REDIRECT_FILE.
2234 (handle_redirections) <logging_redirect>: gdb_assert
2235 LOGGING_NO_REDIRECT_FILE.
2236 (show_logging_command) <logging_redirect handling>: Adjust messages
2237 for SAVED_FILENAME not NULL.
2238 (_initialize_cli_logging): Install set_logging_overwrite and
2239 set_logging_redirect.
2241 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2243 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
2245 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2247 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
2248 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
2249 add $(GDB_WARN_CFLAGS_NO_FORMAT).
2250 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
2252 2010-09-02 Yao Qi <yao@codesourcery.com>
2254 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
2255 number from a WIFSIGNALED status.
2257 2010-09-01 Tom Tromey <tromey@redhat.com>
2259 * symtab.h (lookup_type_symbol): Declare.
2260 * symtab.c (lookup_symbol_in_language_full): Rename from
2261 lookup_symbol_in_language. Add 'for_type' argument.
2262 (lookup_symbol_in_language): New function.
2263 (lookup_type_symbol): Likewise.
2264 (lookup_symbol_aux): Add 'for_type' argument.
2265 (match_symbol_aux): New function.
2266 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
2267 (match_transparent_type): New function.
2268 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
2269 * symfile.h (struct quick_symbol_functions)
2270 <pre_expand_symtabs_matching>: Remove.
2271 <expand_one_symtab_matching>: New field.
2272 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
2273 (pre_expand_symtabs_matching_psymtabs): Remove.
2274 (psym_functions): Update.
2275 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
2276 * dwarf2read.c (dw2_lookup_symbol): Update comment.
2277 (dw2_pre_expand_symtabs_matching): Remove.
2278 (dw2_expand_one_symtab_matching): New function.
2279 (dwarf2_gdb_index_functions): Update.
2281 2010-09-01 Joel Brobecker <brobecker@adacore.com>
2283 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
2285 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
2287 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
2288 as a feature reported by -list-target-features.
2290 2010-09-01 Joel Brobecker <brobecker@adacore.com>
2292 * features/Makefile (WHICH): Add rs6000/powerpc-32.
2293 (powerpc-32.o, powerpc-32.c): New rules.
2294 (clean): Also remove powerpc-32.c.
2295 * regformats/rs6000/powerpc-32.dat: Generate.
2297 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2299 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
2300 psymbol_bcache_init.
2301 * psymtab.h (psymbol_bcache_init): New function prototype.
2302 (psymbol_bcache_free): New function prototype.
2303 (psymbol_bcache_get_bcache): New function prototype.
2304 * psymtab.c (psymbol_bcache_init): New function.
2305 (psymbol_bcache_free): New function.
2306 (psymbol_bcache_full): New function.
2307 (psymbol_bcache_get_bcache): New function.
2308 (add_psymbol_to_bcache): use psymbol_bcache_full.
2309 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
2311 * symmisc.c (print_symbol_bcache_statistics): Updated.
2312 (print_objfile_statistics): Updated.
2313 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
2315 (free_objfile): Use psymbol_bcache_free.
2317 2010-08-31 Tom Tromey <tromey@redhat.com>
2320 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
2321 Don't set TYPE_NAME on the type.
2323 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2325 * infrun.c (set_exec_direction_func): Error out if target does not
2326 support reverse execution.
2328 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2330 Make linux_get_siginfo_type `type *' unique.
2331 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
2332 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
2333 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
2334 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
2335 (_initialize_linux_tdep): New.
2337 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2340 * defs.h (find_memory_region_ftype): New typedef.
2341 (exec_set_find_memory_regions): Use it.
2342 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
2343 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
2344 * gcore.c (objfile_find_memory_regions): Likewise.
2345 * gnu-nat.c (gnu_find_memory_regions): Likewise.
2346 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
2347 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
2348 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
2349 find_memory_region_ftype.
2350 (insert_dbx_link_bpt_in_region): Likewise.
2351 (iterate_over_mappings): Likewise. Drop the comment part about the
2353 (find_memory_regions_callback): Use find_memory_region_ftype.
2354 (proc_find_memory_regions): Likewise.
2355 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
2356 find_memory_region_ftype.
2357 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
2358 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
2360 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2362 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
2363 'static partial_symbol psymbol'.
2364 (psymbol_hash): New function.
2365 (psymbol_compare): New function.
2366 * bcache.c (hash_continue): New.
2367 (hash): Use hash_continue.
2368 * bcache.c: Add hash_function and compare_function
2369 pointers to bcache struct.
2370 (bcache_full): Use bcache->hash_function, and
2371 bcache->compare_function.
2372 (bcache_compare): New function.
2373 (bcache_xmalloc): Take hash_function and
2374 compare_function arguments and initialize the
2377 * objfiles.c (allocate_objfile): Updated.
2378 * symfile.c (reread_symbols): Updated.
2379 * python/py-type.c (typy_richcompare): Updated.
2381 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
2382 Tom Tromey <tromey@redhat.com>
2385 * python/py-value.c (valpy_get_dynamic_type): New function.
2386 (value_object_getset): Add "dynamic_type".
2387 (valpy_get_type): Fail on error.
2389 2010-08-30 Yao Qi <yao@codesourcery.com>
2391 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
2392 (arm_linux_syscall_next_pc): New.
2393 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
2394 (arm_linux_init_abi): Initialize syscall_next_pc.
2395 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
2396 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
2397 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
2398 Declare arm_frame_is_thumb.
2400 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2403 * breakpoint.c (bpstat_alloc): Remove unused prototype.
2404 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
2406 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
2407 calls of bpstat_alloc. Remove explicit bs chain termination.
2409 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2412 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
2413 (my_waitpid): Likewise.
2415 2010-08-27 Doug Evans <dje@google.com>
2417 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
2420 2010-08-27 Tom Tromey <tromey@redhat.com>
2422 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
2423 TYPE_FIELD_IGNORE_BITS.
2425 2010-08-27 Doug Evans <dje@google.com>
2427 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
2428 the order they're defined in. munmap .debug_types buffer.
2430 2010-08-26 Doug Evans <dje@google.com>
2432 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
2433 (dw2_forget_cached_source_info): Rename local cu to per_cu.
2434 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
2435 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
2436 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
2437 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
2438 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
2439 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
2440 (write_psymtabs_to_index): Ditto.
2442 2010-08-26 Pedro Alves <pedro@codesourcery.com>
2444 * NEWS: Mention libthread_db debugging with core files.
2446 2010-08-26 Doug Evans <dje@google.com>
2448 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
2449 forward decl. Pass pst->dirname to dwarf_decode_lines.
2450 (psymtab_include_file_name): New function.
2451 (dwarf_decode_lines): Call it. Update comments.
2453 2010-08-25 Pedro Alves <pedro@codesourcery.com>
2455 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
2456 compilation unit being different from target die's.
2458 2010-08-24 Doug Evans <dje@google.com>
2461 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
2462 debug_types_type_hash.
2463 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
2465 (lookup_die_type): Renamed from tag_type_to_tag. First look in
2466 appropriate type_hash table. All callers updated.
2467 (allocate_signatured_type_table): Renamed from
2468 allocate_signatured_type_hash_table. All callers updated.
2469 (create_signatured_type_table_from_index): Renamed from
2470 create_signatured_type_hash_from_index. All callers updated.
2471 (read_die_type): Add comment. Move actual reading to ...
2472 (read_die_type_1): ... here. New function.
2473 (follow_die_ref_or_sig): Tweak comment.
2474 (set_die_type): Rewrite to use appropriate choice of
2475 debug_info_type_hash or debug_types_type_hash.
2476 (get_die_type_at_offset): New function.
2477 (get_die_type): Call it.
2479 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2481 * python/py-type.c (typy_richcompare): Initialize worklist.
2483 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
2484 Kazu Hirata <kazu@codesourcery.com>
2485 Jonathan Larmour <jifl@eCosCentric.com>
2487 * arm-tdep.c: Include features/arm-with-m.c.
2488 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
2490 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
2491 Check is_m after force-mode.
2492 (arm_gdbarch_init): Check the binary before the target description.
2493 Add check for M profile attribute. If we have an M-profile device,
2494 but no target register description, use arm-with-m. Recognize the
2495 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
2496 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
2497 * arm-tdep.h (XPSR_T): Define.
2498 (struct gdbarch_tdep): Add is_m member.
2499 * features/arm-m-profile.xml, features/arm-with-m.c,
2500 features/arm-with-m.xml: New files.
2502 2010-08-23 Doug Evans <dje@google.com>
2504 * dwarf2read.c (read_structure_type): Add comment.
2505 (read_enumeration_type): Add comment.
2506 (process_enumeration_scope): Move definition of some locals
2507 closer to their use.
2508 (read_namespace_type): Add comment.
2509 (set_die_type): Fix typo in comment.
2511 2010-08-23 Tom Tromey <tromey@redhat.com>
2514 * python/py-value.c: Include expression.h.
2515 (valpy_do_cast): New function.
2516 (valpy_cast): Use it.
2517 (valpy_dynamic_cast): New function.
2518 (valpy_reinterpret_cast): Likewise.
2519 (value_object_methods): Add dynamic_cast, reinterpret_cast.
2521 2010-08-23 Tom Tromey <tromey@redhat.com>
2524 * python/py-value.c (valpy_nonzero): Don't throw error for other
2527 2010-08-23 Tom Tromey <tromey@redhat.com>
2530 * python/py-type.c: Include bcache.h, vec.h.
2531 (struct type_equality_entry): New.
2532 (compare_strings): New function.
2533 (check_types_equal): Likewise.
2534 (check_types_worklist): Likewise.
2535 (typy_richcompare): Likewise.
2536 (type_object_type): Set tp_richcompare field.
2538 2010-08-23 Tom Tromey <tromey@redhat.com>
2541 * python/py-type.c (typy_fields): Call check_typedef.
2542 (typy_template_argument): Add TRY_CATCH.
2544 2010-08-23 Tom Tromey <tromey@redhat.com>
2547 * python/py-type.c (typy_array): New function.
2548 (type_object_methods): Add "array".
2550 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2552 * python/python.c: Include "serial.h".
2553 (gdbpy_event_fds): Change type to `struct serial *' a array from
2555 (gdbpy_run_events): Change parameters. Use serial_readchar in
2557 (gdbpy_post_event): Use serial_write in place of write.
2558 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
2559 serial_async in place of add_file_handler.
2561 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2563 * serial.h (gdb_pipe, serial_pipe): Declare.
2564 * serial.c (serial_interface_lookup): Take a const char pointer.
2565 (serial_fdopen): Rename to ...
2566 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
2567 Call the OPS' fdopen function if there is one.
2568 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
2570 (struct serial_ops) <fdopen>: New field.
2572 * ser-mingw.c (free_pipe_state):
2573 (free_pipe_state): Close output on non-pex pipes.
2574 (pipe_windows_fdopen): New.
2576 (_initialize_ser_windows): Register pipe_windows_fdopen.
2577 * ser-go32.c (gdb_pipe): New.
2578 * ser-pipe.c (pipe_close): Close file descriptor even if there's
2583 2010-08-20 Keith Seitz <keiths@redhat.com>
2586 * dwarf2read.c (struct delayed_method_info): New struct.
2587 (struct dwarf2_cu): Add vector method_list.
2588 (scan_partial_symbols): Count methods for union, class, structure,
2589 and interface types.
2590 (add_to_method_list): New function.
2591 (free_delayed_list): New function.
2592 (compute_delayed_physnames): New function.
2593 (process_full_comp_unit): Make a cleanup for the CU's delayed
2594 physname list, compute the delayed physnames, and free the
2596 (dwarf2_add_member_fn): For C++ and Java, delay the computation
2597 of the physname until after the CU is read.
2599 * dwarf2read.c (read_structure_type): Check if the current
2600 DIE's type was already completed after dwarf2_full_name
2603 2010-08-19 Stan Shebs <stan@codesourcery.com>
2605 * NEWS: Mention some additional changes.
2607 2010-08-19 Tom Tromey <tromey@redhat.com>
2609 * Makefile.in (install-python): Add DESTDIR.
2611 2010-08-19 Doug Evans <dje@google.com>
2614 * parser-defs.h (parse_float, parse_c_float): Declare.
2615 * parse.c (parse_float, parse_c_float): New function.
2616 * c-exp.y (parse_number): Call parse_c_float.
2617 * objc-exp.y (parse_number): Ditto.
2618 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
2619 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
2621 2010-08-19 Joel Brobecker <brobecker@adacore.com>
2623 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
2624 the arguments in the correct order.
2625 * symtab.c (maybe_add_partial_symtab_filename): Declare
2626 the arguments in the correct order.
2628 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2630 * varobj.c (varobj_create): Replace variable old_fi with old_id,
2631 initialize it by null_frame_id, wrap its usage by get_frame_id,
2632 frame_id_p and frame_find_by_id.
2634 2010-08-18 Tom Tromey <tromey@redhat.com>
2637 * configure: Rebuild.
2638 * configure.ac: Add install-python to CONFIG_INSTALL.
2639 * Makefile.in (install-python): New.
2641 2010-08-18 Doug Evans <dje@google.com>
2643 * gdb_assert.h (gdb_assert_not_reached): New macro.
2644 (gdb_assert_fail): Fix typo in comment.
2645 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
2647 * darwin-nat.c (darwin_check_new_threads): Ditto.
2648 * dwarf2read.c (dwarf2_get_section_info): Ditto.
2649 (munmap_section_buffer): Ditto.
2650 * m32c-tdep.c (make_types): Ditto.
2651 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2652 * macroexp.c (get_character_constant): Ditto.
2653 (get_string_literal): Ditto.
2654 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2655 (mep_pseudo_cr_index, mep_register_type): Ditto.
2656 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2657 (mep_get_insn, mep_analyze_prologue): Ditto.
2658 * objfiles.c (qsort_cmp): Ditto.
2659 * prologue-value.c (pv_is_identical): Ditto.
2660 * record.c (record_get_loc): Ditto.
2661 * value.c (value_static_field): Ditto.
2662 * xtensa-tdep.c (call0_track_op): Ditto.
2664 2010-08-18 Tom Tromey <tromey@redhat.com>
2667 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2668 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
2669 name-copying lower. Document exception behavior.
2670 * completer.c (expression_completer): Catch exceptions from
2671 parse_field_expression.
2673 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2677 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2678 workaround on core files.
2679 (try_thread_db_load_1): Don't try enabling thread event reporting
2681 (thread_db_load): Allow thread_db on core files.
2682 (attach_thread): Don't check thread signals on core files, nor try
2683 really attaching to the thread, nor enabling thread event event
2685 (thread_db_detach): Don't try disabing thread event reporting or
2686 removing thread event breakpoints when debugging a core file.
2687 (find_new_threads_callback): Don't try enabling thread event
2688 reporting on core files.
2689 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2690 debugging a core file.
2691 (thread_db_find_new_threads): Don't update thread
2692 cores (processors) when debugging a core (dump).
2694 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2698 * corelow.c (add_to_thread_list): Don't use
2699 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
2700 (get_core_register_section): Don't use
2701 gdbarch_core_reg_section_encodes_pid.
2703 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2704 * gdbarch.h, gdbarch.c: Regenerate.
2705 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2706 gdbarch_core_reg_section_encodes_pid.
2707 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2708 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2709 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2711 2010-08-18 Yao Qi <yao@codesourcery.com>
2713 * MAINTAINERS : Add myself under Write After Approval.
2715 2010-08-17 Tom Tromey <tromey@redhat.com>
2717 * NEWS: Mention template parameter support.
2719 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2721 PR breakpoints/11371
2723 * breakpoint.c (decref_bp_location): Assert the reference count is
2726 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2728 PR breakpoints/11371
2730 * breakpoint.c (breakpoint_init_inferior): Decrement the
2731 location's reference count instead of deleting right away.
2732 (bpstat_free): Decrement the location's reference count. Make
2734 (bpstat_copy): Increment the location's reference count.
2735 (bpstat_find_breakpoint): Adjust.
2736 (bpstat_num): Adjust.
2737 (print_it_typical): Adjust. Use the breakpoint pointer in the
2738 bpstat instead of the location's owner.
2739 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2740 Adjust to record the location's owner in the bpstat.
2741 (watchpoint_check): Use the breakpoint pointer in the bpstat
2742 instead of the location's owner.
2743 (bpstat_check_breakpoint_conditions): Don't handle
2744 bp_watchpoint_scope here. Use the breakpoint pointer in the
2745 bpstat instead of the location's owner.
2746 (bpstat_stop_status): Defer inferior function calls to after
2747 building the bpstat list. Handle bp_watchpoint_scope here. Use
2748 the breakpoint pointer in the bpstat instead of the location's
2750 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2751 the location's owner.
2752 (free_bp_location): Don't walk bpstats clearing locations.
2753 (incref_bp_location): New.
2754 (decref_bp_location): New.
2755 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2756 instead of the location's owner.
2757 (update_global_location_list): Clear the location's owner, and
2758 decrement the location's reference count instead of deleting it
2760 (breakpoint_retire_moribund): Decrement the location's reference
2761 count instead of deleting it right away.
2762 (bpstat_remove_bp_location): Delete.
2763 (bpstat_remove_breakpoint): New.
2764 (bpstat_remove_bp_location_callback): Delete.
2765 (bpstat_remove_breakpoint_callback): New.
2766 (delete_breakpoint): Iterate over all threads' stop_bpstat's
2767 clearing references to the breakpoint that is being deleted.
2769 * breakpoint.h (struct bp_location) <refc>: New field.
2770 <owner>: Update comments.
2771 (bpstat_free): Delete declaration.
2772 (struct bpstats): Change the type of the breakpoint_at field to
2773 struct breakpoint point, from struct bp_location pointer. Add new
2774 field bp_location_at.
2776 2010-08-16 Tom Tromey <tromey@redhat.com>
2780 2010-08-16 Tom Tromey <tromey@redhat.com>
2782 * NEWS: Mention watch -location.
2784 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2786 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2787 EXP_STRING_REPARSE to EXP_STRING.
2788 (watch_command_1): Set also EXP_STRING_REPARSE.
2789 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2790 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2791 Update comment for exp_string.
2793 2010-08-16 Tom Tromey <tromey@redhat.com>
2795 * value.c (release_value): Clear 'next' pointer.
2796 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2797 (watch_command_wrapper): Update.
2798 (watch_maybe_just_location): New function.
2799 (watch_command): Update.
2800 (rwatch_command_wrapper): Update.
2801 (rwatch_command): Update.
2802 (awatch_command_wrapper): Update.
2803 (awatch_command): Update.
2804 (check_for_argument): New function.
2805 (_initialize_breakpoint): Update help text.
2807 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2809 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2810 typedef'ed function types correctly.
2812 2010-08-13 Tom Tromey <tromey@redhat.com>
2814 * python/python-internal.h (gdbpy_get_hook_function): Don't
2817 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2819 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
2822 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
2824 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2825 the format strings to be compatible with Python 2.4.
2827 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2829 Easier and more stubborn MI memory read commands.
2831 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2832 and data-write-memory-bytes.
2833 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2834 (mi_cmd_data_write_memory_bytes): New.
2835 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2836 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2838 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2839 * target.c (target_read_until_error): Remove.
2840 (read_whatever_is_readable, free_memory_read_result_vector)
2841 (read_memory_robust): New.
2842 * target.h (target_read_until_error): Remove.
2843 (struct memory_read_result, free_memory_read_result_vector)
2844 (read_memory_robust): New.
2846 2010-08-13 Hui Zhu <teawater@gmail.com>
2848 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2849 (read_comp_unit): Initialize back_to.
2851 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2852 Pedro Alves <pedro@codesourcery.com>
2854 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2855 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2856 (struct partial_die_info) <has_template_arguments>: New field.
2857 <num_attrs>: Change type to unsigned char.
2858 <building_fullname>: New field.
2859 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2860 allocate a CU if we don't have one already. Add a cleanup for the
2862 (partial_die_full_name): Handle template arguments not in
2864 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2865 (load_full_comp_unit): Only allocate a CU if we don't have one
2867 (do_ui_file_peek_last): New.
2868 (dwarf2_compute_name): Handle template parameters not in
2870 (read_comp_unit): Read and free abbrevs if not read yet.
2871 (load_partial_dies): Handle template arguments not in DW_AT_name.
2872 (find_partial_die): If we have a CU, but no a partial dies yet,
2873 also read in the CU.
2874 (dwarf2_const_value_attr): New, abstracted out from
2876 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2877 dwarf2_const_value_attr.
2878 (determine_prefix): Detect and break loops created by RCVT's debug
2880 (maybe_queue_comp_unit): Bail out early if reading partial
2882 (follow_die_offset): Load full CU if we have no dies.
2883 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2884 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2886 2010-08-11 Tom Tromey <tromey@redhat.com>
2887 Phil Muldoon <pmuldoon@redhat.com>
2889 * python/python.c (gdbpy_run_events): New function.
2890 (gdbpy_post_event): Likewise.
2891 (gdbpy_initialize_events): Likewise.
2892 (_initialize_python): Call gdbpy_initialize_events.
2894 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
2896 * gdb/valarith.c (vector_binop): New function.
2897 (scalar_binop): Likewise.
2898 (value_binop): Call scalar_binop or vector_binop depending on the types.
2899 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2900 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2902 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2904 2010-08-11 Brad Roberts <braddr@puremagic.com>
2906 * d-lang.c (extract_identifiers): Handle multiple digits.
2908 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2911 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2912 Rename to dummy_frame_unwind.
2913 (dummy_frame_unwind): Remove.
2914 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2915 * frame-unwind.c (frame_unwind_init): Use address of
2916 dummy_frame_unwind and inline_frame_unwind.
2917 * frame.c (create_sentinel_frame): Use address of
2918 sentinel_frame_unwind.
2919 * inline-frame.c (inline_frame_unwinder): Rename to
2920 inline_frame_unwind.
2921 (inline_frame_unwind): Remove.
2922 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2923 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2924 sentinel_frame_unwind.
2925 (sentinel_frame_unwind): Remove.
2926 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2929 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2932 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2933 and returned value. New comment from frame-unwind.h.
2934 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2936 * frame.c (get_frame_id, frame_unwind_register_value)
2937 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2938 (get_frame_type, frame_unwind_arch): Do not use the return value of
2939 frame_unwind_find_by_frame.
2941 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
2942 Thiago Jung Bauermann <bauerman@br.ibm.com>
2943 Tom Tromey <tromey@redhat.com>
2945 * python/python.c (gdbpy_solib_address): New function.
2946 (gdbpy_decode_line): Likewise.
2948 2010-08-10 Tom Tromey <tromey@redhat.com>
2950 Revert gdb-add-index addition:
2951 * Makefile.in (install-only): Don't install gdb-add-index.
2952 * gdb-add-index.sh: Remove.
2954 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2956 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2957 `target_has_execution' check with `to_has_memory' check.
2958 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2959 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2960 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2962 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2964 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2965 (resume_siggnal, resume_step): Move these static globals...
2966 (struct sim_inferior_data): ...into this new struct.
2967 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2969 (gdb_callback, callbacks_initialized): Move these globals to
2970 a point earlier in the file.
2971 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2972 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2973 (gdbsim_close_inferior, gdbsim_resume_inferior)
2974 (gdbsim_stop_inferior): New functions.
2975 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2977 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2978 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2979 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2980 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2981 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2982 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2983 new local variable `sim_data' in each of these functions. Use
2984 `sim_data' to reference former globals `program_loaded',
2985 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2987 (gdbsim_open): Remove local variable `argv'. Put results of call
2988 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2989 make a cleanup for it. Free it though when a sim instance cannot
2991 (gdbsim_close): Free sim_argv and null it out as appropriate.
2992 Close sim instances in all inferiors.
2993 (gdbsim_cntrl_c): Stop all inferiors.
2995 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2997 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2999 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
3000 function after symbol construction is complete.
3001 Do the same for template symbol addition to template_symbols list.
3003 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
3005 * symtab.c (symbol_get_demangled_name): Remove assertion and
3006 return NULL when language_specific.cplus_specific is not initialized.
3007 * stabsread.c (define_symbol): Set the name before calling
3008 cp_scan_for_anonymous_namespaces.
3010 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
3012 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
3013 SYMBOL_SET_LANGUAGE.
3014 (symbol_init_language_specific): Renamed to symbol_set_language.
3015 * symtab.c (symbol_init_language_specific): Removed redundant check
3017 Renamed to symbol_set_language.
3018 * stabsread.c (define_symbol): Updated.
3019 (read_enum_type): Updated
3020 * psymtab.c (add_psymbol_to_bcache): Updated.
3021 * minsyms.c (install_minimal_symbols): Updated.
3022 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
3023 SYMBOL_LANGUAGE to set the language.
3024 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
3025 * mdebugread.c (new_symbol): Ditto.
3026 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
3027 * dwarf2read.c (new_symbol_full): Ditto.
3028 * jv-lang.c (add_class_symbol): Ditto.
3030 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3032 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
3033 (make_cleanup_restore_page_info)
3034 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
3035 * gdbcmd.h (execute_command_to_string): New declaration.
3036 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
3037 (make_cleanup_restore_ui_file): Move to utils.c
3038 (execute_gdb_command) <to_string>: Move ...
3039 * top.c (execute_command_to_string): ... here. Call
3040 set_batch_flag_and_make_cleanup_restore_page_info.
3041 * utils.c (make_cleanup_restore_integer): New source file blank line.
3042 (make_cleanup_restore_uinteger): New.
3043 (struct restore_ui_file_closure, do_restore_ui_file)
3044 (make_cleanup_restore_ui_file): Move here from python/python.c.
3045 (init_page_info) <batch_flag>
3046 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
3047 (set_batch_flag_and_make_cleanup_restore_page_info): New.
3049 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
3051 * thread.c (add_thread_silent): Use null_ptid instead of
3052 minus_one_ptid while getting rid of stale inferior_ptid.
3054 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
3056 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
3057 Throughout, call read_encoded_value with ptr_size rather than addr_size.
3058 (decode_frame_entry_1): Remove redundant setting of
3059 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
3060 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
3061 on examined frame section. Add comment to explain why.
3062 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
3063 comment to explain usage.
3064 * gdbarch.c: Regenerate.
3065 * gdbarch.h: Regenerate.
3067 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
3069 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3072 * varobj.c (varobj_create): Move variables fi, old_fi and block to
3075 2010-08-05 Pedro Alves <pedro@codesourcery.com>
3077 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
3078 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
3079 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
3080 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
3081 linux-tdep.o to gdb_target_obs.
3083 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
3085 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
3088 2010-08-05 Hui Zhu <teawater@gmail.com>
3090 * mips-linux-tdep.c(regset.h): New include.
3091 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
3092 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
3093 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
3094 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
3095 mips_linux_regset_from_core_section): New functions.
3096 (fetch_core_registers, regset_core_fns): Deleted.
3097 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
3098 Deleted regset_core_fns.
3099 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
3100 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
3101 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
3104 2010-08-04 Pedro Alves <pedro@codesourcery.com>
3106 * s390-tdep.c: Include linux-tdep.h.
3107 (s390_gdbarch_init): Call linux_init_abi.
3109 2010-08-04 Pedro Alves <pedro@codesourcery.com>
3111 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
3112 instead of printing "Thread" here.
3113 * linux-tdep.c: Include inferior.h.
3114 (linux_core_pid_to_str): New.
3115 (linux_init_abi): New.
3116 * linux-tdep.h (linux_init_abi): Declare.
3117 * alpha-linux-tdep.c: Include linux-tdep.h.
3118 (alpha_linux_init_abi): Call linux_init_abi.
3119 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
3120 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
3121 * frv-linux-tdep.c: Include linux-tdep.h
3122 (frv_linux_init_abi): Call linux_init_abi.
3123 * hppa-linux-tdep.c: Include linux-tdep.h
3124 (hppa_linux_init_abi): Call linux_init_abi.
3125 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
3126 * ia64-linux-tdep.c: Include linux-tdep.h.
3127 (ia64_linux_init_abi): Call linux_init_abi.
3128 * m32r-linux-tdep.c: Include linux-tdep.h.
3129 (m32r_linux_init_abi): Call linux_init_abi.
3130 * m68klinux-tdep.c: Include linux-tdep.h.
3131 (m68k_linux_init_abi): Call linux_init_abi.
3132 * microblaze-linux-tdep.c: Include linux-tdep.h.
3133 (microblaze_linux_init_abi): Call linux_init_abi.
3134 * mips-linux-tdep.c: Include linux-tdep.h.
3135 (mips_linux_init_abi): Call linux_init_abi.
3136 * mn10300-linux-tdep.c: Include linux-tdep.h.
3137 (am33_linux_init_osabi): Call linux_init_abi. Rename the
3138 'gdbinfo' parameter to 'info'.
3139 * ppc-linux-tdep.c: Include linux-tdep.h.
3140 (ppc_linux_init_abi): Call linux_init_abi.
3141 * sh-linux-tdep.c: Include linux-tdep.h.
3142 (sh_linux_init_abi): Call linux_init_abi.
3143 * sparc-linux-tdep.c: Include linux-tdep.h.
3144 (sparc32_linux_init_abi): Call linux_init_abi.
3145 * sparc64-linux-tdep.c: Include linux-tdep.h.
3146 (sparc64_linux_init_abi): Call linux_init_abi.
3147 * xtensa-linux-tdep.c: Include linux-tdep.h.
3148 (xtensa_linux_init_abi): Call linux_init_abi.
3149 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
3150 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
3153 2010-08-03 Doug Evans <dje@google.com>
3155 * breakpoint.c (bpdisp_text): Constify bpdisps.
3156 * solib-svr4.c (solib_break_names): Constify.
3157 (bkpt_names, main_name_list): Constify.
3158 (match_main): Constify soname arg.
3159 (bfd_lookup_symbol): Remove unnecessary forward decl.
3160 Constify symname arg.
3161 (enable_break): Constify bkpt_namep.
3162 * symtab.c (search_symbols): Constify types, types2, types3, types4.
3163 (symtab_symbol_info): Constify classnames.
3165 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
3167 * NEWS: Document Python value inferior function calls.
3169 2010-08-02 Doug Evans <dje@google.com>
3171 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
3173 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3175 * linux-thread-db.c (libthread_db_debug): New variable.
3176 (thread_db_find_new_threads_silently): Control verbosity with it.
3177 (try_thread_db_load_1, try_thread_db_load): Likewise.
3178 (find_new_threads_once): Likewise.
3179 (_initialize_thread_db): Set/show it.
3181 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3183 * common/signals.c (signals): Move the content to signals.def.
3184 Include it. Remove the INDENT comments.
3186 2010-07-30 Tom Tromey <tromey@redhat.com>
3188 * Makefile.in (install-only): Install gdb-add-index.
3189 * gdb-add-index.sh: New file.
3191 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
3193 * MAINTAINERS: Add myself for write after approval privileges.
3195 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3197 * symfile.c (addr_section_name): New function.
3198 (addrs_section_compar): Use it.
3199 (addr_info_make_relative): Use it. Move variable sect_name into a more
3200 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
3202 2010-07-30 Tom Tromey <tromey@redhat.com>
3204 * configure: Rebuild.
3205 * configure.ac: Add missing case for Python 2.7.
3207 2010-07-29 DJ Delorie <dj@redhat.com>
3209 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
3212 2010-07-29 Pedro Alves <pedro@codesourcery.com>
3214 * PROBLEMS: Remove mention of all problems.
3216 2010-07-28 Pedro Alves <pedro@codesourcery.com>
3219 * configure.ac: Check for wresize.
3220 * configure, config.in: Regenerate.
3221 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
3224 2010-07-28 Tom Tromey <tromey@redhat.com>
3227 * python/py-type.c (typy_legacy_template_argument): New function,
3228 extracted from typy_template_argument.
3229 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
3232 2010-07-28 Oleg Nesterov <oleg@redhat.com>
3234 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
3236 2010-07-27 Tom Tromey <tromey@redhat.com>
3238 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
3240 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
3242 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
3243 handling DW_AT_object_pointer, and workaround GCC PR 43053.
3245 2010-07-28 Tom Tromey <tromey@redhat.com>
3247 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
3249 2010-07-28 Joel Brobecker <brobecker@adacore.com>
3251 * remote.c (remote_download_tracepoint): Add missing gettext markup.
3252 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
3254 2010-07-28 Joel Brobecker <brobecker@adacore.com>
3256 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
3257 down, just before the block that parse the breakpoint addr_string.
3259 2010-07-28 Tom Tromey <tromey@redhat.com>
3262 * symfile.c (reread_symbols): Clear template_symbols.
3263 * symtab.h (struct symbol) <is_cplus_template_function>: New
3265 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
3266 (struct template_symbol): New.
3267 * symtab.c (lookup_symbol_aux_local): Use
3268 cp_lookup_symbol_imports_or_template.
3269 * objfiles.h (struct objfile) <template_symbols>: New field.
3270 * objfiles.c (relocate_one_symbol): New function.
3271 (objfile_relocate1): Use it. Relocate isolated symbols.
3272 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
3273 template_arguments>: New fields.
3274 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
3275 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
3276 (TYPE_TEMPLATE_ARGUMENT): Likewise.
3277 (lookup_typename): Update.
3278 * gdbtypes.c (lookup_typename): Constify "block" argument.
3279 * dwarf2read.c: Include vec.h.
3280 (symbolp): New typedef.
3281 (read_func_scope): Read template arguments. Allocate a
3282 template_symbol when needed.
3283 (read_structure_type): Read template arguments.
3284 (new_symbol_full): New function, from new_symbol. Handle
3285 DW_TAG_template_type_param and DW_TAG_template_value_param.
3286 (new_symbol): Rewrite as wrapper.
3287 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
3288 * cp-namespace.c: Include language.h.
3289 (search_symbol_list): New function.
3290 (cp_lookup_symbol_imports_or_template): Likewise.
3292 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3294 * tui/tui-win.c (make_visible_with_new_height): Resize and move
3295 the command window to the new size and position.
3297 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3299 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
3302 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3304 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
3305 after a detecting a resize.
3306 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
3309 2010-07-28 Pedro Alves <pedro@codesourcery.com>
3311 * configure.ac: Check for resize_term.
3312 * configure, config.in: Regenerate.
3314 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3316 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
3318 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3320 * dwarf2read.c (read_string): Rename to ...
3321 (read_direct_string): ... this.
3322 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
3323 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
3325 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3327 * linux-nat.c (linux_nat_lp_status_is_event): New function.
3328 (count_events_callback, select_event_lwp_callback)
3329 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
3331 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3333 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
3334 (_initialize_ia64_linux_nat): Install it.
3335 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
3336 (linux_nat_set_status_is_event): New.
3337 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
3338 cancel_breakpoints_callback, linux_nat_filter_event)
3339 (linux_nat_wait_1): Use linux_nat_status_is_event.
3340 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
3342 2010-07-27 Tom Tromey <tromey@redhat.com>
3344 * NEWS: Mention labels, .gdb_index.
3346 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
3348 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3349 "start,+length" form of arguments.
3350 * NEWS: Add "Changed commands" (disassemble) section for "Changes
3351 since GDB 7.1"; and merge two separated paragraphs of disassemble
3352 description in "Changes in GDB 7.0".
3354 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3356 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
3357 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
3358 (fputs_maybe_filtered): Do not do filtering also on
3359 ! INPUT_FROM_TERMINAL_P.
3361 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3363 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
3366 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
3368 * python/py-value.c (valpy_call): New Function.
3370 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
3372 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
3373 types_list_elements variables.
3375 2010-07-26 Tom Tromey <tromey@redhat.com>
3377 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
3378 TLS with DW_OP_const4u or DW_OP_const8u.
3380 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
3382 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
3383 VSX registers contents.
3385 2010-07-26 Jerome Guitton <guitton@adacore.com>
3387 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
3388 its adress is null. Add comment to explain why.
3389 (new_symbol): Ditto.
3391 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3393 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
3394 the host signal first.
3396 2010-07-23 Tom Tromey <tromey@redhat.com>
3398 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
3399 type_comp_units>: New fields.
3400 (dw2_get_cu): New function.
3401 (create_cus_from_index): Remove unused argument.
3402 (create_signatured_type_hash_from_index): New function.
3403 (create_addrmap_from_index): Update.
3404 (dwarf2_read_index): Handle version 2.
3405 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
3406 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
3407 (dw2_print_stats, dw2_expand_all_symtabs)
3408 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
3409 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
3410 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
3411 (allocate_signatured_type_hash_table): New function.
3412 (add_signatured_type_cu_to_list): Likewise.
3413 (create_debug_types_hash_table): Use them. Set type_comp_units.
3414 (read_signatured_type): Ensure section data is available.
3415 (add_address_entry): Don't record empty ranges.
3416 (struct signatured_type_index_data): New.
3417 (write_one_signatured_type): New function.
3418 (write_psymtabs_to_index): Write type CUs.
3419 (save_gdb_index_command): Update comment.
3420 (process_type_comp_unit): Move inititalization of
3422 (create_debug_types_hash_table): ... here.
3424 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3426 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
3427 cleanup and generating of gdb script to it.
3428 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
3429 and terminal size. Convert $tmpfile to a series of -ex-es.
3431 2010-07-23 Keith Seitz <keiths@redhat.com>
3433 * symtab.c (basic_lookup_transparent_type): Call pre-expand
3434 hook for STATIC_BLOCK types, too.
3436 2010-07-23 Keith Seitz <keiths@redhat.com>
3438 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
3439 and vector definition.
3441 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3443 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
3445 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3447 * dwarf2read.c: Include completer.h.
3448 (save_gdb_index_command): Use matching usage command name.
3449 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
3450 Set filename_completer for it.
3452 2010-07-22 Tom Tromey <tromey@redhat.com>
3454 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
3455 type signature's per-CU data.
3457 2010-07-22 Pedro Alves <pedro@codesourcery.com>
3459 * NEWS: Mention target reported shared libraries support by
3462 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3467 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3468 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3469 and DW_TAG_volatile_type.
3470 (new_symbol): Likewise.
3472 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
3474 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
3475 function symbols before overload resolution.
3477 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3479 * breakpoint.c (bptype_string): New, abstracted out from
3480 print_one_breakpoint_location.
3481 (print_one_breakpoint_location): Adjust.
3482 (breakpoint_1): Adjust the type column width dynamically.
3484 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3486 * symfile.c (find_separate_debug_file_by_debuglink): Remove
3487 a gdb_assert call, new comment.
3489 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3491 * linux-nat.c (linux_handle_extended_wait): Handle case when
3492 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
3494 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3497 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
3498 linux_nat_wait_1. Use always LP->STATUS afterwards.
3500 2010-07-20 Hui Zhu <teawater@gmail.com>
3502 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
3503 (inf_ptrace_attach): Ditto.
3505 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3507 Make core files the process_stratum.
3508 * corefile.c (core_target): New variable.
3509 (core_file_command): Remove variable t, use core_target.
3510 * corelow.c (core_ops): Make it static.
3511 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
3512 * defs.h (make_cleanup_unpush_target): New prototype.
3513 * gdbarch.h: Regenerate.
3514 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
3515 * gdbcore.h (core_target): New declaration.
3516 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
3517 variables ops_already_pushed and back_to. Use push_target,
3518 make_cleanup_unpush_target and discard_cleanups calls.
3519 * record.c (record_open): Replace core_stratum by a core_bfd check.
3520 * target.c (target_is_pushed): New function.
3521 (find_core_target): Remove.
3522 * target.h (enum strata) <core_stratum>: Remove.
3523 (target_is_pushed): New declaration.
3524 (find_core_target): Remove declaration.
3525 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
3526 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
3528 2010-07-19 Hui Zhu <teawater@gmail.com>
3530 * breakpoint.c (single_step_breakpoints_inserted): New
3532 * breakpoint.h (single_step_breakpoints_inserted): Extern.
3533 * infrun.c (maybe_software_singlestep): Add check code.
3534 * record.c (record_resume): Add code for software single step.
3535 (record_wait): Ditto.
3537 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3539 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
3540 a more inner block. Remove its unused declaration initializer.
3542 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
3544 * NEWS: Mention support for the new ptrace interface and hardware
3545 accelerated watchpoint conditions on powerpc-linux.
3547 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
3549 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
3550 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
3551 and host_address_to_string() and %s for pointers.
3552 (debug_to_remove_breakpoint): Likewise.
3553 (debug_to_region_ok_for_hw_watchpoint): Likewise.
3554 (debug_to_can_accel_watchpoint_condition): Likewise.
3555 (debug_to_stopped_data_address): Likewise.
3556 (debug_to_watchpoint_addr_within_range): Likewise.
3557 (debug_to_insert_hw_breakpoint): Likewise.
3558 (debug_to_remove_hw_breakpoint): Likewise.
3559 (debug_to_insert_watchpoint): Likewise.
3560 (debug_to_remove_watchpoint): Likewise.
3562 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3564 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
3566 (cplus_specific): New struct.
3567 * symtab.c (symbol_set_demangled_name): Updated.
3568 Use cplus_specific for cplus symbols.
3569 (symbol_get_demangled_name): Retrive the name from the cplus_specific
3570 struct for cplus symbols.
3571 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
3572 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
3573 * symtab.c (symbol_init_cplus_specific): New function.
3575 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3577 * symtab.h (symbol_set_demangled_name): New function.
3578 (symbol_get_demangled_name): New function.
3579 * symtab.c (symbol_set_demangled_name): New function.
3580 (symbol_get_demangled_name): New function.
3581 (symbol_init_language_specific): Use demangled_name setter and getter.
3582 (symbol_set_names): Ditto.
3583 (symbol_natural_name): Ditto.
3584 (symbol_demangled_name): Ditto.
3585 * dwarf2read.c (new_symbol): Ditto.
3587 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3589 * symtab.h: Renamed cplus_specific to mangled_lang.
3590 * symtab.c (symbol_init_language_specific): Updated.
3591 (symbol_set_names): Updated.
3592 (symbol_natural_name): Updated.
3593 (symbol_demangled_name): Updated.
3594 * ada-lang.c (ada_decode_symbol): Updated.
3595 * dwarf2read.c (new_symbol): Updated.
3597 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3599 * valops.c (value_assign): Do not call to value_coerce_to_target.
3600 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
3602 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3604 * MAINTAINERS: Add myself for write after approval privileges.
3606 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
3608 * c-valprint.c (c_val_print): Add embedded_offset to address in
3609 call to val_print_array_elements.
3611 2010-07-13 Tom Tromey <tromey@redhat.com>
3613 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
3615 2010-07-13 Tom Tromey <tromey@redhat.com>
3617 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
3620 2010-07-13 Tom Tromey <tromey@redhat.com>
3622 * symfile.c (set_initial_language): Update.
3623 (deduce_language_from_filename): Argument type now const.
3624 * symtab.h (find_main_filename): Update.
3625 (deduce_language_from_filename): Update.
3626 * symtab.c (find_main_filename): Make result const.
3627 * dwarf2read.c (dw2_find_symbol_file): Change return type.
3628 * psymtab.c (find_symbol_file_from_partial): Change return type.
3629 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3632 2010-07-13 Tom Tromey <tromey@redhat.com>
3634 * breakpoint.c (save_cmdlist): No longer static.
3635 * gdbcmd.h (save_cmdlist): Declare.
3636 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
3637 OBJF_READNOW on objfile if readnow_symbol_files.
3638 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
3639 (elf_sym_fns_gdb_index): New global.
3640 * dwarf2read.c: Include exceptions.h.
3642 (struct mapped_index): New.
3643 (dwarf2_per_cu_data_ptr): New typedef.
3644 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
3646 (GDB_INDEX_SECTION): New define.
3647 (struct dwarf2_per_cu_quick_data): New.
3648 (struct dwarf2_per_cu_data) <objfile>: New field.
3651 (byte_swap): New function.
3652 (MAYBE_SWAP): New macro.
3653 (INDEX_SUFFIX): New macro.
3654 (dw2_do_instantiate_symtab): New function.
3655 (dw2_instantiate_symtab): Likewise.
3656 (create_cus_from_index): Likewise.
3657 (create_addrmap_from_index): Likewise.
3658 (mapped_index_string_hash): Likewise.
3659 (find_slot_in_mapped_hash): Likewise.
3660 (dwarf2_read_index): Likewise.
3661 (dw2_setup): Likewise.
3662 (dw2_require_line_header): Likewise.
3663 (dw2_require_full_path): Likewise.
3664 (dw2_find_last_source_symtab): Likewise.
3665 (dw2_forget_cached_source_info): Likewise.
3666 (dw2_lookup_symtab): Likewise.
3667 (dw2_lookup_symbol): Likewise.
3668 (dw2_do_expand_symtabs_matching): Likewise.
3669 (dw2_pre_expand_symtabs_matching): Likewise.
3670 (dw2_print_stats): Likewise.
3671 (dw2_dump): Likewise.
3672 (dw2_relocate): Likewise.
3673 (dw2_expand_symtabs_for_function): Likewise.
3674 (dw2_expand_all_symtabs): Likewise.
3675 (dw2_expand_symtabs_with_filename): Likewise.
3676 (dw2_find_symbol_file): Likewise.
3677 (dw2_map_ada_symtabs): Likewise.
3678 (dw2_expand_symtabs_matching): Likewise.
3679 (dw2_find_pc_sect_symtab): Likewise.
3680 (dw2_map_symbol_names): Likewise.
3681 (dw2_map_symbol_filenames): Likewise.
3682 (dw2_has_symbols): Likewise.
3683 (dwarf2_gdb_index_functions): New global.
3684 (dwarf2_initialize_objfile): New function.
3685 (process_psymtab_comp_unit): Update.
3686 (add_partial_subprogram): Likewise.
3687 (dwarf2_psymtab_to_symtab): Likewise.
3688 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3689 (process_full_comp_unit): Update.
3690 (find_file_and_directory): New function.
3691 (read_file_scope): Use find_file_and_directory.
3692 (dwarf2_per_cu_objfile): Update.
3693 (dwarf2_per_cu_addr_size): Update.
3694 (dwarf2_per_cu_offset_size): Update.
3695 (dwarf2_free_objfile): Free the index, if needed.
3696 (dwarf2_per_objfile_free): Unmap the index, if needed.
3697 (struct strtab_entry): New.
3698 (hash_strtab_entry): New function.
3699 (eq_strtab_entry): Likewise.
3700 (create_strtab): Likewise.
3701 (add_string): Likewise.
3702 (struct symtab_index_entry): New.
3703 (struct mapped_symtab): New.
3704 (hash_symtab_entry): New function.
3705 (eq_symtab_entry): Likewise.
3706 (delete_symtab_entry): Likewise.
3707 (create_index_table): Likewise.
3708 (create_mapped_symtab): Likewise.
3709 (cleanup_mapped_symtab): Likewise.
3710 (find_slot): Likewise.
3711 (hash_expand): Likewise.
3712 (add_index_entry): Likewise.
3713 (add_indices_to_cpool): Likewise.
3714 (write_hash_table): Likewise.
3715 (add_address_entry): Likewise.
3716 (write_psymbols): Likewise.
3717 (write_obstack): Likewise.
3718 (unlink_if_set): Likewise.
3719 (write_psymtabs_to_index): Likewise.
3720 (save_gdb_index_command): Likewise.
3721 (_initialize_dwarf2_read): Install "save gdb-index"
3723 (create_all_comp_units): Initialize 'objfile' field of CU.
3724 (dwarf2_locate_sections): Check for .gdb_index.
3725 * psymtab.h (dwarf2_gdb_index_functions): Declare.
3726 * symfile.h (dwarf2_initialize_objfile): Declare.
3728 2010-07-13 Tom Tromey <tromey@redhat.com>
3730 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3731 (basic_lookup_transparent_type): Likewise.
3732 * symfile.h (struct quick_symbol_functions)
3733 <pre_expand_symtabs_matching>: New field.
3734 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3735 (psym_functions): Update.
3737 2010-07-13 Tom Tromey <tromey@redhat.com>
3739 PR breakpoints/8357:
3740 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3741 * linespec.c (decode_line_1): Update comment. Call decode_label.
3742 (decode_label): New function.
3743 (symbol_found): Handle LOC_LABEL.
3744 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3745 domain. Call add_symbol_to_list.
3747 2010-07-13 Tom Tromey <tromey@redhat.com>
3749 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3750 * dwarf2loc.c (find_location_expression): Use
3751 dwarf2_per_cu_text_offset.
3752 (dwarf2_evaluate_loc_desc): Likewise.
3753 (dwarf2_loc_desc_needs_frame): Likewise.
3754 (compile_dwarf_to_ax): Likewise.
3755 (loclist_describe_location): Likewise.
3756 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3757 (dwarf2_per_cu_objfile): Update comment.
3759 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3761 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3762 * p-lang.c (pascal_printstr): Likewise.
3764 2010-07-09 Tom Tromey <tromey@redhat.com>
3766 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3767 'hint' if it is NULL.
3769 2010-07-09 Hui Zhu <teawater@gmail.com>
3771 * source.c (print_source_lines_base): Add check for noprint.
3773 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3775 * python/python-config.py: Resync with Python 2.7 version of this
3778 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3780 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3782 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3784 * NEWS: Create a new section for the next release branch.
3785 Rename the section of the current branch, now that it has
3788 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3790 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3791 * version.in: Bump version to 7.2.50.20100707-cvs.
3793 2010-07-07 Tom Tromey <tromey@redhat.com>
3795 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3796 LOC_COMPUTED symbol.
3797 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3798 (dwarf2_loc_desc_needs_frame): Likewise.
3799 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3800 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3801 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3802 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3804 (struct dwarf2_frame_cache) <text_offset>: New field.
3805 (dwarf2_frame_cache): Set new field.
3806 (dwarf2_frame_prev_register): Update.
3807 (dwarf2_frame_sniffer): Update.
3808 (dwarf2_frame_base_sniffer): Update.
3809 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3811 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3812 Thiago Jung Bauermann <bauerman@br.ibm.com>
3814 Support for hw accelerated condition watchpoints in booke powerpc.
3816 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3817 and move to eval.c. Change callers.
3818 (insert_bp_location): Pass watchpoint condition in
3819 target_insert_watchpoint.
3820 (remove_breakpoint_1) Pass watchpoint condition in
3821 target_remove_watchpoint.
3822 (watchpoint_locations_match): Call
3823 target_can_accel_watchpoint_condition.
3824 * eval.c: Include wrapper.h.
3825 (fetch_subexp_value): Moved from breakpoint.c.
3826 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3828 (can_use_watchpoint_cond_accel): New function.
3829 (calculate_dvc): Likewise.
3830 (num_memory_accesses): Likewise.
3831 (check_condition): Likewise.
3832 (ppc_linux_can_accel_watchpoint_condition): Likewise
3833 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3834 check_condition and calculate_dvc.
3835 (ppc_linux_remove_watchpoint): Likewise.
3836 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3837 ppc_linux_can_accel_watchpoint_condition
3838 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3840 (debug_to_remove_watchpoint): Likewise.
3841 (debug_to_can_accel_watchpoint_condition): New function.
3842 (update_current_target): Set to_can_accel_watchpoint_condition.
3843 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3844 * target.h: Add opaque declaration for struct expression.
3845 (struct target_ops) <to_insert_watchpoint>,
3846 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3847 <to_can_accel_watchpoint_condition>: New member.
3848 condition. Update all callers and implementations.
3849 (target_can_accel_watchpoint_condition): New macro.
3850 * value.c (free_value_chain): New function.
3851 * value.h (fetch_subexp_value): New prototype.
3852 (free_value_chain): Likewise.
3854 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3856 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3857 from gdbarch_core_regset_sections also for .reg if present.
3859 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3860 section size for .reg.
3861 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3862 (ppc_linux_vmx_regset_sections): Likewise.
3863 (ppc_linux_fp_regset_sections): Likewise.
3864 (ppc64_linux_vsx_regset_sections): New variable.
3865 (ppc64_linux_vmx_regset_sections): Likewise.
3866 (ppc64_linux_fp_regset_sections): Likewise.
3867 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3868 for current word size.
3870 2010-07-06 Joel Brobecker <brobecker@adacore.com>
3872 * server.c (myresume): Make static.
3874 2010-07-06 Tom Tromey <tromey@redhat.com>
3876 * configure, config.in: Rebuild.
3877 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3878 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3880 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3882 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3885 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
3887 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3888 * gdbtypes.c (floatformats_ieee_half): New variable.
3889 * doublest.c (floatformat_from_length): Set format to
3890 gdbarch_half_format if length matches.
3891 * gdbarch.sh (half_bit): New architecture method.
3892 (half_format): Likewise.
3893 * gdbarch.h: Regenerate.
3894 * gdbarch.c: Likewise.
3896 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3897 Joel Brobecker <brobecker@adacore.com>
3899 Fix re-run of PIE executable, PR shlibs/11776.
3900 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3901 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3903 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3904 Joel Brobecker <brobecker@adacore.com>
3906 * auxv.c (memory_xfer_auxv): Update attach comment.
3907 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3908 svr4_relocate_main_executable.
3909 (svr4_solib_create_inferior_hook): Make the call to
3910 svr4_relocate_main_executable unconditional.
3912 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3913 Joel Brobecker <brobecker@adacore.com>
3915 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3917 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3918 Joel Brobecker <brobecker@adacore.com>
3920 Fix attaching to PIEs prelinked on the disk after the process was
3922 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3923 Verify it against bfd_get_arch_size. Try to match arbitrary
3924 displacement for the phdrs comparison.
3926 2010-07-02 Tom Tromey <tromey@redhat.com>
3929 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3930 value as optimized-out.
3932 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3933 Thiago Jung Bauermann <bauerman@br.ibm.com>
3935 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3936 represent?" question in comment. Change comment to a proper sentence.
3938 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
3940 * c-valprint.c (c_val_print): Fix printing of character vectors.
3942 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3944 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3945 create_breakpoint prototype.
3947 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3949 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3950 usefulness suggestion of multiple breakpoints at same location.
3952 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3954 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3956 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3958 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3959 (loclist_tracepoint_var_ref): Handle optimized out values.
3961 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3963 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3964 unnecessary space in string.
3965 * filesystem.c (_initialize_filesystem): Ditto.
3966 * frame.c (_initialize_frame): Ditto.
3967 * infcmd.c (step_once): Ditto.
3968 * infrun.c (_initialize_infrun): Ditto.
3969 * linux-nat.c (linux_child_follow_fork): Ditto.
3970 * maint.c (maintenance_deprecate): Ditto.
3971 * memattr.c (_initialize_mem): Ditto.
3972 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3973 * monitor.c (monitor_open): Ditto.
3974 * procfs.c (procfs_xfer_memory): Ditto.
3975 * reverse.c (bookmarks_info): Ditto.
3976 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3977 * stack.c (_initialize_stack): Ditto.
3978 * tracepoint.c (_initialize_tracepoint): Ditto.
3979 * xtensa-tdep.c (xtensa_supply_gregset,
3980 xtensa_regset_from_core_section): Ditto.
3982 2010-07-01 Tom Tromey <tromey@redhat.com>
3984 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3986 * value.c (value_entirely_optimized_out): Invert result. Update
3987 for new function name.
3989 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3991 Static tracepoints support.
3993 * NEWS: Mention new support for static tracepoints.
3994 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3995 qXfer:statictrace:read.
3996 (New features in the GDB remote stub, GDBserver): Mention static
3997 tracepoints support using an UST based backend.
3998 (New commands): Mention "info static-tracepoint-markers" and
4000 * breakpoint.c (is_marker_spec): New.
4001 (is_tracepoint): Handle static tracepoints.
4002 (validate_commands_for_breakpoint): Static tracepoints can't do
4004 (static_tracepoints_here): New.
4005 (bpstat_what): Handle static tracepoints.
4006 (print_one_breakpoint_location, allocate_bp_location, mention):
4008 (create_breakpoint_sal): Ditto.
4009 (decode_static_tracepoint_spec): New.
4010 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
4011 `type_wanted'. Adjust. Handle static tracepoint marker
4013 (break_command_1): Adjust.
4014 (update_static_tracepoint): New.
4015 (update_breakpoint_locations): Handle static tracepoints.
4016 (breakpoint_re_set_one): Handle static tracepoint marker
4018 (disable_command, enable_command): Handle static tracepoints.
4019 (trace_command, ftrace_command): Adjust.
4020 (strace_command): New.
4021 (create_tracepoint_from_upload): Adjust.
4022 (save_breakpoints): Handle static tracepoints.
4023 (_initialize_breakpoint): Install the "strace" command.
4024 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
4025 (struct breakpoint): New fields static_trace_marker_id and
4026 static_trace_marker_id_idx.
4027 (breakpoints_here_p): Declare.
4028 (create_breakpoint): Adjust.
4029 (static_tracepoints_here): Declare.
4030 * remote.c (struct remote_state) <static_tracepoints>: New field.
4031 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
4032 (remote_static_tracepoint_marker_at): New.
4033 (remote_static_tracepoint_markers_by_strid): New.
4034 (remote_static_tracepoint_feature): New.
4035 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
4036 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
4037 (remote_supports_static_tracepoints): New.
4038 (remote_download_tracepoint): Download static tracepoints.
4039 (init_remote_ops): Install remote_static_tracepoint_marker_at and
4040 remote_static_tracepoint_markers_by_strid.
4041 (_initialize_remote): Install set|show remote static-tracepoints,
4042 and set|show remote read-sdata-object commands.
4043 * target.c (update_current_target): Inherit and default
4044 to_static_tracepoint_marker_at, and
4045 to_static_tracepoint_markers_by_strid.
4046 * target.h (static_tracepoint_marker): Forward declare.
4047 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
4048 (static_tracepoint_marker_p): New typedef.
4049 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
4050 (struct target_ops): New fields to_static_tracepoint_marker_at and
4051 to_static_tracepoint_markers_by_strid.
4052 (target_static_tracepoint_marker_at)
4053 (target_static_tracepoint_markers_by_strid): New.
4054 * tracepoint.c: Include source.h.
4055 (validate_actionline): Handle $_sdata.
4056 (struct collection_list): New field strace_data.
4057 (add_static_trace_data): New.
4058 (clear_collection_list): Clear strace_data.
4059 (stringify_collection_list): Account for a possible static trace
4061 (encode_actions_1): Encode an $_sdata collection.
4062 (parse_tracepoint_definition): Handle static tracepoints.
4063 (parse_static_tracepoint_marker_definition): New.
4064 (release_static_tracepoint_marker): New.
4065 (print_one_static_tracepoint_marker): New.
4066 (info_static_tracepoint_markers_command): New.
4067 (sdata_make_value): New.
4068 (_initialize_tracepoint): Create the $_sdata convenience variable.
4069 Add the "info static-tracepoint-markers" command.
4070 Mention $_sdata in the "collect" command's help output.
4071 * tracepoint.h (struct static_tracepoint_marker): New.
4072 (parse_static_tracepoint_marker_definition)
4073 (release_static_tracepoint_marker): Declare.
4074 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4075 * python/py-breakpoint.c (bppy_new): Adjust.
4077 2010-06-30 Joel Brobecker <brobecker@adacore.com>
4079 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
4082 2010-06-29 Doug Evans <dje@google.com>
4085 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
4086 DW_AT_external is present.
4090 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
4091 create a symbol for the field and record the value.
4092 (new_symbol): Handle DW_TAG_member.
4093 * gdbtypes.c (field_is_static): Remove FIXME.
4094 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
4095 only ignore LOC_CONST symbols that are enums.
4097 * dwarf2read.c: Remove trailing whitespace.
4099 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
4100 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
4101 (struct main_type, field loc): Delete dwarf_block.
4102 (FIELD_DWARF_BLOCK): Delete.
4103 (SET_FIELD_DWARF_BLOCK): Delete.
4104 (TYPE_FIELD_DWARF_BLOCK): Delete.
4105 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
4108 2010-06-29 Hui Zhu <teawater@gmail.com>
4110 * record.c (set_record_pic_cmdlist,
4111 show_record_pic_cmdlist): New variables.
4112 (set_record_pic_command,
4113 show_record_pic_command): New functions.
4114 (record_pic_function, record_pic_line, record_pic_enum,
4115 set_record_pic_type, record_pic_hide_nofunction,
4116 record_pic_hide_nosource, record_pic_hide_same): New variables.
4117 (record_pic_fputs): New function.
4118 (function_list, node_list, edge_list): New struct.
4119 (function_list, node_list, edge_list): New variables.
4120 (record_pic_cleanups, record_pic_node,
4121 record_pic_edge, cmd_record_pic): New functions.
4122 (_initialize_record): Add new commands for record pic.
4124 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4126 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
4127 ALLOCATE_CPLUS_STRUCT_TYPE.
4129 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
4130 Tom Tromey <tromey@redhat.com>
4131 Thiago Jung Bauermann <bauerman@br.ibm.com>
4133 * value.c (pack_unsigned_long): New function.
4134 (value_from_ulongest): New function.
4135 * value.h (value_from_ulongest): Declare.
4136 * python/python.c (_initialize_python): Call
4137 gdbpy_initialize_thread and gdbpy_initialize_inferior.
4138 * python/python-internal.h: Define thread_object.
4139 (gdbpy_inferiors, gdbpy_selected_thread)
4140 (frame_info_to_frame_object, create_thread_object)
4141 (find_thread_object, find_inferior_object)
4142 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
4143 (gdbpy_is_value_object, get_addr_from_python): Declare.
4144 * python/py-value.c (builtin_type_upylong): Define.
4145 (convert_value_from_python): Add logic for ulongest.
4146 (gdbpy_is_value_object): New function.
4147 * python/py-utils.c (get_addr_from_python): New function.
4148 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
4149 (gdbpy_selected_frame): Use PyObject over frame_info.
4150 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
4152 (SUBDIR_PYTHON_SRCS): Likewise.
4153 (py-inferior.o): New Rule.
4154 (py-infthread.o): New Rule.
4155 * python/py-inferior.c: New File.
4156 * python/py-infthread.c: New File.
4158 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4160 * c-typeprint.c (c_type_print_base): For no fields check include also
4161 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
4162 * dwarf2read.c (struct typedef_field_list)
4163 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
4164 (dwarf2_add_typedef): New.
4165 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
4166 Copy also FI.TYPEDEF_FIELD_LIST.
4167 * gdbtypes.h (struct typedef_field)
4168 (struct cplus_struct_type) <typedef_field, typedef_field_count>
4169 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
4170 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
4172 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4174 * cp-namespace.c (cp_lookup_nested_type): New variable
4175 concatenated_name. Turn the current return condition into a reverse
4176 one. Call also lookup_static_symbol_aux on the constructed qualified
4178 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
4179 other files into a called ...
4180 (lookup_static_symbol_aux): ... new function here.
4181 * symtab.h (lookup_static_symbol_aux): New prototype.
4182 * valops.c (value_maybe_namespace_elt): Call also
4183 lookup_static_symbol_aux if we failed otherwise.
4185 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4187 Fix PR c++/11703 and PR gdb/1448.
4188 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
4191 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4193 Fix modification of cplus_struct_default.
4194 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
4195 Call ALLOCATE_CPLUS_STRUCT_TYPE.
4196 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
4198 2010-06-28 Joel Brobecker <brobecker@adacore.com>
4200 * NEWS: Add entry announcing the python directory.
4202 2010-06-28 Tom Tromey <tromey@redhat.com>
4204 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
4206 2010-06-28 Doug Evans <dje@google.com>
4208 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
4209 All callers updated.
4211 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4213 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
4214 obstack_begin after each obstack_free.
4216 2010-06-27 Doug Evans <dje@google.com>
4218 * value.c (value_static_field): Use `switch' instead of `if'.
4219 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
4221 * valops.c (search_struct_field): Fix typo in error message.
4223 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
4225 * dwarf2expr.c (execute_stack_op): Place preprocessor
4226 directives at the start of the source line.
4228 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
4230 * defs.h (make_command_stats_cleanup): Declare.
4231 (set_display_time): Declare.
4232 (set_display_space): Declare.
4233 * event-top.c (command_handler): Use make_command_stats_cleanup.
4234 * main.c (display_time, display_space): Move definitions to utils.c.
4235 (captured_main): Use make_command_stats_cleanup to get start-up
4237 Use set_display_time and set_display_space for processing OPT_STATISTICS
4239 * maint.c (maintenance_time_display): Use set_display_time.
4240 (maintenance_space_display): Use set_display_space.
4241 * top.c (execute_command): Remove obsolete 'maint time' code.
4242 (command_loop): Use make_command_stats_cleanup.
4243 * utils.c (struct cmd_stats): Structure for storing initial time
4245 (display_time, display_space): Move definitions here from utils.c.
4246 (set_display_time): New function.
4247 (set_display_space): New function.
4248 (make_command_stats_cleanup): New function.
4249 (report_command_stats): New auxiliary function for
4250 make_command_stats_cleanup.
4252 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4254 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
4255 hosts where CORE_ADDR is long long.
4257 2010-06-25 Tom Tromey <tromey@redhat.com>
4260 * python/python.c (execute_gdb_command): Add keywords. Accept
4261 "to_string" argument.
4262 (struct restore_ui_file_closure): New.
4263 (restore_ui_file): New function.
4264 (make_cleanup_restore_ui_file): Likewise.
4265 (GdbMethods) <execute>: Update.
4267 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4269 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
4270 during inferior call stack frame setup.
4272 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
4274 * solib-spu.c: Include "exception.h".
4275 (ocl_program_data_key): New variable.
4276 (append_ocl_sos): New function.
4277 (ocl_enable_break): Likewise.
4278 (spu_current_sos): Call append_ocl_sos.
4279 (spu_solib_loaded): Call ocl_enable_break.
4280 (_initialize_spu_solib): Register ocl_program_data_key.
4282 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4284 * cp-support.c (reset_directive_searched): New function.
4285 (make_symbol_overload_list_using): Prevent recursive calls.
4287 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
4289 * printcmd.c (print_variable_and_value): Print error message on
4292 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4294 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
4296 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
4298 (dwarf_expr_push): Change input type to ULONGEST.
4299 (dwarf_expr_fetch): Change return type to ULONGEST.
4300 (dwarf_expr_fetch_address): Add prototype.
4301 (dwarf2_read_address): Remove prototype.
4302 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
4303 Truncate stack values to ctx->addr_size bytes.
4304 (dwarf_expr_fetch): Change return value to ULONGEST.
4305 (dwarf_expr_fetch_address): New function.
4306 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
4307 when appropriate. Update for struct dwarf_expr_piece changes.
4308 (dwarf2_read_address): Remove.
4309 (unsigned_address_type): Remove.
4310 (signed_address_type): Remove.
4311 (execute_stack_op): Use dwarf_expr_fetch_address instead of
4312 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
4313 values. Perform operations on ULONGEST instead of on GDB values,
4314 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
4315 values and DW_OP_deref results as unsigned integers.
4316 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
4318 (write_pieced_value): Likewise.
4319 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
4320 dwarf_expr_fetch when appropriate.
4321 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
4322 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
4323 instead of dwarf_expr_fetch when appropriate.
4325 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
4327 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
4329 2010-06-24 Joel Brobecker <brobecker@adacore.com>
4331 * python/python.c (_initialize_python): Add new "constant"
4332 PYTHONDIR in gdb module. Insert this path at the head of
4333 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
4334 exec its __init__.py script if it exists in that directory.
4336 2010-06-24 Kevin Buettner <kevinb@redhat.com>
4338 * rx-tdep.c (RX_ACC_REGNUM): Define.
4339 (RX_NUM_REGS): Redefine to 26.
4340 (rx_register_name): Add register "acc". Change order of several
4341 registers. Change name of "vct" register to "fintv" to match RX
4343 (rx_register_type): Add case for RX_ACC_REGNUM.
4345 2010-06-24 Tom Tromey <tromey@redhat.com>
4347 * psymtab.c (lookup_partial_symbol): Mark definition as static.
4349 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4350 Tom Tromey <tromey@redhat.com>
4352 Fix GDB startup on readonly filesystem.
4353 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
4355 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4356 Pedro Alves <pedro@codesourcery.com>
4359 * breakpoint.c (handle_jit_event): New function.
4360 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
4361 jit, err, table and bs_class. New variables shlib_event, jit_event,
4362 this_action and bptype. Change bs_class assignments to this_action
4363 assignments. new unhandled bptype internal error. Move here
4364 shlib_event and jit_event handling from handle_inferior_event.
4365 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
4366 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
4367 BPSTAT_WHAT_CHECK_JIT.
4368 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
4369 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
4370 (handle_inferior_event): Reinitialize frame and gdbarch after
4371 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
4372 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
4373 gdbarch when frame gets reinitialized.
4375 2010-06-24 Hui Zhu <teawater@gmail.com>
4377 * printcmd.c (ui_printf): New function.
4378 (printf_command): Call ui_printf.
4379 (_initialize_printcmd): New command "eval".
4381 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
4383 * infrun.c (handle_inferior_event): Handle presence of single-step
4384 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
4385 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
4386 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
4387 * breakpoint.c (detach_single_step_breakpoints): New function.
4388 (detach_breakpoints): Call it.
4389 (cancel_single_step_breakpoints): New function.
4390 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
4392 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
4393 (spu_gdbarch_init): Install it.
4395 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4397 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
4398 * configure: Regenerate.
4400 2010-06-22 Hui Zhu <teawater@gmail.com>
4402 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
4403 (i386_process_record): Ditto.
4404 * record.c (record_memory_query): New variable.
4405 (_initialize_record): New command "set record memory-query".
4406 * record.h (record_memory_query): New extern.
4408 2010-06-21 Doug Evans <dje@google.com>
4410 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
4411 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
4412 (i386_syscall_p): Change type of lengthp to int.
4413 (i386_displaced_step_fixup): Handle kernels that run one past a
4415 * i386-linux-tdep.c (i386_linux_init_abi): Use
4416 i386_displaced_step_copy_insn instead of
4417 simple_displaced_step_copy_insn.
4419 2010-06-21 Tom Tromey <tromey@redhat.com>
4421 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
4422 (dwarf_type_encoding_name): Likewise.
4424 2010-06-21 Tom Tromey <tromey@redhat.com>
4426 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
4427 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
4428 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
4429 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
4430 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
4431 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
4432 * dwarf2read.c (tag_type_to_type): Create a new error type on
4434 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
4435 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
4437 2010-06-21 Michael Snyder <msnyder@vmware.com>
4439 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
4440 not add_abbrev_prefix_cmd, for "enable breakpoints".
4442 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
4444 * dwarf2loc.c (find_location_expression): Add relocation offset
4445 to base-address-selection entry base addresses. Read addresses
4446 (and offsets) as signed/unsigned integers, depending on the
4447 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
4448 (loclist_describe_location): Likewise.
4449 (disassemble_dwarf_expression): Read DW_OP_addr operand as
4450 unsigned integer. Do not call dwarf2_read_address.
4451 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
4453 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4455 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
4456 value instead of hard-coded SPU_LS_SIZE.
4457 (spu_software_single_step): Likewise.
4458 * spu-tdep.h (SPU_LS_SIZE): Remove.
4460 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4462 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
4463 limit on local store memory accesses.
4464 * spu-linux-nat.c (spu_xfer_partial): Likewise.
4465 * spu-tdep.c (spu_lslr): Remove.
4466 (spu_pointer_to_address): Do not truncate addresses.
4467 (spu_integer_to_address): Likewise.
4468 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
4469 * spu-tdep.h: Add comments.
4470 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
4471 (SPU_OVERLAY_LMA): Define.
4473 2010-06-18 Stan Shebs <stan@codesourcery.com>
4475 * osdata.c (get_osdata): Warn separately if target does not report
4477 (info_osdata_command): Allow empty type, report error if target
4478 does not return available types of OS data.
4479 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
4480 types if no annex supplied.
4482 * thread.c (thread_id_make_value): Make a value representing the
4484 (_initialize_thread): Create $_thread.
4486 2010-06-17 Joel Brobecker <brobecker@adacore.com>
4488 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
4489 last local variable declaration. No real code change.
4491 2010-06-17 Tom Tromey <tromey@redhat.com>
4493 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
4494 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
4497 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
4498 Jan Kratochvil <jan.kratochvil@redhat.com>
4500 * breakpoint.c: Include parser-defs.h.
4501 (watchpoint_exp_is_const): New function.
4502 (watch_command_1): Call watchpoint_exp_is_const to check
4503 if the expression is constant.
4505 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
4507 * configure.ac: Check for RDYNAMIC also for cross builds.
4508 * configure: Regenerate.
4510 2010-06-15 Pedro Alves <pedro@codesourcery.com>
4512 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4513 (SFILES): Remove solib-null.c, add solib-target.c.
4514 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
4515 (ALLDEPFILES): Remove solib-target.c.
4516 * solib-target.c (_initialize_solib_target): Set
4517 current_target_so_ops to solib_target_so_ops if not already set.
4518 * solib-null.c: Delete.
4520 2010-06-14 Pedro Alves <pedro@codesourcery.com>
4522 * NEWS: Mention GDBserver's JIT compilation of tracepoint
4525 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4527 * cp-valprint.c (cp_print_static_field): Members of
4528 dont_print_stat_array_obstack are of type "struct type *".
4529 (_initialize_cp_valprint): Likewise.
4531 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4533 * frame.c (frame_register_unwind): Do not access contents
4534 of "optimized out" unwound register value.
4536 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4538 * ada-lang.h (ada_print_type): Make varstring const.
4539 * ada-typeprint.c (print_func_type): Make name const.
4540 (ada_print_type): Make varstring const.
4541 * c-lang.h (c_print_type): Make varstring const.
4542 * c-typeprint.c (c_print_type): Likewise.
4543 * f-lang.h (f_print_type): Likewise.
4544 * f-typeprint.c (f_print_type): Likewise.
4545 * jv-lang.h (java_print_type): Likewise.
4546 * jv-typeprint.c (java_print_type): Likewise.
4547 * language.c (unk_lang_print_type): Likewise.
4548 * language.h (struct language_defn) <la_print_type>: Likewise.
4549 * m2-lang.h (m2_print_type): Likewise.
4550 * m2-typeprint.c (m2_print_type): Likewise.
4551 * p-lang.h (pascal_print_type): Likewise.
4552 * p-typeprint.c (pascal_print_type): Likewise.
4554 2010-06-11 Stan Shebs <stan@codesourcery.com>
4556 Add per-operation permission flags.
4558 * target.h (struct target_ops): New method to_set_permissions.
4559 (target_set_permissions): New macro.
4560 (target_insert_breakpoint): Change macro to function.
4561 (target_remove_breakpoint): Ditto.
4562 (target_stop): Ditto.
4563 (may_write_registers): Declare.
4564 (may_write_memory): Declare.
4565 (may_insert_breakpoints): Declare.
4566 (may_insert_tracepoints): Declare.
4567 (may_insert_fast_tracepoints): Declare.
4568 (may_stop): Declare.
4569 * target.c (may_write_registers, may_write_registers_1): New globals.
4570 (may_write_memory, may_write_memory_1): New globals.
4571 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
4572 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
4573 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
4575 (may_stop, may_stop_1): New global.
4576 (target_xfer_partial): Test for write permission.
4577 (target_store_registers): Ditto.
4578 (target_insert_breakpoint): New function.
4579 (target_remove_breakpoint): New function.
4580 (target_stop): New function.
4581 (_initialize_targets): Add new set/show variables.
4582 (set_write_memory_permission): New function.
4583 (update_target_permissions): New function.
4584 (set_target_permissions): New function.
4585 (update_current_target): Default to_set_permissions.
4586 (_initialize_targets): Use new globals and setter function.
4587 * tracepoint.c (start_tracing): Test for permission.
4588 * inferior.h (update_observer_mode): Declare.
4589 * infrun.c (non_stop_1): Define earlier.
4590 (observer_mode, observer_mode_1): New globals.
4591 (set_observer_mode, show_observer_mode): New functions.
4592 (update_observer_mode): New function.
4593 (_initialize_infrun): Define "set observer" command.
4594 * remote.c (PACKET_QAllow): New optional packet.
4595 (remote_protocol_features): Add QAllow.
4596 (remote_set_permissions): New function.
4597 (remote_start_remote): Call it.
4598 (init_remote_ops): Add it to target vector.
4599 (_initialize_remote): Add config command for QAllow.
4601 2010-06-11 Tom Tromey <tromey@redhat.com>
4603 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
4604 DW_AT_vtable_elem_location even when GCC extension is seen.
4606 2010-06-11 Tom Tromey <tromey@redhat.com>
4608 PR gdb/9977, PR exp/11636:
4609 * value.h (value_offset): Update.
4610 (struct lval_funcs) <check_validity>: New field.
4611 <copy_closure>: Make argument const.
4612 (value_computed_closure): Update.
4613 (value_contents_for_printing): Declare.
4614 (value_bits_valid): Likewise.
4615 (val_print): Likewise.
4616 (set_value_component_location): Update.
4617 (value_entirely_optimized_out): Declare.
4618 * value.c (value_offset): Argument now const.
4619 (require_not_optimized_out): New function.
4620 (value_contents_for_printing): New function.
4621 (value_contents_all): Call require_not_optimized_out.
4622 (value_contents): Likewise.
4623 (value_bits_valid): New function.
4624 (value_computed_closure): Argument now const.
4625 (set_value_component_location): Make 'whole' argument const.
4626 (value_entirely_optimized_out): New function.
4627 (value_bitsize): Argument now 'const'.
4628 (value_bitpos): Likewise.
4629 (value_type): Likewise.
4630 * valprint.h (val_print_array_elements): Update.
4631 * valprint.c (val_print): Add 'val' argument. Use
4632 valprint_check_validity.
4633 (valprint_check_validity): New function.
4634 (value_check_printable): Use value_entirely_optimized_out.
4635 (common_val_print): Update.
4636 (value_print): Likewise.
4637 (val_print_array_elements): Add 'val' argument.
4638 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
4639 value_bits_valid. Reinit frame cache for lval_computed.
4640 * sh64-tdep.c (sh64_do_register): Update.
4641 * scm-valprint.c (scm_val_print): Add 'val' argument.
4642 * scm-lang.h (scm_val_print): Update.
4643 * python/python.h (apply_val_pretty_printer): Update.
4644 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
4645 argument. Call set_value_component_location.
4646 * printcmd.c (print_scalar_formatted): Update.
4647 * p-valprint.c (pascal_val_print): Add 'val' argument.
4648 (pascal_object_print_value_fields): Likewise.
4649 (pascal_object_print_value): Likewise.
4650 (pascal_object_print_static_field): Update.
4651 * p-lang.h (pascal_val_print): Update.
4652 (pascal_object_print_value_fields): Update.
4653 * mt-tdep.c (mt_registers_info): Update.
4654 * mi/mi-main.c (get_register): Update.
4655 (mi_cmd_data_evaluate_expression): Use common_val_print.
4656 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4657 (m2_print_unbounded_array): Likewise.
4658 (m2_val_print): Likewise.
4659 * m2-lang.h (m2_val_print): Update.
4660 * language.h (struct language_defn) <la_val_print>: Add 'val'
4662 (LA_VAL_PRINT): Likewise.
4663 * language.c (unk_lang_val_print): Add 'val' argument.
4664 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4665 (java_val_print): Likewise.
4666 * jv-lang.h (java_val_print): Add 'val' argument.
4667 * infcmd.c (default_print_registers_info): Update.
4668 * f-valprint.c (f77_print_array_1): Add 'val' argument.
4669 (f77_print_array): Likewise.
4670 (f_val_print): Likewise.
4671 * f-lang.h (f_val_print): Add 'val' argument.
4672 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4674 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
4675 set_value_optimized_out.
4676 (write_pieced_value): Use value_bitsize and value_bitpos.
4677 <default>: Don't exit loop.
4678 (check_pieced_value_validity): New function.
4679 (pieced_value_funcs): Reference check_pieced_value_validity,
4680 check_pieced_value_invalid.
4681 (copy_pieced_value_closure): Update.
4682 (check_pieced_value_bits): New function.
4683 (check_pieced_value_invalid): New function.
4684 * d-valprint.c (dynamic_array_type): Add 'val' argument.
4685 (d_val_print): Likewise.
4686 * d-lang.h (d_val_print): Update.
4687 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4688 (cp_print_value_fields_rtti): Likewise.
4689 (cp_print_value): Likewise.
4690 (cp_print_static_field): Update.
4691 * c-valprint.c (c_val_print): Add 'val' argument.
4692 (c_value_print): Update.
4693 * c-lang.h (c_val_print): Update.
4694 (cp_print_value_fields): Likewise.
4695 (cp_print_value_fields_rtti): Likewise.
4696 * ada-valprint.c (struct ada_val_print_args): Remove.
4697 (val_print_packed_array_elements): Add 'val' argument.
4698 (ada_val_print): Likewise. Rewrite.
4699 (ada_val_print_stub): Remove.
4700 (ada_val_print_array): Add 'val' argument.
4701 (ada_val_print_1): Likewise.
4702 (print_variant_part): Likewise.
4703 (ada_value_print): Update.
4704 (print_record): Add 'val' argument.
4705 (print_field_values): Likewise.
4706 * ada-lang.h (ada_val_print): Update.
4708 2010-06-11 Tom Tromey <tromey@redhat.com>
4710 * vec.h (VEC_cleanup): New macro.
4711 (DEF_VEC_ALLOC_FUNC_I): Update.
4712 (DEF_VEC_ALLOC_FUNC_P): Likewise.
4713 (DEF_VEC_ALLOC_FUNC_O): Likewise.
4714 * dwarf2loc.c (struct axs_var_loc): Remove.
4715 (unimplemented): New function.
4716 (translate_register): Likewise.
4717 (access_memory): Likewise.
4718 (compile_dwarf_to_ax): Likewise.
4719 (dwarf2_tracepoint_var_loc): Remove.
4720 (dwarf2_tracepoint_var_access): Likewise.
4721 (dwarf2_tracepoint_var_ref): Likewise.
4722 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4723 (loclist_tracepoint_var_ref): Likewise.
4724 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4725 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4726 require_composition. No longer static.
4727 (execute_stack_op): Update.
4728 * ax-gdb.h (trace_kludge): Declare.
4730 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4732 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4733 (should_be_inserted): Return zero also on NULL OWNER.
4734 (breakpoint_program_space_exit): New OWNER comment.
4735 (insert_breakpoint_locations): Extend comment for OWNER.
4736 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4737 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4739 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4740 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4741 (bpstat_check_location): New assert on OWNER.
4742 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4743 and B initializations to the code block. New assert on them.
4744 (print_one_breakpoint_location): New OWNER comment.
4745 (watchpoint_locations_match): Assert on OWNER.
4746 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4747 initializations to the code block. New assert on OWNER.
4748 (set_breakpoint_location_function): New assert on OWNER.
4749 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4750 (bp_location_compare, update_global_location_list)
4751 (update_global_location_list): New OWNER comment.
4753 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4755 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4757 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4759 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4760 (lin_thread_get_thread_signals): Remove prototype.
4761 (GET_THREAD_SIGNALS): Remove.
4762 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4763 * linux-thread-db.c (check_thread_signals): Directly call
4764 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4766 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4768 * gregset.h (GDB_FPXREGSET_T): Remove.
4769 (gdb_fpxregset_t): Likewise.
4770 (supply_fpxregset): Remove prototype.
4771 (fill_fpxregset): Likewise.
4772 * i386-linux-nat.c (supply_fpxregset): Remove.
4773 (fill_fpxregset): Likewise.
4774 (fetch_fpxregs): Inline supply_fpxregset call.
4775 (store_fpxregs): Inline fill_fpxregset call.
4777 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4778 * config/i386/nm-linux.h: Remove file.
4780 2010-06-09 Michael Snyder <msnyder@vmware.com>
4782 * target.c (update_current_target): Fix spelling error in comment.
4783 (target_mourn_inferior): Fix spelling error in error message.
4785 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4787 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4788 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4790 2010-06-08 Michael Snyder <msnyder@vmware.com>
4792 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4794 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4796 * configure.ac <"${have_libpython}" != no>: New workaround of
4798 * configure: Regenerate.
4800 2010-06-08 Hui Zhu <teawater@gmail.com>
4802 * record.c (record_wait): Move signal out of replay code.
4804 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4807 * dwarf2-frame.c (no_dwarf_call): New function.
4808 (execute_stack_op): Set CTX->DWARF_CALL.
4809 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4810 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4811 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4812 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4813 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4814 (needs_frame_dwarf_call): New function.
4815 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4816 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4817 Update the comment. Move variables die, offset and error call to ...
4818 (follow_die_ref): ... a new function.
4819 (dwarf2_fetch_die_location_block): New function.
4820 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4822 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4824 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4825 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4826 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4827 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4829 (struct needs_frame_baton): New field per_cu.
4830 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4831 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4833 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4835 * cp-support.c (make_symbol_overload_list_namespace): Only search
4836 static and global blocks.
4837 (make_symbol_overload_list_block): New function.
4838 (make_symbol_overload_list): Separate namespace search from block
4840 (make_symbol_overload_list_qualified): Use
4841 make_symbol_overload_list_block.
4843 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4845 * value.h: Created oload_search_type enum.
4846 (find_overload_match): Use oload_search_type enum.
4847 * valops.c (find_overload_match): Support combined member and
4849 * eval.c (evaluate_subexp_standard): Calls to
4850 find_overload_match now use oload_search_type enum.
4851 (oload_method_static): Verify index is a proper value.
4852 * valarith.c (value_user_defined_cpp_op): Search for and handle
4853 both member and non-member operators.
4854 (value_user_defined_cpp_op): New function.
4855 (value_user_defined_op): New function.
4856 (value_x_unop): Use value_user_defined_op.
4857 (value_x_binop): Ditto.
4858 * cp-support.c (make_symbol_overload_list_using): Added block
4860 Add check for namespace aliases and imported declarations.
4862 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4864 * breakpoint.h (owner): Extend the comment.
4866 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4868 Clear stale specific bp_location from former whole breakpoint.
4869 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4871 (free_bp_location): ... here. Rename there the called function to
4872 bpstat_remove_bp_location_callback.
4873 (bpstat_remove_breakpoint_callback): Rename to ...
4874 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4875 to struct bp_location. Change the called function to
4876 bpstat_remove_bp_location. Create new declaration for the function.
4877 (bpstat_remove_breakpoint): Rename to ...
4878 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4879 code for the new parameter type.
4881 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4883 * README: Make version-agnostic.
4885 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4887 Fix duplicate types for single DIE.
4888 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4890 (read_array_type): Remove type initialization. Recheck get_die_type
4891 after initial die_type. Move set_die_type before set_descriptive_type.
4892 (read_set_type): New variable domain_type. Recheck get_die_type after
4893 initial die_type. Move attr initialization later.
4894 (read_tag_pointer_type, read_tag_reference_type): New variable
4895 target_type. Recheck get_die_type after initial die_type.
4896 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4897 die_type and die_containing_type.
4898 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4899 Recheck get_die_type after initial die_type.
4900 (read_subrange_type): Recheck get_die_type after initial die_type.
4901 Move set_die_type before set_descriptive_type.
4902 (set_die_type): Extend the function comment. Call complaint if DIE has
4903 some type already set.
4905 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4907 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4908 for current naming of thread groups (iN, not N).
4910 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4912 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4913 * parse.c (operator_length): Likewise.
4914 (operator_length_standard): Likewise.
4915 * parser-defs.h (operator_length): Likewise.
4916 (operator_length_standard): Likewise.
4917 (struct exp_descriptor <operator_length>): Likewise.
4919 2010-06-04 Doug Evans <dje@google.com>
4921 Add support for enabling/disabling individual pretty-printers.
4922 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4923 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4924 * python/python.c (gdbpy_enabled_cst): Define.
4925 (_initialize_python): Initialize gdbpy_enabled_cst.
4928 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4930 * breakpoint.c (update_global_location_list): Fix comment typo.
4932 2010-06-04 Hui Zhu <teawater@gmail.com>
4934 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4936 2010-06-03 Doug Evans <dje@google.com>
4938 * configure.ac: Don't fail if python is unusable when
4939 configured with --with-python=auto.
4940 * configure: Regenerate.
4942 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4944 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
4946 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4948 * valprint.h (get_array_bounds): Change low and high parameter types
4950 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
4952 (val_print_array_elements): Adapt to change above.
4953 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4954 * p-valprint.c (pascal_val_print): Likewise.
4956 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4958 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4959 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4962 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4964 Support DW_TAG_module as separate namespaces.
4965 * dwarf2read.c (typename_concat): New parameter physname.
4966 (read_module_type): New function and declaration.
4967 (scan_partial_symbols): Scan also DW_TAG_module children.
4968 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4969 to typename_concat backward compatible physname value 0.
4970 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4971 backward compatible physname value 0.
4972 (add_partial_module, read_module): Remove FIXME comment.
4973 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4974 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4975 DIEs under DW_TAG_module.
4976 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4977 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4978 && physname and return there instead of just setting NAME. Extend
4979 the main block for language_fortran. Pass physname parameter to the
4980 typename_concat call.
4981 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4982 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4983 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4984 missing from SYMBOL_SET_NAMES in the language_fortran case.
4985 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4987 (read_type_die) <DW_TAG_module>: New.
4988 (MAX_SEP_LEN): Increase to 7.
4989 (typename_concat): New parameter physname. New variable lead. Support
4990 also language_fortran.
4991 * f-exp.y (yylex): Consider : also as a symbol name character class.
4992 * f-lang.c: Include cp-support.h.
4993 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4994 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4995 f_word_break_characters and f_make_symbol_completion_list.
4996 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4997 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4998 * symtab.c (symbol_init_language_specific): Support language_fortran.
4999 (symbol_find_demangled_name): New comment on language_fortran.
5000 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
5001 for language_fortran.
5002 (lookup_symbol_aux_local): Check imports also for language_fortran.
5003 (default_make_symbol_completion_list): Rename to ...
5004 (default_make_symbol_completion_list_break_on): ... this name. New
5005 parameter break_on, use it.
5006 (default_make_symbol_completion_list): New stub.
5007 * symtab.h (default_make_symbol_completion_list_break_on): New
5010 2010-06-02 Joel Brobecker <brobecker@adacore.com>
5012 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
5015 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5017 * dwarf2read.c (typename_concat): Add const to the variable sep.
5019 2010-06-02 Tom Tromey <tromey@redhat.com>
5021 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
5022 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
5023 type is const. Add 'def' argument. Add missing operators, remove
5025 (decode_locdesc): Update.
5026 (dwarf2_always_disassemble): New global.
5027 (show_dwarf2_always_disassemble): New function.
5028 (_initialize_dwarf2_read): Add always-disassemble.
5029 (dwarf2_per_cu_offset_size): New function.
5030 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
5031 (piece_end_p): New function.
5032 (locexpr_describe_location_piece): Replace 'size' argument with
5033 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
5034 some constants. Remove errors.
5035 (disassemble_dwarf_expression): New function.
5036 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
5037 Add 'offset_size' argument.
5038 (loclist_describe_location): Change output formatting.
5039 * dwarf2expr.h (dwarf_stack_op_name): Declare.
5041 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
5043 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
5044 anonymous type case.
5046 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
5048 * dwarf2read.c (read_subrange_type): Handle missing base type
5049 according to Dwarf-2 specifications.
5051 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
5053 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
5055 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
5056 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
5057 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
5058 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
5059 UNOP_CHMAX, UNOP_CHMIN.
5060 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
5061 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
5062 UNOP_CHMIN>: Remove opcodes.
5064 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
5066 * dwarf2read.c (read_func_scope): Do not complain for
5067 external function if bounds are not found.
5069 2010-06-01 Pedro Alves <pedro@codesourcery.com>
5071 * NEWS: Mention gdbserver fast tracepoints support.
5073 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
5075 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
5077 (windows_set_console_info): New function.
5078 (windows_create_inferior): Call windows_set_console_info
5079 if NEW_CONSOLE is true.
5080 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
5081 (_initialize_loadable): Initialize GetConsoleFontSize and
5082 GetCurrentConsoleFont.
5084 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5086 * Makefile.in (RDYNAMIC): New.
5087 (SFILES): Add proc-service.list.
5088 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
5089 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
5090 * config/arm/linux.mh: Likewise.
5091 * config/i386/linux.mh: Likewise.
5092 * config/i386/linux64.mh: Likewise.
5093 * config/ia64/linux.mh: Likewise.
5094 * config/m32r/linux.mh: Likewise.
5095 * config/m68k/linux.mh: Likewise.
5096 * config/mips/linux.mh: Likewise.
5097 * config/pa/linux.mh: Likewise.
5098 * config/powerpc/linux.mh: Likewise.
5099 * config/powerpc/ppc64-linux.mh: Likewise.
5100 * config/s390/s390.mh: Likewise.
5101 * config/sparc/linux.mh: Likewise.
5102 * config/sparc/linux64.mh: Likewise.
5103 * config/xtensa/linux.mh: Likewise.
5104 * configure.ac: New RDYNAMIC on native host and GCC.
5105 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
5106 * configure: Regenerate.
5107 * proc-service.list: New.
5109 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5111 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
5114 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5116 * linux-nat.c (linux_nat_wait_1): Do not call
5117 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
5118 TARGET_WAITKIND_SIGNALLED.
5120 2010-05-27 Joel Brobecker <brobecker@adacore.com>
5122 * ada-lang.c (ada_inferior_data): New struct.
5123 (ada_inferior_data): New static global.
5124 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
5125 (ada_get_tsd_type): New functions.
5126 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
5127 to look the tsd type up.
5128 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
5129 event. Set ada_inferior_data.
5131 2010-05-27 Pedro Alves <pedro@codesourcery.com>
5133 * remote.c (unpack_varlen_hex): Remove forward declaration.
5134 (remote_console_output): Make static, and add forward declaration.
5135 * remote.h: Drop FIXME comment.
5136 (unpack_varlen_hex): Declare.
5137 (remote_console_output, remote_cisco_objfile_relocate)
5138 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
5139 Delete declarations.
5140 * tracepoint.c: Include "remote.h".
5141 (unpack_varlen_hex): Delete declaration.
5143 2010-05-27 Tom Tromey <tromey@redhat.com>
5145 * dwarf2loc.c (struct piece_closure) <refc>: New field.
5146 (allocate_piece_closure): Initialize refc.
5147 (copy_pieced_value_closure): Use refc.
5148 (free_pieced_value_closure): Likewise.
5150 2010-05-27 Tom Tromey <tromey@redhat.com>
5152 * arm-tdep.c (push_stack_item): 'contents' now const.
5153 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
5154 value_contents_writeable. Introduce new temporary.
5156 2010-05-27 Tom Tromey <tromey@redhat.com>
5158 * findcmd.c (parse_find_args): Use value_contents, not
5161 2010-05-27 Tom Tromey <tromey@redhat.com>
5163 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
5164 const. Use value_contents, not value_contents_writeable.
5166 2010-05-27 Joel Brobecker <brobecker@adacore.com>
5168 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
5169 by call to value_contents.
5171 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
5173 * MAINTAINERS: Add myself for write after approval privileges.
5175 2010-05-26 Doug Evans <dje@google.com>
5177 Allow python to find its files if moved from original location.
5178 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
5179 (GDB_AC_WITH_DIR): Call it.
5180 * configure.ac: Define WITH_PYTHON_PATH if we can find the
5181 python installation directory.
5182 * config.in: Regenerate.
5183 * configure: Regenerate.
5184 * defs.h (python_libdir): Declare.
5185 * main.c (python_libdir): Define.
5186 (captured_main): Initialize python_libdir.
5187 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
5188 call Py_SetProgramName to make sure python can find its libraries
5191 * configure.ac: Try to use python's distutils to fetch compilation
5193 * configure: Regenerate.
5194 * python/python-config.py: New file.
5196 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
5198 * ser-tcp.c (net_open): Check error return from socket() call by its
5199 equality to -1 not by it being negative.
5200 (net_close): Likewise.
5202 2010-05-26 Pedro Alves <pedro@codesourcery.com>
5204 * NEWS: Mention the `qRelocInsn' feature.
5205 * gdbarch.sh (relocate_instruction): New.
5206 * amd64-tdep.c (rip_relative_offset): New.
5207 (append_insns): New.
5208 (amd64_relocate_instruction): New.
5209 (amd64_init_abi): Install it.
5210 * i386-tdep.c (append_insns): New.
5211 (i386_relocate_instruction): New.
5212 (i386_gdbarch_init): Install it.
5213 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
5214 * gdbarch.h, gdbarch.c: Regenerate.
5216 2010-05-26 Tom Tromey <tromey@redhat.com>
5218 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
5219 (struct dwarf2_loclist_baton) <data>: Likewise.
5220 * dwarf2loc.c (find_location_expression): Constify return type.
5221 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
5222 (dwarf2_loc_desc_needs_frame): Likewise.
5223 (loclist_read_variable): Constify.
5224 (loclist_describe_location): Likewise.
5225 (loclist_tracepoint_var_ref): Likewise.
5227 2010-05-25 Tom Tromey <tromey@redhat.com>
5229 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
5230 (dwarf_expr_frame_base_1): Likewise.
5231 (read_pieced_value): Update.
5232 (needs_frame_frame_base): Constify.
5233 (dwarf2_tracepoint_var_loc): Likewise.
5234 (dwarf2_tracepoint_var_access): Likewise.
5235 (locexpr_describe_location_piece): Likewise.
5236 (locexpr_describe_location_1): Likewise.
5237 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
5240 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
5241 (dwarf_expr_eval, read_uleb128, read_sleb128)
5242 (dwarf2_read_address): Update.
5243 * dwarf2expr.c (dwarf_expr_eval): Constify.
5244 (read_uleb128): Likewise.
5245 (read_sleb128): Likewise.
5246 (dwarf2_read_address): Likewise.
5247 (require_composition): Likewise.
5248 (execute_stack_op): Likewise.
5249 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
5251 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
5253 (no_get_frame_base): Constify.
5254 (execute_stack_op): Likewise.
5255 (execute_cfa_program): Likewise.
5256 (read_encoded_value): Likewise.
5258 2010-05-25 Doug Evans <dje@google.com>
5260 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
5262 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
5263 * event-loop.c: ... here.
5264 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
5265 `error' for clarity.
5266 (tui_getc): Pass correct value for `error' parameter to
5267 tui_readline_output.
5269 Add python gdb.GdbError and gdb.string_to_argv.
5270 * NEWS: Document them.
5271 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
5272 the exception is gdb.GdbError. Print a second traceback if there's
5273 an error computing the error message.
5274 (gdbpy_string_to_argv): New function.
5275 * python/py-utils.c (gdbpy_obj_to_string): New function.
5276 (gdbpy_exception_to_string): New function.
5277 * python/python-internal.h (gdbpy_string_to_argv): Declare.
5278 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
5279 (gdbpy_gdberror_exc): Declare.
5280 * python/python.c (gdbpy_gdberror_exc): New global.
5281 (_initialize_python): Initialize gdbpy_gdberror_exc and create
5283 (GdbMethods): Add string_to_argv.
5285 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5287 * windows-nat.c (display_selector): Call GetLastError to give better
5288 failure explanation.
5290 2010-05-24 Pedro Alves <pedro@codesourcery.com>
5292 * config.in: Regenerate.
5294 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5297 * target.c (push_target): Return only void. Remove the return value
5299 * target.h (push_target): Return only void.
5301 2010-05-23 Pedro Alves <pedro@codesourcery.com>
5303 Update gnulib from latest git.
5304 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5306 * gnulib/memcmp.c: Removed.
5307 * gnulib/memchr.valgrind: New.
5308 * gnulib/stddef.in.h: New.
5309 * gnulib/Makefile.am: Updated.
5310 * gnulib/memchr.c: Updated.
5311 * gnulib/memmem.c: Updated.
5312 * gnulib/stdint.in.h: Updated.
5313 * gnulib/str-two-way.h: Updated.
5314 * gnulib/string.in.h: Updated.
5315 * gnulib/wchar.in.h: Updated.
5317 * gnulib/extra/link-warning.h: Removed.
5318 * gnulib/extra/c++defs.h: New.
5319 * gnulib/extra/warn-on-use.h: New.
5320 * gnulib/extra/arg-nonnull.h: Updated.
5322 * gnulib/m4/extensions.m4: Updated.
5323 * gnulib/m4/gnulib-cache.m4: Updated.
5324 * gnulib/m4/gnulib-common.m4: Updated.
5325 * gnulib/m4/gnulib-comp.m4: Updated.
5326 * gnulib/m4/gnulib-tool.m4: Updated.
5327 * gnulib/m4/include_next.m4: Updated.
5328 * gnulib/m4/longlong.m4: Updated.
5329 * gnulib/m4/memchr.m4: Updated.
5330 * gnulib/m4/memmem.m4: Updated.
5331 * gnulib/m4/stdint.m4: Updated.
5332 * gnulib/m4/string_h.m4: Updated.
5333 * gnulib/m4/memcmp.m4: Removed.
5334 * gnulib/m4/onceonly_2_57.m4: Removed.
5335 * gnulib/m4/00gnulib.m4: New.
5336 * gnulib/m4/mmap-anon.m4: New.
5337 * gnulib/m4/multiarch.m4: New.
5338 * gnulib/m4/onceonly.m4: New.
5339 * gnulib/m4/stddef_h.m4: New.
5340 * gnulib/m4/warn-on-use.m4: New.
5341 * gnulib/m4/wchar.m4: Removed.
5342 * gnulib/m4/wchar_h.m4: New.
5343 * gnulib/m4/wchar_t.m4: New.
5344 * gnulib/m4/wint_t.m4: New.
5346 * aclocal.m4: Regenerate.
5347 * config.in: Likewise.
5348 * configure: Likewise.
5349 * gnulib/Makefile.in: Likewise.
5351 2010-05-21 Tom Tromey <tromey@redhat.com>
5353 * dwarf2loc.c (extract_bits_primitive): New function.
5354 (extract_bits): Likewise.
5355 (insert_bits): Likewise.
5356 (copy_bitwise): Likewise.
5357 (read_pieced_value): Do all operations in bits.
5358 (write_pieced_value): Likewise.
5359 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
5360 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
5361 Always use xrealloc to resize piece array.
5362 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
5363 <DW_OP_piece>: Update.
5364 <DW_OP_bit_piece>: New case.
5366 2010-05-21 Tom Tromey <tromey@redhat.com>
5368 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
5369 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
5370 * dwarf2expr.h (enum dwarf_value_location)
5371 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
5372 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
5373 (add_piece): Handle empty piece.
5374 (execute_stack_op) <DW_OP_piece>: Handle
5375 DWARF_VALUE_OPTIMIZED_OUT.
5377 2010-05-21 Tom Tromey <tromey@redhat.com>
5379 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
5380 evaluate_subexp, not evaluate_subexp_with_coercion.
5382 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5384 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
5387 2010-05-21 Tom Tromey <tromey@redhat.com>
5389 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
5391 (write_pieced_value): Likewise.
5393 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5395 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
5396 and DW_TAG_volatile_type.
5397 (new_symbol): Likewise.
5399 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
5401 * p-valprint.c (pascal_val_print): Call get_array_bounds
5402 to obtain the number of elements in an array.
5404 2010-05-19 Doug Evans <dje@google.com>
5406 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
5408 * python.c (source_python_script): Add comment.
5409 (source_python_script_for_objfile): Remove unnecessary call to
5412 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5413 Sergio Durigan Junior <sergiodj@redhat.com>
5416 * parse.c (exp_iterate): Use operator_length wrapper function.
5418 2010-05-18 Michael Snyder <msnyder@vmware.com>
5420 * ada-lang.c: White space.
5421 * ada-typeprint.c: White space.
5422 * ada-valprint.c: White space.
5423 * addrmap.c: White space.
5424 * auxv.c: White space.
5425 * ax-gdb.c: White space.
5427 2010-05-18 Hui Zhu <teawater@gmail.com>
5429 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
5431 (inferior_call_waitpid): Move make_cleanup out of check.
5432 Check the return of waitpid.
5433 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
5435 2010-05-17 Michael Snyder <msnyder@vmware.com>
5437 * tui/tui.c: White space.
5438 * tui/tui-data.c: White space.
5439 * tui/tui-disasm.c: White space.
5440 * tui/tui-file.c: White space.
5441 * tui/tui-interp.c: White space.
5442 * tui/tui-main.c: White space.
5443 * tui/tui-out.c: White space.
5444 * tui/tui-regs.c: White space.
5445 * tui/tui-source.c: White space.
5446 * tui/tui-stack.c: White space.
5447 * tui/tui-win.c: White space.
5448 * tui/tui-winsource.c: White space.
5450 * procfs.c: White space.
5452 * python/py-auto-load.c: White space.
5453 * python/py-block.c: White space.
5454 * python/py-breakpoint.c: White space.
5455 * python/py-cmd.c: White space.
5456 * python/py-function.c: White space.
5457 * python/py-lazy-string.c: White space.
5458 * python/py-objfile.c: White space.
5459 * python/py-param.c: White space.
5460 * python/py-prettyprint.c: White space.
5461 * python/py-progspace.c: White space.
5462 * python/py-symtab.c: White space.
5463 * python/python.c: White space.
5464 * python/py-type.c: White space.
5465 * python/py-utils.c: White space.
5466 * python/py-value.c: White space.
5468 * mi/mi-cmd-break.c: White space.
5469 * mi/mi-cmd-env.c: White space.
5470 * mi/mi-cmds.c: White space.
5471 * mi/mi-cmd-stack.c: White space.
5472 * mi/mi-cmd-var.c: White space.
5473 * mi/mi-console.c: White space.
5474 * mi/mi-getopt.c: White space.
5475 * mi/mi-interp.c: White space.
5476 * mi/mi-main.c: White space.
5477 * mi/mi-out.c: White space.
5478 * mi/mi-parse.c: White space.
5480 * cli/cli-cmds.c: White space.
5481 * cli/cli-decode.c: White space.
5482 * cli/cli-dump.c: White space.
5483 * cli/cli-interp.c: White space.
5484 * cli/cli-logging.c: White space.
5485 * cli/cli-script.c: White space.
5486 * cli/cli-setshow.c: White space.
5488 * valarith.c: White space.
5489 * valops.c: White space.
5490 * valprint.c: White space.
5491 * value.c: White space.
5492 * varobj.c: White space.
5493 * xcoffread.c: White space.
5494 * xml-support.c: White space.
5495 * xml-tdesc.c: White space.
5497 2010-05-17 Andreas Schwab <schwab@redhat.com>
5500 * c-lang.c (c_printstr): Compute real length of NUL terminated
5503 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5505 * parse.c (parse_exp_in_context): When block is not NULL, use
5506 its associated language to parse the expression instead of
5507 the current_language.
5509 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5511 * jv-lang.c (java_lookup_class): Remove commented out code.
5512 (type_from_class): Likewise.
5513 (java_op_print_tab): Remove commented-out elements.
5515 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5517 * ada-lang.c (to_fixed_range_type): The the raw index type as
5518 argument instead of the raw type name. Remove orig_type parameter.
5519 Update calls throughout.
5520 (ada_fixup_array_indexes_type): New function.
5521 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
5522 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
5523 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
5524 Remove name parameter.
5525 (print_array_type): Add call to ada_fixup_array_indexes_type.
5526 Update calls to print_range_type.
5527 (ada_print_type): Update calls to print_range_type.
5529 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5531 * dwarf2read.c (read_set_type): Set type length if
5532 DW_AT_byte_size attribute is present.
5534 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5536 * p-valprint.c (pascal_val_print): Handle set type if range limits
5537 are undefined but size is known.
5539 2010-05-17 Pedro Alves <pedro@codesourcery.com>
5541 * procfs.c: Reformat.
5543 2010-05-16 Michael Snyder <msnyder@vmware.com>
5545 * target.c: White space.
5546 * target-descriptions.c: White space.
5547 * target-memory.c: White space.
5548 * thread.c: White space.
5549 * top.c: White space.
5550 * tracepoint.c: White space.
5551 * trad-frame.c: White space.
5552 * tramp-frame.c: White space.
5553 * ui-file.c: White space.
5554 * ui-out.c: White space.
5555 * user-regs.c: White space.
5556 * utils.c: White space.
5558 * scm-exp.c: White space.
5559 * scm-lang.c: White space.
5560 * scm-valprint.c: White space.
5561 * sentinel-frame.c: White space.
5562 * ser-base.c: White space.
5563 * ser-go32.c: White space.
5564 * serial.c: White space.
5565 * ser-mingw.c: White space.
5566 * ser-pipe.c: White space.
5567 * ser-tcp.c: White space.
5568 * ser-unix.c: White space.
5569 * solib.c: White space.
5570 * solib-darwin.c: White space.
5571 * solib-frv.c: White space.
5572 * solib-irix.c: White space.
5573 * solib-osf.c: White space.
5574 * solib-pa64.c: White space.
5575 * solib-som.c: White space.
5576 * solib-spu.c: White space.
5577 * solib-svr4.c: White space.
5578 * solib-target.c: White space.
5579 * source.c: White space.
5580 * stabsread.c: White space.
5581 * stack.c: White space.
5582 * std-regs.c: White space.
5583 * symfile.c: White space.
5584 * symmisc.c: White space.
5585 * symtab.c: White space.
5587 2010-05-16 Michael Snyder <msnyder@vmware.com>
5589 * source.c (_initialize_source): Add "rev" as an abbreviation
5590 for the "reverse-search" command.
5592 2010-05-16 Michael Snyder <msnyder@vmware.com>
5594 * record.c: White space.
5595 * regcache.c: White space.
5596 * reggroups.c: White space.
5597 * remote-fileio.c: White space.
5598 * remote-m32r-sdi.c: White space.
5599 * remote-mips.c: White space.
5600 * remote-sim.c: White space.
5601 * remote.c: White space.
5602 (process_g_packet): Remove orphan braces.
5604 2010-05-15 Michael Snyder <msnyder@vmware.com>
5606 * parse.c: White space.
5607 * p-lang.c: White space.
5608 * posix-hdep.c: White space.
5609 * printcmd.c: White space.
5610 * progspace.c: White space.
5611 * prologue-value.c: White space.
5612 * psymtab.c: White space.
5613 * p-typeprint.c: White space.
5614 * p-valprint.c: White space.
5616 * objc-lang.c: White space.
5617 * objfiles.c: White space.
5618 * observer.c: White space.
5619 * osabi.c: White space.
5620 * osdata.c: White space.
5622 * m2-lang.c: White space.
5623 * m2-valprint.c: White space.
5624 * macrocmd.c: White space.
5625 * macroexp.c: White space.
5626 * macroscope.c: White space.
5627 * macrotab.c: White space.
5628 * main.c: White space.
5629 * maint.c: White space.
5630 * mdebugread.c: White space.
5631 * memattr.c: White space.
5632 * minsyms.c: White space.
5633 * monitor.c: White space.
5635 2010-05-14 Michael Snyder <msnyder@vmware.com>
5637 * jv-lang.c: White space.
5638 * jv-typeprint.c: White space.
5639 * jv-valprint.c: White space.
5640 * language.c: White space.
5641 * libunwind-frame.c: White space.
5642 * linespec.c: White space.
5643 * linux-nat.c: White space.
5644 * linux-record.c: White space.
5645 * linux-thread-db.c: White space.
5647 * infcall.c: White space.
5648 * inf-child.c: White space.
5649 * infcmd.c: White space.
5650 * inferior.c: White space.
5651 * inf-loop.c: White space.
5652 * inflow.c: White space.
5653 * inline-frame.c: White space.
5654 * interps.c: White space.
5656 * gcore.c: White space.
5657 * gdb.c: White space.
5658 * gdbtypes.c: White space.
5659 * gnu-nat.c: White space.
5660 * gnu-v2-abi.c: White space.
5661 * gnu-v3-abi.c: White space.
5663 * findcmd.c: White space.
5664 * findvar.c: White space.
5665 * fork-child.c: White space.
5666 * frame-base.c: White space.
5667 * frame.c: White space.
5668 * frame-unwind.c: White space.
5669 * f-valprint.c: White space.
5671 * elfread.c: White space.
5672 * environ.c: White space.
5673 * eval.c: White space.
5674 * event-loop.c: White space.
5675 * event-top.c: White space.
5676 * exceptions.c: White space.
5677 * exec.c: White space.
5678 * expprint.c: White space.
5680 * dbxread.c: White space.
5681 * dcache.c: White space.
5682 * disasm.c: White space.
5683 * doublest.c: White space.
5684 * dsrec.c: White space.
5685 * dummy-frame.c: White space.
5686 * dwarf2expr.c: White space.
5687 * dwarf2-frame.c: White space.
5688 * dwarf2loc.c: White space.
5689 * dwarf2read.c: White space.
5691 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
5695 * python/py-value.c (valpy_hash): New function.
5696 (value_object_type): Register valpy_hash.
5698 2010-05-14 Hui Zhu <teawater@gmail.com>
5699 Michael Snyder <msnyder@vmware.com>
5701 * linux-fork.c (gdbthread.h): New include.
5702 (fork_info): Add parent_ptid.
5703 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5705 (delete_checkpoint_command): Call inferior_call_waitpid.
5706 (checkpoint_command): Set parent_ptid.
5708 2010-05-13 Michael Snyder <msnyder@vmware.com>
5710 * dictionary.c: Re-indent to GNU coding standard.
5712 * charset.c: White space.
5713 * c-lang.c: White space.
5714 * cli-out.c: White space.
5715 * coffread.c: White space.
5716 * complaints.c: White space.
5717 * completer.c: White space.
5718 * corefile.c: White space.
5719 * corelow.c: White space.
5720 * cp-abi.c: White space.
5721 * cp-namespace.c: White space.
5722 * cp-support.c: White space.
5723 * cp-valprint.c: White space.
5724 * c-typeprint.c: White space.
5725 * c-valprint.c: White space.
5726 * blockframe.c: White space.
5727 * breakpoint.c: White space.
5728 * buildsym.c: White space.
5729 * blockframe.c: White space.
5730 * bcache.c: White space.
5731 * gdbarch.sh: White space, add blank lines.
5732 * arch-utils.c: Ditto.
5733 * gdbarch.c: Regenerate.
5734 * frame.c: White space, add blank lines.
5735 * stack.c: White space, add blank lines.
5736 (initialize_stack): Remove long-dead code.
5738 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5741 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5742 (locexpr_read_variable, loclist_read_variable): Update the callers.
5744 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5747 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5748 Remove check of NULL returned by tag_type_to_type.
5749 (die_containing_type): Remove variable type. Remove type_die variable
5750 initialization. Remove check of NULL returned by tag_type_to_type.
5752 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5755 * gdbtypes.c (lookup_struct_elt_type): Also lookup
5756 names of unnamed structures or unions.
5758 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5760 * procfs.c (proc_watchpoint_address): New function.
5761 (procfs_stopped_by_watchpoint): Remove useless check after
5762 find_procinfo_or_die call.
5763 (procfs_stopped_data_address): New function.
5764 (procfs_use_watchpoints): Register new watchpoint related function.
5766 2010-05-11 Tom Tromey <tromey@redhat.com>
5768 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5770 2010-05-10 Michael Snyder <msnyder@vmware.com>
5772 * utils.c: White space cleanup.
5774 2010-05-10 Tom Tromey <tromey@redhat.com>
5776 * eval.c (ptrmath_type_p): Add 'lang' argument.
5777 (evaluate_subexp_standard): Update.
5778 (evaluate_subexp_with_coercion): Update.
5779 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5781 2010-05-10 Michael Snyder <msnyder@vmware.com>
5783 * utils.c (do_fclose_cleanup) Restore local variable.
5785 2010-05-09 Doug Evans <dje@google.com>
5787 * record.c (init_record_core_ops): Rename record_core to record-core.
5789 2010-05-08 Joel Brobecker <brobecker@adacore.com>
5791 Implement task switching on pa-hpux.
5792 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5793 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5795 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5797 * valops.c (find_overload_match): Add missing i18n markup.
5799 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5801 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5803 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5805 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5806 list for the obconcat call.
5807 * mdebugread.c (parse_symbol): Likewise.
5808 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5810 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5811 New variable ap. Remove variables len and val.
5812 * symfile.h (obconcat): Likewise for the prototype.
5814 2010-05-07 Michael Snyder <msnyder@vmware.com>
5816 * python/python.c (execute_gdb_command): Remove unused variables.
5817 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
5818 * python/py-breakpoint.c (gdbpy_breakpoint_created):
5819 Remove unused variable.
5820 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5821 (cmdpy_completer): Remove unused variable.
5822 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5823 * python/py-function.c (fnpy_call): Remove unused variable.
5824 * python/py-objfile.c (objfile_to_objfile_object):
5825 Remove unused variable.
5826 * python/py-param.c (parmpy_init): Remove unused variable.
5827 * python/py-prettyprint.c (apply_varobj_pretty_printer):
5828 Remove unused variable.
5829 (gdbpy_default_visualizer): Remove unused variable.
5830 * python/py-progspace.c (pspace_to_pspace_object):
5831 Remove unused variable.
5832 * python/py-symtab.c (symtab_and_line_to_sal_object):
5833 Remove unused variable.
5834 * python/py-type.c (typy_template_argument):
5835 Remove unused variable.
5836 * python/py-value.c (valpy_string): Remove unused variable.
5837 (convert_value_from_python): Remove unused variables.
5839 2010-05-07 Michael Snyder <msnyder@vmware.com>
5841 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5842 and use it to compute variable 't1'.
5844 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5846 * ada-lang.c (assign_aggregate): Remove unused variable.
5848 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5851 * valops.c (find_overload_match): Handle fsym == NULL case.
5852 Add int no_adl argument.
5853 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5855 Add int no_adl argument.
5856 (find_oload_champ_namespace): Add int no_adl argument.
5857 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5859 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5860 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5861 Evaluate arguments and use them to perform ADL lookup.
5862 Pass no_adl argument to find_overload_match.
5863 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5864 * cp-support.h: Added prototype for
5865 make_symbol_overload_list_namespace.
5866 * cp-support.c (make_symbol_overload_list_namespace): New function.
5867 (make_symbol_overload_list_adl_namespace): New function.
5868 (make_symbol_overload_list_adl): New function.
5869 (make_symbol_overload_list_using): Moved code to add function to
5870 overload set to make_symbol_overload_list_namespace.
5871 * c-exp.y: create UNKNOWN_CPP_NAME token.
5872 Add parse rule for ADL functions.
5873 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5875 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5877 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5880 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5882 Implement task switching on solaris targets.
5883 * sol-thread.c (thread_db_find_thread_from_tid)
5884 (sol_get_ada_task_ptid): New functions.
5885 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5887 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5889 * remote.c (remote_query_supported_append): Use reconcat.
5890 (remote_query_supported): Install a cleanup. Use reconcat.
5892 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5894 * gdbarch.sh (qsupported): Delete.
5895 * gdbarch.h, gdbarch.c: Regenerate.
5896 * remote.c (remote_query_supported): Remove use of
5899 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5901 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5904 2010-05-06 Michael Snyder <msnyder@vmware.com>
5906 * xml-support.c (xinclude_start_include): Delete unused variable.
5907 (xml_process_xincludes): Delete unused variable.
5908 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5909 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5910 (tdesc_find_arch_register): Delete unused variable.
5911 (tdesc_use_registers): Delete unused variable.
5912 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5913 * inferior.c (print_inferior): Delete unused variable.
5914 * record.c (record_open_1): Delete unused variable.
5915 (record_restore): Delete unused variable.
5916 (cmd_record_save): Delete unused variable.
5917 * gcore.c (derive_heap_segment): Delete unused variable.
5918 (objfile_find_memory_regions): Use unused variable.
5919 * jit.c (jit_inferior_init): Delete unused variable.
5920 * progspace.c (clone_program_space): Delete unused variable.
5921 (pspace_empty_p): Delete unused variable.
5923 * frame-unwind.c (frame_unwind_find_by_frame):
5924 Delete unused variable.
5925 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5926 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5927 (method_name_from_physname): Delete unused variable.
5928 (cp_func_name): Delete unused variable.
5929 (cp_validate_operator): Delete unused variable.
5930 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
5931 Delete unused variable.
5932 * trad-frame.c (trad_frame_get_prev_register):
5933 Delete unused variable.
5934 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5936 * serial.c (serial_for_fd): Delete unused variable.
5937 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5938 * top.c (execute_command): Delete unused variable.
5939 (init_main): Delete unused variable.
5940 * utils.c (do_fclose_cleanup): Delete unused variable.
5941 (do_all_inferior_continuations): Delete unused variable.
5942 (initialize_utils): Delete unused variable.
5943 (internal_problem_mode): Delete unused global.
5944 * frame.c (get_prev_frame): Delete unused global.
5945 (get_frame_locals_address): Delete unused global.
5946 (get_frame_args_address): Delete unused global.
5948 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5949 (pascal_type_print_varspec_prefix): Delete unused variable.
5950 * f-typeprint.c (f_type_print_base): Delete unused variable.
5951 (f_type_print_varspec_suffix): Delete unused variable.
5952 * m2-typeprint.c (m2_print_type): Delete unused variable.
5953 (m2_long_set): Delete unused variable.
5954 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5955 * d-valprint.c (dynamic_array_type): Delete unused variable.
5956 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
5957 Delete unused variable.
5958 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5959 * m2-valprint.c (m2_val_print): Delete unused variable.
5961 * ui-out.c (ui_out_field_int): Delete unused variable.
5962 (ui_out_field_fmt_int): Delete unused variable.
5963 * varobj.c (varobj_list_children): Delete unused variable.
5964 (varobj_set_value): Delete unused variable.
5965 (install_new_value_visualizer): Delete unused variable.
5966 (varobj_set_visualizer): Delete unused variable.
5967 (varobj_update): Delete unused variable.
5968 (varobj_editable_p): Delete unused variable.
5969 (c_value_of_root): Delete unused variable.
5970 (cplus_describe_child): Delete unused variable.
5972 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5973 (decode_constrained_packed_array_type): Delete unused variable.
5974 (add_defn_to_vec): Delete unused variable.
5975 (symbol_completion_match): Delete unused variable.
5976 (value_tag_from_contents_and_address): Delete unused variable.
5977 (ada_evaluate_subexp): Delete unused variable.
5978 * c-lang.c (classify_type): Delete unused variable.
5979 * f-lang.c (f_printstr): Delete unused variable.
5980 * objc-lang.c (objc_printstr): Delete unused variable.
5981 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5982 * jv-lang.c (type_from_class): ifdef unused variable.
5983 (java_class_name_from_physname): Delete unused variable.
5984 * m2-lang.c (m2_printstr): Delete unused variable.
5986 * objfiles.c (objfile_relocate): Delete unused variable.
5987 * maint.c (_initialize_maint_cmds): Delete unused variable.
5988 * demangle.c (_initialize_demangler): Delete unused variable.
5989 * corefile.c (reopen_exec_file): Delete unused variable.
5990 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5991 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5993 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5994 * memattr.c (mem_delete): Delete unused variable.
5995 (invalidate_target_mem_regions): Delete unused variable.
5996 * mem-break.c (default_memory_insert_breakpoint):
5997 Delete unused variable.
5998 * target.c (target_get_osdata): Delete unused variable.
5999 * parse.c (length_of_subexp): Delete unused variable.
6000 (prefixify_subexp): Delete unused variable.
6001 (exp_iterate): Delete unused variable.
6002 * reverse.c (delete_bookmark_command): Delete unused variable.
6004 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
6005 * macroexp.c (gather_arguments): Delete unused variable.
6006 (substitute_args): Delete unused variable.
6007 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
6008 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
6009 (_initialize_gdbarch): Delete unused variable.
6010 * gdbarch.c, gdbarch.h: Regenerate.
6011 * arch-utils.c (initialize_current_architecture):
6012 Delete unused variable.
6013 (_initialize_gdbarch_utils): Delete unused variable.
6014 * gdbtypes.c (make_cv_type): Delete unused variable.
6015 (make_type_with_address_space): Delete unused variable.
6017 * linespec.c (decode_compound): Delete unused variable.
6018 * dictionary.c (iterator_next_hashed): Delete unused variable.
6019 * infcall.c (call_function_by_hand): Delete unused variable.
6020 * infcmd.c (step_1): Delete unused variable.
6021 (registers_info): Delete unused variable.
6022 (attach_command): Delete unused variable.
6023 * infrun.c (follow_exec): Delete unused variable.
6024 (handle_step_into_function_backwards): Delete unused variable.
6025 (_initialize_infrun): Delete unused variable.
6026 * stack.c (parse_frame_specification_1): Delete unused variable.
6027 (frame_info): Delete unused variable.
6028 (backtrace_command_1): Delete unused variable.
6029 (catch_info): Delete unused variable.
6031 * eval.c (evaluate_subexp_standard): Delete unused variable.
6032 * valops.c (value_cast_pointers): Delete unused variable.
6033 (value_dynamic_cast): Delete unused variable.
6034 (value_array): Delete unused variable.
6035 (find_overload_match): Delete unused variable.
6036 * valarith.c (value_subscript): Delete unused variable.
6037 (value_binop): Delete unused variable.
6038 * valprint.c (_initialize_valprint): Delete unused variable.
6039 * printcmd.c (print_command_1): Delete unused variable.
6040 (address_info): Delete unused variable.
6041 (printf_command): Delete unused variable.
6043 * auxv.c (target_auxv_search): Delete unused variable.
6044 * blockframe.c (get_frame_block): Delete unused variable.
6045 * regcache.c (regcache_cpy): Delete unused variable.
6046 (regcache_cpy_no_passthrough): Delete unused variable.
6047 * charset.c (wchar_iterate): Delete unused variable.
6048 (find_charset_names): Delete unused variable.
6049 (_initialize_charset): Delete unused variable.
6050 * disasm.c (do_mixed_source_and_assembly):
6051 Delete unused variable.
6052 * source.c (set_default_source_symtab_and_line):
6053 Delete unused variable.
6054 (set_substitute_path_command): Delete unused variable.
6055 * value.c (preserve_values): Delete unused variable.
6056 (value_from_double): Delete unused variable.
6058 2010-05-05 Michael Snyder <msnyder@vmware.com>
6060 * psymtab.c (lookup_partial_symbol): Delete unused variable.
6061 (find_last_source_symtab_from_partial): Delete unused variable.
6062 * symfile.c (place_section): Delete unused variable.
6063 (default_symfile_offsets): Delete unused variable.
6064 (get_debug_link_info): Delete unused variable.
6065 (find_separate_debug_file_by_debuglink): Delete unused variable.
6066 (add_symbol_file_command): Delete unused variable.
6067 (symfile_find_segment_sections): Delete unused variable.
6068 * symmisc.c (free_symtab): Delete unused variable.
6069 (dump_symtab_1): Delete unused variable.
6070 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
6071 (find_pc_sect_symtab): Delete unused variable.
6072 (skip_prologue_using_lineinfo): Delete unused variable.
6073 (sources_info): Delete unused variable.
6074 (completion_list_add_name): Delete unused variable.
6075 (expand_line_sal): Delete unused variable.
6077 * breakpoint.c (validate_commands_for_breakpoint):
6078 Delete unused variables.
6079 (insert_catchpoint): Delete unused variable.
6080 (update_watchpoint): Delete unused variable.
6081 (insert_bp_location): Delete unused variable.
6082 (insert_breakpoint_locations): Delete unused variable.
6083 (remove_breakpoint_1): Delete unused variable.
6084 (software_breakpoint_inserted_here_p): Delete unused variable.
6085 (watchpoints_triggered): Delete unused variable.
6086 (bpstat_check_watchpoint): Delete unused variable.
6087 (bpstat_stop_status): Delete unused variable.
6088 (print_one_breakpoint_location): Delete unused variable.
6089 (allocate_bp_location): Delete unused variable.
6090 (create_breakpoint): Delete unused variable.
6091 (watch_command_1): Delete unused variable.
6092 (catch_exception_command_1): Delete unused variable.
6093 (catch_ada_exception_command): Delete unused variable.
6094 (delete_breakpoint): Delete unused variable.
6095 (breakpoint_re_set_one): Delete unused variable.
6096 (do_enable_breakpoint): Delete unused variable.
6098 2010-05-06 Pedro Alves <pedro@codesourcery.com>
6100 * amd64-tdep.c: Include disasm.h.
6101 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
6102 (amd64_insn_length): Moved to disasm.c and renamed.
6103 (fixup_riprel): Adjust.
6104 * disasm.c (do_ui_file_delete): New.
6105 (gdb_insn_length): New.
6106 (gdb_buffered_insn_length_fprintf)
6107 (gdb_buffered_insn_length_init_dis)
6108 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
6110 * disasm.h (gdb_insn_length): Declare.
6111 (gdb_buffered_insn_length): Declare.
6113 2010-05-06 Pedro Alves <pedro@codesourcery.com>
6115 * remote.c (clear_threads_parsing_context): New.
6116 (remote_threads_info): Delete unused null_cleanup. Install a
6117 cleanup to clear the threads_parsing_context in case parsing
6120 2010-05-05 Michael Snyder <msnyder@vmware.com>
6122 * c-exp.y (parse_string_or_char): Delete unused variable.
6123 (c_lex): Delete unused variable.
6124 * cp-name-parser.y (cpname_lex): Delete unused variable.
6125 * ada-exp.y (find_primitive_type): Delete unused variable.
6126 (write_var_or_type): Delete unused variable.
6127 * jv-exp.y (java_parse): Delete unused variable.
6128 (push_expression_name): Delete unused variable.
6129 * p-exp.y (pascal_lex): Delete unused variable.
6131 2010-05-05 Pedro Alves <pedro@codesourcery.com>
6133 * remote.c (remote_threads_info): Really revert previous previous
6136 2010-05-05 Michael Snyder <msnyder@vmware.com>
6138 * elfread.c (elf_symtab_read): Delete unused variable.
6139 (find_separate_debug_file_by_buildid): Delete unused variables.
6140 (elf_symfile_read): Delete unused variable.
6142 * coffread.c (coff_symfile_read): Delete unused variables.
6144 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
6145 (read_pe_exported_syms): Delete unused variable.
6147 * stabsread.c (define_symbol): Delete unused variable.
6149 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
6150 (process_psymtab_comp_unit): Delete unused variable.
6151 (dwarf2_build_psymtabs_hard): Delete unused variable.
6152 (load_partial_comp_unit): Delete unused variable.
6153 (create_all_comp_units): Delete unused variable.
6154 (scan_partial_symbols): Delete unused variable.
6155 (add_partial_symbol): Delete unused variable.
6156 (add_partial_namespace): Delete unused variable.
6157 (add_partial_enumeration): Delete unused variable.
6158 (load_full_comp_unit): Delete unused variable.
6159 (process_full_comp_unit): Delete unused variable.
6160 (read_file_scope): Delete unused variable.
6161 (read_type_unit_scope): Delete unused variable.
6162 (process_structure_scope): Delete unused variable.
6163 (process_enumeration_scope): Delete unused variable.
6164 (read_tag_ptr_to_member_type): Delete unused variable.
6165 (read_typedef): Delete unused variable.
6166 (read_partial_die): Delete unused variable.
6167 (decode_locdesc): Delete unused variable.
6168 (zeroed_partial_die): Delete unused global variable.
6170 * tui/tui-interp.c (_initialize_tui_interp):
6171 Delete unused variable.
6172 * tui/tui-regs.c tui_display_registers_from):
6173 Delete unused variable.
6174 (tui_check_register_values): Delete unused variable.
6175 (tui_register_format): Delete unused variable.
6176 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
6177 * tui/tui-windata.c (tui_display_data_from_line):
6178 Delete unused variables.
6179 (tui_vertical_data_scroll): Delete unused variables.
6181 2010-05-05 Michael Snyder <msnyder@vmware.com>
6183 * remote.c (remote_threads_info): Revert questionable part of
6184 the previous change.
6186 2010-05-05 Michael Snyder <msnyder@vmware.com>
6188 * mi/mi-out.c (mi_table_begin): Delete unused variable.
6189 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
6190 (mi_cmd_var_list_children): Delete unused variable.
6191 (varobj_update_one): Delete unused variable.
6192 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
6193 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
6194 Delete unused variable.
6195 (mi_cmd_stack_list_variables): Delete unused variable.
6196 (list_args_or_locals): Delete unused variable.
6197 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
6198 Delete unused variables.
6199 (mi_cmd_file_list_exec_source_files): Delete unused variable.
6200 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
6201 Delete unused variable.
6202 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
6203 (mi_cmd_interpreter_exec): Delete unused variable.
6204 (mi_on_normal_stop): Delete unused variable.
6205 * mi/mi-main.c (run_one_inferior): Delete unused variable.
6206 (print_one_inferior): Delete unused variables.
6207 (mi_execute_command): Delete unused variable.
6208 (mi_cmd_execute): Delete unused variable.
6209 (timestamp): Delete unused variable.
6211 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
6212 (restore_binary_file): Delete unused variable.
6213 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
6214 * cli/cli-script.c (define_command): Delete unused variables.
6215 (recurse_read_control_structure): Delete unused variable.
6216 (script_from_file): Delete unused variable.
6217 * cli/cli-cmds.c (complete_command): Delete unused variable.
6218 (disassemble_command): Delete unused variable.
6220 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
6221 * tracepoint.c (delete_trace_variable_command):
6222 Delete unused variables.
6223 (encode_actions_1): Delete unused variables.
6224 (start_tracing): Delete unused variable.
6225 (trace_status_mi): Delete unused variable.
6226 (tfind_1): Delete unused variable.
6227 (trace_find_pc_command): Delete unused variable.
6228 (trace_find_line_command): Delete unused variables.
6229 (trace_find_range_command): Delete unused variables.
6230 (trace_find_outside_command): Delete unused variables.
6231 (parse_tracepoint_definition): Delete unused variables.
6232 (tfile_fetch_registers): Delete unused variable.
6234 * dcache.c (dcache_init): Delete unused variable.
6235 (dcache_info): Delete unused variable.
6237 * remote.c (remote_threads_info): Delete unused variable.
6238 (process_stop_reply) :Delete unused variable.
6239 (remote_get_trace_status): Delete unused variables.
6241 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
6242 (thread_from_lwp): Delete unused variable.
6243 (enable_thread_event_reporting): Delete unused variable.
6244 (check_for_thread_db): Delete unused variables.
6245 (thread_db_find_new_threads_2): Delete unused variable.
6247 * linux-fork.c (info_checkpoints_command): Delete unused variables.
6248 (checkpoint_command): Delete unused variable.
6249 (linux_fork_context): Delete unused variables.
6251 * linux-nat.c (linux_parent_pid): Delete unused global variable.
6252 (linux_tracefork_child): Delete unused variable.
6253 (linux_child_follow_fork): Delete unused variable.
6254 (linux_nat_detach): Delete unused variable.
6255 (linux_handle_extended_wait): Delete unused variable.
6256 (linux_nat_has_pending_sigint): Delete unused variable.
6257 (linux_nat_find_memory_regions): Delete unused variable.
6258 (linux_nat_make_corefile_notes): Delete unused variables.
6259 (linux_nat_info_proc_cmd): Delete unused variable.
6260 (linux_proc_pending_signals): Delete unused variable.
6261 (linux_nat_stop_lwp): Delete unused variables.
6262 (_initialize_linux_nat): Delete unused variable.
6264 * ser-pipe.c (pipe_ops): Delete unused global variable.
6266 * linux-record.c (record_linux_system_call):
6267 Delete unused variables.
6269 * corelow.c (core_xfer_partial): Delete unused variables.
6271 * solib-svr4.c (find_program_interpreter): Delete unused variable.
6272 (svr4_solib_create_inferior_hook): Add ifdef around
6273 conditionally-used variable declarations.
6275 * solib.c (solib_find): Delete unused variable.
6276 (free_so_symbols): Delete unused variable.
6277 (info_sharedlibrary_command): Delete unused variable.
6278 (reload_shared_libraries_1): Delete unused variable.
6279 (_initialize_solib): Delete unused variable.
6281 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
6282 (i386_collect_xstateregset): Delete unused variable.
6283 * i387-tdep.c (i387_print_float_info): Delete unused variable.
6285 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
6286 Delete unused variable 'type'.
6288 2010-05-05 Joel Brobecker <brobecker@adacore.com>
6290 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
6291 ada-lang.c: Remove comment mentioning these macros.
6292 * m2-exp.y: Delete commented out code.
6294 2010-05-05 Joel Brobecker <brobecker@adacore.com>
6296 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
6298 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
6300 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6302 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
6303 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6305 (cleanup_kernel_helper_return): Likewise.
6306 * arm-tdep.c (copy_unmodified): Likewise.
6307 (copy_preload): Likewise.
6308 (copy_copro_load_store): Likewise.
6309 (cleanup_branch): Likewise.
6310 (copy_b_bl_blx): Likewise.
6311 (copy_bx_blx_reg): Likewise.
6312 (copy_alu_imm): Likewise.
6313 (copy_alu_reg): Likewise.
6314 (copy_alu_shifted_reg): Likewise.
6315 (cleanup_load): Likewise.
6316 (cleanup_store): Likewise.
6317 (cleanup_block_load_pc): Likewise.
6318 (cleanup_svc): Likewise.
6319 (copy_undef): Likewise.
6320 (copy_unpred): Likewise.
6321 * remote.c (register_remote_support_xml): Likewise.
6323 2010-05-05 Hui Zhu <teawater@gmail.com>
6325 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
6327 2010-05-04 Mark Kettenis <kettenis@gnu.org>
6329 * remote.c (register_remote_support_xml)
6330 (remote_query_supported_append, remote_query_supported): Add cast
6331 to NULL used as sentinel.
6332 * tracepoint.c (tvariables_info_1): Likewise.
6333 * utils.c (add_internal_problem_command): Likewise.
6335 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6337 * dwarf2loc.c (read_pieced_value, write_pieced_value,
6338 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
6339 registers gracefully.
6341 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6343 * exec.c (print_section_info): Display entry point without arch
6346 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6349 * printcmd.c (x_command): Only dereference once implicitly for
6352 2010-05-03 Doug Evans <dje@google.com>
6354 * event-loop.c (gdb_timer): Delete unused global.
6355 (create_timer): Update.
6357 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6359 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
6360 CURRENT->DECLARATION case.
6361 * cp-support.h (struct using_direct): Provide extended comment.
6363 2010-05-03 Mark Kettenis <kettenis@gnu.org>
6365 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
6366 HPPABSD_SIZEOF_GREGS.
6367 (HPPAOBSD_SIZEOF_FPREGS): New define.
6368 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
6369 (hppaobsd_supply_fpregset): New function.
6370 (hppaobsd_gregset): Renamed from hppabsd_gregset.
6371 (hppaobsd_fpregset): New variable.
6372 (hppaobsd_regset_from_core_section): Handle floating-point registers.
6373 (_initialize_hppabsd_tdep): Remove spurious blank line.
6375 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6378 * p-valprint.c (pascal_value_print): Always dereference a value with
6379 type code TYPE_CODE_REF.
6381 2010-05-03 Pedro Alves <pedro@codesourcery.com>
6383 * remote.c (remote_notice_signals): New.
6384 (remote_start_remote): In non-stop mode, update the remote end on
6385 which signals it can silently pass.
6386 (init_remote_ops): Install remote_notice_signals.
6388 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6390 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
6391 * command.h (error_no_arg): ... here. Remove NORETURN, change
6392 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6393 * defs.h (NORETURN, ATTR_NORETURN): Remove.
6394 (perror_with_name, verror, error, error_stream, vfatal, fatal)
6395 (internal_verror, internal_error, nomem): Remove NORETURN, change
6396 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6397 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
6398 (throw_vfatal, throw_error): Remove NORETURN.
6399 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
6400 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
6401 (throw_error, deprecated_throw_reason): Remove NORETURN, change
6402 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6403 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
6404 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
6406 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
6407 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
6409 * target.c (tcomplain): Likewise.
6410 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
6412 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
6413 (internal_error, perror_with_name, nomem): Remove NORETURN.
6414 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
6417 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6419 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6420 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
6421 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
6422 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6423 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
6424 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6425 * complaints.h (complaint, internal_complaint): Likewise.
6426 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
6427 (ATTR_FORMAT): Remove.
6428 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
6429 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
6430 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
6431 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
6432 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
6433 (internal_error, internal_vwarning, internal_warning, warning)
6434 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6435 * disasm.c (fprintf_disasm): Likewise.
6436 * exceptions.c (throw_it): Likewise.
6437 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
6438 (throw_error): Likewise.
6439 * language.h (type_error, range_error): Likewise.
6440 * linespec.c (cplusplus_error): Likewise.
6441 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
6442 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
6443 * monitor.c (monitor_debug): Likewise.
6444 * parser-defs.h (parser_fprintf): Likewise.
6445 * serial.h (serial_printf): Likewise.
6446 * tui/tui-hooks.c (tui_query_hook): Likewise.
6447 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
6448 (uo_message): Likewise.
6449 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
6450 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
6452 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
6454 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6456 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
6457 (cli_table_header, cli_begin, cli_end, cli_field_int)
6458 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
6459 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
6460 Delete forward declarations.
6461 (cli_ui_out_impl): Move below the callbacks.
6462 (_initialize_cli_out): Delete.
6464 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6466 * README: Use consistent `GDB' and `GDBserver' spellings.
6468 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6470 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
6472 2010-05-01 Pedro Alves <pedro@codesourcery.com>
6474 * infrun.c (prepare_for_detach): In non-stop, context switch to
6475 the thread that got the event before handling the event.
6477 2010-04-30 Tom Tromey <tromey@redhat.com>
6479 * symtab.c (symbol_set_names): Fix typo.
6481 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6483 * python/py-param.c (parm_constants): Avoid ARI warning
6484 by adding ARI comment.
6485 (parmpy_init): Likewise.
6487 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6489 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
6490 and created type for re-use.
6492 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6494 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
6496 2010-04-29 Doug Evans <dje@google.com>
6498 * ser-base.h (reschedule): Delete prototype.
6499 * ser-base.c (reschedule): Make static.
6501 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6503 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
6504 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
6505 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
6507 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
6510 2010-04-29 Pedro Alves <pedro@codesourcery.com>
6514 * regcache.c (registers_changed): Rename to ...
6515 (registers_changed_ptid): ... this, and only delete register cache
6516 entries matching the ptid filter argument.
6517 (registers_changed): Reimplement on top of registers_changed_ptid.
6518 * regcache.h (registers_changed_ptid): Declare.
6519 * target.c (target_resume): Flush register caches.
6521 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
6522 Tom Tromey <tromey@redhat.com>
6523 Thiago Jung Bauermann <bauerman@br.ibm.com>
6525 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
6526 (SUBDIR_PYTHON_SRCS): Likewise.
6527 (py-parameter.o): New rule.
6528 * python/py-parameter.c: New file.
6529 * python/python-internal.h (gdbpy_initialize_parameter)
6530 (gdbpy_parameter, gdbpy_parameter_value)
6531 (gdbpy_parse_command_name): Declare.
6532 * python/py-cmd.c (parse_command_name): Rename to
6533 gdbpy_parse_command_name.
6534 (gdbpy_parse_command_name): Accept a starting list parameter and
6536 (cmdpy_init): Use gdbpy_parse_command_name.
6537 * python/python.c (parameter_to_python): Rename to
6538 gdbpy_parameter_to_python. Accept enum var_types and value.
6539 (gdbpy_parameter): Use gdbpy_parameter_value.
6540 (_initialize_python): Call gdbpy_initialize_parameters.
6542 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6544 * MAINTAINERS: Add myself for write after approval privileges.
6546 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
6549 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
6550 (COMMON_OBS): Add d-lang.o d-valprint.o.
6551 (HFILES_NO_SRCDIR): Add d-lang.h.
6552 * NEWS: Mention D language support.
6553 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
6554 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
6555 * d-lang.c: New file.
6556 * d-lang.h: New file.
6557 * d-valprint.c: New file.
6558 * defs.h (enum language): Add language_d.
6559 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
6560 * language.c (binop_result_type, integral_type, character_type)
6561 (string_type, boolean_type, structured_type): Add language_d.
6562 * symfile.c (init_filename_language_table): Add language_d.
6563 * symtab.c: Include d-lang.h.
6564 (symbol_init_language_specific, symbol_find_demangled_name)
6565 (symbol_natural_name, lookup_symbol_in_language)
6566 (symbol_demangled_name, symbol_matches_domain): Add language_d.
6568 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6570 * solib-svr4.c (solib_svr4_r_map): Expand function description.
6572 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6574 * symfile.c (init_filename_language_table): Register .dg files
6577 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6579 * gdbtypes.h (struct main_type): Expand comment about target_type
6582 2010-04-27 Pedro Alves <pedro@codesourcery.com>
6583 Tristan Gingold <gingold@adacore.com>
6585 * symfile.c (reread_symbols): Also search for file in libraries.
6588 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6590 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
6591 in terms of configuration.
6593 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6595 * objfiles.c: Include solist.h.
6596 (free_all_objfiles): New variable so. Check stale solist objfiles.
6597 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
6598 and no_shared_libraries.
6600 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6603 * python/py-auto-load.c (source_section_scripts): Remove trailing
6604 new-line in i18n string.
6606 2010-04-26 Doug Evans <dje@google.com>
6608 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
6610 2010-04-26 Tom Tromey <tromey@redhat.com>
6612 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
6615 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6617 Removal of config/i386/nm-i386sol2.h native configuration file.
6618 * config/i386/nm-i386sol2.h: Remove file.
6619 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
6620 * config/i386/sol2-64.mh: Idem.
6621 * config/djgpp/fnchange.lst: Remove reference to that file.
6622 * Makefile.in (HFILES_NO_SRCDIR): Idem.
6624 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6626 PR breakpoints/11531.
6627 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
6628 macro definition and related comment.
6629 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
6630 (resume): Remove code and comment related to this macro.
6632 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6634 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
6637 2010-04-24 Pedro Alves <pedro@codesourcery.com>
6639 * defs.h: Adjust comment.
6640 * filesystem.h, filesystem.c: New files.
6641 * Makefile.in (SFILES): Add filesystem.c.
6642 (COMMON_OBS): Add filesystem.o.
6643 * solib.c (solib_find): Handle DOS-based filesystems. Handle
6644 different target and host path flavours.
6645 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6646 has_dos_based_file_system on the gdbarch.
6647 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
6648 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
6649 * i386-tdep.c (i386_go32_init_abi): Ditto.
6650 * gdbarch.sh (has_dos_based_file_system): New.
6651 * gdbarch.h, gdbarch.c: Regenerate.
6652 * NEWS: Mention improved support for remote targets with DOS-based
6653 filesystems. Mention new `set/show target-file-system-kind'
6656 2010-04-23 Stan Shebs <stan@codesourcery.com>
6658 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6660 (struct agent_reqs): Remove.
6661 (ax_reg_mask): Declare.
6662 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6663 (free_agent_expr): Free reg_mask.
6664 (ax_print): Add scope and register mask info.
6665 (ax_reqs): Remove agent_reqs argument, use agent expression
6666 fields, and move part of register mask computation to...
6667 (ax_reg_mask): New function.
6668 * ax-gdb.c (gen_trace_static_fields): Call it.
6669 (gen_traced_pop): Ditto.
6670 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6671 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6672 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6673 (gen_eval_for_expr): Ditto, and require an rvalue.
6674 (agent_command): Call ax_reqs.
6675 (agent_eval_command): Ditto.
6676 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6677 (validate_action_line): Ditto.
6678 (collect_symbol): Ditto.
6679 (encode_actions_1): Ditto.
6681 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
6682 Paul Pluzhnikov <ppluzhnikov@google.com>
6683 Jan Kratochvil <jan.kratochvil@redhat.com>
6685 Fix deadlock on looped list of loaded shared objects.
6686 * solib-svr4.c (LM_PREV): New function.
6687 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6688 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
6689 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
6690 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6692 2010-04-23 Doug Evans <dje@google.com>
6694 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6696 * configure: Regenerate.
6697 * main.c: #include "python/python.h".
6698 (captured_main): Defer loading auto-loaded scripts until after
6699 local_gdbinit has been sourced.
6700 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6701 (load_auto_scripts_for_objfile): New function.
6702 (auto_load_new_objfile): Call it.
6703 * python/python.h (gdbpy_global_auto_load): Declare.
6704 (load_auto_scripts_for_objfile): Declare.
6706 Add support for auto-loading scripts from .debug_gdb_scripts section.
6707 * NEWS: Add entry for .debug_gdb_scripts.
6708 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6709 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6710 (py-auto-load.o): New rule.
6711 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6712 * cli/cli-cmds.h (find_and_open_script): Update prototype.
6713 * python/py-auto-load.c: New file.
6714 * python/python-internal.h: #include <stdio.h>.
6715 (set_python_list, show_python_list): Declare.
6716 (gdbpy_initialize_auto_load): Declare.
6717 (source_python_script_for_objfile): Declare.
6718 * python/python.c: Remove #include of observer.h.
6719 (gdbpy_auto_load): Moved to py-auto-load.c.
6720 (GDBPY_AUTO_FILENAME): Ditto.
6721 (gdbpy_new_objfile): Delete.
6722 (source_python_script_for_objfile): New function.
6723 (set_python_list, show_python_list): Make externally visible.
6724 (_initialize_python): Move "auto-load" command to py-auto-load.c
6725 and observer_attach_new_objfile to py-auto-load.c.
6727 2010-04-23 Jerome Guitton <guitton@adacore.com>
6729 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6730 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6731 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6733 (alpha_heuristic_analyze_probing_loop): New function.
6734 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6735 and handle cases when a stack probe loop is generated.
6736 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6737 (alpha_mdebug_max_frame_size_exceeded): New function.
6738 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6739 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6740 Return 0 when the maximum debuggable frame size has been exceeded.
6742 2010-04-23 Joel Brobecker <brobecker@adacore.com>
6745 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6747 2010-04-20 Chris Moller <cmoller@redhat.com>
6751 * symtab.c (rbreak_command): Added code to include a filename
6752 specification in the rbreak argument.
6753 * NEWS: Added a brief description of filename-qualified rbreak.
6755 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6757 Fix crashes on dangling display expressions.
6758 * ada-lang.c (ada_operator_check): New function.
6759 (ada_exp_descriptor): Fill-in the field operator_check.
6760 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6761 * jv-lang.c (exp_descriptor_java): Likewise.
6762 * m2-lang.c (exp_descriptor_modula2): Likewise.
6763 * scm-lang.c (exp_descriptor_scm): Likewise.
6764 * parse.c (exp_descriptor_standard): Likewise.
6765 (operator_check_standard): New function.
6766 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6767 * parser-defs.h (struct exp_descriptor): New field operator_check.
6768 (operator_check_standard, exp_uses_objfile): New declarations.
6769 * printcmd.c: Remove the inclusion of solib.h.
6770 (display_uses_solib_p): Remove the function.
6771 (clear_dangling_display_expressions): Call lookup_objfile_from_block
6772 and exp_uses_objfile instead of display_uses_solib_p.
6773 * solist.h (struct so_list) <objfile>: New comment.
6774 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6775 * symtab.h (lookup_objfile_from_block): New declaration.
6776 (struct general_symbol_info) <obj_section>: Extend the comment.
6778 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6779 Thiago Jung Bauermann <bauerman@br.ibm.com>
6781 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6782 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6783 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6784 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6785 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6786 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6787 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6788 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6789 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6790 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6791 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6792 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6793 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6794 Define, in case <ptrace.h> doesn't provide it.
6795 (booke_debug_info): New variable.
6796 (max_slots_number): Ditto.
6797 (hw_break_tuple): New struct.
6798 (thread_points): Ditto.
6799 (ppc_threads): New variable.
6800 (PPC_DEBUG_CURRENT_VERSION): New define.
6801 (have_ptrace_new_debug_booke): New function.
6802 (ppc_linux_check_watch_resources): Renamed to ...
6803 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6804 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6805 (booke_cmp_hw_point): New function.
6806 (booke_find_thread_points_by_tid): Ditto.
6807 (booke_insert_point): Ditto.
6808 (booke_remove_point): Ditto.
6809 (ppc_linux_insert_hw_breakpoint): Ditto.
6810 (ppc_linux_remove_hw_breakpoint): Ditto.
6811 (get_trigger_type): Ditto.
6812 (ppc_linux_insert_watchpoint): Handle BookE processors.
6813 (ppc_linux_remove_watchpoint): Ditto.
6814 (ppc_linux_new_thread): Ditto.
6815 (ppc_linux_thread_exit): New function..
6816 (ppc_linux_stopped_data_address): Handle BookE processors.
6817 (ppc_linux_watchpoint_addr_within_range): Ditto.
6818 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6819 to_remove_hw_breakpoint fields of the target operations struct.
6820 Add observe for the thread_exit event.
6822 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6824 * i386-linux-nat.c (regmap): Removed.
6825 (fetch_register): Replace regmap with
6826 i386_linux_gregset_reg_offset.
6827 (store_register): Likewise.
6828 (supply_gregset): Likewise.
6829 (fill_gregset): Likewise.
6831 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6834 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6836 2010-04-22 Chris Moller <cmoller@redhat.com>
6838 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6839 method of popping recursion-detection stack with a method based on
6840 obstack_object_size(). (Similar to the PR9167 patch below, but for
6841 the static array obstack rather than the static member obstack.)
6843 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6845 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6846 (_initialize_amd64_linux_nat): Replace
6847 amd64_linux_gregset64_reg_offset with
6848 amd64_linux_gregset_reg_offset.
6850 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6853 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6855 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6858 * stabsread.c (set_length_in_type_chain): New function.
6859 (read_struct_type): Call set_length_in_type_chain function.
6860 (read_enum_type): Idem.
6862 2010-04-21 Stan Shebs <stan@codesourcery.com>
6863 Nathan Sidwell <nathan@codesourcery.com>
6865 * tracepoint.c (trace_save): Open in binary mode.
6867 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6869 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6871 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
6872 builtin_char32 fields.
6873 * printcmd.c (decode_format): Set char size to '\0'
6874 for strings unless explicit size is given.
6875 (print_formatted): Correct calculation of NEXT_ADDRESS
6876 for 16 or 32 bit strings.
6877 (do_examine): Do not force byte size for strings.
6878 Use builtin_char16 and builtin_char32 types to display
6879 16 or 32 bit-wide strings.
6880 (x_command): Set LAST_SIZE to 'b' for string type.
6882 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6885 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6888 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6889 there is no .reg-xstate section.
6890 (i386_linux_core_read_description): Check XCR0 first.
6892 2010-04-21 Mike Frysinger <vapier@gentoo.org>
6894 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6897 2010-04-21 Chris Moller <cmoller@redhat.com>
6900 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6901 method of popping recursion-detection stack with a method based on
6902 obstack_object_size().
6904 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6907 * p-valprint.c (pascal_val_print): Fix default printing of integer
6910 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6912 Fix compilation warning on gcc-4.1.2.
6913 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6914 local variable`pc' to zero.
6916 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6918 Implement thread support with core files on alpha-tru64.
6919 * dec-thread.c (dec_thread_find_new_threads): New function,
6920 extracted from resync_thread_list.
6921 (resync_thread_list): Add OPS parameter. Replace extracted-out
6922 code by call to dec_thread_find_new_threads.
6923 (dec_thread_wait): Update call to resync_thread_list.
6924 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6926 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6928 * ada-lang.c (value_pointer): New function.
6929 (make_array_descriptor): Call value_pointer to convert addresses to
6932 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6934 * rs6000-aix-tdep.c: #include exceptions.h.
6935 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6936 while reading the memory at ADDR, then ADDR cannot be a function
6939 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6941 * ada-typeprint.c (ada_print_typedef): New function.
6942 * ada-lang.h (ada_print_typedef): Add declaration.
6943 * ada-lang.c (ada_language_defn): set la_print_typdef field
6944 to ada_print_typedef.
6946 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6948 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6950 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6952 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6953 (iterate_over_mappings): Adjust function profile. Add declaration.
6954 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6957 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6959 * procfs.c (solib_mappings_callback): Move function up to avoid
6962 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6964 * procfs.c (find_signalled_thread, find_stop_signal): Move
6965 these functions down to define them only when used.
6967 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6969 * valprint.c (common_val_print): Fix the value before extracting
6971 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6972 * ada-lang.h (ada_to_fixed_value): New function declaration.
6973 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6974 to avoid code duplication and fix a bug in the handling of
6975 fixed types contents.
6977 2010-04-20 Tom Tromey <tromey@redhat.com>
6979 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6980 (read_partial_die): Likewise.
6981 (dwarf_attr_name): Likewise.
6983 2010-04-20 Chris Moller <cmoller@redhat.com>
6987 * cp-valprint.c (global): Adding new static array recursion
6989 (cp_print_value_fields, cp_print_static_field): Added new static
6990 array recursion detection code.
6992 2010-04-20 Mark Kettenis <kettenis@gnu.org>
6994 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6995 general-purpose register set should be 68 instead of 144.
6996 (i386_linux_sse_regset_sections): Likewise.
6997 (i386_linux_avx_regset_sections): Likewise.
6999 2010-04-20 Stan Shebs <stan@codesourcery.com>
7000 Nathan Sidwell <nathan@codesourcery.com>
7002 * dwarf2loc.c (struct axs_var_loc): New struct.
7003 (dwarf2_tracepoint_var_loc): New function.
7004 (dwarf2_tracepoint_var_access): New function.
7005 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
7007 (locexpr_describe_location_piece): New function.
7008 (locexpr_describe_location_1): New function.
7009 (locexpr_describe_location): Call it, update signature.
7010 (loclist_describe_location): Rewrite to loop over locations,
7012 * symtab.h (struct symbol_computed_ops): Add address to
7013 describe_location arguments, return void.
7014 * printcmd.c (address_info): Get context PC, pass to computed
7015 location description.
7016 * tracepoint.c (scope_info): Ditto.
7017 * ax-gdb.c (trace_kludge): Export.
7019 2010-04-20 Tom Tromey <tromey@redhat.com>
7021 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
7022 (struct dwarf2_cie) <segment_size>: New field.
7023 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
7024 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
7026 (read_attribute_value): Handle DW_FORM_flag_present,
7027 DW_FORM_sec_offset, DW_FORM_exprloc.
7028 (dump_die_shallow): Likewise.
7029 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
7030 (dwarf2_const_value): Handle DW_FORM_exprloc.
7031 (attr_form_is_block): Likewise.
7032 (struct line_header) <maximum_ops_per_instruction>: New field.
7033 (dwarf_decode_line_header): Set new field.
7034 (dwarf_decode_lines): Handle new field.
7036 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7038 * f-exp.y: Add new production to recognize the `logical*8' type.
7039 (LOGICAL_S8_KEYWORD): New token.
7040 * f-lang.c (enum f_primitive_types)
7041 <f_primitive_type_logical_s8>: New field.
7042 (f_language_arch_info): Handling `logical*8' type.
7043 (build_fortran_types): Building `logical*8' type.
7044 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
7046 2010-04-19 Doug Evans <dje@google.com>
7048 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
7049 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
7050 (pipe_close): Ditto.
7052 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7054 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
7056 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7058 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
7059 type to void function.
7061 2010-04-19 Stan Shebs <stan@codesourcery.com>
7062 Vladimir Prus <vladimir@codesourcery.com>
7064 * tracepoint.c (tfind_1): Add missing newline, report exit from
7066 * target.c (update_current_target): Make default
7067 to_trace_find return -1.
7069 2010-04-19 Mike Frysinger <vapier@gentoo.org>
7071 * objc-lang.c (find_methods): Move symname check up.
7073 2010-04-19 Pedro Alves <pedro@codesourcery.com>
7075 * ada-lang.c (print_recreate_exception)
7076 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
7077 not "catch unhandled".
7079 2010-04-19 Pedro Alves <pedro@codesourcery.com>
7081 PR breakpoints/8554.
7083 Implement `save-breakpoints'.
7085 * breakpoint.c (save_cmdlist): New.
7086 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
7088 (print_recreate_catch_fork): New.
7089 (catch_fork_breakpoint_ops): Install it.
7090 (print_recreate_catch_vfork): New.
7091 (catch_vfork_breakpoint_ops): Install it.
7092 (print_recreate_catch_syscall): New.
7093 (catch_syscall_breakpoint_ops): Install it.
7094 (print_recreate_catch_exec): New.
7095 (catch_exec_breakpoint_ops): Install it.
7096 (print_recreate_exception_catchpoint): New.
7097 (gnu_v3_exception_catchpoint_ops): Install it.
7098 (save_breakpoints): New, based on tracepoint_save_command, but
7099 handle all breakpoint types.
7100 (save_breakpoints_command): New.
7101 (tracepoint_save_command): Rename to...
7102 (save_tracepoints_command): ... this, and reimplement using
7104 (save_command): New.
7105 (_initialize_breakpoints): Install the "save" command prefix.
7106 Install the "save breakpoints" command. Make "save-tracepoints" a
7107 deprecated alias for "save tracepoints".
7108 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
7109 * ada-lang.c (print_recreate_exception): New.
7110 (print_recreate_catch_exception): New.
7111 (catch_exception_breakpoint_ops): Install it.
7112 (print_recreate_catch_exception_unhandled): New.
7113 (catch_exception_unhandled_breakpoint_ops): Install it.
7114 (print_recreate_catch_assert): New.
7115 (catch_assert_breakpoint_ops): Install it.
7117 * NEWS: Mention the new `save breakpoints' command. Mention the
7118 new `save tracepoints' alias and that `save-tracepoints' is now
7121 2010-04-18 Pedro Alves <pedro@codesourcery.com>
7125 * tui/tui-out.c: Include cli-out.h.
7126 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
7127 (tui_begin, tui_end, tui_field_int, tui_field_skip)
7128 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
7129 (tui_message, tui_wrap_hint, tui_flush): Delete forward
7131 (struct ui_out_data): Rename to...
7132 (struct tui_ui_out_data): ... this. Remove `stream' and
7133 `suppress_output' fields, and inherit cli_ui_out_data.
7134 (tui_out_data): New typedef.
7135 (tui_ui_out_impl): Don't initialize fields staticaly.
7136 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
7137 (tui_begin, tui_end): Delete.
7138 (tui_field_int): Adjust to delegate most work to the base type.
7139 (tui_field_skip): Delete.
7140 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
7141 delegate most work to the base type.
7142 (tui_spaces): Delete.
7143 (tui_text): Adjust to delegate most work to the base type.
7144 (tui_message): Delete.
7145 (tui_wrap_hint): Delete.
7146 (tui_flush): Delete.
7147 (out_field_fmt): Delete.
7148 (field_separator): Delete.
7149 (tui_out_new): Adjust to initialize the base type.
7150 (_initialize_tui_out): Initialize tui_ui_out_impl.
7151 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
7153 (cli_out_data): Adjust.
7154 (cli_ui_out_impl): Make extern.
7155 (cli_table_header, cli_field_int, cli_field_skip): Use
7156 uo_field_string instead of cli_field_string.
7157 (cli_redirect): Adjust to use cli_out_data.
7158 (cli_out_data_ctor): New.
7159 (cli_out_new): Use it.
7160 * cli-out.h (struct ui_file): Remove forward declaration.
7161 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
7162 (cli_ui_out_impl): Declare.
7163 (cli_out_data_ctor): Declare.
7164 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
7165 (uo_field_string): No longer static.
7166 (ui_out_data): Change return type to void pointer.
7167 (ui_out_new): Change `data' parameter type to void pointer.
7168 * ui-out.h (struct ui_out_data): Don't forward declare.
7169 (ui_out_data): Change return type to void pointer.
7170 (ui_out_new): Change `data' parameter type to void pointer.
7171 (uo_field_string): Declare.
7173 2010-04-17 Pedro Alves <pedro@codesourcery.com>
7175 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
7176 instead of always false.
7178 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
7181 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
7184 2010-04-17 Pedro Alves <pedro@codesourcery.com>
7186 * breakpoint.c (watchpoints_triggered): Use
7187 is_hardware_watchpoint.
7188 (watchpoints_triggered): Ditto.
7189 (bpstat_check_location): Use is_watchpoint and
7190 is_hardware_watchpoint.
7191 (bpstat_check_watchpoint): Use is_watchpoint and
7192 is_hardware_watchpoint.
7193 (bpstat_stop_status): Fix comment.
7194 (user_settable_breakpoint): Use is_watchpoint.
7195 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
7196 (disable_watchpoints_before_interactive_call_start): Use
7198 (enable_watchpoints_after_interactive_call_stop): Use
7200 (clear_command): Use is_watchpoint.
7201 (do_enable_breakpoint): Use is_watchpoint.
7203 2010-04-16 Mike Frysinger <vapier@gentoo.org>
7205 * solib-frv.c (enable_break1_done): Delete.
7206 (enable_break2): Do not check enable_break1_done. Move the
7207 enable_break2_done setting and call to
7208 remove_solib_event_breakpoints() to the end. Return without
7209 warning when the contents of _dl_debug_addr are 0.
7210 (enable_break): Do not set enable_break1_done.
7211 (frv_clear_solib): Likewise.
7213 2010-04-16 Kevin Buettner <kevinb@redhat.com>
7215 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
7216 instead of an error if no PLT entry is found. Return a
7217 potentially useful result.
7218 (m32c_m16c_pointer_to_address): Add code to search for function
7219 address when no .plt entry is found.
7221 2010-04-16 Stan Shebs <stan@codesourcery.com>
7223 * tracepoint.c (trace_variable_command): Run a cleanup.
7225 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7227 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
7229 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7231 Support for Windows OS Thread Information Block.
7232 * NEWS: Document new feature.
7233 * remote.c (PACKET_qGetTIBAddr): New enum element.
7234 (remote_get_tib_address): New function.
7235 (init_remote_ops): Set to_get_tib_address field
7236 to remote_get_tib_address.
7237 (_initialize_remote): Add add_packet_config_cmd
7238 for PACKET_qGetTIBAddr.
7239 * target.c (update_current_target): Set default value for
7240 new to_get_tib_address field.
7241 * target.h (target_ops): New field to_get_tib_address.
7242 (target_get_tib_address): New macro.
7243 * windows-nat.c (thread_info): Add thread_local_base field.
7244 (windows_add_thread): Add tlb argument of type 'void *'.
7245 (fake_create_process): Adapt windows_add_thread call.
7246 (get_windows_debug_event): Idem.
7247 (windows_get_tib_address): New function.
7248 (init_windows_ops): Set to_get_tib_address field
7249 to remote_get_tib_address.
7250 (_initialize_windows_nat): Replace info_w32_cmdlist
7251 initialization by a call to init_w32_command_list.
7252 (info_w32_command, info_w32_cmdlist): Removed from here...
7253 to windows-tdep.c file.
7254 * windows-tdep.h (info_w32_cmdlist): Declare.
7255 (init_w32_command_list): New external function
7257 * windows-tdep.c: Add several headers.
7258 (info_w32_cmdlist): to here, made global.
7259 (thread_information_32): New struct.
7260 (thread_information_64): New struct.
7261 (TIB_NAME): New char array.
7262 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
7263 (maint_display_all_tib): New static variable.
7264 (windows_get_tlb_type): New function.
7265 (tlb_value_read, tlb_value_write): New functions.
7266 (tlb_value_funcs): New static struct.
7267 (tlb_make_value): New function.
7268 (display_one_tib): New function.
7269 (display_tib): New function.
7270 (show_maint_show_all_tib):New function.
7271 (info_w32_command): Moved from windows-nat.c.
7272 (init_w32_command_list): New function.
7273 (_initialize_windows_tdep): New function.
7274 New "maint set/show show-all-tib" command
7275 New "$_tlb" internal variable.
7277 2010-04-16 Joel Brobecker <brobecker@adacore.com>
7279 * tui/tui-regs.c (tui_display_register): Add comment about
7281 * tui/tui-stack.c (tui_show_locator_content): Ditto.
7283 2010-04-15 Stan Shebs <stan@codesourcery.com>
7285 * frame.c: Include tracepoint.h.
7286 (get_current_frame): Allow a trace frame to be an alternate source
7287 of stack frame data.
7288 * tracepoint.c (tfind_1): Don't try to get current stack frame if
7291 2010-04-15 Pedro Alves <pedro@codesourcery.com>
7293 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
7295 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
7297 2010-04-15 Doug Evans <dje@google.com>
7299 * NEWS: Add entry for python program space support.
7300 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
7301 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
7302 (py-progspace.o): New rule.
7303 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
7305 (find_pretty_printer_from_progspace): New function.
7306 (find_pretty_printer_from_gdb): New function.
7307 (find_pretty_printer): Rewrite.
7308 * python/py-progspace.c: New file.
7309 * python/python-internal.h (program_space): Add forward decl.
7310 (pspace_to_pspace_object, pspy_get_printers): Declare.
7311 (gdbpy_initialize_pspace): Declare.
7312 * python/python.c: #include "progspace.h".
7313 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
7314 (_initialize_python): Call gdbpy_initialize_pspace.
7315 (GdbMethods): Add current_progspace, progspaces.
7317 Add -s option to source command.
7318 * NEWS: Document new option.
7319 * cli/cli-cmds.c (find_and_open_script): Add function comment.
7320 Delete from_tty and cleanupp args. Split filep arg into file and
7321 full_pathp. New arg search_path.
7322 (source_script_from_stream): New function.
7323 (source_script_with_search): New function.
7324 (source_script): Rewrite.
7325 (source_command): Parse "-s" option.
7326 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
7327 * python/python.c (source_python_script): Make file arg a const char *.
7328 Don't call fclose, leave for caller.
7329 * python/python.h (source_python_script): Update.
7331 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7332 Pedro Alves <pedro@codesourcery.com>
7334 Avoid rereading shared libraries that haven't changed.
7336 * solib.c (free_so_symbols): New function, from ...
7337 (free_so): ... here. Call it.
7338 (solib_read_symbols): Don't warn here if symbols have already been
7340 (solib_add): Warn here instead, if a pattern was specified.
7341 (reload_shared_libraries_1): New.
7342 (reload_shared_libraries): Rewrite to not fetch the library list.
7344 2010-04-14 Doug Evans <dje@google.com>
7346 * source.c (openp): Strip DOS drive letter if present before
7347 concatenating string to search path.
7349 2010-04-14 Pedro Alves <pedro@codesourcery.com>
7351 * objfiles.h (gdb_bfd_close_or_warn): Declare.
7352 * objfiles.c (gdb_bfd_close_or_warn): New.
7353 * corelow.c: Include objfiles.h
7354 (core_close): Use gdb_bfd_close_or_warn.
7355 * elfread.c (build_id_verify): Ditto.
7356 * exec.c (exec_close, exec_close_1): Ditto.
7358 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7359 Pedro Alves <pedro@codesourcery.com>
7361 Group errors for many missing shared libraries.
7363 * solist.h (struct so_list): Remove from_tty.
7364 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
7365 (solib_map_sections): Take so_list argument. Return 0 if we
7366 failed to open a BFD. Add target sections here.
7367 (symbol_add_stub): Delete.
7368 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
7369 not from_tty copied from the so_list. Don't warn a second time
7370 for a missing library.
7371 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
7372 add to the section table here. Print out a single warning for all
7374 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
7377 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7379 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
7380 error/warning messages. Capitalize and use complete sentences.
7381 (blpy_block_syms_iternext): Likewise.
7382 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
7383 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
7384 (frame_info_to_frame_object, frapy_read_var)
7385 (gdbpy_frame_stop_reason_string): Likewise.
7386 * python/py-lazy-string.c (stpy_convert_to_value)
7387 (gdbpy_create_lazy_string_object): Likewise.
7388 * python/py-objfile.c (objfpy_set_printers): Likewise.
7389 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
7390 * python/python.c (parameter_to_python): Likewise.
7391 * python/py-type.c (typy_range, typy_target): Likewise.
7392 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
7393 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
7396 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7400 * python/py-prettyprint.c (pretty_print_one_value): Test for
7402 (print_string_repr): Test for Py_None. Set flags accordingly.
7403 Return value depending on return type.
7404 (print_children): Take a value indicating whether data was printed
7405 before this function was called. Alter output accordingly.
7406 (apply_val_pretty_printer): Capture return value from
7407 print_string_repr and pass to print_children.
7409 2010-04-13 Mark Kettenis <kettenis@gnu.org>
7412 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
7413 register note sections.
7414 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
7416 (i386_linux_init_abi): Install list of supported register note
7417 sections that matches the target description.
7419 2010-04-13 Pedro Alves <pedro@codesourcery.com>
7421 * remote.c (remote_get_noisy_reply): Don't error out on empty
7423 (remote_start_remote): Update and merge tracepoints and trace
7424 state variables as long as the target supports tracepoints.
7425 (remote_trace_init): Fix prototype.
7426 (remote_download_trace_state_variable): Validate reply.
7427 (remote_trace_set_readonly_regions): Fix prototype.
7428 (remote_trace_start): Fix prototype. Check for empty reply.
7429 (remote_get_trace_status): Small cleanup.
7430 (remote_trace_stop): Fix prototype. Check for empty reply.
7431 (remote_trace_find): Check for empty reply.
7432 (remote_save_trace_data): Validate reply.
7433 (remote_set_disconnected_tracing): Check for empty reply, and
7435 (remote_set_circular_trace_buffer): Ditto.
7437 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
7439 Suppress unused value warning during compilation.
7440 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
7442 * tui/tui-stack.c (tui_show_locator_content): Likewise.
7444 2010-04-12 Stan Shebs <stan@codesourcery.com>
7446 * tracepoint.c (tfile_xfer_partial): Check read result.
7448 2010-04-12 Mike Frysinger <vapier@gentoo.org>
7450 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
7451 * remote-sim.c (gdbsim_files_info): Likewise.
7453 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7455 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
7456 * arm-linux-nat.c (arm_linux_vfp_register_count): New
7458 (fetch_vfp_registers): New function to fetch VFP registers.
7459 (store_vfp_registers): New function to store VFP registers.
7460 (arm_linux_fetch_inferior_registers): Add support for VFP
7462 (arm_linux_store_inferior_registers): Likewise.
7463 (arm_linux_read_description): Likewise.
7464 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
7467 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
7469 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
7471 (amd64_collect_xstateregset): Likewise.
7473 2010-04-09 Stan Shebs <stan@codesourcery.com>
7475 * tracepoint.c (trace_status_mi): Report frames created.
7477 * tracepoint.c (trace_dump_command): Include default-collect
7480 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
7482 * symtab.c (find_function_start_sal): Never return SAL pointing
7483 before function start address, even if line info is missing.
7485 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7487 * NEWS: Mention tracepoints support.
7489 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7491 * tracepoint.c (trace_status_mi): Report disconnected tracing and
7492 circular trace buffer statuses.
7494 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7496 * config/djgpp/fnchange.lst: Fix typo in translations for
7497 symbol-without-target_section.exp and symbol-without-target_section.c.
7499 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7501 * breakpoint.c (condition_command): Pass condition expression to
7502 set_breakpoint_condition stripped from breakpoint number.
7504 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
7505 Thiago Jung Bauermann <bauerman@br.ibm.com>
7506 Tom Tromey <tromey@redhat.com>
7508 * breakpoint.c (condition_command): Simplify. Move condition
7510 (set_breakpoint_condition): ... here. New function.
7511 * breakpoint.h (set_breakpoint_condition): Declare.
7512 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
7513 (SUBDIR_PYTHON_SRCS): Likewise.
7514 (py-breakpoint.o): New rule.
7515 * python/py-breakpoint.c: New file.
7516 * python/python-internal.h (gdbpy_breakpoints)
7517 (gdbpy_initialize_breakpoints): Declare.
7518 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
7520 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7522 * regformats/regdat.sh: Include server.h. Don't include
7525 2010-04-08 Stan Shebs <stan@codesourcery.com>
7526 Pedro Alves <pedro@codesourcery.com>
7528 * tracepoint.h (struct trace_status): New fields disconnected_tracing
7529 and circular_buffer.
7530 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
7531 * tracepoint.c (trace_status_command): Display target's status for
7532 disconnected tracing and circular buffer.
7533 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
7534 query for non-disconnected-tracing case, remove the stop_tracing
7536 (tfile_open): Clear disconnected and circular buffer status.
7537 (trace_save): Save disconnected and circular buffer status.
7538 (parse_trace_status): Parse disconnected and circular buffer status,
7539 also recognize disconnected as a stop reason.
7540 * remote.c (remote_set_disconnected_tracing): Only set
7541 QTDisconnected if the remote end supports disconnected tracing.
7542 Warn otherwise, if trying to enable disconnected tracing.
7543 * infcmd.c (detach_command): Update disconnect_tracing call.
7544 * cli/cli-cmds.c (quit_command): Ditto.
7546 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7548 * i387-tdep.c (i387_collect_xsave): Replace abort with
7551 2010-04-08 Stan Shebs <stan@codesourcery.com>
7553 * breakpoint.c (default_collect_info): New function.
7554 (breakpoints_info): Call it.
7555 (maintenance_info_breakpoints): Ditto.
7556 (tracepoints_info): Ditto.
7558 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7560 * i387-tdep.c (i387_collect_xsave): Re-indent.
7562 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7564 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
7565 if HAVE_PTRACE_GETFPXREGS is defined.
7566 (i386_linux_read_description): Set have_ptrace_getfpxregs and
7567 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
7569 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
7570 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
7571 if .reg-xfp section doesn't exist.
7572 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
7574 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
7576 * i386-tdep.c: Include "features/i386/i386-mmx.c".
7577 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
7578 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
7579 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
7580 (i386_gdbarch_init): Update comments.
7581 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
7583 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
7585 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
7587 * features/Makefile (i386/i386-mmx-expedite): New.
7588 (i386/i386-mmx-linux-expedite): Likewise.
7589 ($(outdir)/i386/i386-mmx.dat): Likewise.
7590 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
7592 * features/i386/i386-mmx-linux.c: New.
7593 * features/i386/i386-mmx-linux.xml: Likewise.
7594 * features/i386/i386-mmx.c: Likewise.
7595 * features/i386/i386-mmx.xml: Likewise.
7596 * regformats/i386/i386-mmx-linux.dat: Likewise.
7597 * regformats/i386/i386-mmx.dat: Likewise.
7599 * features/Makefile (WHICH): Add i386/i386-mmx and
7600 i386/i386-mmx-linux.
7602 2010-04-08 Doug Evans <dje@google.com>
7604 * source.c (openp): Skip $cdir in PATH.
7606 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
7609 * python/py-lazy-string.c (stpy_convert_to_value): Check for
7611 (gdbpy_create_lazy_string_object): Allow strings with a NULL
7612 address and a zero length.
7614 2010-04-08 Hui Zhu <teawater@gmail.com>
7616 * i386-tdep.c (i386_process_record): Add support for insn
7619 2010-04-07 Doug Evans <dje@google.com>
7621 * python/python.c (source_python_script): Use ensure_python_env
7622 to prepare environment for script.
7624 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7626 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
7627 <sys/uio.h> and "i386-xstate.h".
7628 (PTRACE_GETREGSET): New.
7629 (PTRACE_SETREGSET): Likewise.
7630 (have_ptrace_getregset): Likewise.
7631 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
7633 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
7635 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
7636 (amd64_linux_store_inferior_registers): Likewise.
7637 (amd64_linux_read_description): Check and enable AVX target
7640 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
7641 and "features/i386/amd64-avx-linux.c".
7642 (amd64_linux_regset_sections): New.
7643 (amd64_linux_core_read_description): Check and enable AVX
7645 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
7646 set_gdbarch_core_regset_sections.
7647 (_initialize_amd64_linux_tdep): Call
7648 initialize_tdesc_amd64_avx_linux.
7650 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
7651 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7652 (tdesc_amd64_avx_linux): New.
7653 (amd64_linux_update_xstateregset): Likewise.
7655 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7656 (amd64_ymm_names): New.
7657 (amd64_ymmh_names): Likewise.
7658 (amd64_register_name): Likewise.
7659 (amd64_supply_xstateregset): Likewise.
7660 (amd64_collect_xstateregset): Likewise.
7661 (amd64_supply_xsave): Likewise.
7662 (amd64_collect_xsave): Likewise.
7663 (AMD64_NUM_REGS): Removed.
7664 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7665 %xmmN if AVX is available.
7666 (amd64_pseudo_register_name): Support pseudo YMM registers.
7667 (amd64_regset_from_core_section): Support .reg-xstate section.
7668 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7669 and ymm0h_regnum. Call set_gdbarch_register_name.
7670 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7672 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7673 AMD64_YMM15H_REGNUM.
7674 (AMD64_NUM_REGS): New.
7675 (amd64_supply_xsave): Likewise.
7676 (amd64_collect_xsave): Likewise.
7677 (amd64_register_name): Removed.
7678 (amd64_register_type): Likewise.
7680 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7682 * i387-tdep.c: Include "i386-xstate.h".
7683 (XSAVE_XSTATE_BV_ADDR): New.
7684 (xsave_avxh_offset): Likewise.
7685 (XSAVE_AVXH_ADDR): Likewise.
7686 (i387_supply_xsave): Likewise.
7687 (i387_collect_xsave): Likewise.
7689 * i387-tdep.h (I387_NUM_YMM_REGS): New.
7690 (I387_YMM0H_REGNUM): Likewise.
7691 (I387_YMMENDH_REGNUM): Likewise.
7692 (i387_supply_xsave): Likewise.
7693 (i387_collect_xsave): Likewise.
7695 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7697 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7698 <sys/uio.h> and "i386-xstate.h".
7699 (PTRACE_GETREGSET): New.
7700 (PTRACE_SETREGSET): Likewise.
7701 (fetch_xstateregs): Likewise.
7702 (store_xstateregs): Likewise.
7703 (GETXSTATEREGS_SUPPLIES): Likewise.
7704 (regmap): Include 8 upper YMM registers.
7705 (i386_linux_fetch_inferior_registers): Support XSAVE extended
7707 (i386_linux_store_inferior_registers): Likewise.
7708 (i386_linux_read_description): Check and enable AVX target
7711 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7712 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7713 (i386_linux_regset_sections): Add ".reg-xstate".
7714 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7715 (i386_linux_core_read_xcr0): New.
7716 (i386_linux_core_read_description): Check and enable AVX target
7718 (i386_linux_init_abi): Set xsave_xcr0_offset.
7719 (_initialize_i386_linux_tdep): Call
7720 initialize_tdesc_i386_avx_linux.
7722 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7723 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7724 (i386_linux_core_read_xcr0): New.
7725 (tdesc_i386_avx_linux): Likewise.
7726 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7728 * i386-tdep.c: Include "i386-xstate.h" and
7729 "features/i386/i386-avx.c".
7730 (i386_ymm_names): New.
7731 (i386_ymmh_names): Likewise.
7732 (i386_ymmh_regnum_p): Likewise.
7733 (i386_ymm_regnum_p): Likewise.
7734 (i386_xmm_regnum_p): Likewise.
7735 (i386_register_name): Likewise.
7736 (i386_ymm_type): Likewise.
7737 (i386_supply_xstateregset): Likewise.
7738 (i386_collect_xstateregset): Likewise.
7739 (i386_sse_regnum_p): Removed.
7740 (i386_pseudo_register_name): Support pseudo YMM registers.
7741 (i386_pseudo_register_type): Likewise.
7742 (i386_pseudo_register_read): Likewise.
7743 (i386_pseudo_register_write): Likewise.
7744 (i386_dbx_reg_to_regnum): Return %ymmN register number for
7745 %xmmN if AVX is available.
7746 (i386_regset_from_core_section): Support .reg-xstate section.
7747 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7748 (i386_process_record): Replace i386_sse_regnum_p with
7750 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7751 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
7752 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
7753 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
7754 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
7755 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7757 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7759 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7760 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7762 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7763 (I386_AVX_NUM_REGS): New.
7764 (i386_xmm_regnum_p): Likewise.
7765 (i386_ymm_regnum_p): Likewise.
7766 (i386_ymmh_regnum_p): Likewise.
7768 * common/i386-xstate.h: New.
7770 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7772 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7774 * features/Makefile (WHICH): Add i386/i386-avx,
7775 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7776 (i386/i386-avx-expedite): New.
7777 (i386/i386-avx-linux-expedite): Likewise.
7778 (i386/x86-64-avx-expedite):Likewise.
7779 (i386/x86-64-avx-linux-expedite): Likewise.
7780 ($(outdir)/i386/i386-avx.dat): New dependency.
7781 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7782 ($(outdir)/i386/x86-avx-64.dat): Likewise.
7783 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7785 * features/i386/32bit-avx.xml: New.
7786 * features/i386/64bit-avx.xml: Likewise.
7787 * features/i386/i386-avx-linux.c: Likewise.
7788 * features/i386/i386-avx-linux.xml: Likewise.
7789 * features/i386/i386-avx.c: Likewise.
7790 * features/i386/i386-avx.xml: Likewise.
7791 * features/i386/x86-64-avx-linux.c: Likewise.
7792 * features/i386/x86-64-avx-linux.xml: Likewise.
7793 * features/i386/x86-64-avx.c: Likewise.
7794 * features/i386/x86-64-avx.xml: Likewise.
7795 * regformats/i386/i386-avx-linux.dat: Likewise.
7796 * regformats/i386/i386-avx.dat: Likewise.
7797 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7798 * regformats/i386/x86-64-avx.dat: Likewise.
7800 2010-04-07 Doug Evans <dje@google.com>
7802 * top.c (source_file_name): Make const char *.
7803 * top.h (source_file_name): Update.
7804 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7806 (script_from_file): Change `file' arg to const char *.
7807 * cli/cli-script.h (script_from_file): Update.
7809 2010-04-06 Doug Evans <dje@google.com>
7811 * cli/cli-cmds.c (source_command): Run cleanups.
7813 2010-04-06 Stan Shebs <stan@codesourcery.com>
7815 * defs.h (char_ptr): Move typedef here from...
7816 * ada-lang.c (char_ptr): Remove.
7817 * charset.c (char_ptr): Remove.
7818 * tracepoint.h (struct uploaded_string): Remove.
7819 (struct uploaded_tp): Use vectors for string arrays.
7820 * tracepoint.c (trace_save): Use vectors of actions.
7821 (parse_tracepoint_definition): Ditto.
7822 (get_uploaded_tp): Clear vectors.
7823 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7824 (next_cmd): Change to an int.
7825 (read_next_cmd): Use vector of command strings.
7827 2010-04-06 Doug Evans <dje@google.com>
7829 * top.h (source_script, cd_command): Delete.
7830 * main.c: #include "cli/cli-cmds.h"
7832 2010-04-06 Kevin Buettner <kevinb@redhat.com>
7834 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7835 type in bytes, not bits.
7837 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7839 * stabsread.c (define_symbol): Add support for char
7840 and string constants.
7842 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7844 Remove remaining "%ll" uses.
7845 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7847 * rs6000-nat.c (rs6000_ptrace64): Idem.
7848 * solib-pa64.c (pa64_current_sos): Idem.
7849 * solib-spu.c (spu_current_sos): Idem.
7850 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7852 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7854 * sh64-tdep.c (sh64_show_media_regs): Idem.
7856 2010-04-05 Stan Shebs <stan@codesourcery.com>
7858 * tracepoint.c: Include gdbcore.h.
7859 (tfile_xfer_partial): Return partial results, also try reading
7861 (tfile_has_all_memory): New function.
7862 (init_tfile_ops): Use it.
7864 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7867 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7868 the changes in data-directory.
7869 (init_sysinfo): Reload the syscall XML file if the data-directory
7872 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7875 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7877 2010-04-04 Stan Shebs <stan@codesourcery.com>
7878 Nathan Sidwell <nathan@codesourcery.com>
7880 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7881 breakpoints printed.
7882 (is_hardware_watchpoint): Make argument const.
7883 (is_watchpoint): Ditto.
7884 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7886 (breakpoints_info): Pass NULL to breakpoint_1.
7887 (maintenance_info_breakpoints): Ditto.
7888 (watchpoints_info): New function.
7889 (tracepoints_info): Use breakpoint_1 filter.
7890 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7891 (_initialize_breakpoint): Make "info watchpoints" its own command.
7892 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7893 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7895 2010-04-04 Stan Shebs <stan@codesourcery.com>
7897 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7899 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7901 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7902 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7904 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7906 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7907 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7909 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7911 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7914 2010-04-02 Hui Zhu <teawater@gmail.com>
7916 * i386-tdep.c (OT_DQUAD): New enum.
7917 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7918 SSE3, SSSE3 and SSE4.
7920 2010-04-02 Hui Zhu <teawater@gmail.com>
7922 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7925 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7927 * tracepoint.c (trace_dump_actions): New, factored out from
7928 trace_dump_command, and adjusted to recurse into while-stepping's
7930 (trace_dump_command): Use it.
7932 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7934 * breakpoint.h (struct counted_command_line): Moved definition to
7935 breakpoint.c, and forward declare.
7936 (breakpoint_commands): Declare.
7937 * breakpoint.c (struct counted_command_line): Moved here.
7938 (breakpoint_commands): New.
7939 * tracepoint.c (encode_actions): Use breakpoint_commands.
7940 * remote.c (remote_download_tracepoint): Ditto.
7942 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7944 * remote.c (remote_parse_stop_reply): Use hex_string instead
7945 of phex_nz for error.
7947 2010-04-01 Stan Shebs <stan@codesourcery.com>
7948 Nathan Sidwell <nathan@codesourcery.com>
7950 * tracepoint.h (enum actionline_type): Remove.
7951 (validate_actionline): Change return to void.
7952 * tracepoint.c (report_agent_reqs_errors): New function.
7953 (validate_actionline): Call it, change return to void, report errors
7955 (collect_symbol): Call report_agent_reqs_errors.
7956 (encode_actions_1): Ditto.
7957 (encode_actions): Don't expect a result from validate_actionline.
7959 2010-04-01 Stan Shebs <stan@codesourcery.com>
7961 * tracepoint.c (trace_start_command): Confirm if trace is running.
7962 (trace_stop_command): Error if trace not running.
7964 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7966 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7967 (AMD64_NUM_LOWER_BYTE_REGS): New.
7968 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7969 (amd64_pseudo_register_write): Likewise.
7970 (amd64_init_abi): Set num_byte_regs to 20.
7972 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7974 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7975 (prev_breakpoint_count): New.
7976 (set_breakpoint_count): Adjust.
7977 (rbreak_start_breakpoint_count): New.
7978 (start_rbreak_breakpoints): Adjust.
7979 (end_rbreak_breakpoints): Adjust.
7980 (struct commands_info) <arg>: New field.
7981 (do_map_commands_command): Tweak output to include breakpoint spec
7983 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7984 ARG was empty on entry. Set INFO's arg.
7985 (create_breakpoint): Adjust.
7987 * NEWS: Clarify `commands' changes.
7989 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7991 * tracepoint.c: Include stack.h.
7992 (struct add_local_symbols_data): New.
7993 (do_collect_symbol): New.
7994 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7995 iterate_over_block_local_vars.
7996 * stack.c (print_block_frame_locals): Rewrite as ...
7997 (iterate_over_block_locals): ... this. Take a callback function
7998 pointer and generic data pointer, and call that instead of
7999 print_variable_and_value.
8000 (struct print_variable_and_value_data): New.
8001 (do_print_variable_and_value): New.
8002 (iterate_over_block_local_vars): New, abstracted out from
8003 print_frame_local_vars.
8004 (print_frame_local_vars): Rewrite using
8005 iterate_over_block_local_vars.
8006 (iterate_over_block_arg_vars): New, abstracted out from
8007 print_frame_arg_vars.
8008 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
8009 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
8010 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
8012 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
8014 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8015 instructions. Use the PC+4 if the base of the TBB or TBH is the
8018 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
8020 Fix crash on reading wrong function declaration DWARF.
8021 * dwarf2read.c (read_subroutine_type): New variable void_type.
8022 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
8023 more close to their use.
8025 2010-03-31 Stan Shebs <stan@codesourcery.com>
8027 * breakpoint.c (tracepoint_save_command): Include variables,
8028 conditionals, tracepoint types, and default-collect.
8029 * tracepoint.c (save_trace_state_variables): New function.
8030 * tracepoint.h (save_trace_state_variables): Declare it.
8032 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
8034 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
8036 2010-03-30 Keith Seitz <keiths@redhat.com>
8038 * c-typeprint.c (c_type_print_args): Don't print "void"
8039 for java, regardless of whether it is TYPE_PROTOTYPED.
8040 Use the passed-in language instead of current_language.
8041 (c_type_print_varspec_suffix): Use current_language instead
8042 of assuming language_c.
8043 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
8044 any return type specifier from the physname.
8046 2010-03-30 Pedro Alves <pedro@codesourcery.com>
8048 * tui/tui-interp.c (tui_is_toplevel): New.
8050 (tui_allowed_p): New.
8051 * tui/tui.c (tui_enable): Check if the TUI is allowed before
8053 * tui/tui.h (tui_allowed_p): Declare.
8055 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
8057 * serial.h: Include winsock2.h before windows.h.
8059 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
8061 * NEWS: Mention xmlRegisters= in qSupported packet.
8063 * i386-tdep.c: Include "remote.h".
8064 (_initialize_i386_tdep): Call register_remote_support_xml.
8066 * remote.c (remote_support_xml): New.
8067 (register_remote_support_xml): Likewise.
8068 (remote_query_supported_append): Likewise.
8069 (remote_query_supported): Support remote_support_xml.
8071 * remote.h (register_remote_support_xml): New.
8073 2010-03-29 Stan Shebs <stan@codesourcery.com>
8075 * tracepoint.c (trace_find_line_command): Remove dead code.
8077 * tracepoint.h (struct uploaded_string): New struct.
8078 (struct uploaded_tp): New fields for source strings.
8079 * breakpoint.c (this_utp, next_cmd): New globals.
8080 (read_uploaded_action): New function.
8081 (create_tracepoint_from_upload): Fill in more parts
8083 * tracepoint.c (encode_source_string): New function.
8084 (trace_save): Write out source strings, fix error checks.
8085 (parse_tracepoint_definition): Add source string parsing.
8086 * remote.c (PACKET_TracepointSource): New packet type.
8087 (remote_download_command_source): New function.
8088 (remote_download_tracepoint): Download source pieces also.
8089 (_initialize_remote): Add packet config command.
8091 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
8094 * tracepoint.c (start_tracing): Check tracepoints before sending
8095 commands to target, don't start if all tracepoints disabled.
8097 2010-03-28 Pedro Alves <pedro@codesourcery.com>
8099 * cli/cli-script.c (process_next_line): Handle 'stepping'.
8101 2010-03-26 Stan Shebs <stan@codesourcery.com>
8103 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
8105 2010-03-26 Tom Tromey <tromey@redhat.com>
8107 * breakpoint.c (commands_command_1): Duplicate 'arg'.
8109 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8111 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
8112 (skip_prologue_sal): Remove local definition.
8113 (resolve_sal_pc): Remove now unnecessary code.
8114 * linespec.c (minsym_found): Call skip_prologue_sal.
8115 * symtab.c (find_function_start_pc): Remove.
8116 (find_function_start_sal): Extract prologue skipping into ...
8117 (skip_prologue_sal): ... this new function. Handle code both
8118 with and without debug info. Respect SAL's explicit_pc and
8119 explicit_line flags. Inline old find_function_start_pc.
8120 * symtab.h (find_function_start_pc): Remove.
8121 (skip_prologue_sal): Add prototype.
8123 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8125 * dwarf2read.c (read_func_scope): Also scan specification DIEs
8126 for DW_TAG_imported_module children.
8128 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8130 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
8131 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
8132 * completer.c (add_struct_fields): Fix inverted logic.
8134 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8136 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
8138 2010-03-26 Pedro Alves <pedro@codesourcery.com>
8140 * tracepoint.c (current_trace_status): Don't make sure error_desc
8142 (parse_trace_status): Release a previous error_desc string, and
8143 set it to NULL by default. If stop reason is tracepoint_error,
8144 make sure error_desc is not left NULL.
8146 2010-03-26 Pedro Alves <pedro@codesourcery.com>
8148 * tracepoint.c (trace_save): Remove X from tracepoint error
8151 2010-03-26 Pedro Alves <pedro@codesourcery.com>
8153 * tracepoint.c (parse_trace_status): Don't allow plain strings in
8154 the terror description. Don't expect an X prefix.
8156 2010-03-25 Stan Shebs <stan@codesourcery.com>
8158 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
8159 (struct trace_status): New field error_desc.
8160 * tracepoint.c (stop_reason_names): Add terror.
8161 (current_trace_status): Ensure non-NULL error description.
8162 (trace_status_command): Add error report.
8163 (trace_status_mi): Ditto.
8164 (trace_save): Add special case for error description.
8165 (parse_trace_status): Add case for errors.
8167 2010-03-25 Keith Seitz <keiths@redhat.com>
8169 * dwarf2read.c (read_subroutine_type): If the compilation unit
8170 language is Java, mark any formal parameter named "this" as
8171 artificial (GCC/43521).
8172 (dwarf2_name): Add special handling for Java constructors.
8174 2010-03-25 Tom Tromey <tromey@redhat.com>
8176 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
8177 * infrun.c (handle_inferior_event): Change initialization of
8179 (handle_inferior_event): Change assignment to stop_stack_dummy.
8180 (normal_stop): Update use of stop_stack_dummy.
8181 (struct inferior_status) <stop_stack_dummy>: Change type.
8182 * inferior.h (stop_stack_dummy): Update.
8183 * infcmd.c (stop_stack_dummy): Change type.
8184 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
8186 (call_function_by_hand): Call set_std_terminate_breakpoint.
8187 Rewrite std::terminate handling.
8188 * breakpoint.h (enum bptype) <bp_std_terminate,
8189 bp_std_terminate_master>: New.
8190 (enum stop_stack_kind): New.
8191 (struct bpstat_what) <call_dummy>: Change type.
8192 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
8194 * breakpoint.c (create_std_terminate_master_breakpoint): New
8196 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
8197 Call create_std_terminate_master_breakpoint.
8198 (print_it_typical): Handle new breakpoint kinds.
8199 (bpstat_stop_status): Handle bp_std_terminate_master.
8200 (bpstat_what): Correctly set call_dummy field. Handle
8201 bp_std_terminate_master and bp_std_terminate.
8202 (print_one_breakpoint_location): Update.
8203 (allocate_bp_location): Update.
8204 (set_std_terminate_breakpoint): New function.
8205 (delete_std_terminate_breakpoint): Likewise.
8206 (create_thread_event_breakpoint): Update.
8207 (delete_command): Update.
8208 (breakpoint_re_set_one): Update.
8209 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
8211 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8213 * symfile.c (build_section_addr_info_from_bfd): New.
8214 (build_section_addr_info_from_objfile): Base it on
8215 build_section_addr_info_from_bfd.
8216 (addrs_section_compar, addrs_section_sort): New.
8217 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
8218 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
8219 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
8221 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
8223 * elfread.c (find_separate_debug_file_by_buildid):
8224 Remove unused local variable.
8226 2010-03-24 Tom Tromey <tromey@redhat.com>
8228 PR breakpoints/9352:
8229 * NEWS: Mention changes to `commands' and `rbreak'.
8230 * symtab.c (do_end_rbreak_breakpoints): New function.
8231 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
8232 end_rbreak_breakpoints.
8233 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
8234 (set_breakpoint_count): Likewise. Clear last_was_multi.
8235 (multi_start, multi_end, last_was_multi): New globals.
8236 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
8238 (struct commands_info): New
8239 (do_map_commands_command): New function.
8240 (commands_command_1): New function.
8241 (commands_command): Use it.
8242 (commands_from_control_command): Likewise.
8243 (do_delete_breakpoint): New function.
8244 (delete_command): Use it.
8245 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
8246 (do_map_disable_breakpoint): New function.
8247 (disable_command): Use it.
8248 (do_map_enable_breakpoint): New function.
8249 (enable_command): Use it.
8250 (enable_once_breakpoint): Add argument.
8251 (enable_once_command): Update.
8252 (enable_delete_breakpoint): Add argument.
8253 (enable_delete_command): Update.
8254 (break_command_really): Set last_was_multi when needed.
8255 (check_tracepoint_command): Fix formatting.
8256 (validate_commands_for_breakpoint): New function.
8257 (breakpoint_set_commands): Use it.
8258 (tracepoint_save_command): Update.
8259 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
8262 2010-03-24 Tom Tromey <tromey@redhat.com>
8264 * breakpoint.h (struct counted_command_line): New struct.
8265 (struct breakpoint) <commands>: Change type.
8266 (struct bpstats) <commands>: Change type.
8267 <commands_left>: New field.
8268 * breakpoint.c (alloc_counted_command_line): New function.
8269 (incref_counted_command_line): Likewise.
8270 (decref_counted_command_line): Likewise.
8271 (do_cleanup_counted_command_line): Likewise.
8272 (make_cleanup_decref_counted_command_line): Likewise.
8273 (breakpoint_set_commands): Use decref_counted_command_line and
8274 alloc_counted_command_line.
8275 (commands_command): Don't error if breakpoint commands are
8277 (commands_from_control_command): Likewise.
8278 (bpstat_free): Update.
8279 (bpstat_copy): Likewise.
8280 (bpstat_clear_actions): Likewise.
8281 (bpstat_do_actions_1): Likewise.
8282 (bpstat_stop_status): Likewise.
8283 (print_one_breakpoint_location): Likewise.
8284 (delete_breakpoint): Likewise.
8285 (bpstat_alloc): Initialize new field.
8286 (tracepoint_save_command): Update.
8287 * tracepoint.c (encode_actions): Update.
8288 (trace_dump_command): Update.
8290 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8292 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
8293 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
8294 (read_structure_type): For RealView, set TYPE_STUB on structures with
8295 no byte size and no children.
8296 (read_subroutine_type): Mark functions as prototyped by default.
8297 * symtab.c (producer_is_realview): New function.
8298 * symtab.h (expand_line_sal): Fix declaration formatting.
8299 (producer_is_realview): Declare.
8301 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8303 * arm-tdep.c (skip_prologue_function): New function.
8304 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
8305 (thumb_analyze_prologue): Document return value. Recognize more
8306 Thumb instructions, skippable calls, and some Thumb-2 instructions.
8308 (arm_skip_prologue): Remove call dummy check. Check the prologue
8309 for non-GNU compilers.
8310 (arm_instruction_changes_pc): New function.
8311 (arm_analyze_prologue): New function, broken out from
8312 arm_scan_prologue. Recognize more ARM instructions and skippable
8313 calls. Update comments. Handle NULL cache. Return the address
8314 of the first unrecognized instruction. Do not skip past other
8315 instructions which change control flow. Add debug output.
8316 (arm_scan_prologue): Use arm_analyze_prologue.
8317 (ARM_PC_32): Delete.
8318 (shifted_reg_val): Simplify ARM_PC_32 check.
8320 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8322 * tracepoint.c (tvariables_info_1): Actually compute
8323 the number of rows in the result.
8325 2010-03-24 Pedro Alves <pedro@codesourcery.com>
8327 * remote.c (crc32): Constify `buf' parameter.
8328 (remote_verify_memory): New, abstracted out from...
8329 (compare_sections_command): ... this. Remove hardcoded target
8331 (init_remote_ops): Install remote_verify_memory.
8332 * target.c (target_verify_memory): New.
8333 * target.h (struct target_ops) <to_verify_memory>: New field.
8334 (target_verify_memory): Declare.
8336 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8338 Implement -trace-save.
8340 * mi-cmds.h (mi_cmds_trace_save): Declare.
8341 * mi-cmds.c (mi_cmds): Register -trace-save.
8342 * mi/mi-main.c (mi_cmd_trace_save): New.
8343 * remote.c (remote_save_trace_data): Take const parameter.
8344 * target.h (struct target_ops::to_save_trace_data): Take
8346 * target.c (update_current_target): Adjust to the above.
8347 * tracepoint.c (trave_save): New, extracted from
8348 (trace_save_command): ...this.
8349 (tfile_trace_find): Remove message that is unnecessary now
8350 that 'tfind' reports found frame.
8351 * tracepoint.h (trace_save): Declare.
8353 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8355 Implement -trace-find.
8357 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
8358 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
8359 * mi/mi-main.c (mi_cmd_trace_find): New.
8360 * target.h (struct target_ops): Document to_trace_find.
8361 * tracepoint.h (tfind_1): Declare.
8362 * tracepoint.c (finish_tfind_command): Rename to...
8364 * remote.c (remote_trace_find): Return -1 if target say
8365 there's no frame. Improve error diagnostics.
8367 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8369 -trace-define-variable and -trace-list-variables.
8371 * tracepoint.c (create_trace_state_variable): Make
8372 private copy of name, as opposed to assuming the
8373 pointer lives forever.
8374 (tvariables_info_1): New.
8375 (tvariables_info): Use the above.
8376 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
8378 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
8379 and -trace-list-variables.
8380 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
8381 (mi_cmd_trace_list_variables): New.
8382 * mi/mi-main.c (mi_cmd_trace_define_variable)
8383 (mi_cmd_trace_list_variables): New.
8385 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8387 Implement -break-passcount.
8389 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
8390 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
8391 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
8393 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8395 -trace-start/-trace-end/-trace-status.
8397 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
8399 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
8400 (mi_cmd_trace_stop): Declare.
8401 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
8402 (mi_cmd_trace_stop): New.
8403 * tracepoint.c (start_tracing): New, extracted from...
8404 (trace_start_command): ...this.
8405 (trace_status_mi): New.
8406 * tracepoint.h (struct trace_status): Document
8407 stopping_tracepoint.
8408 (start_tracing, stop_tracing, trace_status_mi): Declare.
8410 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8412 Implement creating tracepoints with -break-insert.
8414 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
8415 to mean that tracepoint should be created.
8417 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8419 * breakpoint.c (check_no_tracepoint_commands): Use
8420 current spelling of 'teval'.
8422 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8424 Unify actions and commands
8426 * defs.h (read_command_lines, read_command_lines_1): New
8427 parameters validator and closure.
8428 * tracepoint.h (struct action_line): Remove.
8429 * breakpoint.h (struct breakpoint): Remove the 'actions'
8431 * defs.h (enum command_control_type): New value
8432 while_stepping_control.
8433 (struct command_line): Add comments.
8434 * breakpoint.c (breakoint_is_tracepoint): New.
8435 (breakpoint_set_commands): For tracepoints,
8436 verify the commands are permissible.
8437 (check_tracepoint_commands): New.
8438 (commands_command): Require that each new line is validated using
8439 check_tracepoint_command, if we set commands for a tracepoint.
8440 (create_tracepoint_from_upload): Likewise.
8441 (print_one_breakpoint_location): Remove the code to print
8442 actions specifically.
8443 (tracepoint_save_command): Relay to print_command_lines.
8444 * cli/cli-script.c (process_next_line): New parameters validator
8445 and closure. Handle 'while-stepping'. Call validator if not null.
8446 (read_command_lines, read_command_lines1): Likewise.
8447 (recurse_read_control_structure): New parameters validator and
8448 closure. Handle while_stepping_control.
8449 (print_command_lines): Handle while-stepping.
8450 (get_command_line, define_command, document_command): Adjust.
8451 * remote.c (remote_download_tracepoint): Adjust.
8452 * tracepoint.c (make_cleanup_free_actions, read_actions)
8453 (free_actions, do_free_actions_cleanup): Remove.
8454 (trace_actions_command): Use read_command_lines.
8455 (validate_actionline): Use error in one place.
8456 (encode_actions_1): New, extracted from...
8457 (encode_actions): ...this. Also use cleanups for exception
8459 (trace_dump_command): Adjust.
8460 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
8463 2010-03-23 Mike Frysinger <vapier@gentoo.org>
8465 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
8467 2010-03-22 Stan Shebs <stan@codesourcery.com>
8469 * value.c (value_static_field): Be lazy about the field's value.
8471 2010-03-22 Reid Kleckner <reid@kleckner.net>
8474 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
8476 (disable_breakpoints_in_shlibs): Likewise.
8478 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
8480 * dwarf2read.c (partial_die_parent_scope): Work around buggy
8481 GCC 4.1 debug info generation (GCC PR c++/28460).
8482 (determine_prefix): Likewise.
8484 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
8486 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
8488 * tui/tui-layout.c (extract_display_start_addr): Likewise.
8490 2010-03-19 Stan Shebs <stan@codesourcery.com>
8492 * ax-gdb.c (gen_fetch): Handle bool.
8493 (gen_usual_unary): Ditto.
8495 (gen_equal): New function.
8496 (gen_less): New function.
8497 (gen_expr_binop_rest): Call them, also return integer type from
8501 2010-03-19 Tom Tromey <tromey@redhat.com>
8503 * jv-lang.c (jv_dynamics_objfile_data_key)
8504 (jv_type_objfile_data_key): New globals.
8505 (class_symtab): Move earlier.
8506 (jv_per_objfile_free): New function.
8507 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
8509 Remove ancient #if 1.
8510 (add_class_symbol): Remove redundant declaration.
8511 (java_lookup_class): Use alloc_type, not alloc_type_arch.
8512 (java_link_class_type): Mark as static. Update.
8513 (jv_clear_object_type): New function.
8514 (set_java_object_type): Likewise.
8515 (get_java_object_type): Use set_java_object_type.
8516 (is_object_type): Likewise.
8517 (_initialize_java_language): Register new objfile keys.
8518 (get_java_class_symtab): Add 'gdbarch' parameter.
8519 (add_class_symtab_symbol): Update.
8520 (type_from_class): Update.
8522 2010-03-19 Stan Shebs <stan@codesourcery.com>
8524 * ax-general.c (ax_const_l): Fix a sizing bug.
8526 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8530 2010-03-18 Stan Shebs <stan@codesourcery.com>
8531 Pedro Alves <pedro@codesourcery.com>
8533 * target.h (struct target_ops): New method
8534 to_set_circular_trace_buffer.
8535 (target_set_circular_trace_buffer): New macro.
8536 * target.c (update_current_target): Add
8537 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
8539 * remote.c (remote_set_circular_trace_buffer): New function.
8540 (init_remote_ops): Add it to vector.
8541 * tracepoint.h (struct trace_status): New field traceframes_created,
8542 change buffer_size and buffer_free to int.
8543 * tracepoint.c (circular_trace_buffer): New global.
8544 (start_tracing): Send values of disconnected tracing and circular
8545 trace buffer settings.
8546 (set_circular_trace_buffer): New function.
8547 (parse_trace_state): Handle total space and frames created.
8548 (trace_status_command): Display total space and total frames
8550 (trace_save): Write out new status values.
8551 (parse_trace_status): Set traceframe_count, traceframes_created,
8552 buffer_free and buffer_size to -1 by default.
8553 (_initialize_tracepoint): New setshow for circular-trace-buffer.
8554 * NEWS: Mention the circular trace buffer option.
8556 2010-03-18 Tom Tromey <tromey@redhat.com>
8558 * infcmd.c (finish_command_continuation): Wrap print_return_value
8561 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8563 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
8564 DIE has a name before creating the associated partial symbol.
8565 (read_func_scope): Emit a complaint if the subprogram does not
8566 have a name or when we can't extract the subprogram PC bounds.
8568 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
8570 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
8571 instead of selected frame architecture.
8573 2010-03-18 Pedro Alves <pedro@codesourcery.com>
8575 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
8576 a valid selected thread, and that it is not running.
8577 (advance_command): Ditto.
8578 (finish_command): Ditto.
8580 2010-03-17 Stan Shebs <stan@codesourcery.com>
8582 * ax-gdb.c (require_rvalue): Disallow non-scalars.
8584 * infcall.c: Include tracepoint.h.
8585 (call_function_by_hand): Disallow calls in tfind mode.
8586 * infcmd.c: Include tracepoint.h.
8587 (ensure_not_tfind_mode): New function.
8588 (continue_1): Call it.
8590 (jump_command): Ditto.
8591 (signal_command): Ditto.
8592 (advance_command): Ditto.
8593 (until_command): Ditto.
8594 (finish_command): Ditto.
8595 * tracepoint.h (disconnect_or_stop_tracing): Declare.
8597 * ax-gdb.h (struct axs_value): New field optimized_out.
8598 (gen_trace_for_var): Add gdbarch argument.
8599 * ax-gdb.c (gen_trace_static_fields): New function.
8600 (gen_traced_pop): Call it, add gdbarch argument.
8601 (gen_trace_for_expr): Update call to it.
8602 (gen_trace_for_var): Ditto, and report optimized-out variables.
8603 (gen_struct_ref_recursive): Check for optimized-out value.
8604 (gen_struct_elt_for_reference): Ditto.
8605 (gen_static_field): Pass gdbarch instead of expression, assume
8606 optimization if field not found.
8607 (gen_var_ref): Set the optimized_out flag.
8608 (gen_expr): Error on optimized-out variable.
8609 * tracepoint.c (collect_symbol): Handle struct-valued vars as
8610 expressions, skip optimized-out variables with computed locations.
8611 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
8612 erroring out if location expression missing.
8613 (loclist_tracepoint_var_ref): Don't error out here.
8615 2010-03-17 Tom Tromey <tromey@redhat.com>
8617 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
8618 DWARF data is available.
8620 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
8622 * symfile.c (generic_load): Reset breakpoints after loading.
8624 2010-03-17 Tom Tromey <tromey@redhat.com>
8626 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
8628 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8630 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
8631 create_breakpoint call, adjust the parameters.
8633 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8634 Chandru <chandru@in.ibm.com>
8636 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
8637 * valarith.c (value_subscripted_rvalue): Suppress error if
8638 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
8640 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
8642 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
8644 2010-03-16 Joel Brobecker <brobecker@adacore.com>
8646 * ada-tasks.c (task_command_1): Check that the task ptid is valid
8647 before doing the associated thread switch.
8649 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
8651 * MAINTAINERS: Update my email address.
8653 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
8655 Simplify MI breakpoint setting.
8657 * breakpoint.c (break_command_really): Make nonstatic and
8659 (create_breakpoint): ...this. Rename prior function by this name
8661 (create_breakpoint_sal): ...this.
8662 (create_breakpoints): Rename to...
8663 (create_breakpoints_sal): ...this.
8664 (set_breakpoint): Remove.
8665 * breakpoint.h: Adjust to above changes.
8666 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8668 2010-03-15 Stan Shebs <stan@codesourcery.com>
8670 * ax-gdb.c: Include cp-support.h.
8671 (find_field): Remove.
8672 (gen_primitive_field): New function.
8673 (gen_struct_ref_recursive): New function.
8674 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8676 (gen_static_field): New function.
8677 (gen_struct_elt_for_reference): New.
8678 (gen_namespace_elt): New.
8679 (gen_maybe_namespace_elt): New.
8680 (gen_aggregate_elt_ref): New.
8681 (gen_expr): Add OP_SCOPE, display opcode name in error message.
8683 2010-03-15 Tom Tromey <tromey@redhat.com>
8685 * dwarf2read.c (die_needs_namespace): Also return 0 for
8688 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
8691 * cp-support.h: Added char *declaration element to using_direct
8693 (cp_add_using): Added char *declaration argument.
8694 (cp_add_using_directive): Ditto.
8695 (cp_lookup_symbol_imports): made extern.
8696 * cp-namespace.c: Updated with the above changes.
8697 * dwarf2read.c (read_import_statement): Ditto.
8698 (read_namespace): Ditto.
8699 (read_import_statement): Support import declarations.
8700 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8702 Added support for 'declaration_only' search.
8703 (cp_lookup_symbol_namespace): Attempt to search for the name as
8704 is before consideration of imports.
8705 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8706 search at every block level search.
8707 Now takes language argument.
8708 (lookup_symbol_aux): Updated.
8710 2010-03-15 Tom Tromey <tromey@redhat.com>
8712 * c-exp.y (name_not_typename): Add 'operator' clause.
8714 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
8716 * configure.ac: Exit if ${gdb_target_obs}" is not set.
8717 * configure: Regenerate.
8719 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8721 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8722 and ".sdynbss". Update the comment.
8724 2010-03-15 Jie Zhang <jie@codesourcery.com>
8726 * MAINTAINERS: Update my email address.
8728 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8730 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8732 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8734 * charset.c [USE_WIN32API]: Include <windows.h>.
8735 (_initialize_charset): Correct type of w32_host_default_charset.
8737 2010-03-14 Pedro Alves <pedro@codesourcery.com>
8739 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8741 2010-03-12 Tom Tromey <tromey@redhat.com>
8744 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8745 in a lexical block does not need a namespace.
8746 (new_symbol) <DW_TAG_variable>: Put extern variables on
8747 list_in_scope in all cases.
8749 2010-03-12 Stan Shebs <stan@codesourcery.com>
8751 * ax-gdb.c (gen_expr): Add shift expressions.
8752 (gen_expr_binop_rest): Ditto.
8754 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
8756 * buildsym.c (finish_block): Reset using_directives pointer
8757 after block initialization.
8759 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
8761 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8762 * i386-tdep.c (i386_word_names): Likewise.
8764 2010-03-12 Pedro Alves <pedro@codesourcery.com>
8766 * target.c (memory_xfer_partial): Don't use the stack cache if
8767 inspecting trace frames.
8768 * tracepoint.c (finish_tfind_command): Invalidate the target
8771 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8773 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8774 for the PIC displacement, print also the displacement value.
8775 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
8777 2010-03-10 Kevin Buettner <kevinb@redhat.com>
8779 * remote-mips.c (close_ports, mips_initialize_cleanups)
8780 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8781 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8782 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8783 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8784 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8785 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8786 comments describing each of these functions.
8787 (mips_enter_debug, mips_exit_debug, common_open)
8788 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8789 blank line after the comment describing the function.
8791 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8793 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8794 parameter displacementp. Update comment.
8795 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8796 element exists. Return if svr4_exec_displacement was not successful.
8799 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8800 Daniel Jacobowitz <dan@codesourcery.com>
8802 * solib-svr4.c (read_program_header): Support type == -1 to read
8803 all program headers.
8804 (read_program_headers_from_bfd): New function.
8805 (svr4_static_exec_displacement): Remove and move the comment ...
8806 (svr4_exec_displacement): ... here. Remove variable found. New
8807 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8808 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8809 targets using read_program_headers_from_bfd. Remove the call of
8810 svr4_static_exec_displacement.
8812 2010-03-10 Tom Tromey <tromey@redhat.com>
8814 * dwarf2read.c (struct pubnames_header): Remove.
8815 (_PUBNAMES_HEADER): Remove.
8816 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8817 (struct aranges_header): Remove.
8818 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8819 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8820 (PUBNAMES_SECTION): Remove.
8821 (ARANGES_SECTION): Remove.
8822 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8823 (dwarf2_build_psymtabs): Remove dead code.
8824 (dwarf2_build_psymtabs_easy): Remove.
8826 2010-03-10 Tom Tromey <tromey@redhat.com>
8828 * elfread.c (elf_symfile_read): Don't call
8829 dwarf2_build_frame_info.
8830 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8831 (struct dwarf2_per_objfile) <objfile>: New field.
8832 (dwarf2_has_info): Now idempotent. Set objfile field.
8833 (dwarf2_read_section): Check and set readin field. Call
8835 (dwarf2_build_psymtabs): Don't read all sections.
8836 (read_type_comp_unit_head): Read types section.
8837 (create_debug_types_hash_table): Likewise.
8838 (init_cu_die_reader): Add asserts.
8839 (process_type_comp_unit): Add assert.
8840 (dwarf2_build_psymtabs_hard): Read info section.
8841 (load_partial_comp_unit): Add assert.
8842 (create_all_comp_units): Read info section.
8843 (load_full_comp_unit): Likewise.
8844 (dwarf2_ranges_read): Read ranges section.
8845 (dwarf2_record_block_ranges): Add assert.
8846 (dwarf2_read_abbrevs): Read abbrev section.
8847 (read_indirect_string): Read str section.
8848 (dwarf_decode_line_header): Read line section.
8849 (read_signatured_type_at_offset): Read types section.
8850 (dwarf_decode_macros): Read macinfo section.
8851 (dwarf2_symbol_mark_computed): Read loc section.
8852 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8853 dwarf2_build_frame_info.
8854 (dwarf2_build_frame_info): Unconditionally set
8855 dwarf2_frame_objfile_data on the objfile.
8856 * configure.ac: Check for posix_madvise.
8857 * config.in, configure: Rebuild.
8859 2010-03-10 Tom Tromey <tromey@redhat.com>
8861 * xcoffread.c (xcoff_start_psymtab): Update.
8862 (xcoff_end_psymtab): Update.
8863 * psymtab.c (allocate_psymtab): Remove dead code.
8864 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8866 * mdebugread.c (parse_partial_symbols): Update.
8867 (new_psymtab): Likewise.
8868 * dwarf2read.c (process_psymtab_comp_unit): Update.
8869 (psymtab_to_symtab_1): Update.
8870 * dbxread.c (start_psymtab): Update.
8871 (end_psymtab): Likewise.
8873 2010-03-10 Tom Tromey <tromey@redhat.com>
8875 * xcoffread.c: Include psymtab.h.
8876 (xcoff_sym_fns): Update.
8877 * symtab.h (struct partial_symbol): Remove.
8878 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8879 (struct partial_symtab): Remove.
8880 (PSYMTAB_TO_SYMTAB): Remove.
8881 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8882 (find_pc_sect_psymtab): Remove.
8883 (find_pc_sect_symtab_via_partial): Declare.
8884 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8885 (find_main_psymtab): Remove.
8886 (find_main_filename): Declare.
8887 (fixup_psymbol_section): Remove.
8888 (fixup_section): Declare.
8889 * symtab.c: Include psymtab.h.
8890 (lookup_symtab): Use lookup_symtab method.
8891 (lookup_partial_symtab): Remove.
8892 (find_pc_sect_psymtab_closer): Remove.
8893 (find_pc_sect_psymtab): Remove.
8894 (find_pc_sect_symtab_via_partial): New function.
8895 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8896 (fixup_section): No longer static.
8897 (fixup_psymbol_section): Remove.
8898 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8899 (lookup_global_symbol_from_objfile): Likewise.
8900 (lookup_symbol_aux_psymtabs): Remove.
8901 (lookup_symbol_aux_quick): New function.
8902 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8903 (lookup_partial_symbol): Remove.
8904 (basic_lookup_transparent_type_quick): New function.
8905 (basic_lookup_transparent_type): Use it.
8906 (find_main_psymtab): Remove.
8907 (find_main_filename): New function.
8908 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8909 (find_line_symtab): Use expand_symtabs_with_filename method.
8910 (output_partial_symbol_filename): New function.
8911 (sources_info): Use map_partial_symbol_filenames.
8912 (struct search_symbols_data): New type.
8913 (search_symbols_file_matches): New function.
8914 (search_symbols_name_matches): Likewise.
8915 (search_symbols): Use expand_symtabs_matching method.
8916 (struct add_name_data): Rename from add_macro_name_data.
8917 (add_macro_name): Update.
8918 (add_partial_symbol_name): New function.
8919 (default_make_symbol_completion_list): Use
8920 map_partial_symbol_names.
8921 (struct add_partial_symbol_name): New type.
8922 (maybe_add_partial_symtab_filename): New function.
8923 (make_source_files_completion_list): Use
8924 map_partial_symbol_filenames.
8925 (expand_line_sal): Use expand_symtabs_with_filename method.
8926 * symmisc.c: Include psymtab.h.
8927 (print_objfile_statistics): Use print_stats method.
8928 (dump_objfile): Use dump method.
8929 (dump_psymtab, maintenance_print_psymbols)
8930 (maintenance_info_psymtabs, maintenance_check_symtabs)
8931 (extend_psymbol_list): Remove.
8932 * symfile.h (struct quick_symbol_functions): New struct.
8933 (struct sym_fns) <qf>: New field.
8934 (sort_pst_symbols): Remove.
8935 (increment_reading_symtab): Declare.
8936 * symfile.c: Include psymtab.h.
8937 (compare_psymbols, sort_pst_symbols): Remove.
8938 (psymtab_to_symtab): Remove.
8939 (increment_reading_symtab): New function.
8940 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8942 (set_initial_language): Use find_main_filename.
8943 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8944 (free_named_symtabs): Remove unused code.
8945 (start_psymtab_common, add_psymbol_to_bcache)
8946 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8948 * stack.c: Include psymtab.h, symfile.h.
8949 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8950 * source.h (psymtab_to_fullname): Don't declare.
8951 * source.c: Include psymtab.h.
8952 (select_source_symtab): Use find_last_source_symtab method.
8953 (forget_cached_source_info): Use forget_cached_source_info
8955 (find_and_open_source): No longer static.
8956 (psymtab_to_fullname): Remove.
8957 * somread.c: Include psymtab.h.
8958 (som_sym_fns): Update.
8959 * psympriv.h: New file.
8960 * psymtab.h: New file.
8961 * psymtab.c: New file.
8962 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8963 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8964 * objfiles.c: Include psymtab.h.
8965 (objfile_relocate1): Use relocate method.
8966 (objfile_has_partial_symbols): Use has_symbols method.
8967 * mipsread.c: Include psymtab.h.
8968 (ecoff_sym_fns): Update.
8969 * mi/mi-cmd-file.c: Include psymtab.h.
8970 (print_partial_file_name): New function.
8971 (mi_cmd_file_list_exec_source_files): Use
8972 map_partial_symbol_filenames.
8973 * mdebugread.c: Include psympriv.h.
8974 * machoread.c: Include psympriv.h.
8975 (macho_sym_fns): Update.
8976 * m2-exp.y (yylex): Use lookup_symtab.
8977 * elfread.c: Include psympriv.h.
8978 (elf_sym_fns): Update.
8979 * dwarf2read.c: Include psympriv.h.
8980 * dbxread.c: Include psympriv.h.
8981 (aout_sym_fns): Update.
8982 * cp-support.c: Include psymtab.h.
8983 (read_in_psymtabs): Remove.
8984 (make_symbol_overload_list_qualified): Use
8985 expand_symtabs_for_function method.
8986 * coffread.c: Include psympriv.h.
8987 (coff_sym_fns): Update.
8988 * blockframe.c: Include psymtab.h.
8989 (find_pc_partial_function): Use find_pc_sect_symtab method.
8990 * ada-lang.h (ada_update_initial_language): Update.
8991 * ada-lang.c: Include psymtab.h.
8992 (ada_update_initial_language): Remove 'main_pst' argument.
8993 (ada_lookup_partial_symbol): Remove.
8994 (struct ada_psym_data): New type.
8995 (ada_add_psyms): New function.
8996 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8997 (struct add_partial_datum): New type.
8998 (ada_add_partial_symbol_completions): New function.
8999 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
9000 (ada_exception_support_info_sniffer): Update.
9001 * Makefile.in (SFILES): Add psymtab.c.
9002 (COMMON_OBS): Add psymtab.o.
9003 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
9005 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
9007 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
9009 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
9012 * cp-namespace.c (cp_add_using): Deleted.
9013 (cp_add_using_directive): Use obstack allocations.
9014 Merged the function cp_add_using into this one.
9015 Added 'struct obstack *' argument.
9016 (cp_scan_for_anonymous_namespaces): Updated.
9017 * cp-support.h: Updated.
9018 * dwarf2read.c (read_import_statement): Updated.
9019 (read_namespace): Updated.
9021 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
9023 * windows-nat.c (cygwin_conv_path): Remove old macro.
9025 2010-03-10 Pedro Alves <pedro@codesourcery.com>
9027 * breakpoint.c (condition_command): Handle watchpoint conditions.
9028 (is_hardware_watchpoint): Add comment.
9029 (is_watchpoint): New.
9030 (update_watchpoint): Don't reparse the watchpoint's condition
9033 (watchpoint_check): Use it.
9034 (bpstat_check_watchpoint): Handle it.
9035 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
9036 conditions in a frame where it makes sense.
9037 (watch_command_1): Store the innermost block of the condition
9039 (delete_breakpoint): Delete the watchpoint condition expression.
9040 * breakpoint.h (struct bp_location) <cond>: Update comment.
9041 (struct breakpoint): New field `cond_exp_valid_block'.
9043 2010-03-09 Joel Brobecker <brobecker@adacore.com>
9045 Adjust handling of Ada DIEs after dwarf2_physname patch.
9046 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
9048 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
9049 Pierre Muller <muller@ics.u-strasbg.fr>
9051 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
9052 from/to posix/win32.
9053 (windows_make_so): Use non-Cygwin 1.7 specific function.
9054 (windows_create_inferior): Make sure that cygallargs points to
9055 original args in non Cygwin 1.7. case.
9057 2010-03-09 Michael Snyder <msnyder@vmware.com>
9059 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
9060 after target_read_memory to get host byte order.
9061 (i386_process_record): Ditto.
9063 2010-03-09 Keith Seitz <keiths@redhat.com>
9065 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
9066 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
9067 print out const or volatile qualifiers, too.
9068 (c_type_print_args): Add parameters show_artificial and language.
9069 Skip artificial parameters when requested.
9070 Use the appropriate language printer.
9071 (c_type_print_varspec): Tell c_type_print_args to skip artificial
9072 parameters and pass language_c.
9073 * dwarf2read.c (die_list): New file global.
9074 (struct partial_die_info): Update comments for name field.
9075 (pdi_needs_namespace): Renamed to ...
9076 (die_needs_namespace): ... this. Rewrite.
9077 (dwarf2_linkage_name): Remove.
9078 (add_partial_symbol): Do not predicate the call to
9079 partial_die_full_name based on pdi_needs_namespace.
9080 Remove call to cp_check_possible_namespace_symbols and associated
9082 (guess_structure_name): Do not inspect child subprogram DIEs.
9083 (dwarf2_fullname): Update comments.
9084 Use die_needs_namespace to assist in computing the name.
9085 (read_func_scope): Use dwarf2_name to get the DIE's name.
9086 Use dwarf2_physname to get the "linkage name" of the DIE.
9087 (dwarf2_add_member_field): Use dwarf2_physname instead of
9088 dwarf2_linkage_name.
9089 (read_structure_type): For structs and classes, set TYPE_NAME, too.
9090 (determine_class): Remove.
9091 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
9093 (new_symbol): Unconditionally call dwarf2_name.
9094 Compute the "linkage name" using dwarf2_physname.
9095 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
9096 When determining to scan for anonymous C++ namespaces, ignore
9098 (dwarf2_physname): New function.
9099 (dwarf2_full_name): Move content to new function and call
9101 (dwarf2_compute_name): "New" function.
9102 (_initialize_dwarf2_read): Initialize die_list.
9103 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
9105 (gnu_v3_print_method_ptr): Use the physname for virtual methods
9106 without a demangled name.
9107 Print out type information for non-virtual methods.
9108 * linespec.c (decode_line_1): Force ANY string using "::" (or
9109 "." for java) to use decode_compound, and clean up any stray quoting.
9110 If we found a file symtab, re-evaluate whether the remainder is_quoted.
9111 (decode_compound): Stop consuming at an open parenthesis.
9112 Keep template parameters.
9113 Keep any overload information.
9114 Keep keywords like "const".
9115 Remove paren_pointer.
9116 Move is_quoted check from set_flags to here.
9117 Remove #if 0 code from 2000. Ten years is long enough.
9118 (find_method): Before comparing symbol names, canonicalize the string
9120 If a specific overload is requested, find it. Otherwise throw an error.
9121 (find_method_overload_end): New function.
9122 (set_flags): Remove.
9123 (decode_compound): Assume that parentheses are matched.
9125 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
9127 * linespec.c (decode_line_1): Keep important keywords like
9128 "const" and "volatile".
9129 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
9130 * typeprint.h (c_type_print_args): Add declaration.
9131 * ui-file.c (do_ui_file_obsavestring): New function.
9132 (ui_file_obsavestring): New function.
9133 * ui-file.h (ui_file_obsavestring): Add declaration.
9134 * valops.c (find_overload_match): Resolve the object to
9136 If the object is a data member, search the object for the member
9137 and return with staticp set.
9138 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
9139 Do not attempt to extract a function name from non-function types.
9140 If the extracted function name and the original name are the same,
9141 we don't have a C++ method.
9143 From Jan Kratochvil <jan.kratochvil@redhat.com>:
9144 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
9146 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
9147 and arguments from symbol lookups.
9148 * ax-gdb.c (gen_expr): Likewise.
9149 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
9150 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
9151 lookup_possible_namespace_symbol): Likewise.
9152 * cp-support.c (read_in_psymtabs): Likewise.
9153 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
9154 * language.h (la_lookup_symbol_nonlocal): Likewise.
9155 * scm-valprint.c (scm_inferior_print): Likewise.
9156 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
9157 * solib-svr.c (elf_lookup_lib): Likewise.
9158 * solib.c (show_auto_solib_add): Likewise.
9159 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
9160 * symmisc.c (maintenance_check_symtabs): Likewise.
9161 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
9162 lookup_symbol_aux_local, lookup_symbol_aux_block,
9163 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
9164 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
9165 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
9166 basic_lookup_transparent_type, find_main_psymtab,
9167 lookup_block_symbol): Likewise.
9168 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
9169 lookup_symbol_global, lookup_symbol_aux_block,
9170 lookup_symbol_partial_symbol, lookup_block_symbol,
9171 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
9173 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
9175 * python/python-internal.h: Include symtab.h.
9177 2010-03-09 Joel Brobecker <brobecker@adacore.com>
9178 Pierre Muller <muller@ics.u-strasbg.fr>
9180 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
9181 * p-valprint.c (pascal_val_print): Remove undeed block and fix
9184 2010-03-08 Tom Tromey <tromey@redhat.com>
9186 * breakpoint.c (breakpoint_1): Add "QUIT".
9188 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
9189 Pedro Alves <pedro@codesourcery.com>
9191 * solib.c (solib_find): Replace extension if
9192 solib_symbols_extension is set in the target gdbarch.
9193 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
9194 solib_symbols_extension to "sym".
9195 * gdbarch.sh (solib_symbols_extension): New variable.
9196 (pstring): New function.
9197 * gdbarch.h, gdbarch.c: Regenerate.
9199 2010-03-08 Tom Tromey <tromey@redhat.com>
9203 * utils.c: Include main.h.
9204 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
9205 (defaulted_query): Use default answer if `batch_flag'.
9206 * main.h (batch_flag): Declare.
9207 * main.c (batch_flag): New global.
9208 (captured_main): Remove 'batch'. Update.
9210 2010-03-08 Kevin Buettner <kevinb@redhat.com>
9212 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
9215 * remote-mips.c (rockhopper_ops): New target_ops struct.
9216 (MON_ROCKHOPPER): New mips_monitor_type.
9217 (read_hex_value): New function.
9218 (mips_request): Send 8-byte values with a 'T' packet. Read the
9219 packet argument as a string and use read_hex_value to parse it.
9220 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
9221 (rockhopper_open): New function.
9222 (mips_wait): Read the PC, FP and SP fields as strings. Use
9223 read_hex_value to parse them and mips_set_register to commit them.
9224 (mips_set_register): New function.
9225 (mips_fetch_registers): Do not cast register value to "unsigned"
9226 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
9227 (mips_store_registers): Use a 'T' packet to set registers when
9228 using MON_ROCKHOPPER.
9229 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
9230 and expect the total to be printed before the entry address.
9231 (_initialize_remote_mips): Initialize and add rockhopper_ops.
9233 2010-03-08 Kevin Buettner <kevinb@redhat.com>
9235 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
9236 Change return value to int. Store value fetched in location
9237 addressed by `val'. Use function's return value as success
9238 or failure indicator. Adjust all callers.
9240 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
9242 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
9244 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9245 Hui Zhu <teawater@gmail.com>
9247 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
9248 tmp_to_stopped_data_address.
9249 (record_open): Reset tmp_to_stopped_by_watchpoint and
9250 tmp_to_stopped_data_address.
9251 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
9252 to_stopped_data_address.
9254 2010-03-08 Hui Zhu <teawater@gmail.com>
9256 * i386-tdep.c (i386_process_record): Initialize regnum.
9258 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9260 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
9261 Do not warn on ".gnu.liblist" and ".gnu.conflict".
9263 2010-03-08 Joel Brobecker <brobecker@adacore.com>
9265 Memory error when reading wrong core file.
9266 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
9267 errors while reading the inferior memory, and return zero if
9268 an exception was raised.
9270 2010-03-07 Michael Snyder <msnyder@vmware.com>
9272 * record.c (record_restore): Rename tmpu8 to rectype.
9274 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
9275 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
9277 (i386_record_push): Rename local tmpulongest to addr.
9279 (i386_process_record): Rename local tmpulongest to addr.
9281 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
9284 Rename local variable tmpu8 to opcode8 and regnum.
9286 2010-03-07 Joel Brobecker <brobecker@adacore.com>
9288 * remote.c (remote_get_ada_task_ptid): New function.
9289 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
9291 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
9293 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
9294 block. Define helper macros to reduce ifdefs in code.
9295 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
9296 size. Call unadorned GetModuleFileNameEx rather than
9297 GetModuleFileNameEx*.
9298 (windows_make_so): Use __PMAX to denote maximum buffer size and
9299 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
9301 (get_image_name): Use __PMAX to denote maximum buffer size.
9302 (handle_load_dll): Likewise.
9303 (windows_pid_to_exec_file): Likewise.
9304 (windows_create_inferior): Add many accommodations for older Cygwin and
9306 (bad_GetModuleFileNameExW): Control inclusion of this function based on
9307 __USEWIDE conditional.
9308 (bad_GetModuleFileNameExA): Likewise.
9309 (_initialize_loadable): Just use real function names without the dyn_
9310 part since they are defined earlier.
9312 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
9313 Tom Tromey <tromey@redhat.com>
9315 * utils.c (host_char_to_target): Add 'gdbarch' argument.
9316 (parse_escape): Likewise.
9317 * python/py-utils.c (unicode_to_target_string): Update.
9318 (unicode_to_target_python_string): Update.
9319 (target_string_to_unicode): Update.
9320 * printcmd.c (printf_command): Update.
9321 * p-exp.y (yylex): Update.
9322 * objc-exp.y (yylex): Update.
9323 * mi/mi-parse.c: Include charset.h.
9324 (mi_parse_escape): New function.
9325 (mi_parse_argv): Use it.
9326 * jv-exp.y (yylex): Update.
9327 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
9329 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
9330 * gdbarch.sh (auto_charset, auto_wide_charset): New.
9331 * gdbarch.c: Rebuild.
9332 * gdbarch.h: Rebuild.
9333 * defs.h (parse_escape): Update.
9334 * cli/cli-setshow.c: Include arch-utils.h.
9335 (do_setshow_command): Update.
9336 * cli/cli-cmds.c (echo_command): Update.
9337 * charset.h (target_charset, target_wide_charset): Update.
9338 * charset.c: Include arch-utils.h.
9339 (target_charset_name): Default to "auto".
9340 (target_wide_charset_name): Likewise.
9341 (show_target_charset_name): Handle "auto".
9342 (show_target_wide_charset_name): Likewise.
9343 (be_le_arch): New global.
9344 (set_be_le_names): Add 'gdbarch' argument.
9345 (validate): Likewise. Don't call set_be_le_names.
9346 (set_charset_sfunc, set_host_charset_sfunc)
9347 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
9349 (target_charset): Add 'gdbarch' argument.
9350 (target_wide_charset): Likewise. Remove 'byte_order' argument.
9351 (auto_target_charset_name): New global.
9352 (default_auto_charset, default_auto_wide_charset): New functions.
9353 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
9354 for target charsets. Copy result of nl_langinfo. Use GetACP if
9356 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
9357 remove 'byte_order' argument. Update.
9358 (classify_type): Likewise.
9359 (c_emit_char): Update.
9360 (c_printchar): Update.
9361 (c_printstr): Update.
9362 (c_get_string): Update.
9363 (evaluate_subexp_c): Update.
9364 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
9366 * python/python.c (gdbpy_target_charset): New function.
9367 (gdbpy_target_wide_charset): Likewise.
9368 (GdbMethods): Update.
9371 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9373 * symfile.c (build_section_addr_info_from_objfile): Do not mask
9374 off high address bits.
9376 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9378 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
9379 address as UnsignedLongLong, not LongLong.
9381 2010-03-05 Kevin Buettner <kevinb@redhat.com>
9382 Pedro Alves <pedro@codesourcery.com>
9384 * remote-mips.c (gdbthread.h): Include.
9385 (remote_mips_ptid): Declare.
9386 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
9387 (common_open): Set inferior_ptid, add it as an inferior, and
9388 as a thread too. Delete FIXME comment regarding start_remote().
9389 (mips_close): Invoke generic_mourn_inferior().
9390 (mips_kill): Make sure that target_mourn_inferior is invoked.
9391 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
9392 it's now invoked from mips_close().
9393 (mips_load): Don't null out inferior_ptid. Don't call
9394 clear_symtab_users().
9395 (mips_thread_alive, mips_pid_to_str): New functions.
9396 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
9397 to_thread_alive and to_pid_to_str operations.
9399 2010-03-04 Tom Tromey <tromey@redhat.com>
9401 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
9402 in DWARF 3 and later.
9403 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
9405 2010-03-04 Keith Seitz <keiths@redhat.com>
9407 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
9408 If the filename portion of the linespec was quoted, recheck the
9409 remainder for additional quoting.
9410 (locate_first_half): Skip over completer chars, too.
9412 2010-03-04 Tom Tromey <tromey@redhat.com>
9414 * printcmd.c (printf_command): Pass dummy argument to
9417 2010-03-04 Doug Evans <dje@google.com>
9419 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
9422 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
9424 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9426 * breakpoint.c (update_watchpoint): Create a sentinel location if
9427 the software watchpoint isn't watching any memory.
9428 (breakpoint_address_bits): Skip dummy software watchpoint locations.
9430 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9432 * utils.c (fputs_maybe_filtered): Check if there's already a top
9433 level interpreter before dereferencing it. If there isn't one,
9434 don't paginate either.
9436 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9438 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
9439 the state right when single stepping.
9440 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
9441 Get the next PC along with the instruction state.
9442 (thumb_get_next_pc): Remove.
9443 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
9445 2010-03-04 Hui Zhu <teawater@gmail.com>
9447 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
9449 2010-03-03 Pedro Alves <pedro@codesourcery.com>
9451 * utils.c (fputs_maybe_filtered): Always disable pagination if the
9452 top level interpreter is MI.
9454 2010-03-03 Stan Shebs <stan@codesourcery.com>
9456 * remote.c (remote_download_tracepoint): Iterate over locations.
9457 * tracepoint.c (validate_actionline): Ditto.
9458 (encode_actions): Add location argument.
9459 (trace_dump_command): Check all locations to see if stepping
9462 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
9463 Eli Zaretskii <eliz@gnu.org>
9465 * NEWS: Add X86 general purpose registers section.
9467 2010-03-03 Tom Tromey <tromey@redhat.com>
9470 * varobj.c (install_new_value): Handle case where new print_value
9473 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
9476 * printcmd.c (printf_command): Print end of format string using
9479 2010-03-02 Tom Tromey <tromey@redhat.com>
9481 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
9482 * defs.h (read_command_lines_1): Add missing 'void'.
9483 * cli/cli-script.c (recurse_read_control_structure): Add missing
9485 (read_next_line): Likewise.
9486 (read_command_lines_1): Likewise.
9488 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9490 * spu-tdep.c (spu_analyze_prologue): Track instruction to
9491 store backchain as part of prologue.
9493 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
9495 * progspace.c (update_address_spaces): Update inferior address spaces
9498 2010-03-02 Doug Evans <dje@google.com>
9500 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
9501 lowpc,highpc args to addrmap_set_empty.
9503 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
9505 * amd64-tdep.c (amd64_byte_names): New.
9506 (amd64_word_names): Likewise.
9507 (amd64_dword_names): Likewise.
9508 (amd64_pseudo_register_name): Likewise.
9509 (amd64_pseudo_register_read): Likewise.
9510 (amd64_pseudo_register_write): Likewise.
9511 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
9512 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
9513 set_gdbarch_pseudo_register_write and
9514 set_tdesc_pseudo_register_name. Don't call
9515 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
9517 * i386-tdep.c (i386_num_mmx_regs): Removed.
9518 (i386_num_pseudo_regs): Likewise.
9519 (i386_byte_names): New.
9520 (i386_word_names): Likewise.
9521 (i386_byte_regnum_p): Likewise.
9522 (i386_word_regnum_p): Likewise.
9523 (i386_mmx_regnum_p): Updated.
9524 (i386_pseudo_register_name): Make it global. Handle byte and
9525 word pseudo-registers.
9526 (i386_pseudo_register_read): Likewise.
9527 (i386_pseudo_register_write): Likewise.
9528 (i386_pseudo_register_type): Handle byte, word and dword
9530 (i386_register_reggroup_p): Don't include pseudo
9531 registers, except for MXX, in any register groups. Don't
9532 include pseudo byte, word, dword registers in general_reggroup.
9533 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
9534 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
9535 pseudo-registers after word pseudo-registers. Call
9536 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
9538 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
9539 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
9541 (i386_byte_regnum_p): New.
9542 (i386_word_regnum_p): Likewise.
9543 (i386_dword_regnum_p): Likewise.
9544 (i386_pseudo_register_name): Likewise.
9545 (i386_pseudo_register_read): Likewise.
9546 (i386_pseudo_register_write): Likewise.
9548 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9550 * target-descriptions.c (tdesc_type): Remove
9551 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9552 (tdesc_predefined_types): Likewise.
9553 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
9554 if flag name is empty.
9555 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
9557 * features/i386/32bit-core.xml: Define i386_eflags.
9558 * features/i386/64bit-core.xml: Likewise.
9560 * features/i386/32bit-sse.xml: Define i386_mxcsr.
9561 * features/i386/64bit-sse.xml: Likewise.
9563 * features/i386/amd64-linux.c: Regenerated.
9564 * features/i386/amd64.c: Likewise.
9565 * features/i386/i386-linux.c: Likewise.
9566 * features/i386/i386.c: Likewise.
9568 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
9570 * gdbtypes.c (append_composite_type_field_raw): New.
9571 (append_composite_type_field_aligned): Use the new function.
9572 * gdbtypes.h (append_composite_type_field_raw): Declare.
9573 * target-descriptions.c (struct tdesc_type_field): Add start and end.
9574 (struct tdesc_type_flag): New type.
9575 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
9576 kind. Add size to u.u. Add u.f for flags.
9577 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
9578 (tdesc_free_type): Likewise.
9579 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
9580 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
9581 (tdesc_add_bitfield, tdesc_add_flag): New.
9582 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
9583 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
9584 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
9585 current_type. Add current_type_size and current_type_is_flags.
9586 (tdesc_start_union): Clear the new fields.
9587 (tdesc_start_struct, tdesc_start_flags): New.
9588 (tdesc_start_field): Handle struct fields, including bitfields.
9589 (field_attributes): Make type optional. Add start and end.
9590 (union_children): Rename to struct_union_children.
9591 (union_attributes): Rename to struct_union_attributes. Add optional
9593 (flags_attributes): New.
9594 (feature_children): Add struct and flags.
9595 * features/gdb-target.dtd: Add flags and struct to features.
9596 Make field type optional. Add field start and end.
9598 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9600 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
9601 (amd64_linux_read_description): Likewise.
9602 (_initialize_amd64_linux_nat): Set to_read_description to
9603 amd64_linux_read_description.
9605 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
9606 (amd64_linux_register_name): Removed.
9607 (amd64_linux_register_type): Likewise.
9608 (amd64_linux_core_read_description): New.
9609 (amd64_linux_init_abi): Set target description to
9610 tdesc_amd64_linux if needed. Support orig_rax in target
9611 description. Don't call set_gdbarch_register_name nor
9612 set_gdbarch_register_type. Call
9613 set_gdbarch_core_read_description.
9614 (_initialize_amd64_linux_tdep): Call
9615 initialize_tdesc_amd64_linux.
9617 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
9619 * amd64-tdep.c: Include "features/i386/amd64.c".
9620 (amd64_register_names): Removed.
9621 (amd64_register_name): Likewise.
9622 (amd64_register_type): Likewise.
9623 (amd64_init_abi): Set num_core_regs and register_names. Set
9624 target description to tdesc_amd64 if needed. Don't call
9625 set_gdbarch_register_name nor set_gdbarch_register_type.
9626 (_initialize_amd64_tdep): New.
9628 * i386-linux-nat.c (i386_linux_read_description): New.
9629 (_initialize_i386_linux_nat): Set to_read_description to
9630 i386_linux_read_description.
9632 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
9633 (i386_linux_register_name): Removed.
9634 (i386_linux_core_read_description): New.
9635 (i386_linux_read_description): Likewise.
9636 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
9637 Set target description to tdesc_i386_linux if needed. Support
9638 orig_eax. Set register_reggroup_p. Call
9639 set_gdbarch_core_read_description.
9640 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
9642 * i386-linux-tdep.h (tdesc_i386_linux): New.
9644 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
9647 * i386-tdep.c: Include "features/i386/i386.c".
9648 (i386_register_names): Make it const.
9649 (i386_mmx_names): Likewise.
9650 (i386_num_register_names): Removed.
9651 (i386_register_name): Likewise.
9652 (i386_eflags_type): Likewise.
9653 (i386_mxcsr_type): Likewise.
9654 (i386_sse_type): Likewise.
9655 (i386_register_type): Likewise.
9656 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9657 (i386_pseudo_register_name): New.
9658 (i386_pseudo_register_type): Likewise.
9659 (i386_mmx_type): Make it static.
9660 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
9661 I387_NUM_REGS. Set num_core_regs and register_names. Don't
9662 call set_gdbarch_register_name nor set_gdbarch_register_type.
9663 Set register_reggroup_p. Set target description to tdesc_i386
9664 if needed. Call set_tdesc_pseudo_register_type,
9665 set_tdesc_pseudo_register_name and tdesc_use_registers.
9666 (_initialize_i386_tdep): Call initialize_tdesc_i386.
9667 initialize_tdesc_x86_64.
9669 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9670 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
9671 register_names, tdesc and register_reggroup_p.
9672 (I386_NUM_FREGS): Removed.
9673 (i386_eflags_type): Likewise.
9674 (i386_mxcsr_type): Likewise.
9675 (i386_mmx_type): Likewise.
9676 (i386_sse_type): Likewise.
9677 (i386_register_name): Likewise.
9678 (i386_regnum): Add I386_MXCSR_REGNUM.
9679 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9681 * i387-tdep.h (I387_NUM_REGS): New.
9683 * regformats/i386/i386-linux.dat: Generated.
9684 * regformats/i386/i386.dat: Likewise.
9685 * regformats/i386/amd64-linux.dat: Likewise.
9686 * regformats/i386/amd64.dat: Likewise.
9688 * regformats/reg-i386-linux.dat: Removed.
9689 * regformats/reg-i386.dat: Likewise.
9690 * regformats/reg-x86-64-linux.dat: Likewise.
9691 * regformats/reg-x86-64.dat: Likewise.
9693 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
9695 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9696 cygwin_conv_path API rather than the deprecated
9697 cygwin_conv_to_full_posix_path.
9699 (GetModuleFileNameExA): Undefine for Cygwin.
9700 (GetModuleFileNameExW): Define for Cygwin.
9701 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9702 Call GetModuleFileNameExW and convert path to POSIX using
9704 (windows_make_so): Always define p. Drop unused variable m.
9705 Don't use Win32 functions to check file existance, rather use
9706 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
9707 Use canonicalize_file_name to get full path.
9708 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9709 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
9710 use correct target buffer size in call to WideCharToMultiByte.
9711 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9712 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9713 (windows_create_inferior): Convert all paths and arguments to wchar_t
9714 and use CreateProcessW on Cygwin.
9715 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9716 (bad_GetModuleFileNameExA): Undefine for Cygwin.
9717 (bad_GetModuleFileNameExW): Define for Cygwin.
9718 (_initialize_loadable): Load GetModuleFileNameExW into
9719 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
9721 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
9724 * python/py-frame.c (frapy_read_var): Add block argument and logic
9725 to cope with user provided blocks.
9727 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9729 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9732 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
9734 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9735 (COMMON_OBS): ... to here since it's used unconditionally.
9736 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9739 2010-02-26 David Daney <ddaney@caviumnetworks.com>
9741 * mips-linux-tdep.c: Update struct sigframe comments.
9742 (SIGFRAME_CODE_OFFSET): Delete macro.
9743 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9745 (mips_linux_n32n64_sigframe_init): Same.
9747 2010-02-26 Kevin Buettner <kevinb@redhat.com>
9749 * remote-mips.c (mips_load): Don't use pseudo-register when
9750 invalidating regcache.
9752 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9754 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9756 2010-02-26 Pedro Alves <pedro@codesourcery.com>
9758 * NEWS: Add "New targets" section, and mention ARM Symbian
9761 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
9763 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9764 add ADDR_SIZE member.
9765 (allocate_piece_closure): Update.
9766 (copy_pieced_value_closure): Likewise.
9767 (dwarf2_evaluate_loc_desc): Likewise.
9768 (read_pieced_value): Use DWARF address size instead of
9769 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9771 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
9772 Tom Tromey <tromey@redhat.com>
9774 * python/py-type.c (typy_lookup_typename): Add in block argument.
9775 If provided restrict lookup to specified blocks.
9776 (gdbpy_lookup_type): Likewise.
9777 (typy_lookup_type): Likewise.
9779 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9784 * arm-symbian-tdep.c: New.
9785 * configure.tgt (arm*-*-symbianelf*): New target.
9786 (*-*-symbianelf*): New OS.
9787 * osabi.c (gdb_osabi_names): Add Symbian.
9788 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9789 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9790 (ALLDEPFILES): Add arm-symbian-tdep.c.
9792 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9794 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9796 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9798 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9800 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
9801 Tom Tromey <tromey@redhat.com>
9802 Thiago Jung Bauermann <bauerman@br.ibm.com>
9804 * python/python.c (_initialize_python): Call
9805 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9806 gdbpy_initialize_blocks.
9807 * python/python-internal.h: Declare struct symbol, block and
9808 symtab_and_line. Declare block_object_type and
9810 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9811 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9812 (symbol_to_symbol_object, block_to_block_object)
9813 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9814 (gdbpy_initialize_blocks ): Declare.
9815 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9816 (frapy_select): Add methods.
9817 (frapy_read_var): Add symbol branch.
9818 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9820 (SUBDIR_PYTHON_SRCS): Likewise.
9821 (py-symbol.o): New rule.
9822 (py-symtab.o): Likewise.
9823 (py-block.o): Likewise.
9824 * python/py-symbol.c: New file.
9825 * python/py-symtab.c: Likewise.
9826 * python/py-block.c: Likewise.
9828 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9832 * inferior.h (prepare_for_detach): Declare.
9833 (struct inferior) <detaching>: New field.
9834 * infrun.c (prepare_for_detach): New.
9835 (handle_inferior_event) <random signal>: Don't stop if detaching.
9836 * target.c (target_detach): Call prepare_for_detach.
9838 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9840 Per-process displaced stepping queue.
9842 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9843 (displaced_step_gdbarch, displaced_step_closure,
9844 (displaced_step_original, displaced_step_copy): Move globals to
9846 (struct displaced_step_inferior_state): ... new structure.
9847 (displaced_step_inferior_states): New global.
9848 (get_displaced_stepping_state, add_displaced_stepping_state)
9849 (remove_displaced_stepping_state, infrun_inferior_exit): New
9851 (displaced_step_clear): Add displaced_step_inferior_state
9852 parameter, and adjust to handle it.
9853 (displaced_step_clear_cleanup): Parameter is now a
9854 displaced_step_inferior_state. Adjust.
9855 (displaced_step_prepare): Adjust.
9856 (displaced_step_fixup, displaced_step_fixup)
9857 (infrun_thread_ptid_changed, resume): Adjust.
9858 (init_wait_for_inferior): Don't call displaced_step_clear.
9859 (infrun_thread_stop_requested): Rewrite.
9860 (_initialize_infrun): Install infrun_inferior_exit as
9861 inferior_exit observer.
9863 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9865 * inferior.h (ptid_match): Declare.
9866 * infrun.c (ptid_match): New.
9867 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9868 (handle_notification): Add debug output.
9869 * linux-nat.c (ptid_match): Delete.
9871 2010-02-24 David S. Miller <davem@davemloft.net>
9873 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9874 * syscalls/sparc-linux.xml: New.
9875 * syscalls/sparc64-linux.xml: New.
9876 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9877 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9878 (sparc32_linux_get_syscall_number): New function.
9879 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9880 syscall number fetcher.
9881 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9882 (sparc64_linux_get_syscall_number): New function.
9883 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9884 syscall number fetcher.
9886 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9890 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9891 * inferior.c (add_inferior_silent): Notify inferior_added
9893 (delete_inferior_1): Notify inferior_removed observer.
9894 (exit_inferior_1): Pass inferior, not pid, to observer.
9895 (inferior_appeared): Likewise.
9896 (add_inferior_with_spaces): New.
9897 (add_inferior_command): Use the above.
9898 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9901 * inflow.c (inflow_inferior_exit): Likewise.
9902 * jit.c (jit_inferior_exit_hook): Likewise.
9904 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9906 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9907 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9908 (report_initial_inferior): New.
9909 (mi_inferior_removed): Register the above. Make sure
9910 inferior_added observer is called on the first inferior.
9911 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9912 inferior number, not pid.
9913 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9915 * mi/mi-main.c (current_context): New.
9916 (proceed_thread_callback): Use typed closure.
9917 Proceed everything if pid is 0. Most implementation split into
9918 (proceed_thread): ... this.
9919 (run_one_inferior): New.
9920 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9921 Adjust for multiexec behaviour.
9922 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9923 (mi_cmd_execute): Handle the 'thread-group' option here.
9924 Do some extra checks.
9925 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9927 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9929 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9931 Make -exec-run a proper MI commands.
9933 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9934 * mi/mi-cmds.c (mi_cmds): Adjust.
9935 * mi/mi-main.c (mi_cmd_exec_run): New.
9937 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9938 Stan Shebs <stan@codesourcery.com>
9940 * tracepoint.h (set_traceframe_number)
9941 (cleanup_restore_current_traceframe): Declare.
9942 * tracepoint.c (set_traceframe_number): New.
9943 (struct current_traceframe_cleanup): New.
9944 (do_restore_current_traceframe_cleanup)
9945 (restore_current_traceframe_cleanup_dtor)
9946 (make_cleanup_restore_current_traceframe): New.
9947 * infrun.c: Include tracepoint.h.
9948 (fetch_inferior_event): Switch out and in of tfind mode.
9950 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9952 * breakpoint.c (breakpoint_init_inferior): Also delete
9953 bp_shlib_event breakpoints.
9954 * solib-frv.c (enable_break): Remove call to
9955 remove_solib_event_breakpoints.
9956 * solib-svr4.c (enable_break): Ditto.
9957 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9958 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9959 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9960 * solib-spu.c (spu_enable_break): Ditto.
9962 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9964 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9966 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9968 * varobj.c (varobj_update): Avoid non-constants in initializers.
9970 2010-02-23 Tom Tromey <tromey@redhat.com>
9972 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9973 handle big-endian values.
9974 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9976 2010-02-22 Pedro Alves <pedro@codesourcery.com>
9981 * breakpoint.c (insert_bp_location): If inserting the read
9982 watchpoint failed, fallback to an access watchpoint.
9983 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9984 if the value changed, if not watching the same memory for writes.
9985 (watchpoint_locations_match): Add comment.
9986 (update_global_location_list): Copy the location's watchpoint type.
9987 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9988 handle read watchpoints here.
9989 (i386_insert_watchpoint): Read watchpoints aren't supported.
9990 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9992 * target.h (target_insert_watchpoint): Update description.
9994 2010-02-19 Tom Tromey <tromey@redhat.com>
9996 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9997 * m2-typeprint.c (m2_print_type): Update.
9998 * gdbtypes.c (recursive_dump_type): Update.
9999 (copy_type_recursive): Update.
10000 * c-typeprint.c (c_type_print_varspec_prefix): Update.
10001 (c_type_print_base): Update.
10002 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
10004 (struct cplus_struct_type) <ntemplate_args>: Remove.
10005 <struct template_arg>: Remove.
10006 <is_dynamic>: Move earlier.
10007 (TYPE_TEMPLATE_ARGS): Remove.
10008 (TYPE_NTEMPLATE_ARGS): Remove.
10009 (TYPE_TEMPLATE_ARG): Remove.
10011 2010-02-19 Tom Tromey <tromey@redhat.com>
10013 PR c++/8693, PR c++/9496:
10014 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
10015 * c-exp.y (lex_one_token): Rename from yylex. Don't call
10016 write_dollar_variable. Don't try to classify NAME tokens.
10017 (token_and_value): New type.
10018 (token_fifo, popping, name_obstack): New globals.
10019 (classify_name): New function.
10020 (classify_inner_name): Likewise.
10022 (VARIABLE): Now has type sval.
10023 (exp : VARIABLE): Call write_dollar_variable.
10024 (qualified_name): Use TYPENAME, not typebase. Add production for
10025 multiple "::" instances.
10026 (variable): Use name_not_typename.
10027 (qualified_type): Remove.
10028 (typebase): Update.
10030 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10032 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
10033 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
10034 found by bfd_get_section_by_name.
10035 * symfile.h (struct section_addr_info) <sectindex>: New comment.
10037 2010-02-19 Joel Brobecker <brobecker@adacore.com>
10039 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
10040 7.0 section" into "Changes in 7.1".
10042 2010-02-19 Joel Brobecker <brobecker@adacore.com>
10044 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
10045 * version.in: Bump version to 7.1.50.20100219-cvs.
10047 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
10049 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
10050 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
10052 2010-02-17 Tom Tromey <tromey@redhat.com>
10054 * NEWS: Add Python API Improvements section.
10056 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
10058 * NEWS: Correct typo.
10060 2010-02-17 Tom Tromey <tromey@redhat.com>
10062 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
10064 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10066 * symfile.c (build_section_addr_info_from_objfile): Include sections
10067 only if they are SEC_ALLOC or SEC_LOAD.
10069 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
10072 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
10073 of ULONGEST for address size.
10075 2010-02-17 Tom Tromey <tromey@redhat.com>
10077 * NEWS: Add C++ improvements section.
10079 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
10081 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
10082 PyThreadState_Swap): Avoid "statement with no effect" warning.
10084 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10086 * solib-svr4.c (enable_break <target_auxv_search>): New variable
10087 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
10089 2010-02-17 Tristan Gingold <gingold@adacore.com>
10090 Petr Hluzin <petr.hluzin@gmail.com>
10092 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
10093 gdb_assert. Fix info->size for SIG prologue.
10095 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10097 * infcmd.c (show_inferior_tty_command): Check for NULL.
10098 Correct output message.
10100 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10102 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
10103 FUNCTION contains parentheses. Improve removal of a trailing
10106 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10108 * gcore.c (do_bfd_delete_cleanup): New function.
10109 (gcore_command): Use it. Discard the cleanup after success.
10110 (gcore_copy_callback): Delete dead code.
10112 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10114 * symfile.c (addr_info_make_relative): Always use
10115 find_lowest_section.
10117 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
10119 * NEWS: Added entry for namespace fixes.
10121 2010-02-15 Tom Tromey <tromey@redhat.com>
10123 * dwarf2read.c (guess_structure_name): Allocate name on the
10126 2010-02-15 Tom Tromey <tromey@redhat.com>
10128 * c-typeprint.c (c_type_print_base): Reverse order of test.
10130 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10132 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
10133 initialize it from ELF BFD. Extend the prelink condition by it.
10135 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10137 * defs.h (parse_pid_to_attach): New.
10138 * utils.c (parse_pid_to_attach): New.
10139 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
10140 * gnu-nat.c (gnu_attach): Likewise.
10141 * nto-procfs.c (procfs_attach): Likewise.
10142 * procfs.c (procfs_attach): Likewise.
10143 * windows-nat.c (windows_attach): Likewise.
10144 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
10145 * inf-ttrace.c (inf_ttrace_attach): Likewise.
10146 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
10149 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
10151 * MAINTAINERS: Add myself for write after approval privileges.
10153 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10155 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
10158 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10160 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
10161 only if INFO_VERBOSE.
10163 2010-02-12 Tomas Holmberg <th@virtutech.com>
10165 * mi/mi-main.c: Added the --reverse flag to the following MI
10166 commands: exec-continue, exec-finish, exec-next, exec-step,
10167 exec-next-instruction, exec-step-instruction. This is to
10168 support reverse execution over the MI interface to gdb.
10170 2010-02-12 Pedro Alves <pedro@codesourcery.com>
10172 * tracepoint.c (_initialize_tracepoint): Specify that the address
10173 range of `tfind outsize' is exclusive, and that the address range
10174 of `tfind range' is inclusive, in the commands' help strings.
10176 2010-02-12 Joel Brobecker <brobecker@adacore.com>
10178 Spurious "dll not found" error messages on x64-windows.
10179 * windows-nat.c: Add include of complaints.h.
10180 (handle_unload_dll): Change dll-not-found error into a complaint.
10182 2010-02-12 Pedro Alves <pedro@codesourcery.com>
10184 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
10185 bp_tracepoint and bp_fast_tracepoint, not
10186 bp_loc_software_breakpoint.
10187 (update_global_location_list): Tracepoints are never duplicates of
10190 2010-02-12 Pedro Alves <pedro@codesourcery.com>
10192 * breakpoint.c (break_command_really): Change return type to int.
10193 Return false if no breakpoint was created, true otherwise.
10194 (trace_command): Don't set the tracepoint count if no tracepoint
10196 (ftrace_command): Ditto.
10197 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
10198 created in the breakpoints table.
10200 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10201 Ulrich Weigand <uweigand@de.ibm.com>
10203 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
10205 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10207 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
10208 the offset value isn't of integral type.
10210 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10212 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
10215 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10217 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
10218 non-subscriptable types.
10219 * valarith.c (binop_types_user_defined_p): New, abstracted out
10221 (binop_user_defined_p): ... this.
10222 * value.h (binop_types_user_defined_p): Declare.
10224 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10226 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
10227 Merge uploaded TSVs before merging uploaded tracepoints.
10229 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10231 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
10233 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
10235 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
10236 whitespace character after a dot in comment.
10237 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
10239 (list_args_or_locals): For the 'all' (that is
10240 -stack-list-variables) case, always output list of tuples.
10241 Output 'arg' field if variable is argument.
10243 2010-02-10 Tom Tromey <tromey@redhat.com>
10245 * parser-defs.h (parser_debug): Declare.
10246 * parse.c (_initialize_parse): Install "debug parser" set/show
10248 (parser_debug): New global.
10249 (show_parserdebug): New function.
10250 * c-exp.y (c_parse): Set yydebug.
10252 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
10254 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
10255 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10256 (tdesc_predefined_types): Add i387_ext, i386_eflags and
10258 (tdesc_find_type): New.
10259 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
10260 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10262 * target-descriptions.h (tdesc_find_type): New.
10264 2010-02-10 Michael Snyder <msnyder@vmware.com>
10266 * gdb-gdb.py: Comment fix.
10268 2010-02-09 Tristan Gingold <gingold@adacore.com>
10270 * machoread.c (macho_symfile_relocate): New function.
10271 (macho_sym_fns): Use macho_symfile_relocate instead of
10272 default_symfile_relocate.
10273 (macho_oso_data): New type.
10274 (current_oso): New variable.
10275 (macho_add_oso_symfile): Do not compute section_addr_info, but
10276 instead set vma of sections.
10277 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
10278 Set and clear current_oso.
10280 2010-02-09 Joel Brobecker <brobecker@adacore.com>
10282 Wrong type description for tagged type parameter.
10283 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
10284 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
10285 reference to a tagged type.
10287 2010-02-09 Tristan Gingold <gingold@adacore.com>
10289 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
10290 brothers of the parent.
10292 2010-02-08 Tom Tromey <tromey@redhat.com>
10296 * valops.c (search_struct_field): Make 'name' const.
10297 (search_struct_method): Likewise.
10298 (find_method_list): Make 'method' const.
10299 (value_struct_elt): Make 'name' and 'err' const.
10300 (value_find_oload_method_list): Make 'method' const.
10301 (find_overload_match): Make 'name' const.
10302 * eval.c (evaluate_subexp_standard): New locals function,
10304 <OP_FUNCALL>: Handle OP_SCOPE specially.
10306 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10308 * infrun.c (handle_inferior_event): Do not look up regcache
10309 for exited processes.
10311 2010-02-08 Chris Moller <moller@mollerware.com>
10314 * valarith.c (value_ptrdiff): Added a test for a zero type length,
10315 warn if found, and assume length = 1.
10317 2010-02-08 Chris Moller <cmoller@redhat.com>
10320 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
10321 (cp_print_static_field) Fix use of obstacks.
10323 2010-02-08 Pedro Alves <pedro@codesourcery.com>
10325 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
10326 resumed LWPs as resumed.
10327 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
10328 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
10329 of throwing an internal error. If an LWP of a process we're not
10330 waiting for reports a signal, don't force collecting a SIGSTOP,
10331 and if it was breakpoint hit in non-stop mode, cancel it. Don't
10332 go through all LWPs cancelling breakpoints in non-stop mode.
10333 (resume_stopped_resumed_lwps): New.
10334 (linux_nat_wait): Use it.
10336 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
10338 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
10339 i386/amd64 and i386/amd64-linux.
10340 (i386/i386-expedite): New.
10341 (i386/i386-linux-expedite): Likewise.
10342 (i386/amd64-expedite):Likewise.
10343 (i386/amd64-linux-expedite): Likewise.
10344 ($(outdir)/i386/i386-linux.dat): Likewise.
10345 ($(outdir)/i386/amd64.dat): Likewise.
10346 ($(outdir)/i386/amd64-linux.dat): Likewise.
10348 * features/i386/32bit-core.xml: New.
10349 * features/i386/32bit-linux.xml: Likewise.
10350 * features/i386/32bit-sse.xml: Likewise.
10351 * features/i386/64bit-core.xml: Likewise.
10352 * features/i386/64bit-linux.xml: Likewise.
10353 * features/i386/64bit-sse.xml: Likewise.
10354 * features/i386/i386-linux.xml: Likewise.
10355 * features/i386/i386.xml: Likewise.
10356 * features/i386/amd64-linux.xml: Likewise.
10357 * features/i386/amd64.xml: Likewise.
10358 * features/i386/i386-linux.c: Likewise.
10359 * features/i386/i386.c: Likewise.
10360 * features/i386/amd64-linux.c: Likewise.
10361 * features/i386/amd64.c: Likewise.
10363 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
10366 * cp-support.h: Added char* alias element to using_direct data
10368 (cp_add_using): Added char* alias argument.
10369 (cp_add_using_directive): Ditto.
10370 * cp-namespace.c: Updated with the above changes.
10371 (cp_lookup_symbol_imports): Check for aliases.
10372 * dwarf2read.c (read_import_statement): Figure out local alias
10373 for the import and pass it on to cp_add_using.
10374 (read_namespace): Pass alias argument to cp_add_using.
10376 2010-02-05 Hui Zhu <teawater@gmail.com>
10378 * defs.h (gdb_bfd_errmsg): New extern.
10379 * exec.c (exec_file_attach): Change bfd_errmsg to
10381 * utils.c (AMBIGUOUS_MESS1): New macro.
10382 (AMBIGUOUS_MESS2): New macro.
10383 (gdb_bfd_errmsg): New function.
10385 2010-02-04 Doug Evans <dje@google.com>
10387 * solib-svr4.c (enable_break): Add comment.
10389 2010-02-04 Anthony Green <green@moxielogic.com>
10391 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
10394 2010-02-04 Tom Tromey <tromey@redhat.com>
10396 * valops.c (search_struct_field): Account for
10397 value_embedded_offset. Fix check for virtual base past the end of
10398 the object. Use value_copy when making a slice of the value.
10400 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10403 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
10404 only if gdb_stdout is a tty.
10406 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10408 * target-descriptions.c: Include "osabi.h".
10409 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
10412 2010-02-04 Tristan Gingold <gingold@adacore.com>
10414 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
10415 (macho_symtab_read): Adjust calls to macho_add_oso.
10416 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
10417 (macho_symfile_read): Adjust call to macho_oso_symfile.
10418 (macho_new_init): Move this function after declarations.
10419 (macho_symfile_init): Ditto.
10420 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
10421 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
10423 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
10425 Include MI command in remotelog.
10427 * mi/mi-main.c (mi_execute_command): Call target_log_command.
10429 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10431 * remote.c (remote_state): Remove gdbarch.
10432 (init_remote_state): Don't set gdbarch.
10433 (remote_query_supported): Pass target_gdbarch instead of
10434 rs->gdbarch to gdbarch_qsupported.
10436 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10438 * gdbarch.sh: Add qsupported.
10440 * gdbarch.c: Regenerated.
10441 * gdbarch.h: Likewise.
10443 * remote.c (remote_state): Add gdbarch.
10444 (init_remote_state): Set gdbarch.
10445 (remote_query_supported): Support gdbarch_qsupported.
10447 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
10449 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
10450 __FreeBSD_kernel_version.
10452 2010-02-03 Tristan Gingold <gingold@adacore.com>
10454 * symfile.h (struct sym_fns): Add sym_relocate field.
10455 (default_symfile_relocate): New prototype.
10456 (symfile_relocate_debug_section): First argument is now an objfile.
10457 * symfile.c (default_symfile_relocate): Rename from
10458 symfile_relocate_debug_section, first argument is now an objfile.
10459 (symfile_relocate_debug_section): New function.
10460 * coffread.c (coff_sym_fns): Set sym_relocate field.
10461 * somread.c (som_sym_fns): Ditto.
10462 * mipsread.c (ecoff_sym_fns): Ditto.
10463 * machoread.c (macho_sym_fns): Ditto.
10464 * elfread.c (elf_sym_fns): Ditto.
10465 * dwarf2read.c (dwarf2_read_section): Ditto.
10466 * xcoffread.c (xcoff_sym_fns): Ditto.
10467 * dbxread.c (aout_sym_fns): Ditto.
10468 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
10469 (elfstab_build_psymtabs): Ditto.
10471 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10473 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
10475 2010-02-02 Tom Tromey <tromey@redhat.com>
10477 * valops.c (value_cast_structs): Try downcasting using the RTTI
10480 2010-02-02 Tom Tromey <tromey@redhat.com>
10482 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
10483 (gnuv2_baseclass_offset): Now static.
10484 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
10485 * gnu-v2-abi.h: Remove.
10487 2010-02-02 Tom Tromey <tromey@redhat.com>
10489 * m2-typeprint.c (m2_record_fields): Don't use
10490 TYPE_DECLARED_TYPE.
10491 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
10492 (struct main_type) <flag_declared_class>: New field.
10493 (struct cplus_struct_type) <declared_type>: Remove.
10494 <ntemplate_args>: Move earlier.
10495 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
10496 (DECLARED_TYPE_TEMPLATE): Remove.
10497 (TYPE_DECLARED_TYPE): Remove.
10498 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
10499 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
10500 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
10501 TYPE_DECLARED_TYPE.
10503 2010-02-02 Tom Tromey <tromey@redhat.com>
10505 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
10506 * valops.c (search_struct_field): Compute nbases after calling
10508 (check_field): Call CHECK_TYPEDEF.
10509 * cp-valprint.c (cp_print_value): Pass correct address to
10510 baseclass_offset. Fix check for virtual base past the end of the
10511 object. Don't offset address passed to cp_print_value_fields or
10512 apply_val_pretty_printer.
10513 (cp_print_value_fields): Fix call to val_print.
10514 (cp_print_value_fields_rtti): New function.
10515 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
10516 * p-valprint.c (pascal_object_print_value_fields): Fix call to
10518 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
10520 * language.h (struct language_defn) <la_val_print>: Document.
10521 * c-lang.h (cp_print_value_fields_rtti): Declare.
10523 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10526 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10527 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
10528 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10530 2010-02-01 Michael Matz <matz@suse.de>
10531 Daniel Jacobowitz <dan@codesourcery.com>
10533 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
10534 functions use a frame pointer.
10536 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10538 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
10539 by a conditional setting DYN_ADDR. Use DYN_ADDR.
10540 * config/djgpp/fnchange.lst: Add translations for
10541 symbol-without-target_section.exp and symbol-without-target_section.c.
10543 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10545 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
10546 (remote_breakpoint_for_pc): Correct invalid_p check.
10547 * gdbarch.c: Regenerated.
10549 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10551 * arm-tdep.c (arm_find_mapping_symbol): New function, from
10553 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
10554 (extend_buffer_earlier): New function.
10555 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
10556 (arm_adjust_breakpoint_address): New function.
10557 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
10559 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10561 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
10562 (arm_linux_thumb2_le_breakpoint): New constants.
10563 (arm_linux_init_abi): Set thumb2_breakpoint and
10564 thumb2_breakpoint_size.
10565 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
10566 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
10567 Implement support for single stepping through IT blocks if
10568 a 32-bit Thumb breakpoint instruction is available.
10569 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
10570 is available, use it when needed.
10571 (arm_remote_breakpoint_from_pc): New function.
10572 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
10573 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
10574 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
10576 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10578 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
10579 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
10580 * gdbarch.c, gdbarch.h: Regenerated.
10581 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
10582 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
10583 gdbarch_remote_breakpoint_from_pc.
10585 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10587 * infrun.c (prepare_to_proceed): Handle other signals which might
10588 match a breakpoint.
10589 (handle_inferior_event): Move the check for unusual breakpoint
10592 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
10594 amd64 - function returning record with field straddling 2 registers.
10595 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
10596 a record of length <= 16 in which a field straddles the two
10599 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10601 Implement return values on amd64-windows.
10602 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
10603 (amd64_windows_return_value): New function.
10604 (amd64_windows_init_abi): Call set_gdbarch_return_value with
10605 amd64_windows_return_value.
10607 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10609 amd64-windows: 32 bytes allocated on stack by caller for integer
10610 parameter registers.
10611 * i386-tdep.h (struct gdbarch_tdep): Add new field
10612 integer_param_regs_saved_in_caller_frame.
10613 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10614 tdep->integer_param_regs_saved_in_caller_frame to 1.
10615 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
10616 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
10618 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10620 amd64-windows: memory args passed by pointer during function calls.
10621 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
10622 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
10623 where tdep->memory_args_by_pointer is non-zero.
10624 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10625 tdep->memory_args_by_pointer to 1.
10627 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10629 amd64-windows: Integer parameters in function calls.
10630 * i386-tdep.h (enum amd64_reg_class): New, moved here from
10632 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
10633 call_dummy_integer_regs, and classify.
10634 * amd64-tdep.h (amd64_classify): Add declaration.
10635 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
10636 (amd64_reg_class): Delete, moved to i386-tdep.h.
10637 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
10638 Replace call to amd64_classify by call to tdep->classify.
10639 (amd64_push_arguments): Get the list of registers to use for
10640 passing integer parameters from the gdbarch tdep structure,
10641 rather than using a hardcoded one. Replace calls to amd64_classify
10642 by calls to tdep->classify.
10643 (amd64_push_dummy_call): Get the register number used for
10644 the "hidden" argument from tdep->call_dummy_integer_regs.
10645 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
10646 and tdep->call_dummy_integer_regs. Set tdep->classify.
10647 * amd64-windows-tdep.c: Add include of gdbtypes.h.
10648 (amd64_windows_dummy_call_integer_regs): New static global.
10649 (amd64_windows_classify): New function.
10650 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
10651 tdep->call_dummy_integer_regs and tdep->classify.
10653 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10655 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
10656 for the new regcache. All callers updated.
10657 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10658 (get_thread_arch_regcache): Do not set aspace here.
10659 * regcache.h (regcache_xmalloc): Update declaration.
10661 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10662 regcache_xmalloc updated.
10664 2010-01-28 Joel Brobecker <brobecker@adacore.com>
10666 Another -Wunused-function error in procfs.c (sparc-solaris)
10667 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
10668 Only define if SYS_syssgi is defined.
10669 (remove_dbx_link_breakpoint): Delete declaration. Move up.
10670 (dbx_link_addr, insert_dbx_link_bpt_in_file)
10671 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
10674 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
10676 * windows-nat.c (windows_initialization_done): New variable.
10677 (get_windows_debug_event): Issue error when process dies before
10678 completely initializing.
10679 (do_initial_windows_stuff): Set flag to indicate when we are done with
10680 the initial steps of attaching to the child.
10682 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10684 * symtab.h (struct symbol <symtab>): New comment on NULL values.
10686 2010-01-27 Doug Evans <dje@google.com>
10688 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10690 * breakpoint.c (bpstat_stop_status): Delete useless code.
10692 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10694 * printcmd.c (display_uses_solib_p): Remove variable section. Access
10695 objfile via SYMBOL_SYMTAB.
10697 2010-01-26 Tom Tromey <tromey@redhat.com>
10700 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10701 coerce_array on result.
10703 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10705 * cp-namespace.c (cp_lookup_symbol_namespace): Added
10706 search_parent argument.
10707 (cp_add_using): Initialize 'searched' field.
10708 (reset_directive_searched): New function.
10709 * cp-support.h: Add 'searched' field to using_direct struct.
10710 (cp_lookup_symbol_imports): Ditto.
10711 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10712 Perform recursive search.
10713 Implement non parent search.
10714 * valops.c (value_maybe_namespace_elt): Updated.
10716 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10719 * dwarf2read.c (read_lexical_block_scope): Create blocks for
10720 scopes which contain using directives even if they contain no
10722 * symtab.c (lookup_symbol_aux): Pass lowest level block to
10723 la_lookup_symbol_nonlocal.
10724 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10725 cp_lookup_symbol_namespace.
10726 (cp_lookup_symbol_namespace): Perform an import lookup at every
10728 (cp_lookup_symbol_imports): New function.
10729 (cp_lookup_symbol_in_namespace): New function.
10731 2010-01-25 Tom Tromey <tromey@redhat.com>
10734 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10737 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10739 * configure.ac: Only use host_os part when disabling TUI on osf.
10740 Use test to check variables, prefix strings with x.
10741 * configure: Regenerate.
10743 * solib-osf.c (osf_current_sos): Initialize tail.
10745 2010-01-25 gingold <gingold@adacore.com>
10747 * windows-nat.c (windows_continue): Use %x to print thread id.
10748 (get_windows_debug_event): Ditto.
10750 2010-01-22 Tom Tromey <tromey@redhat.com>
10753 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10754 type and arguments. Use smash_to_methodptr_type.
10755 (read_structure_type): Call quirk_gcc_member_function_pointer
10757 * gdbtypes.h (smash_to_methodptr_type): Declare.
10758 * gdbtypes.c (smash_to_methodptr_type): New function.
10759 (lookup_methodptr_type): Use it.
10761 2010-01-21 Tom Tromey <tromey@redhat.com>
10764 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10765 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10766 * glibc-tdep.c (find_minsym_and_objfile): Remove.
10767 (glibc_skip_solib_resolver): Use
10768 lookup_minimal_symbol_and_objfile.
10770 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
10772 * inflow.c (check_syscall): Guard by #if clause for GO32 and
10775 2010-01-20 Tom Tromey <tromey@redhat.com>
10777 PR backtrace/10770:
10778 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10779 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
10780 * dwarf2expr.c (new_dwarf_expr_context): Allocate
10781 dwarf_stack_values, not CORE_ADDRs.
10782 (execute_stack_op): Change DW_OP_div and comparison operators to
10783 use signed operands.
10785 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10787 Per-inferior args and tty and environment.
10789 * infcmd.c (inferior_args): Rename to ...
10790 (inferior_args_scratch): ... this.
10791 (inferior_io_terminal): Rename to ...
10792 (inferior_io_terminal_scratch): ... this.
10793 (inferior_argc, inferior_argv): Remove.
10794 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10795 inside current_inferior().
10796 (set_inferior_tty_command, show_inferior_tty_command): New.
10797 (get_inferior_args, set_inferior_args): Store inside
10798 current_inferior().
10799 (notice_args_set): Likewise and rename to...
10800 (set_args_command): ... this.
10801 (set_inferior_args_vector): Likewise.
10802 (notice_args_read): Rename to...
10803 (show_args_command): ...new.
10804 (tty_command): Remove.
10805 (run_command_1): Don't free old args, as they are freed by
10806 set_inferior_arg now.
10807 (run_no_args_command): Likewise.
10808 (inferior_environ): Remove.
10809 (run_command_1): Use environment of the current inferior.
10810 (environment_info, set_environment_command)
10811 (unset_environment_command, path_info, path_command): Likewise.
10812 (_initialize_infcmd): Adjust for function and variable renames.
10813 Do not init inferior_environ.
10814 * inferior.h (set_inferior_arg): Adjust prototype.
10815 (struct inferior): New fields args, argc, argv, terminal, environment.
10816 (inferior_environ): Remove declaration.
10817 * inferior.c (free_inferior): Free new fields.
10818 (add_inferior_silent): Initialize 'environment' field.
10819 * main.c (captured_main): Set arguments only after the initial
10820 inferior has been created. Set set_inferior_io_terminal,
10822 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10824 (_initialize_mi_cmd_env): Adjust for disappearance of global
10826 * solib.c (solib_find): Use environment of the current inferior.
10828 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10830 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10832 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10834 2010-01-20 Joel Brobecker <brobecker@adacore.com>
10836 Get rid of ada-lang.c:function_name_from_pc.
10837 * ada-lang.c: Add "stack.h" #include.
10838 (function_name_from_pc): Delete.
10839 (is_known_support_routine): Replace call to function_name_from_pc
10840 by call to find_frame_funname.
10841 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10843 2010-01-19 Tom Tromey <tromey@redhat.com>
10846 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10849 2010-01-19 Tom Tromey <tromey@redhat.com>
10851 * top.c (stop_sig, float_handler, do_nothing): Remove.
10853 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10855 * breakpoint.c (watchpoint_check): Check the call
10856 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10857 Extend the comment.
10858 * config/djgpp/fnchange.lst: Add translations for
10859 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10860 watchpoint-cond-gone-stripped.c.
10862 2010-01-19 Tom Tromey <tromey@redhat.com>
10865 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10866 into parent scope, and enumerator into grandparent scope.
10868 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10870 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10872 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10874 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10875 i[34567]86-*-solaris2.1[0-9]*.
10876 * configure.tgt: Likewise.
10878 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10880 * NEWS: Document the source command enhancement allowing it
10881 to load Python scripts. Document the "set/show script-extension"
10884 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10886 Add -Wunused-function to compile flags.
10887 * configure.ac: Add -Wunused-function to build_warnings.
10888 * configure: Regenerate.
10890 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10892 "delete" ada-lex.c:input function, not used.
10893 * ada-lex.l: #define YY_NO_INPUT.
10895 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10897 Delete free_named_symtabs and associated cleanup.
10898 * symfile.h (free_named_symtabs): Delete declaration.
10899 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10900 (cashier_psymtab): Comment function out.
10901 Delete declaration.
10902 (free_named_symtabs): Delete.
10903 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10904 * dbxread.c (end_psymtab): Likewise.
10905 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10906 * exec.c (exec_close_1): Ditto.
10907 * xcoffread.c (xcoff_end_psymtab): Likewise.
10909 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10911 * stack.c (print_block_frame_labels): Comment function out.
10913 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10915 Delete unused or undefined functions.
10916 * breakpoint.c (ep_parse_optional_filename): Delete.
10917 * dcache.c (dcache_write_line): Remove declaration.
10918 * infrun.c (build_infrun): Remove declaration.
10919 * tracepoint.c (tracepoint_save_command): Remove declaration.
10920 * linux-nat.c (init_lwp_list): Delete. No longer used.
10921 * event-loop.c (check_async_signal_handlers): Delete declaration.
10922 * infrun.c (init_execution_control_state): Delete.
10923 (proceed): Update comment to avoid mentioning
10924 init_execution_control_state.
10925 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10926 * ada-lang.c (ada_to_static_fixed_value): Delete.
10927 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10928 * cp-namespace.c (cp_copy_usings): Delete.
10929 * xml-syscall.c (xml_number_of_syscalls): Delete.
10930 * progspace.c (find_program_space_by_num): Delete.
10931 * inflow.c (handle_sigio): Delete declaration.
10932 * hppa-tdep.c (hppa_alignof): Delete.
10933 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10934 (mipsnbsd_core_osabi_sniffer): Delete.
10936 2010-01-18 Tom Tromey <tromey@redhat.com>
10939 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10940 (CONST_CAST): New tokens.
10941 (exp): Add new productions.
10942 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10944 (is_cast_operator): New function.
10945 (yylex): Handle cast operators specially.
10946 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10947 UNOP_REINTERPRET_CAST>: New cases.
10948 * expprint.c (print_subexp_standard): Likewise.
10949 (op_name_standard): Likewise.
10950 (dump_subexp_body_standard): Likewise.
10951 * parse.c (operator_length_standard): Likewise.
10952 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10953 UNOP_REINTERPRET_CAST.
10954 * gdbtypes.c (class_types_same_p): New function.
10955 (is_ancestor): Use it.
10956 (is_public_ancestor): New function.
10957 (is_unique_ancestor_worker): Likewise.
10958 (is_unique_ancestor): Likewise.
10959 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10960 (is_unique_ancestor): Declare.
10961 * valops.c (value_reinterpret_cast): New function.
10962 (dynamic_cast_check_1): Likewise.
10963 (dynamic_cast_check_2): Likewise.
10964 (value_dynamic_cast): Likewise.
10965 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10967 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10969 Fix build failure when building without Python support.
10970 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10973 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10975 Use XVS field type instead of doing a parallel lookup.
10976 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10977 if it is a reference type instead of doing a type lookup using
10978 the XVS field name.
10980 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10982 Trust PAD types instead of using PAD___XVS.
10983 * ada-lang.c (trust_pad_over_xvs): New static variable.
10984 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10985 parallel XVS type, follow the XVS type instead of the PAD type.
10986 (unwrap_value): Make sure that there is no parallel XVE type
10987 before returning the value as is.
10988 (set_ada_list, show_ada_list): New static variables.
10989 (set_ada_command, show_ada_command): New functions.
10990 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10991 Add new "set/show ada trust-PAD-over-XVS" setting.
10993 2010-01-18 Tom Tromey <tromey@redhat.com>
10994 Thiago Jung Bauermann <bauerman@br.ibm.com>
10996 Allow "source" to load python scripts.
10997 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10998 * python/python.c (source_python_script): New function.
10999 * python/python.h (source_python_script): Add declaration.
11000 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
11001 (script_ext_off, script_ext_soft, script_ext_strict)
11002 (script_ext_enums, script_ext_mode): New static constants.
11003 (show_script_ext_mode, find_and_open_script): New functions.
11004 (source_script): Enhance to handle Python scripts.
11005 (init_cli_cmds): Add set/show script-extension commands.
11007 2010-01-16 Stan Shebs <stan@codesourcery.com>
11009 * tracepoint.h (struct trace_status): Use unsigned long long
11011 * tracepoint.c (trace_status_command): Fix printf directive.
11012 (trace_save_command): Check fwrite returns, fix printf directive.
11013 (trace_filename): New global.
11014 (tfile_open): Set it, check read returns.
11015 (tfile_close): Free trace_filename.
11016 (tfile_get_traceframe_address): Check read returns.
11017 (tfile_trace_find): Ditto.
11018 (tfile_fetch_registers): Ditto.
11019 (tfile_xfer_partial): Ditto.
11020 (tfile_get_trace_state_variable_value): Ditto.
11022 2010-01-15 Stan Shebs <stan@codesourcery.com>
11024 Add trace file support.
11025 * tracepoint.h (enum trace_stop_reason): New enum.
11026 (struct trace_status): New struct.
11027 (parse_trace_status): Declare.
11028 (struct uploaded_tp): Move here from remote.c,
11029 add fields for actions.
11030 (struct uploaded_tsv): New struct.
11031 * tracepoint.c (tfile_ops): New target vector.
11032 (trace_fd): New global.
11033 (tfile_open): New function.
11034 (tfile_close): New function.
11035 (tfile_files_info): New function.
11036 (tfile_get_trace_status): New function.
11037 (tfile_get_traceframe_address): New function.
11038 (tfile_trace_find): New function.
11039 (tfile_fetch_registers): New function.
11040 (tfile_xfer_partial): New function.
11041 (tfile_get_trace_state_variable_value): New function.
11042 (init_tfile_ops): New function.
11043 (_initialize_tracepoint): Call it, add tfile target.
11044 (trace_status): New global.
11045 (current_trace_status): New function.
11046 (trace_running_p): Remove, change all users to get from
11047 current_trace_status()->running.
11048 (get_trace_status): Remove.
11049 (trace_status_command): Call target_get_trace_status directly,
11050 report more detail including tracing stop reasons.
11051 (trace_find_command): Always allow tfind on a file.
11052 (trace_find_pc_command): Ditto.
11053 (trace_find_tracepoint_command): Ditto.
11054 (trace_find_line_command): Ditto.
11055 (trace_find_range_command): Ditto.
11056 (trace_find_outside_command): Ditto.
11057 (trace_frames_offset, cur_offset): Declare as off_t.
11058 (trace_regblock_size): Rename from reg_size, update users.
11059 (parse_trace_status): New function.
11060 (tfile_interp_line): New function.
11061 (disconnect_or_stop_tracing): Ensure current trace
11062 status before asking what to do.
11063 (stop_reason_names): New global.
11064 (trace_save_command): New command.
11065 (get_uploaded_tp): Move here from remote.c.
11066 (find_matching_tracepoint): Ditto.
11067 (merge_uploaded_tracepoints): New function.
11068 (parse_trace_status): Use stop_reason_names.
11069 (_initialize_tracepoint): Define tsave command.
11070 * target.h (target_ops): New fields to_save_trace_data,
11071 to_upload_tracepoints, to_upload_trace_state_variables,
11072 to_get_raw_trace_data, change to_get_trace_status
11073 to take a pointer to a status struct.
11074 (target_save_trace_data): New macro.
11075 (target_upload_tracepoints): New macro.
11076 (target_upload_trace_state_variables): New macro.
11077 (target_get_raw_trace_data): New macro.
11078 * target.c (update_current_target): Add new methods, change
11079 signature of to_get_trace_status.
11080 * remote.c (hex2bin): Make globally visible.
11082 (remote_download_trace_state_variable): Download name also.
11083 (remote_get_trace_status): Update parameter, use
11084 parse_trace_status.
11085 (remote_save_trace_data): New function.
11086 (remote_upload_tracepoints): New function.
11087 (remote_upload_trace_state_variables): New function.
11088 (remote_get_raw_trace_data): New function.
11089 (remote_start_remote): Use them.
11090 (_initialize_remote_ops): Add operations.
11091 * ax-gdb.c: Include breakpoint.h.
11092 * breakpoint.c (create_tracepoint_from_upload): Use
11093 break_command_really, return tracepoint, warn about unimplemented
11095 * NEWS: Mention trace file addition.
11097 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11099 Fix compilation warning on gcc-3.4.
11100 * exec.c (print_section_info): Move the `displacement' variable
11101 initialization to its declaration.
11103 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11105 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
11108 2010-01-15 Eric Botcazou <botcazou@adacore.com>
11110 "info tasks" broken by typedefs in ATCB type definitions.
11111 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
11112 ada_check_typedef before retrieving the length of the type for
11115 2010-01-15 Joel Brobecker <brobecker@adacore.com>
11117 Do not use name-based lookup for unconstrained packed arrays.
11118 * ada-lang.c (find_parallel_type_by_descriptive_type):
11119 Limit the fallback to name-based lookups to the case where
11120 the type is a constrained packed array.
11122 2010-01-15 Joel Brobecker <brobecker@adacore.com>
11124 Enhance gdb-gdb.py to handle main_type.type_specific.
11125 * gdb-gdb.py: Print the type-specific part of struct main_type.
11127 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11129 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
11130 * configure: Regenerate.
11131 * config.in: Regenerate.
11132 * utils.c: Include sys/resource.h.
11133 (dump_core, can_dump_core): New.
11134 (internal_vproblem): Update the comment. Check can_dump_core while
11135 setting dump_core_p. Replace two abort calls by dump_core calls.
11137 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11138 Eli Zaretskii <eliz@gnu.org>
11140 * NEWS: Document the PIE support.
11142 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11144 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
11145 (check_is_pie_binary, _initialize_linux_tdep): Remove.
11147 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11149 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
11150 Replace exec_entry_point call by bfd_get_start_address.
11152 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11154 Support Valgrind attachments broken by the PIE support.
11155 * auxv.c: Include gdbcore.h.
11156 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
11157 parameters ops, object and annex. Remove their assertions.
11158 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
11159 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
11160 (memory_xfer_auxv): ... here.
11161 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
11163 * procfs.c (procfs_xfer_partial): Likewise.
11164 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
11165 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
11166 (svr4_solib_create_inferior_hook): Conditionalize the
11167 svr4_relocate_main_executable call.
11169 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11171 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
11172 target_section. Find SECT in current_target_sections, gdb_assert it.
11173 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
11175 * symtab.c (lookup_objfile_from_block): Return the binary file instead
11176 of separate debug info file.
11178 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11180 Support PIEs with no symfile_objfile.
11181 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
11182 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
11184 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11186 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
11188 (svr4_static_exec_displacement): ... a new function.
11189 (svr4_exec_displacement): New function.
11190 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
11191 new_offsets using alloca now. Remove variable old_chain and changed.
11192 Call objfile_relocate unconditionally now.
11194 2010-01-14 Doug Evans <dje@google.com>
11196 * gdbtypes.c (arch_flags_type): Fix comment.
11197 * gdbtypes.h (arch_composite_type): Fix comment.
11199 2009-01-14 Tristan Gingold <gingold@adacore.com>
11201 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
11202 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
11203 to symbol_file_add_from_bfd. Add OSO as separate objfile.
11204 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
11205 macho_add_oso_symfile.
11206 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
11208 2010-01-14 Joel Brobecker <brobecker@adacore.com>
11210 Tru64: Dead threads are never deleted.
11211 * dec-thread.c (dec_thread_ptid_is_alive): New function.
11212 (dec_thread_count_gdb_threads): Fix counter increment.
11213 (dec_thread_add_gdb_thread): Fix *listp increment.
11214 (resync_thread_list): Fix bug in deletion of dead threads that
11215 caused all threads to be deleted, instead of just the dead ones.
11217 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
11221 * python/python-internal.h: Add lazy_string_object_type
11223 (create_lazy_string_object, gdbpy_initialize_lazy_string)
11224 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
11225 * python/py-value.c (valpy_lazy_string): New function.
11226 (convert_value_from_python): Add lazy string conversion.
11227 * python/py-prettyprint.c (pretty_print_one_value): Check if
11228 return is also a lazy string.
11229 (print_string_repr): Add lazy string printing branch.
11230 (print_children): Likewise.
11231 * python/py-lazy-string.c: New file. Implement lazy strings.
11232 * python/python.c (_initialize_python): Call
11233 gdbpy_initialize_lazy_string.
11234 * varobj.c (value_get_print_value): Add lazy string printing
11235 branch. Account for encoding.
11236 * c-lang.c (c_printstr): Account for new encoding argument. If
11237 encoding is NULL, find encoding suited for type, otherwise use
11239 * language.h (language_defn): Add encoding argument.
11240 (LA_PRINT_STRING): Likewise.
11241 * language.c (unk_lang_printstr): Update to reflect new encoding
11242 argument to language_defn.
11243 * ada-lang.h (ada_printstr): Likewise.
11244 * c-lang.h (c_printstr): Likewise.
11245 * p-lang.h (pascal_printstr);
11246 * f-lang.c (f_printstr): Likewise.
11247 * m2-lang.c (m2_printstr): Likewise.
11248 * objc-lang.c (objc_printstr): Likewise.
11249 * p-lang.c (pascal_printstr): Likewise.
11250 * scm-lang.c (scm_printstr): Likewise.
11251 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
11253 * ada-valprint.c (ada_printstr): Likewise.
11254 * f-valprint.c (f_val_print): Likewise
11255 * m2-valprint.c (m2_val_print): Likewise.
11256 * p-valprint.c (pascal_val_print): Likewise.
11257 * expprint.c (print_subexp_standard): Likewise.
11258 * valprint.c (val_print_string): Likewise.
11259 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
11260 (SUBDIR_PYTHON_SRCS): Likewise.
11261 (py-lazy-string.o): New rule.
11263 2010-01-13 Doug Evans <dje@google.com>
11265 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
11266 uninitialized" warning from gcc on local `tree'.
11268 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
11270 Implement core awareness.
11272 * bcache.c (compare_ints): Remove
11273 (print_percentage): Use compare_positive_ints.
11274 * defs.h (compare_positive_ints): Declare.
11275 * linux-nat.h (struct lin_lwp): New field core.
11276 (linux_nat_core_of_thread_1): Declare.
11277 * linux-nat.c (add_lwp): Init the 'core' field.
11278 (linux_nat_wait_1): Record the core.
11279 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
11280 (linux_nat_add_target): Register the above.
11281 * linux-thread-db.c (update_thread_core): New.
11282 (thread_db_find_new_threads): Update core information for
11284 * remote.c (struct private_thread_info): New.
11285 (free_private_thread_info, demand_private_info): New.
11286 (PACKET_qXfer_threads, use_osdata_threads): New.
11287 (struct thread_item, threads_parsing_context
11288 (start_thread, end_thread, thread_attributes)
11289 (thread_children, threads_children, threads_elements): New.
11290 (remote_threads_info): Try qXfer:threads before anything
11292 (remote_protocol_packets): Register qXfer:threads.
11293 (remote_open_1): Init use_osdata_threads.
11294 (struct stop_reply): New field 'core'.
11295 (remote_parse_stop_reply): Parse core number.
11296 (process_stop_reply): Record core number.
11297 (remote_xfer_partial): Handle qXfer:threads.
11298 (remote_core_of_thread): New.
11299 (init_remote_ops): Register remote_core_of_thread.
11300 (_initialize_remote): Register qXfer:read.
11301 * target.c (target_core_of_thread): New
11302 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
11303 (struct target_ops): New field to_core_of_threads.
11304 (target_core_of_thread): Declare.
11305 * gdbthread.h (struct thread_info): New field private_dtor.
11306 * thread.c (print_thread_info): Report the core.
11307 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
11308 * utils.c (compare_positive_ints): New.
11309 * features/threads.dtd: New.
11310 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
11311 * mi/mi-main.c (struct collect_cores_data, collect_cores)
11312 (do_nothing, free_vector_of_osdata_items)
11313 (splay_tree_int_comparator, free_splay_tree): New.
11314 (print_one_inferior_data): Implemented printing of selected
11315 inferiors. Collect and print cores.
11316 (output_cores): New.
11317 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
11318 thread groups together with --available.
11320 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11322 * configure: Regenerate (for _STRUCTURED_PROC).
11324 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11326 Delete dead function.
11327 * ada-lang.c (extract_string): Delete. No longer used.
11329 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11331 Fix -Wunused warning in dec-thread.c.
11332 * dec-thread.c (dec_thread_count_gdb_threads)
11333 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
11335 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11337 * ada-valprint.c (ada_print_floating): Remove trailing space.
11339 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11341 Add support for DW_AT_GNAT_descriptive_type.
11342 * gdbtypes.h (enum type_specific_kind): New enum.
11343 (struct main_type) [type_specific_field]: New component.
11344 [type_specific]: Add new component "gnat_stuff".
11345 (struct gnat_aux_type): New type.
11346 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
11347 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
11348 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
11349 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
11350 (TYPE_SPECIFIC_FIELD): New macros.
11351 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
11352 type does not hold any cplus-specific data.
11353 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
11354 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
11355 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
11356 cplus-specific data.
11357 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
11358 Set new component TYPE_SPECIFIC_FIELD (type).
11359 (gnat_aux_default): New constant.
11360 (allocate_gnat_aux_type): New function.
11361 (init_type): Add initialization the type-specific stuff for
11362 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
11363 (print_gnat_stuff): New function.
11364 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
11365 specific data. Adjust code that prints the contents of the
11366 type-specific union using the TYPE_SPECIFIC_FIELD value.
11367 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
11368 the type cplus stuff for Ada types.
11369 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
11370 Error out if these routines are called with an Ada type.
11371 (read_structure_type, read_array_type, read_subrange_type):
11372 Add call to set_descriptive_type.
11373 (set_die_type): Initialize the gnat-specific data if necessary.
11374 (need_gnat_info, die_descriptive_type, set_descriptive_type):
11376 * ada-lang.c (decode_constrained_packed_array_type): Use
11377 decode_constrained_packed_array_type instead of doing a standard
11378 lookup to locate a parallel type.
11379 (find_parallel_type_by_descriptive_type): New function.
11380 (ada_find_parallel_type_with_name): New function.
11381 (ada_find_parallel_type): Reimplement using
11382 ada_find_parallel_type_with_name.
11383 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
11384 to check if type has a cplus stuff.
11385 * linespec.c (total_number_of_methods): Likewise.
11386 * mdebugread.c (new_type): Likewise.
11388 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11390 * NEWS: Document the 0b binary number prefix parsing.
11392 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11394 * objfiles.c (objfile_relocate1): Change the return type to int.
11395 Describe the new return value. Return non-zero if data changed.
11396 (objfile_relocate): New variable changed. Set it. Call
11397 breakpoint_re_set depending on CHANGED.
11399 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11401 Implement binary numbers parsing.
11402 * c-exp.y (parse_number): New case 'b' and 'B'.
11404 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11405 Tristan Gingold <gingold@adacore.com>
11407 * solib.c (info_sharedlibrary_command): Replace
11408 objfile_has_partial_symbols and objfile_has_full_symbols calls by
11409 objfile_has_symbols.
11411 2010-01-10 Joel Brobecker <brobecker@adacore.com>
11413 * NEWS: Document the improvements made to the mips-irix port.
11415 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11417 Fix the documentation of valprint.c:value_print.
11418 * valprint.c (value_print): Update the function description to
11419 mention that the syntax of the output follows the current_language,
11422 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11424 Fix displacement of separate debug info files.
11425 * objfiles.c (objfile_relocate): Rename to ...
11426 (objfile_relocate1): ... here and make it static. Extend the comment.
11427 (objfile_relocate): New function.
11428 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
11429 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
11430 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
11431 allocated using alloca.
11432 * symfile.c (copy_section_addr_info): Remove.
11433 (build_section_addr_info_from_objfile): Make it global. New variables
11434 addr_bit and mask, use them.
11435 * symfile.h (build_section_addr_info_from_objfile): New prototype.
11436 (copy_section_addr_info): Remove.
11438 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11440 Signal unwinder for mips-irix N32.
11441 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
11443 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
11444 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
11445 (SIGCONTEXT_LO_OFF): New macros.
11446 (mips_irix_n32_tramp_frame_init): New function.
11447 (mips_irix_n32_tramp_frame): New static constant.
11448 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
11450 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11452 Breakpoint in shared library does not work on mips-irix.
11453 * procfs.c: #include "observer.h".
11454 (procfs_inferior_created): New function, moving here the code
11455 which unsets the syssgi syscall-exit notifications.
11456 (procfs_create_inferior): Remove the code which unsets the syssgi
11457 syscall-exit notifications. It is too early to do this here.
11458 (_initialize_procfs): Attach the procfs_inferior_created observer.
11460 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11462 Wrong return convention for arrays (mips-irix).
11463 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
11464 128 bits or smaller are returned the same way as structs
11465 and unions of the the same size.
11467 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11469 Cannot set the PC on mips-irix.
11470 * irix5-nat.c (fill_gregset): Check regno against the raw PC
11471 register number, no the cooked one.
11473 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11475 Error while loading core file on mips-irix.
11476 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
11477 if debugging from a core file.
11479 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11481 GDB hangs when attaching to process on mips-irix.
11482 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
11483 attaching to a process.
11485 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11487 Use the correct breakpoint instruction on mips-irix.
11488 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
11489 containing the correct breakpoint instruction to use on mips-irix.
11490 Use it when the osabi is GDB_OSABI_IRIX.
11492 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11494 -Wunused warning in procfs.c (mips-irix only).
11495 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
11496 throughout instead of using praddset and prdelset respectively.
11498 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11500 GDB crash while stepping into function.
11501 * infrun.c (handle_inferior_event): Refetch the current frame
11502 after handling what.main_action, in case that pointer became
11505 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11507 Fix build failure of solaris-hosted cross debuggers.
11508 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
11510 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
11512 Fix build failure on sparc-solaris.
11513 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
11515 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11517 Move some symfile code into subroutines.
11518 * symfile.h (relative_addr_info_to_section_offsets)
11519 (addr_info_make_relative): New prototypes.
11520 * symfile.c (default_symfile_offsets): Move a part to ...
11521 (relative_addr_info_to_section_offsets): ... this new function.
11522 (default_symfile_offsets): Call it.
11523 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
11525 (addr_info_make_relative): ... this new function.
11527 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11529 Add from_tty to solib_create_inferior_hook.
11530 * infcmd.c (post_create_inferior): Move solib_add after
11531 solib_create_inferior_hook. Pass from_tty to
11532 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
11533 0 from_tty and comment why.
11534 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
11535 * linux-nat.c (linux_child_follow_fork): Likewise.
11536 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
11537 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
11539 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
11540 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
11541 * solib-null.c (null_solib_create_inferior_hook): Likewise.
11542 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
11543 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
11544 * solib-som.c (som_solib_create_inferior_hook): Likewise.
11545 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
11546 Pass it to svr4_so_ops.solib_create_inferior_hook.
11547 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
11549 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
11551 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
11553 * solib-target.c (solib_target_solib_create_inferior_hook): New
11554 parameter from_tty.
11555 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
11556 it to ops->solib_create_inferior_hook.
11557 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
11558 Move solib_add after solib_create_inferior_hook, call it now with
11559 from_tty as 0. New comment there.
11560 * solib.h (solib_create_inferior_hook): New parameter from_tty.
11561 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
11564 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
11566 Fix multiexec race.
11567 * infrun.c (handle_inferior_event): Use get_thread_regcache
11568 with events ptid, not get_current_regcache.
11570 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11572 GDB crash with empty executable name (MinGW).
11573 * source.c (openp): Add assert that parameter string is not NULL.
11574 if parameter string is an empty string, then return with a failure
11577 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11579 Get rid of support for VAX Floats.
11580 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11581 (ada_vax_float_print_function): Delete.
11582 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11583 (ada_vax_float_print_function): Delete.
11584 * ada-typeprint.c (print_vax_floating_point_type): Delete.
11585 (ada_print_type): Remove support for VAX floats.
11586 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
11588 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11590 * stabsread.c (read_args): Handle zero arguments.
11592 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11594 Cannot find in-tree libiconv.a after reconfigure.
11595 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
11596 that we can use, then cache the path to this archive.
11597 * configure: Regenerate.
11599 2010-01-07 Stan Shebs <stan@codesourcery.com>
11601 Make tracepoint operations go through target vector.
11602 * target.h (enum trace_find_type): New enum.
11603 (struct target_ops): New fields to_trace_init,
11604 to_download_tracepoint, to_download_trace_state_variable,
11605 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
11606 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
11607 to_set_disconnected_tracing.
11608 (target_trace_init): New macro.
11609 (target_download_tracepoint): New macro.
11610 (target_download_trace_state_variable): New macro.
11611 (target_trace_start): New macro.
11612 (target_trace_set_readonly_regions): New macro.
11613 (target_get_trace_status): New macro.
11614 (target_trace_stop): New macro.
11615 (target_trace_find): New macro.
11616 (target_get_trace_state_variable_value): New macro.
11617 (target_set_disconnected_tracing): New macro.
11618 * target.c (update_current_target): Inherit and set defaults for
11619 tracepoint operations.
11620 * tracepoint.c (default_collect): Make globally visible.
11621 (target_is_remote): Remove, along with all calls.
11622 (tvariables_info): Call target_get_trace_state_variable_value.
11623 (remote_set_transparent_ranges): Remove.
11624 (trace_start_command): Call target_trace_init,
11625 target_download_tracepoint, etc.
11626 (download_tracepoint): Remove.
11627 (trace_stop_command): Simplify.
11628 (stop_tracing): Call target_trace_stop.
11629 (get_trace_status): Call target_get_trace_status.
11630 (trace_status_command): Add case for targets that cannot trace.
11631 (finish_tfind_command): Change to take numerical arguments, call
11633 (trace_find_command): Update call to finish_tfind_command.
11634 (trace_find_pc_command): Ditto.
11635 (trace_find_tracepoint_command): Ditto.
11636 (trace_find_line_command): Ditto.
11637 (trace_find_range_command): Ditto.
11638 (trace_find_outside_command): Ditto.
11639 (set_disconnected_tracing_value): Call
11640 target_set_disconnected_tracing.
11641 * remote.c: Add protocol encoding bits from tracepoint.c.
11642 (trace_error): Move from tracepoint.c.
11643 (remote_get_noisy_reply): Ditto.
11644 (free_actions_list_cleanup_wrapper): Ditto.
11645 (free_actions_list): Ditto.
11646 (remote_trace_init): New function.
11647 (remote_download_tracepoint): New function.
11648 (remote_download_trace_state_variable): New function.
11649 (remote_trace_set_readonly_regions): New function.
11650 (remote_trace_start): New function.
11651 (remote_get_trace_status): New function.
11652 (remote_trace_stop): New function.
11653 (remote_trace_find): New function.
11654 (remote_download_trace_state_variable): New function.
11655 (remote_set_disconnected_tracing): New function.
11656 (init_remote_ops): Add tracepoint operations.
11658 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11660 2010-01-07 Tristan Gingold <gingold@adacore.com>
11662 * symfile.c (build_section_addr_info_from_objfile): New function.
11663 (symbol_file_add_separate): Don't use offsets from objfile but
11664 built an addr info.
11666 2010-01-06 Stan Shebs <stan@codesourcery.com>
11668 Support disconnected tracing.
11669 * infcmd.c (detach_command): Ask whether to stop tracing.
11670 * cli/cli-cmds.c (quit_command): Ditto.
11671 * breakpoint.h (struct breakpoint): New field number_on_target.
11672 * breakpoint.c (create_tracepoint_from_upload): New function.
11673 (get_tracepoint_by_number_on_target): New function.
11674 * remote.c (struct remote): New field disconnected_tracing.
11675 (remote_disconnected_tracing_feature): New function.
11676 (remote_protocol_features): Add DisconnectedTracing.
11677 (struct uploaded_tp): New struct.
11678 (uploaded_tps): New global.
11679 (get_uploaded_tp): New function.
11680 (find_matching_tracepoint): New function.
11681 (remote_get_tracing_state): New function.
11682 (remote_start_remote): Call it.
11683 * tracepoint.c (disconnected_tracing): New global.
11684 (trace_start_command): Initialize number_on_target.
11685 (stop_tracing): New function, split out from...
11686 (trace_stop_command): Call stop_tracing.
11687 (get_trace_status): New function, split out from...
11688 (trace_status_command): Call get_trace_status, add info on
11689 disconnection behavior.
11690 (disconnect_or_stop_tracing): New function.
11691 (finish_tfind_command): Translate from number on target.
11692 (trace_find_tracepoint_command): Translate to number on target.
11693 (send_disconnected_tracing_value): New function.
11694 (set_disconnected_tracing): New function.
11695 (_initialize_tracepoint): Add disconnected-tracing variable.
11696 * NEWS: Mention disconnected tracing.
11698 2010-01-06 Tristan Gingold <gingold@adacore.com>
11700 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11701 parameter to main_objfile. Iterate on all separate debug objfiles.
11702 * symfile.h (symbol_file_add_separate)
11703 (find_separate_debug_file_by_debuglink): Remove parameter names.
11704 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11705 (reread_symbols): Use free_objfile_separate_debug.
11706 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11708 (objfile_separate_debug_iterate, add_separate_debug_objfile)
11709 (free_objfile_separate_debug): New prototypes.
11710 * objfiles.c (objfile_separate_debug_iterate): New function.
11711 (add_separate_debug_objfile, free_objfile_separate_debug): New
11713 (free_objfile): Use free_objfile_separate_debug. Adjust for
11714 multiple separate debug objfile.
11715 (objfile_has_symbols): Adjust comment. Iterate on all separate
11717 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11719 (lookup_minimal_symbol_text): Ditto.
11720 (lookup_minimal_symbol_by_pc_name): Ditto.
11721 (lookup_minimal_symbol_solib_trampoline): Ditto.
11722 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11725 2010-01-05 Stan Shebs <stan@codesourcery.com>
11727 Add fast tracepoints.
11728 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11729 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11730 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11731 * breakpoint.c (tracepoint_type): New function.
11732 (ALL_TRACEPOINTS): Use it.
11733 (should_be_inserted): Ditto.
11734 (bpstat_check_location): Ditto.
11735 (print_one_breakpoint_location): Ditto.
11736 (user_settable_breakpoint): Ditto.
11737 (set_breakpoint_location_function): Ditto.
11738 (disable_breakpoints_in_shlibs): Ditto.
11739 (delete_trace_command): Ditto.
11740 (print_it_typical): Add bp_fast_tracepoint case.
11741 (bpstat_what): Ditto.
11742 (print_one_breakpoint_location): Ditto.
11743 (allocate_bp_location): Ditto.
11745 (breakpoint_re_set_one): Ditto.
11746 (disable_command): Ditto.
11747 (enable_command): Ditto.
11748 (check_fast_tracepoint_sals): New function.
11749 (break_command_really): Call it.
11750 (ftrace_command): New function.
11751 (_initialize_breakpoint): Add ftrace command.
11752 * gdbarch.sh (fast_tracepoint_valid_at): New.
11753 * gdbarch.h, gdbarch.c: Regenerate.
11754 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11755 (i386_gdbarch_init): Use it.
11756 * remote.c (struct remote_state): New field fast_tracepoints.
11757 (PACKET_FastTracepoints): New packet config type.
11758 (remote_fast_tracepoint_feature): New function.
11759 (remote_protocol_features): Add FastTracepoints.
11760 (remote_supports_fast_tracepoints): New function.
11761 (_initialize_remote): Add FastTracepoints.
11762 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11763 * NEWS: Mention fast tracepoints.
11765 2010-01-06 Joel Brobecker <brobecker@adacore.com>
11767 * gdb-gdb.py: New file.
11769 2010-01-05 Michael Snyder <msnyder@vmware.com>
11771 * infrun.c (handle_inferior_event): Fix typo in comment.
11773 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11775 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11777 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11779 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
11781 (s390-linux32-expedite): Define.
11782 (s390-linux64-expedite): Define.
11783 (s390x-linux64-expedite): Define.
11784 * features/s390-acr.xml: New file.
11785 * features/s390-fpr.xml: New file.
11786 * features/s390-core32.xml: New file.
11787 * features/s390-core64.xml: New file.
11788 * features/s390x-core64.xml: New file.
11789 * features/s390-linux32.xml: New file.
11790 * features/s390-linux64.xml: New file.
11791 * features/s390x-linux64.xml: New file.
11792 * features/s390-linux32.c: New generated file.
11793 * features/s390-linux64.c: New generated file.
11794 * features/s390x-linux64.c: New generated file.
11796 * regformats/s390-linux32.dat: New generated file.
11797 * regformats/s390-linux64.dat: New generated file.
11798 * regformats/s390x-linux64.dat: New generated file.
11799 * regformats/reg-s390.dat: Remove.
11800 * regformats/reg-s390x.dat: Remove.
11802 * s390-nat.c: Include "auxv.h" and <elf.h>.
11803 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11804 (s390_target_wordsize): New function.
11805 (s390_auxv_parse): Likewise.
11806 (s390_get_hwcap): Likewise.
11807 (s390_read_description): Likewise.
11808 (_initialize_s390_nat): Install s390_auxv_parse and
11809 s390_read_description.
11811 * s390-tdep.c: Include "features/s390-linux32.c",
11812 "features/s390-linux64.c", and "features/s390x-linux64.c".
11813 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11814 (s390_register_call_saved): New function.
11815 (s390_register_name): Remove.
11816 (s390_register_type): Remove.
11817 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11818 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11819 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11820 (s390_pseudo_register_name): New function.
11821 (s390_pseudo_register_type): New function.
11822 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11823 Handle full GPR pesudos and varying pseudo register numbers.
11824 (s390_pseudo_register_write): Likewise
11825 (s390x_pseudo_register_read): Remove.
11826 (s390x_pseudo_register_write): Likewise.
11827 (s390_register_group): Remove.
11828 (s390_pseudo_register_group): New function.
11829 (s390_regmap_gregset): Add GPR upper halves.
11830 (s390x_regmap_gregset): Likewise.
11831 (s390_regmap_fpregset): Likewise.
11832 (s390_regmap_upper): New global variable.
11833 (s390_upper_regset): New global variable.
11834 (s390_upper_regset_sections): New global variable.
11835 (s390_regset_from_core_section): Handle GPR upper halves.
11836 (s390_core_read_description): New function.
11837 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11838 register information. Handle varying pseudo register numbers.
11839 (s390_backchain_frame_unwind_cache): Likewise.
11840 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11841 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11842 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11843 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11844 Handle varying pseudo register numbers.
11845 (s390_unwind_pc): Handle varying pseudo register numbers.
11846 (s390_dwarf2_prev_register): New function.
11847 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11848 register information. Handle varying pseudo register numbers.
11849 Install s390_dwarf2_prev_register to unwind full GPRs.
11850 (s390_gdbarch_init): Handle target descriptions. Assign varying
11851 pseudo register numbers. Install s390_adjust_frame_regnum.
11852 (_initialize_s390_tdep): Initialize target descriptions.
11854 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11855 (S390_NUM_REGS): Redefine to include upper half registers.
11856 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11857 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11858 (tdesc_s390_linux32): Add declaration.
11859 (tdesc_s390_linux64): Likewise.
11860 (tdesc_s390x_linux64): Likewise.
11862 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11864 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11865 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11866 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11867 (ppc_linux_vmx_regset_sections): Likewise.
11868 (ppc_linux_fp_regset_sections): Likewise.
11870 * corelow.c (get_core_register_section): Constify arguments.
11871 (get_core_registers): Use gdbarch_core_regset_sections instead
11872 of hard-coded platform-specific register section names.
11874 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11876 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
11877 a register, assume the least-significant part is used.
11878 (write_pieced_value): Likewise.
11880 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11882 * printcmd.c: Include "arch-utils.h".
11883 (do_one_display): Re-parse expression if current architecture changed.
11885 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11886 Joel Brobecker <brobecker@adacore.com>
11888 * gdbtypes.c (check_typedef): New comment on type length.
11889 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11890 comment on type length.
11891 (value_primitive_field): Keep the original TYPE value, new comment.
11893 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11895 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11896 p_start. Change != comparisons to > and < comparisons.
11898 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11900 * cli/cli-script.c (process_next_line): Check P2 overrun.
11902 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11904 Update the copyright hearder to add year 2010 for most GDB files.
11906 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11908 Fix build failure in inf-ptrace.c.
11909 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11911 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11913 * top.c (print_gdb_version): Update copyright year.
11915 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
11917 Fix break *FUN'address thread NUM.
11918 * ada-lex.l (task): Expand rule to also match the thread keyword.
11920 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11922 Fix break *FUN'address task NUM.
11923 * ada-lex.l (task): New rule.
11924 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11925 been built before using it.
11927 For older changes see ChangeLog-2009.
11933 version-control: never