1 2010-12-29 Jie Zhang <jie.zhang@analog.com>
3 * configure.tgt (bfin-*-*): Set build_gdbserver to yes.
4 * NEWS: Mention new Blackfin support.
5 * regformats/reg-bfin.dat: New file.
7 2010-12-29 Jie Zhang <jie.zhang@analog.com>
8 Mike Frysinger <vapier@gentoo.org>
10 * Makefile.in (ALLDEPFILES): Add bfin-linux-tdep.c and bfin-tdep.c.
11 (HFILES_NO_SRCDIR): Add bfin-tdep.h.
12 (ALL_TARGET_OBS): Add bfin-linux-tdep.o and bfin-tdep.o.
13 * NEWS: Mention new Blackfin port.
14 * bfin-tdep.c, bfin-tdep.h, bfin-linux-tdep.c,
15 syscalls/bfin-linux.xml: New files.
16 * configure.tgt (bfin-*-*): Handle bfin targets.
18 2010-12-29 Hui Zhu <teawater@gmail.com>
20 * ax-gdb.c (gen_expr): Change error message.
22 2010-12-29 Joel Brobecker <brobecker@adacore.com>
24 * gdb.c: Revert the previous change, which was probably committed
27 2010-12-29 Joel Brobecker <brobecker@adacore.com>
29 * ada-lang.c: Fix typo in comment.
31 2010-12-29 Joel Brobecker <brobecker@adacore.com>
33 * ada-valprint.c (ada_val_print_1): Print null array pointers as
34 `0x0' rather than `(null)'. Add assertion.
36 2010-12-29 Joel Brobecker <brobecker@adacore.com>
38 * ada-lang.h (ada_coerce_to_simple_array): Add declaration.
39 * ada-lang.c (ada_typedef_target_type): New function.
40 (desc_base_type): Add handling of fat pointer typedefs.
41 (ada_coerce_to_simple_array): Make non-static.
42 (decode_packed_array_bitsize): Add handling of fat pointer typedefs.
44 (ada_template_to_fixed_record_type_1, ada_to_fixed_type)
45 (ada_check_typedef): Add handling of fat pointer typedefs.
46 (ada_evaluate_subexp) [OP_FUNCALL]: Likewise.
47 * ada-typeprint.c (ada_print_type): Add handling of fat pointer
49 * ada-valprint.c (ada_val_print_1): Convert fat pointers that are not
50 array accesses to simple arrays rather than simple array pointers.
51 (ada_value_print): In the case of array descriptors, do not print
52 the value type description unless it is an array access.
54 2010-12-29 Joel Brobecker <brobecker@adacore.com>
56 * target.h (enum target_object): Expand the documentation of
57 TARGET_OBJECT_OSDATA a bit.
59 2010-12-28 Michael Snyder <msnyder@vmware.com>
61 * command.h: Comment clean-up.
62 * cli/cli-cmds.c: Ditto.
63 * cli/cli-cmds.h: Ditto.
64 * cli/cli-decode.c: Ditto.
65 * cli/cli-decode.h: Ditto.
66 * cli/cli-dump.c: Ditto.
67 * cli/cli-interp.c: Ditto.
68 * cli/cli-logging.c: Ditto.
69 * cli/cli-script.c: Ditto.
70 * cli/cli-setshow.c: Ditto.
71 * cli/cli-setshow.h: Ditto.
73 2010-12-28 Michael Snyder <msnyder@vmware.com>
75 * event-loop.c: Comment clean-up.
76 * event-loop.h: Ditto.
84 2010-12-28 Pedro Alves <pedro@codesourcery.com>
86 * ax-gdb.c (gen_expr) <OP_REGISTER>: Error out if trying to
87 collect a user register.
89 2010-12-28 Hui Zhu <teawater@gmail.com>
91 * gdbarch.sh (ax_pseudo_register_collect,
92 ax_pseudo_register_push_stack): new callbacks.
93 (agent_expr): Forward declare.
94 * gdbarch.h, gdbarch.c: Regenerate.
95 * ax-gdb.c (gen_expr): Remove pseudo-register check code.
96 * ax-general.c (user-regs.h): New include.
97 (ax_reg): Call gdbarch_ax_pseudo_register_push_stack.
98 (ax_reg_mask): Call gdbarch_ax_pseudo_register_collect.
99 * mips-tdep.c (ax.h): New include.
100 (mips_ax_pseudo_register_collect,
101 mips_ax_pseudo_register_push_stack): New functions.
102 (mips_gdbarch_init): Set mips_ax_pseudo_register_collect and
103 mips_ax_pseudo_register_push_stack.
105 2010-12-28 Yao Qi <yao@codesourcery.com>
107 * arm-tdep.c (arm_register_aliases): Remove sp, pc, and fp.
109 2010-12-28 Joel Brobecker <brobecker@adacore.com>
111 * inf-child.c (inf_child_acknowledge_created_inferior): Delete.
112 (inf_child_target): Do not set t->to_acknowledge_created_inferior.
113 * inf-ptrace.c (inf_ptrace_create_inferior): Remove call to
114 target_acknowledge_created_inferior.
115 * inf-ttrace.c (inf_ttrace_him): Likewise.
116 * target.h (struct target_ops): Delete to_acknowledge_created_inferior
118 (target_acknowledge_created_inferior): Delete.
119 * target.c (update_current_target): Remove setting of
120 to_acknowledge_created_inferior field. Do default value for that
122 (debug_to_acknowledge_created_inferior): Delete.
123 (setup_target_debug): Remove setting of
124 current_target.to_acknowledge_created_inferior.
126 2010-12-27 Pedro Alves <pedro@codesourcery.com>
129 * breakpoint.c (breakpoint_restore_shadows): When looking for the
130 location with the lowest address that overlaps the memory range we
131 want to restore shadows for, account for multiple locations at the
134 2010-12-27 Jan Kratochvil <jan.kratochvil@redhat.com>
136 Code cleanup - renaming.
137 * breakpoint.c: Use bl for `*bp_location' variables, blp_tmp for
138 `**bp_location' helper variables, b_tmp for `*breakpoint' helper
141 2010-12-27 Kevin Buettner <kevinb@redhat.com>
142 Hui Zhu <teawater@gmail.com>
144 * mips-tedp.c (mips_register_name): Add comments.
146 2010-12-23 Yao Qi <yao@codesourcery.com>
148 * arm-tdep.c (thumb_analyze_prologue): Move some code ...
149 (EXTRACT_MOVW_MOVT_IMM_T): ... here. New macro.
150 (EXTRACT_MOVW_MOVT_IMM_A): New macro.
151 (arm_analyze_load_stack_chk_guard): New.
152 (arm_skip_stack_protector): New.
153 (arm_skip_prologue): Adjust post_prologue_pc by
154 arm_skip_stack_protector.
157 2010-12-23 Yao Qi <yao@codesourcery.com>
159 * arm-tdep.c (arm_gdbarch_init): Remove invoke to
160 set_gdbarch_deprecated_fp_regnum.
162 2010-12-22 Marc Khouzam <marc.khouzam@ericsson.com>
164 * inferior.c (remove_inferior_command): Don't remove an active inferior.
165 * mi/mi-main.c (mi_cmd_remove_inferior): Ditto.
167 2010-12-21 Tom Tromey <tromey@redhat.com>
169 * thread.c (print_thread_info): Make a ui-out table in CLI mode.
171 2010-12-20 Yao Qi <yao@codesourcery.com>
173 * arm-tdep.c (arm_register_reggroup_p): New.
174 (arm_gdbarch_init): Set arm_register_reggroup_p for hook
177 2010-12-20 Yao Qi <yao@codesourcery.com>
179 * features/arm-core.xml: Add attribute type to reg from r0 to r12.
180 * features/arm-with-iwmmxt.c: Regenerate.
181 * features/arm-with-neon.c: Regenerate.
182 * features/arm-with-vfpv2.c: Regenerate.
183 * features/arm-with-vfpv3.c: Regenerate.
185 2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
187 * mi/mi-main.c (mi_cmd_remove_inferior): Don't delete current inferior.
188 (get_other_inferior): New.
190 2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
192 * python/py-progspace.c (py_free_pspace): Obtain arch another
193 way to avoid dereferencing a null pointer.
195 2010-12-17 Michael Snyder <msnyder@vmware.com>
197 * utils.c (do_my_cleanups): Comment fix-up.
199 2010-12-17 Kevin Buettner <kevinb@redhat.com>
201 * mips-tdep.c (make_mips16_addr): New function.
202 (mips_elf_make_msymbol_special): Don't set the low bit in the
204 (mips_read_pc, mips_unwind_pc, mips_addr_bits_remove): Strip bit
205 indicating mips16 address, if present.
206 (mips_write_pc): Set bit indicating mips16 address when in a mips16
208 (mips_eabi_push_dummy_call, mips_o64_push_dummy_call): Likewise,
209 but for each function pointer argument to inferior function call.
211 2010-12-17 Tom Tromey <tromey@redhat.com>
213 * psympriv.h (struct partial_symtab) <readin>: Move field
216 2010-12-16 Kevin Buettner <kevinb@redhat.com>
218 * mips-tdep.c (mips_convert_register_float_case_p)
219 (mips_convert_register_gpreg_case_p): New functions.
220 (mips_convert_register_p): Invoke new functions above.
221 (mips_register_to_value): Add case for fetching value shorter
222 than 64 bits from a 64-bit register.
223 (mips_value_to_register): Add case for storing value shorter
224 than 64 bits into a 64-bit register.
226 2010-12-16 Joel Borggrén-Franck <joel.borggren.franck@gmail.com>
228 * python/py-value.c (value_object_type) <tp_flags>: Add
231 2010-12-16 Mike Frysinger <vapier@gentoo.org>
233 * NEWS: Mention new sim --map-info flag.
235 2010-12-15 Doug Evans <dje@google.com>
237 * dwarf2read.c (_initialize_dwarf2_read): Fix help text of
238 "save gdb-index" command.
240 2010-12-15 Tom Tromey <tromey@redhat.com>
242 * infrun.c (save_infcall_control_state): Handle the
243 exception-resume breakpoint.
244 (restore_infcall_control_state): Likewise.
245 (discard_infcall_control_state): Likewise.
247 2010-12-15 Kevin Buettner <kevinb@redhat.com>
249 * mips-tdep.c (mips_pseudo_register_write): Sign extend 32-bit
250 cooked values that are being transferred to 64-bit raw registers.
251 (mips_pseudo_register_read): Revise to preserve symmetry with
252 mips_pseudo_register_write().
254 2010-12-15 Greg Watson <g.watson@computer.org>
256 * f-exp.y (yylex): Check entire token against keywords.
258 2010-12-15 Doug Evans <dje@google.com>
260 Rename "maint set python auto-load" to "set auto-load-scripts".
262 * python/py-auto-load.c (auto_load_scripts): Renamed from
264 (load_auto_scripts_for_objfile): Update.
265 (gdbpy_initialize_auto_load): Rename "maint set python auto-load" to
266 "set auto-load-scripts".
268 2010-12-14 Kevin Buettner <kevinb@redhat.com>
270 * mips-tdep.c (mips_eabi_push_dummy_call): Place signed, rather
271 than unsigned, values in registers.
273 2010-12-14 Ken Werner <ken.werner@de.ibm.com>
275 * valops.c (value_one): Use get_array_bounds to compute the number
276 of array elements instead of dividing the length of the array by the
277 length of the element types.
278 * valarith.c (value_complement, value_neg): Likewise.
280 2010-12-14 Joel Brobecker <brobecker@adacore.com>
282 * irix5-nat.c: Replace fp_r, fp_regs and fp_scr by __fp_r, __fp_regs
283 and __fp_scr respectively throughout.
284 * configure.ac: Compile with -Dsiginfo=__siginfo if building with
285 Python using GCC on IRIX.
286 * configure: Regenerate.
288 2010-12-13 Kevin Buettner <kevinb@redhat.com>
290 * solib-svr4.c (enable_break): Don't attempt to place breakpoints,
291 when attaching, on the names in bkpt_names: _start, __start, and
294 2010-12-12 Stan Shebs <stan@codesourcery.com>
296 * value.c (value_of_internalvar): Add case for trace state
299 2010-12-12 Doug Evans <dje@google.com>
301 * dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table.
302 (dwarf2_per_cu_quick_data): Move definition down to "quick functions"
303 section. Delete members lines full_names. Rename read_lines to
305 (quick_file_names): New struct.
306 (hash_file_name_entry, eq_file_name_entry): New functions.
307 (delete_file_name_entry, create_quick_file_names_table): New functions.
308 (dwarf2_read_index): Initialize quick_file_names_table.
309 (dw2_get_file_names): Renamed from dw2_require_line_header.
310 Return pointer to quick_file_names entry. All callers updated.
311 (dw2_get_real_path): Renamed from dw2_require_full_path.
312 Replace per_cu arg with pointer to quick_file_names entry.
314 (dw2_free_cached_file_names): New function.
315 (dw2_forget_cached_source_info): Call it (via htab_traverse_noresize).
316 (dwarf2_initialize_objfile): Initialize quick_file_names_table in
317 the OBJF_READNOW case.
318 (dwarf2_free_objfile): Rewrite freeing of quick file names tables.
320 2010-12-12 Mark Kettenis <kettenis@gnu.org>
322 * mips64obsd-tdep.c (floatformats_mips64_quad): New define.
323 (mips64obsd_init_abi): Set long_double_bit and long_double_format.
325 2010-12-12 Mark Kettenis <kettenis@gnu.org>
327 * sparc-tdep.c: Fix typo in comment.
329 2010-12-10 Doug Evans <dje@google.com>
331 * dwarf2read.c: Whitespace cleanup, plus comment additions.
334 2010-12-10 Tom Tromey <tromey@redhat.com>
336 * NEWS: Document exception-handling change.
338 2010-12-09 Marc Khouzam <marc.khouzam@ericsson.com>
340 * mi/mi-parse.c (mi_parse): Wrong error message.
342 2010-12-09 Doug Evans <dje@google.com>
344 * symfile.h (quick_symbol_functions): Clarify usage of
345 map_symbol_filenames.
347 2010-12-09 Tom Tromey <tromey@redhat.com>
349 * mi/mi-parse.h (mi_parse): Update.
350 * mi/mi-parse.c (mi_parse_cleanup): New function.
351 (mi_parse): Add 'token' argument. Throw exception on error.
352 * mi/mi-main.c (mi_print_exception): New function.
353 (mi_execute_command): Use mi_print_exception. Catch exceptions
356 2010-12-09 Tom Tromey <tromey@redhat.com>
359 * thread.c (clear_thread_inferior_resources): Call
360 delete_longjmp_breakpoint.
361 * infrun.c (handle_inferior_event): Handle exception breakpoints.
362 (handle_inferior_event): Likewise.
363 (insert_exception_resume_breakpoint): New function.
364 (check_exception_resume): Likewise.
365 * inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
366 * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
367 (step_1): Set thread's initiating frame.
368 (until_next_continuation): New function.
369 (until_next_command): Support exception breakpoints.
370 (finish_command_continuation): Delete longjmp breakpoint.
371 (finish_forward): Support exception breakpoints.
372 * gdbthread.h (struct thread_info) <initiating_frame>: New field.
373 * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
374 bp_exception_master>: New constants.
375 (struct bpstat_what) <is_longjmp>: New field.
376 (set_longjmp_breakpoint): Update.
377 * breakpoint.c (create_exception_master_breakpoint): New function.
378 (update_breakpoints_after_exec): Handle bp_exception_master. Call
379 create_exception_master_breakpoint.
380 (print_it_typical): Handle bp_exception_master, bp_exception.
381 (bpstat_stop_status): Handle bp_exception_master.
382 (bpstat_what): Handle bp_exception_master, bp_exception,
384 (bptype_string): Likewise.
385 (print_one_breakpoint_location): Likewise.
386 (allocate_bp_location): Likewise.
387 (set_longjmp_breakpoint): Handle exception breakpoints. Change
389 (delete_longjmp_breakpoint): Handle exception breakpoints.
391 (struct until_break_command_continuation_args) <thread_num>: New
393 (until_break_command_continuation): Call
394 delete_longjmp_breakpoint.
395 (until_break_command): Support exception breakpoints.
396 (delete_command): Likewise.
397 (breakpoint_re_set_one): Likewise.
398 (breakpoint_re_set): Likewise.
400 2010-12-08 Doug Evans <dje@google.com>
402 * gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
404 * gdbtypes.c (check_typedef): Tweak comment.
407 * dwarf2read.c (struct psymtab_cu_index_map): New struct.
408 (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
409 (struct addrmap_index_data): New struct.
410 (add_address_entry): Remove arg `pst', new args `start', `end'.
411 (add_address_entry_worker, write_address_map): New functions.
412 (write_psymtabs_to_index): Address table generation moved to
413 write_address_map. Build a table mapping psymtab to CU index
416 * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
419 * symfile.h (quick_symbol_functions): Clarify usage of
420 expand_symtabs_with_filename.
421 * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
422 comp units, ignore type units.
424 * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
426 2010-12-07 Doug Evans <dje@google.com>
428 * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
432 * NEWS: Mention -data-directory.
433 * main.c (captured_main): Recognize -data-directory.
435 2010-12-06 Marc Khouzam <marc.khouzam@ericsson.com>
437 * mi/mi-parse.c (mi_parse): Missing else.
439 2010-12-04 Masaki Muranaka <monaka@monami-software.com>
441 * configure.tgt: Accept microblaze*-*-linux* for linux target
442 and microblaze*-*-* for as target.
444 2010-12-02 Keith Seitz <keiths@redhat.com>
446 * linespec.c (find_method): Move name canonicalization outside
448 Be paranoid and use a cleanup.
450 2010-12-01 Doug Evans <dje@google.com>
452 * dwarf2read.c (save_gdb_index_command): Add comment.
454 2010-12-01 Ulrich Weigand <uweigand@de.ibm.com>
456 * valops.c (value_assign): Returned value is never lazy. If a
457 C++ class type is returned, fix incorrect enclosing type / embedded
458 offset. If internal variable is returned, allocate new internalvar
459 value using value_of_internalvar.
461 * NEWS: Document changes in behavior of "print x = 0" and similar
464 2010-11-29 Doug Evans <dje@google.com>
466 * python/lib/gdb/printing.py (register_pretty_printer): Change
467 printer-name:subprinter-name to printer-name;subprinter-name.
468 * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
470 (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
472 2010-11-29 Tom Tromey <tromey@redhat.com>
474 * opencl-lang.c (lval_func_check_synthetic_pointer): New
476 * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
478 (value_bits_synthetic_pointer): Declare.
479 * value.c (value_bits_synthetic_pointer): New function.
480 * valprint.c (valprint_check_validity): Handle synthetic
482 * valops.c (value_ind): Use new 'indirect' lval_funcs method.
483 * valarith.c (value_ptradd): Use set_value_component_location.
484 * p-valprint.c (pascal_object_print_value_fields): Handle
486 * jv-valprint.c (java_print_value_fields): Handle synthetic
488 * dwarf2read.c (dwarf_stack_op_name): Add
489 DW_OP_GNU_implicit_pointer.
490 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
491 arguments. Handle location lists.
492 (fill_in_loclist_baton): New function.
493 (dwarf2_symbol_mark_computed): Use it.
494 * dwarf2loc.h (dwarf2_find_location_expression): Declare.
495 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
497 * dwarf2loc.c (dwarf2_find_location_expression): Rename from
498 find_location_expression. No longer static. Update all callers.
499 (dwarf_expr_frame_pc): New function.
500 (per_cu_dwarf_call): Add get_frame_pc, baton arguments. Update
502 (struct piece_closure) <per_cu>: New field.
503 (allocate_piece_closure): Add per_cu argument.
504 (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
505 (check_pieced_value_bits): Remove validity argument, add check_for
506 argument. Handle DWARF_VALUE_IMPLICIT_POINTER.
507 (check_pieced_value_validity, check_pieced_value_invalid):
509 (check_pieced_synthetic_pointer): New function.
510 (get_frame_address_in_block_wrapper): New function.
511 (indirect_pieced_value): New function.
512 (pieced_value_funcs): Update.
513 (invalid_synthetic_pointer): New function.
514 (dwarf2_evaluate_loc_desc_full): Rename from
515 dwarf2_evaluate_loc_desc. Add byte_offset argument.
516 (dwarf2_evaluate_loc_desc): Rewrite.
517 (dwarf2_loc_desc_needs_frame): Set new field on context.
518 (get_ax_pc): New function.
519 (disassemble_dwarf_expression): Handle
520 DW_OP_GNU_implicit_pointer.
521 * dwarf2expr.h (enum dwarf_value_location)
522 <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
523 (struct dwarf_expr_context) <get_frame_pc>: New field.
524 (struct dwarf_expr_piece) <v.ptr>: New field.
525 * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
526 (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
527 * dwarf2-frame.c (no_get_frame_pc): New function.
528 (execute_stack_op): Set new field on context.
529 * cp-valprint.c (cp_print_value_fields): Handle synthetic
532 2010-11-29 Phil Muldoon <pmuldoon@redhat.com>
536 * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
538 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
540 Fix step_resume_breakpoint unsaved during an infcall.
541 * gdbthread.h (struct thread_control_state): Move here field
542 step_resume_breakpoint ...
543 (struct thread_info): ... from here.
544 * infrun.c (save_infcall_control_state): Reset
545 control.step_resume_breakpoint to NULL.
546 (restore_infcall_control_state, discard_infcall_control_state): Delete
547 control.step_resume_breakpoint.
548 * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
551 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
553 Rename and move inferior_thread_state and inferior_status.
554 * gdbthread.h (struct thread_control_state): New struct, move fields
555 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
556 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
557 stop_step and stop_bpstat here from struct thread_info.
558 (struct thread_suspend_state): New struct, move field stop_signal here
559 from struct thread_info.
560 (struct thread_info): Move the fields above from this struct.
561 * inferior.h: Move the inferior_thread_state and inferior_status
562 declarations comment to their definitions at infrun.c.
563 (struct inferior_control_state): New struct, move field stop_soon from
564 struct inferior here.
565 (struct inferior_suspend_state): New empty struct.
566 (struct inferior): New fields control and suspend. Move out field
568 * infrun.c (struct inferior_thread_state): Rename to ...
569 (infcall_suspend_state): ... here. Replace field stop_signal by
570 fields thread_suspend and inferior_suspend.
571 (save_inferior_thread_state): Rename to ...
572 (save_infcall_suspend_state): ... here. New variable inf. Update the
574 (restore_inferior_thread_state): Rename to ...
575 (restore_infcall_suspend_state): ... here. New variable inf. Update
576 the code for new fields.
577 (do_restore_inferior_thread_state_cleanup): Rename to ...
578 (do_restore_infcall_suspend_state_cleanup): ... here.
579 (make_cleanup_restore_inferior_thread_state): Rename to ...
580 (make_cleanup_restore_infcall_suspend_state): ... here.
581 (discard_inferior_thread_state): Rename to ...
582 (discard_infcall_suspend_state): ... here.
583 (get_inferior_thread_state_regcache): Rename to ...
584 (get_infcall_suspend_state_regcache): ... here.
585 (struct inferior_status): Rename to ...
586 (struct infcall_control_state): ... here. Replace fields
587 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
588 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
589 stop_step, stop_bpstat and stop_soon by fields thread_control and
591 (save_inferior_status): Rename to ...
592 (save_infcall_control_state): ... here. Update the code for new
594 (restore_inferior_status): Rename to ...
595 (restore_infcall_control_state): ... here. Update the code for new
597 (do_restore_inferior_status_cleanup): Rename to ...
598 (do_restore_infcall_control_state_cleanup): ... here.
599 (make_cleanup_restore_inferior_status): Rename to ...
600 (make_cleanup_restore_infcall_control_state): ... here.
601 (discard_inferior_status): Rename to ...
602 (discard_infcall_control_state): ... here.
603 * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
604 exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
605 inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
606 mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
607 solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
608 references to the moved fields and renamed functions.
610 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
612 * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
614 (save_inferior_thread_state): Reset tp->stop_signal.
616 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
618 * infcall.c (call_function_by_hand): Remove variable
619 caller_state_cleanup.
621 2010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
625 * breakpoint.c (is_marker_spec): Check for NULL.
627 2010-11-25 Pedro Alves <pedro@codesourcery.com>
629 * breakpoint.h: No longer include python.h or python-internal.h.
630 (struct breakpoint_object): Forward declare.
631 * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
632 * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
633 * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
635 (gdbpy_breakpoint_created): Remove casts around py_bp_object
638 2010-11-24 Joel Brobecker <brobecker@adacore.com>
640 * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
641 only if HAVE_ELF is defined.
643 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
646 * infrun.c (struct inferior_status) <stepping_over_breakpoint>
647 (save_inferior_status) <stepping_over_breakpoint>
648 (restore_inferior_status) <stepping_over_breakpoint>: Rename to
650 (struct inferior_status) <step_resume_break_address>: Remove.
652 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
655 * infrun.c (struct inferior_status, save_inferior_status)
656 (restore_inferior_status): Group and reorder the fields, comment their
659 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
663 (struct dict_vector) <iter_match_first, iter_match_next>
664 (iter_match_first_hashed, iter_match_next_hashed)
665 (iter_match_first_linear, iter_match_next_linear)
666 (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
667 (iter_match_next_hashed, iter_match_first_linear)
668 (iter_match_next_linear): Use symbol_compare_ftype.
669 * dictionary.h: Include symfile.h.
670 (dict_iter_match_first, dict_iter_match_next): Use
671 symbol_compare_ftype.
672 * dwarf2read.c (dw2_map_matching_symbols): Likewise.
673 * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
674 (map_matching_symbols_psymtab): Likewise.
675 * symfile.h (symbol_compare_ftype): New typedef.
676 (struct quick_symbol_functions) <map_matching_symbols): Use
677 symbol_compare_ftype.
679 2010-11-23 Tom Tromey <tromey@redhat.com>
681 * configure: Rebuild.
682 * configure.ac (READLINE_TEXI_INCFLAG): New subst.
684 2010-11-19 Tom Tromey <tromey@redhat.com>
686 * Makefile.in (SUBDIRS): Add doc.
687 * configure: Rebuild.
688 * configure.ac: Don't configure in doc. Create doc/Makefile.
690 2010-11-23 Phil Muldoon <pmuldoon@redhat.com>
694 * python/py-inferior.c (find_thread_object): Check if PIDGET
697 010-11-22 Joel Brobecker <brobecker@adacore.com>
699 * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
701 2010-11-22 Joel Brobecker <brobecker@adacore.com>
703 * ada-lang.c (ada_to_fixed_type): Expand function documentation.
704 Return the original type if the main type portions match rather
705 than when the type themselves match.
707 2010-11-22 Joel Brobecker <brobecker@adacore.com>
709 * ada-lang.c (ada_template_to_fixed_record_type_1):
710 For dynamic fields, check the field size against the maximum
713 2010-11-22 Joel Brobecker <brobecker@adacore.com>
715 * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
717 (mips_irix_n32_stack_tramp_frame): New static global.
718 (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
721 2010-11-22 Jerome Guitton <guitton@adacore.com>
723 * ada-tasks.c (get_tcb_types_info): Use C lookups to get
726 2010-11-22 Joel Brobecker <brobecker@adacore.com>
728 * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
729 if type1 is a typedef.
731 2010-11-22 Joel Brobecker <brobecker@adacore.com>
733 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
734 "_finalizer" to the list.
736 2010-11-22 Joel Brobecker <brobecker@adacore.com>
738 * symfile.c: Remove all "#if 0"/"#endif" blocks.
740 2010-11-22 Joel Brobecker <brobecker@adacore.com>
742 * symfile.c: Add missing second space after period in various comments.
744 2010-11-22 Joel Brobecker <brobecker@adacore.com>
746 * ada-typeprint.c (print_array_type): Fix formatting in comment.
747 (print_selected_record_field_types): Fix formatting in function
750 2010-11-22 Joel Brobecker <brobecker@adacore.com>
752 * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
753 in name of "show ravenscar" prefix command name.
755 2010-11-22 Joel Brobecker <brobecker@adacore.com>
757 * ravenscar-thread.c (show_ravenscar_task_switching_command):
758 Add missing '\n' in output.
760 2010-11-22 Joel Brobecker <brobecker@adacore.com>
762 * ravenscar-thread.c (running_thread_name): Change value.
763 (read_thread_id): Remove advance declaration.
764 (get_running_thread_msymbol): New function.
765 (has_ravenscar_runtime): Use get_running_thread_msymbol to
766 compute msym_running_thread.
767 (get_running_thread_id): Renames read_thread_id. Slight modifications
768 to not take any argument anymore, using get_running_thread_msymbol
769 to determine which symbol to use instead.
770 (ravenscar_running_thread): Use get_running_thread_id instead of
773 2010-11-22 Joel Brobecker <brobecker@adacore.com>
775 * ravenscar-sparc-thread.c (supply_register_at_address):
776 Fix passing of buf in call to regcache_raw_supply.
778 2010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
780 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
782 2010-11-22 Tom Tromey <tromey@redhat.com>
784 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
786 2010-11-19 Keith Seitz <keiths@redhat.com>
788 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
789 Remove extraneous '/' after $(DESTDIR).
790 (PYTHON_INSTALL_DIR): Likewise.
792 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
794 Fix stale memory references.
795 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
798 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
799 Tom Tromey <tromey@redhat.com>
801 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
802 (.PHONY): Remove for .y outputs.
804 2010-11-19 Will Drewry <wad@google.com>
805 Tavis Ormandy <taviso@google.com>
806 Jan Kratochvil <jan.kratochvil@redhat.com>
808 * dwarf2read.c (decode_locdesc): Enforce location description stack
811 2010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
813 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
814 instruction is found.
816 2010-11-17 Tom Tromey <tromey@redhat.com>
818 * value.c (value_entirely_optimized_out): Check the
819 'check_any_valid' field.
821 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
823 * ada-lang.c (modify_general_field): Remove.
824 (make_array_descriptor): Replace all modify_general_field calls by
826 * value.c (modify_field): Update comment. New variable bytesize.
827 Normalize BITPOS. Initialize BYTESIZE, use it.
829 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
831 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
832 elements after xfree.
834 2010-11-16 Tom Tromey <tromey@redhat.com>
836 * gdb-add-index.sh: Really remove.
838 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
841 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
842 (init_one_comp_unit): ... this one.
843 (prepare_one_comp_unit): New prototype.
844 (dw2_require_line_header, process_psymtab_comp_unit): Use
846 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
847 (load_partial_comp_unit): Remove variable attr. Use
848 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
849 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
850 prepare_one_comp_unit.
851 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
852 Use prepare_one_comp_unit.
853 (alloc_one_comp_unit): Rename to ...
854 (init_one_comp_unit): ... here and remove there calloc, new parameter
856 (prepare_one_comp_unit): New function.
858 2010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
860 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
861 possible used of uninitialized variable.
863 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
865 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
866 (rs6000_gdbarch_init): Call it.
868 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
870 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
871 instructions if debugging an E500 binary.
873 2010-11-12 Tom Tromey <tromey@redhat.com>
875 * varobj.c (value_get_print_value): Rearrange. Pass stream to
876 apply_varobj_pretty_printer.
877 * c-lang.c: Include exceptions.h.
878 (c_get_string): Throw MEMORY_ERROR when appropriate.
879 * python/py-prettyprint.c (enum string_repr_result): New.
880 (print_stack_unless_memory_error): New function.
881 (print_string_repr): Change return type. Use
882 print_stack_unless_memory_error.
883 (print_children): Use print_stack_unless_memory_error.
884 (apply_val_pretty_printer): Update. Don't print children if
885 string representation threw an exception.
886 (apply_varobj_pretty_printer): Add 'stream' argument. Use
887 print_stack_unless_memory_error.
888 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
890 (_initialize_python): Initialize them.
891 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
892 gdbpy_convert_exception.
893 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
894 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
895 (gdbpy_convert_exception): Declare.
896 (apply_varobj_pretty_printer): Update.
897 * python/py-utils.c (gdbpy_convert_exception): New function.
899 2010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
901 * mi/mi-main.c (mi_cmd_target_detach): Accept new
902 thread-group id format.
904 2010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
906 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
908 2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
910 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
912 (BPPY_SET_REQUIRE_VALID): Ditto.
913 (bpnum_is_valid): Delete function.
914 (bppy_get_visibility): New function.
915 (bppy_new): Parse for, and validate internal keyword. Pass
916 internal keyword to breakpoint or watchpoint functions.
917 (build_bp_list): New function.
918 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
919 iterate_over_breakpoints.
920 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
922 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
923 to internal breakpoint chain.
925 * breakpoint.c (set_breakpoint_number): New function.
926 (breakpoint_1): Check if breakpoint number is more than zero.
927 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
928 (create_breakpoint_sal): Take a new parameter called internal.
929 Call set_breakpoint_number with internal parameter. Do not
930 mention internal breakpoints. All callers updated.
931 (create_breakpoint): Ditto.
932 (create_breakpoints_sal): Ditto.
933 (watch_command_1): Ditto.
934 (watch_command_wrapper): Take a new parameter called internal.
936 (rwatch_command_wrapper): Ditto.
937 (awatch_command_wrapper): Ditto.
938 (save_breakpoints): Update breakpoint save condition check.
939 (iterate_over_breakpoints): New function.
940 * breakpoint.h: Add conditional python includes. Add py_bp_object
941 and comment to struct breakpoint. Update all callers.
942 * defs.h: Add PyObject definition for GDB builds without Python.
944 2010-11-10 Doug Evans <dje@google.com>
946 * python/lib/gdb/command/pretty_printers.py
947 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
949 * value.c (set_value_enclosing_type): Renamed from
950 value_change_enclosing_type. All callers updated.
951 * value.h (set_value_enclosing_type): Update.
952 * valops.c (value_full_object): Always return a copy if we need to
953 make changes to the input value.
955 2010-11-09 Pedro Alves <pedro@codesourcery.com>
957 * breakpoint.c (watch_command_1): Get a pointer of the lazy
958 version of the expression's value, even if reading the value from
959 memory fails. When creating a -location watchpoint, get the
960 value's address from the lazy value pointer.
962 2010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
964 * infrun.c (restore_inferior_thread_state): Use
965 discard_inferior_thread_state to free the data.
966 (discard_inferior_thread_state): xfree also siginfo_data.
968 2010-11-05 Doug Evans <dje@google.com>
970 Make gdb.parameter("directories") work.
971 New command "set directories".
972 * NEWS: Document them.
973 * source.c (set_directories_command): New function.
974 (show_directories_1): Renamed from show_directories.
976 (show_directories_command): New function.
977 (_initialize_source): Install "directories" as a set/show
978 variable instead of just a show command.
980 2010-11-05 Ken Werner <ken.werner@de.ibm.com>
982 * NEWS: Mention OpenCL C language support.
983 * Makefile.in (SFILES): Add opencl-lang.c.
984 (COMMON_OBS): Add opencl-lang.o.
985 * opencl-lang.c: New File
986 * defs.h (enum language): Add language_opencl.
987 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
988 IBM XL C OpenCL compiler.
989 * c-lang.h: Include "parser-defs.h".
990 (evaluate_subexp_c): Declare.
991 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
992 (c_op_print_tab): Add declaration.
993 * eval.c (binop_promote): Handle language_opencl.
994 * c-exp.y: Lookup the primitive types instead of referring to the
997 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
999 Fix configure --enable-plugins --without-python.
1000 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
1001 * configure: Regenerate.
1003 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1005 * solib.c (solib_read_symbols): Call exception_fprintf even without
1006 FROM_TTY. Print also so->so_name.
1008 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
1010 * gdbtypes.h (struct rank): Created subrank.
1011 * gdbtypes.c: Initialized subrank for all
1012 'BADNESS' constants.
1013 (distance_to_ancestor): New function.
1014 (is_ancestor): Use distance_to_ancestor.
1015 (is_public_ancestor): Ditto.
1016 (sum_ranks): Handle subrank.
1017 (compare_ranks): Ditto.
1018 (rank_one_type): Subrank base conversions.
1020 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
1022 * gdbtypes.h: Create struct rank.
1023 Convert all 'BADNESS' macros to const struct rank declarations.
1024 (sum_ranks): New function.
1025 (compare_ranks): New function.
1026 * valops.c (find_oload_champ): Updated.
1027 (classify_oload_match): Use compare_ranks.
1029 (compare_parameters): Use compare_ranks.
1030 * gdbtypes.c: Initialize 'BADNESS' constants.
1031 (sum_ranks): New function.
1032 (compare_ranks): New function.
1033 (compare_badness): Use compare_ranks.
1034 (rank_function): Use global constants instead of literals.
1035 (rank_one_type): Ditto.
1039 2010-11-04 Doug Evans <dje@google.com>
1041 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
1042 (find_pretty_printer): Fix comments.
1044 2010-11-04 Hui Zhu <teawater@gmail.com>
1046 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
1048 2010-11-03 Joel Brobecker <brobecker@adacore.com>
1050 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
1051 and `len' declaration and computation inside block where they
1054 2010-11-03 Joel Brobecker <brobecker@adacore.com>
1056 * valprint.c (val_print_array_elements): Put back handling of
1059 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
1061 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
1062 DIE and set the length of the type.
1063 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
1064 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
1065 return 0 if the corresponding bounds of the type are undefined.
1066 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
1067 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
1068 (val_print_array_elements): Use get_array_bounds to compute the number
1069 of array elements instead of dividing the length of the array by the
1070 length of the element types.
1071 * valarith.c (vector_binop): Likewise.
1072 * valops.c (value_cast): Likewise.
1073 * c-valprint.c (c_val_print): Likewise.
1074 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1076 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
1078 * valarith.c (value_pos, value_neg, value_complement): Handle
1080 * valops.c (value_one): Likewise.
1082 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
1084 * value.h (value_non_lval): Declare.
1085 * value.c (value_non_lval): New function.
1086 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
1087 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
1090 2010-11-02 Doug Evans <dje@google.com>
1092 New python module gdb.printing, and new commands info pretty-printer,
1093 enable pretty-printer, disable pretty-printer.
1094 * NEWS: Mention them.
1095 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
1096 gdb/command/__init__.py, gdb/command/pretty_printers.py.
1097 * python/lib/gdb/__init__.py: Install pretty-printer commands.
1098 * python/lib/gdb/printing.py: New file.
1099 * python/lib/gdb/command/__init__.py: New file.
1100 * python/lib/gdb/command/pretty_printers.py: New file.
1102 2010-11-02 Tom Tromey <tromey@redhat.com>
1104 * NEWS: Mention Guile removal.
1105 * defs.h (enum language) <language_scm>: Remove.
1106 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
1108 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
1109 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
1110 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
1113 2010-11-02 Doug Evans <dje@google.com>
1115 * top.c: #include "python/python.h".
1116 (gdb_init): Add a comment regarding initialize_all_files.
1117 Call finish_python_initialization at the end.
1118 * python/python.h (finish_python_initialization): Declare.
1119 * python/python.c (finish_python_initialization): New function.
1120 (_initialize_python): Move python-implemented initialization there
1122 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
1124 2010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1127 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1128 Pedro Alves <pedro@codesourcery.com>
1129 * gdbthread.h (currently_stepping): New declaration.
1130 * infrun.c (currently_stepping): Remove the forward declaration.
1131 (currently_stepping): Make it global.
1132 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1133 variables tp and step, initialized them. Pass STEP to to_resume.
1134 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1135 * remote.c (currently_stepping_callback): New.
1136 (remote_vcont_resume)
1137 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1138 New variable tp. Call currently_stepping_callback and step such
1141 2010-11-01 Hui Zhu <teawater@gmail.com>
1143 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
1145 2010-10-28 Hui Zhu <teawater@gmail.com>
1147 * tracepoint.c (trace_save): Change utp->actions to
1150 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1152 * (_FILE_OFFSET_BITS): Fix typo in comment.
1154 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1156 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
1157 (PyEval_InitThreads): Remove duplicate. Define as nothing.
1158 (PyEval_ReleaseLock): Define as nothing.
1160 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1162 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
1163 by call to FILENAME_CMP.
1165 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1167 * dictionary.c (dict_hash): Move assignment out of if condition.
1169 2010-10-22 Jie Zhang <jie@codesourcery.com>
1171 * Makefile.in (install): Remove dependency of install-only and
1172 recursively invoke make for install-only.
1173 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
1174 (install): Pass FLAGS_TO_PASS when recursively make install-only.
1176 2010-10-20 Hui Zhu <teawater@gmail.com>
1178 * tracepoint.c (tfile_get_traceframe_address): Call
1179 extract_signed_integer.
1180 (tfile_trace_find): Call extract_signed_integer and
1181 extract_unsigned_integer. Change data_size to unsigned int.
1182 (tfile_fetch_registers): Call extract_unsigned_integer.
1183 (tfile_xfer_partial): Ditto.
1184 (tfile_get_trace_state_variable_value): Call
1185 extract_signed_integer and extract_unsigned_integer.
1187 2010-10-20 Vladimir Prus <vladimir@codesourcery.com>
1189 * remote.c (remote_get_threadlist): If we got empty
1190 response, bail out immediately, and don't emit any
1193 2010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1195 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
1196 for "mov pc, REG" as well.
1197 (thumb_instruction_changes_pc): Likewise.
1199 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1202 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
1203 * eval.c (evaluate_subexp_standard): Check for overload of
1205 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
1206 (value_x_unop): Ditto.
1207 * valops.c: Include "exceptions.h".
1208 (find_overload_match): Throw NOT_FOUND_ERROR.
1209 (value_struct_elt): Ditto.
1211 2010-10-19 Tom Tromey <tromey@redhat.com>
1213 * python/py-cmd.c (cmdpy_function): Unreference exception state.
1215 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1217 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
1218 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
1220 Make all other conversions illegal.
1222 2010-10-18 Doug Evans <dje@google.com>
1224 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
1225 assumptions of when this case happens. Print "<unnamed typedef>".
1227 2010-10-18 Tom Tromey <tromey@redhat.com>
1229 * valprint.c (val_print_string): Pass 'encoding' to
1232 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1234 Fix the `stopped language detection' testcase for gcc-4.5.
1235 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
1236 * symfile.c (set_initial_language): Move variable filename to a more
1237 inner block. Prefer LANGUAGE_OF_MAIN.
1238 * symtab.c (language_of_main): New variable.
1239 (set_main_name): Always reset LANGUAGE_OF_MAIN.
1240 * symtab.h (language_of_main): New declaration.
1242 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1243 Pedro Alves <pedro@codesourcery.com>
1245 * gdbthread.h (currently_stepping): New declaration.
1246 * infrun.c (currently_stepping): Remove the forward declaration.
1247 (currently_stepping): Make it global.
1248 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1249 variables tp and step, initialized them. Pass STEP to to_resume.
1250 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1251 * remote.c (currently_stepping_callback): New.
1252 (remote_vcont_resume)
1253 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1254 New variable tp. Call currently_stepping_callback and step such
1257 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1259 * infrun.c (follow_exec): Replace symbol_file_add_main by
1260 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
1262 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
1264 * objfiles.c (free_all_objfiles): Likewise.
1265 * remote-m32r-sdi.c (m32r_load): Likewise.
1266 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1267 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
1268 clear_symtab_users with ADD_FLAGS.
1269 (reread_symbols): Use parameter 0 for clear_symtab_users.
1270 (clear_symtab_users): New parameter add_flags. Do not call
1271 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
1272 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
1273 * symtab.h (clear_symtab_users): New parameter add_flags.
1275 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1277 Fix GCC false warning.
1278 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
1280 2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
1282 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
1283 display of type of method arguments.
1285 2010-10-15 Tom Tromey <tromey@redhat.com>
1288 * varobj.c (value_get_print_value): Use val_print_string to print
1290 * python/py-prettyprint.c (print_string_repr): Use
1291 val_print_string to print lazy strings. Fix cleanup logic.
1292 (print_children): Likewise.
1293 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
1294 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
1295 Change return type to 'void', add 'addr' argument.
1296 * value.h (val_print_string): Update.
1297 * valprint.c (val_print_string): Add 'encoding' argument.
1298 * printcmd.c (print_formatted): Update.
1299 * p-valprint.c (pascal_val_print): Update.
1300 * m2-valprint.c (print_unpacked_pointer): Update.
1301 (m2_print_array_contents): Likewise.
1302 * jv-valprint.c (java_value_print): Update.
1303 * f-valprint.c (f_val_print): Update.
1304 * c-valprint.c (c_val_print): Update.
1305 * auxv.c (fprint_target_auxv): Update.
1307 2010-10-15 Doug Evans <dje@google.com>
1308 Jan Kratochvil <jan.kratochvil@redhat.com>
1311 * gdbtypes.c (check_typedef): Clean up function comment.
1312 Keep track of instance flags as we strip typedefs and create a new
1313 type to preserve them if necessary.
1314 * gdbtypes.h (type) <instance_flags>: Extend the comment.
1316 2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1318 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
1320 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
1322 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
1323 * gdbtypes.c (rank_one_type): Move type comparison code out of here
1325 (types_equal): ...here. And changed it as follows:
1326 Outside of typedefs type must be of the same TYPE_CODE.
1327 When compairing two pointers or references they are equal if their
1329 Correct pointer conversions.
1331 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
1333 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
1334 having fields without names.
1336 2010-10-13 Tom Tromey <tromey@redhat.com>
1338 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
1340 2010-10-13 Doug Evans <dje@google.com>
1342 New python module gdb.types.
1343 * NEWS: Document it.
1344 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
1345 * python/lib/gdb/types.py: New file.
1347 * c-typeprint.c: Whitespace cleanup.
1348 (cp_type_print_method_args): Remove unnecessary forward decl.
1349 (cp_type_print_derivation_info): Ditto.
1350 (c_type_print_varspec_prefix): Mark as static at definition.
1351 (c_type_print_modifier): Fix arg descriptions.
1353 2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1355 * python/py-breakpoint.c (bppy_set_condition): New comment.
1356 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
1357 failed PyUnicode_Decode.
1358 (cmdpy_completer): Skip element for failed
1359 python_string_to_host_string.
1360 (cmdpy_init): Return -1 on failed python_string_to_host_string.
1361 * python/py-frame.c (frapy_read_var): Extend the function comment.
1362 * python/py-function.c (fnpy_init): Return -1 on failed
1363 python_string_to_host_string.
1364 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
1365 the function comment.
1366 (infpy_search_memory): Extend the function comment. Remove the
1367 PyErr_SetString call on already set error state.
1368 * python/py-param.c (set_parameter_value): Extend the function
1369 comment. Return -1 on failed python_string_to_host_string, twice.
1370 (set_attr): Extend the function comment.
1371 (compute_enum_values): Extend the function comment. New variable
1372 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
1373 failed python_string_to_host_string.
1374 (get_doc_string): Call gdbpy_print_stack on failed
1375 python_string_to_host_string.
1376 (parmpy_init): Extend the function comment.
1377 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
1378 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
1379 failed python_string_to_host_string.
1380 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
1381 (valpy_binop, valpy_richcompare): Extend the function comment.
1383 (struct python_env) <error_type, error_value, error_traceback>: New
1385 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
1386 (ensure_python_env): Call PyErr_Fetch.
1387 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
1388 failed convert_value_from_python.
1389 (value_get_print_value): Call gdbpy_print_stack on failed
1390 python_string_to_target_python_string.
1392 2010-10-12 Tom Tromey <tromey@redhat.com>
1394 * python/py-prettyprint.c (search_pp_list): Fix error checking.
1396 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
1398 * gdbtypes.c (do_is_ancestor): New function.
1399 (is_ancestor): Use do_is_ancestor.
1400 (is_public_ancestor): Use do_is_ancestor.
1402 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
1404 * ser-go32.c (struct dos_ops): Add missing fdopen field.
1406 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1408 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
1410 2010-10-11 Doug Evans <dje@google.com>
1412 * c-typeprint.c (c_type_print_modifier): Add note that this prints
1413 the address space id too.
1415 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1417 Fix attaching to re-prelinked executables on ppc64.
1418 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
1419 initialize it, try to adjust FILESZ field by it.
1421 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
1423 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
1424 messages if info_verbose.
1426 2010-10-08 Ken Werner <ken.werner@de.ibm.com>
1428 * valops.c (value_cast): Handle vector types.
1429 * valarith.c (value_binop): Widen scalar to vector if appropriate.
1431 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1433 * arm-tdep.c (thumb_expand_immediate): New function.
1434 (thumb_instruction_changes_pc): Likewise.
1435 (thumb2_instruction_changes_pc): Likewise.
1436 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
1437 prologue parsing. Improved support for optimized code.
1438 (thumb_scan_prologue): Do not reply on line-number information,
1439 use same heuristics as arm_scan_prologue insead.
1440 (skip_prologue_function): Accept functions
1441 "__tls_get_addr" and "__aeabi_read_tp".
1443 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1444 Daniel Jacobowitz <dan@codesourcery.com>
1446 * arm-tdep.c (thumb_in_function_epilogue_p)
1447 (arm_in_function_epilogue_p): New.
1448 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
1449 gdbarch_in_function_epilogue_p callback.
1451 2010-10-07 Doug Evans <dje@google.com>
1453 * cc-with-index.sh (output_file): Default to a.out.
1455 * dwarf2read.c (mapped_index): Rename member index_table to
1456 symbol_table and index_table_slots to symbol_table_slots.
1458 (create_symbol_hash_table): Renamed from create_index_table.
1459 All callers updated.
1460 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
1461 (write_hash_table): Rename local index_table to symbol_hash_table.
1463 * addrmap.h (addrmap_foreach_fn): New typedef.
1464 (addrmap_foreach): Declare.
1465 * addrmap.c (struct addrmap_funcs): New member foreach.
1466 (addrmap_foreach): New function.
1467 (addrmap_fixed_foreach): New function.
1468 (addrmap_fixed_funcs): Update.
1469 (struct mutable_foreach_data): New struct.
1470 (addrmap_mutable_foreach_worker): New function.
1471 (addrmap_mutable_foreach): New function.
1472 (addrmap_mutable_funcs): Update.
1474 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1476 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
1479 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1481 * ada-lang.c (full_match): Declare.
1482 (ada_match_name): Rename to match_name (we should avoid prefixing static
1483 symbols with "ada_").
1484 (match_name): New name for ada_match_name.
1485 (struct ada_psym_data): Remove and replace with...
1486 (struct match_data): User data for map_matching_symbols.
1487 (ada_add_psyms): Remove.
1488 (aux_add_nonlocal_symbols): New function, used as callback for
1489 map_matching_symbols.
1490 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
1492 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
1493 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
1494 Rework to use map_matching_symbols instead of map_ada_symtabs.
1495 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
1496 * psymtab.c: Include dependency on dictionary.h.
1497 (match_partial_symbol): New function.
1498 (ada_lookup_partial_symbol): Remove.
1499 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
1500 (map_matching_symbols_psymtab): New function.
1501 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
1502 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
1504 2010-10-06 Paul Hilfinger <hilfinger@adacore.com>
1506 * ada-lang.c (ada_match_name): Use new API for wild_match.
1507 (wild_match): Change API to be consistent with that of strcmp_iw;
1508 return 0 for a match, and switch operand order.
1509 (full_match): New function.
1510 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
1511 matching to allow use of hashing.
1512 * dictionary.c (struct dict_vector): Generalize iter_name_first,
1513 iter_name_next ot iter_match_first, iter_match_next.
1514 (iter_name_first_hashed): Replace with iter_match_first_hashed.
1515 (iter_name_next_hashed): Replace with iter_match_next_hashed.
1516 (iter_name_first_linear): Replace with iter_match_first_linear.
1517 (iter_name_next_linear): Replace with iter_match_next_linear.
1518 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
1519 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
1520 (dict_iter_match_first): New function.
1521 (dict_iter_match_next): New function.
1522 (dict_hash): New function.
1523 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
1524 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
1526 2010-10-06 Doug Evans <dje@google.com>
1528 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
1530 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1532 * dwarf2read.c (read_tag_const_type): Handle const arrays.
1534 2010-10-06 Doug Evans <dje@google.com>
1536 * Makefile.in (REQUIRED_SUBDIRS): New var.
1537 (subdir_do): Verify required subdir Makefiles exist.
1539 Create subdir data-directory.
1540 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
1541 data-directory/Makefile.in.
1542 (SUBDIRS): Add data-directory.
1543 (all): Remove xml-syscall-copy dependency.
1544 (xml-syscall-copy): Moved to data-directory/Makefile.in as
1546 (xml-syscall-install): Moved to data-directory/Makefile.in as
1548 (install-only): Remove xml-syscall-install dependency.
1549 (all-data-directory): New rule.
1550 (data-directory/Makefile): New rule.
1551 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
1552 * configure: Regenerate.
1553 * data-directory/Makefile.in: New file.
1554 * python/lib/gdb/__init__.py: New file.
1556 2010-10-06 Joel Brobecker <brobecker@adacore.com>
1558 Fix ARI warnings in advance_wild_match.
1559 * ada-lang.c (advance_wild_match): Delete local variable t2.
1560 Adjust code accordingly. Minor reformatting.
1562 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1564 * gdbtypes.h (struct main_type): Remove flag_nottext.
1565 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
1566 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
1567 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
1568 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
1569 of TYPE_FLAG_NOTTEXT.
1570 (init_type): Remove the initialization of the flag_nottext field.
1571 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
1573 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
1575 2010-10-04 Doug Evans <dje@google.com>
1577 * cc-with-index.sh: New file.
1579 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
1581 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
1582 (create_cus_from_index, create_addrmap_from_index): Ditto.
1583 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
1584 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
1585 (dw2_do_expand_symtabs_matching): Ditto.
1586 (eq_strtab_entry, create_strtab, add_string): Ditto.
1587 (hash_strtab_entry): Ditto.
1588 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
1589 (create_index_table, create_mapped_symtab, find_slot): Ditto.
1590 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
1591 (write_hash_table, add_address_entry, write_psymbols): Ditto.
1592 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
1593 (write_psymtabs_to_index): Ditto.
1595 2010-10-04 Joel Brobecker <brobecker@adacore.com>
1597 * ada-lang.c: #include "value.h".
1598 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
1599 arguments. Implement using value_allocate_space_in_inferior
1600 instead of allocating memory from the stack.
1601 (make_array_descriptor): Remove gdbarch and sp parameters. Update
1602 calls to ensure_lval.
1603 (ada_convert_actual): Remove gdbarch and sp parameters. Update
1604 calls to make_array_descriptor and ensure_lval.
1605 * ada-lang.h (ada_convert_actual): Update declaration.
1606 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
1608 2010-10-04 Doug Evans <dje@google.com>
1610 * python/python.c (_initialize_python): Define new function
1611 GdbSetPythonDirectory in python. Use it to update sys.path and
1614 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1616 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
1617 incorporating and generalizing print_record_field_types.
1618 (print_record_field_types): Change return value and update comment.
1619 Re-implement using print_selected_record_field_types.
1620 (print_choices): Print "=>" here.
1621 Handle case of unencoded variant branch.
1622 (print_variant_clauses): Reformat comment.
1623 Special-case unencoded variant branch.
1625 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1627 * ada-lang.c (wild_match): Reimplement.
1628 Change API to eliminate unused length argument, reverse arguments and
1629 make 0 the 'true' return value.
1630 (advance_wild_match): New auxiliary function for wild_match to improve
1632 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1633 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1635 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1637 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1639 2010-10-01 Doug Evans <dje@google.com>
1641 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1642 for `save gdb-index' command.
1644 2010-10-01 Tom Tromey <tromey@redhat.com>
1646 * symfile.h (allocate_symtab): Update.
1647 * symfile.c (allocate_symtab): Make 'filename' const.
1648 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1649 (add_psymbol_to_list): Likewise.
1650 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1652 (add_psymbol_to_list): Update.
1653 * mdebugread.c (new_symtab): Make 'name' const.
1654 (psymtab_to_symtab_1): Make 'filename' const.
1655 * elfread.c (elfstab_offset_sections): Update.
1656 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1657 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1658 (psymtab_include_file_name): Update.
1659 * dbxread.c (find_stab_function_addr): Make 'filename' const.
1660 * buildsym.h (start_subfile): Update.
1661 * buildsym.c (start_subfile): Make arguments const.
1663 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
1665 * fork-child.c (breakup_args): Fix crash if shell forking is
1666 disabled at compile time.
1668 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1670 * ada-lang.c (desc_bounds): Add handling of the case where
1671 the P_BOUNDS field is a pointer to a stub.
1672 (desc_data_target_type): Same for P_ARRAY field.
1673 (ada_check_typedef): Strip the typedef layers from the type
1674 found by ada_find_any_type.
1676 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1678 * sparc-tdep.c (sparc32_frame_align): New function.
1679 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1680 * sparc64-tdep.c (sparc64_frame_align): New function.
1681 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1683 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
1685 * defs.h (MAX_REGISTER_SIZE): Set to 64.
1687 2010-09-30 Tom Tromey <tromey@redhat.com>
1689 * symfile.h (struct sym_fns) <next>: Remove.
1690 (add_symtab_fns): Update.
1691 * symfile.c (sym_fns_ptr): New typedef.
1692 (symtab_fns): Now a VEC.
1693 (add_symtab_fns): Update. Change argument type.
1694 (find_sym_fns): Update. Change return type.
1695 (get_symfile_segment_data): Update.
1696 * objfiles.h (struct objfile) <sf>: Now const.
1697 * somread.c (som_sym_fns): Now const. Update.
1698 * xcoffread.c (xcoff_sym_fns): Now const. Update.
1699 * mipsread.c (ecoff_sym_fns): Now const. Update.
1700 * machoread.c (macho_sym_fns): Now const. Update.
1701 * elfread.c (elf_sym_fns): Now const. Update.
1702 (elf_sym_fns_gdb_index): Likewise.
1703 * dbxread.c (aout_sym_fns): Now const. Update.
1704 * coffread.c (coff_sym_fns): Now const. Update.
1706 2010-09-30 Tom Tromey <tromey@redhat.com>
1708 * value.c (value_primitive_field): Take 'offset' into account for
1711 2010-09-30 Tom Tromey <tromey@redhat.com>
1713 * completer.c (count_struct_fields): Handle anonymous structs and
1715 (add_struct_fields): Likewise.
1717 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1719 Fix printing parameters of inlined functions.
1720 * ada-lang.c (is_known_support_routine)
1721 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1722 for find_frame_funname.
1723 * python/py-frame.c (frapy_name): Likewise.
1724 * stack.c (find_frame_funname): New parameter funcp. Update the
1725 function comment. Fill it in.
1726 (print_frame): New variable func. Initialize it by
1727 find_frame_funname. Print arguments only if FUNC is not NULL. Use
1728 FUNC as the parameter of print_args_stub.
1729 * stack.h (find_frame_funname): New parameter funcp. Remove the
1730 function declaration comment.
1732 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1735 * inferior.c (have_live_inferiors): New variables old_chain, inf and
1736 tp. Iterate INFERIOR_LIST and call target_has_execution.
1738 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1740 Fix GDB crash on inferior calls with self-referencing classes.
1741 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1744 2010-09-29 Doug Evans <dje@google.com>
1746 Workaround for gcc/45682.
1747 * dwarf2read.c (partial_die_info): New fields fixup_called,
1749 (guess_partial_die_structure_name): Renamed from guess_structure_name.
1750 Move definition next to use. Use linkage_name to determine if class
1751 is in a namespace. All callers updated.
1752 (fixup_partial_die): Return early if already called.
1753 Set fixup_called when done.
1754 (guess_full_die_structure_name): New function.
1755 (determine_prefix): Call it for class/struct/union dies if c++ and
1756 .debug_types section is present and parent is DW_TAG_compile_unit.
1758 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1760 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1761 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1763 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1765 * NEWS: Announce Ravenscar Profile support.
1767 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1768 Jerome Guitton <guitton@adacore.com>
1770 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1772 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1773 ravenscar-sparc-thread.o to gdb_target_obs.
1775 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1777 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1778 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1780 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1782 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1783 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1784 skip_main_prologue method.
1786 2010-09-27 Tom Tromey <tromey@redhat.com>
1788 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1789 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1790 Only emit a given psymbol once.
1791 (struct signatured_type_index_data) <psyms_seen>: New field.
1792 (write_one_signatured_type): Update.
1793 (cleanup_htab): New function.
1794 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1796 (save_gdb_index_command): Update index documentation.
1798 2010-09-27 Tom Tromey <tromey@redhat.com>
1800 * bcache.c (expand_hash_table): Use hash_function, not hash.
1802 2010-09-27 Tom Tromey <tromey@redhat.com>
1804 * gdb_wchar.h: Change minimum libiconv to 0x108.
1806 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1808 Fix lost siginfo_t for inferior calls.
1810 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1811 (save_inferior_thread_state): New variables regcache, gdbarch and
1812 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1813 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1815 (restore_inferior_thread_state): New variables regcache and gdbarch.
1816 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1817 REGCACHE. Free also SIGINFO_DATA.
1819 2010-09-24 Tom Tromey <tromey@redhat.com>
1821 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1823 (dw2_map_symbol_names): Likewise.
1825 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1827 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1828 discard_cleanups do_cleanups.
1830 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1834 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1835 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1836 si_code is < 0. Check for si_code == SI_TIMER before checking for
1839 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1841 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1843 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1845 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1846 debugging a core file.
1848 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1851 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1852 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1854 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1855 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1857 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1858 Remove the conditional.
1859 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1861 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1863 * main.c: Include objfiles.h.
1864 (captured_main): New variable objfile. Call
1865 load_auto_scripts_for_objfile for ALL_OBJFILES.
1867 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1869 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1872 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1874 * dwarf2read.c (scan_partial_symbols): Add handling of
1875 DW_TAG_constant DIEs.
1876 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1878 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1880 * configure.ac: Add support for --enable-gdbserver.
1881 * configure: Regenerate.
1883 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1886 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1887 'old_cleanups' reassignment.
1889 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1891 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1894 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1897 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1898 read_var_value and common_val_print and print a warning.
1900 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1902 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1903 keep the list in alphabetical order. Use longer e-mail address.
1905 2010-09-15 Tom Tromey <tromey@redhat.com>
1907 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1909 2010-09-15 Tom Tromey <tromey@redhat.com>
1911 * charset.c (iconv_open): New define.
1913 (iconv_close): Likewise.
1914 (phony_iconv_open): Add "phony_" prefix.
1915 (phony_iconv_close): Likewise.
1916 (phony_iconv): Likewise.
1917 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1918 Change how INTERMEDIATE_ENCODING is defined.
1920 2010-09-15 Doug Evans <dje@google.com>
1922 * dwarf2read.c (struct die_info): Fix comment.
1924 2010-09-15 Alan Modra <amodra@gmail.com>
1927 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1928 than setting SEC_NEVER_LOAD on sections that need not be copied.
1930 2010-09-14 Tom Tromey <tromey@redhat.com>
1932 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1933 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1935 * symfile.h (extend_psymbol_list): Remove.
1936 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1937 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1938 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1940 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1942 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1945 2010-09-14 Tom Tromey <tromey@redhat.com>
1948 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1949 for unrecognized frame base expression.
1951 2010-09-14 Tom Tromey <tromey@redhat.com>
1954 * value.c (value_static_field): Use value_of_variable.
1956 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1958 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1959 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1961 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1964 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1967 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1969 * NEWS: Add x86-lynxos to the list of platforms supported by
1972 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1974 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1976 2010-09-13 Tom Tromey <tromey@redhat.com>
1978 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1980 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1982 * i386-tdep.c (i386_ymm_type): Set type name to
1983 builtin_type_vec256i.
1985 2010-09-12 Michael Snyder <msnyder@vmware.com>
1987 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1989 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1991 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1993 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1995 * amd64-tdep.c (amd64_register_name): Removed.
1996 (amd64_init_abi): Don't call set_gdbarch_register_name.
1998 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
2000 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
2002 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2003 Paul Bolle <pebolle@tiscali.nl>
2005 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
2006 * cli-logging.c (struct saved_output_files) <targerr>: New.
2007 (set_logging_redirect, pop_output_files, handle_redirections):
2008 Redirect also gdb_stdtargerr.
2009 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
2011 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
2012 also gdb_stdtargerr.
2013 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
2014 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
2015 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
2016 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
2017 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
2020 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
2022 * hppa-tdep.c (unwind_command): Use host_address_to_string function
2023 to display a host address.
2024 * monitor.c (monitor_read_memory): Likewise.
2025 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
2027 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
2029 * coffread.c (struct coff_symbol): Change c_value type from `long' to
2030 `CORE_ADDRESS' as it might contain target addresses.
2032 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
2034 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
2035 before cast to pointer to avoid warning.
2037 2010-09-09 Kevin Buettner <kevinb@redhat.com>
2039 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
2042 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
2044 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
2045 anonymous class partial DIEs.
2047 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2049 * dwarf2read.c (dwarf2_compute_name): Check that the first
2050 argument is a pointer.
2052 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2054 * dwarf2read.c (read_func_scope, read_structure_type)
2055 (read_common_block): Check for a NULL return from new_symbol.
2057 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2059 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
2061 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2063 * dwarf2read.c (read_structure_type): Move processing of
2064 fields and member functions from here...
2065 (process_structure_scope): ... to here.
2067 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2069 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
2071 (gnuv3_make_method_ptr): Likewise.
2073 2010-09-08 Tom Tromey <tromey@redhat.com>
2075 * breakpoint.c (create_breakpoint): Add missing _().
2077 2010-09-08 Doug Evans <dje@google.com>
2079 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
2081 2010-09-08 Tom Tromey <tromey@redhat.com>
2084 2010-09-01 Tom Tromey <tromey@redhat.com>
2085 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
2086 symtab.h: Revert earlier change.
2088 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
2090 * psymtab.c (add_psymbol_to_bcache): Initialize
2092 memset psymbol.ginfo.value to 0.
2094 2010-09-06 Pedro Alves <pedro@codesourcery.com>
2096 * infrun.c (resume): Extend comment on ignoring single-step
2097 requests on vfork parents waiting for a vfork-done.
2099 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2100 Pedro Alves <pedro@codesourcery.com>
2102 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
2104 * fork-child.c (startup_inferior) <resume_signal>: Use enum
2106 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
2107 calling strsignal. Use enum target_signal type for saved_signo.
2108 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
2109 (linux_nat_wait_1): Use enum target_signal type for signo. Use
2110 target_signal_to_host before calling strsignal.
2111 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
2114 2010-09-06 Pedro Alves <pedro@codesourcery.com>
2115 Jan Kratochvil <jan.kratochvil@redhat.com>
2117 * common/signals.c (ANY): Remove.
2118 (SET): No longer use ANY.
2120 2010-09-06 Yao Qi <yao@codesourcery.com>
2122 * infrunc(resume): When inferior is waiting_for_vfork_done,
2123 clear step and don't use displaced stepping.
2125 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
2127 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
2130 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2132 Code cleanup - split print_stop_reason.
2133 * infrun.c (enum inferior_stop_reason): Remove.
2134 (print_stop_reason): Remove by splitting into ...
2135 (print_exited_reason, print_signal_exited_reason)
2136 (print_no_history_reason, print_signal_received_reason)
2137 (print_end_stepping_range_reason): ... these new functions. Update
2138 the preceding comment.
2139 (handle_inferior_event): Change the calls to print_exited_reason,
2140 print_signal_exited_reason, print_no_history_reason,
2141 print_signal_received_reason, print_end_stepping_range_reason.
2142 (handle_step_into_function, handle_step_into_function_backward):
2143 Change the calls to print_end_stepping_range_reason.
2145 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2147 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
2148 * cli-out.c: Include vec.h.
2149 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
2150 variable stream, initialize it, use it.
2151 (cli_redirect): New function comment. Replace the stream and
2152 original_stream fields by the new streams field. Remove the
2153 original_stream != NULL conditional, assert error on NULL instead.
2154 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
2155 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
2156 original_stream fields by the new streams field.
2157 (cli_out_set_stream): Replace the stream field by the new streams
2159 * cli-out.h: Include vec.h.
2160 (ui_filep): New typedef, call DEF_VEC_P for it.
2161 (struct cli_ui_out_data): Replace the stream and original_stream
2162 fields by the new streams field.
2163 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
2164 NULL first. Extend the comment.
2165 (handle_redirections): Call ui_out_redirect with output.
2166 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
2167 calls outside of the TRY_CATCH block.
2169 2010-09-03 Joel Brobecker <brobecker@adacore.com>
2173 2010-09-02 Joel Brobecker <brobecker@adacore.com>
2175 Back out the following change:
2176 | 2010-06-29 Hui Zhu <teawater@gmail.com>
2177 | * record.c (set_record_pic_cmdlist,
2178 | show_record_pic_cmdlist): New variables.
2179 | (set_record_pic_command,
2180 | show_record_pic_command): New functions.
2181 | (record_pic_function, record_pic_line, record_pic_enum,
2182 | set_record_pic_type, record_pic_hide_nofunction,
2183 | record_pic_hide_nosource, record_pic_hide_same): New variables.
2184 | (record_pic_fputs): New function.
2185 | (function_list, node_list, edge_list): New struct.
2186 | (function_list, node_list, edge_list): New variables.
2187 | (record_pic_cleanups, record_pic_node,
2188 | record_pic_edge, cmd_record_pic): New functions.
2189 | (_initialize_record): Add new commands for record pic.
2191 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
2193 * config.in, configure: Regenerated.
2194 * configure.ac: Check for waitpid.
2195 * ser-pipe.c (pipe_close): Wait for the program to exit.
2197 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2199 * cli/cli-logging.c: Include gdb_assert.h.
2200 (set_logging_overwrite): New function.
2201 (logging_redirect): New comment.
2202 (logging_no_redirect_file, set_logging_redirect)
2203 (pop_output_files) <logging_no_redirect_file>: New.
2204 (handle_redirections) <!logging_redirect>: New variable
2205 no_redirect_file. Remove file autoclose for tee_file_new. No longer
2206 discard cleanup for the close of former OUTPUT. Set
2207 LOGGING_NO_REDIRECT_FILE.
2208 (handle_redirections) <logging_redirect>: gdb_assert
2209 LOGGING_NO_REDIRECT_FILE.
2210 (show_logging_command) <logging_redirect handling>: Adjust messages
2211 for SAVED_FILENAME not NULL.
2212 (_initialize_cli_logging): Install set_logging_overwrite and
2213 set_logging_redirect.
2215 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2217 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
2219 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2221 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
2222 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
2223 add $(GDB_WARN_CFLAGS_NO_FORMAT).
2224 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
2226 2010-09-02 Yao Qi <yao@codesourcery.com>
2228 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
2229 number from a WIFSIGNALED status.
2231 2010-09-01 Tom Tromey <tromey@redhat.com>
2233 * symtab.h (lookup_type_symbol): Declare.
2234 * symtab.c (lookup_symbol_in_language_full): Rename from
2235 lookup_symbol_in_language. Add 'for_type' argument.
2236 (lookup_symbol_in_language): New function.
2237 (lookup_type_symbol): Likewise.
2238 (lookup_symbol_aux): Add 'for_type' argument.
2239 (match_symbol_aux): New function.
2240 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
2241 (match_transparent_type): New function.
2242 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
2243 * symfile.h (struct quick_symbol_functions)
2244 <pre_expand_symtabs_matching>: Remove.
2245 <expand_one_symtab_matching>: New field.
2246 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
2247 (pre_expand_symtabs_matching_psymtabs): Remove.
2248 (psym_functions): Update.
2249 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
2250 * dwarf2read.c (dw2_lookup_symbol): Update comment.
2251 (dw2_pre_expand_symtabs_matching): Remove.
2252 (dw2_expand_one_symtab_matching): New function.
2253 (dwarf2_gdb_index_functions): Update.
2255 2010-09-01 Joel Brobecker <brobecker@adacore.com>
2257 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
2259 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
2261 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
2262 as a feature reported by -list-target-features.
2264 2010-09-01 Joel Brobecker <brobecker@adacore.com>
2266 * features/Makefile (WHICH): Add rs6000/powerpc-32.
2267 (powerpc-32.o, powerpc-32.c): New rules.
2268 (clean): Also remove powerpc-32.c.
2269 * regformats/rs6000/powerpc-32.dat: Generate.
2271 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2273 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
2274 psymbol_bcache_init.
2275 * psymtab.h (psymbol_bcache_init): New function prototype.
2276 (psymbol_bcache_free): New function prototype.
2277 (psymbol_bcache_get_bcache): New function prototype.
2278 * psymtab.c (psymbol_bcache_init): New function.
2279 (psymbol_bcache_free): New function.
2280 (psymbol_bcache_full): New function.
2281 (psymbol_bcache_get_bcache): New function.
2282 (add_psymbol_to_bcache): use psymbol_bcache_full.
2283 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
2285 * symmisc.c (print_symbol_bcache_statistics): Updated.
2286 (print_objfile_statistics): Updated.
2287 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
2289 (free_objfile): Use psymbol_bcache_free.
2291 2010-08-31 Tom Tromey <tromey@redhat.com>
2294 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
2295 Don't set TYPE_NAME on the type.
2297 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2299 * infrun.c (set_exec_direction_func): Error out if target does not
2300 support reverse execution.
2302 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2304 Make linux_get_siginfo_type `type *' unique.
2305 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
2306 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
2307 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
2308 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
2309 (_initialize_linux_tdep): New.
2311 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2314 * defs.h (find_memory_region_ftype): New typedef.
2315 (exec_set_find_memory_regions): Use it.
2316 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
2317 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
2318 * gcore.c (objfile_find_memory_regions): Likewise.
2319 * gnu-nat.c (gnu_find_memory_regions): Likewise.
2320 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
2321 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
2322 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
2323 find_memory_region_ftype.
2324 (insert_dbx_link_bpt_in_region): Likewise.
2325 (iterate_over_mappings): Likewise. Drop the comment part about the
2327 (find_memory_regions_callback): Use find_memory_region_ftype.
2328 (proc_find_memory_regions): Likewise.
2329 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
2330 find_memory_region_ftype.
2331 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
2332 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
2334 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2336 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
2337 'static partial_symbol psymbol'.
2338 (psymbol_hash): New function.
2339 (psymbol_compare): New function.
2340 * bcache.c (hash_continue): New.
2341 (hash): Use hash_continue.
2342 * bcache.c: Add hash_function and compare_function
2343 pointers to bcache struct.
2344 (bcache_full): Use bcache->hash_function, and
2345 bcache->compare_function.
2346 (bcache_compare): New function.
2347 (bcache_xmalloc): Take hash_function and
2348 compare_function arguments and initialize the
2351 * objfiles.c (allocate_objfile): Updated.
2352 * symfile.c (reread_symbols): Updated.
2353 * python/py-type.c (typy_richcompare): Updated.
2355 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
2356 Tom Tromey <tromey@redhat.com>
2359 * python/py-value.c (valpy_get_dynamic_type): New function.
2360 (value_object_getset): Add "dynamic_type".
2361 (valpy_get_type): Fail on error.
2363 2010-08-30 Yao Qi <yao@codesourcery.com>
2365 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
2366 (arm_linux_syscall_next_pc): New.
2367 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
2368 (arm_linux_init_abi): Initialize syscall_next_pc.
2369 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
2370 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
2371 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
2372 Declare arm_frame_is_thumb.
2374 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2377 * breakpoint.c (bpstat_alloc): Remove unused prototype.
2378 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
2380 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
2381 calls of bpstat_alloc. Remove explicit bs chain termination.
2383 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2386 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
2387 (my_waitpid): Likewise.
2389 2010-08-27 Doug Evans <dje@google.com>
2391 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
2394 2010-08-27 Tom Tromey <tromey@redhat.com>
2396 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
2397 TYPE_FIELD_IGNORE_BITS.
2399 2010-08-27 Doug Evans <dje@google.com>
2401 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
2402 the order they're defined in. munmap .debug_types buffer.
2404 2010-08-26 Doug Evans <dje@google.com>
2406 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
2407 (dw2_forget_cached_source_info): Rename local cu to per_cu.
2408 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
2409 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
2410 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
2411 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
2412 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
2413 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
2414 (write_psymtabs_to_index): Ditto.
2416 2010-08-26 Pedro Alves <pedro@codesourcery.com>
2418 * NEWS: Mention libthread_db debugging with core files.
2420 2010-08-26 Doug Evans <dje@google.com>
2422 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
2423 forward decl. Pass pst->dirname to dwarf_decode_lines.
2424 (psymtab_include_file_name): New function.
2425 (dwarf_decode_lines): Call it. Update comments.
2427 2010-08-25 Pedro Alves <pedro@codesourcery.com>
2429 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
2430 compilation unit being different from target die's.
2432 2010-08-24 Doug Evans <dje@google.com>
2435 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
2436 debug_types_type_hash.
2437 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
2439 (lookup_die_type): Renamed from tag_type_to_tag. First look in
2440 appropriate type_hash table. All callers updated.
2441 (allocate_signatured_type_table): Renamed from
2442 allocate_signatured_type_hash_table. All callers updated.
2443 (create_signatured_type_table_from_index): Renamed from
2444 create_signatured_type_hash_from_index. All callers updated.
2445 (read_die_type): Add comment. Move actual reading to ...
2446 (read_die_type_1): ... here. New function.
2447 (follow_die_ref_or_sig): Tweak comment.
2448 (set_die_type): Rewrite to use appropriate choice of
2449 debug_info_type_hash or debug_types_type_hash.
2450 (get_die_type_at_offset): New function.
2451 (get_die_type): Call it.
2453 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2455 * python/py-type.c (typy_richcompare): Initialize worklist.
2457 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
2458 Kazu Hirata <kazu@codesourcery.com>
2459 Jonathan Larmour <jifl@eCosCentric.com>
2461 * arm-tdep.c: Include features/arm-with-m.c.
2462 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
2464 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
2465 Check is_m after force-mode.
2466 (arm_gdbarch_init): Check the binary before the target description.
2467 Add check for M profile attribute. If we have an M-profile device,
2468 but no target register description, use arm-with-m. Recognize the
2469 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
2470 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
2471 * arm-tdep.h (XPSR_T): Define.
2472 (struct gdbarch_tdep): Add is_m member.
2473 * features/arm-m-profile.xml, features/arm-with-m.c,
2474 features/arm-with-m.xml: New files.
2476 2010-08-23 Doug Evans <dje@google.com>
2478 * dwarf2read.c (read_structure_type): Add comment.
2479 (read_enumeration_type): Add comment.
2480 (process_enumeration_scope): Move definition of some locals
2481 closer to their use.
2482 (read_namespace_type): Add comment.
2483 (set_die_type): Fix typo in comment.
2485 2010-08-23 Tom Tromey <tromey@redhat.com>
2488 * python/py-value.c: Include expression.h.
2489 (valpy_do_cast): New function.
2490 (valpy_cast): Use it.
2491 (valpy_dynamic_cast): New function.
2492 (valpy_reinterpret_cast): Likewise.
2493 (value_object_methods): Add dynamic_cast, reinterpret_cast.
2495 2010-08-23 Tom Tromey <tromey@redhat.com>
2498 * python/py-value.c (valpy_nonzero): Don't throw error for other
2501 2010-08-23 Tom Tromey <tromey@redhat.com>
2504 * python/py-type.c: Include bcache.h, vec.h.
2505 (struct type_equality_entry): New.
2506 (compare_strings): New function.
2507 (check_types_equal): Likewise.
2508 (check_types_worklist): Likewise.
2509 (typy_richcompare): Likewise.
2510 (type_object_type): Set tp_richcompare field.
2512 2010-08-23 Tom Tromey <tromey@redhat.com>
2515 * python/py-type.c (typy_fields): Call check_typedef.
2516 (typy_template_argument): Add TRY_CATCH.
2518 2010-08-23 Tom Tromey <tromey@redhat.com>
2521 * python/py-type.c (typy_array): New function.
2522 (type_object_methods): Add "array".
2524 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2526 * python/python.c: Include "serial.h".
2527 (gdbpy_event_fds): Change type to `struct serial *' a array from
2529 (gdbpy_run_events): Change parameters. Use serial_readchar in
2531 (gdbpy_post_event): Use serial_write in place of write.
2532 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
2533 serial_async in place of add_file_handler.
2535 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2537 * serial.h (gdb_pipe, serial_pipe): Declare.
2538 * serial.c (serial_interface_lookup): Take a const char pointer.
2539 (serial_fdopen): Rename to ...
2540 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
2541 Call the OPS' fdopen function if there is one.
2542 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
2544 (struct serial_ops) <fdopen>: New field.
2546 * ser-mingw.c (free_pipe_state):
2547 (free_pipe_state): Close output on non-pex pipes.
2548 (pipe_windows_fdopen): New.
2550 (_initialize_ser_windows): Register pipe_windows_fdopen.
2551 * ser-go32.c (gdb_pipe): New.
2552 * ser-pipe.c (pipe_close): Close file descriptor even if there's
2557 2010-08-20 Keith Seitz <keiths@redhat.com>
2560 * dwarf2read.c (struct delayed_method_info): New struct.
2561 (struct dwarf2_cu): Add vector method_list.
2562 (scan_partial_symbols): Count methods for union, class, structure,
2563 and interface types.
2564 (add_to_method_list): New function.
2565 (free_delayed_list): New function.
2566 (compute_delayed_physnames): New function.
2567 (process_full_comp_unit): Make a cleanup for the CU's delayed
2568 physname list, compute the delayed physnames, and free the
2570 (dwarf2_add_member_fn): For C++ and Java, delay the computation
2571 of the physname until after the CU is read.
2573 * dwarf2read.c (read_structure_type): Check if the current
2574 DIE's type was already completed after dwarf2_full_name
2577 2010-08-19 Stan Shebs <stan@codesourcery.com>
2579 * NEWS: Mention some additional changes.
2581 2010-08-19 Tom Tromey <tromey@redhat.com>
2583 * Makefile.in (install-python): Add DESTDIR.
2585 2010-08-19 Doug Evans <dje@google.com>
2588 * parser-defs.h (parse_float, parse_c_float): Declare.
2589 * parse.c (parse_float, parse_c_float): New function.
2590 * c-exp.y (parse_number): Call parse_c_float.
2591 * objc-exp.y (parse_number): Ditto.
2592 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
2593 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
2595 2010-08-19 Joel Brobecker <brobecker@adacore.com>
2597 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
2598 the arguments in the correct order.
2599 * symtab.c (maybe_add_partial_symtab_filename): Declare
2600 the arguments in the correct order.
2602 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2604 * varobj.c (varobj_create): Replace variable old_fi with old_id,
2605 initialize it by null_frame_id, wrap its usage by get_frame_id,
2606 frame_id_p and frame_find_by_id.
2608 2010-08-18 Tom Tromey <tromey@redhat.com>
2611 * configure: Rebuild.
2612 * configure.ac: Add install-python to CONFIG_INSTALL.
2613 * Makefile.in (install-python): New.
2615 2010-08-18 Doug Evans <dje@google.com>
2617 * gdb_assert.h (gdb_assert_not_reached): New macro.
2618 (gdb_assert_fail): Fix typo in comment.
2619 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
2621 * darwin-nat.c (darwin_check_new_threads): Ditto.
2622 * dwarf2read.c (dwarf2_get_section_info): Ditto.
2623 (munmap_section_buffer): Ditto.
2624 * m32c-tdep.c (make_types): Ditto.
2625 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2626 * macroexp.c (get_character_constant): Ditto.
2627 (get_string_literal): Ditto.
2628 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2629 (mep_pseudo_cr_index, mep_register_type): Ditto.
2630 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2631 (mep_get_insn, mep_analyze_prologue): Ditto.
2632 * objfiles.c (qsort_cmp): Ditto.
2633 * prologue-value.c (pv_is_identical): Ditto.
2634 * record.c (record_get_loc): Ditto.
2635 * value.c (value_static_field): Ditto.
2636 * xtensa-tdep.c (call0_track_op): Ditto.
2638 2010-08-18 Tom Tromey <tromey@redhat.com>
2641 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2642 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
2643 name-copying lower. Document exception behavior.
2644 * completer.c (expression_completer): Catch exceptions from
2645 parse_field_expression.
2647 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2651 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2652 workaround on core files.
2653 (try_thread_db_load_1): Don't try enabling thread event reporting
2655 (thread_db_load): Allow thread_db on core files.
2656 (attach_thread): Don't check thread signals on core files, nor try
2657 really attaching to the thread, nor enabling thread event event
2659 (thread_db_detach): Don't try disabing thread event reporting or
2660 removing thread event breakpoints when debugging a core file.
2661 (find_new_threads_callback): Don't try enabling thread event
2662 reporting on core files.
2663 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2664 debugging a core file.
2665 (thread_db_find_new_threads): Don't update thread
2666 cores (processors) when debugging a core (dump).
2668 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2672 * corelow.c (add_to_thread_list): Don't use
2673 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
2674 (get_core_register_section): Don't use
2675 gdbarch_core_reg_section_encodes_pid.
2677 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2678 * gdbarch.h, gdbarch.c: Regenerate.
2679 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2680 gdbarch_core_reg_section_encodes_pid.
2681 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2682 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2683 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2685 2010-08-18 Yao Qi <yao@codesourcery.com>
2687 * MAINTAINERS : Add myself under Write After Approval.
2689 2010-08-17 Tom Tromey <tromey@redhat.com>
2691 * NEWS: Mention template parameter support.
2693 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2695 PR breakpoints/11371
2697 * breakpoint.c (decref_bp_location): Assert the reference count is
2700 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2702 PR breakpoints/11371
2704 * breakpoint.c (breakpoint_init_inferior): Decrement the
2705 location's reference count instead of deleting right away.
2706 (bpstat_free): Decrement the location's reference count. Make
2708 (bpstat_copy): Increment the location's reference count.
2709 (bpstat_find_breakpoint): Adjust.
2710 (bpstat_num): Adjust.
2711 (print_it_typical): Adjust. Use the breakpoint pointer in the
2712 bpstat instead of the location's owner.
2713 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2714 Adjust to record the location's owner in the bpstat.
2715 (watchpoint_check): Use the breakpoint pointer in the bpstat
2716 instead of the location's owner.
2717 (bpstat_check_breakpoint_conditions): Don't handle
2718 bp_watchpoint_scope here. Use the breakpoint pointer in the
2719 bpstat instead of the location's owner.
2720 (bpstat_stop_status): Defer inferior function calls to after
2721 building the bpstat list. Handle bp_watchpoint_scope here. Use
2722 the breakpoint pointer in the bpstat instead of the location's
2724 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2725 the location's owner.
2726 (free_bp_location): Don't walk bpstats clearing locations.
2727 (incref_bp_location): New.
2728 (decref_bp_location): New.
2729 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2730 instead of the location's owner.
2731 (update_global_location_list): Clear the location's owner, and
2732 decrement the location's reference count instead of deleting it
2734 (breakpoint_retire_moribund): Decrement the location's reference
2735 count instead of deleting it right away.
2736 (bpstat_remove_bp_location): Delete.
2737 (bpstat_remove_breakpoint): New.
2738 (bpstat_remove_bp_location_callback): Delete.
2739 (bpstat_remove_breakpoint_callback): New.
2740 (delete_breakpoint): Iterate over all threads' stop_bpstat's
2741 clearing references to the breakpoint that is being deleted.
2743 * breakpoint.h (struct bp_location) <refc>: New field.
2744 <owner>: Update comments.
2745 (bpstat_free): Delete declaration.
2746 (struct bpstats): Change the type of the breakpoint_at field to
2747 struct breakpoint point, from struct bp_location pointer. Add new
2748 field bp_location_at.
2750 2010-08-16 Tom Tromey <tromey@redhat.com>
2754 2010-08-16 Tom Tromey <tromey@redhat.com>
2756 * NEWS: Mention watch -location.
2758 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2760 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2761 EXP_STRING_REPARSE to EXP_STRING.
2762 (watch_command_1): Set also EXP_STRING_REPARSE.
2763 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2764 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2765 Update comment for exp_string.
2767 2010-08-16 Tom Tromey <tromey@redhat.com>
2769 * value.c (release_value): Clear 'next' pointer.
2770 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2771 (watch_command_wrapper): Update.
2772 (watch_maybe_just_location): New function.
2773 (watch_command): Update.
2774 (rwatch_command_wrapper): Update.
2775 (rwatch_command): Update.
2776 (awatch_command_wrapper): Update.
2777 (awatch_command): Update.
2778 (check_for_argument): New function.
2779 (_initialize_breakpoint): Update help text.
2781 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2783 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2784 typedef'ed function types correctly.
2786 2010-08-13 Tom Tromey <tromey@redhat.com>
2788 * python/python-internal.h (gdbpy_get_hook_function): Don't
2791 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2793 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
2796 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
2798 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2799 the format strings to be compatible with Python 2.4.
2801 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2803 Easier and more stubborn MI memory read commands.
2805 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2806 and data-write-memory-bytes.
2807 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2808 (mi_cmd_data_write_memory_bytes): New.
2809 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2810 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2812 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2813 * target.c (target_read_until_error): Remove.
2814 (read_whatever_is_readable, free_memory_read_result_vector)
2815 (read_memory_robust): New.
2816 * target.h (target_read_until_error): Remove.
2817 (struct memory_read_result, free_memory_read_result_vector)
2818 (read_memory_robust): New.
2820 2010-08-13 Hui Zhu <teawater@gmail.com>
2822 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2823 (read_comp_unit): Initialize back_to.
2825 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2826 Pedro Alves <pedro@codesourcery.com>
2828 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2829 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2830 (struct partial_die_info) <has_template_arguments>: New field.
2831 <num_attrs>: Change type to unsigned char.
2832 <building_fullname>: New field.
2833 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2834 allocate a CU if we don't have one already. Add a cleanup for the
2836 (partial_die_full_name): Handle template arguments not in
2838 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2839 (load_full_comp_unit): Only allocate a CU if we don't have one
2841 (do_ui_file_peek_last): New.
2842 (dwarf2_compute_name): Handle template parameters not in
2844 (read_comp_unit): Read and free abbrevs if not read yet.
2845 (load_partial_dies): Handle template arguments not in DW_AT_name.
2846 (find_partial_die): If we have a CU, but no a partial dies yet,
2847 also read in the CU.
2848 (dwarf2_const_value_attr): New, abstracted out from
2850 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2851 dwarf2_const_value_attr.
2852 (determine_prefix): Detect and break loops created by RCVT's debug
2854 (maybe_queue_comp_unit): Bail out early if reading partial
2856 (follow_die_offset): Load full CU if we have no dies.
2857 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2858 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2860 2010-08-11 Tom Tromey <tromey@redhat.com>
2861 Phil Muldoon <pmuldoon@redhat.com>
2863 * python/python.c (gdbpy_run_events): New function.
2864 (gdbpy_post_event): Likewise.
2865 (gdbpy_initialize_events): Likewise.
2866 (_initialize_python): Call gdbpy_initialize_events.
2868 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
2870 * gdb/valarith.c (vector_binop): New function.
2871 (scalar_binop): Likewise.
2872 (value_binop): Call scalar_binop or vector_binop depending on the types.
2873 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2874 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2876 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2878 2010-08-11 Brad Roberts <braddr@puremagic.com>
2880 * d-lang.c (extract_identifiers): Handle multiple digits.
2882 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2885 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2886 Rename to dummy_frame_unwind.
2887 (dummy_frame_unwind): Remove.
2888 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2889 * frame-unwind.c (frame_unwind_init): Use address of
2890 dummy_frame_unwind and inline_frame_unwind.
2891 * frame.c (create_sentinel_frame): Use address of
2892 sentinel_frame_unwind.
2893 * inline-frame.c (inline_frame_unwinder): Rename to
2894 inline_frame_unwind.
2895 (inline_frame_unwind): Remove.
2896 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2897 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2898 sentinel_frame_unwind.
2899 (sentinel_frame_unwind): Remove.
2900 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2903 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2906 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2907 and returned value. New comment from frame-unwind.h.
2908 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2910 * frame.c (get_frame_id, frame_unwind_register_value)
2911 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2912 (get_frame_type, frame_unwind_arch): Do not use the return value of
2913 frame_unwind_find_by_frame.
2915 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
2916 Thiago Jung Bauermann <bauerman@br.ibm.com>
2917 Tom Tromey <tromey@redhat.com>
2919 * python/python.c (gdbpy_solib_address): New function.
2920 (gdbpy_decode_line): Likewise.
2922 2010-08-10 Tom Tromey <tromey@redhat.com>
2924 Revert gdb-add-index addition:
2925 * Makefile.in (install-only): Don't install gdb-add-index.
2926 * gdb-add-index.sh: Remove.
2928 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2930 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2931 `target_has_execution' check with `to_has_memory' check.
2932 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2933 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2934 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2936 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2938 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2939 (resume_siggnal, resume_step): Move these static globals...
2940 (struct sim_inferior_data): ...into this new struct.
2941 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2943 (gdb_callback, callbacks_initialized): Move these globals to
2944 a point earlier in the file.
2945 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2946 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2947 (gdbsim_close_inferior, gdbsim_resume_inferior)
2948 (gdbsim_stop_inferior): New functions.
2949 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2951 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2952 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2953 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2954 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2955 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2956 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2957 new local variable `sim_data' in each of these functions. Use
2958 `sim_data' to reference former globals `program_loaded',
2959 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2961 (gdbsim_open): Remove local variable `argv'. Put results of call
2962 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2963 make a cleanup for it. Free it though when a sim instance cannot
2965 (gdbsim_close): Free sim_argv and null it out as appropriate.
2966 Close sim instances in all inferiors.
2967 (gdbsim_cntrl_c): Stop all inferiors.
2969 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2971 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2973 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2974 function after symbol construction is complete.
2975 Do the same for template symbol addition to template_symbols list.
2977 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2979 * symtab.c (symbol_get_demangled_name): Remove assertion and
2980 return NULL when language_specific.cplus_specific is not initialized.
2981 * stabsread.c (define_symbol): Set the name before calling
2982 cp_scan_for_anonymous_namespaces.
2984 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2986 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2987 SYMBOL_SET_LANGUAGE.
2988 (symbol_init_language_specific): Renamed to symbol_set_language.
2989 * symtab.c (symbol_init_language_specific): Removed redundant check
2991 Renamed to symbol_set_language.
2992 * stabsread.c (define_symbol): Updated.
2993 (read_enum_type): Updated
2994 * psymtab.c (add_psymbol_to_bcache): Updated.
2995 * minsyms.c (install_minimal_symbols): Updated.
2996 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2997 SYMBOL_LANGUAGE to set the language.
2998 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2999 * mdebugread.c (new_symbol): Ditto.
3000 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
3001 * dwarf2read.c (new_symbol_full): Ditto.
3002 * jv-lang.c (add_class_symbol): Ditto.
3004 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3006 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
3007 (make_cleanup_restore_page_info)
3008 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
3009 * gdbcmd.h (execute_command_to_string): New declaration.
3010 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
3011 (make_cleanup_restore_ui_file): Move to utils.c
3012 (execute_gdb_command) <to_string>: Move ...
3013 * top.c (execute_command_to_string): ... here. Call
3014 set_batch_flag_and_make_cleanup_restore_page_info.
3015 * utils.c (make_cleanup_restore_integer): New source file blank line.
3016 (make_cleanup_restore_uinteger): New.
3017 (struct restore_ui_file_closure, do_restore_ui_file)
3018 (make_cleanup_restore_ui_file): Move here from python/python.c.
3019 (init_page_info) <batch_flag>
3020 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
3021 (set_batch_flag_and_make_cleanup_restore_page_info): New.
3023 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
3025 * thread.c (add_thread_silent): Use null_ptid instead of
3026 minus_one_ptid while getting rid of stale inferior_ptid.
3028 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
3030 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
3031 Throughout, call read_encoded_value with ptr_size rather than addr_size.
3032 (decode_frame_entry_1): Remove redundant setting of
3033 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
3034 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
3035 on examined frame section. Add comment to explain why.
3036 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
3037 comment to explain usage.
3038 * gdbarch.c: Regenerate.
3039 * gdbarch.h: Regenerate.
3041 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
3043 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3046 * varobj.c (varobj_create): Move variables fi, old_fi and block to
3049 2010-08-05 Pedro Alves <pedro@codesourcery.com>
3051 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
3052 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
3053 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
3054 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
3055 linux-tdep.o to gdb_target_obs.
3057 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
3059 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
3062 2010-08-05 Hui Zhu <teawater@gmail.com>
3064 * mips-linux-tdep.c(regset.h): New include.
3065 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
3066 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
3067 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
3068 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
3069 mips_linux_regset_from_core_section): New functions.
3070 (fetch_core_registers, regset_core_fns): Deleted.
3071 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
3072 Deleted regset_core_fns.
3073 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
3074 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
3075 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
3078 2010-08-04 Pedro Alves <pedro@codesourcery.com>
3080 * s390-tdep.c: Include linux-tdep.h.
3081 (s390_gdbarch_init): Call linux_init_abi.
3083 2010-08-04 Pedro Alves <pedro@codesourcery.com>
3085 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
3086 instead of printing "Thread" here.
3087 * linux-tdep.c: Include inferior.h.
3088 (linux_core_pid_to_str): New.
3089 (linux_init_abi): New.
3090 * linux-tdep.h (linux_init_abi): Declare.
3091 * alpha-linux-tdep.c: Include linux-tdep.h.
3092 (alpha_linux_init_abi): Call linux_init_abi.
3093 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
3094 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
3095 * frv-linux-tdep.c: Include linux-tdep.h
3096 (frv_linux_init_abi): Call linux_init_abi.
3097 * hppa-linux-tdep.c: Include linux-tdep.h
3098 (hppa_linux_init_abi): Call linux_init_abi.
3099 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
3100 * ia64-linux-tdep.c: Include linux-tdep.h.
3101 (ia64_linux_init_abi): Call linux_init_abi.
3102 * m32r-linux-tdep.c: Include linux-tdep.h.
3103 (m32r_linux_init_abi): Call linux_init_abi.
3104 * m68klinux-tdep.c: Include linux-tdep.h.
3105 (m68k_linux_init_abi): Call linux_init_abi.
3106 * microblaze-linux-tdep.c: Include linux-tdep.h.
3107 (microblaze_linux_init_abi): Call linux_init_abi.
3108 * mips-linux-tdep.c: Include linux-tdep.h.
3109 (mips_linux_init_abi): Call linux_init_abi.
3110 * mn10300-linux-tdep.c: Include linux-tdep.h.
3111 (am33_linux_init_osabi): Call linux_init_abi. Rename the
3112 'gdbinfo' parameter to 'info'.
3113 * ppc-linux-tdep.c: Include linux-tdep.h.
3114 (ppc_linux_init_abi): Call linux_init_abi.
3115 * sh-linux-tdep.c: Include linux-tdep.h.
3116 (sh_linux_init_abi): Call linux_init_abi.
3117 * sparc-linux-tdep.c: Include linux-tdep.h.
3118 (sparc32_linux_init_abi): Call linux_init_abi.
3119 * sparc64-linux-tdep.c: Include linux-tdep.h.
3120 (sparc64_linux_init_abi): Call linux_init_abi.
3121 * xtensa-linux-tdep.c: Include linux-tdep.h.
3122 (xtensa_linux_init_abi): Call linux_init_abi.
3123 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
3124 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
3127 2010-08-03 Doug Evans <dje@google.com>
3129 * breakpoint.c (bpdisp_text): Constify bpdisps.
3130 * solib-svr4.c (solib_break_names): Constify.
3131 (bkpt_names, main_name_list): Constify.
3132 (match_main): Constify soname arg.
3133 (bfd_lookup_symbol): Remove unnecessary forward decl.
3134 Constify symname arg.
3135 (enable_break): Constify bkpt_namep.
3136 * symtab.c (search_symbols): Constify types, types2, types3, types4.
3137 (symtab_symbol_info): Constify classnames.
3139 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
3141 * NEWS: Document Python value inferior function calls.
3143 2010-08-02 Doug Evans <dje@google.com>
3145 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
3147 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3149 * linux-thread-db.c (libthread_db_debug): New variable.
3150 (thread_db_find_new_threads_silently): Control verbosity with it.
3151 (try_thread_db_load_1, try_thread_db_load): Likewise.
3152 (find_new_threads_once): Likewise.
3153 (_initialize_thread_db): Set/show it.
3155 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3157 * common/signals.c (signals): Move the content to signals.def.
3158 Include it. Remove the INDENT comments.
3160 2010-07-30 Tom Tromey <tromey@redhat.com>
3162 * Makefile.in (install-only): Install gdb-add-index.
3163 * gdb-add-index.sh: New file.
3165 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
3167 * MAINTAINERS: Add myself for write after approval privileges.
3169 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3171 * symfile.c (addr_section_name): New function.
3172 (addrs_section_compar): Use it.
3173 (addr_info_make_relative): Use it. Move variable sect_name into a more
3174 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
3176 2010-07-30 Tom Tromey <tromey@redhat.com>
3178 * configure: Rebuild.
3179 * configure.ac: Add missing case for Python 2.7.
3181 2010-07-29 DJ Delorie <dj@redhat.com>
3183 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
3186 2010-07-29 Pedro Alves <pedro@codesourcery.com>
3188 * PROBLEMS: Remove mention of all problems.
3190 2010-07-28 Pedro Alves <pedro@codesourcery.com>
3193 * configure.ac: Check for wresize.
3194 * configure, config.in: Regenerate.
3195 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
3198 2010-07-28 Tom Tromey <tromey@redhat.com>
3201 * python/py-type.c (typy_legacy_template_argument): New function,
3202 extracted from typy_template_argument.
3203 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
3206 2010-07-28 Oleg Nesterov <oleg@redhat.com>
3208 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
3210 2010-07-27 Tom Tromey <tromey@redhat.com>
3212 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
3214 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
3216 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
3217 handling DW_AT_object_pointer, and workaround GCC PR 43053.
3219 2010-07-28 Tom Tromey <tromey@redhat.com>
3221 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
3223 2010-07-28 Joel Brobecker <brobecker@adacore.com>
3225 * remote.c (remote_download_tracepoint): Add missing gettext markup.
3226 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
3228 2010-07-28 Joel Brobecker <brobecker@adacore.com>
3230 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
3231 down, just before the block that parse the breakpoint addr_string.
3233 2010-07-28 Tom Tromey <tromey@redhat.com>
3236 * symfile.c (reread_symbols): Clear template_symbols.
3237 * symtab.h (struct symbol) <is_cplus_template_function>: New
3239 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
3240 (struct template_symbol): New.
3241 * symtab.c (lookup_symbol_aux_local): Use
3242 cp_lookup_symbol_imports_or_template.
3243 * objfiles.h (struct objfile) <template_symbols>: New field.
3244 * objfiles.c (relocate_one_symbol): New function.
3245 (objfile_relocate1): Use it. Relocate isolated symbols.
3246 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
3247 template_arguments>: New fields.
3248 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
3249 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
3250 (TYPE_TEMPLATE_ARGUMENT): Likewise.
3251 (lookup_typename): Update.
3252 * gdbtypes.c (lookup_typename): Constify "block" argument.
3253 * dwarf2read.c: Include vec.h.
3254 (symbolp): New typedef.
3255 (read_func_scope): Read template arguments. Allocate a
3256 template_symbol when needed.
3257 (read_structure_type): Read template arguments.
3258 (new_symbol_full): New function, from new_symbol. Handle
3259 DW_TAG_template_type_param and DW_TAG_template_value_param.
3260 (new_symbol): Rewrite as wrapper.
3261 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
3262 * cp-namespace.c: Include language.h.
3263 (search_symbol_list): New function.
3264 (cp_lookup_symbol_imports_or_template): Likewise.
3266 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3268 * tui/tui-win.c (make_visible_with_new_height): Resize and move
3269 the command window to the new size and position.
3271 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3273 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
3276 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3278 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
3279 after a detecting a resize.
3280 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
3283 2010-07-28 Pedro Alves <pedro@codesourcery.com>
3285 * configure.ac: Check for resize_term.
3286 * configure, config.in: Regenerate.
3288 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3290 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
3292 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3294 * dwarf2read.c (read_string): Rename to ...
3295 (read_direct_string): ... this.
3296 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
3297 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
3299 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3301 * linux-nat.c (linux_nat_lp_status_is_event): New function.
3302 (count_events_callback, select_event_lwp_callback)
3303 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
3305 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3307 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
3308 (_initialize_ia64_linux_nat): Install it.
3309 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
3310 (linux_nat_set_status_is_event): New.
3311 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
3312 cancel_breakpoints_callback, linux_nat_filter_event)
3313 (linux_nat_wait_1): Use linux_nat_status_is_event.
3314 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
3316 2010-07-27 Tom Tromey <tromey@redhat.com>
3318 * NEWS: Mention labels, .gdb_index.
3320 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
3322 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3323 "start,+length" form of arguments.
3324 * NEWS: Add "Changed commands" (disassemble) section for "Changes
3325 since GDB 7.1"; and merge two separated paragraphs of disassemble
3326 description in "Changes in GDB 7.0".
3328 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3330 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
3331 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
3332 (fputs_maybe_filtered): Do not do filtering also on
3333 ! INPUT_FROM_TERMINAL_P.
3335 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3337 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
3340 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
3342 * python/py-value.c (valpy_call): New Function.
3344 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
3346 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
3347 types_list_elements variables.
3349 2010-07-26 Tom Tromey <tromey@redhat.com>
3351 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
3352 TLS with DW_OP_const4u or DW_OP_const8u.
3354 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
3356 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
3357 VSX registers contents.
3359 2010-07-26 Jerome Guitton <guitton@adacore.com>
3361 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
3362 its adress is null. Add comment to explain why.
3363 (new_symbol): Ditto.
3365 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3367 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
3368 the host signal first.
3370 2010-07-23 Tom Tromey <tromey@redhat.com>
3372 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
3373 type_comp_units>: New fields.
3374 (dw2_get_cu): New function.
3375 (create_cus_from_index): Remove unused argument.
3376 (create_signatured_type_hash_from_index): New function.
3377 (create_addrmap_from_index): Update.
3378 (dwarf2_read_index): Handle version 2.
3379 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
3380 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
3381 (dw2_print_stats, dw2_expand_all_symtabs)
3382 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
3383 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
3384 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
3385 (allocate_signatured_type_hash_table): New function.
3386 (add_signatured_type_cu_to_list): Likewise.
3387 (create_debug_types_hash_table): Use them. Set type_comp_units.
3388 (read_signatured_type): Ensure section data is available.
3389 (add_address_entry): Don't record empty ranges.
3390 (struct signatured_type_index_data): New.
3391 (write_one_signatured_type): New function.
3392 (write_psymtabs_to_index): Write type CUs.
3393 (save_gdb_index_command): Update comment.
3394 (process_type_comp_unit): Move inititalization of
3396 (create_debug_types_hash_table): ... here.
3398 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3400 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
3401 cleanup and generating of gdb script to it.
3402 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
3403 and terminal size. Convert $tmpfile to a series of -ex-es.
3405 2010-07-23 Keith Seitz <keiths@redhat.com>
3407 * symtab.c (basic_lookup_transparent_type): Call pre-expand
3408 hook for STATIC_BLOCK types, too.
3410 2010-07-23 Keith Seitz <keiths@redhat.com>
3412 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
3413 and vector definition.
3415 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3417 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
3419 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3421 * dwarf2read.c: Include completer.h.
3422 (save_gdb_index_command): Use matching usage command name.
3423 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
3424 Set filename_completer for it.
3426 2010-07-22 Tom Tromey <tromey@redhat.com>
3428 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
3429 type signature's per-CU data.
3431 2010-07-22 Pedro Alves <pedro@codesourcery.com>
3433 * NEWS: Mention target reported shared libraries support by
3436 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3441 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3442 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3443 and DW_TAG_volatile_type.
3444 (new_symbol): Likewise.
3446 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
3448 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
3449 function symbols before overload resolution.
3451 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3453 * breakpoint.c (bptype_string): New, abstracted out from
3454 print_one_breakpoint_location.
3455 (print_one_breakpoint_location): Adjust.
3456 (breakpoint_1): Adjust the type column width dynamically.
3458 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3460 * symfile.c (find_separate_debug_file_by_debuglink): Remove
3461 a gdb_assert call, new comment.
3463 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3465 * linux-nat.c (linux_handle_extended_wait): Handle case when
3466 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
3468 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3471 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
3472 linux_nat_wait_1. Use always LP->STATUS afterwards.
3474 2010-07-20 Hui Zhu <teawater@gmail.com>
3476 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
3477 (inf_ptrace_attach): Ditto.
3479 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3481 Make core files the process_stratum.
3482 * corefile.c (core_target): New variable.
3483 (core_file_command): Remove variable t, use core_target.
3484 * corelow.c (core_ops): Make it static.
3485 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
3486 * defs.h (make_cleanup_unpush_target): New prototype.
3487 * gdbarch.h: Regenerate.
3488 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
3489 * gdbcore.h (core_target): New declaration.
3490 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
3491 variables ops_already_pushed and back_to. Use push_target,
3492 make_cleanup_unpush_target and discard_cleanups calls.
3493 * record.c (record_open): Replace core_stratum by a core_bfd check.
3494 * target.c (target_is_pushed): New function.
3495 (find_core_target): Remove.
3496 * target.h (enum strata) <core_stratum>: Remove.
3497 (target_is_pushed): New declaration.
3498 (find_core_target): Remove declaration.
3499 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
3500 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
3502 2010-07-19 Hui Zhu <teawater@gmail.com>
3504 * breakpoint.c (single_step_breakpoints_inserted): New
3506 * breakpoint.h (single_step_breakpoints_inserted): Extern.
3507 * infrun.c (maybe_software_singlestep): Add check code.
3508 * record.c (record_resume): Add code for software single step.
3509 (record_wait): Ditto.
3511 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3513 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
3514 a more inner block. Remove its unused declaration initializer.
3516 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
3518 * NEWS: Mention support for the new ptrace interface and hardware
3519 accelerated watchpoint conditions on powerpc-linux.
3521 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
3523 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
3524 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
3525 and host_address_to_string() and %s for pointers.
3526 (debug_to_remove_breakpoint): Likewise.
3527 (debug_to_region_ok_for_hw_watchpoint): Likewise.
3528 (debug_to_can_accel_watchpoint_condition): Likewise.
3529 (debug_to_stopped_data_address): Likewise.
3530 (debug_to_watchpoint_addr_within_range): Likewise.
3531 (debug_to_insert_hw_breakpoint): Likewise.
3532 (debug_to_remove_hw_breakpoint): Likewise.
3533 (debug_to_insert_watchpoint): Likewise.
3534 (debug_to_remove_watchpoint): Likewise.
3536 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3538 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
3540 (cplus_specific): New struct.
3541 * symtab.c (symbol_set_demangled_name): Updated.
3542 Use cplus_specific for cplus symbols.
3543 (symbol_get_demangled_name): Retrive the name from the cplus_specific
3544 struct for cplus symbols.
3545 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
3546 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
3547 * symtab.c (symbol_init_cplus_specific): New function.
3549 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3551 * symtab.h (symbol_set_demangled_name): New function.
3552 (symbol_get_demangled_name): New function.
3553 * symtab.c (symbol_set_demangled_name): New function.
3554 (symbol_get_demangled_name): New function.
3555 (symbol_init_language_specific): Use demangled_name setter and getter.
3556 (symbol_set_names): Ditto.
3557 (symbol_natural_name): Ditto.
3558 (symbol_demangled_name): Ditto.
3559 * dwarf2read.c (new_symbol): Ditto.
3561 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3563 * symtab.h: Renamed cplus_specific to mangled_lang.
3564 * symtab.c (symbol_init_language_specific): Updated.
3565 (symbol_set_names): Updated.
3566 (symbol_natural_name): Updated.
3567 (symbol_demangled_name): Updated.
3568 * ada-lang.c (ada_decode_symbol): Updated.
3569 * dwarf2read.c (new_symbol): Updated.
3571 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3573 * valops.c (value_assign): Do not call to value_coerce_to_target.
3574 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
3576 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3578 * MAINTAINERS: Add myself for write after approval privileges.
3580 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
3582 * c-valprint.c (c_val_print): Add embedded_offset to address in
3583 call to val_print_array_elements.
3585 2010-07-13 Tom Tromey <tromey@redhat.com>
3587 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
3589 2010-07-13 Tom Tromey <tromey@redhat.com>
3591 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
3594 2010-07-13 Tom Tromey <tromey@redhat.com>
3596 * symfile.c (set_initial_language): Update.
3597 (deduce_language_from_filename): Argument type now const.
3598 * symtab.h (find_main_filename): Update.
3599 (deduce_language_from_filename): Update.
3600 * symtab.c (find_main_filename): Make result const.
3601 * dwarf2read.c (dw2_find_symbol_file): Change return type.
3602 * psymtab.c (find_symbol_file_from_partial): Change return type.
3603 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3606 2010-07-13 Tom Tromey <tromey@redhat.com>
3608 * breakpoint.c (save_cmdlist): No longer static.
3609 * gdbcmd.h (save_cmdlist): Declare.
3610 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
3611 OBJF_READNOW on objfile if readnow_symbol_files.
3612 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
3613 (elf_sym_fns_gdb_index): New global.
3614 * dwarf2read.c: Include exceptions.h.
3616 (struct mapped_index): New.
3617 (dwarf2_per_cu_data_ptr): New typedef.
3618 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
3620 (GDB_INDEX_SECTION): New define.
3621 (struct dwarf2_per_cu_quick_data): New.
3622 (struct dwarf2_per_cu_data) <objfile>: New field.
3625 (byte_swap): New function.
3626 (MAYBE_SWAP): New macro.
3627 (INDEX_SUFFIX): New macro.
3628 (dw2_do_instantiate_symtab): New function.
3629 (dw2_instantiate_symtab): Likewise.
3630 (create_cus_from_index): Likewise.
3631 (create_addrmap_from_index): Likewise.
3632 (mapped_index_string_hash): Likewise.
3633 (find_slot_in_mapped_hash): Likewise.
3634 (dwarf2_read_index): Likewise.
3635 (dw2_setup): Likewise.
3636 (dw2_require_line_header): Likewise.
3637 (dw2_require_full_path): Likewise.
3638 (dw2_find_last_source_symtab): Likewise.
3639 (dw2_forget_cached_source_info): Likewise.
3640 (dw2_lookup_symtab): Likewise.
3641 (dw2_lookup_symbol): Likewise.
3642 (dw2_do_expand_symtabs_matching): Likewise.
3643 (dw2_pre_expand_symtabs_matching): Likewise.
3644 (dw2_print_stats): Likewise.
3645 (dw2_dump): Likewise.
3646 (dw2_relocate): Likewise.
3647 (dw2_expand_symtabs_for_function): Likewise.
3648 (dw2_expand_all_symtabs): Likewise.
3649 (dw2_expand_symtabs_with_filename): Likewise.
3650 (dw2_find_symbol_file): Likewise.
3651 (dw2_map_ada_symtabs): Likewise.
3652 (dw2_expand_symtabs_matching): Likewise.
3653 (dw2_find_pc_sect_symtab): Likewise.
3654 (dw2_map_symbol_names): Likewise.
3655 (dw2_map_symbol_filenames): Likewise.
3656 (dw2_has_symbols): Likewise.
3657 (dwarf2_gdb_index_functions): New global.
3658 (dwarf2_initialize_objfile): New function.
3659 (process_psymtab_comp_unit): Update.
3660 (add_partial_subprogram): Likewise.
3661 (dwarf2_psymtab_to_symtab): Likewise.
3662 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3663 (process_full_comp_unit): Update.
3664 (find_file_and_directory): New function.
3665 (read_file_scope): Use find_file_and_directory.
3666 (dwarf2_per_cu_objfile): Update.
3667 (dwarf2_per_cu_addr_size): Update.
3668 (dwarf2_per_cu_offset_size): Update.
3669 (dwarf2_free_objfile): Free the index, if needed.
3670 (dwarf2_per_objfile_free): Unmap the index, if needed.
3671 (struct strtab_entry): New.
3672 (hash_strtab_entry): New function.
3673 (eq_strtab_entry): Likewise.
3674 (create_strtab): Likewise.
3675 (add_string): Likewise.
3676 (struct symtab_index_entry): New.
3677 (struct mapped_symtab): New.
3678 (hash_symtab_entry): New function.
3679 (eq_symtab_entry): Likewise.
3680 (delete_symtab_entry): Likewise.
3681 (create_index_table): Likewise.
3682 (create_mapped_symtab): Likewise.
3683 (cleanup_mapped_symtab): Likewise.
3684 (find_slot): Likewise.
3685 (hash_expand): Likewise.
3686 (add_index_entry): Likewise.
3687 (add_indices_to_cpool): Likewise.
3688 (write_hash_table): Likewise.
3689 (add_address_entry): Likewise.
3690 (write_psymbols): Likewise.
3691 (write_obstack): Likewise.
3692 (unlink_if_set): Likewise.
3693 (write_psymtabs_to_index): Likewise.
3694 (save_gdb_index_command): Likewise.
3695 (_initialize_dwarf2_read): Install "save gdb-index"
3697 (create_all_comp_units): Initialize 'objfile' field of CU.
3698 (dwarf2_locate_sections): Check for .gdb_index.
3699 * psymtab.h (dwarf2_gdb_index_functions): Declare.
3700 * symfile.h (dwarf2_initialize_objfile): Declare.
3702 2010-07-13 Tom Tromey <tromey@redhat.com>
3704 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3705 (basic_lookup_transparent_type): Likewise.
3706 * symfile.h (struct quick_symbol_functions)
3707 <pre_expand_symtabs_matching>: New field.
3708 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3709 (psym_functions): Update.
3711 2010-07-13 Tom Tromey <tromey@redhat.com>
3713 PR breakpoints/8357:
3714 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3715 * linespec.c (decode_line_1): Update comment. Call decode_label.
3716 (decode_label): New function.
3717 (symbol_found): Handle LOC_LABEL.
3718 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3719 domain. Call add_symbol_to_list.
3721 2010-07-13 Tom Tromey <tromey@redhat.com>
3723 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3724 * dwarf2loc.c (find_location_expression): Use
3725 dwarf2_per_cu_text_offset.
3726 (dwarf2_evaluate_loc_desc): Likewise.
3727 (dwarf2_loc_desc_needs_frame): Likewise.
3728 (compile_dwarf_to_ax): Likewise.
3729 (loclist_describe_location): Likewise.
3730 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3731 (dwarf2_per_cu_objfile): Update comment.
3733 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3735 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3736 * p-lang.c (pascal_printstr): Likewise.
3738 2010-07-09 Tom Tromey <tromey@redhat.com>
3740 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3741 'hint' if it is NULL.
3743 2010-07-09 Hui Zhu <teawater@gmail.com>
3745 * source.c (print_source_lines_base): Add check for noprint.
3747 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3749 * python/python-config.py: Resync with Python 2.7 version of this
3752 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3754 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3756 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3758 * NEWS: Create a new section for the next release branch.
3759 Rename the section of the current branch, now that it has
3762 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3764 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3765 * version.in: Bump version to 7.2.50.20100707-cvs.
3767 2010-07-07 Tom Tromey <tromey@redhat.com>
3769 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3770 LOC_COMPUTED symbol.
3771 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3772 (dwarf2_loc_desc_needs_frame): Likewise.
3773 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3774 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3775 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3776 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3778 (struct dwarf2_frame_cache) <text_offset>: New field.
3779 (dwarf2_frame_cache): Set new field.
3780 (dwarf2_frame_prev_register): Update.
3781 (dwarf2_frame_sniffer): Update.
3782 (dwarf2_frame_base_sniffer): Update.
3783 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3785 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3786 Thiago Jung Bauermann <bauerman@br.ibm.com>
3788 Support for hw accelerated condition watchpoints in booke powerpc.
3790 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3791 and move to eval.c. Change callers.
3792 (insert_bp_location): Pass watchpoint condition in
3793 target_insert_watchpoint.
3794 (remove_breakpoint_1) Pass watchpoint condition in
3795 target_remove_watchpoint.
3796 (watchpoint_locations_match): Call
3797 target_can_accel_watchpoint_condition.
3798 * eval.c: Include wrapper.h.
3799 (fetch_subexp_value): Moved from breakpoint.c.
3800 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3802 (can_use_watchpoint_cond_accel): New function.
3803 (calculate_dvc): Likewise.
3804 (num_memory_accesses): Likewise.
3805 (check_condition): Likewise.
3806 (ppc_linux_can_accel_watchpoint_condition): Likewise
3807 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3808 check_condition and calculate_dvc.
3809 (ppc_linux_remove_watchpoint): Likewise.
3810 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3811 ppc_linux_can_accel_watchpoint_condition
3812 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3814 (debug_to_remove_watchpoint): Likewise.
3815 (debug_to_can_accel_watchpoint_condition): New function.
3816 (update_current_target): Set to_can_accel_watchpoint_condition.
3817 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3818 * target.h: Add opaque declaration for struct expression.
3819 (struct target_ops) <to_insert_watchpoint>,
3820 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3821 <to_can_accel_watchpoint_condition>: New member.
3822 condition. Update all callers and implementations.
3823 (target_can_accel_watchpoint_condition): New macro.
3824 * value.c (free_value_chain): New function.
3825 * value.h (fetch_subexp_value): New prototype.
3826 (free_value_chain): Likewise.
3828 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3830 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3831 from gdbarch_core_regset_sections also for .reg if present.
3833 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3834 section size for .reg.
3835 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3836 (ppc_linux_vmx_regset_sections): Likewise.
3837 (ppc_linux_fp_regset_sections): Likewise.
3838 (ppc64_linux_vsx_regset_sections): New variable.
3839 (ppc64_linux_vmx_regset_sections): Likewise.
3840 (ppc64_linux_fp_regset_sections): Likewise.
3841 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3842 for current word size.
3844 2010-07-06 Joel Brobecker <brobecker@adacore.com>
3846 * server.c (myresume): Make static.
3848 2010-07-06 Tom Tromey <tromey@redhat.com>
3850 * configure, config.in: Rebuild.
3851 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3852 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3854 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3856 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3859 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
3861 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3862 * gdbtypes.c (floatformats_ieee_half): New variable.
3863 * doublest.c (floatformat_from_length): Set format to
3864 gdbarch_half_format if length matches.
3865 * gdbarch.sh (half_bit): New architecture method.
3866 (half_format): Likewise.
3867 * gdbarch.h: Regenerate.
3868 * gdbarch.c: Likewise.
3870 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3871 Joel Brobecker <brobecker@adacore.com>
3873 Fix re-run of PIE executable, PR shlibs/11776.
3874 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3875 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3877 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3878 Joel Brobecker <brobecker@adacore.com>
3880 * auxv.c (memory_xfer_auxv): Update attach comment.
3881 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3882 svr4_relocate_main_executable.
3883 (svr4_solib_create_inferior_hook): Make the call to
3884 svr4_relocate_main_executable unconditional.
3886 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3887 Joel Brobecker <brobecker@adacore.com>
3889 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3891 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3892 Joel Brobecker <brobecker@adacore.com>
3894 Fix attaching to PIEs prelinked on the disk after the process was
3896 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3897 Verify it against bfd_get_arch_size. Try to match arbitrary
3898 displacement for the phdrs comparison.
3900 2010-07-02 Tom Tromey <tromey@redhat.com>
3903 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3904 value as optimized-out.
3906 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3907 Thiago Jung Bauermann <bauerman@br.ibm.com>
3909 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3910 represent?" question in comment. Change comment to a proper sentence.
3912 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
3914 * c-valprint.c (c_val_print): Fix printing of character vectors.
3916 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3918 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3919 create_breakpoint prototype.
3921 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3923 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3924 usefulness suggestion of multiple breakpoints at same location.
3926 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3928 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3930 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3932 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3933 (loclist_tracepoint_var_ref): Handle optimized out values.
3935 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3937 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3938 unnecessary space in string.
3939 * filesystem.c (_initialize_filesystem): Ditto.
3940 * frame.c (_initialize_frame): Ditto.
3941 * infcmd.c (step_once): Ditto.
3942 * infrun.c (_initialize_infrun): Ditto.
3943 * linux-nat.c (linux_child_follow_fork): Ditto.
3944 * maint.c (maintenance_deprecate): Ditto.
3945 * memattr.c (_initialize_mem): Ditto.
3946 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3947 * monitor.c (monitor_open): Ditto.
3948 * procfs.c (procfs_xfer_memory): Ditto.
3949 * reverse.c (bookmarks_info): Ditto.
3950 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3951 * stack.c (_initialize_stack): Ditto.
3952 * tracepoint.c (_initialize_tracepoint): Ditto.
3953 * xtensa-tdep.c (xtensa_supply_gregset,
3954 xtensa_regset_from_core_section): Ditto.
3956 2010-07-01 Tom Tromey <tromey@redhat.com>
3958 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3960 * value.c (value_entirely_optimized_out): Invert result. Update
3961 for new function name.
3963 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3965 Static tracepoints support.
3967 * NEWS: Mention new support for static tracepoints.
3968 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3969 qXfer:statictrace:read.
3970 (New features in the GDB remote stub, GDBserver): Mention static
3971 tracepoints support using an UST based backend.
3972 (New commands): Mention "info static-tracepoint-markers" and
3974 * breakpoint.c (is_marker_spec): New.
3975 (is_tracepoint): Handle static tracepoints.
3976 (validate_commands_for_breakpoint): Static tracepoints can't do
3978 (static_tracepoints_here): New.
3979 (bpstat_what): Handle static tracepoints.
3980 (print_one_breakpoint_location, allocate_bp_location, mention):
3982 (create_breakpoint_sal): Ditto.
3983 (decode_static_tracepoint_spec): New.
3984 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3985 `type_wanted'. Adjust. Handle static tracepoint marker
3987 (break_command_1): Adjust.
3988 (update_static_tracepoint): New.
3989 (update_breakpoint_locations): Handle static tracepoints.
3990 (breakpoint_re_set_one): Handle static tracepoint marker
3992 (disable_command, enable_command): Handle static tracepoints.
3993 (trace_command, ftrace_command): Adjust.
3994 (strace_command): New.
3995 (create_tracepoint_from_upload): Adjust.
3996 (save_breakpoints): Handle static tracepoints.
3997 (_initialize_breakpoint): Install the "strace" command.
3998 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3999 (struct breakpoint): New fields static_trace_marker_id and
4000 static_trace_marker_id_idx.
4001 (breakpoints_here_p): Declare.
4002 (create_breakpoint): Adjust.
4003 (static_tracepoints_here): Declare.
4004 * remote.c (struct remote_state) <static_tracepoints>: New field.
4005 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
4006 (remote_static_tracepoint_marker_at): New.
4007 (remote_static_tracepoint_markers_by_strid): New.
4008 (remote_static_tracepoint_feature): New.
4009 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
4010 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
4011 (remote_supports_static_tracepoints): New.
4012 (remote_download_tracepoint): Download static tracepoints.
4013 (init_remote_ops): Install remote_static_tracepoint_marker_at and
4014 remote_static_tracepoint_markers_by_strid.
4015 (_initialize_remote): Install set|show remote static-tracepoints,
4016 and set|show remote read-sdata-object commands.
4017 * target.c (update_current_target): Inherit and default
4018 to_static_tracepoint_marker_at, and
4019 to_static_tracepoint_markers_by_strid.
4020 * target.h (static_tracepoint_marker): Forward declare.
4021 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
4022 (static_tracepoint_marker_p): New typedef.
4023 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
4024 (struct target_ops): New fields to_static_tracepoint_marker_at and
4025 to_static_tracepoint_markers_by_strid.
4026 (target_static_tracepoint_marker_at)
4027 (target_static_tracepoint_markers_by_strid): New.
4028 * tracepoint.c: Include source.h.
4029 (validate_actionline): Handle $_sdata.
4030 (struct collection_list): New field strace_data.
4031 (add_static_trace_data): New.
4032 (clear_collection_list): Clear strace_data.
4033 (stringify_collection_list): Account for a possible static trace
4035 (encode_actions_1): Encode an $_sdata collection.
4036 (parse_tracepoint_definition): Handle static tracepoints.
4037 (parse_static_tracepoint_marker_definition): New.
4038 (release_static_tracepoint_marker): New.
4039 (print_one_static_tracepoint_marker): New.
4040 (info_static_tracepoint_markers_command): New.
4041 (sdata_make_value): New.
4042 (_initialize_tracepoint): Create the $_sdata convenience variable.
4043 Add the "info static-tracepoint-markers" command.
4044 Mention $_sdata in the "collect" command's help output.
4045 * tracepoint.h (struct static_tracepoint_marker): New.
4046 (parse_static_tracepoint_marker_definition)
4047 (release_static_tracepoint_marker): Declare.
4048 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4049 * python/py-breakpoint.c (bppy_new): Adjust.
4051 2010-06-30 Joel Brobecker <brobecker@adacore.com>
4053 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
4056 2010-06-29 Doug Evans <dje@google.com>
4059 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
4060 DW_AT_external is present.
4064 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
4065 create a symbol for the field and record the value.
4066 (new_symbol): Handle DW_TAG_member.
4067 * gdbtypes.c (field_is_static): Remove FIXME.
4068 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
4069 only ignore LOC_CONST symbols that are enums.
4071 * dwarf2read.c: Remove trailing whitespace.
4073 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
4074 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
4075 (struct main_type, field loc): Delete dwarf_block.
4076 (FIELD_DWARF_BLOCK): Delete.
4077 (SET_FIELD_DWARF_BLOCK): Delete.
4078 (TYPE_FIELD_DWARF_BLOCK): Delete.
4079 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
4082 2010-06-29 Hui Zhu <teawater@gmail.com>
4084 * record.c (set_record_pic_cmdlist,
4085 show_record_pic_cmdlist): New variables.
4086 (set_record_pic_command,
4087 show_record_pic_command): New functions.
4088 (record_pic_function, record_pic_line, record_pic_enum,
4089 set_record_pic_type, record_pic_hide_nofunction,
4090 record_pic_hide_nosource, record_pic_hide_same): New variables.
4091 (record_pic_fputs): New function.
4092 (function_list, node_list, edge_list): New struct.
4093 (function_list, node_list, edge_list): New variables.
4094 (record_pic_cleanups, record_pic_node,
4095 record_pic_edge, cmd_record_pic): New functions.
4096 (_initialize_record): Add new commands for record pic.
4098 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4100 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
4101 ALLOCATE_CPLUS_STRUCT_TYPE.
4103 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
4104 Tom Tromey <tromey@redhat.com>
4105 Thiago Jung Bauermann <bauerman@br.ibm.com>
4107 * value.c (pack_unsigned_long): New function.
4108 (value_from_ulongest): New function.
4109 * value.h (value_from_ulongest): Declare.
4110 * python/python.c (_initialize_python): Call
4111 gdbpy_initialize_thread and gdbpy_initialize_inferior.
4112 * python/python-internal.h: Define thread_object.
4113 (gdbpy_inferiors, gdbpy_selected_thread)
4114 (frame_info_to_frame_object, create_thread_object)
4115 (find_thread_object, find_inferior_object)
4116 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
4117 (gdbpy_is_value_object, get_addr_from_python): Declare.
4118 * python/py-value.c (builtin_type_upylong): Define.
4119 (convert_value_from_python): Add logic for ulongest.
4120 (gdbpy_is_value_object): New function.
4121 * python/py-utils.c (get_addr_from_python): New function.
4122 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
4123 (gdbpy_selected_frame): Use PyObject over frame_info.
4124 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
4126 (SUBDIR_PYTHON_SRCS): Likewise.
4127 (py-inferior.o): New Rule.
4128 (py-infthread.o): New Rule.
4129 * python/py-inferior.c: New File.
4130 * python/py-infthread.c: New File.
4132 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4134 * c-typeprint.c (c_type_print_base): For no fields check include also
4135 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
4136 * dwarf2read.c (struct typedef_field_list)
4137 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
4138 (dwarf2_add_typedef): New.
4139 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
4140 Copy also FI.TYPEDEF_FIELD_LIST.
4141 * gdbtypes.h (struct typedef_field)
4142 (struct cplus_struct_type) <typedef_field, typedef_field_count>
4143 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
4144 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
4146 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4148 * cp-namespace.c (cp_lookup_nested_type): New variable
4149 concatenated_name. Turn the current return condition into a reverse
4150 one. Call also lookup_static_symbol_aux on the constructed qualified
4152 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
4153 other files into a called ...
4154 (lookup_static_symbol_aux): ... new function here.
4155 * symtab.h (lookup_static_symbol_aux): New prototype.
4156 * valops.c (value_maybe_namespace_elt): Call also
4157 lookup_static_symbol_aux if we failed otherwise.
4159 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4161 Fix PR c++/11703 and PR gdb/1448.
4162 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
4165 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4167 Fix modification of cplus_struct_default.
4168 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
4169 Call ALLOCATE_CPLUS_STRUCT_TYPE.
4170 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
4172 2010-06-28 Joel Brobecker <brobecker@adacore.com>
4174 * NEWS: Add entry announcing the python directory.
4176 2010-06-28 Tom Tromey <tromey@redhat.com>
4178 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
4180 2010-06-28 Doug Evans <dje@google.com>
4182 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
4183 All callers updated.
4185 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4187 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
4188 obstack_begin after each obstack_free.
4190 2010-06-27 Doug Evans <dje@google.com>
4192 * value.c (value_static_field): Use `switch' instead of `if'.
4193 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
4195 * valops.c (search_struct_field): Fix typo in error message.
4197 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
4199 * dwarf2expr.c (execute_stack_op): Place preprocessor
4200 directives at the start of the source line.
4202 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
4204 * defs.h (make_command_stats_cleanup): Declare.
4205 (set_display_time): Declare.
4206 (set_display_space): Declare.
4207 * event-top.c (command_handler): Use make_command_stats_cleanup.
4208 * main.c (display_time, display_space): Move definitions to utils.c.
4209 (captured_main): Use make_command_stats_cleanup to get start-up
4211 Use set_display_time and set_display_space for processing OPT_STATISTICS
4213 * maint.c (maintenance_time_display): Use set_display_time.
4214 (maintenance_space_display): Use set_display_space.
4215 * top.c (execute_command): Remove obsolete 'maint time' code.
4216 (command_loop): Use make_command_stats_cleanup.
4217 * utils.c (struct cmd_stats): Structure for storing initial time
4219 (display_time, display_space): Move definitions here from utils.c.
4220 (set_display_time): New function.
4221 (set_display_space): New function.
4222 (make_command_stats_cleanup): New function.
4223 (report_command_stats): New auxiliary function for
4224 make_command_stats_cleanup.
4226 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4228 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
4229 hosts where CORE_ADDR is long long.
4231 2010-06-25 Tom Tromey <tromey@redhat.com>
4234 * python/python.c (execute_gdb_command): Add keywords. Accept
4235 "to_string" argument.
4236 (struct restore_ui_file_closure): New.
4237 (restore_ui_file): New function.
4238 (make_cleanup_restore_ui_file): Likewise.
4239 (GdbMethods) <execute>: Update.
4241 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4243 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
4244 during inferior call stack frame setup.
4246 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
4248 * solib-spu.c: Include "exception.h".
4249 (ocl_program_data_key): New variable.
4250 (append_ocl_sos): New function.
4251 (ocl_enable_break): Likewise.
4252 (spu_current_sos): Call append_ocl_sos.
4253 (spu_solib_loaded): Call ocl_enable_break.
4254 (_initialize_spu_solib): Register ocl_program_data_key.
4256 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4258 * cp-support.c (reset_directive_searched): New function.
4259 (make_symbol_overload_list_using): Prevent recursive calls.
4261 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
4263 * printcmd.c (print_variable_and_value): Print error message on
4266 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4268 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
4270 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
4272 (dwarf_expr_push): Change input type to ULONGEST.
4273 (dwarf_expr_fetch): Change return type to ULONGEST.
4274 (dwarf_expr_fetch_address): Add prototype.
4275 (dwarf2_read_address): Remove prototype.
4276 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
4277 Truncate stack values to ctx->addr_size bytes.
4278 (dwarf_expr_fetch): Change return value to ULONGEST.
4279 (dwarf_expr_fetch_address): New function.
4280 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
4281 when appropriate. Update for struct dwarf_expr_piece changes.
4282 (dwarf2_read_address): Remove.
4283 (unsigned_address_type): Remove.
4284 (signed_address_type): Remove.
4285 (execute_stack_op): Use dwarf_expr_fetch_address instead of
4286 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
4287 values. Perform operations on ULONGEST instead of on GDB values,
4288 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
4289 values and DW_OP_deref results as unsigned integers.
4290 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
4292 (write_pieced_value): Likewise.
4293 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
4294 dwarf_expr_fetch when appropriate.
4295 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
4296 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
4297 instead of dwarf_expr_fetch when appropriate.
4299 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
4301 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
4303 2010-06-24 Joel Brobecker <brobecker@adacore.com>
4305 * python/python.c (_initialize_python): Add new "constant"
4306 PYTHONDIR in gdb module. Insert this path at the head of
4307 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
4308 exec its __init__.py script if it exists in that directory.
4310 2010-06-24 Kevin Buettner <kevinb@redhat.com>
4312 * rx-tdep.c (RX_ACC_REGNUM): Define.
4313 (RX_NUM_REGS): Redefine to 26.
4314 (rx_register_name): Add register "acc". Change order of several
4315 registers. Change name of "vct" register to "fintv" to match RX
4317 (rx_register_type): Add case for RX_ACC_REGNUM.
4319 2010-06-24 Tom Tromey <tromey@redhat.com>
4321 * psymtab.c (lookup_partial_symbol): Mark definition as static.
4323 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4324 Tom Tromey <tromey@redhat.com>
4326 Fix GDB startup on readonly filesystem.
4327 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
4329 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4330 Pedro Alves <pedro@codesourcery.com>
4333 * breakpoint.c (handle_jit_event): New function.
4334 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
4335 jit, err, table and bs_class. New variables shlib_event, jit_event,
4336 this_action and bptype. Change bs_class assignments to this_action
4337 assignments. new unhandled bptype internal error. Move here
4338 shlib_event and jit_event handling from handle_inferior_event.
4339 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
4340 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
4341 BPSTAT_WHAT_CHECK_JIT.
4342 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
4343 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
4344 (handle_inferior_event): Reinitialize frame and gdbarch after
4345 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
4346 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
4347 gdbarch when frame gets reinitialized.
4349 2010-06-24 Hui Zhu <teawater@gmail.com>
4351 * printcmd.c (ui_printf): New function.
4352 (printf_command): Call ui_printf.
4353 (_initialize_printcmd): New command "eval".
4355 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
4357 * infrun.c (handle_inferior_event): Handle presence of single-step
4358 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
4359 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
4360 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
4361 * breakpoint.c (detach_single_step_breakpoints): New function.
4362 (detach_breakpoints): Call it.
4363 (cancel_single_step_breakpoints): New function.
4364 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
4366 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
4367 (spu_gdbarch_init): Install it.
4369 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4371 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
4372 * configure: Regenerate.
4374 2010-06-22 Hui Zhu <teawater@gmail.com>
4376 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
4377 (i386_process_record): Ditto.
4378 * record.c (record_memory_query): New variable.
4379 (_initialize_record): New command "set record memory-query".
4380 * record.h (record_memory_query): New extern.
4382 2010-06-21 Doug Evans <dje@google.com>
4384 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
4385 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
4386 (i386_syscall_p): Change type of lengthp to int.
4387 (i386_displaced_step_fixup): Handle kernels that run one past a
4389 * i386-linux-tdep.c (i386_linux_init_abi): Use
4390 i386_displaced_step_copy_insn instead of
4391 simple_displaced_step_copy_insn.
4393 2010-06-21 Tom Tromey <tromey@redhat.com>
4395 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
4396 (dwarf_type_encoding_name): Likewise.
4398 2010-06-21 Tom Tromey <tromey@redhat.com>
4400 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
4401 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
4402 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
4403 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
4404 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
4405 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
4406 * dwarf2read.c (tag_type_to_type): Create a new error type on
4408 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
4409 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
4411 2010-06-21 Michael Snyder <msnyder@vmware.com>
4413 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
4414 not add_abbrev_prefix_cmd, for "enable breakpoints".
4416 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
4418 * dwarf2loc.c (find_location_expression): Add relocation offset
4419 to base-address-selection entry base addresses. Read addresses
4420 (and offsets) as signed/unsigned integers, depending on the
4421 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
4422 (loclist_describe_location): Likewise.
4423 (disassemble_dwarf_expression): Read DW_OP_addr operand as
4424 unsigned integer. Do not call dwarf2_read_address.
4425 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
4427 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4429 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
4430 value instead of hard-coded SPU_LS_SIZE.
4431 (spu_software_single_step): Likewise.
4432 * spu-tdep.h (SPU_LS_SIZE): Remove.
4434 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4436 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
4437 limit on local store memory accesses.
4438 * spu-linux-nat.c (spu_xfer_partial): Likewise.
4439 * spu-tdep.c (spu_lslr): Remove.
4440 (spu_pointer_to_address): Do not truncate addresses.
4441 (spu_integer_to_address): Likewise.
4442 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
4443 * spu-tdep.h: Add comments.
4444 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
4445 (SPU_OVERLAY_LMA): Define.
4447 2010-06-18 Stan Shebs <stan@codesourcery.com>
4449 * osdata.c (get_osdata): Warn separately if target does not report
4451 (info_osdata_command): Allow empty type, report error if target
4452 does not return available types of OS data.
4453 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
4454 types if no annex supplied.
4456 * thread.c (thread_id_make_value): Make a value representing the
4458 (_initialize_thread): Create $_thread.
4460 2010-06-17 Joel Brobecker <brobecker@adacore.com>
4462 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
4463 last local variable declaration. No real code change.
4465 2010-06-17 Tom Tromey <tromey@redhat.com>
4467 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
4468 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
4471 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
4472 Jan Kratochvil <jan.kratochvil@redhat.com>
4474 * breakpoint.c: Include parser-defs.h.
4475 (watchpoint_exp_is_const): New function.
4476 (watch_command_1): Call watchpoint_exp_is_const to check
4477 if the expression is constant.
4479 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
4481 * configure.ac: Check for RDYNAMIC also for cross builds.
4482 * configure: Regenerate.
4484 2010-06-15 Pedro Alves <pedro@codesourcery.com>
4486 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4487 (SFILES): Remove solib-null.c, add solib-target.c.
4488 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
4489 (ALLDEPFILES): Remove solib-target.c.
4490 * solib-target.c (_initialize_solib_target): Set
4491 current_target_so_ops to solib_target_so_ops if not already set.
4492 * solib-null.c: Delete.
4494 2010-06-14 Pedro Alves <pedro@codesourcery.com>
4496 * NEWS: Mention GDBserver's JIT compilation of tracepoint
4499 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4501 * cp-valprint.c (cp_print_static_field): Members of
4502 dont_print_stat_array_obstack are of type "struct type *".
4503 (_initialize_cp_valprint): Likewise.
4505 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4507 * frame.c (frame_register_unwind): Do not access contents
4508 of "optimized out" unwound register value.
4510 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4512 * ada-lang.h (ada_print_type): Make varstring const.
4513 * ada-typeprint.c (print_func_type): Make name const.
4514 (ada_print_type): Make varstring const.
4515 * c-lang.h (c_print_type): Make varstring const.
4516 * c-typeprint.c (c_print_type): Likewise.
4517 * f-lang.h (f_print_type): Likewise.
4518 * f-typeprint.c (f_print_type): Likewise.
4519 * jv-lang.h (java_print_type): Likewise.
4520 * jv-typeprint.c (java_print_type): Likewise.
4521 * language.c (unk_lang_print_type): Likewise.
4522 * language.h (struct language_defn) <la_print_type>: Likewise.
4523 * m2-lang.h (m2_print_type): Likewise.
4524 * m2-typeprint.c (m2_print_type): Likewise.
4525 * p-lang.h (pascal_print_type): Likewise.
4526 * p-typeprint.c (pascal_print_type): Likewise.
4528 2010-06-11 Stan Shebs <stan@codesourcery.com>
4530 Add per-operation permission flags.
4532 * target.h (struct target_ops): New method to_set_permissions.
4533 (target_set_permissions): New macro.
4534 (target_insert_breakpoint): Change macro to function.
4535 (target_remove_breakpoint): Ditto.
4536 (target_stop): Ditto.
4537 (may_write_registers): Declare.
4538 (may_write_memory): Declare.
4539 (may_insert_breakpoints): Declare.
4540 (may_insert_tracepoints): Declare.
4541 (may_insert_fast_tracepoints): Declare.
4542 (may_stop): Declare.
4543 * target.c (may_write_registers, may_write_registers_1): New globals.
4544 (may_write_memory, may_write_memory_1): New globals.
4545 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
4546 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
4547 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
4549 (may_stop, may_stop_1): New global.
4550 (target_xfer_partial): Test for write permission.
4551 (target_store_registers): Ditto.
4552 (target_insert_breakpoint): New function.
4553 (target_remove_breakpoint): New function.
4554 (target_stop): New function.
4555 (_initialize_targets): Add new set/show variables.
4556 (set_write_memory_permission): New function.
4557 (update_target_permissions): New function.
4558 (set_target_permissions): New function.
4559 (update_current_target): Default to_set_permissions.
4560 (_initialize_targets): Use new globals and setter function.
4561 * tracepoint.c (start_tracing): Test for permission.
4562 * inferior.h (update_observer_mode): Declare.
4563 * infrun.c (non_stop_1): Define earlier.
4564 (observer_mode, observer_mode_1): New globals.
4565 (set_observer_mode, show_observer_mode): New functions.
4566 (update_observer_mode): New function.
4567 (_initialize_infrun): Define "set observer" command.
4568 * remote.c (PACKET_QAllow): New optional packet.
4569 (remote_protocol_features): Add QAllow.
4570 (remote_set_permissions): New function.
4571 (remote_start_remote): Call it.
4572 (init_remote_ops): Add it to target vector.
4573 (_initialize_remote): Add config command for QAllow.
4575 2010-06-11 Tom Tromey <tromey@redhat.com>
4577 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
4578 DW_AT_vtable_elem_location even when GCC extension is seen.
4580 2010-06-11 Tom Tromey <tromey@redhat.com>
4582 PR gdb/9977, PR exp/11636:
4583 * value.h (value_offset): Update.
4584 (struct lval_funcs) <check_validity>: New field.
4585 <copy_closure>: Make argument const.
4586 (value_computed_closure): Update.
4587 (value_contents_for_printing): Declare.
4588 (value_bits_valid): Likewise.
4589 (val_print): Likewise.
4590 (set_value_component_location): Update.
4591 (value_entirely_optimized_out): Declare.
4592 * value.c (value_offset): Argument now const.
4593 (require_not_optimized_out): New function.
4594 (value_contents_for_printing): New function.
4595 (value_contents_all): Call require_not_optimized_out.
4596 (value_contents): Likewise.
4597 (value_bits_valid): New function.
4598 (value_computed_closure): Argument now const.
4599 (set_value_component_location): Make 'whole' argument const.
4600 (value_entirely_optimized_out): New function.
4601 (value_bitsize): Argument now 'const'.
4602 (value_bitpos): Likewise.
4603 (value_type): Likewise.
4604 * valprint.h (val_print_array_elements): Update.
4605 * valprint.c (val_print): Add 'val' argument. Use
4606 valprint_check_validity.
4607 (valprint_check_validity): New function.
4608 (value_check_printable): Use value_entirely_optimized_out.
4609 (common_val_print): Update.
4610 (value_print): Likewise.
4611 (val_print_array_elements): Add 'val' argument.
4612 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
4613 value_bits_valid. Reinit frame cache for lval_computed.
4614 * sh64-tdep.c (sh64_do_register): Update.
4615 * scm-valprint.c (scm_val_print): Add 'val' argument.
4616 * scm-lang.h (scm_val_print): Update.
4617 * python/python.h (apply_val_pretty_printer): Update.
4618 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
4619 argument. Call set_value_component_location.
4620 * printcmd.c (print_scalar_formatted): Update.
4621 * p-valprint.c (pascal_val_print): Add 'val' argument.
4622 (pascal_object_print_value_fields): Likewise.
4623 (pascal_object_print_value): Likewise.
4624 (pascal_object_print_static_field): Update.
4625 * p-lang.h (pascal_val_print): Update.
4626 (pascal_object_print_value_fields): Update.
4627 * mt-tdep.c (mt_registers_info): Update.
4628 * mi/mi-main.c (get_register): Update.
4629 (mi_cmd_data_evaluate_expression): Use common_val_print.
4630 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4631 (m2_print_unbounded_array): Likewise.
4632 (m2_val_print): Likewise.
4633 * m2-lang.h (m2_val_print): Update.
4634 * language.h (struct language_defn) <la_val_print>: Add 'val'
4636 (LA_VAL_PRINT): Likewise.
4637 * language.c (unk_lang_val_print): Add 'val' argument.
4638 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4639 (java_val_print): Likewise.
4640 * jv-lang.h (java_val_print): Add 'val' argument.
4641 * infcmd.c (default_print_registers_info): Update.
4642 * f-valprint.c (f77_print_array_1): Add 'val' argument.
4643 (f77_print_array): Likewise.
4644 (f_val_print): Likewise.
4645 * f-lang.h (f_val_print): Add 'val' argument.
4646 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4648 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
4649 set_value_optimized_out.
4650 (write_pieced_value): Use value_bitsize and value_bitpos.
4651 <default>: Don't exit loop.
4652 (check_pieced_value_validity): New function.
4653 (pieced_value_funcs): Reference check_pieced_value_validity,
4654 check_pieced_value_invalid.
4655 (copy_pieced_value_closure): Update.
4656 (check_pieced_value_bits): New function.
4657 (check_pieced_value_invalid): New function.
4658 * d-valprint.c (dynamic_array_type): Add 'val' argument.
4659 (d_val_print): Likewise.
4660 * d-lang.h (d_val_print): Update.
4661 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4662 (cp_print_value_fields_rtti): Likewise.
4663 (cp_print_value): Likewise.
4664 (cp_print_static_field): Update.
4665 * c-valprint.c (c_val_print): Add 'val' argument.
4666 (c_value_print): Update.
4667 * c-lang.h (c_val_print): Update.
4668 (cp_print_value_fields): Likewise.
4669 (cp_print_value_fields_rtti): Likewise.
4670 * ada-valprint.c (struct ada_val_print_args): Remove.
4671 (val_print_packed_array_elements): Add 'val' argument.
4672 (ada_val_print): Likewise. Rewrite.
4673 (ada_val_print_stub): Remove.
4674 (ada_val_print_array): Add 'val' argument.
4675 (ada_val_print_1): Likewise.
4676 (print_variant_part): Likewise.
4677 (ada_value_print): Update.
4678 (print_record): Add 'val' argument.
4679 (print_field_values): Likewise.
4680 * ada-lang.h (ada_val_print): Update.
4682 2010-06-11 Tom Tromey <tromey@redhat.com>
4684 * vec.h (VEC_cleanup): New macro.
4685 (DEF_VEC_ALLOC_FUNC_I): Update.
4686 (DEF_VEC_ALLOC_FUNC_P): Likewise.
4687 (DEF_VEC_ALLOC_FUNC_O): Likewise.
4688 * dwarf2loc.c (struct axs_var_loc): Remove.
4689 (unimplemented): New function.
4690 (translate_register): Likewise.
4691 (access_memory): Likewise.
4692 (compile_dwarf_to_ax): Likewise.
4693 (dwarf2_tracepoint_var_loc): Remove.
4694 (dwarf2_tracepoint_var_access): Likewise.
4695 (dwarf2_tracepoint_var_ref): Likewise.
4696 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4697 (loclist_tracepoint_var_ref): Likewise.
4698 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4699 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4700 require_composition. No longer static.
4701 (execute_stack_op): Update.
4702 * ax-gdb.h (trace_kludge): Declare.
4704 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4706 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4707 (should_be_inserted): Return zero also on NULL OWNER.
4708 (breakpoint_program_space_exit): New OWNER comment.
4709 (insert_breakpoint_locations): Extend comment for OWNER.
4710 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4711 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4713 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4714 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4715 (bpstat_check_location): New assert on OWNER.
4716 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4717 and B initializations to the code block. New assert on them.
4718 (print_one_breakpoint_location): New OWNER comment.
4719 (watchpoint_locations_match): Assert on OWNER.
4720 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4721 initializations to the code block. New assert on OWNER.
4722 (set_breakpoint_location_function): New assert on OWNER.
4723 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4724 (bp_location_compare, update_global_location_list)
4725 (update_global_location_list): New OWNER comment.
4727 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4729 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4731 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4733 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4734 (lin_thread_get_thread_signals): Remove prototype.
4735 (GET_THREAD_SIGNALS): Remove.
4736 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4737 * linux-thread-db.c (check_thread_signals): Directly call
4738 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4740 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4742 * gregset.h (GDB_FPXREGSET_T): Remove.
4743 (gdb_fpxregset_t): Likewise.
4744 (supply_fpxregset): Remove prototype.
4745 (fill_fpxregset): Likewise.
4746 * i386-linux-nat.c (supply_fpxregset): Remove.
4747 (fill_fpxregset): Likewise.
4748 (fetch_fpxregs): Inline supply_fpxregset call.
4749 (store_fpxregs): Inline fill_fpxregset call.
4751 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4752 * config/i386/nm-linux.h: Remove file.
4754 2010-06-09 Michael Snyder <msnyder@vmware.com>
4756 * target.c (update_current_target): Fix spelling error in comment.
4757 (target_mourn_inferior): Fix spelling error in error message.
4759 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4761 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4762 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4764 2010-06-08 Michael Snyder <msnyder@vmware.com>
4766 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4768 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4770 * configure.ac <"${have_libpython}" != no>: New workaround of
4772 * configure: Regenerate.
4774 2010-06-08 Hui Zhu <teawater@gmail.com>
4776 * record.c (record_wait): Move signal out of replay code.
4778 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4781 * dwarf2-frame.c (no_dwarf_call): New function.
4782 (execute_stack_op): Set CTX->DWARF_CALL.
4783 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4784 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4785 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4786 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4787 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4788 (needs_frame_dwarf_call): New function.
4789 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4790 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4791 Update the comment. Move variables die, offset and error call to ...
4792 (follow_die_ref): ... a new function.
4793 (dwarf2_fetch_die_location_block): New function.
4794 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4796 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4798 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4799 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4800 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4801 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4803 (struct needs_frame_baton): New field per_cu.
4804 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4805 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4807 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4809 * cp-support.c (make_symbol_overload_list_namespace): Only search
4810 static and global blocks.
4811 (make_symbol_overload_list_block): New function.
4812 (make_symbol_overload_list): Separate namespace search from block
4814 (make_symbol_overload_list_qualified): Use
4815 make_symbol_overload_list_block.
4817 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4819 * value.h: Created oload_search_type enum.
4820 (find_overload_match): Use oload_search_type enum.
4821 * valops.c (find_overload_match): Support combined member and
4823 * eval.c (evaluate_subexp_standard): Calls to
4824 find_overload_match now use oload_search_type enum.
4825 (oload_method_static): Verify index is a proper value.
4826 * valarith.c (value_user_defined_cpp_op): Search for and handle
4827 both member and non-member operators.
4828 (value_user_defined_cpp_op): New function.
4829 (value_user_defined_op): New function.
4830 (value_x_unop): Use value_user_defined_op.
4831 (value_x_binop): Ditto.
4832 * cp-support.c (make_symbol_overload_list_using): Added block
4834 Add check for namespace aliases and imported declarations.
4836 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4838 * breakpoint.h (owner): Extend the comment.
4840 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4842 Clear stale specific bp_location from former whole breakpoint.
4843 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4845 (free_bp_location): ... here. Rename there the called function to
4846 bpstat_remove_bp_location_callback.
4847 (bpstat_remove_breakpoint_callback): Rename to ...
4848 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4849 to struct bp_location. Change the called function to
4850 bpstat_remove_bp_location. Create new declaration for the function.
4851 (bpstat_remove_breakpoint): Rename to ...
4852 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4853 code for the new parameter type.
4855 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4857 * README: Make version-agnostic.
4859 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4861 Fix duplicate types for single DIE.
4862 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4864 (read_array_type): Remove type initialization. Recheck get_die_type
4865 after initial die_type. Move set_die_type before set_descriptive_type.
4866 (read_set_type): New variable domain_type. Recheck get_die_type after
4867 initial die_type. Move attr initialization later.
4868 (read_tag_pointer_type, read_tag_reference_type): New variable
4869 target_type. Recheck get_die_type after initial die_type.
4870 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4871 die_type and die_containing_type.
4872 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4873 Recheck get_die_type after initial die_type.
4874 (read_subrange_type): Recheck get_die_type after initial die_type.
4875 Move set_die_type before set_descriptive_type.
4876 (set_die_type): Extend the function comment. Call complaint if DIE has
4877 some type already set.
4879 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4881 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4882 for current naming of thread groups (iN, not N).
4884 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4886 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4887 * parse.c (operator_length): Likewise.
4888 (operator_length_standard): Likewise.
4889 * parser-defs.h (operator_length): Likewise.
4890 (operator_length_standard): Likewise.
4891 (struct exp_descriptor <operator_length>): Likewise.
4893 2010-06-04 Doug Evans <dje@google.com>
4895 Add support for enabling/disabling individual pretty-printers.
4896 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4897 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4898 * python/python.c (gdbpy_enabled_cst): Define.
4899 (_initialize_python): Initialize gdbpy_enabled_cst.
4902 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4904 * breakpoint.c (update_global_location_list): Fix comment typo.
4906 2010-06-04 Hui Zhu <teawater@gmail.com>
4908 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4910 2010-06-03 Doug Evans <dje@google.com>
4912 * configure.ac: Don't fail if python is unusable when
4913 configured with --with-python=auto.
4914 * configure: Regenerate.
4916 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4918 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
4920 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4922 * valprint.h (get_array_bounds): Change low and high parameter types
4924 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
4926 (val_print_array_elements): Adapt to change above.
4927 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4928 * p-valprint.c (pascal_val_print): Likewise.
4930 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4932 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4933 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4936 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4938 Support DW_TAG_module as separate namespaces.
4939 * dwarf2read.c (typename_concat): New parameter physname.
4940 (read_module_type): New function and declaration.
4941 (scan_partial_symbols): Scan also DW_TAG_module children.
4942 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4943 to typename_concat backward compatible physname value 0.
4944 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4945 backward compatible physname value 0.
4946 (add_partial_module, read_module): Remove FIXME comment.
4947 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4948 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4949 DIEs under DW_TAG_module.
4950 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4951 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4952 && physname and return there instead of just setting NAME. Extend
4953 the main block for language_fortran. Pass physname parameter to the
4954 typename_concat call.
4955 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4956 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4957 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4958 missing from SYMBOL_SET_NAMES in the language_fortran case.
4959 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4961 (read_type_die) <DW_TAG_module>: New.
4962 (MAX_SEP_LEN): Increase to 7.
4963 (typename_concat): New parameter physname. New variable lead. Support
4964 also language_fortran.
4965 * f-exp.y (yylex): Consider : also as a symbol name character class.
4966 * f-lang.c: Include cp-support.h.
4967 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4968 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4969 f_word_break_characters and f_make_symbol_completion_list.
4970 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4971 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4972 * symtab.c (symbol_init_language_specific): Support language_fortran.
4973 (symbol_find_demangled_name): New comment on language_fortran.
4974 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4975 for language_fortran.
4976 (lookup_symbol_aux_local): Check imports also for language_fortran.
4977 (default_make_symbol_completion_list): Rename to ...
4978 (default_make_symbol_completion_list_break_on): ... this name. New
4979 parameter break_on, use it.
4980 (default_make_symbol_completion_list): New stub.
4981 * symtab.h (default_make_symbol_completion_list_break_on): New
4984 2010-06-02 Joel Brobecker <brobecker@adacore.com>
4986 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4989 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4991 * dwarf2read.c (typename_concat): Add const to the variable sep.
4993 2010-06-02 Tom Tromey <tromey@redhat.com>
4995 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4996 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4997 type is const. Add 'def' argument. Add missing operators, remove
4999 (decode_locdesc): Update.
5000 (dwarf2_always_disassemble): New global.
5001 (show_dwarf2_always_disassemble): New function.
5002 (_initialize_dwarf2_read): Add always-disassemble.
5003 (dwarf2_per_cu_offset_size): New function.
5004 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
5005 (piece_end_p): New function.
5006 (locexpr_describe_location_piece): Replace 'size' argument with
5007 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
5008 some constants. Remove errors.
5009 (disassemble_dwarf_expression): New function.
5010 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
5011 Add 'offset_size' argument.
5012 (loclist_describe_location): Change output formatting.
5013 * dwarf2expr.h (dwarf_stack_op_name): Declare.
5015 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
5017 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
5018 anonymous type case.
5020 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
5022 * dwarf2read.c (read_subrange_type): Handle missing base type
5023 according to Dwarf-2 specifications.
5025 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
5027 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
5029 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
5030 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
5031 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
5032 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
5033 UNOP_CHMAX, UNOP_CHMIN.
5034 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
5035 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
5036 UNOP_CHMIN>: Remove opcodes.
5038 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
5040 * dwarf2read.c (read_func_scope): Do not complain for
5041 external function if bounds are not found.
5043 2010-06-01 Pedro Alves <pedro@codesourcery.com>
5045 * NEWS: Mention gdbserver fast tracepoints support.
5047 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
5049 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
5051 (windows_set_console_info): New function.
5052 (windows_create_inferior): Call windows_set_console_info
5053 if NEW_CONSOLE is true.
5054 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
5055 (_initialize_loadable): Initialize GetConsoleFontSize and
5056 GetCurrentConsoleFont.
5058 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5060 * Makefile.in (RDYNAMIC): New.
5061 (SFILES): Add proc-service.list.
5062 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
5063 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
5064 * config/arm/linux.mh: Likewise.
5065 * config/i386/linux.mh: Likewise.
5066 * config/i386/linux64.mh: Likewise.
5067 * config/ia64/linux.mh: Likewise.
5068 * config/m32r/linux.mh: Likewise.
5069 * config/m68k/linux.mh: Likewise.
5070 * config/mips/linux.mh: Likewise.
5071 * config/pa/linux.mh: Likewise.
5072 * config/powerpc/linux.mh: Likewise.
5073 * config/powerpc/ppc64-linux.mh: Likewise.
5074 * config/s390/s390.mh: Likewise.
5075 * config/sparc/linux.mh: Likewise.
5076 * config/sparc/linux64.mh: Likewise.
5077 * config/xtensa/linux.mh: Likewise.
5078 * configure.ac: New RDYNAMIC on native host and GCC.
5079 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
5080 * configure: Regenerate.
5081 * proc-service.list: New.
5083 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5085 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
5088 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5090 * linux-nat.c (linux_nat_wait_1): Do not call
5091 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
5092 TARGET_WAITKIND_SIGNALLED.
5094 2010-05-27 Joel Brobecker <brobecker@adacore.com>
5096 * ada-lang.c (ada_inferior_data): New struct.
5097 (ada_inferior_data): New static global.
5098 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
5099 (ada_get_tsd_type): New functions.
5100 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
5101 to look the tsd type up.
5102 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
5103 event. Set ada_inferior_data.
5105 2010-05-27 Pedro Alves <pedro@codesourcery.com>
5107 * remote.c (unpack_varlen_hex): Remove forward declaration.
5108 (remote_console_output): Make static, and add forward declaration.
5109 * remote.h: Drop FIXME comment.
5110 (unpack_varlen_hex): Declare.
5111 (remote_console_output, remote_cisco_objfile_relocate)
5112 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
5113 Delete declarations.
5114 * tracepoint.c: Include "remote.h".
5115 (unpack_varlen_hex): Delete declaration.
5117 2010-05-27 Tom Tromey <tromey@redhat.com>
5119 * dwarf2loc.c (struct piece_closure) <refc>: New field.
5120 (allocate_piece_closure): Initialize refc.
5121 (copy_pieced_value_closure): Use refc.
5122 (free_pieced_value_closure): Likewise.
5124 2010-05-27 Tom Tromey <tromey@redhat.com>
5126 * arm-tdep.c (push_stack_item): 'contents' now const.
5127 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
5128 value_contents_writeable. Introduce new temporary.
5130 2010-05-27 Tom Tromey <tromey@redhat.com>
5132 * findcmd.c (parse_find_args): Use value_contents, not
5135 2010-05-27 Tom Tromey <tromey@redhat.com>
5137 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
5138 const. Use value_contents, not value_contents_writeable.
5140 2010-05-27 Joel Brobecker <brobecker@adacore.com>
5142 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
5143 by call to value_contents.
5145 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
5147 * MAINTAINERS: Add myself for write after approval privileges.
5149 2010-05-26 Doug Evans <dje@google.com>
5151 Allow python to find its files if moved from original location.
5152 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
5153 (GDB_AC_WITH_DIR): Call it.
5154 * configure.ac: Define WITH_PYTHON_PATH if we can find the
5155 python installation directory.
5156 * config.in: Regenerate.
5157 * configure: Regenerate.
5158 * defs.h (python_libdir): Declare.
5159 * main.c (python_libdir): Define.
5160 (captured_main): Initialize python_libdir.
5161 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
5162 call Py_SetProgramName to make sure python can find its libraries
5165 * configure.ac: Try to use python's distutils to fetch compilation
5167 * configure: Regenerate.
5168 * python/python-config.py: New file.
5170 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
5172 * ser-tcp.c (net_open): Check error return from socket() call by its
5173 equality to -1 not by it being negative.
5174 (net_close): Likewise.
5176 2010-05-26 Pedro Alves <pedro@codesourcery.com>
5178 * NEWS: Mention the `qRelocInsn' feature.
5179 * gdbarch.sh (relocate_instruction): New.
5180 * amd64-tdep.c (rip_relative_offset): New.
5181 (append_insns): New.
5182 (amd64_relocate_instruction): New.
5183 (amd64_init_abi): Install it.
5184 * i386-tdep.c (append_insns): New.
5185 (i386_relocate_instruction): New.
5186 (i386_gdbarch_init): Install it.
5187 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
5188 * gdbarch.h, gdbarch.c: Regenerate.
5190 2010-05-26 Tom Tromey <tromey@redhat.com>
5192 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
5193 (struct dwarf2_loclist_baton) <data>: Likewise.
5194 * dwarf2loc.c (find_location_expression): Constify return type.
5195 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
5196 (dwarf2_loc_desc_needs_frame): Likewise.
5197 (loclist_read_variable): Constify.
5198 (loclist_describe_location): Likewise.
5199 (loclist_tracepoint_var_ref): Likewise.
5201 2010-05-25 Tom Tromey <tromey@redhat.com>
5203 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
5204 (dwarf_expr_frame_base_1): Likewise.
5205 (read_pieced_value): Update.
5206 (needs_frame_frame_base): Constify.
5207 (dwarf2_tracepoint_var_loc): Likewise.
5208 (dwarf2_tracepoint_var_access): Likewise.
5209 (locexpr_describe_location_piece): Likewise.
5210 (locexpr_describe_location_1): Likewise.
5211 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
5214 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
5215 (dwarf_expr_eval, read_uleb128, read_sleb128)
5216 (dwarf2_read_address): Update.
5217 * dwarf2expr.c (dwarf_expr_eval): Constify.
5218 (read_uleb128): Likewise.
5219 (read_sleb128): Likewise.
5220 (dwarf2_read_address): Likewise.
5221 (require_composition): Likewise.
5222 (execute_stack_op): Likewise.
5223 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
5225 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
5227 (no_get_frame_base): Constify.
5228 (execute_stack_op): Likewise.
5229 (execute_cfa_program): Likewise.
5230 (read_encoded_value): Likewise.
5232 2010-05-25 Doug Evans <dje@google.com>
5234 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
5236 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
5237 * event-loop.c: ... here.
5238 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
5239 `error' for clarity.
5240 (tui_getc): Pass correct value for `error' parameter to
5241 tui_readline_output.
5243 Add python gdb.GdbError and gdb.string_to_argv.
5244 * NEWS: Document them.
5245 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
5246 the exception is gdb.GdbError. Print a second traceback if there's
5247 an error computing the error message.
5248 (gdbpy_string_to_argv): New function.
5249 * python/py-utils.c (gdbpy_obj_to_string): New function.
5250 (gdbpy_exception_to_string): New function.
5251 * python/python-internal.h (gdbpy_string_to_argv): Declare.
5252 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
5253 (gdbpy_gdberror_exc): Declare.
5254 * python/python.c (gdbpy_gdberror_exc): New global.
5255 (_initialize_python): Initialize gdbpy_gdberror_exc and create
5257 (GdbMethods): Add string_to_argv.
5259 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5261 * windows-nat.c (display_selector): Call GetLastError to give better
5262 failure explanation.
5264 2010-05-24 Pedro Alves <pedro@codesourcery.com>
5266 * config.in: Regenerate.
5268 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5271 * target.c (push_target): Return only void. Remove the return value
5273 * target.h (push_target): Return only void.
5275 2010-05-23 Pedro Alves <pedro@codesourcery.com>
5277 Update gnulib from latest git.
5278 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5280 * gnulib/memcmp.c: Removed.
5281 * gnulib/memchr.valgrind: New.
5282 * gnulib/stddef.in.h: New.
5283 * gnulib/Makefile.am: Updated.
5284 * gnulib/memchr.c: Updated.
5285 * gnulib/memmem.c: Updated.
5286 * gnulib/stdint.in.h: Updated.
5287 * gnulib/str-two-way.h: Updated.
5288 * gnulib/string.in.h: Updated.
5289 * gnulib/wchar.in.h: Updated.
5291 * gnulib/extra/link-warning.h: Removed.
5292 * gnulib/extra/c++defs.h: New.
5293 * gnulib/extra/warn-on-use.h: New.
5294 * gnulib/extra/arg-nonnull.h: Updated.
5296 * gnulib/m4/extensions.m4: Updated.
5297 * gnulib/m4/gnulib-cache.m4: Updated.
5298 * gnulib/m4/gnulib-common.m4: Updated.
5299 * gnulib/m4/gnulib-comp.m4: Updated.
5300 * gnulib/m4/gnulib-tool.m4: Updated.
5301 * gnulib/m4/include_next.m4: Updated.
5302 * gnulib/m4/longlong.m4: Updated.
5303 * gnulib/m4/memchr.m4: Updated.
5304 * gnulib/m4/memmem.m4: Updated.
5305 * gnulib/m4/stdint.m4: Updated.
5306 * gnulib/m4/string_h.m4: Updated.
5307 * gnulib/m4/memcmp.m4: Removed.
5308 * gnulib/m4/onceonly_2_57.m4: Removed.
5309 * gnulib/m4/00gnulib.m4: New.
5310 * gnulib/m4/mmap-anon.m4: New.
5311 * gnulib/m4/multiarch.m4: New.
5312 * gnulib/m4/onceonly.m4: New.
5313 * gnulib/m4/stddef_h.m4: New.
5314 * gnulib/m4/warn-on-use.m4: New.
5315 * gnulib/m4/wchar.m4: Removed.
5316 * gnulib/m4/wchar_h.m4: New.
5317 * gnulib/m4/wchar_t.m4: New.
5318 * gnulib/m4/wint_t.m4: New.
5320 * aclocal.m4: Regenerate.
5321 * config.in: Likewise.
5322 * configure: Likewise.
5323 * gnulib/Makefile.in: Likewise.
5325 2010-05-21 Tom Tromey <tromey@redhat.com>
5327 * dwarf2loc.c (extract_bits_primitive): New function.
5328 (extract_bits): Likewise.
5329 (insert_bits): Likewise.
5330 (copy_bitwise): Likewise.
5331 (read_pieced_value): Do all operations in bits.
5332 (write_pieced_value): Likewise.
5333 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
5334 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
5335 Always use xrealloc to resize piece array.
5336 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
5337 <DW_OP_piece>: Update.
5338 <DW_OP_bit_piece>: New case.
5340 2010-05-21 Tom Tromey <tromey@redhat.com>
5342 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
5343 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
5344 * dwarf2expr.h (enum dwarf_value_location)
5345 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
5346 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
5347 (add_piece): Handle empty piece.
5348 (execute_stack_op) <DW_OP_piece>: Handle
5349 DWARF_VALUE_OPTIMIZED_OUT.
5351 2010-05-21 Tom Tromey <tromey@redhat.com>
5353 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
5354 evaluate_subexp, not evaluate_subexp_with_coercion.
5356 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5358 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
5361 2010-05-21 Tom Tromey <tromey@redhat.com>
5363 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
5365 (write_pieced_value): Likewise.
5367 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5369 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
5370 and DW_TAG_volatile_type.
5371 (new_symbol): Likewise.
5373 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
5375 * p-valprint.c (pascal_val_print): Call get_array_bounds
5376 to obtain the number of elements in an array.
5378 2010-05-19 Doug Evans <dje@google.com>
5380 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
5382 * python.c (source_python_script): Add comment.
5383 (source_python_script_for_objfile): Remove unnecessary call to
5386 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5387 Sergio Durigan Junior <sergiodj@redhat.com>
5390 * parse.c (exp_iterate): Use operator_length wrapper function.
5392 2010-05-18 Michael Snyder <msnyder@vmware.com>
5394 * ada-lang.c: White space.
5395 * ada-typeprint.c: White space.
5396 * ada-valprint.c: White space.
5397 * addrmap.c: White space.
5398 * auxv.c: White space.
5399 * ax-gdb.c: White space.
5401 2010-05-18 Hui Zhu <teawater@gmail.com>
5403 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
5405 (inferior_call_waitpid): Move make_cleanup out of check.
5406 Check the return of waitpid.
5407 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
5409 2010-05-17 Michael Snyder <msnyder@vmware.com>
5411 * tui/tui.c: White space.
5412 * tui/tui-data.c: White space.
5413 * tui/tui-disasm.c: White space.
5414 * tui/tui-file.c: White space.
5415 * tui/tui-interp.c: White space.
5416 * tui/tui-main.c: White space.
5417 * tui/tui-out.c: White space.
5418 * tui/tui-regs.c: White space.
5419 * tui/tui-source.c: White space.
5420 * tui/tui-stack.c: White space.
5421 * tui/tui-win.c: White space.
5422 * tui/tui-winsource.c: White space.
5424 * procfs.c: White space.
5426 * python/py-auto-load.c: White space.
5427 * python/py-block.c: White space.
5428 * python/py-breakpoint.c: White space.
5429 * python/py-cmd.c: White space.
5430 * python/py-function.c: White space.
5431 * python/py-lazy-string.c: White space.
5432 * python/py-objfile.c: White space.
5433 * python/py-param.c: White space.
5434 * python/py-prettyprint.c: White space.
5435 * python/py-progspace.c: White space.
5436 * python/py-symtab.c: White space.
5437 * python/python.c: White space.
5438 * python/py-type.c: White space.
5439 * python/py-utils.c: White space.
5440 * python/py-value.c: White space.
5442 * mi/mi-cmd-break.c: White space.
5443 * mi/mi-cmd-env.c: White space.
5444 * mi/mi-cmds.c: White space.
5445 * mi/mi-cmd-stack.c: White space.
5446 * mi/mi-cmd-var.c: White space.
5447 * mi/mi-console.c: White space.
5448 * mi/mi-getopt.c: White space.
5449 * mi/mi-interp.c: White space.
5450 * mi/mi-main.c: White space.
5451 * mi/mi-out.c: White space.
5452 * mi/mi-parse.c: White space.
5454 * cli/cli-cmds.c: White space.
5455 * cli/cli-decode.c: White space.
5456 * cli/cli-dump.c: White space.
5457 * cli/cli-interp.c: White space.
5458 * cli/cli-logging.c: White space.
5459 * cli/cli-script.c: White space.
5460 * cli/cli-setshow.c: White space.
5462 * valarith.c: White space.
5463 * valops.c: White space.
5464 * valprint.c: White space.
5465 * value.c: White space.
5466 * varobj.c: White space.
5467 * xcoffread.c: White space.
5468 * xml-support.c: White space.
5469 * xml-tdesc.c: White space.
5471 2010-05-17 Andreas Schwab <schwab@redhat.com>
5474 * c-lang.c (c_printstr): Compute real length of NUL terminated
5477 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5479 * parse.c (parse_exp_in_context): When block is not NULL, use
5480 its associated language to parse the expression instead of
5481 the current_language.
5483 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5485 * jv-lang.c (java_lookup_class): Remove commented out code.
5486 (type_from_class): Likewise.
5487 (java_op_print_tab): Remove commented-out elements.
5489 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5491 * ada-lang.c (to_fixed_range_type): The the raw index type as
5492 argument instead of the raw type name. Remove orig_type parameter.
5493 Update calls throughout.
5494 (ada_fixup_array_indexes_type): New function.
5495 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
5496 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
5497 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
5498 Remove name parameter.
5499 (print_array_type): Add call to ada_fixup_array_indexes_type.
5500 Update calls to print_range_type.
5501 (ada_print_type): Update calls to print_range_type.
5503 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5505 * dwarf2read.c (read_set_type): Set type length if
5506 DW_AT_byte_size attribute is present.
5508 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5510 * p-valprint.c (pascal_val_print): Handle set type if range limits
5511 are undefined but size is known.
5513 2010-05-17 Pedro Alves <pedro@codesourcery.com>
5515 * procfs.c: Reformat.
5517 2010-05-16 Michael Snyder <msnyder@vmware.com>
5519 * target.c: White space.
5520 * target-descriptions.c: White space.
5521 * target-memory.c: White space.
5522 * thread.c: White space.
5523 * top.c: White space.
5524 * tracepoint.c: White space.
5525 * trad-frame.c: White space.
5526 * tramp-frame.c: White space.
5527 * ui-file.c: White space.
5528 * ui-out.c: White space.
5529 * user-regs.c: White space.
5530 * utils.c: White space.
5532 * scm-exp.c: White space.
5533 * scm-lang.c: White space.
5534 * scm-valprint.c: White space.
5535 * sentinel-frame.c: White space.
5536 * ser-base.c: White space.
5537 * ser-go32.c: White space.
5538 * serial.c: White space.
5539 * ser-mingw.c: White space.
5540 * ser-pipe.c: White space.
5541 * ser-tcp.c: White space.
5542 * ser-unix.c: White space.
5543 * solib.c: White space.
5544 * solib-darwin.c: White space.
5545 * solib-frv.c: White space.
5546 * solib-irix.c: White space.
5547 * solib-osf.c: White space.
5548 * solib-pa64.c: White space.
5549 * solib-som.c: White space.
5550 * solib-spu.c: White space.
5551 * solib-svr4.c: White space.
5552 * solib-target.c: White space.
5553 * source.c: White space.
5554 * stabsread.c: White space.
5555 * stack.c: White space.
5556 * std-regs.c: White space.
5557 * symfile.c: White space.
5558 * symmisc.c: White space.
5559 * symtab.c: White space.
5561 2010-05-16 Michael Snyder <msnyder@vmware.com>
5563 * source.c (_initialize_source): Add "rev" as an abbreviation
5564 for the "reverse-search" command.
5566 2010-05-16 Michael Snyder <msnyder@vmware.com>
5568 * record.c: White space.
5569 * regcache.c: White space.
5570 * reggroups.c: White space.
5571 * remote-fileio.c: White space.
5572 * remote-m32r-sdi.c: White space.
5573 * remote-mips.c: White space.
5574 * remote-sim.c: White space.
5575 * remote.c: White space.
5576 (process_g_packet): Remove orphan braces.
5578 2010-05-15 Michael Snyder <msnyder@vmware.com>
5580 * parse.c: White space.
5581 * p-lang.c: White space.
5582 * posix-hdep.c: White space.
5583 * printcmd.c: White space.
5584 * progspace.c: White space.
5585 * prologue-value.c: White space.
5586 * psymtab.c: White space.
5587 * p-typeprint.c: White space.
5588 * p-valprint.c: White space.
5590 * objc-lang.c: White space.
5591 * objfiles.c: White space.
5592 * observer.c: White space.
5593 * osabi.c: White space.
5594 * osdata.c: White space.
5596 * m2-lang.c: White space.
5597 * m2-valprint.c: White space.
5598 * macrocmd.c: White space.
5599 * macroexp.c: White space.
5600 * macroscope.c: White space.
5601 * macrotab.c: White space.
5602 * main.c: White space.
5603 * maint.c: White space.
5604 * mdebugread.c: White space.
5605 * memattr.c: White space.
5606 * minsyms.c: White space.
5607 * monitor.c: White space.
5609 2010-05-14 Michael Snyder <msnyder@vmware.com>
5611 * jv-lang.c: White space.
5612 * jv-typeprint.c: White space.
5613 * jv-valprint.c: White space.
5614 * language.c: White space.
5615 * libunwind-frame.c: White space.
5616 * linespec.c: White space.
5617 * linux-nat.c: White space.
5618 * linux-record.c: White space.
5619 * linux-thread-db.c: White space.
5621 * infcall.c: White space.
5622 * inf-child.c: White space.
5623 * infcmd.c: White space.
5624 * inferior.c: White space.
5625 * inf-loop.c: White space.
5626 * inflow.c: White space.
5627 * inline-frame.c: White space.
5628 * interps.c: White space.
5630 * gcore.c: White space.
5631 * gdb.c: White space.
5632 * gdbtypes.c: White space.
5633 * gnu-nat.c: White space.
5634 * gnu-v2-abi.c: White space.
5635 * gnu-v3-abi.c: White space.
5637 * findcmd.c: White space.
5638 * findvar.c: White space.
5639 * fork-child.c: White space.
5640 * frame-base.c: White space.
5641 * frame.c: White space.
5642 * frame-unwind.c: White space.
5643 * f-valprint.c: White space.
5645 * elfread.c: White space.
5646 * environ.c: White space.
5647 * eval.c: White space.
5648 * event-loop.c: White space.
5649 * event-top.c: White space.
5650 * exceptions.c: White space.
5651 * exec.c: White space.
5652 * expprint.c: White space.
5654 * dbxread.c: White space.
5655 * dcache.c: White space.
5656 * disasm.c: White space.
5657 * doublest.c: White space.
5658 * dsrec.c: White space.
5659 * dummy-frame.c: White space.
5660 * dwarf2expr.c: White space.
5661 * dwarf2-frame.c: White space.
5662 * dwarf2loc.c: White space.
5663 * dwarf2read.c: White space.
5665 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
5669 * python/py-value.c (valpy_hash): New function.
5670 (value_object_type): Register valpy_hash.
5672 2010-05-14 Hui Zhu <teawater@gmail.com>
5673 Michael Snyder <msnyder@vmware.com>
5675 * linux-fork.c (gdbthread.h): New include.
5676 (fork_info): Add parent_ptid.
5677 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5679 (delete_checkpoint_command): Call inferior_call_waitpid.
5680 (checkpoint_command): Set parent_ptid.
5682 2010-05-13 Michael Snyder <msnyder@vmware.com>
5684 * dictionary.c: Re-indent to GNU coding standard.
5686 * charset.c: White space.
5687 * c-lang.c: White space.
5688 * cli-out.c: White space.
5689 * coffread.c: White space.
5690 * complaints.c: White space.
5691 * completer.c: White space.
5692 * corefile.c: White space.
5693 * corelow.c: White space.
5694 * cp-abi.c: White space.
5695 * cp-namespace.c: White space.
5696 * cp-support.c: White space.
5697 * cp-valprint.c: White space.
5698 * c-typeprint.c: White space.
5699 * c-valprint.c: White space.
5700 * blockframe.c: White space.
5701 * breakpoint.c: White space.
5702 * buildsym.c: White space.
5703 * blockframe.c: White space.
5704 * bcache.c: White space.
5705 * gdbarch.sh: White space, add blank lines.
5706 * arch-utils.c: Ditto.
5707 * gdbarch.c: Regenerate.
5708 * frame.c: White space, add blank lines.
5709 * stack.c: White space, add blank lines.
5710 (initialize_stack): Remove long-dead code.
5712 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5715 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5716 (locexpr_read_variable, loclist_read_variable): Update the callers.
5718 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5721 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5722 Remove check of NULL returned by tag_type_to_type.
5723 (die_containing_type): Remove variable type. Remove type_die variable
5724 initialization. Remove check of NULL returned by tag_type_to_type.
5726 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5729 * gdbtypes.c (lookup_struct_elt_type): Also lookup
5730 names of unnamed structures or unions.
5732 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5734 * procfs.c (proc_watchpoint_address): New function.
5735 (procfs_stopped_by_watchpoint): Remove useless check after
5736 find_procinfo_or_die call.
5737 (procfs_stopped_data_address): New function.
5738 (procfs_use_watchpoints): Register new watchpoint related function.
5740 2010-05-11 Tom Tromey <tromey@redhat.com>
5742 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5744 2010-05-10 Michael Snyder <msnyder@vmware.com>
5746 * utils.c: White space cleanup.
5748 2010-05-10 Tom Tromey <tromey@redhat.com>
5750 * eval.c (ptrmath_type_p): Add 'lang' argument.
5751 (evaluate_subexp_standard): Update.
5752 (evaluate_subexp_with_coercion): Update.
5753 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5755 2010-05-10 Michael Snyder <msnyder@vmware.com>
5757 * utils.c (do_fclose_cleanup) Restore local variable.
5759 2010-05-09 Doug Evans <dje@google.com>
5761 * record.c (init_record_core_ops): Rename record_core to record-core.
5763 2010-05-08 Joel Brobecker <brobecker@adacore.com>
5765 Implement task switching on pa-hpux.
5766 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5767 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5769 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5771 * valops.c (find_overload_match): Add missing i18n markup.
5773 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5775 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5777 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5779 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5780 list for the obconcat call.
5781 * mdebugread.c (parse_symbol): Likewise.
5782 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5784 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5785 New variable ap. Remove variables len and val.
5786 * symfile.h (obconcat): Likewise for the prototype.
5788 2010-05-07 Michael Snyder <msnyder@vmware.com>
5790 * python/python.c (execute_gdb_command): Remove unused variables.
5791 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
5792 * python/py-breakpoint.c (gdbpy_breakpoint_created):
5793 Remove unused variable.
5794 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5795 (cmdpy_completer): Remove unused variable.
5796 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5797 * python/py-function.c (fnpy_call): Remove unused variable.
5798 * python/py-objfile.c (objfile_to_objfile_object):
5799 Remove unused variable.
5800 * python/py-param.c (parmpy_init): Remove unused variable.
5801 * python/py-prettyprint.c (apply_varobj_pretty_printer):
5802 Remove unused variable.
5803 (gdbpy_default_visualizer): Remove unused variable.
5804 * python/py-progspace.c (pspace_to_pspace_object):
5805 Remove unused variable.
5806 * python/py-symtab.c (symtab_and_line_to_sal_object):
5807 Remove unused variable.
5808 * python/py-type.c (typy_template_argument):
5809 Remove unused variable.
5810 * python/py-value.c (valpy_string): Remove unused variable.
5811 (convert_value_from_python): Remove unused variables.
5813 2010-05-07 Michael Snyder <msnyder@vmware.com>
5815 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5816 and use it to compute variable 't1'.
5818 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5820 * ada-lang.c (assign_aggregate): Remove unused variable.
5822 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5825 * valops.c (find_overload_match): Handle fsym == NULL case.
5826 Add int no_adl argument.
5827 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5829 Add int no_adl argument.
5830 (find_oload_champ_namespace): Add int no_adl argument.
5831 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5833 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5834 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5835 Evaluate arguments and use them to perform ADL lookup.
5836 Pass no_adl argument to find_overload_match.
5837 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5838 * cp-support.h: Added prototype for
5839 make_symbol_overload_list_namespace.
5840 * cp-support.c (make_symbol_overload_list_namespace): New function.
5841 (make_symbol_overload_list_adl_namespace): New function.
5842 (make_symbol_overload_list_adl): New function.
5843 (make_symbol_overload_list_using): Moved code to add function to
5844 overload set to make_symbol_overload_list_namespace.
5845 * c-exp.y: create UNKNOWN_CPP_NAME token.
5846 Add parse rule for ADL functions.
5847 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5849 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5851 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5854 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5856 Implement task switching on solaris targets.
5857 * sol-thread.c (thread_db_find_thread_from_tid)
5858 (sol_get_ada_task_ptid): New functions.
5859 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5861 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5863 * remote.c (remote_query_supported_append): Use reconcat.
5864 (remote_query_supported): Install a cleanup. Use reconcat.
5866 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5868 * gdbarch.sh (qsupported): Delete.
5869 * gdbarch.h, gdbarch.c: Regenerate.
5870 * remote.c (remote_query_supported): Remove use of
5873 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5875 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5878 2010-05-06 Michael Snyder <msnyder@vmware.com>
5880 * xml-support.c (xinclude_start_include): Delete unused variable.
5881 (xml_process_xincludes): Delete unused variable.
5882 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5883 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5884 (tdesc_find_arch_register): Delete unused variable.
5885 (tdesc_use_registers): Delete unused variable.
5886 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5887 * inferior.c (print_inferior): Delete unused variable.
5888 * record.c (record_open_1): Delete unused variable.
5889 (record_restore): Delete unused variable.
5890 (cmd_record_save): Delete unused variable.
5891 * gcore.c (derive_heap_segment): Delete unused variable.
5892 (objfile_find_memory_regions): Use unused variable.
5893 * jit.c (jit_inferior_init): Delete unused variable.
5894 * progspace.c (clone_program_space): Delete unused variable.
5895 (pspace_empty_p): Delete unused variable.
5897 * frame-unwind.c (frame_unwind_find_by_frame):
5898 Delete unused variable.
5899 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5900 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5901 (method_name_from_physname): Delete unused variable.
5902 (cp_func_name): Delete unused variable.
5903 (cp_validate_operator): Delete unused variable.
5904 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
5905 Delete unused variable.
5906 * trad-frame.c (trad_frame_get_prev_register):
5907 Delete unused variable.
5908 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5910 * serial.c (serial_for_fd): Delete unused variable.
5911 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5912 * top.c (execute_command): Delete unused variable.
5913 (init_main): Delete unused variable.
5914 * utils.c (do_fclose_cleanup): Delete unused variable.
5915 (do_all_inferior_continuations): Delete unused variable.
5916 (initialize_utils): Delete unused variable.
5917 (internal_problem_mode): Delete unused global.
5918 * frame.c (get_prev_frame): Delete unused global.
5919 (get_frame_locals_address): Delete unused global.
5920 (get_frame_args_address): Delete unused global.
5922 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5923 (pascal_type_print_varspec_prefix): Delete unused variable.
5924 * f-typeprint.c (f_type_print_base): Delete unused variable.
5925 (f_type_print_varspec_suffix): Delete unused variable.
5926 * m2-typeprint.c (m2_print_type): Delete unused variable.
5927 (m2_long_set): Delete unused variable.
5928 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5929 * d-valprint.c (dynamic_array_type): Delete unused variable.
5930 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
5931 Delete unused variable.
5932 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5933 * m2-valprint.c (m2_val_print): Delete unused variable.
5935 * ui-out.c (ui_out_field_int): Delete unused variable.
5936 (ui_out_field_fmt_int): Delete unused variable.
5937 * varobj.c (varobj_list_children): Delete unused variable.
5938 (varobj_set_value): Delete unused variable.
5939 (install_new_value_visualizer): Delete unused variable.
5940 (varobj_set_visualizer): Delete unused variable.
5941 (varobj_update): Delete unused variable.
5942 (varobj_editable_p): Delete unused variable.
5943 (c_value_of_root): Delete unused variable.
5944 (cplus_describe_child): Delete unused variable.
5946 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5947 (decode_constrained_packed_array_type): Delete unused variable.
5948 (add_defn_to_vec): Delete unused variable.
5949 (symbol_completion_match): Delete unused variable.
5950 (value_tag_from_contents_and_address): Delete unused variable.
5951 (ada_evaluate_subexp): Delete unused variable.
5952 * c-lang.c (classify_type): Delete unused variable.
5953 * f-lang.c (f_printstr): Delete unused variable.
5954 * objc-lang.c (objc_printstr): Delete unused variable.
5955 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5956 * jv-lang.c (type_from_class): ifdef unused variable.
5957 (java_class_name_from_physname): Delete unused variable.
5958 * m2-lang.c (m2_printstr): Delete unused variable.
5960 * objfiles.c (objfile_relocate): Delete unused variable.
5961 * maint.c (_initialize_maint_cmds): Delete unused variable.
5962 * demangle.c (_initialize_demangler): Delete unused variable.
5963 * corefile.c (reopen_exec_file): Delete unused variable.
5964 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5965 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5967 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5968 * memattr.c (mem_delete): Delete unused variable.
5969 (invalidate_target_mem_regions): Delete unused variable.
5970 * mem-break.c (default_memory_insert_breakpoint):
5971 Delete unused variable.
5972 * target.c (target_get_osdata): Delete unused variable.
5973 * parse.c (length_of_subexp): Delete unused variable.
5974 (prefixify_subexp): Delete unused variable.
5975 (exp_iterate): Delete unused variable.
5976 * reverse.c (delete_bookmark_command): Delete unused variable.
5978 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5979 * macroexp.c (gather_arguments): Delete unused variable.
5980 (substitute_args): Delete unused variable.
5981 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5982 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5983 (_initialize_gdbarch): Delete unused variable.
5984 * gdbarch.c, gdbarch.h: Regenerate.
5985 * arch-utils.c (initialize_current_architecture):
5986 Delete unused variable.
5987 (_initialize_gdbarch_utils): Delete unused variable.
5988 * gdbtypes.c (make_cv_type): Delete unused variable.
5989 (make_type_with_address_space): Delete unused variable.
5991 * linespec.c (decode_compound): Delete unused variable.
5992 * dictionary.c (iterator_next_hashed): Delete unused variable.
5993 * infcall.c (call_function_by_hand): Delete unused variable.
5994 * infcmd.c (step_1): Delete unused variable.
5995 (registers_info): Delete unused variable.
5996 (attach_command): Delete unused variable.
5997 * infrun.c (follow_exec): Delete unused variable.
5998 (handle_step_into_function_backwards): Delete unused variable.
5999 (_initialize_infrun): Delete unused variable.
6000 * stack.c (parse_frame_specification_1): Delete unused variable.
6001 (frame_info): Delete unused variable.
6002 (backtrace_command_1): Delete unused variable.
6003 (catch_info): Delete unused variable.
6005 * eval.c (evaluate_subexp_standard): Delete unused variable.
6006 * valops.c (value_cast_pointers): Delete unused variable.
6007 (value_dynamic_cast): Delete unused variable.
6008 (value_array): Delete unused variable.
6009 (find_overload_match): Delete unused variable.
6010 * valarith.c (value_subscript): Delete unused variable.
6011 (value_binop): Delete unused variable.
6012 * valprint.c (_initialize_valprint): Delete unused variable.
6013 * printcmd.c (print_command_1): Delete unused variable.
6014 (address_info): Delete unused variable.
6015 (printf_command): Delete unused variable.
6017 * auxv.c (target_auxv_search): Delete unused variable.
6018 * blockframe.c (get_frame_block): Delete unused variable.
6019 * regcache.c (regcache_cpy): Delete unused variable.
6020 (regcache_cpy_no_passthrough): Delete unused variable.
6021 * charset.c (wchar_iterate): Delete unused variable.
6022 (find_charset_names): Delete unused variable.
6023 (_initialize_charset): Delete unused variable.
6024 * disasm.c (do_mixed_source_and_assembly):
6025 Delete unused variable.
6026 * source.c (set_default_source_symtab_and_line):
6027 Delete unused variable.
6028 (set_substitute_path_command): Delete unused variable.
6029 * value.c (preserve_values): Delete unused variable.
6030 (value_from_double): Delete unused variable.
6032 2010-05-05 Michael Snyder <msnyder@vmware.com>
6034 * psymtab.c (lookup_partial_symbol): Delete unused variable.
6035 (find_last_source_symtab_from_partial): Delete unused variable.
6036 * symfile.c (place_section): Delete unused variable.
6037 (default_symfile_offsets): Delete unused variable.
6038 (get_debug_link_info): Delete unused variable.
6039 (find_separate_debug_file_by_debuglink): Delete unused variable.
6040 (add_symbol_file_command): Delete unused variable.
6041 (symfile_find_segment_sections): Delete unused variable.
6042 * symmisc.c (free_symtab): Delete unused variable.
6043 (dump_symtab_1): Delete unused variable.
6044 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
6045 (find_pc_sect_symtab): Delete unused variable.
6046 (skip_prologue_using_lineinfo): Delete unused variable.
6047 (sources_info): Delete unused variable.
6048 (completion_list_add_name): Delete unused variable.
6049 (expand_line_sal): Delete unused variable.
6051 * breakpoint.c (validate_commands_for_breakpoint):
6052 Delete unused variables.
6053 (insert_catchpoint): Delete unused variable.
6054 (update_watchpoint): Delete unused variable.
6055 (insert_bp_location): Delete unused variable.
6056 (insert_breakpoint_locations): Delete unused variable.
6057 (remove_breakpoint_1): Delete unused variable.
6058 (software_breakpoint_inserted_here_p): Delete unused variable.
6059 (watchpoints_triggered): Delete unused variable.
6060 (bpstat_check_watchpoint): Delete unused variable.
6061 (bpstat_stop_status): Delete unused variable.
6062 (print_one_breakpoint_location): Delete unused variable.
6063 (allocate_bp_location): Delete unused variable.
6064 (create_breakpoint): Delete unused variable.
6065 (watch_command_1): Delete unused variable.
6066 (catch_exception_command_1): Delete unused variable.
6067 (catch_ada_exception_command): Delete unused variable.
6068 (delete_breakpoint): Delete unused variable.
6069 (breakpoint_re_set_one): Delete unused variable.
6070 (do_enable_breakpoint): Delete unused variable.
6072 2010-05-06 Pedro Alves <pedro@codesourcery.com>
6074 * amd64-tdep.c: Include disasm.h.
6075 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
6076 (amd64_insn_length): Moved to disasm.c and renamed.
6077 (fixup_riprel): Adjust.
6078 * disasm.c (do_ui_file_delete): New.
6079 (gdb_insn_length): New.
6080 (gdb_buffered_insn_length_fprintf)
6081 (gdb_buffered_insn_length_init_dis)
6082 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
6084 * disasm.h (gdb_insn_length): Declare.
6085 (gdb_buffered_insn_length): Declare.
6087 2010-05-06 Pedro Alves <pedro@codesourcery.com>
6089 * remote.c (clear_threads_parsing_context): New.
6090 (remote_threads_info): Delete unused null_cleanup. Install a
6091 cleanup to clear the threads_parsing_context in case parsing
6094 2010-05-05 Michael Snyder <msnyder@vmware.com>
6096 * c-exp.y (parse_string_or_char): Delete unused variable.
6097 (c_lex): Delete unused variable.
6098 * cp-name-parser.y (cpname_lex): Delete unused variable.
6099 * ada-exp.y (find_primitive_type): Delete unused variable.
6100 (write_var_or_type): Delete unused variable.
6101 * jv-exp.y (java_parse): Delete unused variable.
6102 (push_expression_name): Delete unused variable.
6103 * p-exp.y (pascal_lex): Delete unused variable.
6105 2010-05-05 Pedro Alves <pedro@codesourcery.com>
6107 * remote.c (remote_threads_info): Really revert previous previous
6110 2010-05-05 Michael Snyder <msnyder@vmware.com>
6112 * elfread.c (elf_symtab_read): Delete unused variable.
6113 (find_separate_debug_file_by_buildid): Delete unused variables.
6114 (elf_symfile_read): Delete unused variable.
6116 * coffread.c (coff_symfile_read): Delete unused variables.
6118 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
6119 (read_pe_exported_syms): Delete unused variable.
6121 * stabsread.c (define_symbol): Delete unused variable.
6123 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
6124 (process_psymtab_comp_unit): Delete unused variable.
6125 (dwarf2_build_psymtabs_hard): Delete unused variable.
6126 (load_partial_comp_unit): Delete unused variable.
6127 (create_all_comp_units): Delete unused variable.
6128 (scan_partial_symbols): Delete unused variable.
6129 (add_partial_symbol): Delete unused variable.
6130 (add_partial_namespace): Delete unused variable.
6131 (add_partial_enumeration): Delete unused variable.
6132 (load_full_comp_unit): Delete unused variable.
6133 (process_full_comp_unit): Delete unused variable.
6134 (read_file_scope): Delete unused variable.
6135 (read_type_unit_scope): Delete unused variable.
6136 (process_structure_scope): Delete unused variable.
6137 (process_enumeration_scope): Delete unused variable.
6138 (read_tag_ptr_to_member_type): Delete unused variable.
6139 (read_typedef): Delete unused variable.
6140 (read_partial_die): Delete unused variable.
6141 (decode_locdesc): Delete unused variable.
6142 (zeroed_partial_die): Delete unused global variable.
6144 * tui/tui-interp.c (_initialize_tui_interp):
6145 Delete unused variable.
6146 * tui/tui-regs.c tui_display_registers_from):
6147 Delete unused variable.
6148 (tui_check_register_values): Delete unused variable.
6149 (tui_register_format): Delete unused variable.
6150 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
6151 * tui/tui-windata.c (tui_display_data_from_line):
6152 Delete unused variables.
6153 (tui_vertical_data_scroll): Delete unused variables.
6155 2010-05-05 Michael Snyder <msnyder@vmware.com>
6157 * remote.c (remote_threads_info): Revert questionable part of
6158 the previous change.
6160 2010-05-05 Michael Snyder <msnyder@vmware.com>
6162 * mi/mi-out.c (mi_table_begin): Delete unused variable.
6163 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
6164 (mi_cmd_var_list_children): Delete unused variable.
6165 (varobj_update_one): Delete unused variable.
6166 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
6167 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
6168 Delete unused variable.
6169 (mi_cmd_stack_list_variables): Delete unused variable.
6170 (list_args_or_locals): Delete unused variable.
6171 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
6172 Delete unused variables.
6173 (mi_cmd_file_list_exec_source_files): Delete unused variable.
6174 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
6175 Delete unused variable.
6176 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
6177 (mi_cmd_interpreter_exec): Delete unused variable.
6178 (mi_on_normal_stop): Delete unused variable.
6179 * mi/mi-main.c (run_one_inferior): Delete unused variable.
6180 (print_one_inferior): Delete unused variables.
6181 (mi_execute_command): Delete unused variable.
6182 (mi_cmd_execute): Delete unused variable.
6183 (timestamp): Delete unused variable.
6185 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
6186 (restore_binary_file): Delete unused variable.
6187 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
6188 * cli/cli-script.c (define_command): Delete unused variables.
6189 (recurse_read_control_structure): Delete unused variable.
6190 (script_from_file): Delete unused variable.
6191 * cli/cli-cmds.c (complete_command): Delete unused variable.
6192 (disassemble_command): Delete unused variable.
6194 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
6195 * tracepoint.c (delete_trace_variable_command):
6196 Delete unused variables.
6197 (encode_actions_1): Delete unused variables.
6198 (start_tracing): Delete unused variable.
6199 (trace_status_mi): Delete unused variable.
6200 (tfind_1): Delete unused variable.
6201 (trace_find_pc_command): Delete unused variable.
6202 (trace_find_line_command): Delete unused variables.
6203 (trace_find_range_command): Delete unused variables.
6204 (trace_find_outside_command): Delete unused variables.
6205 (parse_tracepoint_definition): Delete unused variables.
6206 (tfile_fetch_registers): Delete unused variable.
6208 * dcache.c (dcache_init): Delete unused variable.
6209 (dcache_info): Delete unused variable.
6211 * remote.c (remote_threads_info): Delete unused variable.
6212 (process_stop_reply) :Delete unused variable.
6213 (remote_get_trace_status): Delete unused variables.
6215 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
6216 (thread_from_lwp): Delete unused variable.
6217 (enable_thread_event_reporting): Delete unused variable.
6218 (check_for_thread_db): Delete unused variables.
6219 (thread_db_find_new_threads_2): Delete unused variable.
6221 * linux-fork.c (info_checkpoints_command): Delete unused variables.
6222 (checkpoint_command): Delete unused variable.
6223 (linux_fork_context): Delete unused variables.
6225 * linux-nat.c (linux_parent_pid): Delete unused global variable.
6226 (linux_tracefork_child): Delete unused variable.
6227 (linux_child_follow_fork): Delete unused variable.
6228 (linux_nat_detach): Delete unused variable.
6229 (linux_handle_extended_wait): Delete unused variable.
6230 (linux_nat_has_pending_sigint): Delete unused variable.
6231 (linux_nat_find_memory_regions): Delete unused variable.
6232 (linux_nat_make_corefile_notes): Delete unused variables.
6233 (linux_nat_info_proc_cmd): Delete unused variable.
6234 (linux_proc_pending_signals): Delete unused variable.
6235 (linux_nat_stop_lwp): Delete unused variables.
6236 (_initialize_linux_nat): Delete unused variable.
6238 * ser-pipe.c (pipe_ops): Delete unused global variable.
6240 * linux-record.c (record_linux_system_call):
6241 Delete unused variables.
6243 * corelow.c (core_xfer_partial): Delete unused variables.
6245 * solib-svr4.c (find_program_interpreter): Delete unused variable.
6246 (svr4_solib_create_inferior_hook): Add ifdef around
6247 conditionally-used variable declarations.
6249 * solib.c (solib_find): Delete unused variable.
6250 (free_so_symbols): Delete unused variable.
6251 (info_sharedlibrary_command): Delete unused variable.
6252 (reload_shared_libraries_1): Delete unused variable.
6253 (_initialize_solib): Delete unused variable.
6255 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
6256 (i386_collect_xstateregset): Delete unused variable.
6257 * i387-tdep.c (i387_print_float_info): Delete unused variable.
6259 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
6260 Delete unused variable 'type'.
6262 2010-05-05 Joel Brobecker <brobecker@adacore.com>
6264 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
6265 ada-lang.c: Remove comment mentioning these macros.
6266 * m2-exp.y: Delete commented out code.
6268 2010-05-05 Joel Brobecker <brobecker@adacore.com>
6270 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
6272 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
6274 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6276 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
6277 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6279 (cleanup_kernel_helper_return): Likewise.
6280 * arm-tdep.c (copy_unmodified): Likewise.
6281 (copy_preload): Likewise.
6282 (copy_copro_load_store): Likewise.
6283 (cleanup_branch): Likewise.
6284 (copy_b_bl_blx): Likewise.
6285 (copy_bx_blx_reg): Likewise.
6286 (copy_alu_imm): Likewise.
6287 (copy_alu_reg): Likewise.
6288 (copy_alu_shifted_reg): Likewise.
6289 (cleanup_load): Likewise.
6290 (cleanup_store): Likewise.
6291 (cleanup_block_load_pc): Likewise.
6292 (cleanup_svc): Likewise.
6293 (copy_undef): Likewise.
6294 (copy_unpred): Likewise.
6295 * remote.c (register_remote_support_xml): Likewise.
6297 2010-05-05 Hui Zhu <teawater@gmail.com>
6299 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
6301 2010-05-04 Mark Kettenis <kettenis@gnu.org>
6303 * remote.c (register_remote_support_xml)
6304 (remote_query_supported_append, remote_query_supported): Add cast
6305 to NULL used as sentinel.
6306 * tracepoint.c (tvariables_info_1): Likewise.
6307 * utils.c (add_internal_problem_command): Likewise.
6309 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6311 * dwarf2loc.c (read_pieced_value, write_pieced_value,
6312 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
6313 registers gracefully.
6315 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6317 * exec.c (print_section_info): Display entry point without arch
6320 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6323 * printcmd.c (x_command): Only dereference once implicitly for
6326 2010-05-03 Doug Evans <dje@google.com>
6328 * event-loop.c (gdb_timer): Delete unused global.
6329 (create_timer): Update.
6331 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6333 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
6334 CURRENT->DECLARATION case.
6335 * cp-support.h (struct using_direct): Provide extended comment.
6337 2010-05-03 Mark Kettenis <kettenis@gnu.org>
6339 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
6340 HPPABSD_SIZEOF_GREGS.
6341 (HPPAOBSD_SIZEOF_FPREGS): New define.
6342 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
6343 (hppaobsd_supply_fpregset): New function.
6344 (hppaobsd_gregset): Renamed from hppabsd_gregset.
6345 (hppaobsd_fpregset): New variable.
6346 (hppaobsd_regset_from_core_section): Handle floating-point registers.
6347 (_initialize_hppabsd_tdep): Remove spurious blank line.
6349 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6352 * p-valprint.c (pascal_value_print): Always dereference a value with
6353 type code TYPE_CODE_REF.
6355 2010-05-03 Pedro Alves <pedro@codesourcery.com>
6357 * remote.c (remote_notice_signals): New.
6358 (remote_start_remote): In non-stop mode, update the remote end on
6359 which signals it can silently pass.
6360 (init_remote_ops): Install remote_notice_signals.
6362 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6364 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
6365 * command.h (error_no_arg): ... here. Remove NORETURN, change
6366 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6367 * defs.h (NORETURN, ATTR_NORETURN): Remove.
6368 (perror_with_name, verror, error, error_stream, vfatal, fatal)
6369 (internal_verror, internal_error, nomem): Remove NORETURN, change
6370 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6371 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
6372 (throw_vfatal, throw_error): Remove NORETURN.
6373 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
6374 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
6375 (throw_error, deprecated_throw_reason): Remove NORETURN, change
6376 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6377 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
6378 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
6380 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
6381 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
6383 * target.c (tcomplain): Likewise.
6384 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
6386 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
6387 (internal_error, perror_with_name, nomem): Remove NORETURN.
6388 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
6391 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6393 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6394 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
6395 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
6396 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6397 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
6398 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6399 * complaints.h (complaint, internal_complaint): Likewise.
6400 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
6401 (ATTR_FORMAT): Remove.
6402 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
6403 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
6404 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
6405 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
6406 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
6407 (internal_error, internal_vwarning, internal_warning, warning)
6408 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6409 * disasm.c (fprintf_disasm): Likewise.
6410 * exceptions.c (throw_it): Likewise.
6411 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
6412 (throw_error): Likewise.
6413 * language.h (type_error, range_error): Likewise.
6414 * linespec.c (cplusplus_error): Likewise.
6415 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
6416 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
6417 * monitor.c (monitor_debug): Likewise.
6418 * parser-defs.h (parser_fprintf): Likewise.
6419 * serial.h (serial_printf): Likewise.
6420 * tui/tui-hooks.c (tui_query_hook): Likewise.
6421 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
6422 (uo_message): Likewise.
6423 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
6424 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
6426 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
6428 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6430 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
6431 (cli_table_header, cli_begin, cli_end, cli_field_int)
6432 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
6433 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
6434 Delete forward declarations.
6435 (cli_ui_out_impl): Move below the callbacks.
6436 (_initialize_cli_out): Delete.
6438 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6440 * README: Use consistent `GDB' and `GDBserver' spellings.
6442 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6444 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
6446 2010-05-01 Pedro Alves <pedro@codesourcery.com>
6448 * infrun.c (prepare_for_detach): In non-stop, context switch to
6449 the thread that got the event before handling the event.
6451 2010-04-30 Tom Tromey <tromey@redhat.com>
6453 * symtab.c (symbol_set_names): Fix typo.
6455 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6457 * python/py-param.c (parm_constants): Avoid ARI warning
6458 by adding ARI comment.
6459 (parmpy_init): Likewise.
6461 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6463 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
6464 and created type for re-use.
6466 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6468 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
6470 2010-04-29 Doug Evans <dje@google.com>
6472 * ser-base.h (reschedule): Delete prototype.
6473 * ser-base.c (reschedule): Make static.
6475 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6477 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
6478 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
6479 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
6481 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
6484 2010-04-29 Pedro Alves <pedro@codesourcery.com>
6488 * regcache.c (registers_changed): Rename to ...
6489 (registers_changed_ptid): ... this, and only delete register cache
6490 entries matching the ptid filter argument.
6491 (registers_changed): Reimplement on top of registers_changed_ptid.
6492 * regcache.h (registers_changed_ptid): Declare.
6493 * target.c (target_resume): Flush register caches.
6495 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
6496 Tom Tromey <tromey@redhat.com>
6497 Thiago Jung Bauermann <bauerman@br.ibm.com>
6499 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
6500 (SUBDIR_PYTHON_SRCS): Likewise.
6501 (py-parameter.o): New rule.
6502 * python/py-parameter.c: New file.
6503 * python/python-internal.h (gdbpy_initialize_parameter)
6504 (gdbpy_parameter, gdbpy_parameter_value)
6505 (gdbpy_parse_command_name): Declare.
6506 * python/py-cmd.c (parse_command_name): Rename to
6507 gdbpy_parse_command_name.
6508 (gdbpy_parse_command_name): Accept a starting list parameter and
6510 (cmdpy_init): Use gdbpy_parse_command_name.
6511 * python/python.c (parameter_to_python): Rename to
6512 gdbpy_parameter_to_python. Accept enum var_types and value.
6513 (gdbpy_parameter): Use gdbpy_parameter_value.
6514 (_initialize_python): Call gdbpy_initialize_parameters.
6516 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6518 * MAINTAINERS: Add myself for write after approval privileges.
6520 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
6523 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
6524 (COMMON_OBS): Add d-lang.o d-valprint.o.
6525 (HFILES_NO_SRCDIR): Add d-lang.h.
6526 * NEWS: Mention D language support.
6527 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
6528 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
6529 * d-lang.c: New file.
6530 * d-lang.h: New file.
6531 * d-valprint.c: New file.
6532 * defs.h (enum language): Add language_d.
6533 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
6534 * language.c (binop_result_type, integral_type, character_type)
6535 (string_type, boolean_type, structured_type): Add language_d.
6536 * symfile.c (init_filename_language_table): Add language_d.
6537 * symtab.c: Include d-lang.h.
6538 (symbol_init_language_specific, symbol_find_demangled_name)
6539 (symbol_natural_name, lookup_symbol_in_language)
6540 (symbol_demangled_name, symbol_matches_domain): Add language_d.
6542 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6544 * solib-svr4.c (solib_svr4_r_map): Expand function description.
6546 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6548 * symfile.c (init_filename_language_table): Register .dg files
6551 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6553 * gdbtypes.h (struct main_type): Expand comment about target_type
6556 2010-04-27 Pedro Alves <pedro@codesourcery.com>
6557 Tristan Gingold <gingold@adacore.com>
6559 * symfile.c (reread_symbols): Also search for file in libraries.
6562 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6564 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
6565 in terms of configuration.
6567 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6569 * objfiles.c: Include solist.h.
6570 (free_all_objfiles): New variable so. Check stale solist objfiles.
6571 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
6572 and no_shared_libraries.
6574 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6577 * python/py-auto-load.c (source_section_scripts): Remove trailing
6578 new-line in i18n string.
6580 2010-04-26 Doug Evans <dje@google.com>
6582 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
6584 2010-04-26 Tom Tromey <tromey@redhat.com>
6586 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
6589 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6591 Removal of config/i386/nm-i386sol2.h native configuration file.
6592 * config/i386/nm-i386sol2.h: Remove file.
6593 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
6594 * config/i386/sol2-64.mh: Idem.
6595 * config/djgpp/fnchange.lst: Remove reference to that file.
6596 * Makefile.in (HFILES_NO_SRCDIR): Idem.
6598 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6600 PR breakpoints/11531.
6601 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
6602 macro definition and related comment.
6603 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
6604 (resume): Remove code and comment related to this macro.
6606 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6608 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
6611 2010-04-24 Pedro Alves <pedro@codesourcery.com>
6613 * defs.h: Adjust comment.
6614 * filesystem.h, filesystem.c: New files.
6615 * Makefile.in (SFILES): Add filesystem.c.
6616 (COMMON_OBS): Add filesystem.o.
6617 * solib.c (solib_find): Handle DOS-based filesystems. Handle
6618 different target and host path flavours.
6619 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6620 has_dos_based_file_system on the gdbarch.
6621 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
6622 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
6623 * i386-tdep.c (i386_go32_init_abi): Ditto.
6624 * gdbarch.sh (has_dos_based_file_system): New.
6625 * gdbarch.h, gdbarch.c: Regenerate.
6626 * NEWS: Mention improved support for remote targets with DOS-based
6627 filesystems. Mention new `set/show target-file-system-kind'
6630 2010-04-23 Stan Shebs <stan@codesourcery.com>
6632 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6634 (struct agent_reqs): Remove.
6635 (ax_reg_mask): Declare.
6636 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6637 (free_agent_expr): Free reg_mask.
6638 (ax_print): Add scope and register mask info.
6639 (ax_reqs): Remove agent_reqs argument, use agent expression
6640 fields, and move part of register mask computation to...
6641 (ax_reg_mask): New function.
6642 * ax-gdb.c (gen_trace_static_fields): Call it.
6643 (gen_traced_pop): Ditto.
6644 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6645 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6646 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6647 (gen_eval_for_expr): Ditto, and require an rvalue.
6648 (agent_command): Call ax_reqs.
6649 (agent_eval_command): Ditto.
6650 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6651 (validate_action_line): Ditto.
6652 (collect_symbol): Ditto.
6653 (encode_actions_1): Ditto.
6655 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
6656 Paul Pluzhnikov <ppluzhnikov@google.com>
6657 Jan Kratochvil <jan.kratochvil@redhat.com>
6659 Fix deadlock on looped list of loaded shared objects.
6660 * solib-svr4.c (LM_PREV): New function.
6661 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6662 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
6663 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
6664 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6666 2010-04-23 Doug Evans <dje@google.com>
6668 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6670 * configure: Regenerate.
6671 * main.c: #include "python/python.h".
6672 (captured_main): Defer loading auto-loaded scripts until after
6673 local_gdbinit has been sourced.
6674 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6675 (load_auto_scripts_for_objfile): New function.
6676 (auto_load_new_objfile): Call it.
6677 * python/python.h (gdbpy_global_auto_load): Declare.
6678 (load_auto_scripts_for_objfile): Declare.
6680 Add support for auto-loading scripts from .debug_gdb_scripts section.
6681 * NEWS: Add entry for .debug_gdb_scripts.
6682 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6683 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6684 (py-auto-load.o): New rule.
6685 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6686 * cli/cli-cmds.h (find_and_open_script): Update prototype.
6687 * python/py-auto-load.c: New file.
6688 * python/python-internal.h: #include <stdio.h>.
6689 (set_python_list, show_python_list): Declare.
6690 (gdbpy_initialize_auto_load): Declare.
6691 (source_python_script_for_objfile): Declare.
6692 * python/python.c: Remove #include of observer.h.
6693 (gdbpy_auto_load): Moved to py-auto-load.c.
6694 (GDBPY_AUTO_FILENAME): Ditto.
6695 (gdbpy_new_objfile): Delete.
6696 (source_python_script_for_objfile): New function.
6697 (set_python_list, show_python_list): Make externally visible.
6698 (_initialize_python): Move "auto-load" command to py-auto-load.c
6699 and observer_attach_new_objfile to py-auto-load.c.
6701 2010-04-23 Jerome Guitton <guitton@adacore.com>
6703 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6704 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6705 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6707 (alpha_heuristic_analyze_probing_loop): New function.
6708 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6709 and handle cases when a stack probe loop is generated.
6710 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6711 (alpha_mdebug_max_frame_size_exceeded): New function.
6712 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6713 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6714 Return 0 when the maximum debuggable frame size has been exceeded.
6716 2010-04-23 Joel Brobecker <brobecker@adacore.com>
6719 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6721 2010-04-20 Chris Moller <cmoller@redhat.com>
6725 * symtab.c (rbreak_command): Added code to include a filename
6726 specification in the rbreak argument.
6727 * NEWS: Added a brief description of filename-qualified rbreak.
6729 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6731 Fix crashes on dangling display expressions.
6732 * ada-lang.c (ada_operator_check): New function.
6733 (ada_exp_descriptor): Fill-in the field operator_check.
6734 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6735 * jv-lang.c (exp_descriptor_java): Likewise.
6736 * m2-lang.c (exp_descriptor_modula2): Likewise.
6737 * scm-lang.c (exp_descriptor_scm): Likewise.
6738 * parse.c (exp_descriptor_standard): Likewise.
6739 (operator_check_standard): New function.
6740 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6741 * parser-defs.h (struct exp_descriptor): New field operator_check.
6742 (operator_check_standard, exp_uses_objfile): New declarations.
6743 * printcmd.c: Remove the inclusion of solib.h.
6744 (display_uses_solib_p): Remove the function.
6745 (clear_dangling_display_expressions): Call lookup_objfile_from_block
6746 and exp_uses_objfile instead of display_uses_solib_p.
6747 * solist.h (struct so_list) <objfile>: New comment.
6748 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6749 * symtab.h (lookup_objfile_from_block): New declaration.
6750 (struct general_symbol_info) <obj_section>: Extend the comment.
6752 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6753 Thiago Jung Bauermann <bauerman@br.ibm.com>
6755 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6756 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6757 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6758 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6759 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6760 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6761 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6762 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6763 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6764 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6765 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6766 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6767 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6768 Define, in case <ptrace.h> doesn't provide it.
6769 (booke_debug_info): New variable.
6770 (max_slots_number): Ditto.
6771 (hw_break_tuple): New struct.
6772 (thread_points): Ditto.
6773 (ppc_threads): New variable.
6774 (PPC_DEBUG_CURRENT_VERSION): New define.
6775 (have_ptrace_new_debug_booke): New function.
6776 (ppc_linux_check_watch_resources): Renamed to ...
6777 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6778 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6779 (booke_cmp_hw_point): New function.
6780 (booke_find_thread_points_by_tid): Ditto.
6781 (booke_insert_point): Ditto.
6782 (booke_remove_point): Ditto.
6783 (ppc_linux_insert_hw_breakpoint): Ditto.
6784 (ppc_linux_remove_hw_breakpoint): Ditto.
6785 (get_trigger_type): Ditto.
6786 (ppc_linux_insert_watchpoint): Handle BookE processors.
6787 (ppc_linux_remove_watchpoint): Ditto.
6788 (ppc_linux_new_thread): Ditto.
6789 (ppc_linux_thread_exit): New function..
6790 (ppc_linux_stopped_data_address): Handle BookE processors.
6791 (ppc_linux_watchpoint_addr_within_range): Ditto.
6792 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6793 to_remove_hw_breakpoint fields of the target operations struct.
6794 Add observe for the thread_exit event.
6796 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6798 * i386-linux-nat.c (regmap): Removed.
6799 (fetch_register): Replace regmap with
6800 i386_linux_gregset_reg_offset.
6801 (store_register): Likewise.
6802 (supply_gregset): Likewise.
6803 (fill_gregset): Likewise.
6805 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6808 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6810 2010-04-22 Chris Moller <cmoller@redhat.com>
6812 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6813 method of popping recursion-detection stack with a method based on
6814 obstack_object_size(). (Similar to the PR9167 patch below, but for
6815 the static array obstack rather than the static member obstack.)
6817 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6819 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6820 (_initialize_amd64_linux_nat): Replace
6821 amd64_linux_gregset64_reg_offset with
6822 amd64_linux_gregset_reg_offset.
6824 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6827 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6829 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6832 * stabsread.c (set_length_in_type_chain): New function.
6833 (read_struct_type): Call set_length_in_type_chain function.
6834 (read_enum_type): Idem.
6836 2010-04-21 Stan Shebs <stan@codesourcery.com>
6837 Nathan Sidwell <nathan@codesourcery.com>
6839 * tracepoint.c (trace_save): Open in binary mode.
6841 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6843 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6845 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
6846 builtin_char32 fields.
6847 * printcmd.c (decode_format): Set char size to '\0'
6848 for strings unless explicit size is given.
6849 (print_formatted): Correct calculation of NEXT_ADDRESS
6850 for 16 or 32 bit strings.
6851 (do_examine): Do not force byte size for strings.
6852 Use builtin_char16 and builtin_char32 types to display
6853 16 or 32 bit-wide strings.
6854 (x_command): Set LAST_SIZE to 'b' for string type.
6856 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6859 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6862 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6863 there is no .reg-xstate section.
6864 (i386_linux_core_read_description): Check XCR0 first.
6866 2010-04-21 Mike Frysinger <vapier@gentoo.org>
6868 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6871 2010-04-21 Chris Moller <cmoller@redhat.com>
6874 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6875 method of popping recursion-detection stack with a method based on
6876 obstack_object_size().
6878 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6881 * p-valprint.c (pascal_val_print): Fix default printing of integer
6884 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6886 Fix compilation warning on gcc-4.1.2.
6887 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6888 local variable`pc' to zero.
6890 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6892 Implement thread support with core files on alpha-tru64.
6893 * dec-thread.c (dec_thread_find_new_threads): New function,
6894 extracted from resync_thread_list.
6895 (resync_thread_list): Add OPS parameter. Replace extracted-out
6896 code by call to dec_thread_find_new_threads.
6897 (dec_thread_wait): Update call to resync_thread_list.
6898 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6900 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6902 * ada-lang.c (value_pointer): New function.
6903 (make_array_descriptor): Call value_pointer to convert addresses to
6906 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6908 * rs6000-aix-tdep.c: #include exceptions.h.
6909 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6910 while reading the memory at ADDR, then ADDR cannot be a function
6913 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6915 * ada-typeprint.c (ada_print_typedef): New function.
6916 * ada-lang.h (ada_print_typedef): Add declaration.
6917 * ada-lang.c (ada_language_defn): set la_print_typdef field
6918 to ada_print_typedef.
6920 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6922 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6924 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6926 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6927 (iterate_over_mappings): Adjust function profile. Add declaration.
6928 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6931 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6933 * procfs.c (solib_mappings_callback): Move function up to avoid
6936 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6938 * procfs.c (find_signalled_thread, find_stop_signal): Move
6939 these functions down to define them only when used.
6941 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6943 * valprint.c (common_val_print): Fix the value before extracting
6945 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6946 * ada-lang.h (ada_to_fixed_value): New function declaration.
6947 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6948 to avoid code duplication and fix a bug in the handling of
6949 fixed types contents.
6951 2010-04-20 Tom Tromey <tromey@redhat.com>
6953 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6954 (read_partial_die): Likewise.
6955 (dwarf_attr_name): Likewise.
6957 2010-04-20 Chris Moller <cmoller@redhat.com>
6961 * cp-valprint.c (global): Adding new static array recursion
6963 (cp_print_value_fields, cp_print_static_field): Added new static
6964 array recursion detection code.
6966 2010-04-20 Mark Kettenis <kettenis@gnu.org>
6968 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6969 general-purpose register set should be 68 instead of 144.
6970 (i386_linux_sse_regset_sections): Likewise.
6971 (i386_linux_avx_regset_sections): Likewise.
6973 2010-04-20 Stan Shebs <stan@codesourcery.com>
6974 Nathan Sidwell <nathan@codesourcery.com>
6976 * dwarf2loc.c (struct axs_var_loc): New struct.
6977 (dwarf2_tracepoint_var_loc): New function.
6978 (dwarf2_tracepoint_var_access): New function.
6979 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6981 (locexpr_describe_location_piece): New function.
6982 (locexpr_describe_location_1): New function.
6983 (locexpr_describe_location): Call it, update signature.
6984 (loclist_describe_location): Rewrite to loop over locations,
6986 * symtab.h (struct symbol_computed_ops): Add address to
6987 describe_location arguments, return void.
6988 * printcmd.c (address_info): Get context PC, pass to computed
6989 location description.
6990 * tracepoint.c (scope_info): Ditto.
6991 * ax-gdb.c (trace_kludge): Export.
6993 2010-04-20 Tom Tromey <tromey@redhat.com>
6995 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6996 (struct dwarf2_cie) <segment_size>: New field.
6997 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6998 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
7000 (read_attribute_value): Handle DW_FORM_flag_present,
7001 DW_FORM_sec_offset, DW_FORM_exprloc.
7002 (dump_die_shallow): Likewise.
7003 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
7004 (dwarf2_const_value): Handle DW_FORM_exprloc.
7005 (attr_form_is_block): Likewise.
7006 (struct line_header) <maximum_ops_per_instruction>: New field.
7007 (dwarf_decode_line_header): Set new field.
7008 (dwarf_decode_lines): Handle new field.
7010 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7012 * f-exp.y: Add new production to recognize the `logical*8' type.
7013 (LOGICAL_S8_KEYWORD): New token.
7014 * f-lang.c (enum f_primitive_types)
7015 <f_primitive_type_logical_s8>: New field.
7016 (f_language_arch_info): Handling `logical*8' type.
7017 (build_fortran_types): Building `logical*8' type.
7018 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
7020 2010-04-19 Doug Evans <dje@google.com>
7022 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
7023 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
7024 (pipe_close): Ditto.
7026 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7028 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
7030 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7032 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
7033 type to void function.
7035 2010-04-19 Stan Shebs <stan@codesourcery.com>
7036 Vladimir Prus <vladimir@codesourcery.com>
7038 * tracepoint.c (tfind_1): Add missing newline, report exit from
7040 * target.c (update_current_target): Make default
7041 to_trace_find return -1.
7043 2010-04-19 Mike Frysinger <vapier@gentoo.org>
7045 * objc-lang.c (find_methods): Move symname check up.
7047 2010-04-19 Pedro Alves <pedro@codesourcery.com>
7049 * ada-lang.c (print_recreate_exception)
7050 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
7051 not "catch unhandled".
7053 2010-04-19 Pedro Alves <pedro@codesourcery.com>
7055 PR breakpoints/8554.
7057 Implement `save-breakpoints'.
7059 * breakpoint.c (save_cmdlist): New.
7060 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
7062 (print_recreate_catch_fork): New.
7063 (catch_fork_breakpoint_ops): Install it.
7064 (print_recreate_catch_vfork): New.
7065 (catch_vfork_breakpoint_ops): Install it.
7066 (print_recreate_catch_syscall): New.
7067 (catch_syscall_breakpoint_ops): Install it.
7068 (print_recreate_catch_exec): New.
7069 (catch_exec_breakpoint_ops): Install it.
7070 (print_recreate_exception_catchpoint): New.
7071 (gnu_v3_exception_catchpoint_ops): Install it.
7072 (save_breakpoints): New, based on tracepoint_save_command, but
7073 handle all breakpoint types.
7074 (save_breakpoints_command): New.
7075 (tracepoint_save_command): Rename to...
7076 (save_tracepoints_command): ... this, and reimplement using
7078 (save_command): New.
7079 (_initialize_breakpoints): Install the "save" command prefix.
7080 Install the "save breakpoints" command. Make "save-tracepoints" a
7081 deprecated alias for "save tracepoints".
7082 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
7083 * ada-lang.c (print_recreate_exception): New.
7084 (print_recreate_catch_exception): New.
7085 (catch_exception_breakpoint_ops): Install it.
7086 (print_recreate_catch_exception_unhandled): New.
7087 (catch_exception_unhandled_breakpoint_ops): Install it.
7088 (print_recreate_catch_assert): New.
7089 (catch_assert_breakpoint_ops): Install it.
7091 * NEWS: Mention the new `save breakpoints' command. Mention the
7092 new `save tracepoints' alias and that `save-tracepoints' is now
7095 2010-04-18 Pedro Alves <pedro@codesourcery.com>
7099 * tui/tui-out.c: Include cli-out.h.
7100 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
7101 (tui_begin, tui_end, tui_field_int, tui_field_skip)
7102 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
7103 (tui_message, tui_wrap_hint, tui_flush): Delete forward
7105 (struct ui_out_data): Rename to...
7106 (struct tui_ui_out_data): ... this. Remove `stream' and
7107 `suppress_output' fields, and inherit cli_ui_out_data.
7108 (tui_out_data): New typedef.
7109 (tui_ui_out_impl): Don't initialize fields staticaly.
7110 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
7111 (tui_begin, tui_end): Delete.
7112 (tui_field_int): Adjust to delegate most work to the base type.
7113 (tui_field_skip): Delete.
7114 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
7115 delegate most work to the base type.
7116 (tui_spaces): Delete.
7117 (tui_text): Adjust to delegate most work to the base type.
7118 (tui_message): Delete.
7119 (tui_wrap_hint): Delete.
7120 (tui_flush): Delete.
7121 (out_field_fmt): Delete.
7122 (field_separator): Delete.
7123 (tui_out_new): Adjust to initialize the base type.
7124 (_initialize_tui_out): Initialize tui_ui_out_impl.
7125 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
7127 (cli_out_data): Adjust.
7128 (cli_ui_out_impl): Make extern.
7129 (cli_table_header, cli_field_int, cli_field_skip): Use
7130 uo_field_string instead of cli_field_string.
7131 (cli_redirect): Adjust to use cli_out_data.
7132 (cli_out_data_ctor): New.
7133 (cli_out_new): Use it.
7134 * cli-out.h (struct ui_file): Remove forward declaration.
7135 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
7136 (cli_ui_out_impl): Declare.
7137 (cli_out_data_ctor): Declare.
7138 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
7139 (uo_field_string): No longer static.
7140 (ui_out_data): Change return type to void pointer.
7141 (ui_out_new): Change `data' parameter type to void pointer.
7142 * ui-out.h (struct ui_out_data): Don't forward declare.
7143 (ui_out_data): Change return type to void pointer.
7144 (ui_out_new): Change `data' parameter type to void pointer.
7145 (uo_field_string): Declare.
7147 2010-04-17 Pedro Alves <pedro@codesourcery.com>
7149 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
7150 instead of always false.
7152 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
7155 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
7158 2010-04-17 Pedro Alves <pedro@codesourcery.com>
7160 * breakpoint.c (watchpoints_triggered): Use
7161 is_hardware_watchpoint.
7162 (watchpoints_triggered): Ditto.
7163 (bpstat_check_location): Use is_watchpoint and
7164 is_hardware_watchpoint.
7165 (bpstat_check_watchpoint): Use is_watchpoint and
7166 is_hardware_watchpoint.
7167 (bpstat_stop_status): Fix comment.
7168 (user_settable_breakpoint): Use is_watchpoint.
7169 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
7170 (disable_watchpoints_before_interactive_call_start): Use
7172 (enable_watchpoints_after_interactive_call_stop): Use
7174 (clear_command): Use is_watchpoint.
7175 (do_enable_breakpoint): Use is_watchpoint.
7177 2010-04-16 Mike Frysinger <vapier@gentoo.org>
7179 * solib-frv.c (enable_break1_done): Delete.
7180 (enable_break2): Do not check enable_break1_done. Move the
7181 enable_break2_done setting and call to
7182 remove_solib_event_breakpoints() to the end. Return without
7183 warning when the contents of _dl_debug_addr are 0.
7184 (enable_break): Do not set enable_break1_done.
7185 (frv_clear_solib): Likewise.
7187 2010-04-16 Kevin Buettner <kevinb@redhat.com>
7189 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
7190 instead of an error if no PLT entry is found. Return a
7191 potentially useful result.
7192 (m32c_m16c_pointer_to_address): Add code to search for function
7193 address when no .plt entry is found.
7195 2010-04-16 Stan Shebs <stan@codesourcery.com>
7197 * tracepoint.c (trace_variable_command): Run a cleanup.
7199 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7201 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
7203 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7205 Support for Windows OS Thread Information Block.
7206 * NEWS: Document new feature.
7207 * remote.c (PACKET_qGetTIBAddr): New enum element.
7208 (remote_get_tib_address): New function.
7209 (init_remote_ops): Set to_get_tib_address field
7210 to remote_get_tib_address.
7211 (_initialize_remote): Add add_packet_config_cmd
7212 for PACKET_qGetTIBAddr.
7213 * target.c (update_current_target): Set default value for
7214 new to_get_tib_address field.
7215 * target.h (target_ops): New field to_get_tib_address.
7216 (target_get_tib_address): New macro.
7217 * windows-nat.c (thread_info): Add thread_local_base field.
7218 (windows_add_thread): Add tlb argument of type 'void *'.
7219 (fake_create_process): Adapt windows_add_thread call.
7220 (get_windows_debug_event): Idem.
7221 (windows_get_tib_address): New function.
7222 (init_windows_ops): Set to_get_tib_address field
7223 to remote_get_tib_address.
7224 (_initialize_windows_nat): Replace info_w32_cmdlist
7225 initialization by a call to init_w32_command_list.
7226 (info_w32_command, info_w32_cmdlist): Removed from here...
7227 to windows-tdep.c file.
7228 * windows-tdep.h (info_w32_cmdlist): Declare.
7229 (init_w32_command_list): New external function
7231 * windows-tdep.c: Add several headers.
7232 (info_w32_cmdlist): to here, made global.
7233 (thread_information_32): New struct.
7234 (thread_information_64): New struct.
7235 (TIB_NAME): New char array.
7236 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
7237 (maint_display_all_tib): New static variable.
7238 (windows_get_tlb_type): New function.
7239 (tlb_value_read, tlb_value_write): New functions.
7240 (tlb_value_funcs): New static struct.
7241 (tlb_make_value): New function.
7242 (display_one_tib): New function.
7243 (display_tib): New function.
7244 (show_maint_show_all_tib):New function.
7245 (info_w32_command): Moved from windows-nat.c.
7246 (init_w32_command_list): New function.
7247 (_initialize_windows_tdep): New function.
7248 New "maint set/show show-all-tib" command
7249 New "$_tlb" internal variable.
7251 2010-04-16 Joel Brobecker <brobecker@adacore.com>
7253 * tui/tui-regs.c (tui_display_register): Add comment about
7255 * tui/tui-stack.c (tui_show_locator_content): Ditto.
7257 2010-04-15 Stan Shebs <stan@codesourcery.com>
7259 * frame.c: Include tracepoint.h.
7260 (get_current_frame): Allow a trace frame to be an alternate source
7261 of stack frame data.
7262 * tracepoint.c (tfind_1): Don't try to get current stack frame if
7265 2010-04-15 Pedro Alves <pedro@codesourcery.com>
7267 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
7269 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
7271 2010-04-15 Doug Evans <dje@google.com>
7273 * NEWS: Add entry for python program space support.
7274 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
7275 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
7276 (py-progspace.o): New rule.
7277 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
7279 (find_pretty_printer_from_progspace): New function.
7280 (find_pretty_printer_from_gdb): New function.
7281 (find_pretty_printer): Rewrite.
7282 * python/py-progspace.c: New file.
7283 * python/python-internal.h (program_space): Add forward decl.
7284 (pspace_to_pspace_object, pspy_get_printers): Declare.
7285 (gdbpy_initialize_pspace): Declare.
7286 * python/python.c: #include "progspace.h".
7287 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
7288 (_initialize_python): Call gdbpy_initialize_pspace.
7289 (GdbMethods): Add current_progspace, progspaces.
7291 Add -s option to source command.
7292 * NEWS: Document new option.
7293 * cli/cli-cmds.c (find_and_open_script): Add function comment.
7294 Delete from_tty and cleanupp args. Split filep arg into file and
7295 full_pathp. New arg search_path.
7296 (source_script_from_stream): New function.
7297 (source_script_with_search): New function.
7298 (source_script): Rewrite.
7299 (source_command): Parse "-s" option.
7300 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
7301 * python/python.c (source_python_script): Make file arg a const char *.
7302 Don't call fclose, leave for caller.
7303 * python/python.h (source_python_script): Update.
7305 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7306 Pedro Alves <pedro@codesourcery.com>
7308 Avoid rereading shared libraries that haven't changed.
7310 * solib.c (free_so_symbols): New function, from ...
7311 (free_so): ... here. Call it.
7312 (solib_read_symbols): Don't warn here if symbols have already been
7314 (solib_add): Warn here instead, if a pattern was specified.
7315 (reload_shared_libraries_1): New.
7316 (reload_shared_libraries): Rewrite to not fetch the library list.
7318 2010-04-14 Doug Evans <dje@google.com>
7320 * source.c (openp): Strip DOS drive letter if present before
7321 concatenating string to search path.
7323 2010-04-14 Pedro Alves <pedro@codesourcery.com>
7325 * objfiles.h (gdb_bfd_close_or_warn): Declare.
7326 * objfiles.c (gdb_bfd_close_or_warn): New.
7327 * corelow.c: Include objfiles.h
7328 (core_close): Use gdb_bfd_close_or_warn.
7329 * elfread.c (build_id_verify): Ditto.
7330 * exec.c (exec_close, exec_close_1): Ditto.
7332 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7333 Pedro Alves <pedro@codesourcery.com>
7335 Group errors for many missing shared libraries.
7337 * solist.h (struct so_list): Remove from_tty.
7338 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
7339 (solib_map_sections): Take so_list argument. Return 0 if we
7340 failed to open a BFD. Add target sections here.
7341 (symbol_add_stub): Delete.
7342 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
7343 not from_tty copied from the so_list. Don't warn a second time
7344 for a missing library.
7345 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
7346 add to the section table here. Print out a single warning for all
7348 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
7351 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7353 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
7354 error/warning messages. Capitalize and use complete sentences.
7355 (blpy_block_syms_iternext): Likewise.
7356 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
7357 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
7358 (frame_info_to_frame_object, frapy_read_var)
7359 (gdbpy_frame_stop_reason_string): Likewise.
7360 * python/py-lazy-string.c (stpy_convert_to_value)
7361 (gdbpy_create_lazy_string_object): Likewise.
7362 * python/py-objfile.c (objfpy_set_printers): Likewise.
7363 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
7364 * python/python.c (parameter_to_python): Likewise.
7365 * python/py-type.c (typy_range, typy_target): Likewise.
7366 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
7367 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
7370 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7374 * python/py-prettyprint.c (pretty_print_one_value): Test for
7376 (print_string_repr): Test for Py_None. Set flags accordingly.
7377 Return value depending on return type.
7378 (print_children): Take a value indicating whether data was printed
7379 before this function was called. Alter output accordingly.
7380 (apply_val_pretty_printer): Capture return value from
7381 print_string_repr and pass to print_children.
7383 2010-04-13 Mark Kettenis <kettenis@gnu.org>
7386 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
7387 register note sections.
7388 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
7390 (i386_linux_init_abi): Install list of supported register note
7391 sections that matches the target description.
7393 2010-04-13 Pedro Alves <pedro@codesourcery.com>
7395 * remote.c (remote_get_noisy_reply): Don't error out on empty
7397 (remote_start_remote): Update and merge tracepoints and trace
7398 state variables as long as the target supports tracepoints.
7399 (remote_trace_init): Fix prototype.
7400 (remote_download_trace_state_variable): Validate reply.
7401 (remote_trace_set_readonly_regions): Fix prototype.
7402 (remote_trace_start): Fix prototype. Check for empty reply.
7403 (remote_get_trace_status): Small cleanup.
7404 (remote_trace_stop): Fix prototype. Check for empty reply.
7405 (remote_trace_find): Check for empty reply.
7406 (remote_save_trace_data): Validate reply.
7407 (remote_set_disconnected_tracing): Check for empty reply, and
7409 (remote_set_circular_trace_buffer): Ditto.
7411 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
7413 Suppress unused value warning during compilation.
7414 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
7416 * tui/tui-stack.c (tui_show_locator_content): Likewise.
7418 2010-04-12 Stan Shebs <stan@codesourcery.com>
7420 * tracepoint.c (tfile_xfer_partial): Check read result.
7422 2010-04-12 Mike Frysinger <vapier@gentoo.org>
7424 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
7425 * remote-sim.c (gdbsim_files_info): Likewise.
7427 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7429 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
7430 * arm-linux-nat.c (arm_linux_vfp_register_count): New
7432 (fetch_vfp_registers): New function to fetch VFP registers.
7433 (store_vfp_registers): New function to store VFP registers.
7434 (arm_linux_fetch_inferior_registers): Add support for VFP
7436 (arm_linux_store_inferior_registers): Likewise.
7437 (arm_linux_read_description): Likewise.
7438 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
7441 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
7443 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
7445 (amd64_collect_xstateregset): Likewise.
7447 2010-04-09 Stan Shebs <stan@codesourcery.com>
7449 * tracepoint.c (trace_status_mi): Report frames created.
7451 * tracepoint.c (trace_dump_command): Include default-collect
7454 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
7456 * symtab.c (find_function_start_sal): Never return SAL pointing
7457 before function start address, even if line info is missing.
7459 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7461 * NEWS: Mention tracepoints support.
7463 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7465 * tracepoint.c (trace_status_mi): Report disconnected tracing and
7466 circular trace buffer statuses.
7468 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7470 * config/djgpp/fnchange.lst: Fix typo in translations for
7471 symbol-without-target_section.exp and symbol-without-target_section.c.
7473 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7475 * breakpoint.c (condition_command): Pass condition expression to
7476 set_breakpoint_condition stripped from breakpoint number.
7478 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
7479 Thiago Jung Bauermann <bauerman@br.ibm.com>
7480 Tom Tromey <tromey@redhat.com>
7482 * breakpoint.c (condition_command): Simplify. Move condition
7484 (set_breakpoint_condition): ... here. New function.
7485 * breakpoint.h (set_breakpoint_condition): Declare.
7486 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
7487 (SUBDIR_PYTHON_SRCS): Likewise.
7488 (py-breakpoint.o): New rule.
7489 * python/py-breakpoint.c: New file.
7490 * python/python-internal.h (gdbpy_breakpoints)
7491 (gdbpy_initialize_breakpoints): Declare.
7492 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
7494 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7496 * regformats/regdat.sh: Include server.h. Don't include
7499 2010-04-08 Stan Shebs <stan@codesourcery.com>
7500 Pedro Alves <pedro@codesourcery.com>
7502 * tracepoint.h (struct trace_status): New fields disconnected_tracing
7503 and circular_buffer.
7504 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
7505 * tracepoint.c (trace_status_command): Display target's status for
7506 disconnected tracing and circular buffer.
7507 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
7508 query for non-disconnected-tracing case, remove the stop_tracing
7510 (tfile_open): Clear disconnected and circular buffer status.
7511 (trace_save): Save disconnected and circular buffer status.
7512 (parse_trace_status): Parse disconnected and circular buffer status,
7513 also recognize disconnected as a stop reason.
7514 * remote.c (remote_set_disconnected_tracing): Only set
7515 QTDisconnected if the remote end supports disconnected tracing.
7516 Warn otherwise, if trying to enable disconnected tracing.
7517 * infcmd.c (detach_command): Update disconnect_tracing call.
7518 * cli/cli-cmds.c (quit_command): Ditto.
7520 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7522 * i387-tdep.c (i387_collect_xsave): Replace abort with
7525 2010-04-08 Stan Shebs <stan@codesourcery.com>
7527 * breakpoint.c (default_collect_info): New function.
7528 (breakpoints_info): Call it.
7529 (maintenance_info_breakpoints): Ditto.
7530 (tracepoints_info): Ditto.
7532 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7534 * i387-tdep.c (i387_collect_xsave): Re-indent.
7536 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7538 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
7539 if HAVE_PTRACE_GETFPXREGS is defined.
7540 (i386_linux_read_description): Set have_ptrace_getfpxregs and
7541 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
7543 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
7544 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
7545 if .reg-xfp section doesn't exist.
7546 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
7548 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
7550 * i386-tdep.c: Include "features/i386/i386-mmx.c".
7551 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
7552 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
7553 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
7554 (i386_gdbarch_init): Update comments.
7555 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
7557 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
7559 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
7561 * features/Makefile (i386/i386-mmx-expedite): New.
7562 (i386/i386-mmx-linux-expedite): Likewise.
7563 ($(outdir)/i386/i386-mmx.dat): Likewise.
7564 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
7566 * features/i386/i386-mmx-linux.c: New.
7567 * features/i386/i386-mmx-linux.xml: Likewise.
7568 * features/i386/i386-mmx.c: Likewise.
7569 * features/i386/i386-mmx.xml: Likewise.
7570 * regformats/i386/i386-mmx-linux.dat: Likewise.
7571 * regformats/i386/i386-mmx.dat: Likewise.
7573 * features/Makefile (WHICH): Add i386/i386-mmx and
7574 i386/i386-mmx-linux.
7576 2010-04-08 Doug Evans <dje@google.com>
7578 * source.c (openp): Skip $cdir in PATH.
7580 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
7583 * python/py-lazy-string.c (stpy_convert_to_value): Check for
7585 (gdbpy_create_lazy_string_object): Allow strings with a NULL
7586 address and a zero length.
7588 2010-04-08 Hui Zhu <teawater@gmail.com>
7590 * i386-tdep.c (i386_process_record): Add support for insn
7593 2010-04-07 Doug Evans <dje@google.com>
7595 * python/python.c (source_python_script): Use ensure_python_env
7596 to prepare environment for script.
7598 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7600 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
7601 <sys/uio.h> and "i386-xstate.h".
7602 (PTRACE_GETREGSET): New.
7603 (PTRACE_SETREGSET): Likewise.
7604 (have_ptrace_getregset): Likewise.
7605 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
7607 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
7609 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
7610 (amd64_linux_store_inferior_registers): Likewise.
7611 (amd64_linux_read_description): Check and enable AVX target
7614 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
7615 and "features/i386/amd64-avx-linux.c".
7616 (amd64_linux_regset_sections): New.
7617 (amd64_linux_core_read_description): Check and enable AVX
7619 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
7620 set_gdbarch_core_regset_sections.
7621 (_initialize_amd64_linux_tdep): Call
7622 initialize_tdesc_amd64_avx_linux.
7624 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
7625 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7626 (tdesc_amd64_avx_linux): New.
7627 (amd64_linux_update_xstateregset): Likewise.
7629 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7630 (amd64_ymm_names): New.
7631 (amd64_ymmh_names): Likewise.
7632 (amd64_register_name): Likewise.
7633 (amd64_supply_xstateregset): Likewise.
7634 (amd64_collect_xstateregset): Likewise.
7635 (amd64_supply_xsave): Likewise.
7636 (amd64_collect_xsave): Likewise.
7637 (AMD64_NUM_REGS): Removed.
7638 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7639 %xmmN if AVX is available.
7640 (amd64_pseudo_register_name): Support pseudo YMM registers.
7641 (amd64_regset_from_core_section): Support .reg-xstate section.
7642 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7643 and ymm0h_regnum. Call set_gdbarch_register_name.
7644 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7646 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7647 AMD64_YMM15H_REGNUM.
7648 (AMD64_NUM_REGS): New.
7649 (amd64_supply_xsave): Likewise.
7650 (amd64_collect_xsave): Likewise.
7651 (amd64_register_name): Removed.
7652 (amd64_register_type): Likewise.
7654 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7656 * i387-tdep.c: Include "i386-xstate.h".
7657 (XSAVE_XSTATE_BV_ADDR): New.
7658 (xsave_avxh_offset): Likewise.
7659 (XSAVE_AVXH_ADDR): Likewise.
7660 (i387_supply_xsave): Likewise.
7661 (i387_collect_xsave): Likewise.
7663 * i387-tdep.h (I387_NUM_YMM_REGS): New.
7664 (I387_YMM0H_REGNUM): Likewise.
7665 (I387_YMMENDH_REGNUM): Likewise.
7666 (i387_supply_xsave): Likewise.
7667 (i387_collect_xsave): Likewise.
7669 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7671 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7672 <sys/uio.h> and "i386-xstate.h".
7673 (PTRACE_GETREGSET): New.
7674 (PTRACE_SETREGSET): Likewise.
7675 (fetch_xstateregs): Likewise.
7676 (store_xstateregs): Likewise.
7677 (GETXSTATEREGS_SUPPLIES): Likewise.
7678 (regmap): Include 8 upper YMM registers.
7679 (i386_linux_fetch_inferior_registers): Support XSAVE extended
7681 (i386_linux_store_inferior_registers): Likewise.
7682 (i386_linux_read_description): Check and enable AVX target
7685 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7686 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7687 (i386_linux_regset_sections): Add ".reg-xstate".
7688 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7689 (i386_linux_core_read_xcr0): New.
7690 (i386_linux_core_read_description): Check and enable AVX target
7692 (i386_linux_init_abi): Set xsave_xcr0_offset.
7693 (_initialize_i386_linux_tdep): Call
7694 initialize_tdesc_i386_avx_linux.
7696 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7697 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7698 (i386_linux_core_read_xcr0): New.
7699 (tdesc_i386_avx_linux): Likewise.
7700 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7702 * i386-tdep.c: Include "i386-xstate.h" and
7703 "features/i386/i386-avx.c".
7704 (i386_ymm_names): New.
7705 (i386_ymmh_names): Likewise.
7706 (i386_ymmh_regnum_p): Likewise.
7707 (i386_ymm_regnum_p): Likewise.
7708 (i386_xmm_regnum_p): Likewise.
7709 (i386_register_name): Likewise.
7710 (i386_ymm_type): Likewise.
7711 (i386_supply_xstateregset): Likewise.
7712 (i386_collect_xstateregset): Likewise.
7713 (i386_sse_regnum_p): Removed.
7714 (i386_pseudo_register_name): Support pseudo YMM registers.
7715 (i386_pseudo_register_type): Likewise.
7716 (i386_pseudo_register_read): Likewise.
7717 (i386_pseudo_register_write): Likewise.
7718 (i386_dbx_reg_to_regnum): Return %ymmN register number for
7719 %xmmN if AVX is available.
7720 (i386_regset_from_core_section): Support .reg-xstate section.
7721 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7722 (i386_process_record): Replace i386_sse_regnum_p with
7724 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7725 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
7726 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
7727 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
7728 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
7729 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7731 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7733 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7734 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7736 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7737 (I386_AVX_NUM_REGS): New.
7738 (i386_xmm_regnum_p): Likewise.
7739 (i386_ymm_regnum_p): Likewise.
7740 (i386_ymmh_regnum_p): Likewise.
7742 * common/i386-xstate.h: New.
7744 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7746 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7748 * features/Makefile (WHICH): Add i386/i386-avx,
7749 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7750 (i386/i386-avx-expedite): New.
7751 (i386/i386-avx-linux-expedite): Likewise.
7752 (i386/x86-64-avx-expedite):Likewise.
7753 (i386/x86-64-avx-linux-expedite): Likewise.
7754 ($(outdir)/i386/i386-avx.dat): New dependency.
7755 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7756 ($(outdir)/i386/x86-avx-64.dat): Likewise.
7757 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7759 * features/i386/32bit-avx.xml: New.
7760 * features/i386/64bit-avx.xml: Likewise.
7761 * features/i386/i386-avx-linux.c: Likewise.
7762 * features/i386/i386-avx-linux.xml: Likewise.
7763 * features/i386/i386-avx.c: Likewise.
7764 * features/i386/i386-avx.xml: Likewise.
7765 * features/i386/x86-64-avx-linux.c: Likewise.
7766 * features/i386/x86-64-avx-linux.xml: Likewise.
7767 * features/i386/x86-64-avx.c: Likewise.
7768 * features/i386/x86-64-avx.xml: Likewise.
7769 * regformats/i386/i386-avx-linux.dat: Likewise.
7770 * regformats/i386/i386-avx.dat: Likewise.
7771 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7772 * regformats/i386/x86-64-avx.dat: Likewise.
7774 2010-04-07 Doug Evans <dje@google.com>
7776 * top.c (source_file_name): Make const char *.
7777 * top.h (source_file_name): Update.
7778 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7780 (script_from_file): Change `file' arg to const char *.
7781 * cli/cli-script.h (script_from_file): Update.
7783 2010-04-06 Doug Evans <dje@google.com>
7785 * cli/cli-cmds.c (source_command): Run cleanups.
7787 2010-04-06 Stan Shebs <stan@codesourcery.com>
7789 * defs.h (char_ptr): Move typedef here from...
7790 * ada-lang.c (char_ptr): Remove.
7791 * charset.c (char_ptr): Remove.
7792 * tracepoint.h (struct uploaded_string): Remove.
7793 (struct uploaded_tp): Use vectors for string arrays.
7794 * tracepoint.c (trace_save): Use vectors of actions.
7795 (parse_tracepoint_definition): Ditto.
7796 (get_uploaded_tp): Clear vectors.
7797 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7798 (next_cmd): Change to an int.
7799 (read_next_cmd): Use vector of command strings.
7801 2010-04-06 Doug Evans <dje@google.com>
7803 * top.h (source_script, cd_command): Delete.
7804 * main.c: #include "cli/cli-cmds.h"
7806 2010-04-06 Kevin Buettner <kevinb@redhat.com>
7808 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7809 type in bytes, not bits.
7811 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7813 * stabsread.c (define_symbol): Add support for char
7814 and string constants.
7816 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7818 Remove remaining "%ll" uses.
7819 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7821 * rs6000-nat.c (rs6000_ptrace64): Idem.
7822 * solib-pa64.c (pa64_current_sos): Idem.
7823 * solib-spu.c (spu_current_sos): Idem.
7824 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7826 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7828 * sh64-tdep.c (sh64_show_media_regs): Idem.
7830 2010-04-05 Stan Shebs <stan@codesourcery.com>
7832 * tracepoint.c: Include gdbcore.h.
7833 (tfile_xfer_partial): Return partial results, also try reading
7835 (tfile_has_all_memory): New function.
7836 (init_tfile_ops): Use it.
7838 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7841 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7842 the changes in data-directory.
7843 (init_sysinfo): Reload the syscall XML file if the data-directory
7846 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7849 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7851 2010-04-04 Stan Shebs <stan@codesourcery.com>
7852 Nathan Sidwell <nathan@codesourcery.com>
7854 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7855 breakpoints printed.
7856 (is_hardware_watchpoint): Make argument const.
7857 (is_watchpoint): Ditto.
7858 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7860 (breakpoints_info): Pass NULL to breakpoint_1.
7861 (maintenance_info_breakpoints): Ditto.
7862 (watchpoints_info): New function.
7863 (tracepoints_info): Use breakpoint_1 filter.
7864 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7865 (_initialize_breakpoint): Make "info watchpoints" its own command.
7866 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7867 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7869 2010-04-04 Stan Shebs <stan@codesourcery.com>
7871 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7873 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7875 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7876 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7878 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7880 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7881 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7883 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7885 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7888 2010-04-02 Hui Zhu <teawater@gmail.com>
7890 * i386-tdep.c (OT_DQUAD): New enum.
7891 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7892 SSE3, SSSE3 and SSE4.
7894 2010-04-02 Hui Zhu <teawater@gmail.com>
7896 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7899 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7901 * tracepoint.c (trace_dump_actions): New, factored out from
7902 trace_dump_command, and adjusted to recurse into while-stepping's
7904 (trace_dump_command): Use it.
7906 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7908 * breakpoint.h (struct counted_command_line): Moved definition to
7909 breakpoint.c, and forward declare.
7910 (breakpoint_commands): Declare.
7911 * breakpoint.c (struct counted_command_line): Moved here.
7912 (breakpoint_commands): New.
7913 * tracepoint.c (encode_actions): Use breakpoint_commands.
7914 * remote.c (remote_download_tracepoint): Ditto.
7916 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7918 * remote.c (remote_parse_stop_reply): Use hex_string instead
7919 of phex_nz for error.
7921 2010-04-01 Stan Shebs <stan@codesourcery.com>
7922 Nathan Sidwell <nathan@codesourcery.com>
7924 * tracepoint.h (enum actionline_type): Remove.
7925 (validate_actionline): Change return to void.
7926 * tracepoint.c (report_agent_reqs_errors): New function.
7927 (validate_actionline): Call it, change return to void, report errors
7929 (collect_symbol): Call report_agent_reqs_errors.
7930 (encode_actions_1): Ditto.
7931 (encode_actions): Don't expect a result from validate_actionline.
7933 2010-04-01 Stan Shebs <stan@codesourcery.com>
7935 * tracepoint.c (trace_start_command): Confirm if trace is running.
7936 (trace_stop_command): Error if trace not running.
7938 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7940 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7941 (AMD64_NUM_LOWER_BYTE_REGS): New.
7942 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7943 (amd64_pseudo_register_write): Likewise.
7944 (amd64_init_abi): Set num_byte_regs to 20.
7946 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7948 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7949 (prev_breakpoint_count): New.
7950 (set_breakpoint_count): Adjust.
7951 (rbreak_start_breakpoint_count): New.
7952 (start_rbreak_breakpoints): Adjust.
7953 (end_rbreak_breakpoints): Adjust.
7954 (struct commands_info) <arg>: New field.
7955 (do_map_commands_command): Tweak output to include breakpoint spec
7957 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7958 ARG was empty on entry. Set INFO's arg.
7959 (create_breakpoint): Adjust.
7961 * NEWS: Clarify `commands' changes.
7963 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7965 * tracepoint.c: Include stack.h.
7966 (struct add_local_symbols_data): New.
7967 (do_collect_symbol): New.
7968 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7969 iterate_over_block_local_vars.
7970 * stack.c (print_block_frame_locals): Rewrite as ...
7971 (iterate_over_block_locals): ... this. Take a callback function
7972 pointer and generic data pointer, and call that instead of
7973 print_variable_and_value.
7974 (struct print_variable_and_value_data): New.
7975 (do_print_variable_and_value): New.
7976 (iterate_over_block_local_vars): New, abstracted out from
7977 print_frame_local_vars.
7978 (print_frame_local_vars): Rewrite using
7979 iterate_over_block_local_vars.
7980 (iterate_over_block_arg_vars): New, abstracted out from
7981 print_frame_arg_vars.
7982 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7983 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7984 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7986 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
7988 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
7989 instructions. Use the PC+4 if the base of the TBB or TBH is the
7992 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7994 Fix crash on reading wrong function declaration DWARF.
7995 * dwarf2read.c (read_subroutine_type): New variable void_type.
7996 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7997 more close to their use.
7999 2010-03-31 Stan Shebs <stan@codesourcery.com>
8001 * breakpoint.c (tracepoint_save_command): Include variables,
8002 conditionals, tracepoint types, and default-collect.
8003 * tracepoint.c (save_trace_state_variables): New function.
8004 * tracepoint.h (save_trace_state_variables): Declare it.
8006 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
8008 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
8010 2010-03-30 Keith Seitz <keiths@redhat.com>
8012 * c-typeprint.c (c_type_print_args): Don't print "void"
8013 for java, regardless of whether it is TYPE_PROTOTYPED.
8014 Use the passed-in language instead of current_language.
8015 (c_type_print_varspec_suffix): Use current_language instead
8016 of assuming language_c.
8017 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
8018 any return type specifier from the physname.
8020 2010-03-30 Pedro Alves <pedro@codesourcery.com>
8022 * tui/tui-interp.c (tui_is_toplevel): New.
8024 (tui_allowed_p): New.
8025 * tui/tui.c (tui_enable): Check if the TUI is allowed before
8027 * tui/tui.h (tui_allowed_p): Declare.
8029 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
8031 * serial.h: Include winsock2.h before windows.h.
8033 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
8035 * NEWS: Mention xmlRegisters= in qSupported packet.
8037 * i386-tdep.c: Include "remote.h".
8038 (_initialize_i386_tdep): Call register_remote_support_xml.
8040 * remote.c (remote_support_xml): New.
8041 (register_remote_support_xml): Likewise.
8042 (remote_query_supported_append): Likewise.
8043 (remote_query_supported): Support remote_support_xml.
8045 * remote.h (register_remote_support_xml): New.
8047 2010-03-29 Stan Shebs <stan@codesourcery.com>
8049 * tracepoint.c (trace_find_line_command): Remove dead code.
8051 * tracepoint.h (struct uploaded_string): New struct.
8052 (struct uploaded_tp): New fields for source strings.
8053 * breakpoint.c (this_utp, next_cmd): New globals.
8054 (read_uploaded_action): New function.
8055 (create_tracepoint_from_upload): Fill in more parts
8057 * tracepoint.c (encode_source_string): New function.
8058 (trace_save): Write out source strings, fix error checks.
8059 (parse_tracepoint_definition): Add source string parsing.
8060 * remote.c (PACKET_TracepointSource): New packet type.
8061 (remote_download_command_source): New function.
8062 (remote_download_tracepoint): Download source pieces also.
8063 (_initialize_remote): Add packet config command.
8065 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
8068 * tracepoint.c (start_tracing): Check tracepoints before sending
8069 commands to target, don't start if all tracepoints disabled.
8071 2010-03-28 Pedro Alves <pedro@codesourcery.com>
8073 * cli/cli-script.c (process_next_line): Handle 'stepping'.
8075 2010-03-26 Stan Shebs <stan@codesourcery.com>
8077 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
8079 2010-03-26 Tom Tromey <tromey@redhat.com>
8081 * breakpoint.c (commands_command_1): Duplicate 'arg'.
8083 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8085 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
8086 (skip_prologue_sal): Remove local definition.
8087 (resolve_sal_pc): Remove now unnecessary code.
8088 * linespec.c (minsym_found): Call skip_prologue_sal.
8089 * symtab.c (find_function_start_pc): Remove.
8090 (find_function_start_sal): Extract prologue skipping into ...
8091 (skip_prologue_sal): ... this new function. Handle code both
8092 with and without debug info. Respect SAL's explicit_pc and
8093 explicit_line flags. Inline old find_function_start_pc.
8094 * symtab.h (find_function_start_pc): Remove.
8095 (skip_prologue_sal): Add prototype.
8097 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8099 * dwarf2read.c (read_func_scope): Also scan specification DIEs
8100 for DW_TAG_imported_module children.
8102 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8104 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
8105 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
8106 * completer.c (add_struct_fields): Fix inverted logic.
8108 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8110 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
8112 2010-03-26 Pedro Alves <pedro@codesourcery.com>
8114 * tracepoint.c (current_trace_status): Don't make sure error_desc
8116 (parse_trace_status): Release a previous error_desc string, and
8117 set it to NULL by default. If stop reason is tracepoint_error,
8118 make sure error_desc is not left NULL.
8120 2010-03-26 Pedro Alves <pedro@codesourcery.com>
8122 * tracepoint.c (trace_save): Remove X from tracepoint error
8125 2010-03-26 Pedro Alves <pedro@codesourcery.com>
8127 * tracepoint.c (parse_trace_status): Don't allow plain strings in
8128 the terror description. Don't expect an X prefix.
8130 2010-03-25 Stan Shebs <stan@codesourcery.com>
8132 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
8133 (struct trace_status): New field error_desc.
8134 * tracepoint.c (stop_reason_names): Add terror.
8135 (current_trace_status): Ensure non-NULL error description.
8136 (trace_status_command): Add error report.
8137 (trace_status_mi): Ditto.
8138 (trace_save): Add special case for error description.
8139 (parse_trace_status): Add case for errors.
8141 2010-03-25 Keith Seitz <keiths@redhat.com>
8143 * dwarf2read.c (read_subroutine_type): If the compilation unit
8144 language is Java, mark any formal parameter named "this" as
8145 artificial (GCC/43521).
8146 (dwarf2_name): Add special handling for Java constructors.
8148 2010-03-25 Tom Tromey <tromey@redhat.com>
8150 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
8151 * infrun.c (handle_inferior_event): Change initialization of
8153 (handle_inferior_event): Change assignment to stop_stack_dummy.
8154 (normal_stop): Update use of stop_stack_dummy.
8155 (struct inferior_status) <stop_stack_dummy>: Change type.
8156 * inferior.h (stop_stack_dummy): Update.
8157 * infcmd.c (stop_stack_dummy): Change type.
8158 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
8160 (call_function_by_hand): Call set_std_terminate_breakpoint.
8161 Rewrite std::terminate handling.
8162 * breakpoint.h (enum bptype) <bp_std_terminate,
8163 bp_std_terminate_master>: New.
8164 (enum stop_stack_kind): New.
8165 (struct bpstat_what) <call_dummy>: Change type.
8166 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
8168 * breakpoint.c (create_std_terminate_master_breakpoint): New
8170 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
8171 Call create_std_terminate_master_breakpoint.
8172 (print_it_typical): Handle new breakpoint kinds.
8173 (bpstat_stop_status): Handle bp_std_terminate_master.
8174 (bpstat_what): Correctly set call_dummy field. Handle
8175 bp_std_terminate_master and bp_std_terminate.
8176 (print_one_breakpoint_location): Update.
8177 (allocate_bp_location): Update.
8178 (set_std_terminate_breakpoint): New function.
8179 (delete_std_terminate_breakpoint): Likewise.
8180 (create_thread_event_breakpoint): Update.
8181 (delete_command): Update.
8182 (breakpoint_re_set_one): Update.
8183 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
8185 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8187 * symfile.c (build_section_addr_info_from_bfd): New.
8188 (build_section_addr_info_from_objfile): Base it on
8189 build_section_addr_info_from_bfd.
8190 (addrs_section_compar, addrs_section_sort): New.
8191 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
8192 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
8193 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
8195 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
8197 * elfread.c (find_separate_debug_file_by_buildid):
8198 Remove unused local variable.
8200 2010-03-24 Tom Tromey <tromey@redhat.com>
8202 PR breakpoints/9352:
8203 * NEWS: Mention changes to `commands' and `rbreak'.
8204 * symtab.c (do_end_rbreak_breakpoints): New function.
8205 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
8206 end_rbreak_breakpoints.
8207 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
8208 (set_breakpoint_count): Likewise. Clear last_was_multi.
8209 (multi_start, multi_end, last_was_multi): New globals.
8210 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
8212 (struct commands_info): New
8213 (do_map_commands_command): New function.
8214 (commands_command_1): New function.
8215 (commands_command): Use it.
8216 (commands_from_control_command): Likewise.
8217 (do_delete_breakpoint): New function.
8218 (delete_command): Use it.
8219 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
8220 (do_map_disable_breakpoint): New function.
8221 (disable_command): Use it.
8222 (do_map_enable_breakpoint): New function.
8223 (enable_command): Use it.
8224 (enable_once_breakpoint): Add argument.
8225 (enable_once_command): Update.
8226 (enable_delete_breakpoint): Add argument.
8227 (enable_delete_command): Update.
8228 (break_command_really): Set last_was_multi when needed.
8229 (check_tracepoint_command): Fix formatting.
8230 (validate_commands_for_breakpoint): New function.
8231 (breakpoint_set_commands): Use it.
8232 (tracepoint_save_command): Update.
8233 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
8236 2010-03-24 Tom Tromey <tromey@redhat.com>
8238 * breakpoint.h (struct counted_command_line): New struct.
8239 (struct breakpoint) <commands>: Change type.
8240 (struct bpstats) <commands>: Change type.
8241 <commands_left>: New field.
8242 * breakpoint.c (alloc_counted_command_line): New function.
8243 (incref_counted_command_line): Likewise.
8244 (decref_counted_command_line): Likewise.
8245 (do_cleanup_counted_command_line): Likewise.
8246 (make_cleanup_decref_counted_command_line): Likewise.
8247 (breakpoint_set_commands): Use decref_counted_command_line and
8248 alloc_counted_command_line.
8249 (commands_command): Don't error if breakpoint commands are
8251 (commands_from_control_command): Likewise.
8252 (bpstat_free): Update.
8253 (bpstat_copy): Likewise.
8254 (bpstat_clear_actions): Likewise.
8255 (bpstat_do_actions_1): Likewise.
8256 (bpstat_stop_status): Likewise.
8257 (print_one_breakpoint_location): Likewise.
8258 (delete_breakpoint): Likewise.
8259 (bpstat_alloc): Initialize new field.
8260 (tracepoint_save_command): Update.
8261 * tracepoint.c (encode_actions): Update.
8262 (trace_dump_command): Update.
8264 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8266 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
8267 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
8268 (read_structure_type): For RealView, set TYPE_STUB on structures with
8269 no byte size and no children.
8270 (read_subroutine_type): Mark functions as prototyped by default.
8271 * symtab.c (producer_is_realview): New function.
8272 * symtab.h (expand_line_sal): Fix declaration formatting.
8273 (producer_is_realview): Declare.
8275 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8277 * arm-tdep.c (skip_prologue_function): New function.
8278 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
8279 (thumb_analyze_prologue): Document return value. Recognize more
8280 Thumb instructions, skippable calls, and some Thumb-2 instructions.
8282 (arm_skip_prologue): Remove call dummy check. Check the prologue
8283 for non-GNU compilers.
8284 (arm_instruction_changes_pc): New function.
8285 (arm_analyze_prologue): New function, broken out from
8286 arm_scan_prologue. Recognize more ARM instructions and skippable
8287 calls. Update comments. Handle NULL cache. Return the address
8288 of the first unrecognized instruction. Do not skip past other
8289 instructions which change control flow. Add debug output.
8290 (arm_scan_prologue): Use arm_analyze_prologue.
8291 (ARM_PC_32): Delete.
8292 (shifted_reg_val): Simplify ARM_PC_32 check.
8294 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8296 * tracepoint.c (tvariables_info_1): Actually compute
8297 the number of rows in the result.
8299 2010-03-24 Pedro Alves <pedro@codesourcery.com>
8301 * remote.c (crc32): Constify `buf' parameter.
8302 (remote_verify_memory): New, abstracted out from...
8303 (compare_sections_command): ... this. Remove hardcoded target
8305 (init_remote_ops): Install remote_verify_memory.
8306 * target.c (target_verify_memory): New.
8307 * target.h (struct target_ops) <to_verify_memory>: New field.
8308 (target_verify_memory): Declare.
8310 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8312 Implement -trace-save.
8314 * mi-cmds.h (mi_cmds_trace_save): Declare.
8315 * mi-cmds.c (mi_cmds): Register -trace-save.
8316 * mi/mi-main.c (mi_cmd_trace_save): New.
8317 * remote.c (remote_save_trace_data): Take const parameter.
8318 * target.h (struct target_ops::to_save_trace_data): Take
8320 * target.c (update_current_target): Adjust to the above.
8321 * tracepoint.c (trave_save): New, extracted from
8322 (trace_save_command): ...this.
8323 (tfile_trace_find): Remove message that is unnecessary now
8324 that 'tfind' reports found frame.
8325 * tracepoint.h (trace_save): Declare.
8327 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8329 Implement -trace-find.
8331 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
8332 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
8333 * mi/mi-main.c (mi_cmd_trace_find): New.
8334 * target.h (struct target_ops): Document to_trace_find.
8335 * tracepoint.h (tfind_1): Declare.
8336 * tracepoint.c (finish_tfind_command): Rename to...
8338 * remote.c (remote_trace_find): Return -1 if target say
8339 there's no frame. Improve error diagnostics.
8341 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8343 -trace-define-variable and -trace-list-variables.
8345 * tracepoint.c (create_trace_state_variable): Make
8346 private copy of name, as opposed to assuming the
8347 pointer lives forever.
8348 (tvariables_info_1): New.
8349 (tvariables_info): Use the above.
8350 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
8352 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
8353 and -trace-list-variables.
8354 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
8355 (mi_cmd_trace_list_variables): New.
8356 * mi/mi-main.c (mi_cmd_trace_define_variable)
8357 (mi_cmd_trace_list_variables): New.
8359 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8361 Implement -break-passcount.
8363 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
8364 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
8365 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
8367 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8369 -trace-start/-trace-end/-trace-status.
8371 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
8373 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
8374 (mi_cmd_trace_stop): Declare.
8375 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
8376 (mi_cmd_trace_stop): New.
8377 * tracepoint.c (start_tracing): New, extracted from...
8378 (trace_start_command): ...this.
8379 (trace_status_mi): New.
8380 * tracepoint.h (struct trace_status): Document
8381 stopping_tracepoint.
8382 (start_tracing, stop_tracing, trace_status_mi): Declare.
8384 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8386 Implement creating tracepoints with -break-insert.
8388 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
8389 to mean that tracepoint should be created.
8391 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8393 * breakpoint.c (check_no_tracepoint_commands): Use
8394 current spelling of 'teval'.
8396 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8398 Unify actions and commands
8400 * defs.h (read_command_lines, read_command_lines_1): New
8401 parameters validator and closure.
8402 * tracepoint.h (struct action_line): Remove.
8403 * breakpoint.h (struct breakpoint): Remove the 'actions'
8405 * defs.h (enum command_control_type): New value
8406 while_stepping_control.
8407 (struct command_line): Add comments.
8408 * breakpoint.c (breakoint_is_tracepoint): New.
8409 (breakpoint_set_commands): For tracepoints,
8410 verify the commands are permissible.
8411 (check_tracepoint_commands): New.
8412 (commands_command): Require that each new line is validated using
8413 check_tracepoint_command, if we set commands for a tracepoint.
8414 (create_tracepoint_from_upload): Likewise.
8415 (print_one_breakpoint_location): Remove the code to print
8416 actions specifically.
8417 (tracepoint_save_command): Relay to print_command_lines.
8418 * cli/cli-script.c (process_next_line): New parameters validator
8419 and closure. Handle 'while-stepping'. Call validator if not null.
8420 (read_command_lines, read_command_lines1): Likewise.
8421 (recurse_read_control_structure): New parameters validator and
8422 closure. Handle while_stepping_control.
8423 (print_command_lines): Handle while-stepping.
8424 (get_command_line, define_command, document_command): Adjust.
8425 * remote.c (remote_download_tracepoint): Adjust.
8426 * tracepoint.c (make_cleanup_free_actions, read_actions)
8427 (free_actions, do_free_actions_cleanup): Remove.
8428 (trace_actions_command): Use read_command_lines.
8429 (validate_actionline): Use error in one place.
8430 (encode_actions_1): New, extracted from...
8431 (encode_actions): ...this. Also use cleanups for exception
8433 (trace_dump_command): Adjust.
8434 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
8437 2010-03-23 Mike Frysinger <vapier@gentoo.org>
8439 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
8441 2010-03-22 Stan Shebs <stan@codesourcery.com>
8443 * value.c (value_static_field): Be lazy about the field's value.
8445 2010-03-22 Reid Kleckner <reid@kleckner.net>
8448 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
8450 (disable_breakpoints_in_shlibs): Likewise.
8452 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
8454 * dwarf2read.c (partial_die_parent_scope): Work around buggy
8455 GCC 4.1 debug info generation (GCC PR c++/28460).
8456 (determine_prefix): Likewise.
8458 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
8460 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
8462 * tui/tui-layout.c (extract_display_start_addr): Likewise.
8464 2010-03-19 Stan Shebs <stan@codesourcery.com>
8466 * ax-gdb.c (gen_fetch): Handle bool.
8467 (gen_usual_unary): Ditto.
8469 (gen_equal): New function.
8470 (gen_less): New function.
8471 (gen_expr_binop_rest): Call them, also return integer type from
8475 2010-03-19 Tom Tromey <tromey@redhat.com>
8477 * jv-lang.c (jv_dynamics_objfile_data_key)
8478 (jv_type_objfile_data_key): New globals.
8479 (class_symtab): Move earlier.
8480 (jv_per_objfile_free): New function.
8481 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
8483 Remove ancient #if 1.
8484 (add_class_symbol): Remove redundant declaration.
8485 (java_lookup_class): Use alloc_type, not alloc_type_arch.
8486 (java_link_class_type): Mark as static. Update.
8487 (jv_clear_object_type): New function.
8488 (set_java_object_type): Likewise.
8489 (get_java_object_type): Use set_java_object_type.
8490 (is_object_type): Likewise.
8491 (_initialize_java_language): Register new objfile keys.
8492 (get_java_class_symtab): Add 'gdbarch' parameter.
8493 (add_class_symtab_symbol): Update.
8494 (type_from_class): Update.
8496 2010-03-19 Stan Shebs <stan@codesourcery.com>
8498 * ax-general.c (ax_const_l): Fix a sizing bug.
8500 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8504 2010-03-18 Stan Shebs <stan@codesourcery.com>
8505 Pedro Alves <pedro@codesourcery.com>
8507 * target.h (struct target_ops): New method
8508 to_set_circular_trace_buffer.
8509 (target_set_circular_trace_buffer): New macro.
8510 * target.c (update_current_target): Add
8511 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
8513 * remote.c (remote_set_circular_trace_buffer): New function.
8514 (init_remote_ops): Add it to vector.
8515 * tracepoint.h (struct trace_status): New field traceframes_created,
8516 change buffer_size and buffer_free to int.
8517 * tracepoint.c (circular_trace_buffer): New global.
8518 (start_tracing): Send values of disconnected tracing and circular
8519 trace buffer settings.
8520 (set_circular_trace_buffer): New function.
8521 (parse_trace_state): Handle total space and frames created.
8522 (trace_status_command): Display total space and total frames
8524 (trace_save): Write out new status values.
8525 (parse_trace_status): Set traceframe_count, traceframes_created,
8526 buffer_free and buffer_size to -1 by default.
8527 (_initialize_tracepoint): New setshow for circular-trace-buffer.
8528 * NEWS: Mention the circular trace buffer option.
8530 2010-03-18 Tom Tromey <tromey@redhat.com>
8532 * infcmd.c (finish_command_continuation): Wrap print_return_value
8535 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8537 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
8538 DIE has a name before creating the associated partial symbol.
8539 (read_func_scope): Emit a complaint if the subprogram does not
8540 have a name or when we can't extract the subprogram PC bounds.
8542 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
8544 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
8545 instead of selected frame architecture.
8547 2010-03-18 Pedro Alves <pedro@codesourcery.com>
8549 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
8550 a valid selected thread, and that it is not running.
8551 (advance_command): Ditto.
8552 (finish_command): Ditto.
8554 2010-03-17 Stan Shebs <stan@codesourcery.com>
8556 * ax-gdb.c (require_rvalue): Disallow non-scalars.
8558 * infcall.c: Include tracepoint.h.
8559 (call_function_by_hand): Disallow calls in tfind mode.
8560 * infcmd.c: Include tracepoint.h.
8561 (ensure_not_tfind_mode): New function.
8562 (continue_1): Call it.
8564 (jump_command): Ditto.
8565 (signal_command): Ditto.
8566 (advance_command): Ditto.
8567 (until_command): Ditto.
8568 (finish_command): Ditto.
8569 * tracepoint.h (disconnect_or_stop_tracing): Declare.
8571 * ax-gdb.h (struct axs_value): New field optimized_out.
8572 (gen_trace_for_var): Add gdbarch argument.
8573 * ax-gdb.c (gen_trace_static_fields): New function.
8574 (gen_traced_pop): Call it, add gdbarch argument.
8575 (gen_trace_for_expr): Update call to it.
8576 (gen_trace_for_var): Ditto, and report optimized-out variables.
8577 (gen_struct_ref_recursive): Check for optimized-out value.
8578 (gen_struct_elt_for_reference): Ditto.
8579 (gen_static_field): Pass gdbarch instead of expression, assume
8580 optimization if field not found.
8581 (gen_var_ref): Set the optimized_out flag.
8582 (gen_expr): Error on optimized-out variable.
8583 * tracepoint.c (collect_symbol): Handle struct-valued vars as
8584 expressions, skip optimized-out variables with computed locations.
8585 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
8586 erroring out if location expression missing.
8587 (loclist_tracepoint_var_ref): Don't error out here.
8589 2010-03-17 Tom Tromey <tromey@redhat.com>
8591 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
8592 DWARF data is available.
8594 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
8596 * symfile.c (generic_load): Reset breakpoints after loading.
8598 2010-03-17 Tom Tromey <tromey@redhat.com>
8600 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
8602 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8604 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
8605 create_breakpoint call, adjust the parameters.
8607 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8608 Chandru <chandru@in.ibm.com>
8610 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
8611 * valarith.c (value_subscripted_rvalue): Suppress error if
8612 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
8614 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
8616 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
8618 2010-03-16 Joel Brobecker <brobecker@adacore.com>
8620 * ada-tasks.c (task_command_1): Check that the task ptid is valid
8621 before doing the associated thread switch.
8623 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
8625 * MAINTAINERS: Update my email address.
8627 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
8629 Simplify MI breakpoint setting.
8631 * breakpoint.c (break_command_really): Make nonstatic and
8633 (create_breakpoint): ...this. Rename prior function by this name
8635 (create_breakpoint_sal): ...this.
8636 (create_breakpoints): Rename to...
8637 (create_breakpoints_sal): ...this.
8638 (set_breakpoint): Remove.
8639 * breakpoint.h: Adjust to above changes.
8640 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8642 2010-03-15 Stan Shebs <stan@codesourcery.com>
8644 * ax-gdb.c: Include cp-support.h.
8645 (find_field): Remove.
8646 (gen_primitive_field): New function.
8647 (gen_struct_ref_recursive): New function.
8648 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8650 (gen_static_field): New function.
8651 (gen_struct_elt_for_reference): New.
8652 (gen_namespace_elt): New.
8653 (gen_maybe_namespace_elt): New.
8654 (gen_aggregate_elt_ref): New.
8655 (gen_expr): Add OP_SCOPE, display opcode name in error message.
8657 2010-03-15 Tom Tromey <tromey@redhat.com>
8659 * dwarf2read.c (die_needs_namespace): Also return 0 for
8662 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
8665 * cp-support.h: Added char *declaration element to using_direct
8667 (cp_add_using): Added char *declaration argument.
8668 (cp_add_using_directive): Ditto.
8669 (cp_lookup_symbol_imports): made extern.
8670 * cp-namespace.c: Updated with the above changes.
8671 * dwarf2read.c (read_import_statement): Ditto.
8672 (read_namespace): Ditto.
8673 (read_import_statement): Support import declarations.
8674 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8676 Added support for 'declaration_only' search.
8677 (cp_lookup_symbol_namespace): Attempt to search for the name as
8678 is before consideration of imports.
8679 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8680 search at every block level search.
8681 Now takes language argument.
8682 (lookup_symbol_aux): Updated.
8684 2010-03-15 Tom Tromey <tromey@redhat.com>
8686 * c-exp.y (name_not_typename): Add 'operator' clause.
8688 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
8690 * configure.ac: Exit if ${gdb_target_obs}" is not set.
8691 * configure: Regenerate.
8693 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8695 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8696 and ".sdynbss". Update the comment.
8698 2010-03-15 Jie Zhang <jie@codesourcery.com>
8700 * MAINTAINERS: Update my email address.
8702 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8704 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8706 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8708 * charset.c [USE_WIN32API]: Include <windows.h>.
8709 (_initialize_charset): Correct type of w32_host_default_charset.
8711 2010-03-14 Pedro Alves <pedro@codesourcery.com>
8713 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8715 2010-03-12 Tom Tromey <tromey@redhat.com>
8718 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8719 in a lexical block does not need a namespace.
8720 (new_symbol) <DW_TAG_variable>: Put extern variables on
8721 list_in_scope in all cases.
8723 2010-03-12 Stan Shebs <stan@codesourcery.com>
8725 * ax-gdb.c (gen_expr): Add shift expressions.
8726 (gen_expr_binop_rest): Ditto.
8728 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
8730 * buildsym.c (finish_block): Reset using_directives pointer
8731 after block initialization.
8733 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
8735 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8736 * i386-tdep.c (i386_word_names): Likewise.
8738 2010-03-12 Pedro Alves <pedro@codesourcery.com>
8740 * target.c (memory_xfer_partial): Don't use the stack cache if
8741 inspecting trace frames.
8742 * tracepoint.c (finish_tfind_command): Invalidate the target
8745 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8747 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8748 for the PIC displacement, print also the displacement value.
8749 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
8751 2010-03-10 Kevin Buettner <kevinb@redhat.com>
8753 * remote-mips.c (close_ports, mips_initialize_cleanups)
8754 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8755 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8756 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8757 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8758 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8759 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8760 comments describing each of these functions.
8761 (mips_enter_debug, mips_exit_debug, common_open)
8762 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8763 blank line after the comment describing the function.
8765 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8767 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8768 parameter displacementp. Update comment.
8769 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8770 element exists. Return if svr4_exec_displacement was not successful.
8773 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8774 Daniel Jacobowitz <dan@codesourcery.com>
8776 * solib-svr4.c (read_program_header): Support type == -1 to read
8777 all program headers.
8778 (read_program_headers_from_bfd): New function.
8779 (svr4_static_exec_displacement): Remove and move the comment ...
8780 (svr4_exec_displacement): ... here. Remove variable found. New
8781 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8782 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8783 targets using read_program_headers_from_bfd. Remove the call of
8784 svr4_static_exec_displacement.
8786 2010-03-10 Tom Tromey <tromey@redhat.com>
8788 * dwarf2read.c (struct pubnames_header): Remove.
8789 (_PUBNAMES_HEADER): Remove.
8790 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8791 (struct aranges_header): Remove.
8792 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8793 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8794 (PUBNAMES_SECTION): Remove.
8795 (ARANGES_SECTION): Remove.
8796 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8797 (dwarf2_build_psymtabs): Remove dead code.
8798 (dwarf2_build_psymtabs_easy): Remove.
8800 2010-03-10 Tom Tromey <tromey@redhat.com>
8802 * elfread.c (elf_symfile_read): Don't call
8803 dwarf2_build_frame_info.
8804 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8805 (struct dwarf2_per_objfile) <objfile>: New field.
8806 (dwarf2_has_info): Now idempotent. Set objfile field.
8807 (dwarf2_read_section): Check and set readin field. Call
8809 (dwarf2_build_psymtabs): Don't read all sections.
8810 (read_type_comp_unit_head): Read types section.
8811 (create_debug_types_hash_table): Likewise.
8812 (init_cu_die_reader): Add asserts.
8813 (process_type_comp_unit): Add assert.
8814 (dwarf2_build_psymtabs_hard): Read info section.
8815 (load_partial_comp_unit): Add assert.
8816 (create_all_comp_units): Read info section.
8817 (load_full_comp_unit): Likewise.
8818 (dwarf2_ranges_read): Read ranges section.
8819 (dwarf2_record_block_ranges): Add assert.
8820 (dwarf2_read_abbrevs): Read abbrev section.
8821 (read_indirect_string): Read str section.
8822 (dwarf_decode_line_header): Read line section.
8823 (read_signatured_type_at_offset): Read types section.
8824 (dwarf_decode_macros): Read macinfo section.
8825 (dwarf2_symbol_mark_computed): Read loc section.
8826 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8827 dwarf2_build_frame_info.
8828 (dwarf2_build_frame_info): Unconditionally set
8829 dwarf2_frame_objfile_data on the objfile.
8830 * configure.ac: Check for posix_madvise.
8831 * config.in, configure: Rebuild.
8833 2010-03-10 Tom Tromey <tromey@redhat.com>
8835 * xcoffread.c (xcoff_start_psymtab): Update.
8836 (xcoff_end_psymtab): Update.
8837 * psymtab.c (allocate_psymtab): Remove dead code.
8838 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8840 * mdebugread.c (parse_partial_symbols): Update.
8841 (new_psymtab): Likewise.
8842 * dwarf2read.c (process_psymtab_comp_unit): Update.
8843 (psymtab_to_symtab_1): Update.
8844 * dbxread.c (start_psymtab): Update.
8845 (end_psymtab): Likewise.
8847 2010-03-10 Tom Tromey <tromey@redhat.com>
8849 * xcoffread.c: Include psymtab.h.
8850 (xcoff_sym_fns): Update.
8851 * symtab.h (struct partial_symbol): Remove.
8852 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8853 (struct partial_symtab): Remove.
8854 (PSYMTAB_TO_SYMTAB): Remove.
8855 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8856 (find_pc_sect_psymtab): Remove.
8857 (find_pc_sect_symtab_via_partial): Declare.
8858 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8859 (find_main_psymtab): Remove.
8860 (find_main_filename): Declare.
8861 (fixup_psymbol_section): Remove.
8862 (fixup_section): Declare.
8863 * symtab.c: Include psymtab.h.
8864 (lookup_symtab): Use lookup_symtab method.
8865 (lookup_partial_symtab): Remove.
8866 (find_pc_sect_psymtab_closer): Remove.
8867 (find_pc_sect_psymtab): Remove.
8868 (find_pc_sect_symtab_via_partial): New function.
8869 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8870 (fixup_section): No longer static.
8871 (fixup_psymbol_section): Remove.
8872 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8873 (lookup_global_symbol_from_objfile): Likewise.
8874 (lookup_symbol_aux_psymtabs): Remove.
8875 (lookup_symbol_aux_quick): New function.
8876 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8877 (lookup_partial_symbol): Remove.
8878 (basic_lookup_transparent_type_quick): New function.
8879 (basic_lookup_transparent_type): Use it.
8880 (find_main_psymtab): Remove.
8881 (find_main_filename): New function.
8882 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8883 (find_line_symtab): Use expand_symtabs_with_filename method.
8884 (output_partial_symbol_filename): New function.
8885 (sources_info): Use map_partial_symbol_filenames.
8886 (struct search_symbols_data): New type.
8887 (search_symbols_file_matches): New function.
8888 (search_symbols_name_matches): Likewise.
8889 (search_symbols): Use expand_symtabs_matching method.
8890 (struct add_name_data): Rename from add_macro_name_data.
8891 (add_macro_name): Update.
8892 (add_partial_symbol_name): New function.
8893 (default_make_symbol_completion_list): Use
8894 map_partial_symbol_names.
8895 (struct add_partial_symbol_name): New type.
8896 (maybe_add_partial_symtab_filename): New function.
8897 (make_source_files_completion_list): Use
8898 map_partial_symbol_filenames.
8899 (expand_line_sal): Use expand_symtabs_with_filename method.
8900 * symmisc.c: Include psymtab.h.
8901 (print_objfile_statistics): Use print_stats method.
8902 (dump_objfile): Use dump method.
8903 (dump_psymtab, maintenance_print_psymbols)
8904 (maintenance_info_psymtabs, maintenance_check_symtabs)
8905 (extend_psymbol_list): Remove.
8906 * symfile.h (struct quick_symbol_functions): New struct.
8907 (struct sym_fns) <qf>: New field.
8908 (sort_pst_symbols): Remove.
8909 (increment_reading_symtab): Declare.
8910 * symfile.c: Include psymtab.h.
8911 (compare_psymbols, sort_pst_symbols): Remove.
8912 (psymtab_to_symtab): Remove.
8913 (increment_reading_symtab): New function.
8914 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8916 (set_initial_language): Use find_main_filename.
8917 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8918 (free_named_symtabs): Remove unused code.
8919 (start_psymtab_common, add_psymbol_to_bcache)
8920 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8922 * stack.c: Include psymtab.h, symfile.h.
8923 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8924 * source.h (psymtab_to_fullname): Don't declare.
8925 * source.c: Include psymtab.h.
8926 (select_source_symtab): Use find_last_source_symtab method.
8927 (forget_cached_source_info): Use forget_cached_source_info
8929 (find_and_open_source): No longer static.
8930 (psymtab_to_fullname): Remove.
8931 * somread.c: Include psymtab.h.
8932 (som_sym_fns): Update.
8933 * psympriv.h: New file.
8934 * psymtab.h: New file.
8935 * psymtab.c: New file.
8936 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8937 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8938 * objfiles.c: Include psymtab.h.
8939 (objfile_relocate1): Use relocate method.
8940 (objfile_has_partial_symbols): Use has_symbols method.
8941 * mipsread.c: Include psymtab.h.
8942 (ecoff_sym_fns): Update.
8943 * mi/mi-cmd-file.c: Include psymtab.h.
8944 (print_partial_file_name): New function.
8945 (mi_cmd_file_list_exec_source_files): Use
8946 map_partial_symbol_filenames.
8947 * mdebugread.c: Include psympriv.h.
8948 * machoread.c: Include psympriv.h.
8949 (macho_sym_fns): Update.
8950 * m2-exp.y (yylex): Use lookup_symtab.
8951 * elfread.c: Include psympriv.h.
8952 (elf_sym_fns): Update.
8953 * dwarf2read.c: Include psympriv.h.
8954 * dbxread.c: Include psympriv.h.
8955 (aout_sym_fns): Update.
8956 * cp-support.c: Include psymtab.h.
8957 (read_in_psymtabs): Remove.
8958 (make_symbol_overload_list_qualified): Use
8959 expand_symtabs_for_function method.
8960 * coffread.c: Include psympriv.h.
8961 (coff_sym_fns): Update.
8962 * blockframe.c: Include psymtab.h.
8963 (find_pc_partial_function): Use find_pc_sect_symtab method.
8964 * ada-lang.h (ada_update_initial_language): Update.
8965 * ada-lang.c: Include psymtab.h.
8966 (ada_update_initial_language): Remove 'main_pst' argument.
8967 (ada_lookup_partial_symbol): Remove.
8968 (struct ada_psym_data): New type.
8969 (ada_add_psyms): New function.
8970 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8971 (struct add_partial_datum): New type.
8972 (ada_add_partial_symbol_completions): New function.
8973 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8974 (ada_exception_support_info_sniffer): Update.
8975 * Makefile.in (SFILES): Add psymtab.c.
8976 (COMMON_OBS): Add psymtab.o.
8977 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8979 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8981 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8983 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8986 * cp-namespace.c (cp_add_using): Deleted.
8987 (cp_add_using_directive): Use obstack allocations.
8988 Merged the function cp_add_using into this one.
8989 Added 'struct obstack *' argument.
8990 (cp_scan_for_anonymous_namespaces): Updated.
8991 * cp-support.h: Updated.
8992 * dwarf2read.c (read_import_statement): Updated.
8993 (read_namespace): Updated.
8995 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8997 * windows-nat.c (cygwin_conv_path): Remove old macro.
8999 2010-03-10 Pedro Alves <pedro@codesourcery.com>
9001 * breakpoint.c (condition_command): Handle watchpoint conditions.
9002 (is_hardware_watchpoint): Add comment.
9003 (is_watchpoint): New.
9004 (update_watchpoint): Don't reparse the watchpoint's condition
9007 (watchpoint_check): Use it.
9008 (bpstat_check_watchpoint): Handle it.
9009 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
9010 conditions in a frame where it makes sense.
9011 (watch_command_1): Store the innermost block of the condition
9013 (delete_breakpoint): Delete the watchpoint condition expression.
9014 * breakpoint.h (struct bp_location) <cond>: Update comment.
9015 (struct breakpoint): New field `cond_exp_valid_block'.
9017 2010-03-09 Joel Brobecker <brobecker@adacore.com>
9019 Adjust handling of Ada DIEs after dwarf2_physname patch.
9020 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
9022 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
9023 Pierre Muller <muller@ics.u-strasbg.fr>
9025 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
9026 from/to posix/win32.
9027 (windows_make_so): Use non-Cygwin 1.7 specific function.
9028 (windows_create_inferior): Make sure that cygallargs points to
9029 original args in non Cygwin 1.7. case.
9031 2010-03-09 Michael Snyder <msnyder@vmware.com>
9033 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
9034 after target_read_memory to get host byte order.
9035 (i386_process_record): Ditto.
9037 2010-03-09 Keith Seitz <keiths@redhat.com>
9039 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
9040 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
9041 print out const or volatile qualifiers, too.
9042 (c_type_print_args): Add parameters show_artificial and language.
9043 Skip artificial parameters when requested.
9044 Use the appropriate language printer.
9045 (c_type_print_varspec): Tell c_type_print_args to skip artificial
9046 parameters and pass language_c.
9047 * dwarf2read.c (die_list): New file global.
9048 (struct partial_die_info): Update comments for name field.
9049 (pdi_needs_namespace): Renamed to ...
9050 (die_needs_namespace): ... this. Rewrite.
9051 (dwarf2_linkage_name): Remove.
9052 (add_partial_symbol): Do not predicate the call to
9053 partial_die_full_name based on pdi_needs_namespace.
9054 Remove call to cp_check_possible_namespace_symbols and associated
9056 (guess_structure_name): Do not inspect child subprogram DIEs.
9057 (dwarf2_fullname): Update comments.
9058 Use die_needs_namespace to assist in computing the name.
9059 (read_func_scope): Use dwarf2_name to get the DIE's name.
9060 Use dwarf2_physname to get the "linkage name" of the DIE.
9061 (dwarf2_add_member_field): Use dwarf2_physname instead of
9062 dwarf2_linkage_name.
9063 (read_structure_type): For structs and classes, set TYPE_NAME, too.
9064 (determine_class): Remove.
9065 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
9067 (new_symbol): Unconditionally call dwarf2_name.
9068 Compute the "linkage name" using dwarf2_physname.
9069 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
9070 When determining to scan for anonymous C++ namespaces, ignore
9072 (dwarf2_physname): New function.
9073 (dwarf2_full_name): Move content to new function and call
9075 (dwarf2_compute_name): "New" function.
9076 (_initialize_dwarf2_read): Initialize die_list.
9077 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
9079 (gnu_v3_print_method_ptr): Use the physname for virtual methods
9080 without a demangled name.
9081 Print out type information for non-virtual methods.
9082 * linespec.c (decode_line_1): Force ANY string using "::" (or
9083 "." for java) to use decode_compound, and clean up any stray quoting.
9084 If we found a file symtab, re-evaluate whether the remainder is_quoted.
9085 (decode_compound): Stop consuming at an open parenthesis.
9086 Keep template parameters.
9087 Keep any overload information.
9088 Keep keywords like "const".
9089 Remove paren_pointer.
9090 Move is_quoted check from set_flags to here.
9091 Remove #if 0 code from 2000. Ten years is long enough.
9092 (find_method): Before comparing symbol names, canonicalize the string
9094 If a specific overload is requested, find it. Otherwise throw an error.
9095 (find_method_overload_end): New function.
9096 (set_flags): Remove.
9097 (decode_compound): Assume that parentheses are matched.
9099 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
9101 * linespec.c (decode_line_1): Keep important keywords like
9102 "const" and "volatile".
9103 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
9104 * typeprint.h (c_type_print_args): Add declaration.
9105 * ui-file.c (do_ui_file_obsavestring): New function.
9106 (ui_file_obsavestring): New function.
9107 * ui-file.h (ui_file_obsavestring): Add declaration.
9108 * valops.c (find_overload_match): Resolve the object to
9110 If the object is a data member, search the object for the member
9111 and return with staticp set.
9112 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
9113 Do not attempt to extract a function name from non-function types.
9114 If the extracted function name and the original name are the same,
9115 we don't have a C++ method.
9117 From Jan Kratochvil <jan.kratochvil@redhat.com>:
9118 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
9120 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
9121 and arguments from symbol lookups.
9122 * ax-gdb.c (gen_expr): Likewise.
9123 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
9124 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
9125 lookup_possible_namespace_symbol): Likewise.
9126 * cp-support.c (read_in_psymtabs): Likewise.
9127 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
9128 * language.h (la_lookup_symbol_nonlocal): Likewise.
9129 * scm-valprint.c (scm_inferior_print): Likewise.
9130 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
9131 * solib-svr.c (elf_lookup_lib): Likewise.
9132 * solib.c (show_auto_solib_add): Likewise.
9133 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
9134 * symmisc.c (maintenance_check_symtabs): Likewise.
9135 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
9136 lookup_symbol_aux_local, lookup_symbol_aux_block,
9137 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
9138 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
9139 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
9140 basic_lookup_transparent_type, find_main_psymtab,
9141 lookup_block_symbol): Likewise.
9142 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
9143 lookup_symbol_global, lookup_symbol_aux_block,
9144 lookup_symbol_partial_symbol, lookup_block_symbol,
9145 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
9147 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
9149 * python/python-internal.h: Include symtab.h.
9151 2010-03-09 Joel Brobecker <brobecker@adacore.com>
9152 Pierre Muller <muller@ics.u-strasbg.fr>
9154 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
9155 * p-valprint.c (pascal_val_print): Remove undeed block and fix
9158 2010-03-08 Tom Tromey <tromey@redhat.com>
9160 * breakpoint.c (breakpoint_1): Add "QUIT".
9162 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
9163 Pedro Alves <pedro@codesourcery.com>
9165 * solib.c (solib_find): Replace extension if
9166 solib_symbols_extension is set in the target gdbarch.
9167 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
9168 solib_symbols_extension to "sym".
9169 * gdbarch.sh (solib_symbols_extension): New variable.
9170 (pstring): New function.
9171 * gdbarch.h, gdbarch.c: Regenerate.
9173 2010-03-08 Tom Tromey <tromey@redhat.com>
9177 * utils.c: Include main.h.
9178 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
9179 (defaulted_query): Use default answer if `batch_flag'.
9180 * main.h (batch_flag): Declare.
9181 * main.c (batch_flag): New global.
9182 (captured_main): Remove 'batch'. Update.
9184 2010-03-08 Kevin Buettner <kevinb@redhat.com>
9186 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
9189 * remote-mips.c (rockhopper_ops): New target_ops struct.
9190 (MON_ROCKHOPPER): New mips_monitor_type.
9191 (read_hex_value): New function.
9192 (mips_request): Send 8-byte values with a 'T' packet. Read the
9193 packet argument as a string and use read_hex_value to parse it.
9194 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
9195 (rockhopper_open): New function.
9196 (mips_wait): Read the PC, FP and SP fields as strings. Use
9197 read_hex_value to parse them and mips_set_register to commit them.
9198 (mips_set_register): New function.
9199 (mips_fetch_registers): Do not cast register value to "unsigned"
9200 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
9201 (mips_store_registers): Use a 'T' packet to set registers when
9202 using MON_ROCKHOPPER.
9203 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
9204 and expect the total to be printed before the entry address.
9205 (_initialize_remote_mips): Initialize and add rockhopper_ops.
9207 2010-03-08 Kevin Buettner <kevinb@redhat.com>
9209 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
9210 Change return value to int. Store value fetched in location
9211 addressed by `val'. Use function's return value as success
9212 or failure indicator. Adjust all callers.
9214 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
9216 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
9218 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9219 Hui Zhu <teawater@gmail.com>
9221 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
9222 tmp_to_stopped_data_address.
9223 (record_open): Reset tmp_to_stopped_by_watchpoint and
9224 tmp_to_stopped_data_address.
9225 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
9226 to_stopped_data_address.
9228 2010-03-08 Hui Zhu <teawater@gmail.com>
9230 * i386-tdep.c (i386_process_record): Initialize regnum.
9232 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9234 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
9235 Do not warn on ".gnu.liblist" and ".gnu.conflict".
9237 2010-03-08 Joel Brobecker <brobecker@adacore.com>
9239 Memory error when reading wrong core file.
9240 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
9241 errors while reading the inferior memory, and return zero if
9242 an exception was raised.
9244 2010-03-07 Michael Snyder <msnyder@vmware.com>
9246 * record.c (record_restore): Rename tmpu8 to rectype.
9248 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
9249 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
9251 (i386_record_push): Rename local tmpulongest to addr.
9253 (i386_process_record): Rename local tmpulongest to addr.
9255 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
9258 Rename local variable tmpu8 to opcode8 and regnum.
9260 2010-03-07 Joel Brobecker <brobecker@adacore.com>
9262 * remote.c (remote_get_ada_task_ptid): New function.
9263 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
9265 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
9267 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
9268 block. Define helper macros to reduce ifdefs in code.
9269 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
9270 size. Call unadorned GetModuleFileNameEx rather than
9271 GetModuleFileNameEx*.
9272 (windows_make_so): Use __PMAX to denote maximum buffer size and
9273 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
9275 (get_image_name): Use __PMAX to denote maximum buffer size.
9276 (handle_load_dll): Likewise.
9277 (windows_pid_to_exec_file): Likewise.
9278 (windows_create_inferior): Add many accommodations for older Cygwin and
9280 (bad_GetModuleFileNameExW): Control inclusion of this function based on
9281 __USEWIDE conditional.
9282 (bad_GetModuleFileNameExA): Likewise.
9283 (_initialize_loadable): Just use real function names without the dyn_
9284 part since they are defined earlier.
9286 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
9287 Tom Tromey <tromey@redhat.com>
9289 * utils.c (host_char_to_target): Add 'gdbarch' argument.
9290 (parse_escape): Likewise.
9291 * python/py-utils.c (unicode_to_target_string): Update.
9292 (unicode_to_target_python_string): Update.
9293 (target_string_to_unicode): Update.
9294 * printcmd.c (printf_command): Update.
9295 * p-exp.y (yylex): Update.
9296 * objc-exp.y (yylex): Update.
9297 * mi/mi-parse.c: Include charset.h.
9298 (mi_parse_escape): New function.
9299 (mi_parse_argv): Use it.
9300 * jv-exp.y (yylex): Update.
9301 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
9303 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
9304 * gdbarch.sh (auto_charset, auto_wide_charset): New.
9305 * gdbarch.c: Rebuild.
9306 * gdbarch.h: Rebuild.
9307 * defs.h (parse_escape): Update.
9308 * cli/cli-setshow.c: Include arch-utils.h.
9309 (do_setshow_command): Update.
9310 * cli/cli-cmds.c (echo_command): Update.
9311 * charset.h (target_charset, target_wide_charset): Update.
9312 * charset.c: Include arch-utils.h.
9313 (target_charset_name): Default to "auto".
9314 (target_wide_charset_name): Likewise.
9315 (show_target_charset_name): Handle "auto".
9316 (show_target_wide_charset_name): Likewise.
9317 (be_le_arch): New global.
9318 (set_be_le_names): Add 'gdbarch' argument.
9319 (validate): Likewise. Don't call set_be_le_names.
9320 (set_charset_sfunc, set_host_charset_sfunc)
9321 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
9323 (target_charset): Add 'gdbarch' argument.
9324 (target_wide_charset): Likewise. Remove 'byte_order' argument.
9325 (auto_target_charset_name): New global.
9326 (default_auto_charset, default_auto_wide_charset): New functions.
9327 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
9328 for target charsets. Copy result of nl_langinfo. Use GetACP if
9330 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
9331 remove 'byte_order' argument. Update.
9332 (classify_type): Likewise.
9333 (c_emit_char): Update.
9334 (c_printchar): Update.
9335 (c_printstr): Update.
9336 (c_get_string): Update.
9337 (evaluate_subexp_c): Update.
9338 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
9340 * python/python.c (gdbpy_target_charset): New function.
9341 (gdbpy_target_wide_charset): Likewise.
9342 (GdbMethods): Update.
9345 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9347 * symfile.c (build_section_addr_info_from_objfile): Do not mask
9348 off high address bits.
9350 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9352 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
9353 address as UnsignedLongLong, not LongLong.
9355 2010-03-05 Kevin Buettner <kevinb@redhat.com>
9356 Pedro Alves <pedro@codesourcery.com>
9358 * remote-mips.c (gdbthread.h): Include.
9359 (remote_mips_ptid): Declare.
9360 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
9361 (common_open): Set inferior_ptid, add it as an inferior, and
9362 as a thread too. Delete FIXME comment regarding start_remote().
9363 (mips_close): Invoke generic_mourn_inferior().
9364 (mips_kill): Make sure that target_mourn_inferior is invoked.
9365 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
9366 it's now invoked from mips_close().
9367 (mips_load): Don't null out inferior_ptid. Don't call
9368 clear_symtab_users().
9369 (mips_thread_alive, mips_pid_to_str): New functions.
9370 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
9371 to_thread_alive and to_pid_to_str operations.
9373 2010-03-04 Tom Tromey <tromey@redhat.com>
9375 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
9376 in DWARF 3 and later.
9377 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
9379 2010-03-04 Keith Seitz <keiths@redhat.com>
9381 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
9382 If the filename portion of the linespec was quoted, recheck the
9383 remainder for additional quoting.
9384 (locate_first_half): Skip over completer chars, too.
9386 2010-03-04 Tom Tromey <tromey@redhat.com>
9388 * printcmd.c (printf_command): Pass dummy argument to
9391 2010-03-04 Doug Evans <dje@google.com>
9393 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
9396 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
9398 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9400 * breakpoint.c (update_watchpoint): Create a sentinel location if
9401 the software watchpoint isn't watching any memory.
9402 (breakpoint_address_bits): Skip dummy software watchpoint locations.
9404 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9406 * utils.c (fputs_maybe_filtered): Check if there's already a top
9407 level interpreter before dereferencing it. If there isn't one,
9408 don't paginate either.
9410 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9412 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
9413 the state right when single stepping.
9414 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
9415 Get the next PC along with the instruction state.
9416 (thumb_get_next_pc): Remove.
9417 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
9419 2010-03-04 Hui Zhu <teawater@gmail.com>
9421 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
9423 2010-03-03 Pedro Alves <pedro@codesourcery.com>
9425 * utils.c (fputs_maybe_filtered): Always disable pagination if the
9426 top level interpreter is MI.
9428 2010-03-03 Stan Shebs <stan@codesourcery.com>
9430 * remote.c (remote_download_tracepoint): Iterate over locations.
9431 * tracepoint.c (validate_actionline): Ditto.
9432 (encode_actions): Add location argument.
9433 (trace_dump_command): Check all locations to see if stepping
9436 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
9437 Eli Zaretskii <eliz@gnu.org>
9439 * NEWS: Add X86 general purpose registers section.
9441 2010-03-03 Tom Tromey <tromey@redhat.com>
9444 * varobj.c (install_new_value): Handle case where new print_value
9447 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
9450 * printcmd.c (printf_command): Print end of format string using
9453 2010-03-02 Tom Tromey <tromey@redhat.com>
9455 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
9456 * defs.h (read_command_lines_1): Add missing 'void'.
9457 * cli/cli-script.c (recurse_read_control_structure): Add missing
9459 (read_next_line): Likewise.
9460 (read_command_lines_1): Likewise.
9462 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9464 * spu-tdep.c (spu_analyze_prologue): Track instruction to
9465 store backchain as part of prologue.
9467 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
9469 * progspace.c (update_address_spaces): Update inferior address spaces
9472 2010-03-02 Doug Evans <dje@google.com>
9474 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
9475 lowpc,highpc args to addrmap_set_empty.
9477 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
9479 * amd64-tdep.c (amd64_byte_names): New.
9480 (amd64_word_names): Likewise.
9481 (amd64_dword_names): Likewise.
9482 (amd64_pseudo_register_name): Likewise.
9483 (amd64_pseudo_register_read): Likewise.
9484 (amd64_pseudo_register_write): Likewise.
9485 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
9486 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
9487 set_gdbarch_pseudo_register_write and
9488 set_tdesc_pseudo_register_name. Don't call
9489 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
9491 * i386-tdep.c (i386_num_mmx_regs): Removed.
9492 (i386_num_pseudo_regs): Likewise.
9493 (i386_byte_names): New.
9494 (i386_word_names): Likewise.
9495 (i386_byte_regnum_p): Likewise.
9496 (i386_word_regnum_p): Likewise.
9497 (i386_mmx_regnum_p): Updated.
9498 (i386_pseudo_register_name): Make it global. Handle byte and
9499 word pseudo-registers.
9500 (i386_pseudo_register_read): Likewise.
9501 (i386_pseudo_register_write): Likewise.
9502 (i386_pseudo_register_type): Handle byte, word and dword
9504 (i386_register_reggroup_p): Don't include pseudo
9505 registers, except for MXX, in any register groups. Don't
9506 include pseudo byte, word, dword registers in general_reggroup.
9507 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
9508 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
9509 pseudo-registers after word pseudo-registers. Call
9510 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
9512 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
9513 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
9515 (i386_byte_regnum_p): New.
9516 (i386_word_regnum_p): Likewise.
9517 (i386_dword_regnum_p): Likewise.
9518 (i386_pseudo_register_name): Likewise.
9519 (i386_pseudo_register_read): Likewise.
9520 (i386_pseudo_register_write): Likewise.
9522 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9524 * target-descriptions.c (tdesc_type): Remove
9525 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9526 (tdesc_predefined_types): Likewise.
9527 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
9528 if flag name is empty.
9529 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
9531 * features/i386/32bit-core.xml: Define i386_eflags.
9532 * features/i386/64bit-core.xml: Likewise.
9534 * features/i386/32bit-sse.xml: Define i386_mxcsr.
9535 * features/i386/64bit-sse.xml: Likewise.
9537 * features/i386/amd64-linux.c: Regenerated.
9538 * features/i386/amd64.c: Likewise.
9539 * features/i386/i386-linux.c: Likewise.
9540 * features/i386/i386.c: Likewise.
9542 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
9544 * gdbtypes.c (append_composite_type_field_raw): New.
9545 (append_composite_type_field_aligned): Use the new function.
9546 * gdbtypes.h (append_composite_type_field_raw): Declare.
9547 * target-descriptions.c (struct tdesc_type_field): Add start and end.
9548 (struct tdesc_type_flag): New type.
9549 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
9550 kind. Add size to u.u. Add u.f for flags.
9551 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
9552 (tdesc_free_type): Likewise.
9553 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
9554 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
9555 (tdesc_add_bitfield, tdesc_add_flag): New.
9556 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
9557 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
9558 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
9559 current_type. Add current_type_size and current_type_is_flags.
9560 (tdesc_start_union): Clear the new fields.
9561 (tdesc_start_struct, tdesc_start_flags): New.
9562 (tdesc_start_field): Handle struct fields, including bitfields.
9563 (field_attributes): Make type optional. Add start and end.
9564 (union_children): Rename to struct_union_children.
9565 (union_attributes): Rename to struct_union_attributes. Add optional
9567 (flags_attributes): New.
9568 (feature_children): Add struct and flags.
9569 * features/gdb-target.dtd: Add flags and struct to features.
9570 Make field type optional. Add field start and end.
9572 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9574 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
9575 (amd64_linux_read_description): Likewise.
9576 (_initialize_amd64_linux_nat): Set to_read_description to
9577 amd64_linux_read_description.
9579 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
9580 (amd64_linux_register_name): Removed.
9581 (amd64_linux_register_type): Likewise.
9582 (amd64_linux_core_read_description): New.
9583 (amd64_linux_init_abi): Set target description to
9584 tdesc_amd64_linux if needed. Support orig_rax in target
9585 description. Don't call set_gdbarch_register_name nor
9586 set_gdbarch_register_type. Call
9587 set_gdbarch_core_read_description.
9588 (_initialize_amd64_linux_tdep): Call
9589 initialize_tdesc_amd64_linux.
9591 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
9593 * amd64-tdep.c: Include "features/i386/amd64.c".
9594 (amd64_register_names): Removed.
9595 (amd64_register_name): Likewise.
9596 (amd64_register_type): Likewise.
9597 (amd64_init_abi): Set num_core_regs and register_names. Set
9598 target description to tdesc_amd64 if needed. Don't call
9599 set_gdbarch_register_name nor set_gdbarch_register_type.
9600 (_initialize_amd64_tdep): New.
9602 * i386-linux-nat.c (i386_linux_read_description): New.
9603 (_initialize_i386_linux_nat): Set to_read_description to
9604 i386_linux_read_description.
9606 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
9607 (i386_linux_register_name): Removed.
9608 (i386_linux_core_read_description): New.
9609 (i386_linux_read_description): Likewise.
9610 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
9611 Set target description to tdesc_i386_linux if needed. Support
9612 orig_eax. Set register_reggroup_p. Call
9613 set_gdbarch_core_read_description.
9614 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
9616 * i386-linux-tdep.h (tdesc_i386_linux): New.
9618 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
9621 * i386-tdep.c: Include "features/i386/i386.c".
9622 (i386_register_names): Make it const.
9623 (i386_mmx_names): Likewise.
9624 (i386_num_register_names): Removed.
9625 (i386_register_name): Likewise.
9626 (i386_eflags_type): Likewise.
9627 (i386_mxcsr_type): Likewise.
9628 (i386_sse_type): Likewise.
9629 (i386_register_type): Likewise.
9630 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9631 (i386_pseudo_register_name): New.
9632 (i386_pseudo_register_type): Likewise.
9633 (i386_mmx_type): Make it static.
9634 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
9635 I387_NUM_REGS. Set num_core_regs and register_names. Don't
9636 call set_gdbarch_register_name nor set_gdbarch_register_type.
9637 Set register_reggroup_p. Set target description to tdesc_i386
9638 if needed. Call set_tdesc_pseudo_register_type,
9639 set_tdesc_pseudo_register_name and tdesc_use_registers.
9640 (_initialize_i386_tdep): Call initialize_tdesc_i386.
9641 initialize_tdesc_x86_64.
9643 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9644 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
9645 register_names, tdesc and register_reggroup_p.
9646 (I386_NUM_FREGS): Removed.
9647 (i386_eflags_type): Likewise.
9648 (i386_mxcsr_type): Likewise.
9649 (i386_mmx_type): Likewise.
9650 (i386_sse_type): Likewise.
9651 (i386_register_name): Likewise.
9652 (i386_regnum): Add I386_MXCSR_REGNUM.
9653 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9655 * i387-tdep.h (I387_NUM_REGS): New.
9657 * regformats/i386/i386-linux.dat: Generated.
9658 * regformats/i386/i386.dat: Likewise.
9659 * regformats/i386/amd64-linux.dat: Likewise.
9660 * regformats/i386/amd64.dat: Likewise.
9662 * regformats/reg-i386-linux.dat: Removed.
9663 * regformats/reg-i386.dat: Likewise.
9664 * regformats/reg-x86-64-linux.dat: Likewise.
9665 * regformats/reg-x86-64.dat: Likewise.
9667 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
9669 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9670 cygwin_conv_path API rather than the deprecated
9671 cygwin_conv_to_full_posix_path.
9673 (GetModuleFileNameExA): Undefine for Cygwin.
9674 (GetModuleFileNameExW): Define for Cygwin.
9675 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9676 Call GetModuleFileNameExW and convert path to POSIX using
9678 (windows_make_so): Always define p. Drop unused variable m.
9679 Don't use Win32 functions to check file existance, rather use
9680 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
9681 Use canonicalize_file_name to get full path.
9682 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9683 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
9684 use correct target buffer size in call to WideCharToMultiByte.
9685 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9686 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9687 (windows_create_inferior): Convert all paths and arguments to wchar_t
9688 and use CreateProcessW on Cygwin.
9689 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9690 (bad_GetModuleFileNameExA): Undefine for Cygwin.
9691 (bad_GetModuleFileNameExW): Define for Cygwin.
9692 (_initialize_loadable): Load GetModuleFileNameExW into
9693 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
9695 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
9698 * python/py-frame.c (frapy_read_var): Add block argument and logic
9699 to cope with user provided blocks.
9701 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9703 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9706 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
9708 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9709 (COMMON_OBS): ... to here since it's used unconditionally.
9710 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9713 2010-02-26 David Daney <ddaney@caviumnetworks.com>
9715 * mips-linux-tdep.c: Update struct sigframe comments.
9716 (SIGFRAME_CODE_OFFSET): Delete macro.
9717 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9719 (mips_linux_n32n64_sigframe_init): Same.
9721 2010-02-26 Kevin Buettner <kevinb@redhat.com>
9723 * remote-mips.c (mips_load): Don't use pseudo-register when
9724 invalidating regcache.
9726 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9728 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9730 2010-02-26 Pedro Alves <pedro@codesourcery.com>
9732 * NEWS: Add "New targets" section, and mention ARM Symbian
9735 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
9737 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9738 add ADDR_SIZE member.
9739 (allocate_piece_closure): Update.
9740 (copy_pieced_value_closure): Likewise.
9741 (dwarf2_evaluate_loc_desc): Likewise.
9742 (read_pieced_value): Use DWARF address size instead of
9743 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9745 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
9746 Tom Tromey <tromey@redhat.com>
9748 * python/py-type.c (typy_lookup_typename): Add in block argument.
9749 If provided restrict lookup to specified blocks.
9750 (gdbpy_lookup_type): Likewise.
9751 (typy_lookup_type): Likewise.
9753 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9758 * arm-symbian-tdep.c: New.
9759 * configure.tgt (arm*-*-symbianelf*): New target.
9760 (*-*-symbianelf*): New OS.
9761 * osabi.c (gdb_osabi_names): Add Symbian.
9762 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9763 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9764 (ALLDEPFILES): Add arm-symbian-tdep.c.
9766 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9768 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9770 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9772 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9774 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
9775 Tom Tromey <tromey@redhat.com>
9776 Thiago Jung Bauermann <bauerman@br.ibm.com>
9778 * python/python.c (_initialize_python): Call
9779 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9780 gdbpy_initialize_blocks.
9781 * python/python-internal.h: Declare struct symbol, block and
9782 symtab_and_line. Declare block_object_type and
9784 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9785 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9786 (symbol_to_symbol_object, block_to_block_object)
9787 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9788 (gdbpy_initialize_blocks ): Declare.
9789 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9790 (frapy_select): Add methods.
9791 (frapy_read_var): Add symbol branch.
9792 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9794 (SUBDIR_PYTHON_SRCS): Likewise.
9795 (py-symbol.o): New rule.
9796 (py-symtab.o): Likewise.
9797 (py-block.o): Likewise.
9798 * python/py-symbol.c: New file.
9799 * python/py-symtab.c: Likewise.
9800 * python/py-block.c: Likewise.
9802 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9806 * inferior.h (prepare_for_detach): Declare.
9807 (struct inferior) <detaching>: New field.
9808 * infrun.c (prepare_for_detach): New.
9809 (handle_inferior_event) <random signal>: Don't stop if detaching.
9810 * target.c (target_detach): Call prepare_for_detach.
9812 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9814 Per-process displaced stepping queue.
9816 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9817 (displaced_step_gdbarch, displaced_step_closure,
9818 (displaced_step_original, displaced_step_copy): Move globals to
9820 (struct displaced_step_inferior_state): ... new structure.
9821 (displaced_step_inferior_states): New global.
9822 (get_displaced_stepping_state, add_displaced_stepping_state)
9823 (remove_displaced_stepping_state, infrun_inferior_exit): New
9825 (displaced_step_clear): Add displaced_step_inferior_state
9826 parameter, and adjust to handle it.
9827 (displaced_step_clear_cleanup): Parameter is now a
9828 displaced_step_inferior_state. Adjust.
9829 (displaced_step_prepare): Adjust.
9830 (displaced_step_fixup, displaced_step_fixup)
9831 (infrun_thread_ptid_changed, resume): Adjust.
9832 (init_wait_for_inferior): Don't call displaced_step_clear.
9833 (infrun_thread_stop_requested): Rewrite.
9834 (_initialize_infrun): Install infrun_inferior_exit as
9835 inferior_exit observer.
9837 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9839 * inferior.h (ptid_match): Declare.
9840 * infrun.c (ptid_match): New.
9841 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9842 (handle_notification): Add debug output.
9843 * linux-nat.c (ptid_match): Delete.
9845 2010-02-24 David S. Miller <davem@davemloft.net>
9847 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9848 * syscalls/sparc-linux.xml: New.
9849 * syscalls/sparc64-linux.xml: New.
9850 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9851 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9852 (sparc32_linux_get_syscall_number): New function.
9853 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9854 syscall number fetcher.
9855 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9856 (sparc64_linux_get_syscall_number): New function.
9857 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9858 syscall number fetcher.
9860 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9864 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9865 * inferior.c (add_inferior_silent): Notify inferior_added
9867 (delete_inferior_1): Notify inferior_removed observer.
9868 (exit_inferior_1): Pass inferior, not pid, to observer.
9869 (inferior_appeared): Likewise.
9870 (add_inferior_with_spaces): New.
9871 (add_inferior_command): Use the above.
9872 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9875 * inflow.c (inflow_inferior_exit): Likewise.
9876 * jit.c (jit_inferior_exit_hook): Likewise.
9878 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9880 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9881 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9882 (report_initial_inferior): New.
9883 (mi_inferior_removed): Register the above. Make sure
9884 inferior_added observer is called on the first inferior.
9885 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9886 inferior number, not pid.
9887 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9889 * mi/mi-main.c (current_context): New.
9890 (proceed_thread_callback): Use typed closure.
9891 Proceed everything if pid is 0. Most implementation split into
9892 (proceed_thread): ... this.
9893 (run_one_inferior): New.
9894 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9895 Adjust for multiexec behaviour.
9896 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9897 (mi_cmd_execute): Handle the 'thread-group' option here.
9898 Do some extra checks.
9899 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9901 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9903 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9905 Make -exec-run a proper MI commands.
9907 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9908 * mi/mi-cmds.c (mi_cmds): Adjust.
9909 * mi/mi-main.c (mi_cmd_exec_run): New.
9911 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9912 Stan Shebs <stan@codesourcery.com>
9914 * tracepoint.h (set_traceframe_number)
9915 (cleanup_restore_current_traceframe): Declare.
9916 * tracepoint.c (set_traceframe_number): New.
9917 (struct current_traceframe_cleanup): New.
9918 (do_restore_current_traceframe_cleanup)
9919 (restore_current_traceframe_cleanup_dtor)
9920 (make_cleanup_restore_current_traceframe): New.
9921 * infrun.c: Include tracepoint.h.
9922 (fetch_inferior_event): Switch out and in of tfind mode.
9924 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9926 * breakpoint.c (breakpoint_init_inferior): Also delete
9927 bp_shlib_event breakpoints.
9928 * solib-frv.c (enable_break): Remove call to
9929 remove_solib_event_breakpoints.
9930 * solib-svr4.c (enable_break): Ditto.
9931 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9932 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9933 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9934 * solib-spu.c (spu_enable_break): Ditto.
9936 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9938 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9940 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9942 * varobj.c (varobj_update): Avoid non-constants in initializers.
9944 2010-02-23 Tom Tromey <tromey@redhat.com>
9946 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9947 handle big-endian values.
9948 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9950 2010-02-22 Pedro Alves <pedro@codesourcery.com>
9955 * breakpoint.c (insert_bp_location): If inserting the read
9956 watchpoint failed, fallback to an access watchpoint.
9957 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9958 if the value changed, if not watching the same memory for writes.
9959 (watchpoint_locations_match): Add comment.
9960 (update_global_location_list): Copy the location's watchpoint type.
9961 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9962 handle read watchpoints here.
9963 (i386_insert_watchpoint): Read watchpoints aren't supported.
9964 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9966 * target.h (target_insert_watchpoint): Update description.
9968 2010-02-19 Tom Tromey <tromey@redhat.com>
9970 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9971 * m2-typeprint.c (m2_print_type): Update.
9972 * gdbtypes.c (recursive_dump_type): Update.
9973 (copy_type_recursive): Update.
9974 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9975 (c_type_print_base): Update.
9976 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9978 (struct cplus_struct_type) <ntemplate_args>: Remove.
9979 <struct template_arg>: Remove.
9980 <is_dynamic>: Move earlier.
9981 (TYPE_TEMPLATE_ARGS): Remove.
9982 (TYPE_NTEMPLATE_ARGS): Remove.
9983 (TYPE_TEMPLATE_ARG): Remove.
9985 2010-02-19 Tom Tromey <tromey@redhat.com>
9987 PR c++/8693, PR c++/9496:
9988 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9989 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9990 write_dollar_variable. Don't try to classify NAME tokens.
9991 (token_and_value): New type.
9992 (token_fifo, popping, name_obstack): New globals.
9993 (classify_name): New function.
9994 (classify_inner_name): Likewise.
9996 (VARIABLE): Now has type sval.
9997 (exp : VARIABLE): Call write_dollar_variable.
9998 (qualified_name): Use TYPENAME, not typebase. Add production for
9999 multiple "::" instances.
10000 (variable): Use name_not_typename.
10001 (qualified_type): Remove.
10002 (typebase): Update.
10004 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10006 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
10007 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
10008 found by bfd_get_section_by_name.
10009 * symfile.h (struct section_addr_info) <sectindex>: New comment.
10011 2010-02-19 Joel Brobecker <brobecker@adacore.com>
10013 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
10014 7.0 section" into "Changes in 7.1".
10016 2010-02-19 Joel Brobecker <brobecker@adacore.com>
10018 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
10019 * version.in: Bump version to 7.1.50.20100219-cvs.
10021 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
10023 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
10024 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
10026 2010-02-17 Tom Tromey <tromey@redhat.com>
10028 * NEWS: Add Python API Improvements section.
10030 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
10032 * NEWS: Correct typo.
10034 2010-02-17 Tom Tromey <tromey@redhat.com>
10036 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
10038 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10040 * symfile.c (build_section_addr_info_from_objfile): Include sections
10041 only if they are SEC_ALLOC or SEC_LOAD.
10043 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
10046 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
10047 of ULONGEST for address size.
10049 2010-02-17 Tom Tromey <tromey@redhat.com>
10051 * NEWS: Add C++ improvements section.
10053 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
10055 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
10056 PyThreadState_Swap): Avoid "statement with no effect" warning.
10058 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10060 * solib-svr4.c (enable_break <target_auxv_search>): New variable
10061 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
10063 2010-02-17 Tristan Gingold <gingold@adacore.com>
10064 Petr Hluzin <petr.hluzin@gmail.com>
10066 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
10067 gdb_assert. Fix info->size for SIG prologue.
10069 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10071 * infcmd.c (show_inferior_tty_command): Check for NULL.
10072 Correct output message.
10074 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10076 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
10077 FUNCTION contains parentheses. Improve removal of a trailing
10080 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10082 * gcore.c (do_bfd_delete_cleanup): New function.
10083 (gcore_command): Use it. Discard the cleanup after success.
10084 (gcore_copy_callback): Delete dead code.
10086 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10088 * symfile.c (addr_info_make_relative): Always use
10089 find_lowest_section.
10091 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
10093 * NEWS: Added entry for namespace fixes.
10095 2010-02-15 Tom Tromey <tromey@redhat.com>
10097 * dwarf2read.c (guess_structure_name): Allocate name on the
10100 2010-02-15 Tom Tromey <tromey@redhat.com>
10102 * c-typeprint.c (c_type_print_base): Reverse order of test.
10104 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10106 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
10107 initialize it from ELF BFD. Extend the prelink condition by it.
10109 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10111 * defs.h (parse_pid_to_attach): New.
10112 * utils.c (parse_pid_to_attach): New.
10113 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
10114 * gnu-nat.c (gnu_attach): Likewise.
10115 * nto-procfs.c (procfs_attach): Likewise.
10116 * procfs.c (procfs_attach): Likewise.
10117 * windows-nat.c (windows_attach): Likewise.
10118 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
10119 * inf-ttrace.c (inf_ttrace_attach): Likewise.
10120 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
10123 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
10125 * MAINTAINERS: Add myself for write after approval privileges.
10127 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10129 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
10132 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10134 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
10135 only if INFO_VERBOSE.
10137 2010-02-12 Tomas Holmberg <th@virtutech.com>
10139 * mi/mi-main.c: Added the --reverse flag to the following MI
10140 commands: exec-continue, exec-finish, exec-next, exec-step,
10141 exec-next-instruction, exec-step-instruction. This is to
10142 support reverse execution over the MI interface to gdb.
10144 2010-02-12 Pedro Alves <pedro@codesourcery.com>
10146 * tracepoint.c (_initialize_tracepoint): Specify that the address
10147 range of `tfind outsize' is exclusive, and that the address range
10148 of `tfind range' is inclusive, in the commands' help strings.
10150 2010-02-12 Joel Brobecker <brobecker@adacore.com>
10152 Spurious "dll not found" error messages on x64-windows.
10153 * windows-nat.c: Add include of complaints.h.
10154 (handle_unload_dll): Change dll-not-found error into a complaint.
10156 2010-02-12 Pedro Alves <pedro@codesourcery.com>
10158 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
10159 bp_tracepoint and bp_fast_tracepoint, not
10160 bp_loc_software_breakpoint.
10161 (update_global_location_list): Tracepoints are never duplicates of
10164 2010-02-12 Pedro Alves <pedro@codesourcery.com>
10166 * breakpoint.c (break_command_really): Change return type to int.
10167 Return false if no breakpoint was created, true otherwise.
10168 (trace_command): Don't set the tracepoint count if no tracepoint
10170 (ftrace_command): Ditto.
10171 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
10172 created in the breakpoints table.
10174 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10175 Ulrich Weigand <uweigand@de.ibm.com>
10177 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
10179 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10181 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
10182 the offset value isn't of integral type.
10184 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10186 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
10189 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10191 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
10192 non-subscriptable types.
10193 * valarith.c (binop_types_user_defined_p): New, abstracted out
10195 (binop_user_defined_p): ... this.
10196 * value.h (binop_types_user_defined_p): Declare.
10198 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10200 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
10201 Merge uploaded TSVs before merging uploaded tracepoints.
10203 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10205 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
10207 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
10209 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
10210 whitespace character after a dot in comment.
10211 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
10213 (list_args_or_locals): For the 'all' (that is
10214 -stack-list-variables) case, always output list of tuples.
10215 Output 'arg' field if variable is argument.
10217 2010-02-10 Tom Tromey <tromey@redhat.com>
10219 * parser-defs.h (parser_debug): Declare.
10220 * parse.c (_initialize_parse): Install "debug parser" set/show
10222 (parser_debug): New global.
10223 (show_parserdebug): New function.
10224 * c-exp.y (c_parse): Set yydebug.
10226 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
10228 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
10229 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10230 (tdesc_predefined_types): Add i387_ext, i386_eflags and
10232 (tdesc_find_type): New.
10233 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
10234 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10236 * target-descriptions.h (tdesc_find_type): New.
10238 2010-02-10 Michael Snyder <msnyder@vmware.com>
10240 * gdb-gdb.py: Comment fix.
10242 2010-02-09 Tristan Gingold <gingold@adacore.com>
10244 * machoread.c (macho_symfile_relocate): New function.
10245 (macho_sym_fns): Use macho_symfile_relocate instead of
10246 default_symfile_relocate.
10247 (macho_oso_data): New type.
10248 (current_oso): New variable.
10249 (macho_add_oso_symfile): Do not compute section_addr_info, but
10250 instead set vma of sections.
10251 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
10252 Set and clear current_oso.
10254 2010-02-09 Joel Brobecker <brobecker@adacore.com>
10256 Wrong type description for tagged type parameter.
10257 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
10258 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
10259 reference to a tagged type.
10261 2010-02-09 Tristan Gingold <gingold@adacore.com>
10263 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
10264 brothers of the parent.
10266 2010-02-08 Tom Tromey <tromey@redhat.com>
10270 * valops.c (search_struct_field): Make 'name' const.
10271 (search_struct_method): Likewise.
10272 (find_method_list): Make 'method' const.
10273 (value_struct_elt): Make 'name' and 'err' const.
10274 (value_find_oload_method_list): Make 'method' const.
10275 (find_overload_match): Make 'name' const.
10276 * eval.c (evaluate_subexp_standard): New locals function,
10278 <OP_FUNCALL>: Handle OP_SCOPE specially.
10280 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10282 * infrun.c (handle_inferior_event): Do not look up regcache
10283 for exited processes.
10285 2010-02-08 Chris Moller <moller@mollerware.com>
10288 * valarith.c (value_ptrdiff): Added a test for a zero type length,
10289 warn if found, and assume length = 1.
10291 2010-02-08 Chris Moller <cmoller@redhat.com>
10294 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
10295 (cp_print_static_field) Fix use of obstacks.
10297 2010-02-08 Pedro Alves <pedro@codesourcery.com>
10299 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
10300 resumed LWPs as resumed.
10301 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
10302 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
10303 of throwing an internal error. If an LWP of a process we're not
10304 waiting for reports a signal, don't force collecting a SIGSTOP,
10305 and if it was breakpoint hit in non-stop mode, cancel it. Don't
10306 go through all LWPs cancelling breakpoints in non-stop mode.
10307 (resume_stopped_resumed_lwps): New.
10308 (linux_nat_wait): Use it.
10310 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
10312 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
10313 i386/amd64 and i386/amd64-linux.
10314 (i386/i386-expedite): New.
10315 (i386/i386-linux-expedite): Likewise.
10316 (i386/amd64-expedite):Likewise.
10317 (i386/amd64-linux-expedite): Likewise.
10318 ($(outdir)/i386/i386-linux.dat): Likewise.
10319 ($(outdir)/i386/amd64.dat): Likewise.
10320 ($(outdir)/i386/amd64-linux.dat): Likewise.
10322 * features/i386/32bit-core.xml: New.
10323 * features/i386/32bit-linux.xml: Likewise.
10324 * features/i386/32bit-sse.xml: Likewise.
10325 * features/i386/64bit-core.xml: Likewise.
10326 * features/i386/64bit-linux.xml: Likewise.
10327 * features/i386/64bit-sse.xml: Likewise.
10328 * features/i386/i386-linux.xml: Likewise.
10329 * features/i386/i386.xml: Likewise.
10330 * features/i386/amd64-linux.xml: Likewise.
10331 * features/i386/amd64.xml: Likewise.
10332 * features/i386/i386-linux.c: Likewise.
10333 * features/i386/i386.c: Likewise.
10334 * features/i386/amd64-linux.c: Likewise.
10335 * features/i386/amd64.c: Likewise.
10337 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
10340 * cp-support.h: Added char* alias element to using_direct data
10342 (cp_add_using): Added char* alias argument.
10343 (cp_add_using_directive): Ditto.
10344 * cp-namespace.c: Updated with the above changes.
10345 (cp_lookup_symbol_imports): Check for aliases.
10346 * dwarf2read.c (read_import_statement): Figure out local alias
10347 for the import and pass it on to cp_add_using.
10348 (read_namespace): Pass alias argument to cp_add_using.
10350 2010-02-05 Hui Zhu <teawater@gmail.com>
10352 * defs.h (gdb_bfd_errmsg): New extern.
10353 * exec.c (exec_file_attach): Change bfd_errmsg to
10355 * utils.c (AMBIGUOUS_MESS1): New macro.
10356 (AMBIGUOUS_MESS2): New macro.
10357 (gdb_bfd_errmsg): New function.
10359 2010-02-04 Doug Evans <dje@google.com>
10361 * solib-svr4.c (enable_break): Add comment.
10363 2010-02-04 Anthony Green <green@moxielogic.com>
10365 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
10368 2010-02-04 Tom Tromey <tromey@redhat.com>
10370 * valops.c (search_struct_field): Account for
10371 value_embedded_offset. Fix check for virtual base past the end of
10372 the object. Use value_copy when making a slice of the value.
10374 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10377 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
10378 only if gdb_stdout is a tty.
10380 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10382 * target-descriptions.c: Include "osabi.h".
10383 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
10386 2010-02-04 Tristan Gingold <gingold@adacore.com>
10388 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
10389 (macho_symtab_read): Adjust calls to macho_add_oso.
10390 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
10391 (macho_symfile_read): Adjust call to macho_oso_symfile.
10392 (macho_new_init): Move this function after declarations.
10393 (macho_symfile_init): Ditto.
10394 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
10395 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
10397 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
10399 Include MI command in remotelog.
10401 * mi/mi-main.c (mi_execute_command): Call target_log_command.
10403 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10405 * remote.c (remote_state): Remove gdbarch.
10406 (init_remote_state): Don't set gdbarch.
10407 (remote_query_supported): Pass target_gdbarch instead of
10408 rs->gdbarch to gdbarch_qsupported.
10410 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10412 * gdbarch.sh: Add qsupported.
10414 * gdbarch.c: Regenerated.
10415 * gdbarch.h: Likewise.
10417 * remote.c (remote_state): Add gdbarch.
10418 (init_remote_state): Set gdbarch.
10419 (remote_query_supported): Support gdbarch_qsupported.
10421 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
10423 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
10424 __FreeBSD_kernel_version.
10426 2010-02-03 Tristan Gingold <gingold@adacore.com>
10428 * symfile.h (struct sym_fns): Add sym_relocate field.
10429 (default_symfile_relocate): New prototype.
10430 (symfile_relocate_debug_section): First argument is now an objfile.
10431 * symfile.c (default_symfile_relocate): Rename from
10432 symfile_relocate_debug_section, first argument is now an objfile.
10433 (symfile_relocate_debug_section): New function.
10434 * coffread.c (coff_sym_fns): Set sym_relocate field.
10435 * somread.c (som_sym_fns): Ditto.
10436 * mipsread.c (ecoff_sym_fns): Ditto.
10437 * machoread.c (macho_sym_fns): Ditto.
10438 * elfread.c (elf_sym_fns): Ditto.
10439 * dwarf2read.c (dwarf2_read_section): Ditto.
10440 * xcoffread.c (xcoff_sym_fns): Ditto.
10441 * dbxread.c (aout_sym_fns): Ditto.
10442 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
10443 (elfstab_build_psymtabs): Ditto.
10445 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10447 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
10449 2010-02-02 Tom Tromey <tromey@redhat.com>
10451 * valops.c (value_cast_structs): Try downcasting using the RTTI
10454 2010-02-02 Tom Tromey <tromey@redhat.com>
10456 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
10457 (gnuv2_baseclass_offset): Now static.
10458 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
10459 * gnu-v2-abi.h: Remove.
10461 2010-02-02 Tom Tromey <tromey@redhat.com>
10463 * m2-typeprint.c (m2_record_fields): Don't use
10464 TYPE_DECLARED_TYPE.
10465 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
10466 (struct main_type) <flag_declared_class>: New field.
10467 (struct cplus_struct_type) <declared_type>: Remove.
10468 <ntemplate_args>: Move earlier.
10469 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
10470 (DECLARED_TYPE_TEMPLATE): Remove.
10471 (TYPE_DECLARED_TYPE): Remove.
10472 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
10473 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
10474 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
10475 TYPE_DECLARED_TYPE.
10477 2010-02-02 Tom Tromey <tromey@redhat.com>
10479 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
10480 * valops.c (search_struct_field): Compute nbases after calling
10482 (check_field): Call CHECK_TYPEDEF.
10483 * cp-valprint.c (cp_print_value): Pass correct address to
10484 baseclass_offset. Fix check for virtual base past the end of the
10485 object. Don't offset address passed to cp_print_value_fields or
10486 apply_val_pretty_printer.
10487 (cp_print_value_fields): Fix call to val_print.
10488 (cp_print_value_fields_rtti): New function.
10489 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
10490 * p-valprint.c (pascal_object_print_value_fields): Fix call to
10492 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
10494 * language.h (struct language_defn) <la_val_print>: Document.
10495 * c-lang.h (cp_print_value_fields_rtti): Declare.
10497 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10500 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10501 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
10502 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10504 2010-02-01 Michael Matz <matz@suse.de>
10505 Daniel Jacobowitz <dan@codesourcery.com>
10507 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
10508 functions use a frame pointer.
10510 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10512 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
10513 by a conditional setting DYN_ADDR. Use DYN_ADDR.
10514 * config/djgpp/fnchange.lst: Add translations for
10515 symbol-without-target_section.exp and symbol-without-target_section.c.
10517 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10519 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
10520 (remote_breakpoint_for_pc): Correct invalid_p check.
10521 * gdbarch.c: Regenerated.
10523 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10525 * arm-tdep.c (arm_find_mapping_symbol): New function, from
10527 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
10528 (extend_buffer_earlier): New function.
10529 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
10530 (arm_adjust_breakpoint_address): New function.
10531 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
10533 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10535 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
10536 (arm_linux_thumb2_le_breakpoint): New constants.
10537 (arm_linux_init_abi): Set thumb2_breakpoint and
10538 thumb2_breakpoint_size.
10539 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
10540 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
10541 Implement support for single stepping through IT blocks if
10542 a 32-bit Thumb breakpoint instruction is available.
10543 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
10544 is available, use it when needed.
10545 (arm_remote_breakpoint_from_pc): New function.
10546 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
10547 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
10548 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
10550 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10552 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
10553 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
10554 * gdbarch.c, gdbarch.h: Regenerated.
10555 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
10556 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
10557 gdbarch_remote_breakpoint_from_pc.
10559 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10561 * infrun.c (prepare_to_proceed): Handle other signals which might
10562 match a breakpoint.
10563 (handle_inferior_event): Move the check for unusual breakpoint
10566 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
10568 amd64 - function returning record with field straddling 2 registers.
10569 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
10570 a record of length <= 16 in which a field straddles the two
10573 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10575 Implement return values on amd64-windows.
10576 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
10577 (amd64_windows_return_value): New function.
10578 (amd64_windows_init_abi): Call set_gdbarch_return_value with
10579 amd64_windows_return_value.
10581 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10583 amd64-windows: 32 bytes allocated on stack by caller for integer
10584 parameter registers.
10585 * i386-tdep.h (struct gdbarch_tdep): Add new field
10586 integer_param_regs_saved_in_caller_frame.
10587 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10588 tdep->integer_param_regs_saved_in_caller_frame to 1.
10589 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
10590 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
10592 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10594 amd64-windows: memory args passed by pointer during function calls.
10595 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
10596 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
10597 where tdep->memory_args_by_pointer is non-zero.
10598 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10599 tdep->memory_args_by_pointer to 1.
10601 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10603 amd64-windows: Integer parameters in function calls.
10604 * i386-tdep.h (enum amd64_reg_class): New, moved here from
10606 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
10607 call_dummy_integer_regs, and classify.
10608 * amd64-tdep.h (amd64_classify): Add declaration.
10609 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
10610 (amd64_reg_class): Delete, moved to i386-tdep.h.
10611 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
10612 Replace call to amd64_classify by call to tdep->classify.
10613 (amd64_push_arguments): Get the list of registers to use for
10614 passing integer parameters from the gdbarch tdep structure,
10615 rather than using a hardcoded one. Replace calls to amd64_classify
10616 by calls to tdep->classify.
10617 (amd64_push_dummy_call): Get the register number used for
10618 the "hidden" argument from tdep->call_dummy_integer_regs.
10619 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
10620 and tdep->call_dummy_integer_regs. Set tdep->classify.
10621 * amd64-windows-tdep.c: Add include of gdbtypes.h.
10622 (amd64_windows_dummy_call_integer_regs): New static global.
10623 (amd64_windows_classify): New function.
10624 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
10625 tdep->call_dummy_integer_regs and tdep->classify.
10627 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10629 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
10630 for the new regcache. All callers updated.
10631 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10632 (get_thread_arch_regcache): Do not set aspace here.
10633 * regcache.h (regcache_xmalloc): Update declaration.
10635 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10636 regcache_xmalloc updated.
10638 2010-01-28 Joel Brobecker <brobecker@adacore.com>
10640 Another -Wunused-function error in procfs.c (sparc-solaris)
10641 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
10642 Only define if SYS_syssgi is defined.
10643 (remove_dbx_link_breakpoint): Delete declaration. Move up.
10644 (dbx_link_addr, insert_dbx_link_bpt_in_file)
10645 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
10648 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
10650 * windows-nat.c (windows_initialization_done): New variable.
10651 (get_windows_debug_event): Issue error when process dies before
10652 completely initializing.
10653 (do_initial_windows_stuff): Set flag to indicate when we are done with
10654 the initial steps of attaching to the child.
10656 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10658 * symtab.h (struct symbol <symtab>): New comment on NULL values.
10660 2010-01-27 Doug Evans <dje@google.com>
10662 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10664 * breakpoint.c (bpstat_stop_status): Delete useless code.
10666 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10668 * printcmd.c (display_uses_solib_p): Remove variable section. Access
10669 objfile via SYMBOL_SYMTAB.
10671 2010-01-26 Tom Tromey <tromey@redhat.com>
10674 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10675 coerce_array on result.
10677 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10679 * cp-namespace.c (cp_lookup_symbol_namespace): Added
10680 search_parent argument.
10681 (cp_add_using): Initialize 'searched' field.
10682 (reset_directive_searched): New function.
10683 * cp-support.h: Add 'searched' field to using_direct struct.
10684 (cp_lookup_symbol_imports): Ditto.
10685 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10686 Perform recursive search.
10687 Implement non parent search.
10688 * valops.c (value_maybe_namespace_elt): Updated.
10690 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10693 * dwarf2read.c (read_lexical_block_scope): Create blocks for
10694 scopes which contain using directives even if they contain no
10696 * symtab.c (lookup_symbol_aux): Pass lowest level block to
10697 la_lookup_symbol_nonlocal.
10698 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10699 cp_lookup_symbol_namespace.
10700 (cp_lookup_symbol_namespace): Perform an import lookup at every
10702 (cp_lookup_symbol_imports): New function.
10703 (cp_lookup_symbol_in_namespace): New function.
10705 2010-01-25 Tom Tromey <tromey@redhat.com>
10708 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10711 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10713 * configure.ac: Only use host_os part when disabling TUI on osf.
10714 Use test to check variables, prefix strings with x.
10715 * configure: Regenerate.
10717 * solib-osf.c (osf_current_sos): Initialize tail.
10719 2010-01-25 gingold <gingold@adacore.com>
10721 * windows-nat.c (windows_continue): Use %x to print thread id.
10722 (get_windows_debug_event): Ditto.
10724 2010-01-22 Tom Tromey <tromey@redhat.com>
10727 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10728 type and arguments. Use smash_to_methodptr_type.
10729 (read_structure_type): Call quirk_gcc_member_function_pointer
10731 * gdbtypes.h (smash_to_methodptr_type): Declare.
10732 * gdbtypes.c (smash_to_methodptr_type): New function.
10733 (lookup_methodptr_type): Use it.
10735 2010-01-21 Tom Tromey <tromey@redhat.com>
10738 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10739 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10740 * glibc-tdep.c (find_minsym_and_objfile): Remove.
10741 (glibc_skip_solib_resolver): Use
10742 lookup_minimal_symbol_and_objfile.
10744 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
10746 * inflow.c (check_syscall): Guard by #if clause for GO32 and
10749 2010-01-20 Tom Tromey <tromey@redhat.com>
10751 PR backtrace/10770:
10752 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10753 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
10754 * dwarf2expr.c (new_dwarf_expr_context): Allocate
10755 dwarf_stack_values, not CORE_ADDRs.
10756 (execute_stack_op): Change DW_OP_div and comparison operators to
10757 use signed operands.
10759 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10761 Per-inferior args and tty and environment.
10763 * infcmd.c (inferior_args): Rename to ...
10764 (inferior_args_scratch): ... this.
10765 (inferior_io_terminal): Rename to ...
10766 (inferior_io_terminal_scratch): ... this.
10767 (inferior_argc, inferior_argv): Remove.
10768 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10769 inside current_inferior().
10770 (set_inferior_tty_command, show_inferior_tty_command): New.
10771 (get_inferior_args, set_inferior_args): Store inside
10772 current_inferior().
10773 (notice_args_set): Likewise and rename to...
10774 (set_args_command): ... this.
10775 (set_inferior_args_vector): Likewise.
10776 (notice_args_read): Rename to...
10777 (show_args_command): ...new.
10778 (tty_command): Remove.
10779 (run_command_1): Don't free old args, as they are freed by
10780 set_inferior_arg now.
10781 (run_no_args_command): Likewise.
10782 (inferior_environ): Remove.
10783 (run_command_1): Use environment of the current inferior.
10784 (environment_info, set_environment_command)
10785 (unset_environment_command, path_info, path_command): Likewise.
10786 (_initialize_infcmd): Adjust for function and variable renames.
10787 Do not init inferior_environ.
10788 * inferior.h (set_inferior_arg): Adjust prototype.
10789 (struct inferior): New fields args, argc, argv, terminal, environment.
10790 (inferior_environ): Remove declaration.
10791 * inferior.c (free_inferior): Free new fields.
10792 (add_inferior_silent): Initialize 'environment' field.
10793 * main.c (captured_main): Set arguments only after the initial
10794 inferior has been created. Set set_inferior_io_terminal,
10796 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10798 (_initialize_mi_cmd_env): Adjust for disappearance of global
10800 * solib.c (solib_find): Use environment of the current inferior.
10802 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10804 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10806 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10808 2010-01-20 Joel Brobecker <brobecker@adacore.com>
10810 Get rid of ada-lang.c:function_name_from_pc.
10811 * ada-lang.c: Add "stack.h" #include.
10812 (function_name_from_pc): Delete.
10813 (is_known_support_routine): Replace call to function_name_from_pc
10814 by call to find_frame_funname.
10815 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10817 2010-01-19 Tom Tromey <tromey@redhat.com>
10820 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10823 2010-01-19 Tom Tromey <tromey@redhat.com>
10825 * top.c (stop_sig, float_handler, do_nothing): Remove.
10827 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10829 * breakpoint.c (watchpoint_check): Check the call
10830 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10831 Extend the comment.
10832 * config/djgpp/fnchange.lst: Add translations for
10833 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10834 watchpoint-cond-gone-stripped.c.
10836 2010-01-19 Tom Tromey <tromey@redhat.com>
10839 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10840 into parent scope, and enumerator into grandparent scope.
10842 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10844 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10846 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10848 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10849 i[34567]86-*-solaris2.1[0-9]*.
10850 * configure.tgt: Likewise.
10852 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10854 * NEWS: Document the source command enhancement allowing it
10855 to load Python scripts. Document the "set/show script-extension"
10858 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10860 Add -Wunused-function to compile flags.
10861 * configure.ac: Add -Wunused-function to build_warnings.
10862 * configure: Regenerate.
10864 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10866 "delete" ada-lex.c:input function, not used.
10867 * ada-lex.l: #define YY_NO_INPUT.
10869 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10871 Delete free_named_symtabs and associated cleanup.
10872 * symfile.h (free_named_symtabs): Delete declaration.
10873 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10874 (cashier_psymtab): Comment function out.
10875 Delete declaration.
10876 (free_named_symtabs): Delete.
10877 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10878 * dbxread.c (end_psymtab): Likewise.
10879 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10880 * exec.c (exec_close_1): Ditto.
10881 * xcoffread.c (xcoff_end_psymtab): Likewise.
10883 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10885 * stack.c (print_block_frame_labels): Comment function out.
10887 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10889 Delete unused or undefined functions.
10890 * breakpoint.c (ep_parse_optional_filename): Delete.
10891 * dcache.c (dcache_write_line): Remove declaration.
10892 * infrun.c (build_infrun): Remove declaration.
10893 * tracepoint.c (tracepoint_save_command): Remove declaration.
10894 * linux-nat.c (init_lwp_list): Delete. No longer used.
10895 * event-loop.c (check_async_signal_handlers): Delete declaration.
10896 * infrun.c (init_execution_control_state): Delete.
10897 (proceed): Update comment to avoid mentioning
10898 init_execution_control_state.
10899 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10900 * ada-lang.c (ada_to_static_fixed_value): Delete.
10901 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10902 * cp-namespace.c (cp_copy_usings): Delete.
10903 * xml-syscall.c (xml_number_of_syscalls): Delete.
10904 * progspace.c (find_program_space_by_num): Delete.
10905 * inflow.c (handle_sigio): Delete declaration.
10906 * hppa-tdep.c (hppa_alignof): Delete.
10907 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10908 (mipsnbsd_core_osabi_sniffer): Delete.
10910 2010-01-18 Tom Tromey <tromey@redhat.com>
10913 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10914 (CONST_CAST): New tokens.
10915 (exp): Add new productions.
10916 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10918 (is_cast_operator): New function.
10919 (yylex): Handle cast operators specially.
10920 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10921 UNOP_REINTERPRET_CAST>: New cases.
10922 * expprint.c (print_subexp_standard): Likewise.
10923 (op_name_standard): Likewise.
10924 (dump_subexp_body_standard): Likewise.
10925 * parse.c (operator_length_standard): Likewise.
10926 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10927 UNOP_REINTERPRET_CAST.
10928 * gdbtypes.c (class_types_same_p): New function.
10929 (is_ancestor): Use it.
10930 (is_public_ancestor): New function.
10931 (is_unique_ancestor_worker): Likewise.
10932 (is_unique_ancestor): Likewise.
10933 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10934 (is_unique_ancestor): Declare.
10935 * valops.c (value_reinterpret_cast): New function.
10936 (dynamic_cast_check_1): Likewise.
10937 (dynamic_cast_check_2): Likewise.
10938 (value_dynamic_cast): Likewise.
10939 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10941 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10943 Fix build failure when building without Python support.
10944 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10947 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10949 Use XVS field type instead of doing a parallel lookup.
10950 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10951 if it is a reference type instead of doing a type lookup using
10952 the XVS field name.
10954 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10956 Trust PAD types instead of using PAD___XVS.
10957 * ada-lang.c (trust_pad_over_xvs): New static variable.
10958 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10959 parallel XVS type, follow the XVS type instead of the PAD type.
10960 (unwrap_value): Make sure that there is no parallel XVE type
10961 before returning the value as is.
10962 (set_ada_list, show_ada_list): New static variables.
10963 (set_ada_command, show_ada_command): New functions.
10964 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10965 Add new "set/show ada trust-PAD-over-XVS" setting.
10967 2010-01-18 Tom Tromey <tromey@redhat.com>
10968 Thiago Jung Bauermann <bauerman@br.ibm.com>
10970 Allow "source" to load python scripts.
10971 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10972 * python/python.c (source_python_script): New function.
10973 * python/python.h (source_python_script): Add declaration.
10974 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10975 (script_ext_off, script_ext_soft, script_ext_strict)
10976 (script_ext_enums, script_ext_mode): New static constants.
10977 (show_script_ext_mode, find_and_open_script): New functions.
10978 (source_script): Enhance to handle Python scripts.
10979 (init_cli_cmds): Add set/show script-extension commands.
10981 2010-01-16 Stan Shebs <stan@codesourcery.com>
10983 * tracepoint.h (struct trace_status): Use unsigned long long
10985 * tracepoint.c (trace_status_command): Fix printf directive.
10986 (trace_save_command): Check fwrite returns, fix printf directive.
10987 (trace_filename): New global.
10988 (tfile_open): Set it, check read returns.
10989 (tfile_close): Free trace_filename.
10990 (tfile_get_traceframe_address): Check read returns.
10991 (tfile_trace_find): Ditto.
10992 (tfile_fetch_registers): Ditto.
10993 (tfile_xfer_partial): Ditto.
10994 (tfile_get_trace_state_variable_value): Ditto.
10996 2010-01-15 Stan Shebs <stan@codesourcery.com>
10998 Add trace file support.
10999 * tracepoint.h (enum trace_stop_reason): New enum.
11000 (struct trace_status): New struct.
11001 (parse_trace_status): Declare.
11002 (struct uploaded_tp): Move here from remote.c,
11003 add fields for actions.
11004 (struct uploaded_tsv): New struct.
11005 * tracepoint.c (tfile_ops): New target vector.
11006 (trace_fd): New global.
11007 (tfile_open): New function.
11008 (tfile_close): New function.
11009 (tfile_files_info): New function.
11010 (tfile_get_trace_status): New function.
11011 (tfile_get_traceframe_address): New function.
11012 (tfile_trace_find): New function.
11013 (tfile_fetch_registers): New function.
11014 (tfile_xfer_partial): New function.
11015 (tfile_get_trace_state_variable_value): New function.
11016 (init_tfile_ops): New function.
11017 (_initialize_tracepoint): Call it, add tfile target.
11018 (trace_status): New global.
11019 (current_trace_status): New function.
11020 (trace_running_p): Remove, change all users to get from
11021 current_trace_status()->running.
11022 (get_trace_status): Remove.
11023 (trace_status_command): Call target_get_trace_status directly,
11024 report more detail including tracing stop reasons.
11025 (trace_find_command): Always allow tfind on a file.
11026 (trace_find_pc_command): Ditto.
11027 (trace_find_tracepoint_command): Ditto.
11028 (trace_find_line_command): Ditto.
11029 (trace_find_range_command): Ditto.
11030 (trace_find_outside_command): Ditto.
11031 (trace_frames_offset, cur_offset): Declare as off_t.
11032 (trace_regblock_size): Rename from reg_size, update users.
11033 (parse_trace_status): New function.
11034 (tfile_interp_line): New function.
11035 (disconnect_or_stop_tracing): Ensure current trace
11036 status before asking what to do.
11037 (stop_reason_names): New global.
11038 (trace_save_command): New command.
11039 (get_uploaded_tp): Move here from remote.c.
11040 (find_matching_tracepoint): Ditto.
11041 (merge_uploaded_tracepoints): New function.
11042 (parse_trace_status): Use stop_reason_names.
11043 (_initialize_tracepoint): Define tsave command.
11044 * target.h (target_ops): New fields to_save_trace_data,
11045 to_upload_tracepoints, to_upload_trace_state_variables,
11046 to_get_raw_trace_data, change to_get_trace_status
11047 to take a pointer to a status struct.
11048 (target_save_trace_data): New macro.
11049 (target_upload_tracepoints): New macro.
11050 (target_upload_trace_state_variables): New macro.
11051 (target_get_raw_trace_data): New macro.
11052 * target.c (update_current_target): Add new methods, change
11053 signature of to_get_trace_status.
11054 * remote.c (hex2bin): Make globally visible.
11056 (remote_download_trace_state_variable): Download name also.
11057 (remote_get_trace_status): Update parameter, use
11058 parse_trace_status.
11059 (remote_save_trace_data): New function.
11060 (remote_upload_tracepoints): New function.
11061 (remote_upload_trace_state_variables): New function.
11062 (remote_get_raw_trace_data): New function.
11063 (remote_start_remote): Use them.
11064 (_initialize_remote_ops): Add operations.
11065 * ax-gdb.c: Include breakpoint.h.
11066 * breakpoint.c (create_tracepoint_from_upload): Use
11067 break_command_really, return tracepoint, warn about unimplemented
11069 * NEWS: Mention trace file addition.
11071 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11073 Fix compilation warning on gcc-3.4.
11074 * exec.c (print_section_info): Move the `displacement' variable
11075 initialization to its declaration.
11077 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11079 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
11082 2010-01-15 Eric Botcazou <botcazou@adacore.com>
11084 "info tasks" broken by typedefs in ATCB type definitions.
11085 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
11086 ada_check_typedef before retrieving the length of the type for
11089 2010-01-15 Joel Brobecker <brobecker@adacore.com>
11091 Do not use name-based lookup for unconstrained packed arrays.
11092 * ada-lang.c (find_parallel_type_by_descriptive_type):
11093 Limit the fallback to name-based lookups to the case where
11094 the type is a constrained packed array.
11096 2010-01-15 Joel Brobecker <brobecker@adacore.com>
11098 Enhance gdb-gdb.py to handle main_type.type_specific.
11099 * gdb-gdb.py: Print the type-specific part of struct main_type.
11101 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11103 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
11104 * configure: Regenerate.
11105 * config.in: Regenerate.
11106 * utils.c: Include sys/resource.h.
11107 (dump_core, can_dump_core): New.
11108 (internal_vproblem): Update the comment. Check can_dump_core while
11109 setting dump_core_p. Replace two abort calls by dump_core calls.
11111 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11112 Eli Zaretskii <eliz@gnu.org>
11114 * NEWS: Document the PIE support.
11116 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11118 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
11119 (check_is_pie_binary, _initialize_linux_tdep): Remove.
11121 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11123 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
11124 Replace exec_entry_point call by bfd_get_start_address.
11126 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11128 Support Valgrind attachments broken by the PIE support.
11129 * auxv.c: Include gdbcore.h.
11130 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
11131 parameters ops, object and annex. Remove their assertions.
11132 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
11133 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
11134 (memory_xfer_auxv): ... here.
11135 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
11137 * procfs.c (procfs_xfer_partial): Likewise.
11138 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
11139 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
11140 (svr4_solib_create_inferior_hook): Conditionalize the
11141 svr4_relocate_main_executable call.
11143 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11145 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
11146 target_section. Find SECT in current_target_sections, gdb_assert it.
11147 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
11149 * symtab.c (lookup_objfile_from_block): Return the binary file instead
11150 of separate debug info file.
11152 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11154 Support PIEs with no symfile_objfile.
11155 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
11156 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
11158 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11160 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
11162 (svr4_static_exec_displacement): ... a new function.
11163 (svr4_exec_displacement): New function.
11164 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
11165 new_offsets using alloca now. Remove variable old_chain and changed.
11166 Call objfile_relocate unconditionally now.
11168 2010-01-14 Doug Evans <dje@google.com>
11170 * gdbtypes.c (arch_flags_type): Fix comment.
11171 * gdbtypes.h (arch_composite_type): Fix comment.
11173 2009-01-14 Tristan Gingold <gingold@adacore.com>
11175 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
11176 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
11177 to symbol_file_add_from_bfd. Add OSO as separate objfile.
11178 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
11179 macho_add_oso_symfile.
11180 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
11182 2010-01-14 Joel Brobecker <brobecker@adacore.com>
11184 Tru64: Dead threads are never deleted.
11185 * dec-thread.c (dec_thread_ptid_is_alive): New function.
11186 (dec_thread_count_gdb_threads): Fix counter increment.
11187 (dec_thread_add_gdb_thread): Fix *listp increment.
11188 (resync_thread_list): Fix bug in deletion of dead threads that
11189 caused all threads to be deleted, instead of just the dead ones.
11191 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
11195 * python/python-internal.h: Add lazy_string_object_type
11197 (create_lazy_string_object, gdbpy_initialize_lazy_string)
11198 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
11199 * python/py-value.c (valpy_lazy_string): New function.
11200 (convert_value_from_python): Add lazy string conversion.
11201 * python/py-prettyprint.c (pretty_print_one_value): Check if
11202 return is also a lazy string.
11203 (print_string_repr): Add lazy string printing branch.
11204 (print_children): Likewise.
11205 * python/py-lazy-string.c: New file. Implement lazy strings.
11206 * python/python.c (_initialize_python): Call
11207 gdbpy_initialize_lazy_string.
11208 * varobj.c (value_get_print_value): Add lazy string printing
11209 branch. Account for encoding.
11210 * c-lang.c (c_printstr): Account for new encoding argument. If
11211 encoding is NULL, find encoding suited for type, otherwise use
11213 * language.h (language_defn): Add encoding argument.
11214 (LA_PRINT_STRING): Likewise.
11215 * language.c (unk_lang_printstr): Update to reflect new encoding
11216 argument to language_defn.
11217 * ada-lang.h (ada_printstr): Likewise.
11218 * c-lang.h (c_printstr): Likewise.
11219 * p-lang.h (pascal_printstr);
11220 * f-lang.c (f_printstr): Likewise.
11221 * m2-lang.c (m2_printstr): Likewise.
11222 * objc-lang.c (objc_printstr): Likewise.
11223 * p-lang.c (pascal_printstr): Likewise.
11224 * scm-lang.c (scm_printstr): Likewise.
11225 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
11227 * ada-valprint.c (ada_printstr): Likewise.
11228 * f-valprint.c (f_val_print): Likewise
11229 * m2-valprint.c (m2_val_print): Likewise.
11230 * p-valprint.c (pascal_val_print): Likewise.
11231 * expprint.c (print_subexp_standard): Likewise.
11232 * valprint.c (val_print_string): Likewise.
11233 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
11234 (SUBDIR_PYTHON_SRCS): Likewise.
11235 (py-lazy-string.o): New rule.
11237 2010-01-13 Doug Evans <dje@google.com>
11239 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
11240 uninitialized" warning from gcc on local `tree'.
11242 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
11244 Implement core awareness.
11246 * bcache.c (compare_ints): Remove
11247 (print_percentage): Use compare_positive_ints.
11248 * defs.h (compare_positive_ints): Declare.
11249 * linux-nat.h (struct lin_lwp): New field core.
11250 (linux_nat_core_of_thread_1): Declare.
11251 * linux-nat.c (add_lwp): Init the 'core' field.
11252 (linux_nat_wait_1): Record the core.
11253 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
11254 (linux_nat_add_target): Register the above.
11255 * linux-thread-db.c (update_thread_core): New.
11256 (thread_db_find_new_threads): Update core information for
11258 * remote.c (struct private_thread_info): New.
11259 (free_private_thread_info, demand_private_info): New.
11260 (PACKET_qXfer_threads, use_osdata_threads): New.
11261 (struct thread_item, threads_parsing_context
11262 (start_thread, end_thread, thread_attributes)
11263 (thread_children, threads_children, threads_elements): New.
11264 (remote_threads_info): Try qXfer:threads before anything
11266 (remote_protocol_packets): Register qXfer:threads.
11267 (remote_open_1): Init use_osdata_threads.
11268 (struct stop_reply): New field 'core'.
11269 (remote_parse_stop_reply): Parse core number.
11270 (process_stop_reply): Record core number.
11271 (remote_xfer_partial): Handle qXfer:threads.
11272 (remote_core_of_thread): New.
11273 (init_remote_ops): Register remote_core_of_thread.
11274 (_initialize_remote): Register qXfer:read.
11275 * target.c (target_core_of_thread): New
11276 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
11277 (struct target_ops): New field to_core_of_threads.
11278 (target_core_of_thread): Declare.
11279 * gdbthread.h (struct thread_info): New field private_dtor.
11280 * thread.c (print_thread_info): Report the core.
11281 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
11282 * utils.c (compare_positive_ints): New.
11283 * features/threads.dtd: New.
11284 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
11285 * mi/mi-main.c (struct collect_cores_data, collect_cores)
11286 (do_nothing, free_vector_of_osdata_items)
11287 (splay_tree_int_comparator, free_splay_tree): New.
11288 (print_one_inferior_data): Implemented printing of selected
11289 inferiors. Collect and print cores.
11290 (output_cores): New.
11291 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
11292 thread groups together with --available.
11294 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11296 * configure: Regenerate (for _STRUCTURED_PROC).
11298 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11300 Delete dead function.
11301 * ada-lang.c (extract_string): Delete. No longer used.
11303 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11305 Fix -Wunused warning in dec-thread.c.
11306 * dec-thread.c (dec_thread_count_gdb_threads)
11307 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
11309 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11311 * ada-valprint.c (ada_print_floating): Remove trailing space.
11313 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11315 Add support for DW_AT_GNAT_descriptive_type.
11316 * gdbtypes.h (enum type_specific_kind): New enum.
11317 (struct main_type) [type_specific_field]: New component.
11318 [type_specific]: Add new component "gnat_stuff".
11319 (struct gnat_aux_type): New type.
11320 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
11321 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
11322 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
11323 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
11324 (TYPE_SPECIFIC_FIELD): New macros.
11325 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
11326 type does not hold any cplus-specific data.
11327 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
11328 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
11329 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
11330 cplus-specific data.
11331 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
11332 Set new component TYPE_SPECIFIC_FIELD (type).
11333 (gnat_aux_default): New constant.
11334 (allocate_gnat_aux_type): New function.
11335 (init_type): Add initialization the type-specific stuff for
11336 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
11337 (print_gnat_stuff): New function.
11338 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
11339 specific data. Adjust code that prints the contents of the
11340 type-specific union using the TYPE_SPECIFIC_FIELD value.
11341 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
11342 the type cplus stuff for Ada types.
11343 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
11344 Error out if these routines are called with an Ada type.
11345 (read_structure_type, read_array_type, read_subrange_type):
11346 Add call to set_descriptive_type.
11347 (set_die_type): Initialize the gnat-specific data if necessary.
11348 (need_gnat_info, die_descriptive_type, set_descriptive_type):
11350 * ada-lang.c (decode_constrained_packed_array_type): Use
11351 decode_constrained_packed_array_type instead of doing a standard
11352 lookup to locate a parallel type.
11353 (find_parallel_type_by_descriptive_type): New function.
11354 (ada_find_parallel_type_with_name): New function.
11355 (ada_find_parallel_type): Reimplement using
11356 ada_find_parallel_type_with_name.
11357 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
11358 to check if type has a cplus stuff.
11359 * linespec.c (total_number_of_methods): Likewise.
11360 * mdebugread.c (new_type): Likewise.
11362 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11364 * NEWS: Document the 0b binary number prefix parsing.
11366 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11368 * objfiles.c (objfile_relocate1): Change the return type to int.
11369 Describe the new return value. Return non-zero if data changed.
11370 (objfile_relocate): New variable changed. Set it. Call
11371 breakpoint_re_set depending on CHANGED.
11373 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11375 Implement binary numbers parsing.
11376 * c-exp.y (parse_number): New case 'b' and 'B'.
11378 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11379 Tristan Gingold <gingold@adacore.com>
11381 * solib.c (info_sharedlibrary_command): Replace
11382 objfile_has_partial_symbols and objfile_has_full_symbols calls by
11383 objfile_has_symbols.
11385 2010-01-10 Joel Brobecker <brobecker@adacore.com>
11387 * NEWS: Document the improvements made to the mips-irix port.
11389 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11391 Fix the documentation of valprint.c:value_print.
11392 * valprint.c (value_print): Update the function description to
11393 mention that the syntax of the output follows the current_language,
11396 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11398 Fix displacement of separate debug info files.
11399 * objfiles.c (objfile_relocate): Rename to ...
11400 (objfile_relocate1): ... here and make it static. Extend the comment.
11401 (objfile_relocate): New function.
11402 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
11403 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
11404 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
11405 allocated using alloca.
11406 * symfile.c (copy_section_addr_info): Remove.
11407 (build_section_addr_info_from_objfile): Make it global. New variables
11408 addr_bit and mask, use them.
11409 * symfile.h (build_section_addr_info_from_objfile): New prototype.
11410 (copy_section_addr_info): Remove.
11412 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11414 Signal unwinder for mips-irix N32.
11415 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
11417 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
11418 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
11419 (SIGCONTEXT_LO_OFF): New macros.
11420 (mips_irix_n32_tramp_frame_init): New function.
11421 (mips_irix_n32_tramp_frame): New static constant.
11422 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
11424 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11426 Breakpoint in shared library does not work on mips-irix.
11427 * procfs.c: #include "observer.h".
11428 (procfs_inferior_created): New function, moving here the code
11429 which unsets the syssgi syscall-exit notifications.
11430 (procfs_create_inferior): Remove the code which unsets the syssgi
11431 syscall-exit notifications. It is too early to do this here.
11432 (_initialize_procfs): Attach the procfs_inferior_created observer.
11434 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11436 Wrong return convention for arrays (mips-irix).
11437 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
11438 128 bits or smaller are returned the same way as structs
11439 and unions of the the same size.
11441 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11443 Cannot set the PC on mips-irix.
11444 * irix5-nat.c (fill_gregset): Check regno against the raw PC
11445 register number, no the cooked one.
11447 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11449 Error while loading core file on mips-irix.
11450 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
11451 if debugging from a core file.
11453 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11455 GDB hangs when attaching to process on mips-irix.
11456 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
11457 attaching to a process.
11459 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11461 Use the correct breakpoint instruction on mips-irix.
11462 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
11463 containing the correct breakpoint instruction to use on mips-irix.
11464 Use it when the osabi is GDB_OSABI_IRIX.
11466 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11468 -Wunused warning in procfs.c (mips-irix only).
11469 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
11470 throughout instead of using praddset and prdelset respectively.
11472 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11474 GDB crash while stepping into function.
11475 * infrun.c (handle_inferior_event): Refetch the current frame
11476 after handling what.main_action, in case that pointer became
11479 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11481 Fix build failure of solaris-hosted cross debuggers.
11482 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
11484 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
11486 Fix build failure on sparc-solaris.
11487 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
11489 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11491 Move some symfile code into subroutines.
11492 * symfile.h (relative_addr_info_to_section_offsets)
11493 (addr_info_make_relative): New prototypes.
11494 * symfile.c (default_symfile_offsets): Move a part to ...
11495 (relative_addr_info_to_section_offsets): ... this new function.
11496 (default_symfile_offsets): Call it.
11497 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
11499 (addr_info_make_relative): ... this new function.
11501 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11503 Add from_tty to solib_create_inferior_hook.
11504 * infcmd.c (post_create_inferior): Move solib_add after
11505 solib_create_inferior_hook. Pass from_tty to
11506 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
11507 0 from_tty and comment why.
11508 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
11509 * linux-nat.c (linux_child_follow_fork): Likewise.
11510 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
11511 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
11513 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
11514 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
11515 * solib-null.c (null_solib_create_inferior_hook): Likewise.
11516 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
11517 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
11518 * solib-som.c (som_solib_create_inferior_hook): Likewise.
11519 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
11520 Pass it to svr4_so_ops.solib_create_inferior_hook.
11521 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
11523 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
11525 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
11527 * solib-target.c (solib_target_solib_create_inferior_hook): New
11528 parameter from_tty.
11529 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
11530 it to ops->solib_create_inferior_hook.
11531 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
11532 Move solib_add after solib_create_inferior_hook, call it now with
11533 from_tty as 0. New comment there.
11534 * solib.h (solib_create_inferior_hook): New parameter from_tty.
11535 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
11538 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
11540 Fix multiexec race.
11541 * infrun.c (handle_inferior_event): Use get_thread_regcache
11542 with events ptid, not get_current_regcache.
11544 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11546 GDB crash with empty executable name (MinGW).
11547 * source.c (openp): Add assert that parameter string is not NULL.
11548 if parameter string is an empty string, then return with a failure
11551 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11553 Get rid of support for VAX Floats.
11554 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11555 (ada_vax_float_print_function): Delete.
11556 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11557 (ada_vax_float_print_function): Delete.
11558 * ada-typeprint.c (print_vax_floating_point_type): Delete.
11559 (ada_print_type): Remove support for VAX floats.
11560 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
11562 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11564 * stabsread.c (read_args): Handle zero arguments.
11566 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11568 Cannot find in-tree libiconv.a after reconfigure.
11569 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
11570 that we can use, then cache the path to this archive.
11571 * configure: Regenerate.
11573 2010-01-07 Stan Shebs <stan@codesourcery.com>
11575 Make tracepoint operations go through target vector.
11576 * target.h (enum trace_find_type): New enum.
11577 (struct target_ops): New fields to_trace_init,
11578 to_download_tracepoint, to_download_trace_state_variable,
11579 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
11580 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
11581 to_set_disconnected_tracing.
11582 (target_trace_init): New macro.
11583 (target_download_tracepoint): New macro.
11584 (target_download_trace_state_variable): New macro.
11585 (target_trace_start): New macro.
11586 (target_trace_set_readonly_regions): New macro.
11587 (target_get_trace_status): New macro.
11588 (target_trace_stop): New macro.
11589 (target_trace_find): New macro.
11590 (target_get_trace_state_variable_value): New macro.
11591 (target_set_disconnected_tracing): New macro.
11592 * target.c (update_current_target): Inherit and set defaults for
11593 tracepoint operations.
11594 * tracepoint.c (default_collect): Make globally visible.
11595 (target_is_remote): Remove, along with all calls.
11596 (tvariables_info): Call target_get_trace_state_variable_value.
11597 (remote_set_transparent_ranges): Remove.
11598 (trace_start_command): Call target_trace_init,
11599 target_download_tracepoint, etc.
11600 (download_tracepoint): Remove.
11601 (trace_stop_command): Simplify.
11602 (stop_tracing): Call target_trace_stop.
11603 (get_trace_status): Call target_get_trace_status.
11604 (trace_status_command): Add case for targets that cannot trace.
11605 (finish_tfind_command): Change to take numerical arguments, call
11607 (trace_find_command): Update call to finish_tfind_command.
11608 (trace_find_pc_command): Ditto.
11609 (trace_find_tracepoint_command): Ditto.
11610 (trace_find_line_command): Ditto.
11611 (trace_find_range_command): Ditto.
11612 (trace_find_outside_command): Ditto.
11613 (set_disconnected_tracing_value): Call
11614 target_set_disconnected_tracing.
11615 * remote.c: Add protocol encoding bits from tracepoint.c.
11616 (trace_error): Move from tracepoint.c.
11617 (remote_get_noisy_reply): Ditto.
11618 (free_actions_list_cleanup_wrapper): Ditto.
11619 (free_actions_list): Ditto.
11620 (remote_trace_init): New function.
11621 (remote_download_tracepoint): New function.
11622 (remote_download_trace_state_variable): New function.
11623 (remote_trace_set_readonly_regions): New function.
11624 (remote_trace_start): New function.
11625 (remote_get_trace_status): New function.
11626 (remote_trace_stop): New function.
11627 (remote_trace_find): New function.
11628 (remote_download_trace_state_variable): New function.
11629 (remote_set_disconnected_tracing): New function.
11630 (init_remote_ops): Add tracepoint operations.
11632 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11634 2010-01-07 Tristan Gingold <gingold@adacore.com>
11636 * symfile.c (build_section_addr_info_from_objfile): New function.
11637 (symbol_file_add_separate): Don't use offsets from objfile but
11638 built an addr info.
11640 2010-01-06 Stan Shebs <stan@codesourcery.com>
11642 Support disconnected tracing.
11643 * infcmd.c (detach_command): Ask whether to stop tracing.
11644 * cli/cli-cmds.c (quit_command): Ditto.
11645 * breakpoint.h (struct breakpoint): New field number_on_target.
11646 * breakpoint.c (create_tracepoint_from_upload): New function.
11647 (get_tracepoint_by_number_on_target): New function.
11648 * remote.c (struct remote): New field disconnected_tracing.
11649 (remote_disconnected_tracing_feature): New function.
11650 (remote_protocol_features): Add DisconnectedTracing.
11651 (struct uploaded_tp): New struct.
11652 (uploaded_tps): New global.
11653 (get_uploaded_tp): New function.
11654 (find_matching_tracepoint): New function.
11655 (remote_get_tracing_state): New function.
11656 (remote_start_remote): Call it.
11657 * tracepoint.c (disconnected_tracing): New global.
11658 (trace_start_command): Initialize number_on_target.
11659 (stop_tracing): New function, split out from...
11660 (trace_stop_command): Call stop_tracing.
11661 (get_trace_status): New function, split out from...
11662 (trace_status_command): Call get_trace_status, add info on
11663 disconnection behavior.
11664 (disconnect_or_stop_tracing): New function.
11665 (finish_tfind_command): Translate from number on target.
11666 (trace_find_tracepoint_command): Translate to number on target.
11667 (send_disconnected_tracing_value): New function.
11668 (set_disconnected_tracing): New function.
11669 (_initialize_tracepoint): Add disconnected-tracing variable.
11670 * NEWS: Mention disconnected tracing.
11672 2010-01-06 Tristan Gingold <gingold@adacore.com>
11674 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11675 parameter to main_objfile. Iterate on all separate debug objfiles.
11676 * symfile.h (symbol_file_add_separate)
11677 (find_separate_debug_file_by_debuglink): Remove parameter names.
11678 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11679 (reread_symbols): Use free_objfile_separate_debug.
11680 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11682 (objfile_separate_debug_iterate, add_separate_debug_objfile)
11683 (free_objfile_separate_debug): New prototypes.
11684 * objfiles.c (objfile_separate_debug_iterate): New function.
11685 (add_separate_debug_objfile, free_objfile_separate_debug): New
11687 (free_objfile): Use free_objfile_separate_debug. Adjust for
11688 multiple separate debug objfile.
11689 (objfile_has_symbols): Adjust comment. Iterate on all separate
11691 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11693 (lookup_minimal_symbol_text): Ditto.
11694 (lookup_minimal_symbol_by_pc_name): Ditto.
11695 (lookup_minimal_symbol_solib_trampoline): Ditto.
11696 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11699 2010-01-05 Stan Shebs <stan@codesourcery.com>
11701 Add fast tracepoints.
11702 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11703 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11704 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11705 * breakpoint.c (tracepoint_type): New function.
11706 (ALL_TRACEPOINTS): Use it.
11707 (should_be_inserted): Ditto.
11708 (bpstat_check_location): Ditto.
11709 (print_one_breakpoint_location): Ditto.
11710 (user_settable_breakpoint): Ditto.
11711 (set_breakpoint_location_function): Ditto.
11712 (disable_breakpoints_in_shlibs): Ditto.
11713 (delete_trace_command): Ditto.
11714 (print_it_typical): Add bp_fast_tracepoint case.
11715 (bpstat_what): Ditto.
11716 (print_one_breakpoint_location): Ditto.
11717 (allocate_bp_location): Ditto.
11719 (breakpoint_re_set_one): Ditto.
11720 (disable_command): Ditto.
11721 (enable_command): Ditto.
11722 (check_fast_tracepoint_sals): New function.
11723 (break_command_really): Call it.
11724 (ftrace_command): New function.
11725 (_initialize_breakpoint): Add ftrace command.
11726 * gdbarch.sh (fast_tracepoint_valid_at): New.
11727 * gdbarch.h, gdbarch.c: Regenerate.
11728 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11729 (i386_gdbarch_init): Use it.
11730 * remote.c (struct remote_state): New field fast_tracepoints.
11731 (PACKET_FastTracepoints): New packet config type.
11732 (remote_fast_tracepoint_feature): New function.
11733 (remote_protocol_features): Add FastTracepoints.
11734 (remote_supports_fast_tracepoints): New function.
11735 (_initialize_remote): Add FastTracepoints.
11736 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11737 * NEWS: Mention fast tracepoints.
11739 2010-01-06 Joel Brobecker <brobecker@adacore.com>
11741 * gdb-gdb.py: New file.
11743 2010-01-05 Michael Snyder <msnyder@vmware.com>
11745 * infrun.c (handle_inferior_event): Fix typo in comment.
11747 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11749 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11751 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11753 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
11755 (s390-linux32-expedite): Define.
11756 (s390-linux64-expedite): Define.
11757 (s390x-linux64-expedite): Define.
11758 * features/s390-acr.xml: New file.
11759 * features/s390-fpr.xml: New file.
11760 * features/s390-core32.xml: New file.
11761 * features/s390-core64.xml: New file.
11762 * features/s390x-core64.xml: New file.
11763 * features/s390-linux32.xml: New file.
11764 * features/s390-linux64.xml: New file.
11765 * features/s390x-linux64.xml: New file.
11766 * features/s390-linux32.c: New generated file.
11767 * features/s390-linux64.c: New generated file.
11768 * features/s390x-linux64.c: New generated file.
11770 * regformats/s390-linux32.dat: New generated file.
11771 * regformats/s390-linux64.dat: New generated file.
11772 * regformats/s390x-linux64.dat: New generated file.
11773 * regformats/reg-s390.dat: Remove.
11774 * regformats/reg-s390x.dat: Remove.
11776 * s390-nat.c: Include "auxv.h" and <elf.h>.
11777 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11778 (s390_target_wordsize): New function.
11779 (s390_auxv_parse): Likewise.
11780 (s390_get_hwcap): Likewise.
11781 (s390_read_description): Likewise.
11782 (_initialize_s390_nat): Install s390_auxv_parse and
11783 s390_read_description.
11785 * s390-tdep.c: Include "features/s390-linux32.c",
11786 "features/s390-linux64.c", and "features/s390x-linux64.c".
11787 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11788 (s390_register_call_saved): New function.
11789 (s390_register_name): Remove.
11790 (s390_register_type): Remove.
11791 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11792 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11793 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11794 (s390_pseudo_register_name): New function.
11795 (s390_pseudo_register_type): New function.
11796 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11797 Handle full GPR pesudos and varying pseudo register numbers.
11798 (s390_pseudo_register_write): Likewise
11799 (s390x_pseudo_register_read): Remove.
11800 (s390x_pseudo_register_write): Likewise.
11801 (s390_register_group): Remove.
11802 (s390_pseudo_register_group): New function.
11803 (s390_regmap_gregset): Add GPR upper halves.
11804 (s390x_regmap_gregset): Likewise.
11805 (s390_regmap_fpregset): Likewise.
11806 (s390_regmap_upper): New global variable.
11807 (s390_upper_regset): New global variable.
11808 (s390_upper_regset_sections): New global variable.
11809 (s390_regset_from_core_section): Handle GPR upper halves.
11810 (s390_core_read_description): New function.
11811 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11812 register information. Handle varying pseudo register numbers.
11813 (s390_backchain_frame_unwind_cache): Likewise.
11814 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11815 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11816 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11817 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11818 Handle varying pseudo register numbers.
11819 (s390_unwind_pc): Handle varying pseudo register numbers.
11820 (s390_dwarf2_prev_register): New function.
11821 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11822 register information. Handle varying pseudo register numbers.
11823 Install s390_dwarf2_prev_register to unwind full GPRs.
11824 (s390_gdbarch_init): Handle target descriptions. Assign varying
11825 pseudo register numbers. Install s390_adjust_frame_regnum.
11826 (_initialize_s390_tdep): Initialize target descriptions.
11828 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11829 (S390_NUM_REGS): Redefine to include upper half registers.
11830 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11831 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11832 (tdesc_s390_linux32): Add declaration.
11833 (tdesc_s390_linux64): Likewise.
11834 (tdesc_s390x_linux64): Likewise.
11836 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11838 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11839 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11840 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11841 (ppc_linux_vmx_regset_sections): Likewise.
11842 (ppc_linux_fp_regset_sections): Likewise.
11844 * corelow.c (get_core_register_section): Constify arguments.
11845 (get_core_registers): Use gdbarch_core_regset_sections instead
11846 of hard-coded platform-specific register section names.
11848 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11850 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
11851 a register, assume the least-significant part is used.
11852 (write_pieced_value): Likewise.
11854 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11856 * printcmd.c: Include "arch-utils.h".
11857 (do_one_display): Re-parse expression if current architecture changed.
11859 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11860 Joel Brobecker <brobecker@adacore.com>
11862 * gdbtypes.c (check_typedef): New comment on type length.
11863 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11864 comment on type length.
11865 (value_primitive_field): Keep the original TYPE value, new comment.
11867 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11869 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11870 p_start. Change != comparisons to > and < comparisons.
11872 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11874 * cli/cli-script.c (process_next_line): Check P2 overrun.
11876 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11878 Update the copyright hearder to add year 2010 for most GDB files.
11880 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11882 Fix build failure in inf-ptrace.c.
11883 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11885 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11887 * top.c (print_gdb_version): Update copyright year.
11889 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
11891 Fix break *FUN'address thread NUM.
11892 * ada-lex.l (task): Expand rule to also match the thread keyword.
11894 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11896 Fix break *FUN'address task NUM.
11897 * ada-lex.l (task): New rule.
11898 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11899 been built before using it.
11901 For older changes see ChangeLog-2009.
11907 version-control: never