1 2012-05-22 Pedro Alves <palves@redhat.com>
3 * target.h (store_waitstatus): Move declaration ...
4 * inf-child.h (store_waitstatus): ... here.
5 * target.c: Move inclusion of gdb_wait.h, and ...
6 (store_waitstatus): ... this ...
7 * inf-child.c: ... here.
8 * linux-nat.c: Include inf-child.h.
9 * rs6000-nat.c: Include inf-child.h.
10 * spu-linux-nat.c: Include inf-child.h.
12 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
14 * tracepoint.c (start_tracing): Add missing i18n markup.
15 (stop_tracing, set_trace_user): Ditto.
16 (set_trace_notes, set_trace_stop_notes): Ditto.
18 2012-05-21 Tom Tromey <tromey@redhat.com>
21 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
23 * value.h (value_cast_pointers): Update.
24 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
26 (update_search_result): New function.
27 (do_search_struct_field): New, from search_struct_field. Check
28 for ambiguous results.
29 (search_struct_field): Rewrite.
30 * infcall.c (value_arg_coerce): Update.
31 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
33 * ada-lang.c (ada_convert_actual): Update.
35 2012-05-21 Tom Tromey <tromey@redhat.com>
37 * macroexp.c (macro_stringify): Terminate the string.
39 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
41 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
43 * auto-load.c (auto_load_expand_dir_vars): New function.
44 (auto_load_safe_path_vec_update): Use it, remove the
45 substitute_path_component call thanks to it.
46 (auto_load_objfile_script): Remove the debug_file_directory processing.
47 Use auto_load_expand_dir_vars, remove the substitute_path_component
49 * configure: Regenerate.
50 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
51 path. Escape $ also for $debugdir.
52 (--with_auto_load_safe_path): Escape $ also for $debugdir.
53 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
55 2012-05-20 Doug Evans <dje@google.com>
57 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
58 before use. Check for symtab->includes == NULL before scanning it.
60 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
62 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
64 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
66 * NEWS: Add microMIPS support and "set mips compression",
67 "show mips compression" commands.
68 * mips-tdep.h (mips_isa): New enum.
69 (gdbarch_tdep): Add mips_isa.
70 (mips_pc_is_mips16): Update prototype.
71 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
72 * mips-tdep.c (mips_compression_mips16): New variable.
73 (mips_compression_micromips): Likewise.
74 (mips_compression_strings): Likewise.
75 (mips_compression_string): Likewise.
76 (is_mips16_isa, is_micromips_isa): New functions.
77 (is_mips16_addr): Rename to...
78 (is_compact_addr): ... this.
79 (unmake_mips16_addr): Likewise to...
80 (unmake_compact_addr): ... this.
81 (make_mips16_addr): Likewise to...
82 (make_compact_addr): ... this.
83 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
85 (mips_elf_make_msymbol_special): Handle microMIPS code.
86 (msymbol_is_special): Rename to...
87 (msymbol_is_mips16): ... this.
88 (mips_make_symbol_special, mips_pc_is_mips16): Update
90 (msymbol_is_mips, msymbol_is_micromips): New functions.
91 (mips16_to_32_reg): Rename to...
92 (mips_reg3_to_reg): ... this.
93 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
94 (mips_pc_isa): Likewise.
95 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
97 (mips_fetch_instruction): Pass return status instead of printing
98 an error message if requested. Handle microMIPS code. Bail out
100 (micromips_op): New macro.
101 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
102 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
103 (b6s4_op, b7s3_reg): Likewise.
104 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
105 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
106 (mips_insn_size): New function.
107 (mips32_next_pc): Update mips_fetch_instruction call.
108 (micromips_relative_offset7): New function.
109 (micromips_relative_offset10): Likewise.
110 (micromips_relative_offset16): Likewise.
111 (micromips_pc_insn_size): Likewise.
112 (micromips_bc1_pc): Likewise.
113 (micromips_next_pc): Likewise.
114 (unpack_mips16): Update mips_fetch_instruction call.
115 (extended_mips16_next_pc): Update according to change to
117 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
119 (mips16_scan_prologue): Update mips_fetch_instruction call.
120 Update according to change to mips16_to_32_reg.
121 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
122 (mips_insn16_frame_base_sniffer): Likewise.
123 (micromips_decode_imm9): New function.
124 (micromips_scan_prologue): Likewise.
125 (mips_micro_frame_cache): Likewise.
126 (mips_micro_frame_this_id): Likewise.
127 (mips_micro_frame_prev_register): Likewise.
128 (mips_micro_frame_sniffer): Likewise.
129 (mips_micro_frame_unwind): New variable.
130 (mips_micro_frame_base_address): New function.
131 (mips_micro_frame_base): New variable.
132 (mips_micro_frame_base_sniffer): New function.
133 (mips32_scan_prologue): Update mips_fetch_instruction call.
134 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
135 rather than for MIPS16.
136 (mips_insn32_frame_base_sniffer): Likewise.
137 (mips_addr_bits_remove): Handle microMIPS code.
138 (deal_with_atomic_sequence): Rename to...
139 (mips_deal_with_atomic_sequence): ... this. Update the type
140 of the variable used to hold an instruction. Remove the ISA bit
141 check. Update mips_fetch_instruction call.
142 (micromips_deal_with_atomic_sequence): New function.
143 (deal_with_atomic_sequence): Likewise.
144 (mips_about_to_return): Handle microMIPS code. Update
145 mips_fetch_instruction call.
146 (heuristic_proc_start): Check for the standard MIPS ISA rather
147 than for MIPS16. Update mips_pc_is_mips16 and
148 mips_fetch_instruction calls. Handle microMIPS code.
149 (mips_push_dummy_code): Handle microMIPS code.
150 (mips_eabi_push_dummy_call): Likewise.
151 (mips_o32_return_value): Update mips_pc_is_mips16 call.
152 (mips_o64_push_dummy_call): Handle microMIPS code.
153 (mips_o64_return_value): Update mips_pc_is_mips16 call.
154 (is_delayed): Remove function.
155 (mips_single_step_through_delay): Replace the call to is_delayed
156 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
157 Handle microMIPS code.
158 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
160 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
162 (micromips_in_function_epilogue_p): New function.
163 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
165 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
167 (gdb_print_insn_mips): Likewise.
168 (mips_breakpoint_from_pc): Likewise.
169 (mips_remote_breakpoint_from_pc): New function.
170 (mips32_instruction_has_delay_slot): Simplify making use of the
171 updated mips_fetch_instruction interface.
172 (micromips_instruction_has_delay_slot): New function.
173 (mips16_instruction_has_delay_slot): Simplify making use of the
174 updated mips_fetch_instruction interface.
175 (mips_adjust_breakpoint_address): Check for the standard MIPS
176 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
177 calls. Handle microMIPS code.
178 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
179 (mips_skip_trampoline_code): Handle microMIPS code.
180 (global_mips_compression): New function.
181 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
182 file flags. Register the microMIPS remote breakpoint handler
183 and heuristic frame unwinder.
184 (show_mips_compression): New function.
185 (_initialize_mips_tdep): Add the "set mips compression" and
186 "show mips compression" commands.
188 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
193 * amd64-darwin-tdep.c:
194 * arm-symbian-tdep.c:
205 * dwarf2-frame-tailcall.c:
243 * python/py-finishbreakpoint.c:
244 * python/py-inferior.c:
245 * python/py-infthread.c:
279 * amd64-darwin-tdep.c:
280 * arm-symbian-tdep.c:
281 * arm-tdep.c: Delete unused variables.
283 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
285 Rename $ddir to $datadir.
286 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
287 * auto-load.c (auto_load_safe_path_vec_update)
288 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
289 * configure: Regenerate.
290 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
291 Likewise. Remove the 'use $ddir' help string.
293 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
295 * auto-load.c (show_auto_load_safe_path): Accept any combination of
296 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
298 2012-05-18 Tom Tromey <tromey@redhat.com>
301 * valprint.h (struct value_print_options) <symbol_print>: New
303 * valprint.c (user_print_options): Add default for symbol_print.
304 (show_symbol_print): New function.
305 (generic_val_print): Respect symbol_print.
306 (_initialize_valprint): Add "print symbol" setting.
307 * f-valprint.c (f_val_print): Respect symbol_print.
308 * c-valprint.c (c_val_print): Respect symbol_print.
310 * printcmd.c (print_address_symbolic): Return int. Ignore some
312 (print_address_demangle): Return int.
313 * defs.h: (print_address_symbolic): Return int.
314 * value.h (print_address_demangle): Return int.
316 2012-05-18 Tom Tromey <tromey@redhat.com>
318 * valprint.c (val_print_string): Don't print leading space.
319 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
320 print space before string or vtbl.
321 * m2-valprint.c (print_unpacked_pointer): Optionally print space
323 * jv-valprint.c (java_value_print): Print space before string.
324 * go-valprint.c (print_go_string): Print space before string.
325 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
327 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
328 space before string or vtbl.
329 * auxv.c (fprint_target_auxv): Print space after address.
331 2012-05-18 Tom Tromey <tromey@redhat.com>
333 * printcmd.c (print_address_demangle): Remove special case for 0.
335 2012-05-18 Tom Tromey <tromey@redhat.com>
337 * printcmd.c (print_address_demangle): Add 'opts' argument.
338 * p-valprint.c (pascal_val_print): Update.
339 * jv-valprint.c (java_val_print): Update.
341 * valprint.c (generic_val_print): Update.
342 (print_function_pointer_address): Add 'options' argument. Remove
343 'addressprint' argument. Update.
344 * m2-valprint.c (print_unpacked_pointer): Update.
345 * gnu-v3-abi.c (print_one_vtable): Update.
346 (gnuv3_print_method_ptr): Update.
347 * f-valprint.c (f_val_print): Update.
348 * cp-valprint.c (cp_print_value_fields): Update.
349 * valprint.h (print_function_pointer_address): Update.
350 * c-valprint.c (c_val_print): Update.
352 2012-05-18 Tom Tromey <tromey@redhat.com>
354 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
355 directly corresponding to the found psymtab.
356 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
357 (dw2_find_pc_sect_symtab): Use it.
358 * block.h (blockvector_contains_pc): Declare.
359 * block.c (find_block_in_blockvector): New function.
360 (blockvector_for_pc_sect): Use it.
361 (blockvector_contains_pc): New function.
363 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
365 * mips-tdep.h (mips_write_pc): New prototype.
366 * mips-tdep.c (mips_write_pc): Make external, add description.
367 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
370 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
372 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
374 (mips_unwind_pc, mips_write_pc): Likewise.
375 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
378 2012-05-17 Joel Brobecker <brobecker@adacore.com>
380 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
381 proc_warn, proc_error, proc_get_status, proc_flags,
382 proc_why, proc_what, proc_nsysarg, proc_sysargs,
383 proc_set_run_on_last_close, proc_unset_run_on_last_close,
384 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
385 proc_stop_process, proc_wait_for_stop, proc_run_process,
386 proc_set_traced_signals, proc_set_traced_faults,
387 proc_set_traced_sysentry, proc_set_traced_sysexit,
388 proc_set_held_signals, proc_get_held_signals,
389 proc_get_traced_signals, proc_get_traced_faults,
390 proc_get_traced_sysentry, proc_get_traced_sysexit,
391 proc_clear_current_fault, proc_set_current_signal,
392 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
393 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
394 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
395 proc_get_current_thread, proc_get_current_thread,
396 proc_get_current_thread, proc_update_threads,
397 proc_update_threads, proc_update_threads, proc_update_threads,
398 proc_iterate_over_threads, procfs_find_new_threads,
399 procfs_pid_to_str): Make static. Remove advance declaration.
400 (proc_cursig): Make static. Conditionalized defintion on
401 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
402 (proc_syscall, proc_set_kill_on_last_close,
403 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
404 proc_get_pending_signals, proc_get_signal_actions,
405 proc_trace_signal, proc_ignore_signal): Delete.
407 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
409 * coffread.c (cs_section_address): Passing proper argument for
410 `bfd_get_section_vma'.
411 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
412 `bfd_get_section_flags'.
413 * remote.c (remote_trace_set_readonly_regions): Likewise, for
414 `bfd_get_section_vma'.
416 2012-05-16 Tom Tromey <tromey@redhat.com>
419 * macrotab.h: (macro_define_special): Declare.
420 (enum macro_special_kind): New.
421 (struct macro_definition) <argc, replacement>: Update comments.
422 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
423 (macro_define_object_internal): New function.
424 (macro_define_object): Use it.
425 (macro_define_special): New function.
426 (fixup_definition): New function.
427 (macro_lookup_definition, foreach_macro_in_scope)
428 (foreach_macro): Use fixup_definition.
429 * macroexp.h (macro_stringify): Declare.
430 * macroexp.c (free_buffer_return_text): New function.
431 (stringify): Constify "arg".
432 (macro_stringify): New function.
433 * dwarf2read.c (macro_start_file): Call macro_define_special.
435 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
436 Maciej W. Rozycki <macro@mips.com>
438 * breakpoint.h (bp_location): Add related_address member.
439 * inferior.h (get_return_value): Take a pointer to struct value
440 instead of struct type for the function requested.
441 * value.h (using_struct_return): Likewise.
442 * gdbarch.sh (return_value): Take a pointer to struct value
443 instead of struct type for the function requested.
444 * breakpoint.c (set_breakpoint_location_function): Initialize
445 related_address for bp_gnu_ifunc_resolver breakpoints.
446 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
447 requested function's address to gdbarch_return_value.
448 * eval.c (evaluate_subexp_standard): Pass the requested
449 function's address to using_struct_return.
450 * infcall.c (call_function_by_hand): Pass the requested
451 function's address to using_struct_return and
452 gdbarch_return_value.
453 * infcmd.c (get_return_value): Take a pointer to struct value
454 instead of struct type for the function requested.
455 (print_return_value): Update accordingly.
456 (finish_command_continuation): Likewise.
457 * stack.c (return_command): Pass the requested function's
458 address to using_struct_return and gdbarch_return_value.
459 * value.c (using_struct_return): Take a pointer to struct value
460 instead of struct type for the function requested. Pass the
461 requested function's address to gdbarch_return_value.
462 * python/py-finishbreakpoint.c (finish_breakpoint_object):
463 New function_value member, replacing function_type.
464 (bpfinishpy_dealloc): Update accordingly.
465 (bpfinishpy_pre_stop_hook): Likewise.
466 (bpfinishpy_init): Likewise. Record the requested function's
468 * mips-tdep.c (mips_fval_reg): New enum.
469 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
470 words put in GP registers.
471 (mips_o64_push_dummy_call): Update a comment.
472 (mips_o32_return_value): Take a pointer to struct value instead
473 of struct type for the function requested and use it to check if
474 using the MIPS16 calling convention. Return the designated
475 general purpose registers for floating-point values returned in
477 (mips_o64_return_value): Likewise.
478 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
479 (ppc_sysv_abi_broken_return_value): Likewise.
480 (ppc64_sysv_abi_return_value): Likewise.
481 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
482 value instead of struct type for the function requested.
483 * amd64-tdep.c (amd64_return_value): Likewise.
484 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
485 * arm-tdep.c (arm_return_value): Likewise.
486 * avr-tdep.c (avr_return_value): Likewise.
487 * bfin-tdep.c (bfin_return_value): Likewise.
488 * cris-tdep.c (cris_return_value): Likewise.
489 * frv-tdep.c (frv_return_value): Likewise.
490 * h8300-tdep.c (h8300_return_value): Likewise.
491 (h8300h_return_value): Likewise.
492 * hppa-tdep.c (hppa32_return_value): Likewise.
493 (hppa64_return_value): Likewise.
494 * i386-tdep.c (i386_return_value): Likewise.
495 * ia64-tdep.c (ia64_return_value): Likewise.
496 * iq2000-tdep.c (iq2000_return_value): Likewise.
497 * lm32-tdep.c (lm32_return_value): Likewise.
498 * m32c-tdep.c (m32c_return_value): Likewise.
499 * m32r-tdep.c (m32r_return_value): Likewise.
500 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
501 * m68k-tdep.c (m68k_return_value): Likewise.
502 (m68k_svr4_return_value): Likewise.
503 * m88k-tdep.c (m88k_return_value): Likewise.
504 * mep-tdep.c (mep_return_value): Likewise.
505 * microblaze-tdep.c (microblaze_return_value): Likewise.
506 * mn10300-tdep.c (mn10300_return_value): Likewise.
507 * moxie-tdep.c (moxie_return_value): Likewise.
508 * mt-tdep.c (mt_return_value): Likewise.
509 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
510 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
511 (ppc_sysv_abi_broken_return_value): Likewise.
512 (ppc64_sysv_abi_return_value): Likewise.
513 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
514 * rl78-tdep.c (rl78_return_value): Likewise.
515 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
516 * rx-tdep.c (rx_return_value): Likewise.
517 * s390-tdep.c (s390_return_value): Likewise.
518 * score-tdep.c (score_return_value): Likewise.
519 * sh-tdep.c (sh_return_value_nofpu): Likewise.
520 (sh_return_value_fpu): Likewise.
521 * sh64-tdep.c (sh64_return_value): Likewise.
522 * sparc-tdep.c (sparc32_return_value): Likewise.
523 * sparc64-tdep.c (sparc64_return_value): Likewise.
524 * spu-tdep.c (spu_return_value): Likewise.
525 * tic6x-tdep.c (tic6x_return_value): Likewise.
526 * v850-tdep.c (v850_return_value): Likewise.
527 * vax-tdep.c (vax_return_value): Likewise.
528 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
529 * xtensa-tdep.c (xtensa_return_value): Likewise.
530 * gdbarch.c: Regenerate.
531 * gdbarch.h: Regenerate.
533 2012-05-15 Tom Tromey <tromey@redhat.com>
535 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
537 2012-05-15 Joel Brobecker <brobecker@adacore.com>
539 * breakpoint.c (init_breakpoint_sal): Add quotes around part
540 of command in two error message.
542 2012-05-15 Joel Brobecker <brobecker@adacore.com>
544 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
546 2012-05-15 Joel Brobecker <brobecker@adacore.com>
548 * breakpoint.c (find_condition_and_thread): Minor reformatting.
550 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
552 * NEWS (show auto-load scripts-directory): Add forgotten command.
554 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
556 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
559 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
561 * amd64-tdep.c: Include features/i386/x32.c and
562 features/i386/x32-avx.c.
563 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
564 initialize_tdesc_x32_avx.
566 2012-05-14 Stan Shebs <stan@codesourcery.com>
569 * breakpoint.h (enum bptype): New type bp_dprintf.
570 (struct breakpoint): New field extra_string.
571 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
572 (create_breakpoint): Add extra_string arg.
573 * breakpoint.c (dprintf_breakpoint_ops): New.
574 (is_breakpoint): Add bp_dprintf.
575 (bpstat_what): Add dprintf case.
576 (bptype_string): Ditto.
577 (print_one_breakpoint_location): Ditto.
578 (init_bp_location): Ditto.
579 (bkpt_print_mention): Ditto.
580 (dprintf_style_enums): New array.
581 (dprintf_style): New global.
582 (dprintf_function): New global.
583 (dprintf_channel): New global.
584 (update_dprintf_command_list): New function.
585 (update_dprintf_commands): New function.
586 (init_breakpoint_sal): Add extra_string argument, handle it.
587 (create_breakpoint_sal): Add extra_string argument.
588 (create_breakpoints_sal): Add extra_string argument, update callers.
589 (find_condition_and_thread): Add extra argument.
590 (create_breakpoint): Add extra_string argument, record it.
591 (dprintf_command): New function.
592 (break_command_1): Add arg to create_breakpoint call.
593 (handle_gnu_v3_exceptions): Ditto.
594 (trace_command): Ditto.
595 (ftrace_command): Ditto.
596 (strace_command): Ditto.
597 (bkpt_print_mention): Add dprintf case.
598 (create_breakpoint_sal_default): Add extra_string argument.
599 (_initialize_breakpoint): Add new commands.
600 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
601 * python/py-breakpoint.c (bppy_init): Ditto.
602 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
604 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
606 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
608 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
610 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
613 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
615 Add a new function gdb.find_pc_line to the Python API.
616 * NEWS (Python Scripting): Add entry about the new function.
617 * python/python.c (gdbpy_find_pc_line): New function which
618 implements gdb.find_pc_line.
619 (GdbMethods): Add entry for the new function.
621 2012-05-12 Pedro Alves <palves@redhat.com>
623 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
624 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
626 2012-05-12 Eli Zaretskii <eliz@gnu.org>
628 * inferior.c: Include completer.h
629 (initialize_inferiors): Set completer of add-inferior to
632 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
634 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
635 gdbarch_ptr_bit for x32 core dump.
637 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
639 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
640 and features/i386/x32-avx-linux.c.
642 2012-05-11 Stan Shebs <stan@codesourcery.com>
643 Kwok Cheung Yeung <kcy@codesourcery.com>
645 * NEWS: Describe new info os commands.
646 * common/linux-osdata.c (PID_T, TIME_T): Define.
647 (MAX_PID_T_STRLEN): New.
648 (linux_common_core_of_thread): Add comment. Change to use PID_T and
650 (command_from_pid): Add comment. Change to use PID_T.
651 (commandline_from_pid): Change to use PID_T.
652 (user_from_pid): Add comment.
653 (get_process_owner): Add comment. Change to use PID_T and
655 (get_number_of_cpu_cores): Add comment.
656 (get_cores_used_by_process): Add comment. Change to use PID_T and
658 (linux_xfer_osdata_processes): Change to use PID_T and
660 (compare_processes): New function.
661 (linux_xfer_osdata_processgroups): New function.
662 (linux_xfer_osdata_threads): Change to use PID_T.
663 (linux_xfer_osdata_fds): New function.
664 (format_socket_state, print_sockets): New functions.
665 (union socket_addr): New union.
666 (linux_xfer_osdata_isockets): New function.
667 (time_from_time_t, group_from_gid): New functions.
668 (linux_xfer_osdata_shm): New function.
669 (linux_xfer_osdata_sem): New function.
670 (linux_xfer_osdata_msg): New function.
671 (linux_xfer_osdata_modules): New function.
672 (osdata_table): Add new entries.
673 * common/buffer.c (buffer_xml_printf): Add support for long and
674 long long format specifiers.
676 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
678 * amd64-linux-tdep.h (tdesc_x32_linux): New.
679 (tdesc_x32_avx_linux): Likewise.
681 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
683 Implement multi-component --with-auto-load-dir.
684 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
686 (--with-auto-load-safe-path): Update the default value description.
687 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
689 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
690 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
691 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
692 (_initialize_auto_load): Initialize also auto_load_dir. Install new
693 "set auto-load scripts-directory".
694 * config.in: Regenerate.
695 * configure: Regenerate.
696 * configure.ac (--with-auto-load-dir): New configure option.
697 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
699 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
701 Provide $ddir substitution for --with-auto-load-safe-path.
702 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
704 * auto-load.c: Include observer.h.
705 (auto_load_safe_path_vec_update): Call substitute_path_component for
706 each component. New variable ddir_subst.
707 (auto_load_gdb_datadir_changed): New function.
708 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
709 AUTO_LOAD_SAFE_PATH. New comment.
710 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
711 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
712 * config.in: Regenerate.
713 * configure: Regenerate.
714 * configure.ac (--auto-load-safe-path): Rename
715 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
716 GDB_DATADIR/auto-load.
717 * defs.h (substitute_path_component): New declaration.
718 * top.c: Include observer.h.
719 (set_gdb_datadir): New function.
720 (init_main): Install it for "set data-directory".
721 * utils.c (substitute_path_component): New function.
723 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
725 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
726 * auto-load.c (auto_load_objfile_script): Remove check for NULL
727 DEBUG_FILE_DIRECTORY. Handle multiple components of
728 DEBUG_FILE_DIRECTORY.
730 2012-05-10 Tom Tromey <tromey@redhat.com>
732 * dwarf2read.c (recursively_write_psymbols): New function.
733 (write_psymtabs_to_index): Use it.
735 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
737 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
738 (load_partial_comp_unit): Update.
739 (queue_comp_unit): Add argument 'pretend_language'.
740 (process_queue): Update.
741 (psymtab_to_symtab_1): Skip dependencies that have a user.
742 (load_partial_comp_unit_reader): Give meaning to the 'data'
744 (load_full_comp_unit): Add 'pretend_language' argument.
745 (process_full_comp_unit): Add 'pretend_language' argument. Set
747 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
749 (maybe_queue_comp_unit): Add 'pretend_language' argument.
750 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
752 (prepare_one_comp_unit): Add 'pretend_language' argument.
754 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
755 (struct dwarf2_per_objfile) <just_read_cus>: New field.
756 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
757 (dw2_do_instantiate_symtab): Check whether symtab was read in
759 (dw2_instantiate_symtab): Add assertion. Call
761 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
762 (partial_symtab_p): New typedef.
763 (set_partial_user): New function.
764 (dwarf2_build_psymtabs_hard): Use set_partial_user.
765 (scan_partial_symbols): Add imported CU to imported_symtabs.
766 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
767 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
768 (get_symtab, recursively_compute_inclusions)
769 (compute_symtab_includes, process_cu_includes)
770 (process_imported_unit_die): New functions.
771 (process_die) <DW_TAG_imported_unit>: New case.
772 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
774 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
776 (struct partial_die_info) <locdesc>: Remove.
778 (process_psymtab_comp_unit): Add 'read_partial' argument.
780 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
781 (scan_partial_symbols): Handle DW_TAG_imported_unit.
782 (add_partial_symbol): Update.
783 (process_die): Handle DW_TAG_partial_unit.
784 (read_file_scope): Update comment.
785 (load_partial_dies): Handle DW_TAG_imported_unit.
786 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
787 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
789 2012-05-10 Tom Tromey <tromey@redhat.com>
791 * cc-with-dwz.sh: New file.
793 2012-05-10 Tom Tromey <tromey@redhat.com>
795 * symtab.h (struct symtab) <includes, user>: New fields.
796 * block.h (struct block_iterator) <d, idx, which>: New fields.
797 * block.c (initialize_block_iterator, find_iterator_symtab)
798 (block_iterator_step, block_iter_name_step)
799 (block_iter_match_step): New functions.
800 (block_iterator_first, block_iterator_next)
801 (block_iter_name_first, block_iter_name_next)
802 (block_iter_match_first, block_iter_match_next): Rewrite.
803 (get_block_symtab): New function.
805 2012-05-10 Tom Tromey <tromey@redhat.com>
807 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
809 * jit.c (finalize_symtab): Use allocate_global_block,
811 * buildsym.c (finish_block_internal): New function, from old
813 (finish_block): Rewrite.
814 (end_symtab): Use finish_block_internal, set_block_symtab.
815 * block.h (struct global_block): New.
816 (allocate_global_block, set_block_symtab): Declare.
817 * block.c (allocate_global_block, set_block_symtab): New
820 2012-05-10 Tom Tromey <tromey@redhat.com>
822 * psymtab.c (partial_map_expand_apply): Add assertion.
823 (partial_map_symtabs_matching_filename): Skip included psymtabs.
824 (psymtab_to_symtab): Find unshared psymtab.
825 (dump_psymtab): Print including psymtabs.
826 (recursively_search_psymtabs): New function.
827 (expand_symtabs_matching_via_partial): Use it.
828 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
830 (enum psymtab_search_status): New.
832 2012-05-10 Tom Tromey <tromey@redhat.com>
834 * tracepoint.c (scope_info): Update.
835 * symtab.c (lookup_block_symbol, iterate_over_symbols)
836 (find_pc_sect_symtab, search_symbols)
837 (default_make_symbol_completion_list_break_on)
838 (make_file_symbol_completion_list): Update.
839 * symmisc.c (dump_symtab_1): Update.
840 * stack.c (print_frame_args, iterate_over_block_locals)
841 (print_frame_labels, iterate_over_block_arg_vars): Update.
842 * python/py-block.c (block_object) <dict>: Remove.
846 (blpy_block_syms_iternext): Update.
847 * psymtab.c (map_block): Use block iterators.
848 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
849 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
850 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
851 * infrun.c (check_exception_resume): Update.
852 * cp-support.c (make_symbol_overload_list_block): Update.
853 * coffread.c (patch_opaque_types): Update.
854 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
855 * block.h (struct block_iterator): New.
856 (block_iterator_first, block_iterator_next, block_iter_name_first)
857 (block_iter_name_next, block_iter_match_first)
858 (block_iter_match_next): Declare.
859 (ALL_BLOCK_SYMBOLS): Redefine.
860 * block.c (block_iterator_first, block_iterator_next)
861 (block_iter_name_first, block_iter_name_next)
862 (block_iter_match_first, block_iter_match_next): New functions.
863 * ada-lang.c (ada_add_block_symbols)
864 (ada_make_symbol_completion_list): Use block iterator.
866 2012-05-10 Tom Tromey <tromey@redhat.com>
868 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
869 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
870 (lookup_partial_symbol, find_last_source_symtab_from_partial)
871 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
872 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
875 2012-05-10 Joel Brobecker <brobecker@adacore.com>
877 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
878 print-file-var-lib2.c, print-file-var-main.c and
879 print-file-var.exp (located in gdb/testsuite/gdb.base).
881 2012-05-10 Joel Brobecker <brobecker@adacore.com>
883 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
884 try locating the symbol in the symbol's own objfile first, before
885 extending the search to all objfiles.
886 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
887 out of lookup_symbol_aux_symtabs.
888 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
889 Replace extracted-out code by call to lookup_symbol_aux_objfile.
890 Do not search EXCLUDE_OBJFILE.
891 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
892 (lookup_symbol_global): Search for matches in the block's objfile
893 first, before searching all other objfiles.
895 2012-05-10 Tristan Gingold <gingold@adacore.com>
897 * printcmd.c (set_command): Add pre/post inc/dec.
899 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
901 * gdb.1: Document -ex option.
903 2012-05-09 Joel Brobecker <brobecker@adacore.com>
905 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
906 * inferior.h (AT_SYMBOL): Delete.
908 2012-05-09 Joel Brobecker <brobecker@adacore.com>
910 * mips-tdep.c (mips_push_dummy_code): New function.
911 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
912 ON_STACK and install mips_push_dummy_code as our gdbarch
913 push_dummy_code routine.
915 2012-05-09 Pedro Alves <palves@redhat.com>
917 * target.c (set_maintenance_target_async_permitted): Rename to ...
918 (set_target_async_command): ... this.
919 (show_maintenance_target_async_permitted): Rename to ...
920 (show_target_async_command): ... this.
921 (initialize_targets): Adjust.
923 2012-05-08 Doug Evans <dje@google.com>
925 * go-exp.y (classify_name): Add missing assignment of fields of
928 2012-05-08 Eli Zaretskii <eliz@gnu.org>
930 Display the ">" prompt in interactive mode while reading canned
931 commands, even when the current interpreter is MI.
933 * interps.c (interp_set_temp): New function.
935 * interps.h (interp_set_temp): Add prototype.
937 * cli/cli-script.c (restore_interp): New cleanup function.
938 (read_command_lines): Temporarily override the current interpreter
939 with CLI and arrange for restoring the original one.
941 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
943 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
945 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
947 * probe.c (parse_probes): Move conditional to check for
948 debuginfo files from here...
949 * stap-probe.c (stap_get_probes): ... to here.
951 2012-05-07 Mark Kettenis <kettenis@gnu.org>
952 H.J. Lu <hongjiu.lu@intel.com>
954 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
955 `movl %esp, %ebp' for the X32 ABI.
957 2012-05-07 Tom Tromey <tromey@redhat.com>
959 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
961 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
962 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
963 (dwarf_stack_op_name): Remove.
964 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
965 (decode_locdesc): Use get_DW_OP_name.
966 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
967 (dwarf2_compile_expr_to_ax): Likewise.
968 (disassemble_dwarf_expression): Likewise.
969 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
971 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
973 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
974 (sh_linux_sigtramp_cache): New function.
975 (sh_linux_sigreturn_init): New function.
976 (sh_linux_rt_sigreturn_init): New function.
977 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
979 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
981 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
982 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
983 (sh_linux_init_abi): Add init calls to register new tramp_frame
984 definitions under 32-bit SH, update comments.
986 2012-05-07 Pedro Alves <palves@redhat.com>
990 * amd64-linux-tdep.c: Include glibc-tdep.h.
991 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
992 gdbarch_skip_solib_resolver callback.
994 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
996 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
997 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
998 (show_auto_load_safe_path): Check any-directory by comparison with "/".
999 (add_auto_load_safe_path): Change the error message.
1000 (_initialize_auto_load): Change the "safe-path" help text.
1001 * configure: Regenerate
1002 * configure.ac (--without-auto-load-safe-path): Set
1003 WITH_AUTO_LOAD_SAFE_PATH to /.
1005 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
1007 * stap-probe.h: Do not include unecessary `probe.h'.
1009 2012-05-05 Alan Modra <amodra@gmail.com>
1011 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
1012 bfd_und_section_ptr.
1013 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
1014 and bfd_com_section_ptr.
1016 2012-05-04 Joel Brobecker <brobecker@adacore.com>
1018 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
1020 2012-05-04 Joel Brobecker <brobecker@adacore.com>
1022 * windows-nat.h (segment_register_p_ftype): New typedef.
1023 (windows_set_segment_register_p): Add declaration.
1024 * windows-nat.c (segment_register_p): New static global.
1025 (windows_set_segment_register_p): New function.
1026 (do_windows_fetch_inferior_registers): Add special handling
1027 for segment registers.
1028 * amd64-windows-nat.c: #include "amd64-tdep.h".
1029 (amd64_windows_segment_register_p): New function.
1030 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
1031 * i386-windows-nat.c: #include "i386-tdep.h".
1032 (i386_windows_segment_register_p): New function.
1033 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
1035 2012-05-04 Tristan Gingold <gingold@adacore.com>
1037 * printcmd.c (set_command): Emit a warning if the expression is not
1040 2012-05-03 Joel Brobecker <brobecker@adacore.com>
1042 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
1045 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
1047 * stap-probe.c (stap_is_operator): Change declaration.
1048 (stap_get_opcode): Change return value.
1049 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
1050 `stap_parse_argument_1'.
1052 2012-05-03 Pedro Alves <pedro@codesourcery.com>
1054 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
1057 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
1059 Add two new methods global_block and static_block to gdb.Symtab
1061 * NEWS (Python scripting): Add entry about the new methods.
1062 * python/py-symtab.c (stpy_global_block): New function which
1063 implements the gdb.Symtab.global_block() method.
1064 (stpy_static_block): New function which implements the
1065 gdb.Symtab.static_block() method.
1066 (symtab_object_methods): Add entries for the two new methods.
1068 2012-05-03 Doug Evans <dje@google.com>
1070 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
1073 2012-05-03 Yao Qi <yao@codesourcery.com>
1075 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
1077 (i386_process_record): Ditto.
1079 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1081 * infcall.c (unwind_on_signal_p): Make static.
1083 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1085 * sol-thread.c (solaris_pid_to_str): Make static.
1086 (_initialize_sol_thread): Add prototype.
1088 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1090 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
1092 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
1094 * MAINTAINERS: Remove myself.
1096 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1098 Fix --without-auto-load-safe-path for MS-Windows host platform.
1099 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
1101 2012-05-02 Eli Zaretskii <eliz@gnu.org>
1103 * gdb_curses.h: Undefine KEY_EVENT before including curses
1104 headers. Move "#undef MOUSE_MOVED" before any curses header
1107 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
1109 * features/i386/i386-mmx-linux.c: Regenerate.
1110 * features/rs6000/powerpc-32.c: Likewise.
1111 * features/rs6000/powerpc-32l.c: Likewise.
1112 * features/rs6000/powerpc-403.c: Likewise.
1113 * features/rs6000/powerpc-403gc.c: Likewise.
1114 * features/rs6000/powerpc-405.c: Likewise.
1115 * features/rs6000/powerpc-505.c: Likewise.
1116 * features/rs6000/powerpc-601.c: Likewise.
1117 * features/rs6000/powerpc-602.c: Likewise.
1118 * features/rs6000/powerpc-603.c: Likewise.
1119 * features/rs6000/powerpc-604.c: Likewise.
1120 * features/rs6000/powerpc-64.c: Likewise.
1121 * features/rs6000/powerpc-64l.c: Likewise.
1122 * features/rs6000/powerpc-750.c: Likewise.
1123 * features/rs6000/powerpc-860.c: Likewise.
1124 * features/rs6000/powerpc-e500.c: Likewise.
1125 * features/rs6000/powerpc-e500l.c: Likewise.
1126 * features/rs6000/powerpc-isa205-32l.c: Likewise.
1127 * features/rs6000/powerpc-isa205-64l.c: Likewise.
1128 * features/rs6000/rs6000.c: Likewise.
1130 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
1132 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
1134 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
1135 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
1136 (stap_parse_argument) <e>: Likewise.
1137 (handle_stap_probe) <byte_order>: Likewise.
1139 2012-04-30 Doug Evans <dje@google.com>
1141 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
1142 init_and_read_dies_worker. All callers updated.
1143 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
1144 replaced with init_cutu_and_read_dies.
1145 (load_partial_comp_unit): Pass 1 for use_existing_cu.
1146 (find_partial_die): Remove FIXME. Don't free current CU.
1148 2012-04-30 Sterling Augustine <saugustine@google.com>
1150 * contrib: New directory.
1151 * contrib/test_pubnames_and_indexes.py: New file.
1153 2012-04-30 Doug Evans <dje@google.com>
1155 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
1156 All callers updated.
1157 (init_cu_die_reader): Verify the section is non-empty.
1158 (dwarf_decode_line_header): Don't dereference section->asection
1159 until we know the section is present.
1161 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
1163 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
1166 2012-04-29 Yao Qi <yao@codesourcery.com>
1168 * gdb-code-style.el: New hook gdb-markup-hook
1169 and gdb-comment-hook.
1171 2012-04-28 Doug Evans <dje@google.com>
1173 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
1174 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
1176 * symfile.h (dwarf2_debug_sections): New member addr.
1177 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
1178 (ctx_no_get_addr_index): New function.
1179 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
1180 (ctx_no_get_addr_index): Declare.
1181 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
1182 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
1183 (dwarf_expr_ctx_funcs): Update.
1184 (needs_get_addr_index): New function.
1185 (needs_frame_ctx_funcs): Update.
1186 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
1187 * dwarf2read.c: #include "gdbcore.h".
1188 (dwarf2_per_objfile): New members addr, dwo_files.
1189 (dwarf2_elf_names): Add entry for addr.
1190 (struct dwo_section_names): New type.
1191 (dwo_section_names): New static global.
1192 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
1193 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
1194 old debug_types_section member updated to use this.
1195 Rename member debug_types_section to info_or_types_section,
1197 (signatured_type): Rename member type_offset to type_offset_in_tu,
1198 all uses updated. New member type_offset_in_section.
1199 (struct dwo_sections): New type.
1200 (struct dwo_unit): New type.
1201 (struct dwo_file): New type.
1202 (die_reader_specs): New member dwo_file.
1203 (dwarf2_locate_sections): Watch for .debug_addr.
1204 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
1205 (dwarf2_read_section): Get bfd of section from bfd's asection,
1207 (create_cus_from_index): Initialize the_cu->info_or_types_section.
1208 (create_signatured_type_table_from_index): Initialize
1209 sig_type->info_or_types_section.
1210 (dw2_get_file_names): Statement lists for type units with DWO files
1211 live in the DWO file.
1212 (create_debug_types_hash_table): New function.
1213 (create_all_type_units): Rewrite.
1214 (init_cu_die_reader): New arg dwo_file, all callers updated.
1215 (init_and_read_dies_worker): Get section from
1216 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
1217 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
1218 continue reading the CU/TU from there.
1219 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
1220 updated. Get section from this_cu->info_or_types_section.
1221 (create_all_comp_units): Initialize this_cu->info_or_types_section.
1222 (skip_one_die): New cases DW_FORM_GNU_addr_index,
1223 DW_FORM_GNU_str_index.
1224 (hash_dwo_file, eq_dwo_file): New functions.
1225 (allocate_dwo_file_hash_table): New function.
1226 (hash_dwo_unit, eq_dwo_unit): New functions.
1227 (allocate_dwo_unit_table): New function.
1228 (dwarf2_locate_dwo_sections): New function.
1229 (struct create_dwo_info_table_data): New type.
1230 (create_debug_info_hash_table_reader): New function.
1231 (create_debug_info_hash_table): New function.
1232 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
1233 (lookup_dwo_file): New function.
1234 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
1235 (free_dwo_file, free_dwo_file_cleanup): New functions.
1236 (free_dwo_file_from_slot, free_dwo_files): New functions.
1237 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
1238 (dwarf2_record_block_ranges): Ditto.
1239 (read_partial_die): Ditto.
1240 (process_enumeration_scope): Update to use type_offset_in_section.
1241 (read_full_die_1): New function.
1242 (read_full_die): Rewrite.
1243 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
1244 DW_FORM_GNU_str_index.
1245 (read_addr_index_1, read_addr_index): New functions.
1246 (read_addr_index_from_leb128): New function.
1247 (struct dwarf2_read_addr_index_data): New type.
1248 (dwarf2_read_addr_index_reader): New function.
1249 (dwarf2_read_addr_index): New function.
1250 (read_str_index): New function.
1251 (leb128_size): New function.
1252 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
1253 If processing a type unit from a DWO file, get the line section
1255 (var_decode_location): Watch for DW_OP_GNU_addr_index.
1256 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
1257 DW_FORM_GNU_str_index.
1258 (lookup_die_type): Check whether section offset of type's die is
1259 known before looking it up. Remove assert. Condition can
1260 legimately happen for inter-cu type references.
1261 (dwarf_attr_name): Handle Fission attributes.
1262 (dwarf_form_name): Handle Fission forms.
1263 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
1264 DW_FORM_GNU_str_index.
1265 (follow_die_sig): Update to use type_offset_in_section.
1266 (decode_locdesc): New case DW_OP_GNU_addr_index.
1267 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
1268 DW_FORM_GNU_str_index.
1269 (cu_debug_loc_section): New function.
1270 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
1271 (dwarf2_per_objfile_free): Unmap .debug_addr section.
1272 Free DWO files if present.
1273 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
1275 Refactor DIE reading.
1276 * dwarf2read.c (dwarf2_per_objfile): Replace members
1277 debug_info_type_hash and debug_types_type_hash with die_type_hash.
1278 (die_reader_specs): New member "die_section". Temporarily make
1279 member "buffer" non-const, pending constifying all info_ptr uses.
1280 (die_reader_func_ftype): New typedef.
1281 (dw2_get_file_names_reader): New function.
1282 (dw2_get_file_names): Rewrite.
1283 (read_and_check_type_unit_head): Rename arg type_offset to
1285 (create_all_type_units): Improve debugging message.
1286 Improve dummy type unit check.
1287 (init_cu_die_reader): New arg "section". All callers updated.
1288 (init_and_read_dies_worker): New function.
1289 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
1290 (init_cutu_and_read_dies_no_follow): New function.
1291 (init_cutu_and_read_dies_simple): New function.
1292 (process_psymtab_comp_unit_reader): New function.
1293 (process_psymtab_comp_unit): Delete args section,
1294 is_debug_types_section. Rewrite. All callers updated.
1295 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
1296 All callers updated. Rewrite.
1297 (load_partial_comp_unit_reader): New function.
1298 (load_partial_comp_unit): Rewrite.
1299 (skip_children): New arg reader. Delete args buffer, cu.
1300 All callers updated.
1301 (skip_one_die): New arg reader. Delete args buffer, cu.
1302 All callers updated.
1303 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
1304 All callers updated.
1305 (load_full_comp_unit_reader): New function.
1306 (load_full_comp_unit): Rewrite.
1307 (read_comp_unit): Delete.
1308 (read_die_and_children_1): Delete, contents moved ...
1309 (read_die_and_children): ... here.
1310 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
1311 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
1312 All callers updated.
1313 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
1314 All callers updated.
1315 (find_partial_die): Rewrite load_all_dies support.
1316 (read_attribute_value): New arg reader. Delete args abfd, cu.
1317 All callers updated.
1318 (read_attribute): New arg reader. Delete args abfd, cu.
1319 All callers updated.
1320 (load_full_type_unit): Add assert.
1321 (read_signatured_type_reader): New function.
1322 (read_signatured_type): Rewrite.
1323 (free_stack_comp_unit): Remove call to age_cached_comp_units.
1324 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
1325 All callers updated. Set per_cu->cu = NULL after freeing it.
1326 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
1327 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
1328 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
1329 (set_die_type): Update.
1330 (get_die_type_at_offset): Update.
1331 (read_file_scope): Call prepare_one_comp_unit.
1332 (read_type_unit_scope): Ditto.
1333 (prepare_one_comp_unit): Set producer if present.
1335 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
1337 * probe.c (compile_rx_or_error): Silence ARI warning about missing
1338 gettext function on `error'.
1340 2012-04-27 Doug Evans <dje@google.com>
1342 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
1345 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
1346 Tom Tromey <tromey@redhat.com>
1348 * breakpoint.c (struct breakpoint_objfile_data)
1349 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
1350 <exception_probes>: New fields.
1351 (free_breakpoint_probes): New function.
1352 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
1353 `_Unwind_DebugHook'.
1354 (create_exception_master_breakpoint): Likewise.
1355 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
1356 * infrun.c: Including necessary header files for handling SystemTap
1358 (handle_inferior_event): Handling longjmp breakpoint and exceptions
1359 via SystemTap probes.
1360 (check_exception_resume): Remove `func' argument. Handle exception
1361 unwinding breakpoint set via a SystemTap probe.
1362 (insert_exception_resume_from_probe): New function.
1364 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
1365 Tom Tromey <tromey@redhat.com>
1366 Jan Kratochvil <jan.kratochvil@redhat.com>
1368 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
1369 (COMMON_OBS): Likewise.
1370 (HFILES_NO_SRCDIR): Add `probe'.
1371 * NEWS: Mention support for static and SystemTap probes.
1372 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
1373 SystemTap probes' arguments parser.
1374 * arm-linux-tdep.c: Including headers needed to perform the parsing
1375 of SystemTap probes' arguments.
1376 (arm_stap_is_single_operand): New function.
1377 (arm_stap_parse_special_token): Likewise.
1378 (arm_linux_init_abi): Initializing proper fields used by SystemTap
1379 probes' arguments parser.
1380 * ax-gdb.c (require_rvalue): Removing static declaration.
1381 (gen_expr): Likewise.
1382 * ax-gdb.h (gen_expr): Declaring function.
1383 (require_rvalue): Likewise.
1384 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
1385 (bkpt_probe_breakpoint_ops): New variable.
1386 (momentary_breakpoint_from_master): Set the `probe' value.
1387 (add_location_to_breakpoint): Likewise.
1388 (break_command_1): Using proper breakpoint_ops according to the
1389 argument passed by the user in the command line.
1390 (bkpt_probe_insert_location): New function.
1391 (bkpt_probe_remove_location): Likewise.
1392 (bkpt_probe_create_sals_from_address): Likewise.
1393 (bkpt_probe_decode_linespec): Likewise.
1394 (tracepoint_probe_create_sals_from_address): Likewise.
1395 (tracepoint_probe_decode_linespec): Likewise.
1396 (tracepoint_probe_breakpoint_ops): New variable.
1397 (trace_command): Using proper breakpoint_ops according to the
1398 argument passed by the user in the command line.
1399 (initialize_breakpoint_ops): Initializing breakpoint_ops for
1400 static probes on breakpoints and tracepoints.
1401 * breakpoint.h (struct bp_location) <probe>: New field.
1402 * cli-utils.c (skip_spaces_const): New function.
1403 (extract_arg): Likewise.
1404 * cli-utils.h (skip_spaces_const): Likewise.
1405 (extract_arg): Likewise.
1406 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
1407 * configure.ac: Append `stap-probe.o' to be generated when ELF
1409 * configure: Regenerate.
1410 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
1411 * elfread.c: Include `probe.h' and `arch-utils.h'.
1412 (probe_key): New variable.
1413 (elf_get_probes): New function.
1414 (elf_get_probe_argument_count): Likewise.
1415 (elf_evaluate_probe_argument): Likewise.
1416 (elf_compile_to_ax): Likewise.
1417 (elf_symfile_relocate_probe): Likewise.
1418 (stap_probe_key_free): Likewise.
1419 (elf_probe_fns): New variable.
1420 (elf_sym_fns): Add `sym_probe_fns' value.
1421 (elf_sym_fns_lazy_psyms): Likewise.
1422 (elf_sym_fns_gdb_index): Likewise.
1423 (_initialize_elfread): Initialize objfile cache for static
1425 * gdb_vecs.h (struct probe): New forward declaration.
1426 (probe_p): New VEC declaration.
1427 * gdbarch.c: Regenerate.
1428 * gdbarch.h: Regenerate.
1429 * gdbarch.sh (stap_integer_prefix): New variable.
1430 (stap_integer_suffix): Likewise.
1431 (stap_register_prefix): Likewise.
1432 (stap_register_suffix): Likewise.
1433 (stap_register_indirection_prefix): Likewise.
1434 (stap_register_indirection_suffix): Likewise.
1435 (stap_gdb_register_prefix): Likewise.
1436 (stap_gdb_register_suffix): Likewise.
1437 (stap_is_single_operand): New function.
1438 (stap_parse_special_token): Likewise.
1439 (struct stap_parse_info): Forward declaration.
1440 * i386-tdep.c: Including headers needed to perform the parsing
1441 of SystemTap probes' arguments.
1442 (i386_stap_is_single_operand): New function.
1443 (i386_stap_parse_special_token): Likewise.
1444 (i386_elf_init_abi): Initializing proper fields used by SystemTap
1445 probes' arguments parser.
1446 * i386-tdep.h (i386_stap_is_single_operand): New function.
1447 (i386_stap_parse_special_token): Likewise.
1448 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
1449 * mipsread.c (ecoff_sym_fns): Likewise.
1450 * objfiles.c (objfile_relocate1): Support relocation for static
1452 * parse.c (prefixify_expression): Remove static declaration.
1453 (initialize_expout): Likewise.
1454 (reallocate_expout): Likewise.
1455 * parser-defs.h (initialize_expout): Declare function.
1456 (reallocate_expout): Likewise.
1457 (prefixify_expression): Likewise.
1458 * ppc-linux-tdep.c: Including headers needed to perform the parsing
1459 of SystemTap probes' arguments.
1460 (ppc_stap_is_single_operand): New function.
1461 (ppc_stap_parse_special_token): Likewise.
1462 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
1463 probes' arguments parser.
1464 * probe.c: New file, for generic statically defined probe support.
1465 * probe.h: Likewise.
1466 * s390-tdep.c: Including headers needed to perform the parsing of
1467 SystemTap probes' arguments.
1468 (s390_stap_is_single_operand): New function.
1469 (s390_gdbarch_init): Initializing proper fields used by SystemTap
1470 probes' arguments parser.
1471 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
1472 * stap-probe.c: New file, for SystemTap probe support.
1473 * stap-probe.h: Likewise.
1474 * symfile.h: Include `gdb_vecs.h'.
1475 (struct sym_probe_fns): New struct.
1476 (struct sym_fns) <sym_probe_fns>: New field.
1477 * symtab.c (init_sal): Initialize `probe' field.
1478 * symtab.h (struct probe): Forward declaration.
1479 (struct symtab_and_line) <probe>: New field.
1480 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
1482 (stop_tracing): Likewise.
1483 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
1485 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
1486 Tom Tromey <tromey@redhat.com>
1488 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
1489 and to compile agent expressions.
1490 * infrun.c (siginfo_make_value): New argument `ignore'.
1491 (siginfo_funcs): New struct.
1492 (_initialize_infrun): New argument when calling
1493 `create_internalvar_type_lazy'.
1494 * thread.c (thread_id_make_value): New argument `ignore'.
1495 (thread_funcs): New struct.
1496 (_initialize_thread): New argument when calling
1497 `create_internalvar_type_lazy'.
1498 * tracepoint.c (sdata_make_value): New argument `ignore'.
1499 (sdata_funcs): New struct.
1500 (_initialize_tracepoint): New argument when calling
1501 `create_internalvar_type_lazy'.
1502 * value.c (make_value): New struct.
1503 (create_internalvar_type_lazy): New argument `data'.
1504 (compile_internalvar_to_ax): New function.
1505 (value_of_internalvar): Properly handling `make_value' case.
1506 (clear_internalvar): Likewise.
1507 (show_convenience): Adding `TRY_CATCH' block.
1508 * value.h (internalvar_make_value): Delete, replace by...
1509 (struct internalvar_funcs): ... this.
1510 (create_internalvar_type_lazy) <fun>: Delete argument.
1511 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
1512 (compile_internalvar_to_ax): New function.
1513 * windows-tdep.c (tlb_make_value): New argument `ignore'.
1514 (tlb_funcs): New struct.
1515 (_initialize_windows_tdep): New argument when calling
1516 `create_internalvar_type_lazy'.
1518 2012-04-27 Mark Wielaard <mjw@redhat.com>
1520 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
1521 see whether it is an address or a constant offset from DW_AT_low_pc.
1522 (dwarf2_record_block_ranges): Likewise.
1523 (read_partial_die): Likewise.
1525 2012-04-26 Mark Wielaard <mjw@redhat.com>
1527 * MAINTAINERS (Write After Approval): Add myself to the list.
1529 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
1531 * proc-utils.h (proc_prettyprint_signalset): New prototype.
1532 (proc_prettyprint_signal): Likewise.
1533 (proc_prettyprint_faultset): Likewise.
1534 (proc_prettyprint_fault): Likewise.
1535 (proc_prettyprint_actionset): Likewise.
1536 (proc_prettyprint_flags): Move to new proc-flags.c section.
1537 (proc_prettyfprint_flags): New prototype.
1538 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
1539 (proc_syscall, proc_cursig): Likewise.
1540 (proc_set_kill_on_last_close): Likewise.
1541 (proc_unset_kill_on_last_close): Likewise.
1542 (proc_set_watchpoint): Make static.
1543 (proc_delete_dead_threads): Likewise.
1544 (procfs_set_watchpoint): Likewise.
1545 (_initialize_procfs): Add prototype.
1546 * proc-events.c: Include proc-utils.h.
1547 (init_syscall_table): Make static.
1548 * proc-api.c (_initialize_proc_api): Add prototype.
1549 * proc-flags.c: Include proc-utils.h.
1551 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
1553 * configure.ac: Add AC_ARG_PROGRAM.
1554 * configure: Regenerate.
1556 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1558 Fix DW_AT_lower_bound defaults for DWARF-4+.
1559 * dwarf2read.c (read_subrange_type): Remove initialization of low and
1560 high. New variable low_default_is_valid. Implement DWARF-4+
1561 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
1562 no default by the DWARF standard.
1564 2012-04-26 Maciej W. Rozycki <macro@mips.com>
1565 Maciej W. Rozycki <macro@codesourcery.com>
1567 * infrun.c (handle_inferior_event): Move the check for return
1568 trampolines ahead of the check for function trampolines.
1569 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
1570 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
1571 (mips_str_mips16_ret_stub): Likewise.
1572 (mips_str_call_fp_stub): Likewise.
1573 (mips_str_call_stub): Likewise.
1574 (mips_str_fn_stub): Likewise.
1575 (mips_str_pic): Likewise.
1576 (mips_in_frame_stub): New function.
1577 (mips_unwind_pc): Return the return address rather than the PC
1578 if the PC of an intermediate frame is inside a call thunk.
1579 (mips_is_stub_suffix): New function.
1580 (mips_is_stub_mode): Likewise.
1581 (mips_get_mips16_fn_stub_pc): Likewise.
1582 (mips_skip_mips16_trampoline_code): Update to handle all the
1583 currently generated stub types. Don't recurse into __fn_stub
1584 thunks. Remove heuristics to handle stubs beyond etext/_etext.
1585 Use cooked register accesses.
1586 (mips_in_return_stub): Reintroduce function.
1587 (mips_skip_trampoline_code): Traverse trampolines recursively.
1588 (mips_gdbarch_init): Handle MIPS16 return trampolines.
1590 2012-04-26 Joel Brobecker <brobecker@adacore.com>
1594 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
1596 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
1597 * features/arm-with-m-vfp-d16.xml: New file. Describes
1598 Cortex-M with VFPv4-sp-d16 FPU register layout.
1599 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
1600 * features/arm-with-m-vfp-d16.c: New. Generated from above.
1601 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
1602 (arm-register_g_packet_guesses): Add vfp-d16 guess.
1603 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
1605 2012-04-25 Doug Evans <dje@google.com>
1607 * cli/cli-decode.c (print_doc_line): Use stream instead of
1610 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1612 * features/arm-with-iwmmxt.c: Regenerate.
1613 * features/arm-with-m-fpa-layout.c: Likewise.
1614 * features/arm-with-m.c: Likewise.
1615 * features/arm-with-neon.c: Likewise.
1616 * features/arm-with-vfpv2.c: Likewise.
1617 * features/arm-with-vfpv3.c: Likewise.
1618 * features/mips-dsp-linux.c: Likewise.
1619 * features/mips-linux.c: Likewise.
1620 * features/mips64-dsp-linux.c: Likewise.
1621 * features/mips64-linux.c: Likewise.
1622 * features/s390-linux32.c: Likewise.
1623 * features/s390-linux32v1.c: Likewise.
1624 * features/s390-linux32v2.c: Likewise.
1625 * features/s390-linux64.c: Likewise.
1626 * features/s390-linux64v1.c: Likewise.
1627 * features/s390-linux64v2.c: Likewise.
1628 * features/s390x-linux64.c: Likewise.
1629 * features/s390x-linux64v1.c: Likewise.
1630 * features/s390x-linux64v2.c: Likewise.
1631 * features/tic6x-c62x-linux.c: Likewise.
1632 * features/tic6x-c62x.c: Likewise.
1633 * features/tic6x-c64x-linux.c: Likewise.
1634 * features/tic6x-c64x.c: Likewise.
1635 * features/tic6x-c64xp-linux.c: Likewise.
1636 * features/tic6x-c64xp.c: Likewise.
1637 * target-descriptions.c: Only generate `field_type' and `type'
1638 variables when needed.
1640 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
1642 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
1644 2012-04-25 Doug Evans <dje@google.com>
1646 Initial pass at Go language support.
1648 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
1650 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
1651 (YYFILES): Add go-exp.c.
1652 (YYOBJ): Add go-exp.o.
1653 (local-maintainer-clean): Delete go-exp.c.
1654 * defs.h (enum language): Add language_go.
1655 * dwarf2read.c: #include "go-lang.h".
1656 (fixup_go_packaging): New function.
1657 (process_full_comp_unit): Call it when processing Go CUs.
1658 (dwarf2_physname): Add Go support.
1659 (read_file_scope): Handle missing language spec for GNU Go.
1660 (set_cu_language): Handle DW_LANG_Go.
1661 * go-exp.y: New file.
1662 * go-lang.h: New file.
1663 * go-lang.c: New file.
1664 * go-typeprint.c: New file.
1665 * go-valprint.c: New file.
1666 * symtab.c: #include "go-lang.h".
1667 (symbol_set_language): Handle language_go.
1668 (symbol_find_demangled_name, symbol_set_names): Ditto.
1669 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
1671 2012-04-24 Jim Meyering <meyering@redhat.com>
1673 avoid a few strncpy-induced buffer overruns
1674 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
1675 fname and psargs before trying to concatenate.
1676 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
1677 "name" before applying strchr.
1679 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
1681 * CONTRIBUTE: Use unified diff instead of context diff when
1684 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
1686 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
1687 code. Handle JR.HB correctly.
1689 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
1692 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
1693 with the other MIPS16 helpers.
1695 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1697 * observer.sh: Conditionally declare `args', thus cleaning up
1698 unused instances of this variable.
1700 2012-04-24 Yao Qi <yao@codesourcery.com>
1702 Revert this patch to allow breakpoint always-inserted
1704 2011-12-05 Pedro Alves <pedro@codesourcery.com>
1705 * breakpoint.c: Include record.h.
1706 (breakpoints_always_inserted_mode): Return false when the record
1709 * breakpoint.c (iterate_over_bp_locations): New.
1710 * breakpoint.h: Declare.
1711 New typedef walk_bp_location_callback.
1712 * record.c (record_open): Call record_init_record_breakpoints.
1713 (record_sync_record_breakpoints): New.
1714 (record_init_record_breakpoints): New.
1715 * NEWS: Mention supporting breakpoint always-inserted mode in
1718 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
1720 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
1723 2012-04-24 Yao Qi <yao@codesourcery.com>
1725 * breakpoint.c (ep_is_catchpoint): Renamed to ...
1726 (is_catchpoint): ... it.
1727 (print_one_breakpoint_location): Caller update.
1728 * breakpoint.h: Update declaration.
1730 2012-04-23 David S. Miller <davem@davemloft.net>
1732 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
1734 2012-04-23 Tom Tromey <tromey@redhat.com>
1736 * buildsym.c (add_free_pendings): Remove.
1737 * buildsym.h (add_free_pendings): Remove.
1739 2012-04-23 Doug Evans <dje@google.com>
1741 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
1742 attr.u.unsnd instead of attr.u.addr.
1743 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
1744 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
1746 (dump_die_shallow): Update cases DW_FORM_ref_addr,
1747 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
1749 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
1751 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
1753 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
1754 (mips_o32_return_value): Likewise.
1755 (mips_o64_return_value): Likewise.
1757 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
1759 * ada-lang.c (ada_evaluate_subexp): Add cases for
1760 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
1761 their treatment in eval.c.
1763 2012-04-21 David S. Miller <davem@davemloft.net>
1765 * sparc-tdep.c (X_DISP10): Define.
1766 (sparc_analyze_control_transfer): Handle compare-and-branch.
1768 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
1770 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
1771 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
1773 2012-04-20 Nigel Stephens <nigel@mips.com>
1774 Maciej W. Rozycki <macro@codesourcery.com>
1776 * mips-tdep.c (mips_float_register_p): New function.
1777 (mips_convert_register_float_case_p): Use mips_float_register_p.
1778 (mips_register_type): Likewise.
1779 (mips_print_register): Likewise.
1780 (print_gp_register_row): Likewise.
1781 (mips_print_registers_info): Likewise.
1783 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
1785 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
1788 2012-04-20 Andrew Pinski <apinski@cavium.com>
1790 * MAINTAINERS (Write After Approval): Add myself to the list.
1792 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
1794 * MAINTAINERS: Update my e-mail address.
1796 2012-04-20 Pedro Alves <palves@redhat.com>
1798 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
1800 * configure: Regenerate.
1802 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
1804 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
1806 * gdb_vecs.h: Declare `const_char_ptr' VEC.
1808 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1810 Fix compilation compatibility with python-2.4
1811 * python/py-type.c (convert_field): Cast ADDRSTRING for
1812 PyObject_SetAttrString as non-const. New comment.
1814 2012-04-19 Tom Tromey <tromey@redhat.com>
1816 * top.c (quit_target): Use all_cleanups.
1817 * main.c (captured_command_loop): Use all_cleanups.
1818 * exceptions.c (throw_exception): Use all_cleanups.
1820 2012-04-19 Pedro Alves <palves@redhat.com>
1822 * Makefile.in (GNULIB_BUILDDIR): New.
1823 (LIBGNU, INCGNU, GNULIB_H): Adjust.
1824 (SUBDIRS): Add $(GNULIB_BUILDDIR).
1825 (CLEANDIRS). Remove gnulib/import.
1826 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
1828 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
1829 (gnulib/import/Makefile): Replace gnulib/import with
1830 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
1831 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
1832 (aclocal_m4_deps): Remove the gnulib dependencies. Add
1833 acx_configure_dir.m4.
1834 * acinclude.m4: Include acx_configure_dir.m4.
1835 * acx_configure_dir.m4: New file.
1836 * aclocal.m4: Regenerate.
1837 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
1838 calls. Configure gnulib using ACX_CONFIGURE_DIR.
1839 (GNULIB): New variable.
1840 (GNULIB_STDINT_H): Adjust.
1841 (AC_OUTPUT): Don't output gnulib/Makefile.
1842 * gdb/defs.h: Include build-gnulib/config.h.
1843 * aclocal.m4: Regenerate.
1844 * config.in: Regenerate.
1845 * configure: Regenerate.
1847 * gnulib/Makefile.in: New file.
1848 * gnulib/configure.ac: New file.
1849 * gnulib/aclocal.m4: New file.
1850 * gnulib/config.in: New file.
1851 * gnulib/configure: New file.
1852 * gnulib/: Re-run gnulib-tool to adjust.
1854 2012-04-19 Doug Evans <dje@google.com>
1856 * cleanups.h (struct cleanup): Move to cleanups.c.
1857 (make_cleanup_dtor_ftype): New typedef.
1858 (make_cleanup_dtor): Use it.
1859 (ALL_CLEANUPS): Replace with ...
1860 (all_cleanups): ... this. Declare. All uses updated.
1861 * cleanups.c: #include "gdb_assert.h".
1862 (sentinel_cleanup): New static global.
1863 (SENTINEL_CLEANUP): Define.
1864 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
1865 (make_my_cleanup2): Assert result is non-NULL.
1866 (all_cleanups): New function.
1867 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
1870 2012-04-19 Pedro Alves <palves@redhat.com>
1872 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
1873 Adjust paths to gnulib imported files.
1875 2012-04-19 Pedro Alves <palves@redhat.com>
1877 * gnulib/: Move whole directory ...
1878 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
1879 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
1880 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
1881 (aclocal_m4_deps): Adjust.
1882 * aclocal.m4: Regenerate.
1883 * configure: Regenerate.
1884 * configure.ac: Adjust AC_OUTPUT output.
1886 2012-04-19 Yao Qi <yao@codesourcery.com>
1888 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
1890 * vec.c: Move it ...
1891 * common/vec.c: ... here.
1892 * vec.h: Move it ...
1893 * common/vec.h: ... here.
1895 2012-04-19 Yao Qi <yao@codesourcery.com>
1897 * gdb-code-style.el: New.
1899 2012-04-18 Pedro Alves <palves@redhat.com>
1901 Update gnulib from latest git.
1902 (639ea5ae15e39fe48d43e04864b2997301e4b969)
1904 * gnulib/Makefile.am: Update.
1905 * gnulib/dummy.c: Update.
1906 * gnulib/extra/arg-nonnull.h: Update.
1907 * gnulib/extra/c++defs.h: Update.
1908 * gnulib/extra/update-copyright: Update.
1909 * gnulib/extra/warn-on-use.h: Update.
1910 * gnulib/inttypes.in.h: Update.
1911 * gnulib/m4/00gnulib.m4: Update.
1912 * gnulib/m4/extensions.m4: Update.
1913 * gnulib/m4/gnulib-cache.m4: Update.
1914 * gnulib/m4/gnulib-common.m4: Update.
1915 * gnulib/m4/gnulib-comp.m4: Update.
1916 * gnulib/m4/gnulib-tool.m4: Update.
1917 * gnulib/m4/include_next.m4: Update.
1918 * gnulib/m4/inttypes-pri.m4: Update.
1919 * gnulib/m4/inttypes.m4: Update.
1920 * gnulib/m4/longlong.m4: Update.
1921 * gnulib/m4/memchr.m4: Update.
1922 * gnulib/m4/memmem.m4: Update.
1923 * gnulib/m4/mmap-anon.m4: Update.
1924 * gnulib/m4/multiarch.m4: Update.
1925 * gnulib/m4/onceonly.m4: Update.
1926 * gnulib/m4/stddef_h.m4: Update.
1927 * gnulib/m4/stdint.m4: Update.
1928 * gnulib/m4/string_h.m4: Update.
1929 * gnulib/m4/warn-on-use.m4: Update.
1930 * gnulib/m4/wchar_h.m4: Update.
1931 * gnulib/m4/wchar_t.m4: Update.
1932 * gnulib/m4/wint_t.m4: Update.
1933 * gnulib/memchr.c: Update.
1934 * gnulib/memmem.c: Update.
1935 * gnulib/stddef.in.h: Update.
1936 * gnulib/stdint.in.h: Update.
1937 * gnulib/str-two-way.h: Update.
1938 * gnulib/string.in.h: Update.
1939 * gnulib/wchar.in.h: Update.
1941 * gnulib/extra/arg-nonnull.h: Delete.
1942 * gnulib/extra/c++defs.h: Delete.
1943 * gnulib/extra/warn-on-use.h: Delete.
1944 * gnulib/m4/wchar_h.m4: Delete.
1945 * gnulib/m4/wint_t.m4: Delete.
1946 * gnulib/wchar.in.h: Delete.
1948 * gnulib/extra/snippets/arg-nonnull.h: New.
1949 * gnulib/extra/snippets/c++defs.h: New.
1950 * gnulib/extra/snippets/warn-on-use.h: New.
1952 * aclocal.m4: Regenerate.
1953 * config.in: Regenerate.
1954 * configure: Regenerate.
1955 * gnulib/Makefile.in: Regenerate.
1957 2012-04-18 Pedro Alves <palves@redhat.com>
1959 Reimport the update-copyright module from gnulib
1960 (250b80067c1e1d8faa0c42fb572f721975b929c5).
1962 * configure: Regenerate.
1963 * gnulib/Makefile.am: Update.
1964 * gnulib/Makefile.in: Regenerate.
1965 * gnulib/extra/update-copyright: Update.
1966 * gnulib/m4/gnulib-cache.m4: Update.
1967 * gnulib/m4/gnulib-comp.m4: Update.
1969 2012-04-18 Tristan Gingold <gingold@adacore.com>
1971 * configure.ac (aix): Put -lpthread into libs.
1972 * configure: Regenerate.
1974 2012-04-18 Tom Tromey <tromey@redhat.com>
1976 * linespec.c (convert_linespec_to_sals): Don't use
1978 (compare_msymbols): Arguments are minsym_and_objfile, not
1979 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
1981 2012-04-18 Pedro Alves <palves@redhat.com>
1983 Revert gnulib/ part of:
1984 2011-01-01 Joel Brobecker <brobecker@adacore.com>
1985 Copyright year update in most files (performed by copyright.sh).
1987 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1989 Fix 64-bit constants on 32-bit hosts.
1990 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
1991 from unsigned long to ULONGEST.
1992 (read_signed_leb128): Change declaration return type from long to
1994 (dwarf2_const_value_attr): Change declaration parameter value from long
1996 (dwarf2_compute_name): Change variable value from long to LONGEST.
1997 (read_unsigned_leb128): Change return type, variable result and some
1998 casts from unsigned long to ULONGEST.
1999 (read_signed_leb128): Change return type, variable result and some
2000 casts from long to LONGEST.
2001 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
2002 value from long to LONGEST.
2003 (dwarf2_const_value): Change variable value from long to LONGEST.
2004 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
2005 plongest and hex_string.
2006 * symtab.h (struct general_symbol_info): Change ivalue from long to
2007 LONGEST, remove the comment.
2008 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
2009 Change SYMBOL_VALUE format strings to use plongest and hex_string.
2011 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
2014 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
2015 * ada-lang.c (ada_discrete_type_high_bound)
2016 (ada_discrete_type_low_bound): Fix function comment. Use
2017 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2018 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
2019 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2020 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
2021 Use TYPE_FIELD_ENUMVAL.
2022 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
2023 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2024 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
2025 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
2027 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
2028 * dwarf2read.c (process_enumeration_scope): Likewise.
2029 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
2031 (class StructMainTypePrettyPrinter): Support also
2032 FIELD_LOC_KIND_ENUMVAL.
2033 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
2035 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2036 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
2037 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
2038 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
2040 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
2041 accommodate enumval.
2042 (struct call_site): Adjust loc_kind to accommodate enumval.
2043 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
2044 (TYPE_FIELD_ENUMVAL): New macros.
2045 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
2046 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
2048 * p-typeprint.c (pascal_type_print_base): Likewise.
2049 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
2051 * python/lib/gdb/types.py (make_enum_dict): Likewise.
2052 * python/py-type.c (convert_field): New variable addrstring. Use
2053 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2054 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
2055 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
2056 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
2058 * valprint.c (generic_val_print): Likewise.
2060 2012-04-17 Doug Evans <dje@google.com>
2062 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
2064 * dwarf2read.c: Whitespace fixes.
2065 (lookup_signatured_type): Tweak comment.
2066 (get_die_type_at_offset): Fix comment.
2068 2012-04-17 Joel Brobecker <brobecker@adacore.com>
2070 * xcoffread.c (xcoff_secnum_to_sections): New function.
2071 (secnum_to_section, secnum_to_bfd_section): Reimplement
2072 using xcoff_secnum_to_sections. Rename "secnum" parameter
2074 (RECORD_MINIMAL_SYMBOL): Delete.
2075 (record_minimal_symbol): New function.
2076 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
2077 by call to record_minimal_symbol and set misc_func_recorded
2078 to 1. Set last_csect_sec to the XCOFF section index instead
2079 of GDB's section_offset index. Update calls to
2080 prim_record_minimal_symbol_and_info to pass the BFD section
2083 2012-04-17 Joel Brobecker <brobecker@adacore.com>
2085 * xcoffread.c (read_xcoff_symtab): Delete variables
2086 last_csect_val and last_csect_sec and associated code.
2088 2012-04-17 Doug Evans <dje@google.com>
2090 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
2091 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2092 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
2093 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
2095 * cleanups.h: New file.
2096 * cleanups.c: New file.
2097 * Makefile.in (SFILES): Add cleanups.c.
2098 (HFILES_NO_SRCDIR): Add cleanups.h.
2099 (COMMON_OBS): Add cleanups.o.
2100 * defs.h (struct cleanup): Moved to cleanups.h.
2101 (do_cleanups,do_final_cleanups): Ditto.
2102 (discard_cleanups,discard_final_cleanups): Ditto
2103 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
2104 (save_cleanups,save_final_cleanups): Ditto.
2105 (restore_cleanups,restore_final_cleanups): Ditto.
2106 (null_cleanup): Ditto.
2107 (make_my_cleanup,make_my_cleanup2): Ditto.
2108 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2109 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
2110 (do_cleanups,do_final_cleanups): Ditto.
2111 (discard_cleanups,discard_final_cleanups): Ditto
2112 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
2113 (save_cleanups,save_final_cleanups): Ditto.
2114 (restore_cleanups,restore_final_cleanups): Ditto.
2115 (null_cleanup): Ditto.
2116 (make_my_cleanup,make_my_cleanup2): Ditto.
2117 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2119 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
2121 (make_cleanup_dyn_string_delete): Ditto.
2122 (make_cleanup_ui_file_delete): Ditto.
2123 (make_cleanup_ui_out_redirect_pop): Ditto.
2124 (make_cleanup_free_section_addr_info): Ditto.
2125 (make_cleanup_restore_integer): Ditto.
2126 (make_cleanup_unpush_target): Ditto.
2127 (make_cleanup_value_free_to_mark): Ditto.
2128 (make_cleanup_value_free): Ditto.
2129 (make_cleanup_free_so): Ditto.
2131 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2133 New option "set debug auto-load".
2134 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
2135 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
2136 (auto_load_safe_path_vec_update)
2137 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
2139 (file_is_auto_load_safe): New parameters debug_fmt and ....
2140 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
2141 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
2142 caller by explanatory string.
2143 (_initialize_auto_load): Register "set debug auto-load".
2144 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
2146 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
2147 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
2148 by explanatory string.
2149 * main.c (captured_main): Likewise.
2150 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2151 (source_section_scripts): Likewise.
2153 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2155 New option "set auto-load safe-path".
2156 * NEWS: New commands "set auto-load safe-path"
2157 and "show auto-load safe-path".
2158 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
2159 (auto_load_safe_path, auto_load_safe_path_vec)
2160 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
2161 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
2162 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
2163 (source_gdb_script_for_objfile): New variable is_safe. Call
2164 file_is_auto_load_safe. Return if it is not.
2165 (struct loaded_script): New field loaded.
2166 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
2167 (print_script): Use LOADED indicator instead of FULL_PATH. Change
2168 output "Missing" to "No".
2169 (_initialize_auto_load): New variable cmd. Initialize
2170 auto_load_safe_path. Register "set auto-load safe-path",
2171 "show auto-load safe-path" and "add-auto-load-safe-path".
2172 * auto-load.h (maybe_add_script): Add parameter loaded.
2173 (file_is_auto_load_safe): New declaration.
2174 * config.in: Regenerate.
2175 * configure: Regenerate.
2176 * configure.ac: New parameters --with-auto-load-safe-path
2177 and --without-auto-load-safe-path.
2178 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
2179 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
2180 * main.c (captured_main): Check file_is_auto_load_safe for
2182 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
2183 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
2184 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
2187 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2189 auto-load: Implementation.
2190 * NEWS: New descriptions for "info auto-load",
2191 "info auto-load gdb-scripts", "info auto-load python-scripts",
2192 "info auto-load local-gdbinit" and "info auto-load libthread-db".
2193 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
2194 and "show auto-load-scripts". New description for "set auto-load",
2195 "show auto-load", "set auto-load gdb-scripts",
2196 "show auto-load gdb-scripts", "set auto-load python-scripts",
2197 "show auto-load python-scripts", "set auto-load local-gdbinit",
2198 "show auto-load local-gdbinit", "set auto-load libthread-db" and
2199 "show auto-load libthread-db".
2200 * auto-load.c: Remove include python/python-internal.h. Add includes
2201 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
2203 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
2204 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
2205 (gdbpy_global_auto_load): Rename to ...
2206 (global_auto_load): ... here.
2207 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
2208 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
2209 (script_language_gdb, source_gdb_script_for_objfile): New.
2210 (struct loaded_script): New field language.
2211 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
2213 (maybe_add_script): Add parameter language. Drop redundant
2214 entry.full_path initialization. Initialize entry.language and
2216 (auto_load_objfile_script): Change parameter suffix to language.
2217 Remove the call of maybe_add_script.
2218 Call language->source_script_for_objfile.
2219 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
2221 (collect_matching_scripts): Adjust it for
2222 struct collect_matching_scripts_data.
2223 (auto_load_info_scripts_pattern_nl): New variable.
2224 (info_auto_load_scripts): Rename to ...
2225 (auto_load_info_scripts): ... here, add parameter language. Adjust it
2226 for struct collect_matching_scripts_data.
2227 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
2228 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
2229 (auto_load_show_cmdlist_get, info_auto_load_cmd)
2230 (auto_load_info_cmdlist_get): New.
2231 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
2232 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
2233 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
2234 "info auto-load local-gdbinit".
2235 * auto-load.h (struct script_language): New.
2236 (gdbpy_global_auto_load): Rename to ...
2237 (global_auto_load): ... here.
2238 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
2239 (auto_load_local_gdbinit_loaded): New declarations.
2240 (maybe_add_script): New parameter language.
2241 (auto_load_objfile_script): Change parameter suffix to language.
2242 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
2243 (auto_load_info_scripts, auto_load_set_cmdlist_get)
2244 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
2246 * linux-thread-db.c: Include auto-load.h and ctype.h.
2247 (auto_load_thread_db, show_auto_load_thread_db): New.
2248 (struct thread_db_info): New field filename.
2249 (delete_thread_db_info): Call xfree for FILENAME.
2250 (try_thread_db_load): Initialize FILENAME.
2251 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
2252 if !AUTO_LOAD_THREAD_DB.
2253 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
2254 (_initialize_thread_db): Install auto_load_thread_db
2255 as "set auto-load libthread-db" and install info_auto_load_libthread_db
2256 as "info auto-load libthread-db".
2257 * main.c (captured_main): Rename gdbpy_global_auto_load to
2258 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
2259 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
2260 (print_gdb_help): Extend the help for 'local init file'.
2261 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
2262 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
2263 (auto_load_scripts): Rename to ...
2264 (auto_load_python_scripts): ... here, update the comment.
2265 (gdbpy_load_auto_script_for_objfile): New declaration.
2266 (show_auto_load_python_scripts, script_language_python)
2267 (gdbpy_load_auto_script_for_objfile): New.
2268 (source_section_scripts): Refactor the code.
2269 (load_auto_scripts_for_objfile): Rename to ...
2270 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
2271 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
2272 (info_auto_load_python_scripts): New.
2273 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
2274 Rename "set auto-load-scripts" to "set auto-load python-scripts".
2275 Register "set auto-load-scripts" as its deprecated alias. Register
2276 "info auto-load python-scripts". Register "info auto-load-scripts" as
2277 its deprecated alias.
2278 (load_auto_scripts_for_objfile): Rename to ...
2279 (gdbpy_load_auto_scripts_for_objfile): ... here.
2280 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
2281 (gdbpy_load_auto_scripts_for_objfile): ... here.
2283 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2285 auto-load: Move files.
2286 * Makefile.in (SFILES): Add auto-load.c.
2287 (HFILES_NO_SRCDIR): Add auto-load.h.
2288 (COMMON_OBS): Add auto-load.o.
2289 (distclean): Change .gdbinit for gdb-gdb.gdb.
2290 * auto-load.c: New file, with parts from python/py-auto-load.c.
2291 * auto-load.h: New file, with parts from python/python.h.
2292 * configure: Regenerate.
2293 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
2294 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
2295 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
2296 * main.c: Include auto-load.h.
2297 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
2298 command.h, observer.h and progspace.h to auto-load.c. Add include
2300 (gdbpy_global_auto_load, struct auto_load_pspace_info)
2301 (struct loaded_script, auto_load_pspace_data)
2302 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
2303 (hash_loaded_script_entry, eq_loaded_script_entry)
2304 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
2305 (maybe_add_script): Move to auto-load.c.
2306 (source_section_scripts): Change maybe_add_script parameters passing,
2307 use script_not_found_warning_print.
2308 (clear_section_scripts, auto_load_objfile_script)
2309 (auto_load_new_objfile, loaded_script_ptr)
2310 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
2311 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
2312 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
2313 auto_load_new_objfile and info_auto_load_scripts initizations to
2315 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
2317 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2320 * charset.c (find_charset_names): Remove variables ix and elt.
2321 Use free_char_ptr_vec.
2322 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
2323 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
2324 debugdir_end. New variable debugdir_len.
2325 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
2326 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
2328 * progspace.c (clear_program_space_solib_cache): Remove variables ix
2329 and elt. Use free_char_ptr_vec.
2330 * source.c (add_path): Remove variables argv, arg and argv_index.
2331 New variables dir_vec, back_to, ix and name.
2332 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
2333 make_cleanup_freeargv. Remove variable separator. Simplify the code
2334 no longer expecting DIRNAME_SEPARATOR.
2335 (openp): Remove variable p, p1 and len. New variables dir_vec,
2336 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
2337 no longer expecting DIRNAME_SEPARATOR.
2338 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
2339 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
2341 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
2342 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
2343 (dirnames_to_char_ptr_vec): New functions.
2345 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2348 * source.c (add_path): Remove always true conditional 'p == 0' and
2349 unindent its code block.
2351 2012-04-17 Pedro Alves <palves@redhat.com>
2353 * gdbtypes.h (FIELD_BITPOS): Rename to ...
2354 (FIELD_BITPOS_LVAL): ... this.
2355 (FIELD_BITPOS): New.
2356 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
2357 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
2358 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
2360 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
2362 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
2363 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
2364 * target-descriptions.c (tdesc_gdb_type): Adjust to use
2367 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2369 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
2370 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
2371 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
2372 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
2373 * jv-lang.c (java_link_class_type): Likewise, once.
2374 * stabsread.c (read_enum_type): Likewise.
2376 2012-04-16 Yao Qi <yao@codesourcery.com>
2378 * common/agent.c (agent_run_command): Add one more parameter `len'.
2380 * common/agent.h: Update declaration.
2381 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2383 (linux_child_static_tracepoint_markers_by_strid): Ditto.
2385 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
2388 * value.c (value_actual_type): New function.
2389 * value.h (value_actual_type): New declaration.
2390 * varobj.c (update_type_if_necessary): New function.
2391 (varobj_create): Call value_actual_type instead of
2393 (install_dynamic_child): distinct changed and type changed MI variable
2395 (update_dynamic_varobj_children): Updated for install_dynamic_child
2396 change. All callers updated.
2397 (varobj_update): Support for MI variable object type change if
2398 the value changed and RTTI is used to determine the type.
2399 (create_child_with_value): Call value_actual_type instead of
2401 (adjust_value_for_child_access): Extended with a new parameter which
2402 specify whether the given value should be casted to enclosing type.
2403 All callers updated.
2405 2012-04-14 Yao Qi <yao@codesourcery.com>
2407 Import gnulib module inttypes from git
2408 (250b80067c1e1d8faa0c42fb572f721975b929c5)
2409 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
2410 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
2411 gnulib/m4/inttypes-pri.m4
2412 * aclocal.m4, config.in, configure: Regenerated.
2413 * gnulib/Makefile.am: Update.
2414 * gnulib/Makefile.in: Update.
2415 * gnulib/m4/gnulib-cache.m4: Update.
2416 * gnulib/m4/gnulib-comp.m4: Update.
2417 * gnulib/inttypes.in.h: New.
2418 * gnulib/m4/inttypes-pri.m4: New.
2419 * gnulib/m4/inttypes.m4: New.
2421 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
2423 * infrun.c (resume): Update PC address to the real PC after
2424 preparing to do displaced stepping.
2426 2012-04-12 Doug Evans <dje@google.com>
2428 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
2429 All callers updated.
2431 2012-04-12 Mark Kettenis <kettenis@gnu.org>
2433 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
2435 2012-04-12 Doug Evans <dje@google.com>
2437 * dwarf2read.c (create_all_type_units): Renamed from
2438 create_debug_types_hash_table. All callers updated.
2440 * dwarf2read.c (create_signatured_type_table_from_index): Rename
2441 local type_sig to sig_type, type_offset to type_offset_in_tu.
2442 (hash_signatured_type): Renamed from hash_type_signature,
2443 all callers updated.
2444 (eq_signatured_type): Renamed from eq_type_signature,
2445 all callers updated.
2446 (create_debug_types_hash_table): Rename local type_sig to sig_type.
2447 (process_enumeration_scope): Ditto.
2448 (lookup_signatured_type_at_offset): Ditto.
2449 (load_full_type_unit, read_signatured_type): Ditto.
2451 2012-04-12 Yao Qi <yao@codesourcery.com>
2453 * remote.c (async_remote_interrupt): Correct function name in
2455 (async_remote_interrupt_twice): Ditto.
2457 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
2459 * source.c (find_and_open_source): Consistently pass resulting
2460 full path through xfullpath.
2462 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2464 Provide more specific displaced-stepping memory error message.
2465 * infrun.c (displaced_step_prepare): New variable status. Call
2466 target_read_memory instead of read_memory, provide more specific
2469 2012-04-11 Tristan Gingold <gingold@adacore.com>
2472 * darwin-nat.c (darwin_execvp): Revert previous patch.
2474 2012-04-11 Tristan Gingold <gingold@adacore.com>
2477 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
2480 2012-04-11 Tristan Gingold <gingold@adacore.com>
2482 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
2485 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
2487 New command 'explore' which helps explore values and types in
2489 * NEWS: Add an entry about the new 'explore' command.
2490 * data-directory/Makefile.in: Add gdb/command/explore.py
2491 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
2492 command using the GDB Python API.
2494 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
2496 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
2497 extension in jump target calculation.
2499 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
2501 * mips-tdep.c (mips32_next_pc): Handle JALX.
2503 2012-04-10 Yao Qi <yao@codesourcery.com>
2505 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
2507 2012-04-10 Yao Qi <yao@codesourcery.com>
2509 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
2510 and gnulib/m4/gnulib-tool.m4.
2512 2012-04-10 Doug Evans <dje@google.com>
2514 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
2515 (load_partial_dies): Clarify comment.
2516 (find_partial_die): Support rereading type units.
2517 Clarify CU handling, if we know offset is in CU, don't search for the
2518 containing CU. Add comment regarding memory waste.
2520 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
2522 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
2523 i386/x32-avx and i386/x32-avx-linux.
2524 (i386/x32-expedite): New.
2525 (i386/x32-linux-expedite): Likewise.
2526 (i386/x32-avx-expedite): Likewise.
2527 (i386/x32-avx-linux-expedite): Likewise.
2528 ($(outdir)/i386/x32.dat): Likewise.
2529 ($(outdir)/i386/x32-linux.dat): Likewise.
2530 ($(outdir)/i386/x32-avx.dat): Likewise.
2531 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
2533 * features/i386/x32-avx-linux.xml: New file.
2534 * features/i386/x32-avx.xml: Likewise.
2535 * features/i386/x32-core.xml: Likewise.
2536 * features/i386/x32-linux.xml: Likewise.
2537 * features/i386/x32.xml: Likewise.
2539 * features/i386/x32-avx-linux.c: New. Generated.
2540 * features/i386/x32-avx.c: Likewise.
2541 * features/i386/x32-linux.c: Likewise.
2542 * features/i386/x32.c: Likewise.
2543 * regformats/i386/x32-avx-linux.dat: Likewise.
2544 * regformats/i386/x32-avx.dat: Likewise.
2545 * regformats/i386/x32-linux.dat: Likewise.
2546 * regformats/i386/x32.dat: Likewise.
2548 2012-04-10 Tristan Gingold <gingold@adacore.com>
2550 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
2551 code to kill the inferior.
2553 2012-04-09 Mark Kettenis <kettenis@gnu.org>
2555 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2557 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2559 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
2560 (yyvsp): New defines.
2561 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2563 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2565 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2567 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2569 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2572 2012-04-09 Mark Kettenis <kettenis@gnu.org>
2574 * sparc64-tdep.c (sparc64_store_arguments)
2575 (sparc64_store_arguments): Fix coding style.
2577 2012-04-07 Mark Kettenis <kettenis@gnu.org>
2579 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
2580 complex floats, adjust some related comments and tighten a related
2582 (sparc64_extract_return_value): Handle complex floats.
2584 2012-04-07 Doug Evans <dje@google.com>
2586 * dwarf2read.c (load_partial_dies): Change condition to assert.
2588 2012-04-06 Doug Evans <dje@google.com>
2590 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
2593 2012-04-05 Kevin Buettner <kevinb@redhat.com>
2595 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
2597 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
2598 (v850_gdbarch_init): Set `num_regs' as appropriate for the
2601 2012-04-05 Keith Seitz <keiths@redhat.com>
2603 * linespec.c (decode_compound): Remove.
2604 (enum offset_relative_sign): New enum.
2605 (struct line_offset): New struct.
2606 (struct linespec): New struct.
2607 (struct linespec_state): Move file_symtabs,
2608 user_filename, and user_function into struct linespec.
2609 Make result an anonymous struct holding vectors of
2610 symbolp and minsym_and_objfile_d.
2611 Add language member.
2612 (enum ls_token_type): New enum.
2613 (linespec_keywords): New array.
2614 (struct ls_token): New struct.
2615 (struct ls_parser): New struct.
2616 (linespec_lexer_lex_number): New function.
2617 (linespec_lexer_lex_keyword): New function.
2618 (is_ada_operator): New function.
2619 (skip_quote_char): New function.
2620 (copy_token_string): New function.
2621 (is_closing_quote_enclosed): New function.
2622 (find_parameter_list_end): New function.
2623 (linespec_lexer_lex_string): New function.
2624 (linespec_lexer_lex_one): New function.
2625 (linespec_lexer_consume_token): New function.
2626 (linespec_lexer_peek_token): New function.
2627 (cplusplus_error): Remove unused function.
2628 (find_methods): Update comment.
2629 (find_toplevel_char): Return const.
2630 (is_objc_method_format): Remove unused function.
2631 (find_toplevel_string): New function.
2632 (is_linespec_boundary): Remove.
2633 (symbol_not_found_error): New function.
2634 (find_method_overload_end): Remove function.
2635 (unexpected_linespec_error): New function.
2636 (keep_name_info): Remove.
2637 (linespec_parse_line_offset): New function.
2638 (linespec_parse_basic): New function.
2639 (canonicalize_linespec): New function.
2640 (decode_line_internal): Remove.
2641 (create_sals_line_offset): New function adapted from
2643 (convert_linespec_to_sals): New function.
2644 (parse_linespec): New function.
2645 (linespec_parser_new): New function.
2646 (linespec_state_destructor): Change parameter type to
2647 struct linespec_state *.
2648 Add language parameter.
2649 Remove freeing of moved members.
2650 (linespec_parser_delete): New function.
2651 (decode_line_full): Use parse_linespec and linespec_parser_new.
2652 (decode_line_1): Likewise.
2653 (decode_indirect): Rename to ...
2654 (linespec_expression_to_pc): ... this and rewrite
2655 to simply find CORE_ADDR, storing this result for later
2657 (locate_first_half): Remove.
2658 (deocde_objc): Add parameter LS.
2659 Initialize new struct collect_info members.
2660 Handle minimal symbols, too.
2661 (decode_compound): Delete.
2662 (lookup_prefix_sym): Rewrite.
2663 (compare_msymbols): New function.
2664 (find_method): Rewrite.
2665 Do not call cplusplus_error.
2666 (symtabs_from_filename): Rewrite.
2667 (collect_function_symbols): Delete.
2668 (find_function_symbols): Rewrite without ARGPTR-style
2670 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
2671 (decode_dollar): Adapted and renamed to ...
2672 (linespec_parse_variable): ... this.
2673 (find_linespec_symbols): New function.
2674 (decode_label): Adapted and renamed to ...
2675 (find_label_symbols): ... this.
2676 (decode_digits_list_mode): Add and use LS argument.
2677 (decode_digits_ordinary): Likewise.
2678 (collect_symbols): Do not collect SALs, just symbols and msymbols.
2679 If in list mode, allow any symbol class. Otherwise, only
2680 permit LOC_BLOCK symbols.
2681 (minsym_found): Update comments.
2682 (search_minsyms_for_name): Do not convert the matching symbol
2683 into a SAL. Simply push the symbol and objfile into the
2685 (decode_variable): Delete. Contents adapted into
2686 find_linespec_symbols.
2688 * cp-support.c (SKIP_SPACE): Remove.
2689 (operator_tokens): Remove unused global.
2690 (cp_validate_operator): Remove.
2691 * cp-support.h (cp_validate_operator): Remove declaration.
2693 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2695 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
2696 for TYPE_VPTR_FIELDNO.
2697 * valprint.c (valprint_check_validity): Make it global, move the
2698 function comment ...
2699 * value.h (valprint_check_validity): ... to this new declaration.
2701 2012-04-02 Tristan Gingold <gingold@adacore.com>
2703 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
2704 the STATE32 api for i386 state.
2705 (i386_darwin_store_inferior_registers): Likewise.
2707 2012-04-02 Tristan Gingold <gingold@adacore.com>
2709 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
2711 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
2714 2012-04-02 Tristan Gingold <gingold@adacore.com>
2717 * darwin-nat.c (darwin_execvp): Set binary preference.
2719 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2721 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
2723 2012-03-30 Tom Tromey <tromey@redhat.com>
2725 * python/python.c (gdbpy_decode_line): Move cleanup creation out
2726 of TRY_CATCH. Fix error handling.
2727 * python/py-value.c (convert_value_from_python): Move 'old'
2728 declaration to innermost scope.
2730 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2731 Andrey Smirnov <andrew.smirnov@gmail.com>
2733 -Wshadow warning fix.
2734 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
2735 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
2736 Adjust code accordingly.
2738 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2740 * ada-lang.c (symbol_completion_add): Rename parameter
2741 "encoded" into "encoded_p". Ajust code and documentation
2744 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2745 Andrey Smirnov <andrew.smirnov@gmail.com>
2747 -Wshadow warning fix.
2748 * ada-lang.c (symbol_completion_add): Rename parameter
2749 "wild_match" into wild_match_p. Update code and documentation
2752 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2754 * ada-lang.c (symbol_completion_match): Rename parameter
2755 "encoded" into "encoded_p". Ajust code and documentation
2758 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2759 Andrey Smirnov <andrew.smirnov@gmail.com>
2761 -Wshadow warning fix.
2762 * ada-lang.c (symbol_completion_match): Rename parameter
2763 "wild_match" into "wild_match_p". Adjust code and function
2764 documentation accordingly.
2766 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2767 Andrey Smirnov <andrew.smirnov@gmail.com>
2769 -Wshadow warning fix.
2770 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
2771 "symbol_info" into "info". Adjust code accordingly.
2772 (ada_lookup_symbol): Likewise.
2774 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2776 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
2777 of this function's documentation.
2779 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2780 Andrey Smirnov <andrew.smirnov@gmail.com>
2782 -Wshadow warning fix.
2783 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
2784 variable into "wild_match_p". Adjust code accordingly.
2786 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2787 Andrey Smirnov <andrew.smirnov@gmail.com>
2789 -Wshadow warning fix.
2790 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
2791 parameter into "wild_match_p". Adjust code accordingly.
2792 Document this parameter in the function description.
2794 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2795 Andrey Smirnov <andrew.smirnov@gmail.com>
2797 -Wshadow warning fix.
2798 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
2799 "wild_match" parameter to "wild_match_p" (-Wshadow).
2801 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2803 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
2804 in function documentation.
2806 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2807 Andrey Smirnov <andrew.smirnov@gmail.com>
2809 -Wshadow warning fix.
2810 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
2811 variable into wild_match_p. Adjust code accordingly.
2813 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2814 Andrey Smirnov <andrew.smirnov@gmail.com>
2816 * ada-valprint.c (ada_val_print_1): Move the code handling
2817 TYPE_CODE_ENUM inside its own lexical block. Declare
2818 variables len and val there, instead of in the function's
2819 top level block. Avoid declaring deref_val again in a way
2820 that shadows another variable of the same name declared
2821 in one of the up-level blocks. Just re-use the up-level
2824 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2826 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
2827 Replace block_found argument by symbol_info. Adjust
2828 implementation accordingly. Add function documentation.
2829 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
2831 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
2832 * ada-exp.y (write_object_renaming): Adjust to new
2833 ada_lookup_encoded_symbol API.
2835 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2837 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
2840 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
2842 * v850-tdep.c: Add the enum values for mpu and fpu registers.
2843 (v850_register_name): Add the mpu and fpu register names.
2844 (v850e_register_name): Add the mpu and fpu register names.
2845 (v850e2_register_name): New function.
2846 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2849 2012-03-28 Joel Brobecker <brobecker@adacore.com>
2851 * NEWS: Add entry for Ada varobj support.
2853 2012-03-28 Joel Brobecker <brobecker@adacore.com>
2855 * varobj.c (default_value_is_changeable_p): New function,
2856 extracted from varobj_value_is_changeable_p. Add declaration.
2857 (ada_value_is_changeable_p): New function, extracted from
2858 varobj_value_is_changeable_p. Add declaration.
2859 (struct language_specific): New field "value_is_changeable_p".
2860 (languages): Add entries for new field.
2861 (varobj_create): Set language before calling install_new_value.
2862 (varobj_value_is_changeable_p): Reimplement to call the varobj's
2863 "value_is_changeable_p" language callback.
2865 2012-03-28 Joel Brobecker <brobecker@adacore.com>
2867 * ada-varobj.h, ada-varobj.c: New files.
2868 * Makefile.in (SFILES): Add ada-varobj.c.
2869 (HFILES_NO_SRCDIR): Add ada-varobj.h.
2870 (COMMON_OBS): Add ada-varobj.o.
2872 2012-03-28 Joel Brobecker <brobecker@adacore.com>
2874 * varobj.c (ada_value_has_mutated): Add declaration. New function.
2875 (struct language_specific): New field "value_has_mutated".
2876 (languages): Set field "value_has_mutated" in each entry of array.
2877 (varobj_value_has_mutated): New function.
2878 (varobj_udpdate): Add handling of type mutation.
2879 (value_of_root): Add handling of type mutation.
2880 (ada_value_has_mutated): New function.
2882 2012-03-28 Pedro Alves <palves@redhat.com>
2884 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
2885 Always supply $fr0 as 0.0 and $fr1 as 1.0.
2887 2012-03-28 Tom Tromey <tromey@redhat.com>
2889 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
2890 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
2893 2012-03-28 Tom Tromey <tromey@redhat.com>
2895 * .dir-locals.el: New file.
2897 2012-03-28 Pedro Alves <palves@redhat.com>
2899 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
2901 2012-03-28 Joel Brobecker <brobecker@adacore.com>
2903 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
2906 2012-03-27 Pedro Alves <palves@redhat.com>
2908 Eliminate struct ui_stream.
2910 * ui-out.h (struct ui_stream): Delete.
2911 (ui_out_field_stream): Adjust prototype.
2912 (ui_out_stream_new, ui_out_stream_delete)
2913 (make_cleanup_ui_out_stream_delete): Delete declarations.
2914 * ui-out.c (ui_out_field_stream): Change prototype to take a
2915 ui_file instead of a ui_stream. Adjust.
2916 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
2917 (make_cleanup_ui_out_stream_delete): Delete.
2918 * breakpoint.c (print_breakpoint_location)
2919 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
2920 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
2921 * disasm.c (dump_insns): Ditto.
2922 (do_mixed_source_and_assembly, do_assembly_only): Adjust
2924 (gdb_disassembly): Use ui_file/mem_fileopen instead of
2925 ui_stream/ui_out_stream_new.
2926 * infcmd.c (print_return_value): Ditto.
2927 * osdata.c (info_osdata_command): Don't allocate a local
2929 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
2930 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
2931 * tracepoint.c (print_one_static_tracepoint_marker): Don't
2932 allocate a local ui_stream.
2933 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
2934 instead of ui_stream/ui_out_stream_new.
2935 (list_args_or_locals): Don't allocate a local ui_stream.
2936 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
2937 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
2938 ui_stream/ui_out_stream_new.
2939 * cli/cli-setshow.c (do_setshow_command): Ditto.
2941 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
2943 * arm-linux-tdep.c (arm_linux_init_abi): Call
2944 set_gdbarch_process_record. Initialize `arm_swi_record' field.
2945 * arm-tdep.c (arm_process_record): New function.
2946 (deallocate_reg_mem): New function.
2947 (decode_insn): New function.
2948 (thumb_record_branch): New function.
2949 (thumb_record_ldm_stm_swi(): New function.
2950 (thumb_record_misc): New function.
2951 (thumb_record_ld_st_stack): New function.
2952 (thumb_record_ld_st_imm_offset): New function.
2953 (thumb_record_ld_st_reg_offset(): New function.
2954 (thumb_record_add_sub_cmp_mov): New function.
2955 (thumb_record_shift_add_sub): New function.
2956 (arm_record_coproc_data_proc): New function.
2957 (arm_record_coproc): New function.
2958 (arm_record_b_bl): New function.
2959 (arm_record_ld_st_multiple): New function.
2960 (arm_record_ld_st_reg_offset): New function.
2961 (arm_record_ld_st_imm_offset): New function.
2962 (arm_record_data_proc_imm): New function.
2963 (arm_record_data_proc_misc_ld_str): New function.
2964 (arm_record_extension_space): New function.
2965 (arm_record_strx): New function.
2966 (sbo_sbz): New function.
2967 (struct insn_decode_record): New structure for arm insn record.
2968 (REG_ALLOC): New macro for reg allocations.
2969 (MEM_ALLOC): New macro for memory allocations.
2970 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
2972 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
2974 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
2975 (store_register): Likewise.
2977 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
2979 * MAINTAINERS (Write After Approval): Add myself to the list.
2981 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2983 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
2984 Describe also the option "auto".
2986 2012-03-22 Richard Henderson <rth@redhat.com>
2988 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
2989 * sparc-nat.c (sparc_xfer_wcookie): Make static.
2991 2012-03-22 Richard Henderson <rth@redhat.com>
2993 * jit.c (jit_read_code_entry): Compute alignment and offset of
2994 int64_t member before computing entry_size.
2996 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
2998 Python scripting: Add new method Value.referenced_value to
2999 gdb.Value which can dereference pointer as well as reference
3001 * NEWS: Add entry under 'Python scripting' about the new method
3002 Value.referenced_value on gdb.Value objects.
3003 * python/py-value.c (valpy_referenced_value): New function
3004 defining a new method on gdb.Value objects which can dereference
3005 pointer and reference values.
3007 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
3009 * MAINTAINERS (Write After Approval): Add myself to the list.
3011 2012-03-21 Kevin Buettner <kevinb@redhat.com>
3013 * symtab.c (skip_prologue_sal): Change test to check for "main()"
3014 in addition to "main".
3016 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3018 * expression.h (op_name): Add declaration.
3019 * expprint.c (op_name): Remove declaration. Make non-static.
3020 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
3022 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
3024 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
3026 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
3027 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3028 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
3029 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
3030 (linux_nat_get_siginfo): Likewise.
3031 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
3032 (linux_nat_get_siginfo): Likewise.
3033 * linux-tdep.c (linux_get_siginfo_type): Likewise.
3034 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
3035 * procfs.c (gdb_siginfo_t): Likewise.
3037 2012-03-21 Mike Frysinger <vapier@gentoo.org>
3039 * .gitignore: Ignore more files.
3041 2012-03-20 Pedro Alves <palves@redhat.com>
3043 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
3046 2012-03-20 Yao Qi <yao@codesourcery.com>
3048 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
3051 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3053 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
3054 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
3055 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
3057 * dwarf2expr.h (cu_offset, sect_offset): New types.
3058 (struct dwarf_expr_context_funcs) <dwarf_call>
3059 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
3061 (struct dwarf_expr_context) <len>: Improve the comment.
3062 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
3063 cu_offset and sect_offset.
3064 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
3065 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
3066 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
3067 * dwarf2loc.h: Include dwarf2expr.h.
3068 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
3070 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
3071 Improve the comment.
3072 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
3073 (struct signatured_type, struct line_header, struct partial_die_info)
3074 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
3075 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
3076 (get_die_type_at_offset, create_cus_from_index)
3077 (create_signatured_type_table_from_index, dw2_get_file_names)
3078 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
3079 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
3080 (create_debug_types_hash_table, process_psymtab_comp_unit)
3081 (load_partial_comp_unit, create_all_comp_units)
3082 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
3083 (load_full_comp_unit, dwarf2_physname, read_import_statement)
3084 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
3085 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
3086 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
3087 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
3088 (find_partial_die, read_attribute_value, lookup_die_type)
3089 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
3090 (is_ref_attr): New function comment.
3091 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
3092 Use cu_offset and sect_offset.
3093 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
3094 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
3095 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
3096 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
3097 (offset_and_type_hash, offset_and_type_eq, set_die_type)
3098 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
3099 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
3102 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3105 * python/py-auto-load.c (source_section_scripts): New variable back_to.
3106 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
3108 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
3110 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3112 * NEWS: Describe new options --init-command=FILE, -ix and
3113 --init-eval-command=COMMAND, -iex.
3114 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
3115 CMDARG_INIT_COMMAND.
3116 (captured_main): New enum items OPT_IX and OPT_IEX. Add
3117 "init-command", "init-eval-command", "ix" and "iex" to the variable
3118 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
3119 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
3120 (print_gdb_help): Describe --init-command=FILE, -ix and
3121 --init-eval-command=COMMAND, -iex.
3123 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3126 * main.c (struct cmdarg): Move it here from main. Add more comments.
3127 (cmdarg_s, VEC (cmdarg_s)): New.
3128 (main): Move struct cmdarg from here. New variables cmdarg_vec and
3129 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
3130 Install cleanup for cmdarg_vec. Update filling for options 'x' and
3131 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
3134 2012-03-19 Tom Tromey <tromey@redhat.com>
3136 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
3138 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3141 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
3144 2012-03-16 Chris January <chris.january@allinea.com>
3146 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
3149 2012-03-16 Chris January <chris.january@allinea.com>
3151 * source.c (add_path): Use memmove instead of strcpy because the
3154 2012-03-16 Joel Brobecker <brobecker@adacore.com>
3156 * value.h (set_value_parent): Add declaration.
3157 * value.c (set_value_parent): New function.
3158 (value_address): If VALUE->PARENT is not NULL, then use it as
3159 the base address instead of VALUE->LOCATION.address.
3160 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
3161 the same as OBJ's address. Adjust V's offset accordingly.
3164 2012-03-16 Gary Benson <gbenson@redhat.com>
3166 PR breakpoints/10738
3167 * dwarf2read.c (use_deprecated_index_sections): New global.
3168 (struct partial_die_info): New member may_be_inlined.
3169 (read_partial_die): Set may_be_inlined where appropriate.
3170 (add_partial_subprogram): Add partial symbols for partial
3171 DIEs that may be inlined.
3172 (new_symbol_full): Add inlined subroutines to the current
3174 (write_psymtabs_to_index): Bump version number.
3175 (dwarf2_read_index): Read only version 6 indices unless
3176 use_deprecated_index_sections is set.
3177 * linespec.c (symbol_and_data_callback): New structure.
3178 (iterate_inline_only): New function.
3179 (iterate_over_all_matching_symtabs): New argument
3180 "include_inline". If nonzero, also call the callback for
3181 symbols representing inlined subroutines.
3182 (lookup_prefix_sym): Pass extra argument to the above.
3183 (find_function_symbols): Likewise.
3184 (add_matching_symbols_to_info): Likewise.
3185 * NEWS: Mention that GDB can now set breakpoints on inlined
3188 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3190 * p-typeprint.c (pascal_type_print_method_args):
3191 Fix display of parameter of methods.
3193 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3195 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
3196 Add missing prototype.
3198 2012-03-16 Yao Qi <yao@codesourcery.com>
3199 Jan Kratochvil <jan.kratochvil@redhat.com>
3201 Fix false compilation warning.
3202 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
3204 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
3205 Pedro Alves <pedro@codesourcery.com>
3207 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
3208 (arm_register_g_packet_guesses): New function.
3209 (arm_gdbarch_init): Don't force a target description with
3210 registers when the executable is detected as M-profile. Instead
3211 set gdbarch->tdep->is_m. Register `g' packet guesses.
3212 (_initialize_arm_tdep): Initialize the new target description.
3213 * features/arm-with-m-fpa-layout.xml: New description.
3214 * features/arm-with-m-fpa-layout.c: New, generated.
3216 2012-03-15 Joel Brobecker <brobecker@adacore.com>
3218 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
3219 Update function description.
3220 (insert_bp_location): Do not wipe bl->target_info out.
3221 * mem-break.c: #include "gdb_string.h".
3222 (default_memory_insert_breakpoint): Do not call target_read_memory
3223 with a pointer to the breakpoint's shadow_contents buffer. Use
3224 a local buffer instead.
3225 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
3227 2012-03-15 Tom Tromey <tromey@redhat.com>
3229 * NEWS: Mention "info vtbl", not "info vtable".
3230 * cp-support.c (info_vtbl_command): Fix comment.
3231 (_initialize_cp_support): Fix text.
3233 2012-03-15 Tom Tromey <tromey@redhat.com>
3235 * cp-valprint.c (cp_print_value_fields): Use
3236 print_function_pointer_address for vtable slot.
3238 2012-03-15 Tom Tromey <tromey@redhat.com>
3240 * gnu-v3-abi.c (struct value_and_voffset): New.
3241 (hash_value_and_voffset, eq_value_and_voffset)
3242 (compare_value_and_voffset, compute_vtable_size)
3243 (print_one_vtable, gnuv3_print_vtable): New functions.
3244 (init_gnuv3_ops): Initialize 'print_vtable' field.
3245 * cp-support.c (info_vtbl_command): New function.
3246 (_initialize_cp_support): Add "info vtbl".
3247 * cp-abi.h (cplus_print_vtable): Declare.
3248 (struct cp_abi_ops) <print_vtable>: New field.
3249 * cp-abi.c (cplus_print_vtable): New function.
3252 2012-03-15 Tom Tromey <tromey@redhat.com>
3254 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
3255 iterate_over_symbols.
3257 2012-03-14 Doug Evans <dje@google.com>
3259 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
3260 DW_OP_GNU_parameter_ref.
3262 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3264 Fix double prompt of 'interpreter-exec mi'.
3265 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
3266 (mi_interpreter_resume): use it.
3267 (mi_execute_command_input_handler): New function.
3268 * mi/mi-main.c (mi_execute_command): Move prompt printing to
3269 mi_execute_command_input_handler.
3271 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
3273 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
3275 (darwin_debug_port_info): Make static.
3276 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
3277 * machoread.c (_initialize_machoread): Add prototype.
3278 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
3279 (i386_darwin_set_control, i386_darwin_get_control)
3280 i386_darwin_dr_set_addr, i386_darwin_get_addr)
3281 i386_darwin_get_status, i386_darwin_get_control):
3282 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
3284 2012-03-13 Joel Brobecker <brobecker@adacore.com>
3286 * ax-gdb.c (gen_usual_unary): Remove special handling of
3287 enum and bool types.
3289 2012-03-13 Joel Brobecker <brobecker@adacore.com>
3291 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
3293 2012-03-13 Joel Brobecker <brobecker@adacore.com>
3295 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
3297 2012-03-13 Chris January <chris.january@allinea.com>
3299 * aix-thread.c (fill_sprs): Store the floating point registers
3300 at the correct offsets into vals.
3302 2012-03-13 Doug Evans <dje@google.com>
3304 * NEWS: Mention symbol-reloading has been deleted.
3305 * symfile.c (symbol_reloading): Delete.
3306 (show_symbol_reloading): Delete.
3307 (_initialize_symfile): Delete set/show symbol-reloading.
3309 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
3310 read_in_chain until we have successfully read it in.
3311 (load_full_comp_unit): Ditto.
3312 (read_signatured_type): Add comment.
3314 2012-03-13 Chris January <chris.january@allinea.com>
3316 * stabsread.c (fix_common_block): Change type of valu argument
3319 2012-03-13 Chris January <chris.january@allinea.com>
3321 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
3324 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3326 * common/linux-procfs.c (linux_proc_get_int): New, from
3327 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
3329 (linux_proc_get_tgid): Only call linux_proc_get_int.
3330 (linux_proc_get_tracerpid): New.
3331 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
3332 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
3333 linux_proc_pid_has_state.
3334 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
3335 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
3336 (linux_ptrace_attach_warnings): New.
3337 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
3339 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
3340 (linux_nat_attach): New variables ex, buffer, message and message_s.
3341 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
3343 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3345 * Makefile.in (linux-ptrace.o): New.
3346 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
3348 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
3349 * common/linux-ptrace.c: New file.
3350 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
3351 * config/arm/linux.mh: Likewise.
3352 * config/i386/linux.mh: Likewise.
3353 * config/i386/linux64.mh: Likewise.
3354 * config/ia64/linux.mh: Likewise.
3355 * config/m32r/linux.mh: Likewise.
3356 * config/m68k/linux.mh: Likewise.
3357 * config/mips/linux.mh: Likewise.
3358 * config/pa/linux.mh: Likewise.
3359 * config/powerpc/linux.mh: Likewise.
3360 * config/powerpc/ppc64-linux.mh: Likewise.
3361 * config/powerpc/spu-linux.mh: Likewise.
3362 * config/s390/s390.mh: Likewise.
3363 * config/sparc/linux.mh: Likewise.
3364 * config/sparc/linux64.mh: Likewise.
3365 * config/xtensa/linux.mh: Likewise.
3366 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
3367 common/linux-procfs.c.
3368 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
3370 2012-03-13 Hui Zhu <teawater@gmail.com>
3371 Pedro Alves <palves@redhat.com>
3373 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
3374 CREATE_BREAKPOINT_FLAGS_INSERTED.
3375 (create_breakpoint_sal, create_breakpoints_sal)
3376 (base_breakpoint_create_breakpoints_sal)
3377 (tracepoint_create_breakpoints_sal)
3378 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
3380 (break_command_1, handle_gnu_v3_exceptions, trace_command)
3381 (ftrace_command, strace_command): Adjust.
3382 (create_tracepoint_from_upload): Pass
3383 CREATE_BREAKPOINT_FLAGS_INSERTED.
3384 * breakpoint.h (enum breakpoint_create_flags): New.
3385 (create_breakpoint): New flags parameter.
3386 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3387 * python/py-breakpoint.c (bppy_init): Adjust.
3388 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
3389 * spu-tdep.c (spu_catch_start): Adjust.
3391 2012-03-13 Pedro Alves <palves@redhat.com>
3392 Hui Zhu <teawater@gmail.com>
3393 Yao Qi <yao@codesourcery.com>
3395 * remote.c (struct remote_state): New field `starting_up'.
3396 (remote_start_remote): Set and clear it.
3397 (remote_can_download_tracepoint): If starting up, return false.
3399 2012-03-13 Yao Qi <yao@codesourcery.com>
3401 * inferior.h (struct inferior): Remove fields any_syscall_count,
3402 syscalls_counts and total_syscalls_count. Move them to new
3403 struct catch_syscall_inferior_data in breakpoint.c.
3404 * breakpoint.c: Call DEF_VEC_I(int).
3405 (struct catch_syscall_inferior_data): New.
3406 (get_catch_syscall_inferior_data): New.
3407 (catch_syscall_inferior_data_cleanup): New.
3408 (insert_catch_syscall): Update to access data in
3409 struct catch_syscall_inferior_data.
3410 (insert_catch_syscall): Likewise.
3411 (remove_catch_syscall): Likewise.
3412 (remove_catch_syscall): Likewise.
3413 (is_syscall_catchpoint_enabled): Likewise.
3414 (add_catch_command): Likewise.
3415 (_initialize_breakpoint): Register cleanup.
3416 * breakpoint.h: Removed DEF_VEC_I(int).
3417 * dwarf2loc.c: Call DEF_VEC_I(int).
3418 * mi/mi-main.c: Likewise.
3420 2012-03-12 Mark Kettenis <kettenis@gnu.org>
3422 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
3424 2012-03-12 Chris January <chris.january@allinea.com>
3426 * aix-thread.c (_initialize_aix_thread): Add prototype.
3427 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
3428 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
3430 2012-03-12 Joel Brobecker <brobecker@adacore.com>
3432 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
3433 include of "amd64-nat.h".
3435 2012-03-12 Tom Tromey <tromey@redhat.com>
3437 * buildsym.c (record_pending_block): Now static.
3438 * buildsym.h: (record_pending_block): Remove.
3440 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
3442 * amd64bsd-nat.c: Include amd64bsd-nat.h.
3444 2012-03-09 Tom Tromey <tromey@redhat.com>
3446 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
3447 producer_is_gxx_lt_4_6>: New fields.
3448 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
3450 2012-03-09 Tom Tromey <tromey@redhat.com>
3452 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
3454 2012-03-08 Joel Brobecker <brobecker@adacore.com>
3456 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
3459 2012-03-08 Joel Brobecker <brobecker@adacore.com>
3461 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
3463 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3465 Fix -Wmissing-prototypes build.
3466 * arm-linux-nat.c (get_thread_id): Make it static.
3467 * xtensa-linux-nat.c (get_thread_id): Likewise.
3469 2012-03-08 Joel Brobecker <brobecker@adacore.com>
3471 * server.c (process_point_options): If a conditional expression
3472 is found, only print a message if remote_debug is nonzero.
3474 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
3476 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
3477 of internal error for unknown/unsupported types.
3479 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3481 Fix CU relative vs. absolute DIE offsets.
3482 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
3483 offset to offset_in_cu.
3484 * dwarf2read.c (process_enumeration_scope): Add CU offset to
3486 (dwarf2_fetch_die_location_block): Rename parameter offset to
3487 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
3489 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3491 * libunwind-frame.c: Rename to ...
3492 * ia64-libunwind-tdep.c: ... here.
3493 * libunwind-frame.h: Rename to ...
3494 * ia64-libunwind-tdep.h: ... here.
3495 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
3496 ia64-libunwind-tdep.h.
3497 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
3498 * README (--with-libunwind): Rename to ...
3499 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
3500 * config.in: Regenerate.
3501 * configure: Regenerate.
3502 * configure.ac: New option --with-libunwind-ia64, make the
3503 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
3504 Remove AC_DEFINE for HAVE_LIBUNWIND.
3505 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
3506 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
3507 Rename libunwind-frame in the general comment.
3508 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
3509 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
3510 Move forward declarations inside #ifndef. Rename libunwind-frame in
3511 the general comment.
3512 * ia64-tdep.c: Rename libunwind-frame.h #include to
3513 ia64-libunwind-tdep.h.
3514 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
3515 (ia64_libunwind_descr): Rename libunwind-frame to
3516 ia64-libunwind-tdep in these function comments.
3517 * ia64-tdep.h: Rename libunwind-frame.h #include to
3518 ia64-libunwind-tdep.h.
3519 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
3520 ia64-libunwind-tdep in that data comment.
3522 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3524 * libunwind-frame.h (struct frame_unwind): New declaration.
3526 2012-03-08 Joel Brobecker <brobecker@adacore.com>
3528 * breakpoint.c (_initialize_breakpoint): Fix error in help of
3529 "set breakpoint condition-evaluation" command.
3531 2012-03-08 Tristan Gingold <gingold@adacore.com>
3533 * sparc-stub.c: Move to stubs/
3534 * sh-stub.c: Likewise.
3535 * m68k-stub.c: Likewise.
3536 * m32r-stub.c: Likewise.
3537 * i386-stub.c: Likewise.
3539 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
3541 * m68klinux-tdep.c (m68k_linux_init_abi): Register
3542 linux_get_siginfo_type.
3544 * m68klinux-nat.c: Include "gdb_proc_service.h".
3545 (PTRACE_GET_THREAD_AREA): Define.
3546 (ps_get_thread_area): New function.
3548 2012-03-08 Yao Qi <yao@codesourcery.com>
3550 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
3552 (remote_query_attached): Likewise.
3553 (remote_static_tracepoint_marker_at): Likewise.
3554 (remote_set_permissions): Likewise.
3555 (remote_detach_1, extended_remote_attach_1): Likewise.
3556 (send_g_packet, remote_vkill): Likewise.
3557 (extended_remote_disable_randomization): Likewise.
3558 (remote_add_target_side_condition): Likewise.
3559 (remote_insert_breakpoint): Likewise.
3560 (remote_remove_breakpoint): Likewise.
3561 (remote_insert_watchpoint): Likewise.
3562 (remote_remove_watchpoint): Likewise.
3563 (remote_insert_hw_breakpoint): Likewise.
3564 (remote_insert_hw_breakpoint): Likewise.
3565 (remote_remove_hw_breakpoint): Likewise.
3566 (remote_download_command_source): Likewise.
3567 (remote_download_tracepoint): Likewise.
3568 (remote_download_trace_state_variable): Likewise.
3569 (remote_disable_tracepoint): Likewise.
3570 (remote_trace_set_readonly_regions): Likewise.
3571 (remote_get_tracepoint_status): Likewise.
3572 (remote_trace_find): Likewise.
3573 (remote_get_trace_state_variable_value): Likewise.
3574 (remote_set_disconnected_tracing): Likewise.
3575 (remote_set_circular_trace_buffer): Likewise.
3576 (remote_get_min_fast_tracepoint_insn_len): Likewise.
3577 (remote_use_agent): Likewise.
3578 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
3581 2012-03-07 Pedro Alves <palves@redhat.com>
3583 * NEWS: Mention QProgramSignals.
3584 * inferior.h (update_signals_program_target): Declare.
3585 * infrun.c: (update_signals_program_target): New.
3586 (handle_command): Update the target of the new program signals
3588 * remote.c (PACKET_QProgramSignals): New enum.
3589 (last_program_signals_packet): New global.
3590 (remote_program_signals): New.
3591 (remote_start_remote): Update the target with the program signals
3593 (remote_protocol_features): Add entry for QPassSignals.
3594 (remote_open_1): Free anc clear last_program_signals_packet.
3595 (init_remote_ops): Install remote_program_signals.
3596 * target.c (update_current_target): Adjust.
3597 (target_program_signals): New.
3598 * target.h (struct target_ops) <to_program_signals>: New field.
3599 (target_program_signals): Declare.
3601 2012-03-07 Pedro Alves <palves@redhat.com>
3603 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
3606 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
3608 * m68klinux-nat.c (getregs_supplies): Make static.
3609 (getfpregs_supplies): Likewise.
3610 (have_ptrace_getregs): Likewise.
3612 2012-03-06 Joel Brobecker <brobecker@adacore.com>
3614 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
3615 in call to get_die_type_at_offset.
3617 2012-03-06 Stan Shebs <stan@codesourcery.com>
3619 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
3620 * mi/mi-cmd-disas.c: Ditto.
3621 * mi/mi-cmd-env.c: Ditto.
3622 * mi/mi-cmd-file.c: Ditto.
3623 * mi/mi-cmd-stack.c: Ditto.
3624 * mi/mi-cmd-target.c: Ditto.
3625 * mi/mi-cmd-var.c: Ditto.
3626 * mi/mi-cmds.c: Ditto.
3627 * mi/mi-cmds.h: Ditto.
3628 * mi/mi-console.c: Ditto.
3629 * mi/mi-getopt.c: Ditto.
3630 * mi/mi-getopt.h: Ditto.
3631 * mi/mi-interp.c: Ditto.
3632 * mi/mi-main.c: Ditto.
3633 * mi/mi-out.c: Ditto.
3634 * mi/mi-parse.c: Ditto.
3635 * mi/mi-parse.h: Ditto.
3636 * mi/mi-symbol-cmds.c: Ditto.
3638 * mi/mi-getopt.h: Move mi_opt struct up.
3639 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
3641 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
3643 2012-03-06 Tom Tromey <tromey@redhat.com>
3645 * proc-service.c (ps_pglobal_lookup): Set the current program
3648 2012-03-06 Pedro Alves <palves@redhat.com>
3650 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
3652 2012-03-05 Joel Brobecker <brobecker@adacore.com>
3654 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
3656 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3659 * common/linux-osdata.c (linux_common_core_of_thread): New function
3661 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
3662 call by linux_common_core_of_thread.
3663 (linux_nat_core_of_thread_1): Remove.
3664 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
3665 * linux-thread-db.c: Include linux-osdata.h.
3666 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
3667 linux_common_core_of_thread.
3669 2012-03-05 Tom Tromey <tromey@redhat.com>
3671 * value.c (value_primitive_field): Don't fetch contents for
3674 2012-03-05 Tom Tromey <tromey@redhat.com>
3676 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
3678 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
3680 * s390-nat.c: Include "gregset.h".
3682 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3684 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
3685 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
3686 (libunwind_load): New variable so_error, use it for dlerror. Try to
3687 load also LIBUNWIND_SO_7.
3689 2012-03-05 Pedro Alves <palves@redhat.com>
3691 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
3692 is not NULL, and remove resulting dead code.
3694 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
3696 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
3697 prologue to sh_analyze_prologue.
3698 (sh_analyze_prologue): Make better use of such an upper limit, and
3699 generally be more cautious about accessing memory.
3701 2012-03-05 Tom Tromey <tromey@redhat.com>
3703 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
3704 _initialize_ia64_hpux_tdep.
3706 2012-03-05 Pedro Alves <palves@redhat.com>
3710 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
3711 the register state is clear, supply explicit zero, instead of
3712 marking the register unavailable.
3714 2012-03-05 Tristan Gingold <gingold@adacore.com>
3716 * NEWS: Mention OpenVMS ia64 new target.
3718 2012-03-05 Tristan Gingold <gingold@adacore.com>
3720 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
3721 (ia64_unw_accessors, ia64_unw_rse_accessors)
3722 (ia64_libunwind_descr): Declare.
3723 * ia64-vms-tdep.c: New file.
3724 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
3725 (ia64_libunwind_descr): Make them public.
3726 * configure.tgt: Add ia64-*-*vms*.
3727 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
3728 (ALLDEPFILES): Add ia64-vms-tdep.c
3730 2012-03-05 Tristan Gingold <gingold@adacore.com>
3732 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
3733 * remote.c (PACKET_qXfer_uib): New enum value.
3734 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
3735 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
3736 (_initialize_remote): Call add_packet_config_cmd for
3739 2012-03-05 Tristan Gingold <gingold@adacore.com>
3741 * osabi.c (gdb_osabi_names): Add OpenVMS.
3742 (generic_elf_osabi_sniffer): Likewise.
3743 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
3745 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3747 Removed unused code.
3748 * libunwind-frame.c (libunwind_frame_unwind)
3749 (libunwind_frame_base_address): Remove.
3750 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
3752 2012-03-04 Yao Qi <yao@codesourcery.com>
3754 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
3755 remove trailing new line.
3756 (agent_run_command, agent_run_command): Add _ markup.
3757 (agent_capability_check): Likewise.
3759 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3761 * breakpoint.c (set_condition_evaluation_mode): Set
3762 CONDITION_EVALUATION_MODE unconditionally.
3764 2012-03-03 Yao Qi <yao@codesourcery.com>
3766 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
3767 * common/agent.h: Update declaration.
3768 * inf-child.c (inf_child_use_agent): New.
3769 (inf_child_can_use_agent): New.
3770 (inf_child_target): Initialize fields `to_use_agent'
3771 and `to_can_use_agent'.
3772 * agent.c (agent_new_objfile): New.
3773 (_initialize_agent): Add agent_new_objfile to new_objfile
3776 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3778 (linux_target_install_ops): Initialize field
3779 `to_static_tracepoint_markers_by_strid'.
3780 * remote.c (free_current_marker): Move it to ...
3781 * tracepoint.c (free_current_marker): ... here. New.
3782 (cleanup_target_stop): New.
3783 * tracepoint.h: Declare free_current_marker.
3784 * NEWS: Add one entry about `info static-tracepoint-marker'.
3786 2012-03-03 Yao Qi <yao@codesourcery.com>
3788 * common/agent.c (agent_loaded_p): New.
3789 (agent_look_up_symbols): New global.
3790 * common/agent.h: Declare agent_loaded_p.
3792 2012-03-03 Yao Qi <yao@codesourcery.com>
3794 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
3795 (agent_capability_check, agent_capability_invalidate): New.
3796 (symbol_list): New array element.
3797 * common/agent.h (enum agent_capa): New.
3798 * target.c (target_pre_inferior): Call agent_capability_invalidate.
3800 2012-03-03 Yao Qi <yao@codesourcery.com>
3802 * target.h (struct target_ops) <to_use_agent>: New field.
3803 (struct target_ops) <to_can_use_agent>: New field.
3804 (target_use_agent, target_can_use_agent): New macro.
3805 * target.c (update_current_target): Update.
3806 * remote.c: New enum `PACKET_QAgent'.
3807 (remote_protocol_features): Add a new element.
3808 (remote_use_agent, remote_can_use_agent): New.
3809 (init_remote_ops): Initialize field `can_use_agent' with
3810 remote_can_use_agent. Intiailize field `use_agent' with
3812 * common/agent.c (use_agent): New global.
3813 * common/agent.h: Declare it.
3814 * tracepoint.c (info_static_tracepoint_markers_command): Add
3816 * Makefile.in (SFILES): Add common/agent.c and agent.c.
3817 (COMMON_OBS): Add common/agent.o and agent.o
3818 (common-agent.o): New rule.
3821 2012-03-03 Yao Qi <yao@codesourcery.com>
3823 * common/agent.c: New.
3824 * common/agent.h: New.
3825 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
3827 * configure, configh.in: Regenerated.
3829 2012-03-02 Kevin Buettner <kevinb@redhat.com>
3831 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
3832 unless it exists for this architecture.
3834 2012-03-02 Joel Brobecker <brobecker@adacore.com>
3836 * language.h (struct language_defn): New "method" la_read_var_value.
3837 * findvar.c: #include "language.h".
3838 (default_read_var_value): Renames read_var_value. Rewrite
3839 function description.
3840 (read_var_value): New function.
3841 * value.h (default_read_var_value): Add prototype.
3842 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
3844 (ada_language_defn): Add entry for la_read_var_value.
3845 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
3846 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
3847 language_defn structures to add entry for new la_read_var_value
3850 2012-03-02 Tom Tromey <tromey@redhat.com>
3851 Pedro Alves <palves@redhat.com>
3853 PR breakpoints/13776:
3854 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
3856 (delete_longjmp_breakpoint_at_next_stop): New.
3857 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
3858 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
3859 before deleting the inferior. Add comments.
3860 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
3861 breakpoints immediately, but only on next stop. Move that code
3862 next to where we mark other breakpoints for deletion.
3864 2012-03-02 Joel Brobecker <brobecker@adacore.com>
3866 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
3868 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
3871 2012-03-02 Pedro Alves <palves@redhat.com>
3873 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
3875 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
3877 Fix -Wmissing-prototypes build.
3878 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
3879 * remote-sim.c (gdbsim_has_all_memory): Likewise.
3880 (gdbsim_has_memory): Likewise.
3882 2012-03-02 Yao Qi <yao@codesourcery.com>
3884 Fix -Wmissing-prototypes build.
3885 * charset.c (phony_iconv_open): Make static.
3886 (phony_iconv_close, phony_iconv): Likewise.
3887 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
3888 * i386-windows-nat.c (_initialize_i386_windows_nat): New
3890 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
3891 * ser-mingw.c (create_select_thread): Make static.
3892 * windows-termcap.c (tgetent): New prototype.
3893 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
3895 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
3897 Fix -Wmissing-prototypes build.
3898 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
3899 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
3900 (_initialize_loadable): New prototypes.
3902 2012-03-02 Doug Evans <dje@google.com>
3904 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
3905 abbrev table, read_comp_unit will do it.
3907 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3909 Fix -Wmissing-prototypes build.
3910 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
3911 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
3912 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
3913 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
3914 (_initialize_arm_symbian_tdep): New prototype.
3915 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
3916 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
3917 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
3919 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
3920 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
3922 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
3923 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
3924 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
3926 * moxie-tdep.c (moxie_process_record): Likewise.
3927 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
3928 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
3929 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
3930 (_initialize_rl78_tdep): New prototype.
3931 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
3932 (_initialize_rx_tdep): New prototype.
3933 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
3934 (_initialize_darwin_solib): New prototype.
3935 * solib-spu.c: Include solib-spu.h.
3936 (_initialize_spu_solib): New prototype.
3937 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
3938 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
3939 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
3940 (tic6x_software_single_step): Make it static.
3941 (_initialize_tic6x_tdep): New prototype.
3943 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3945 Fix -Wmissing-prototypes build.
3946 * cris-tdep.c (cris_can_use_hardware_watchpoint)
3947 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
3949 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3951 Fix -Wmissing-prototypes build.
3952 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
3953 (frv_have_stopped_data_address): Remove.
3955 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3957 Fix -Wmissing-prototypes build.
3958 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
3959 * sh-tdep.c: Include sh64-tdep.h.
3960 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
3961 * sh64-tdep.c: Include sh64-tdep.h.
3962 * sh64-tdep.h: New file.
3964 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
3966 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
3968 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
3970 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
3971 sp_regnum once the gdbarch_init_osabi hook has been called.
3973 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
3975 * mips-tdep.c (mips32_bc1_pc): New function.
3976 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
3977 BPOSGE32 and BPOSGE64 instructions.
3978 (deal_with_atomic_sequence): Likewise.
3979 (mips32_instruction_has_delay_slot): Likewise.
3981 2012-03-01 Maciej W. Rozycki <macro@mips.com>
3982 Chris Dearman <chris@mips.com>
3983 Maciej W. Rozycki <macro@codesourcery.com>
3984 Joseph Myers <joseph@codesourcery.com>
3986 * features/mips-dsp.xml: New file.
3987 * features/mips64-dsp.xml: New file.
3988 * features/mips-dsp-linux.xml: New file.
3989 * features/mips64-dsp-linux.xml: New file.
3990 * features/Makefile (WHICH): Add mips-dsp-linux and
3992 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
3993 * features/mips-dsp-linux.c: New file.
3994 * features/mips64-dsp-linux.c: New file.
3995 * regformats/mips-dsp-linux.dat: New file.
3996 * regformats/mips64-dsp-linux.dat: New file.
3997 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
3999 (mips64_linux_register_addr): Likewise.
4000 (mips64_linux_regsets_fetch_registers): Likewise.
4001 (mips64_linux_regsets_store_registers): Likewise.
4002 (mips64_linux_fetch_registers): Update call to
4003 mips64_linux_regsets_fetch_registers.
4004 (mips64_linux_store_registers): Update call to
4005 mips64_linux_regsets_store_registers.
4006 (mips_linux_read_description): Probe for DSP registers.
4007 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
4008 and initialize_tdesc_mips64_dsp_linux.
4009 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
4010 Remove padding of no longer used embedded register slots.
4011 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
4012 (MIPS_RESTART_REGNUM): Redefine enum value.
4013 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
4015 (mips_tx39_reg_names): Likewise.
4016 (mips_linux_reg_names): New array of register names for Linux
4018 (mips_register_name): Check for a null pointer in
4019 mips_processor_reg_names and return an empty string.
4020 (mips_register_type): Exclude embedded registers for the IRIX
4022 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
4023 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
4025 (mips_stab_reg_to_regnum): Handle DSP accumulators.
4026 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
4027 (mips_gdbarch_init): Likewise. Initialize internal register
4028 indices for the Linux ABI. Use dynamic numbers to refer to
4029 registers, as applicable, while parsing the target description.
4030 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
4032 2012-03-01 Joel Brobecker <brobecker@adacore.com>
4034 * frame.h (read_frame_register_unsigned): Fix typo in function
4037 2012-03-01 Pedro Alves <palves@redhat.com>
4039 * jit-reader.in [!__cplusplus]
4040 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
4042 2012-03-01 Pedro Alves <palves@redhat.com>
4044 * configure.ac (build_warnings): Add -Wmissing-prototypes.
4045 * configure: Regenerate.
4047 2012-03-01 Pedro Alves <palves@redhat.com>
4049 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
4050 * breakpoint.c (create_exception_master_breakpoint, trace_command)
4051 (ftrace_command, strace_command): Make static.
4052 * d-lang.c (_initialize_d_language): Declare.
4053 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
4054 * dwarf2loc.c (_initialize_dwarf2loc):
4055 * dwarf2read.c (process_psymtab_comp_unit): Make static.
4056 * exec.c (exec_get_section_table): Make static.
4057 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
4058 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
4059 * inferior.c (remove_inferior_command, add_inferior_command)
4060 (clone_inferior_command): Make static.
4061 * linux-nat.c (linux_nat_thread_address_space)
4062 (linux_nat_core_of_thread): Make static.
4063 * linux-tdep.c (_initialize_linux_tdep): Declare.
4064 * objc-lang.c (_initialize_objc_lang): Declare.
4065 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
4067 (_initialize_opencl_language): Declare.
4068 * record.c (_initialize_record): Declare.
4069 * remote.c (demand_private_info, remote_get_tib_address)
4070 (remote_supports_cond_tracepoints)
4071 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
4073 * skip.c (_initialize_step_skip): Declare.
4074 * symtab.c (skip_prologue_using_lineinfo): Make static.
4075 * tracepoint.c (delete_trace_state_variable)
4076 (trace_variable_command, delete_trace_variable_command)
4077 (get_uploaded_tsv, find_matching_tracepoint_location)
4078 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
4080 * value.c (pack_unsigned_long): Make static.
4081 * varobj.c (varobj_ensure_python_env): Make static.
4082 * windows-tdep.c (_initialize_windows_tdep): Declare.
4083 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
4085 2012-03-01 Pedro Alves <palves@redhat.com>
4087 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
4089 (linux_init_abi): Install it as has_shared_address_space gdbarch
4092 2012-03-01 Pedro Alves <palves@redhat.com>
4094 * observer.c (observer_test_first_notification_function)
4095 (observer_test_second_notification_function)
4096 (observer_test_third_notification_function): Add declarations.
4098 2012-03-01 Pedro Alves <palves@redhat.com>
4100 * common/signals.c (default_target_signal_to_host)
4101 (default_target_signal_from_host): Move ...
4102 * arch-utils.c: ... here.
4103 * arch-utils.h (default_target_signal_to_host)
4104 (default_target_signal_from_host): Declare.
4106 * common/signals.c (target_signal_from_command): Move ...
4107 * infrun.c: ... here.
4108 * inferior.h (target_signal_from_command): Declare.
4109 * target.h (target_signal_from_command)
4110 (default_target_signal_from_host, default_target_signal_to_host):
4111 Delete declarations.
4113 * common/signals.c (_initialize_signals): Delete.
4115 2012-03-01 Pedro Alves <palves@redhat.com>
4117 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
4118 both __cplusplus and !__cplusplus.
4120 2012-03-01 Pedro Alves <palves@redhat.com>
4122 * psymtab.c (find_and_open_source): Delete declaration.
4123 * source.c (find_and_open_source): Move comment ...
4124 * source.h (find_and_open_source): ... to this new declaration.
4126 2012-03-01 Pedro Alves <palves@redhat.com>
4128 * inline-frame.c: Include inline-frame.h.
4130 2012-03-01 Pedro Alves <palves@redhat.com>
4132 * tui/tui-data.c (set_gen_win_origin): Delete.
4133 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
4134 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
4136 2012-03-01 Pedro Alves <palves@redhat.com>
4138 * remote.c (encode_actions): Delete declaration.
4139 * tracepoint.c (encode_actions): Make extern.
4140 * tracepoint.h (encode_actions): Declare.
4142 2012-03-01 Pedro Alves <palves@redhat.com>
4144 * python/py-breakpoint.c: Include python.h.
4145 * python/py-continueevent.c (create_continue_event_object): Make
4147 * python/py-lazy-string.c (stpy_get_type): Make static.
4148 * python/py-newobjfileevent.c (create_new_objfile_event_object):
4150 * python/py-utils.c (unicode_to_target_python_string): Make
4152 * python/py-value.c: Include python.h.
4154 2012-03-01 Pedro Alves <palves@redhat.com>
4156 * inferior.c (delete_threads_of_inferior): Delete.
4158 2012-03-01 Pedro Alves <palves@redhat.com>
4160 Import fallback definitions from glibc.
4162 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
4163 ps_prochandle): Forward declare.
4164 (ps_err_e): Use glibc's comments.
4165 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
4166 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4167 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
4168 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
4169 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
4170 (struct ps_prochandle): Adjust comment.
4172 2012-03-01 Pedro Alves <palves@redhat.com>
4174 * ada-lang.c (ada_modulus_from_name): Delete.
4175 * ada-lex.l (lexer_init): Make static.
4177 2012-03-01 Pedro Alves <palves@redhat.com>
4181 * frame.c (read_frame_register_unsigned): New.
4182 * frame.h (read_frame_register_unsigned): Declare.
4183 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
4185 (print_i387_control_word): New parameter `control_p'. Handle it.
4186 (i387_print_float_info): Handle unavailable float registers.
4188 2012-03-01 Keith Seitz <keiths@redhat.com>
4190 * linespec.c (decode_line_2): Sort the list of methods
4191 alphabetically before presenting the user with a selection
4194 2012-03-01 Doug Evans <dje@google.com>
4196 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
4198 (dwarf2_read_abbrevs): Remove corresponding initialization.
4200 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
4202 * NEWS: Mention new python command class gdb.COMMAND_USER.
4203 * cli/cli-cmds.c (show_user): Print error when used on a python
4205 (init_cli_cmds): Update documentation strings for "show user" and
4206 "set/show max-user-call-depth" to clarify that it does not apply to
4208 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
4210 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
4212 * top.c (execute_command): Only execute a user-defined command as a
4213 legacy macro if c->user_commands is set.
4215 2012-03-01 Tom Tromey <tromey@redhat.com>
4217 * valprint.h (struct generic_val_print_decorations): New.
4218 (generic_val_print): Declare.
4219 * valprint.c (generic_val_print): New function.
4220 * p-valprint.c (p_decorations): New global.
4221 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
4222 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
4223 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
4224 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
4225 * m2-valprint.c (m2_decorations): New global.
4226 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
4227 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
4228 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
4229 TYPE_CODE_ERROR>: Call generic_val_print.
4230 * f-valprint.c (f_decorations): New global.
4231 (f_val_print): Use print_function_pointer_address.
4232 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
4233 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
4234 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
4236 * c-valprint.c (c_decorations): New global.
4237 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
4238 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
4239 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
4240 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
4241 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
4242 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
4245 2012-03-01 Tom Tromey <tromey@redhat.com>
4247 * valprint.c (val_print): Update.
4248 * p-valprint (pascal_val_print): Return void.
4249 * p-lang.h (pascal_val_print): Return void.
4250 * m2-valprint.c (m2_val_print): Return void.
4251 * m2-lang.h (m2_val_print): Return void.
4252 * language.h (struct language_defn) <la_val_print>: Return void.
4253 * language.c (unk_lang_val_print): Return void.
4254 * jv-valprint.c (java_val_print): Return void.
4255 * jv-lang.h (java_val_print): Return void.
4256 * f-valprint.c (f_val_print): Return void.
4257 * f-lang.h (f_val_print): Return void.
4258 * d-valprint.c (d_val_print): Return void.
4259 (dynamic_array_type): Update.
4260 * d-lang.h (d_val_print): Return void.
4261 * c-valprint.c (c_val_print): Return void.
4262 * c-lang.h (c_val_print): Return void.
4263 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
4265 * ada-lang.h (ada_val_print): Return void.
4267 2012-03-01 Tom Tromey <tromey@redhat.com>
4269 * value.h (val_print): Return void.
4270 * valprint.c (val_print): Return void.
4272 2012-03-01 Tom Tromey <tromey@redhat.com>
4274 * value.h (common_val_print): Return void.
4275 * valprint.c (common_val_print): Return void.
4277 2012-03-01 Tom Tromey <tromey@redhat.com>
4279 * value.h (value_print): Return void.
4280 * valprint.c (value_print): Return void.
4281 * p-valprint.c (pascal_value_print): Return void.
4282 * p-lang.h (pascal_value_print): Return void.
4283 * language.h (struct language_defn) <la_value_print>: Return
4285 * language.c (unk_lang_value_print): Return void.
4286 * jv-valprint.c (java_value_print): Return void.
4287 * jv-lang.h (java_value_print): Return void.
4288 * f-valprint.c (c_value_print): Don't declare.
4290 * c-valprint.c (c_value_print): Return void.
4291 * c-lang.h (c_value_print): Return void.
4292 * ada-valprint.c (ada_value_print): Return void.
4293 * ada-lang.h (ada_value_print): Return void.
4295 2012-03-01 Tom Tromey <tromey@redhat.com>
4297 * value.c (value_primitive_field): Handle virtual base classes.
4299 2012-03-01 Tom Tromey <tromey@redhat.com>
4301 * gdbtypes.h (struct vbase): Remove.
4303 2012-03-01 Tom Tromey <tromey@redhat.com>
4305 * c-valprint.c (print_function_pointer_address): Move...
4306 * valprint.c: ... here. Make non-static.
4307 * m2-valprint.c (print_function_pointer_address): Remove.
4308 * valprint.h (print_function_pointer_address): Declare.
4310 2012-03-01 Joel Brobecker <brobecker@adacore.com>
4312 * NEWS: Document the fact that one can provide a condition when
4313 creating an Ada exception catchpoint.
4315 2012-03-01 Tom Tromey <tromey@redhat.com>
4317 * valprint.c (val_print_type_code_flags): Fix placement of
4320 2012-03-01 Joel Brobecker <brobecker@adacore.com>
4322 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
4323 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
4324 environment variable before calling update-copyright.
4326 2012-03-01 Joel Brobecker <brobecker@adacore.com>
4328 * gnulib/extra/update-copyright: Update to the latest from
4329 gnulib's git repository.
4330 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
4331 variable to 2 instead of 1.
4333 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4335 * varobj.c (c_value_of_variable): Remove dead code.
4337 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4339 * ada-lex.p (processId): Do not modify already encoded IDs.
4340 Update function documentation.
4342 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4344 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
4345 "name" with "struct symbol *name_sym".
4346 * ada-exp.y (write_var_or_type): Update call to
4347 ada_find_renaming_symbol.
4348 "name" with "struct symbol *name_sym". Adjust Implementation
4349 accordingly. Adjust the function documentation.
4351 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4353 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
4354 * ada-lang.c (ada_find_any_type): Add advance declaration.
4355 Make static. Replace ada_find_any_symbol by
4356 ada_find_any_type_symbol.
4357 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
4358 Improve function description. Make static.
4359 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
4360 Replace ada_find_any_symbol by ada_find_any_type_symbol.
4362 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4364 * ada-lang.c (struct tag_args): Delete.
4365 (ada_get_tsd_type): Function body moved up in source file.
4366 (ada_tag_name_1, ada_tag_name_2): Delete.
4367 (ada_get_tsd_from_tag): New function.
4368 (ada_tag_name_from_tsd): New function.
4369 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
4370 to determine the tag name.
4372 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4374 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
4376 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
4379 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4381 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
4383 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4385 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
4388 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4390 * ada-lang.c (constrained_packed_array_type): If there is a
4391 parallel XA type, use it to determine the array index type.
4393 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4395 * ada-valprint.c (ada_val_print_1): If our value is a reference
4396 to an array descriptor, dereference it before converting it
4399 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4401 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
4402 creating fixed value.
4403 (ada_value_ind, ada_coerce_ref, assign_component)
4404 (ada_evaluate_subexp): Remove call to unwrap_value before
4405 call to ada_to_fixed_value.
4407 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4409 * ada-lang.c (to_fixed_array_type): Set result's type name.
4411 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4413 * ada-lang.c (catch_ada_exception_command_split): Add new
4414 argument cond_string. Add support for condition at end of
4415 "catch exception" commands.
4416 (ada_decode_exception_location): Add new argument cond_string.
4417 Update call to catch_ada_exception_command_split.
4418 (create_ada_exception_catchpoint): Add new argument cond_string.
4419 Set the breakpoint condition if needed.
4420 (catch_ada_exception_command): Update call to
4421 ada_decode_exception_location.
4422 (ada_decode_assert_location): Add function documentation.
4423 Add support for condition at end of "catch assert" command.
4424 (catch_assert_command): Update calls to ada_decode_assert_location
4425 and create_ada_exception_catchpoint.
4427 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4429 Fix disp-step-syscall.exp: fork: single step over fork.
4430 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
4431 (i386_linux_get_syscall_number_from_regcache): ... here, new function
4432 comment, change parameters gdbarch and ptid to regcache. Remove
4433 parameter regcache, initialize gdbarch from regcache here.
4434 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
4436 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
4438 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
4439 'syscall'. Make the 'int' check more strict.
4441 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4443 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
4444 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
4445 (i386_linux_intx80_sysenter_syscall_record): ... here.
4446 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
4447 Use the renamed function name.
4449 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4451 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
4452 * breakpoint.c (until_break_command): Likewise.
4453 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
4454 * infcall.c (call_function_by_hand): Likewise.
4455 * infcmd.c (finish_forward): Likewise.
4456 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4458 2012-02-28 Tristan Gingold <gingold@adacore.com>
4460 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
4461 avoid variable assignments inside condition.
4463 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4465 Fix static analysis issue found by cppcheck.
4466 * microblaze-tdep.c (microblaze_extract_return_value): Fix
4467 uninitialized BUF for size 2.
4469 2012-02-27 Chris Dearman <chris@mips.com>
4470 Nathan Froyd <froydnj@codesourcery.com>
4471 Maciej W. Rozycki <macro@codesourcery.com>
4473 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
4474 (mips16_instruction_has_delay_slot): Likewise.
4475 (mips_segment_boundary): Likewise.
4476 (mips_adjust_breakpoint_address): Likewise.
4477 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
4479 2012-02-27 Maciej W. Rozycki <macro@mips.com>
4480 Maciej W. Rozycki <macro@codesourcery.com>
4482 * infrun.c (handle_inferior_event): Don't proceed through
4483 shared library trampolines if stepping at the machine
4486 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
4488 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
4491 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
4493 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
4494 (sh_stub_unwind_sniffer): New functions.
4495 (sh_stub_unwind): New variable.
4496 (sh_gdbarch_init): Wire everything.
4498 2012-02-27 Pedro Alves <palves@redhat.com>
4500 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
4501 (linux_nat_post_attach_wait): Adjust to use
4502 linux_proc_pid_is_stopped.
4503 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
4504 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
4505 based on pid_is_stopped from both linux-nat.c and
4506 gdbserver/linux-low.c, and renamed.
4508 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
4510 * remote.c (remote_watchpoint_addr_within_range): New function.
4511 (init_remote_ops): Use it.
4513 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
4515 * target.h (target_watchpoint_addr_within_range): Document macro.
4517 2012-02-24 Pedro Alves <palves@redhat.com>
4519 * stack.c (set_last_displayed_sal): Issue internal_error instead
4520 of warning, and issue it after clearing the last displayed sal.
4522 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4523 Pedro Alves <palves@redhat.com>
4525 * breakpoint.c (until_break_command): Install breakpoints after
4526 all frame manipulations.
4528 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
4530 * remote.c (remote_supports_cond_breakpoints): New forward
4532 (remote_add_target_side_condition): New function.
4533 (remote_insert_breakpoint): Add target-side breakpoint
4534 conditional if supported.
4535 (remote_insert_hw_breakpoint): Likewise.
4536 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
4539 * target.c (update_current_target): Inherit
4540 to_supports_evaluation_of_breakpoint_conditions.
4541 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
4543 * target.h (struct target_ops)
4544 <to_supports_evaluation_of_breakpoint_conditions>: New field.
4545 (target_supports_evaluation_of_breakpoint_conditions): New #define.
4547 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
4548 (condition_evaluation_both, condition_evaluation_auto,
4549 condition_evaluation_host, condition_evaluation_target,
4550 condition_evaluation_enums, condition_evaluation_mode_1,
4551 condition_evaluation_mode): New static globals.
4552 (translate_condition_evaluation_mode): New function.
4553 (breakpoint_condition_evaluation_mode): New function.
4554 (gdb_evaluates_breakpoint_condition_p): New function.
4555 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
4556 (mark_breakpoint_modified): New function.
4557 (mark_breakpoint_location_modified): New function.
4558 (set_condition_evaluation_mode): New function.
4559 (show_condition_evaluation_mode): New function.
4560 (bp_location_compare_addrs): New function.
4561 (get_first_location_gte_addr): New helper function.
4562 (set_breakpoint_condition): Free condition bytecode if locations
4563 has become unconditional. Call mark_breakpoint_modified (...).
4564 (condition_command): Call update_global_location_list (1) for
4566 (breakpoint_xfer_memory): Use is_breakpoint (...).
4567 (is_breakpoint): New function.
4568 (parse_cond_to_aexpr): New function.
4569 (build_target_condition_list): New function.
4570 (insert_bp_location): Handle target-side conditional
4571 breakpoints and call build_target_condition_list (...).
4572 (update_inserted_breakpoint_locations): New function.
4573 (insert_breakpoint_locations): Handle target-side conditional
4575 (bpstat_check_breakpoint_conditions): Add comment.
4576 (bp_condition_evaluator): New function.
4577 (bp_location_condition_evaluator): New function.
4578 (print_breakpoint_location): Print information on where the condition
4580 (print_one_breakpoint_location): Likewise.
4581 (init_bp_location): Call mark_breakpoint_location_modified (...) for
4582 breakpoint location.
4583 (force_breakpoint_reinsertion): New functions.
4584 (update_global_location_list): Handle target-side breakpoint
4586 Reinsert locations that are already inserted if conditions have
4588 (bp_location_dtor): Free agent expression bytecode.
4589 (disable_breakpoint): Call mark_breakpoint_modified (...).
4590 Call update_global_location_list (...) with parameter 1 for breakpoints.
4591 (disable_command): Call mark_breakpoint_location_modified (...).
4592 Call update_global_location_list (...) with parameter 1 for breakpoints.
4593 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
4594 (enable_command): mark_breakpoint_location_modified (...).
4595 (_initialize_breakpoint): Update documentation and add
4596 condition-evaluation breakpoint subcommand.
4598 * breakpoint.h: Include ax.h.
4599 (condition_list): New data structure.
4600 (condition_status): New enum.
4601 (bp_target_info) <cond_list>: New field.
4602 (bp_location) <condition_changed, cond_bytecode>: New fields.
4603 (is_breakpoint): New prototype.
4605 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
4607 * remote.c (remote_state) <cond_breakpoints>: New field.
4608 (PACKET_ConditionalBreakpoints): New enum.
4609 (remote_cond_breakpoint_feature): New function.
4610 (remote_protocol_features): Add new ConditionalBreakpoints entry.
4611 (remote_supports_cond_breakpoints): New function.
4612 (_initialize_remote): Add new packet configuration for
4613 target-side conditional breakpoints.
4615 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
4617 * NEWS: Mention target-side conditional breakpoint support,
4618 new condition-evaluation breakpoint subcommand and remote
4621 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
4623 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
4626 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
4628 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
4629 (after_prologue): Remove.
4631 2012-02-23 Tom Tromey <tromey@redhat.com>
4633 * jv-valprint.c (java_val_print): Remove dead code.
4635 2012-02-23 Tristan Gingold <gingold@adacore.com>
4637 * ada-tasks.c (struct ada_tasks_inferior_data): Add
4638 known_tasks_element and known_tasks_length fields.
4639 (read_known_tasks_array): Change argument type. Use pointer type
4640 and number of elements from DATA. Adjust.
4641 (read_known_tasks_list): Likewise.
4642 (get_known_tasks_addr): Remove.
4643 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
4644 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
4645 type and array length. Merge former get_known_tasks_addr code.
4647 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4650 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
4651 it after set_momentary_breakpoint.
4653 2012-02-22 Sterling Augustine <saugustine@google.com>
4656 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
4658 2012-02-22 Gary Benson <gbenson@redhat.com>
4660 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
4661 (find_slot_in_mapped_hash): Likewise.
4663 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4666 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
4667 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
4668 * configure: Regenerate.
4670 2012-02-21 Tristan Gingold <gingold@adacore.com>
4671 Pedro Alves <palves@redhat.com>
4673 * ia64-tdep.c: Do not include libunwind-ia64.h.
4674 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
4675 Include libunwind-ia64.h instead of libunwind.h.
4676 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
4677 for libunwind.h existence.
4678 * configure, config.in: Regenerate.
4680 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
4682 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
4683 instead of value_rtti_target_type.
4684 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
4685 instead of value_rtti_target_type.
4686 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
4687 value_rtti_target_type.
4688 * valops.c (value_ind): Extract function readjust_indirect_value_type.
4689 (value_rtti_target_type): Rename to ...
4690 (value_rtti_indirect_type): ... here and make it indirect. Update
4692 * value.c (readjust_indirect_value_type): New function.
4693 (coerce_ref): Support for enclosing type setting for references
4694 with readjust_indirect_value_type.
4695 * value.h (readjust_value_type): New declaration.
4696 (value_rtti_target_type): Rename to ...
4697 (value_rtti_indirect_type): ... here.
4699 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
4701 * MAINTAINERS (Write After Approval): Add myself to the list.
4703 2012-02-20 Doug Evans <dje@google.com>
4705 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
4706 Rename objfile_p_char parameter to objfilep.
4707 (build_objfile_section_table): Result is now void. All callers
4709 * objfiles.h (struct objfile): Tweak comments, whitespace.
4710 (build_objfile_section_table): Update.
4712 * elfread.c (elf_symfile_segments): Fix warning text.
4714 2012-02-20 Tom Tromey <tromey@redhat.com>
4717 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
4718 particular set of file names once.
4719 (dw2_map_symbol_filenames): Likewise.
4721 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4724 * main.c (write_files): Remove the declaration.
4725 (external_editor_command): Move the declaration ...
4726 [GDBTK] (external_editor_command): ... here. Fix the comment.
4728 2012-02-20 Tom Tromey <tromey@redhat.com>
4730 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
4733 2012-02-20 Tristan Gingold <gingold@adacore.com>
4735 * darwin-nat.h (enum darwin_msg_state): Add comments.
4737 2012-02-20 Tristan Gingold <gingold@adacore.com>
4739 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
4742 2012-20-18 Joel Brobecker <brobecker@adacore.com>
4744 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
4745 between function description and implementation.
4747 2012-02-17 Tom Tromey <tromey@redhat.com>
4750 * python/py-event.c (event_object_getset): New global.
4751 (event_object_type): Reference it.
4752 * python/py-type.c (field_object_getset): New global.
4753 (field_object_type): Reference it.
4754 * python/python-internal.h (gdb_py_generic_dict): Declare.
4755 * python/py-utils.c (gdb_py_generic_dict): New function.
4757 2012-02-17 Tristan Gingold <gingold@adacore.com>
4759 * solib-darwin.c (darwin_current_sos): Check magic and filetype
4761 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
4763 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
4764 TYPE_CALLING_CONVENTION annotation.
4766 2012-02-16 Kevin Buettner <kevinb@redhat.com>
4768 * MAINTAINERS: Add rx to target ISA section.
4769 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
4770 (ALLDEPFILES): Add rx-tdep.c.
4772 2012-02-16 Tom Tromey <tromey@redhat.com>
4774 * symfile.c (symbol_file_add_main_1): Use inferior's
4776 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
4777 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
4779 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
4781 (follow_exec): Use inferior's symfile_flags.
4782 * inferior.h (struct inferior) <symfile_flags>: New field.
4784 2012-02-16 Mike Frysinger <vapier@gentoo.org>
4787 * remote-sim.c (gdbsim_create_inferior): Call error() when
4788 sim_create_inferior() fails.
4790 2012-02-16 Josh Matthews <josh@joshmatthews.net>
4792 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
4794 2012-02-16 Tom Tromey <tromey@redhat.com>
4797 * thread.c (struct current_thread_cleanup) <was_removable>: New
4799 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
4800 (make_cleanup_restore_current_thread): Initialize new field.
4802 2012-02-15 Kevin Buettner <kevinb@redhat.com>
4804 * MAINTAINERS: Add rl78 to target ISA section.
4805 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
4806 (ALLDEPFILES): Add rl78-tdep.c.
4807 * NEWS: Mention rl78 as a new target.
4809 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
4811 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
4813 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
4815 2012-02-15 Tom Tromey <tromey@redhat.com>
4818 * infcmd.c (registers_info): Print just the current register's
4821 2012-02-15 Tom Tromey <tromey@redhat.com>
4823 * python/py-symbol.c (sympy_value): Use _().
4825 2012-02-15 Pedro Alves <palves@redhat.com>
4827 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
4828 output to be like native targets'.
4829 (remote_pid_to_str): Special case the null ptid.
4831 2012-02-14 Stan Shebs <stan@codesourcery.com>
4833 * NEWS: Mention enable count command.
4834 * breakpoint.h (struct breakpoint): New field enable_count.
4835 * breakpoint.c (enable_breakpoint_disp): Add count argument.
4836 (enable_breakpoint): Add arg to call.
4837 (struct disp_data): New struct.
4838 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
4839 (do_map_enable_once_breakpoint): Create a struct and pass it.
4840 (do_map_enable_delete_breakpoint): Ditto.
4841 (do_map_enable_count_breakpoint): New function.
4842 (enable_count_command): New function.
4843 (bpstat_stop_status): Decrement enable_count.
4844 (print_one_breakpoint_location): Report enable count.
4845 (_initialize_breakpoint): Add enable count command.
4847 2012-02-14 Kevin Buettner <kevinb@redhat.com>
4849 * rl78-tdep.c (reggroups.h): Include.
4850 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
4851 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
4852 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
4853 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
4854 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
4855 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
4856 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
4857 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
4858 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
4859 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
4860 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
4861 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
4862 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
4863 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
4864 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
4865 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
4866 beginning of register list.
4867 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
4868 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
4869 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
4870 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
4871 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
4872 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
4873 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
4874 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
4875 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
4876 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
4877 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
4878 the pseudo registers. Rearrange other pseudo registers too so
4879 that the bank registers appear at the end.
4880 (rl78_register_type): Account for the fact that the byte sized
4881 bank registers are now pseudo-registers.
4882 (rl78_register_name): Rearrange the register name array. Make
4883 initial set of raw banked registers inaccessible.
4884 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
4885 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
4886 case for copying bytes back and forth between raw and pseudo
4887 versions of the banked registers. Update other cases to reflect
4889 (rl78_return_value): Update to account for changed names of
4891 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
4892 rl78_register_sim_regno().
4894 2012-02-14 Kevin Buettner <kevinb@redhat.com>
4896 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
4897 the name parameter being passed to find_pc_partial_function().
4899 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4901 * MAINTAINERS: Step down from being ia64 target maintainer.
4903 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4905 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
4906 compilation warning.
4908 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4910 Fix crash on loaded shlibs without loaded exec_bfd.
4911 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
4912 (set_section_command): Replace exec_bfd by p->bfd.
4914 2012-02-10 Tom Tromey <tromey@redhat.com>
4916 * linespec.c (decode_line_internal): Skip symtabs_from_filename
4917 when we have a C++ qualified name.
4919 2012-02-10 Pedro Alves <palves@redhat.com>
4921 * inferior.c (inferior_pid_to_str): New.
4922 (print_inferior, inferior_command): Use it.
4924 2012-02-10 Pedro Alves <palves@redhat.com>
4926 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
4928 * configure: Regenerate.
4930 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4932 * linespec.c (decode_line_internal): Fix comment correctness.
4934 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
4937 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
4938 * amd64bsd-nat.c: Add support for debug registers (adapted from
4940 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
4941 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
4942 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
4943 (amd64bsd_dr_get_control): New functions.
4944 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
4945 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
4946 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
4947 watchpoints initialization.
4948 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
4950 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4952 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
4954 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
4956 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4958 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
4960 2012-02-08 Joel Brobecker <brobecker@adacore.com>
4962 * language.h (symbol_name_cmp_ftype): Renames
4963 symbol_name_match_p_ftype.
4964 (struct language_defn)[la_get_symbol_name_cmp]: Renames
4965 la_get_symbol_name_match_p.
4966 * ada-lang.c (ada_get_symbol_name_cmp): Renames
4967 ada_get_symbol_name_match_p. Update comment.
4968 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
4969 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
4970 Renames symbol_name_match_p. Update field type.
4971 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
4972 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
4973 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
4974 "la_get_symbol_name_cmp" in comments.
4975 * language.c: Likewise.
4977 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4979 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
4981 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
4982 (amd64_sol2_gregset32_reg_offs): Likewise.
4984 2012-02-08 Joel Brobecker <brobecker@adacore.com>
4986 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
4987 of the returned BFD is allocated by GDB.
4989 2012-02-07 Tom Tromey <tromey@redhat.com>
4992 * python/python-internal.h (frame_object_type): Declare.
4993 * python/py-symbol.c (sympy_needs_frame): New function.
4994 (sympy_value): New function.
4995 (symbol_object_getset): Add "needs_frame".
4996 (symbol_object_methods): Add "value".
4997 * python/py-frame.c (frame_object_type): No longer static.
4999 2012-02-07 Tom Tromey <tromey@redhat.com>
5002 * python/py-symbol.c (sympy_line): New function.
5003 (symbol_object_getset): Add "line".
5005 2012-02-07 Tom Tromey <tromey@redhat.com>
5007 * charset.c (find_charset_names): Check 'in' against NULL.
5009 2012-02-06 Doug Evans <dje@google.com>
5011 * gdbtypes.h (struct main_type): Change type of name,tag_name,
5012 and fields.name members from char * to const char *. All uses updated.
5013 (struct cplus_struct_type): Change type of fn_fieldlists.name member
5014 from char * to const char *. All uses updated.
5015 (type_name_no_tag): Update.
5016 (lookup_unsigned_typename, lookup_signed_typename): Update.
5017 * gdbtypes.c (type_name_no_tag): Change result type
5018 from char * to const char *. All callers updated.
5019 (lookup_unsigned_typename, lookup_signed_typename): Change type of
5020 name parameter from char * to const char *.
5021 * symtab.h (struct cplus_specific): Change type of demangled_name
5022 member from char * to const char *. All uses updated.
5023 (struct general_symbol_info): Change type of name and
5024 mangled_lang.demangled_name members from char * to const char *.
5026 (symbol_get_demangled_name, symbol_natural_name): Update.
5027 (symbol_demangled_name, symbol_search_name): Update.
5028 * symtab.c (symbol_get_demangled_name): Change result type
5029 from char * to const char *. All callers updated.
5030 (symbol_natural_name, symbol_demangled_name): Ditto.
5031 (symbol_search_name): Ditto.
5032 (completion_list_add_name): Change type of symname,sym_text,
5033 text,word parameters from char * to const char *.
5034 (completion_list_objc_symbol): Change type of sym_text,
5035 text,word parameters from char * to const char *.
5036 * ada-lang.c (find_struct_field): Change type of name parameter
5037 from char * to const char *.
5038 (encoded_ordered_before): Similarly for N0,N1 parameters.
5039 (old_renaming_is_invisible): Similarly for function_name parameter.
5040 (ada_type_name): Change result type from char * to const char *.
5041 All callers updated.
5042 * ada-lang.h (ada_type_name): Update.
5043 * buildsym.c (hashname): Change type of name parameter
5044 from char * to const char *.
5045 * buildsym.h (hashname): Update.
5046 * dbxread.c (end_psymtab): Change type of include_list parameter
5047 from char ** to const char **.
5048 * dwarf2read.c (determine_prefix): Change result type
5049 from char * to const char *. All callers updated.
5050 * f-lang.c (find_common_for_function): Change type of name, funcname
5051 parameters from char * to const char *.
5052 * f-lang.c (find_common_for_function): Update.
5053 * f-valprint.c (list_all_visible_commons): Change type of funcname
5054 parameters from char * to const char *.
5055 * gdbarch.sh (static_transform_name): Change type of name parameter
5056 and result from char * to const char *.
5057 * gdbarch.c: Regenerate.
5058 * gdbarch.h: Regenerate.
5059 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
5060 of name parameter from char * to const char *.
5061 * jv-lang.c (java_primitive_type_from_name): Ditto.
5062 (java_demangled_signature_length): Similarly for signature parameter.
5063 (java_demangled_signature_copy): Ditto.
5064 (java_demangle_type_signature): Ditto.
5065 * jv-lang.h (java_primitive_type_from_name): Update.
5066 (java_demangle_type_signature): Update.
5067 * objc-lang.c (specialcmp): Change type of a,b parameters
5068 from char * to const char *.
5069 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
5070 from char * to const char *. All callers updated.
5071 * p-lang.h (is_pascal_string_type): Update.
5072 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
5073 of name parameter from char * to const char *.
5074 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
5075 * utils.c (fprintf_symbol_filtered): Ditto.
5076 * defs.h (fprintf_symbol_filtered): Update.
5077 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
5078 * stabsread.h (end_psymtab): Update.
5079 * stack.c (find_frame_funname): Change type of funname parameter
5080 from char ** to const char **.
5081 * stack.h (find_frame_funname): Update.
5082 * typeprint.c (type_print): Change type of varstring parameter
5083 from char * to const char *.
5084 * value.h (type_print): Update.
5085 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
5086 from char * to const char *. All callers updated.
5087 (xcoff_end_psymtab): Change type of include_list parameter
5088 from char ** to const char **. All callers updated.
5089 (swap_sym): Similarly for name parameter. All callers updated.
5090 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
5092 (process_coff_symbol): Use xstrdup.
5093 * stabsread.c (stabs_method_name_from_physname): Renamed from
5094 update_method_name_from_physname. Change result type from void
5095 to char *. All callers updated.
5096 (read_member_functions): In has_destructor case, store name in objfile
5097 obstack instead of malloc space. In !has_stub case, fix mem leak.
5099 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
5101 * configure: Rebuild.
5102 * configure.ac: Put -L../bfd and -L../libiberty at the front of
5105 2012-02-03 Kevin Buettner <kevinb@redhat.com>
5107 * configure.tgt (rl78-*-elf): New target.
5108 * rl78-tdep.c: New file.
5110 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5112 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
5113 and continue the loop. Add QUIT statement.
5115 2012-02-03 Tom Tromey <tromey@redhat.com>
5118 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
5119 bfd_lookup_symbol_from_symtab.
5120 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
5121 gdb_bfd_lookup_symbol_from_symtab.
5123 2012-02-03 Joel Brobecker <brobecker@adacore.com>
5125 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
5126 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
5127 symbol. Add assertion that sym2 is never NULL.
5129 2012-02-02 Doug Evans <dje@google.com>
5131 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
5132 "name" parameter to const char ** from char **. All callers updated.
5133 (find_pc_partial_function): Ditto.
5134 (cache_pc_function_name): Change type to const char * from char *.
5135 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
5136 (find_pc_partial_function): Update.
5137 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
5138 type of "name" parameter to const char * from char *.
5140 * arch-utils.c (generic_in_solib_return_trampoline): Change
5141 type of "name" parameter to const char * from char *.
5142 * arch-utils.h (generic_in_solib_return_trampoline): Update.
5143 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
5144 type of "name" parameter to const char * from char *.
5145 * gdbarch.sh (in_solib_return_trampoline): Ditto.
5146 * gdbarch.c: Regenerate.
5147 * gdbarch.h: Regenerate.
5148 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
5149 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
5150 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
5151 type of "name" parameter to const char * from char *.
5152 * skip.c (skip_function_pc): Ditto.
5153 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
5154 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
5155 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
5156 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
5157 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
5158 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
5159 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
5160 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
5161 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
5163 2012-02-02 Pedro Alves <palves@redhat.com>
5165 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
5166 the current inferior has no execution. Make sure the current
5167 remote process matches gdb's current inferior.
5169 2012-02-02 Tom Tromey <tromey@redhat.com>
5172 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
5175 2012-02-02 Tom Tromey <tromey@redhat.com>
5178 * symtab.c (lookup_language_this): Set block_found.
5180 2012-02-01 Tom Tromey <tromey@redhat.com>
5183 * jit.c (struct jit_inferior_data): Rewrite.
5184 (struct jit_objfile_data): New.
5185 (get_jit_objfile_data): New function.
5186 (add_objfile_entry): Update.
5187 (jit_read_descriptor): Return int. Replace descriptor_addr
5188 argument with inf_data. Update. Don't call error.
5189 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
5191 (jit_inferior_init): Don't look up descriptor. Don't call error.
5192 (jit_reset_inferior_data_and_breakpoints)
5193 (jit_inferior_created_observer): Remove.
5194 (jit_inferior_exit_hook): Update.
5195 (jit_executable_changed_observer): Remove.
5196 (jit_event_handler): Update.
5197 (free_objfile_data): Reset inferior data if needed.
5198 (_initialize_jit): Update.
5200 2012-02-01 Tom Tromey <tromey@redhat.com>
5202 * jit.c (bfd_open_from_target_memory): Move higher in file.
5204 2012-02-01 Tristan Gingold <gingold@adacore.com>
5206 * libunwind-frame.c (libunwind_load): Display message if dlopen
5209 2012-02-01 Gary Benson <gbenson@redhat.com>
5211 * symtab.h (symbol_found_callback_ftype): New typedef.
5212 (iterate_over_symbols): Use the above.
5213 * symtab.c (iterate_over_symbols): Likewise.
5214 * language.h (language_defn->la_iterate_over_symbols): Likewise.
5215 * ada-lang.c (ada_iterate_over_symbols): Likewise.
5216 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
5217 (iterate_name_matcher): Document return values.
5218 (collect_one_symbol): Likewise.
5219 (collect_function_symbols): Likewise.
5220 (collect_symbols): Likewise.
5222 2012-02-01 Tom Tromey <tromey@redhat.com>
5224 * ada-lang.c (resolve_subexp): Update.
5225 (ada_lookup_symbol_list): Add 'full_search' argument.
5226 (ada_iterate_over_symbols): Pass 0 as full_search argument to
5227 ada_lookup_symbol_list.
5228 (ada_lookup_encoded_symbol): Update.
5229 (get_var_value): Update.
5230 * ada-exp.y (block_lookup): Update.
5231 (write_var_or_type): Update.
5232 (write_name_assoc): Update.
5233 * ada-lang.h (ada_lookup_symbol_list): Update.
5235 2012-01-31 Tom Tromey <tromey@redhat.com>
5237 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
5240 2012-01-31 Doug Evans <dje@google.com>
5242 * symtab.h: Remove outdated comment.
5243 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
5245 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
5247 Fix build error in Darwin port.
5248 * i386-darwin-nat.c: Include i386-nat.h.
5250 2012-01-30 Tom Tromey <tromey@redhat.com>
5252 PR breakpoints/13568:
5253 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
5254 argument. Check for recursive includes.
5255 (dwarf_decode_macros): Create an include hash.
5257 2012-01-30 Michael Eager <eager@eagercon.com>
5259 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
5260 * ppc-linux-tdep.c: Include glibc-tdep.h.
5261 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5262 (powerpc_linux_in_plt_stub): New function.
5263 (powerpc_linux_in_dynsym_resolve_code): New function.
5264 (ppc_skip_trampoline_code): New function.
5265 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
5266 Use glibc_skip_solib_resolver.
5268 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5270 Code cleanup: Make 1440 bytes of data segment read-only.
5271 * arch-utils.c (endian_enum): Make it const char *const [].
5272 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
5274 * breakpoint.c (always_inserted_enums): Likewise.
5275 * cli/cli-cmds.c (script_ext_enums): Likewise.
5276 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
5277 enumlist parameter const char *const *.
5278 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
5279 const char *const *.
5280 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
5281 parameter const char *const *.
5282 * cris-tdep.c (cris_modes): Make it const char *const [].
5283 * filesystem.c (target_file_system_kinds): Likewise.
5284 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
5285 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
5286 (can_use_displaced_stepping_enum, scheduler_enums)
5287 (exec_direction_names): Likewise.
5288 * language.c (_initialize_language): Make the type_or_range_names and
5289 case_sensitive_names variables const char *const [].
5290 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
5291 * python/python.c (python_excp_enums): Likewise.
5292 * remote.c (interrupt_sequence_modes): Likewise.
5293 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
5294 * serial.c (logbase_enums): Likewise.
5295 * sh-tdep.c (sh_cc_enum): Likewise.
5296 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
5298 * symtab.c (multiple_symbols_modes): Likewise.
5299 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
5301 * utils.c (internal_problem_modes): Likewise.
5303 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5305 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
5306 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
5309 2012-01-27 Doug Evans <dje@google.com>
5311 * configure.ac (with_python): Fix absolute path handling for win32.
5312 * configure: Regenerate.
5314 2012-01-26 Doug Evans <dje@google.com>
5316 * symtab.c: Whitespace cleanup, no code changes.
5318 * symtab.c (lookup_symbol_in_language): Improve comment.
5319 (lookup_symbol_aux): Fix comment.
5321 * psymtab.c (add_psymbol_to_list): Result is now "void".
5322 * psympriv.h (add_psymbol_to_list): Update.
5324 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
5326 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5328 Do not open script filenames twice.
5329 * cli/cli-cmds.c (source_script_from_stream): Pass to
5330 source_python_script also STREAM.
5331 * python/py-auto-load.c (source_section_scripts): Pass to
5332 source_python_script_for_objfile also STREAM.
5333 (auto_load_objfile_script): Pass to source_python_script_for_objfile
5335 * python/python-internal.h (source_python_script_for_objfile): New
5336 parameter file, rename parameter file to filename.
5337 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
5338 instead if !_WIN32. Update the function comment.
5339 (source_python_script, source_python_script_for_objfile)
5340 (source_python_script): New parameter file, rename parameter file to
5341 filename. Pass FILENAME to python_run_simple_file.
5342 * python/python.h (source_python_script): New parameter file, rename
5343 parameter file to filename.
5345 2012-01-26 Pedro Alves <palves@redhat.com>
5347 * corelow.c (core_has_fake_pid): Delete.
5348 (core_close): Delete references to `core_has_fake_pid'.
5349 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
5350 (core_open): Delete references to `core_has_fake_pid'.
5351 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
5354 2012-01-26 Joel Brobecker <brobecker@adacore.com>
5356 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
5357 Remove language parameter from name_matcher. Adjust the comment.
5358 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
5359 Remove language parameter.
5360 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
5361 * linespec.c (iterate_name_matcher): Likewise.
5362 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
5363 name_matcher. Adjust call accordingly.
5364 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
5365 (maintenance_check_symtabs): Adjust type of parameter "fun".
5366 * psymtab.h (maintenance_check_symtabs): Likewise.
5368 2012-01-26 Joel Brobecker <brobecker@adacore.com>
5370 * language.h (symbol_name_match_p_ftype): New typedef.
5371 (struct language_defn): Replace field la_symbol_name_compare
5372 by la_get_symbol_name_match_p.
5373 * ada-lang.c (ada_get_symbol_name_match_p): New function.
5374 (ada_language_defn): Use it.
5375 * linespec.c (struct symbol_matcher_data): New type.
5376 (iterate_name_matcher): Rewrite.
5377 (iterate_over_all_matching_symtabs): Pass a pointer to
5378 a symbol_matcher_data struct to expand_symtabs_matching
5379 instead of just the lookup name.
5380 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
5381 opencl-lang.c, p-lang.c, language.c: Delete field
5382 la_symbol_name_compare, and replace by NULL for new field
5383 la_get_symbol_name_match_p.
5384 * symfile.h (struct quick_symbol_functions): Update comment.
5386 2012-01-25 Tom Tromey <tromey@redhat.com>
5388 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
5391 2012-01-24 Tom Tromey <tromey@redhat.com>
5394 * solib.c (update_solib_list): Update the program space's
5395 added_solibs and deleted_solibs fields.
5396 * progspace.h (struct program_space) <added_solibs,
5397 deleted_solibs>: New fields.
5398 (clear_program_space_solib_cache): Declare.
5399 * progspace.c (release_program_space): Call
5400 clear_program_space_solib_cache.
5401 (clear_program_space_solib_cache): New function.
5402 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
5403 bpstat_stop_status. Use handle_solib_event.
5404 * breakpoint.c: Include gdb_regex.h.
5405 (print_solib_event): New function.
5406 (bpstat_print): Use print_solib_event.
5407 (bpstat_stop_status): Add special case for bp_shlib_event.
5408 (handle_solib_event): New function.
5409 (bpstat_what): Use handle_solib_event.
5410 (struct solib_catchpoint): New.
5411 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
5412 (breakpoint_hit_catch_solib, check_status_catch_solib)
5413 (print_it_catch_solib, print_one_catch_solib)
5414 (print_mention_catch_solib, print_recreate_catch_solib): New
5416 (catch_solib_breakpoint_ops): New global.
5417 (catch_load_or_unload, catch_load_command_1)
5418 (catch_unload_command_1): New functions.
5419 (internal_bkpt_check_status): Add special case for
5421 (internal_bkpt_print_it): Use print_solib_event.
5422 (initialize_breakpoint_ops): Initialize
5423 catch_solib_breakpoint_ops.
5424 (_initialize_breakpoint): Register "catch load" and "catch
5426 * breakpoint.h (handle_solib_event): Declare.
5427 * NEWS: Add entry for "catch load" and "catch unload".
5429 2012-01-24 Tom Tromey <tromey@redhat.com>
5431 * ada-lang.c: Include gdb_vecs.h.
5432 * charset.c: Include gdb_vecs.h.
5433 * tracepoint.h: Include gdb_vecs.h.
5434 * gdb_vecs.h: New file.
5436 2012-01-24 Pedro Alves <pedro@codesourcery.com>
5438 * breakpoint.c (breakpoint_hit_catch_fork)
5439 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
5440 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
5441 * infrun.c (inferior_has_forked, inferior_has_vforked)
5442 (inferior_has_execd, inferior_has_called_syscall): Delete.
5443 (handle_syscall_event): Get syscall_number from the execution
5444 control state's wait status.
5445 (wait_for_inferior): Don't clear syscall_number.
5447 2012-01-24 Pedro Alves <palves@redhat.com>
5449 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
5450 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
5451 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
5452 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
5454 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
5455 false for events other than TARGET_SIGNAL_TRAP.
5456 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
5458 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
5459 events other than TARGET_SIGNAL_TRAP.
5460 (tracepoint_breakpoint_hit): Add `ws' parameter.
5461 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
5463 (bpstat_stop_status): Same.
5464 (pc_at_non_inline_function): Same.
5465 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
5466 to pass the current event's waitstatus to bpstat_stop_status
5467 and pc_at_non_inline_function.
5469 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5472 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
5473 Update the function comment for it.
5474 (source_script_with_search): Call make_cleanup_fclose for STREAM.
5475 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
5478 2012-01-24 Pedro Alves <palves@redhat.com>
5480 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
5481 outside `bs->stop' block.
5482 (bpstat_what): Rework bp_shlib_event handling.
5483 (internal_bkpt_check_status): If the breakpoint is a
5484 bp_shlib_event, then set bs->stop and bs->print if
5485 stop_on_solib_events is set.
5487 2012-01-24 Gary Benson <gbenson@redhat.com>
5489 Delete #if 0'd out code.
5490 * stack.c (print_frame_label_vars): Remove.
5491 (catch_info): Likewise.
5492 (_initialize_stack): Remove "info catch" command.
5493 * NEWS: Mention the above.
5495 2012-01-24 Pedro Alves <palves@redhat.com>
5497 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
5499 (remote_notice_new_inferior): If the remote end doesn't support
5500 the multiprocess extensions, then the PID is fake.
5501 (add_current_inferior_and_thread): New.
5502 (remote_start_remote): Use it.
5503 (extended_remote_attach_1): Adjust.
5504 (extended_remote_create_inferior_1): Use
5505 add_current_inferior_and_thread.
5507 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5509 Fix watchpoints to be specific for each inferior.
5510 * breakpoint.c (watchpoint_in_thread_scope): Verify also
5511 current_program_space.
5512 * i386-nat.c (i386_inferior_data_cleanup): New.
5513 (i386_inferior_data_get): Replace variable inf_data_local by an
5515 (i386_use_watchpoints): Initialize i386_inferior_data.
5516 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
5517 specific iterate_over_lwps.
5519 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5521 Fix watchpoints across inferior fork.
5522 * amd64-linux-nat.c (update_debug_registers_callback): Update the
5523 comment for linux_nat_iterate_watchpoint_lwps.
5524 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
5525 linux_nat_iterate_watchpoint_lwps.
5526 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
5527 * i386-linux-nat.c (update_debug_registers_callback): Update the
5528 comment for linux_nat_iterate_watchpoint_lwps.
5529 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
5530 linux_nat_iterate_watchpoint_lwps.
5531 (i386_linux_prepare_to_resume): New comment on Linux kernel.
5532 * i386-nat.c: Include inferior.h.
5533 (dr_mirror): Remove.
5534 (i386_inferior_data, struct i386_inferior_data)
5535 (i386_inferior_data_get): New.
5536 (i386_debug_reg_state): Use i386_inferior_data_get.
5537 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
5538 (i386_insert_watchpoint, i386_remove_watchpoint)
5539 (i386_stopped_data_address, i386_insert_hw_breakpoint)
5540 (i386_remove_hw_breakpoint): New variable state, use
5541 i386_debug_reg_state instead of DR_MIRROR.
5542 * linux-nat.c (delete_lwp): New declaration.
5543 (num_lwps): Move here from downwards.
5544 (delete_lwp_cleanup): New.
5545 (linux_child_follow_fork): Create new child_lp, call
5546 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
5548 (num_lwps): Move upwards.
5549 (linux_nat_iterate_watchpoint_lwps): New.
5550 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
5551 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
5553 2012-01-24 Joel Brobecker <brobecker@adacore.com>
5557 2012-01-23 Pedro Alves <palves@redhat.com>
5559 * top.c (caution): Rename to ...
5560 (confirm): ... this.
5561 (show_caution): Rename to ...
5562 (show_confirm): ... this.
5563 (quit_cover): Adjust.
5564 (init_main): Adjust.
5565 * top.h (caution): Rename to ...
5566 (confirm): ... this.
5567 * utils.c (internal_vproblem, defaulted_query): Adjust.
5569 2012-01-23 Pedro Alves <palves@redhat.com>
5571 * top.c (caution): Update comment.
5572 (execute_command): Don't consider the current value of `caution'.
5574 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5576 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
5578 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
5580 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
5581 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
5582 * target.c (target_fileio_pwrite): Remove buffer address from
5584 (target_fileio_pread): Likewise.
5586 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5588 * NEWS: Document remote "info proc" and "generate-core-file".
5590 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5592 * gdbarch.sh (find_memory_regions): New callback.
5593 * gdbarch.c, gdbarch.h: Regenerate.
5595 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
5596 callback before falling back to target method.
5598 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
5599 (linux_target_install_ops): No longer install it.
5601 * linux-tdep.c (linux_find_memory_regions): New function.
5602 (linux_init_abi): Install it.
5604 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5606 * gdbarch.sh (make_corefile_notes): New architecture callback.
5607 * gdbarch.c: Regenerate.
5608 * gdbarch.h: Likewise.
5610 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
5611 before target_make_corefile_notes. If NULL is returned, the
5612 target does not support core file generation.
5614 * linux-nat.c: Include "linux-tdep.h".
5615 (find_signalled_thread, find_stop_signal): Remove.
5616 (linux_nat_do_thread_registers): Likewise.
5617 (struct linux_nat_corefile_thread_data): Likewise.
5618 (linux_nat_corefile_thread_callback): Likewise.
5619 (iterate_over_spus): Likewise.
5620 (struct linux_spu_corefile_data): Likewise.
5621 (linux_spu_corefile_callback): Likewise.
5622 (linux_spu_make_corefile_notes): Likewise.
5623 (linux_nat_collect_thread_registers): New function.
5624 (linux_nat_make_corefile_notes): Replace contents by call to
5625 linux_make_corefile_notes passing linux_nat_collect_thread_registers
5626 as native-only callback.
5628 * linux-tdep.h: Include "bfd.h".
5629 (struct regcache): Add forward declaration.
5630 (linux_collect_thread_registers_ftype): New typedef.
5631 (linux_make_corefile_notes): Add prototype.
5632 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
5633 "regset.h", and "elf-bfd.h".
5634 (find_signalled_thread, find_stop_signal): New functions.
5635 (linux_spu_make_corefile_notes): Likewise.
5636 (linux_collect_thread_registers): Likewise.
5637 (struct linux_corefile_thread_data): New data structure.
5638 (linux_corefile_thread_callback): New funcion.
5639 (linux_make_corefile_notes): Likewise.
5640 (linux_make_corefile_notes_1): Likewise.
5641 (linux_init_abi): Install it.
5643 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5645 * gdbarch.sh (info_proc): New callback.
5646 * gdbarch.c, gdbarch.h: Regenerate.
5648 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
5649 before falling back to the target info_proc callback.
5651 * linux-nat.c: Do not include "cli/cli-utils.h".
5652 (linux_nat_info_proc): Remove.
5653 (linux_target_install_ops): No longer install it.
5655 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
5656 (read_mapping): New function.
5657 (linux_info_proc): Likewise.
5658 (linux_init_abi): Install it.
5660 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5662 * defs.h (enum info_proc_what): Moved here from linux-nat.c
5663 * infcmd.c: (info_proc_cmd_1): New function.
5664 (info_proc_cmd): New function, moved here from equivalent routine
5665 orignally in linux-nat.c.
5666 (info_proc_cmd_mappings): Likewise.
5667 (info_proc_cmd_stat): Likewise.
5668 (info_proc_cmd_status): Likewise.
5669 (info_proc_cmd_cwd): Likewise.
5670 (info_proc_cmd_cmdline): Likewise.
5671 (info_proc_cmd_exe): Likewise.
5672 (info_proc_cmd_all): Likewise.
5673 (_initialize_infcmd): Install "info proc" command and subcommands.
5675 * target.h (struct target_ops): Add to_info_proc.
5676 (target_info_proc): Add prototype.
5677 * target.c (target_info_proc): New function.
5679 * procfs.c (procfs_info_proc): Add prototype.
5680 (info_proc_cmd): Rename into ...
5681 (procfs_info_proc): ... this. Update argument types as appropriate
5682 for a to_info_proc implementation. Handle "what" argument.
5683 (procfs_target): Install procfs_info_proc.
5684 (_initialize_procfs): No longer install "info proc" command.
5686 * linux-nat.c: (enum info_proc_what): Remove.
5687 (linux_nat_info_proc_cmd_1): Rename into ...
5688 (linux_nat_info_proc): ... this. Update argument types as appropriate
5689 for a to_info_proc implementation.
5690 (linux_nat_info_proc_cmd): Remove.
5691 (linux_nat_info_proc_cmd_mappings): Likewise.
5692 (linux_nat_info_proc_cmd_stat): Likewise.
5693 (linux_nat_info_proc_cmd_status): Likewise.
5694 (linux_nat_info_proc_cmd_cwd): Likewise.
5695 (linux_nat_info_proc_cmd_cmdline): Likewise.
5696 (linux_nat_info_proc_cmd_exe): Likewise.
5697 (linux_nat_info_proc_cmd_all): Likewise.
5698 (linux_target_install_ops): Install linux_nat_info_proc.
5699 (_initialize_linux_nat): No longer install "info proc" command
5702 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5704 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
5705 * config.in, configure: Regenerate.
5707 * target.h (struct target_ops): Add to_fileio_readlink.
5708 (target_fileio_readlink): Add prototype.
5709 * target.c (target_fileio_readlink): New function.
5711 * inf-child.c: Conditionally include <sys/param.h>.
5712 (inf_child_fileio_readlink): New function.
5713 (inf_child_target): Install it.
5715 * remote.c (PACKET_vFile_readlink): New enum value.
5716 (remote_hostio_readlink): New function.
5717 (init_remote_ops): Install it.
5718 (_initialize_remote): Handle vFile:readlink packet type.
5720 2012-01-20 Pedro Alves <palves@redhat.com>
5721 Ulrich Weigand <ulrich.weigand@linaro.org>
5723 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
5724 * config.in, configure: Regenerate.
5726 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
5727 to_fileio_pread, to_fileio_close, to_fileio_unlink.
5728 (target_fileio_open): Add prototype.
5729 (target_fileio_pwrite): Likewise.
5730 (target_fileio_pread): Likewise.
5731 (target_fileio_close): Likewise.
5732 (target_fileio_unlink): Likewise.
5733 (target_fileio_read_alloc): Likewise.
5734 (target_fileio_read_stralloc): Likewise.
5736 * target.c: Include "gdb/fileio.h".
5737 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
5738 (default_fileio_target): New function.
5739 (target_fileio_open): Likewise.
5740 (target_fileio_pwrite): Likewise.
5741 (target_fileio_pread): Likewise.
5742 (target_fileio_close): Likewise.
5743 (target_fileio_unlink): Likewise.
5744 (target_fileio_close_cleanup): Likewise.
5745 (target_fileio_read_alloc_1): Likewise.
5746 (target_fileio_read_alloc): Likewise.
5747 (target_fileio_read_stralloc): Likewise.
5749 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
5750 <fcntl.h>, and <unistd.h>.
5751 (inf_child_fileio_open_flags_to_host): New function.
5752 (inf_child_errno_to_fileio_error): Likewise.
5753 (inf_child_fileio_open): Likewise.
5754 (inf_child_fileio_pwrite): Likewise.
5755 (inf_child_fileio_pread): Likewise.
5756 (inf_child_fileio_close): Likewise.
5757 (inf_child_fileio_unlink): Likewise.
5758 (inf_child_target): Install to_fileio routines.
5760 * remote.c (init_remote_ops): Install to_fileio routines.
5762 2012-01-20 Pedro Alves <palves@redhat.com>
5763 Ulrich Weigand <ulrich.weigand@linaro.org>
5765 * remote.c (remote_multi_process_p): Only check for multi-process
5766 protocol feature, do not check for extended protocol.
5767 (remote_supports_multi_process): Check for extended protocol here.
5768 (set_general_process): Likewise.
5769 (extended_remote_kill): Likewise.
5770 (remote_pid_to_str): Likewise.
5771 (remote_query_supported): Always query multiprocess mode.
5773 2012-01-20 Pedro Alves <palves@redhat.com>
5774 Ulrich Weigand <ulrich.weigand@linaro.org>
5776 * inferior.h (struct inferior): Add fake_pid_p.
5777 * inferior.c (exit_inferior_1): Clear fake_pid_p.
5778 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
5779 magic_null_ptid since the remote side doesn't provide a real PID.
5781 2012-01-19 Tom Tromey <tromey@redhat.com>
5783 * NEWS: Combine the two Python sections.
5785 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5787 * target.h (target_close): Update comment on the target's unpush state.
5789 2012-01-19 Pedro Alves <palves@redhat.com>
5791 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
5792 linux_nat_async directly instead of going through the target
5794 * target.c (unpush_target): Close target after unpushing it, not
5797 2012-01-19 Gary Benson <gbenson@redhat.com>
5799 * mdebugread.c (sort_blocks): Replace integer constants with ones
5800 derived from FIRST_LOCAL_BLOCK.
5802 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
5803 Jan Kratochvil <jan.kratochvil@redhat.com>
5806 * symfile.c (find_separate_debug_file): New function.
5807 (terminate_after_last_dir_separator): Likewise.
5808 (find_separate_debug_file_by_debuglink): Also try realpath.
5809 * configure.ac (AC_CHECK_FUNCS): Add lstat.
5810 * configure: Regenerate.
5811 * config.in: Regenerate.
5813 2012-01-18 Doug Evans <dje@google.com>
5815 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
5816 (main.o): Remove rule.
5817 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
5818 (--with-sysroot): Rewrite.
5819 * configure: Regenerate.
5820 * config.in: Regenerate.
5822 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
5824 * parse.c (initialize_expout): New function.
5825 (reallocate_expout): Likewise.
5826 (parse_exp_in_context): Use `initialize_expout' and
5827 `reallocate_expout' when appropriate.
5829 2012-01-18 Pedro Alves <palves@redhat.com>
5831 * record.c (struct record_breakpoint, record_breakpoint_p)
5832 (record_breakpoints): New.
5833 (record_insert_breakpoint, record_remove_breakpoint): Manage
5834 record breakpoints list. Only remove breakpoints from the
5835 inferior if they had been inserted there in the first place.
5837 2012-01-17 Doug Evans <dje@google.com>
5839 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
5840 if we know we don't have a file name to look for.
5842 2012-01-17 Pedro Alves <palves@redhat.com>
5844 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
5845 the frame's stop reason is UNWIND_UNAVAILABLE.
5847 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5849 Fix compilation error.
5850 * m2-exp.y (yyerror): Use ANSI C prototype.
5852 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
5854 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
5855 (growbuf_by_size): Likewise.
5856 (yyerror): Likewise.
5857 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
5858 (modblock): Remove variable (was #if 0'ed).
5859 (parse_number): Convert prototype from K&R to ANSI C.
5860 (yyerror): Likewise.
5861 * objc-exp.y (parse_number): Likewise.
5862 (yyerror): Likewise.
5863 (yylex): Remove #if 0'ed code.
5864 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
5865 (yyerror): Likewise.
5867 2012-01-16 Tom Tromey <tromey@redhat.com>
5870 * symtab.h (compare_filenames_for_search): Declare.
5871 * symtab.c (compare_filenames_for_search): New function.
5872 (iterate_over_some_symtabs): Use it.
5873 * symfile.h (struct quick_symbol_functions)
5874 <map_symtabs_matching_filename>: Change spec.
5875 * psymtab.c (partial_map_symtabs_matching_filename): Use
5876 compare_filenames_for_search. Update for new spec.
5877 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
5878 compare_filenames_for_search. Update for new spec.
5879 * breakpoint.c (clear_command): Use compare_filenames_for_search.
5881 2012-01-16 Tom Tromey <tromey@redhat.com>
5884 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
5885 (struct main_type) <flag_flag_enum>: New field.
5886 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
5887 * NEWS: Add entries.
5888 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
5890 * python/lib/gdb/printing.py (_EnumInstance): New class.
5891 (FlagEnumerationPrinter): Likewise.
5893 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
5895 * breakpoint.c (create_sals_from_address_default): New function.
5896 (create_breakpoints_sal_default): Likewise.
5897 (decode_linespec_default): Likewise.
5898 (is_marker_spec): Removed.
5899 (strace_marker_p): New function.
5900 (init_breakpoint_sal): Using `strace_marker_p' instead of
5902 (create_breakpoint): Call method `create_sals_from_address' from
5903 breakpoint_ops, replacing code that created SALs conditionally
5904 on the type of the breakpoint. Call method `create_breakpoints_sal',
5905 replacing code that created breakpoints conditionally on the type
5907 (base_breakpoint_create_sals_from_address): New function.
5908 (base_breakpoint_create_breakpoints_sal): Likewise.
5909 (base_breakpoint_decode_linespec): Likewise.
5910 (base_breakpoint_ops): Add methods
5911 `base_breakpoint_create_sals_from_address',
5912 `base_breakpoint_create_breakpoints_sal' and
5913 `base_breakpoint_decode_linespec'.
5914 (bkpt_create_sals_from_address): New function.
5915 (bkpt_create_breakpoints_sal): Likewise.
5916 (bkpt_decode_linespec): Likewise.
5917 (tracepoint_create_sals_from_address): Likewise.
5918 (tracepoint_create_breakpoints_sal): Likewise.
5919 (tracepoint_decode_linespec): Likewise.
5920 (strace_marker_create_sals_from_address): Likewise.
5921 (strace_marker_create_breakpoints_sal): Likewise.
5922 (strace_marker_decode_linespec): Likewise.
5923 (strace_marker_breakpoint_ops): New variable.
5924 (addr_string_to_sals): Remove `marker_spec'. Call method
5925 `decode_linespec' from breakpoint_ops, replacing code that decoded
5926 an address string into a SAL. Use `strace_marker_p' instead of
5928 (strace_command): Decide whether we are dealing with a static
5929 tracepoint with marker or not. Use the appropriate breakpoint_ops.
5930 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
5931 * breakpoint.h (linespec_result, linespec_sals): New forward
5933 (breakpoint_ops) <create_sals_from_address>,
5934 <create_breakpoints_sal>, <decode_linespec>: New methods.
5936 2012-01-14 Doug Evans <dje@google.com>
5938 * NEWS: Update text for "maint set python print-stack".
5939 It is deprecated in gdb 7.4 and deleted in 7.5.
5941 2012-01-13 Eli Zaretskii <eliz@gnu.org>
5943 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
5946 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5948 * configure: Regenerate.
5949 * config.in: Regenerate.
5951 2012-01-12 Keith Seitz <keiths@redhat.com>
5954 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
5955 (ANONYMOUS_UNION_NAME): Define.
5956 (is_path_expr_parent): New function.
5957 (get_path_expr_parent): New function.
5958 (is_anonymous_child): New function.
5959 (create_child_with_value): If the child is anonymous and without
5960 a name, assign an object name to it.
5961 (c_describe_child): Use get_path_expr_parent to determine
5962 the parent expression.
5963 If there field represents an anonymous struct or union and
5964 has no name, set an appropriate display name and expression.
5965 (cplus_describe_child): Likewise.
5967 2012-01-12 Pedro Alves <palves@redhat.com>
5969 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
5970 available when %ebp is found to be zero (outermost).
5972 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
5974 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
5975 an internal gdb_static_assert.
5976 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
5978 2012-01-11 Tom Tromey <tromey@redhat.com>
5981 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
5982 catch" and "catch throw".
5984 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
5986 * blockframe.c (block_innermost_frame): Start search from selected
5987 frame, if present, or otherwise the current frame.
5989 * c-exp.y (variable): Update innermost_block for
5990 'block COLONCOLON NAME' clause.
5991 * m2-exp.y (variable): Ditto.
5992 * objc-exp.y (variable): Ditto.
5994 2012-01-10 Tom Tromey <tromey@redhat.com>
5997 * python/python.c (finish_python_initialization): Set sys.argv.
5999 2012-01-10 Doug Evans <dje@google.com>
6001 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
6002 "want_line_info". All callers updated.
6003 (dwarf_decode_lines_1): New function.
6004 (handle_DW_AT_stmt_list): Add function comment.
6005 New arg "want_line_info". All callers updated.
6006 (read_file_scope,read_type_unit_scope): Move comment from
6007 handle_DW_AT_stmt_list to here.
6009 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6011 Fix regression after libiberty/ update for GCC PR 6057 and others.
6012 * c-exp.y (operator) <OPERATOR DELETE>
6013 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
6014 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
6015 (make_builtin_type, make_name): New variable i, add gdb_assert.
6016 (operator) <OPERATOR NEW>: Update ARGS to 3.
6017 (operator) <OPERATOR DELETE>: Add trailing space.
6018 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
6019 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
6020 * cp-support.c (cp_canonicalize_string): Check NULL from
6021 cp_comp_to_string, call warning and return.
6023 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6025 Fix duplicate .o files after omitting libbfd.a.
6026 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
6027 (SFILES): Add corelow.c.
6028 (COMMON_OBS): Add corelow.o.
6029 (ALLDEPFILES): Remove corelow.c.
6030 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
6031 * config/alpha/alpha-osf3.mh: Likewise.
6032 * config/alpha/fbsd.mh: Likewise.
6033 * config/arm/nbsdaout.mh: Likewise.
6034 * config/arm/nbsdelf.mh: Likewise.
6035 * config/i386/i386gnu.mh: Likewise.
6036 * config/ia64/hpux.mh: Likewise.
6037 * config/ia64/linux.mh: Likewise.
6038 * config/m32r/linux.mh: Likewise.
6039 * config/m68k/linux.mh: Likewise.
6040 * config/mips/irix5.mh: Likewise.
6041 * config/mips/irix6.mh: Likewise.
6042 * config/pa/hpux.mh: Likewise.
6043 * config/pa/linux.mh: Likewise.
6044 * config/powerpc/aix.mh: Likewise.
6045 * config/sparc/linux.mh: Likewise.
6046 * config/sparc/linux64.mh: Likewise.
6047 * config/sparc/sol2.mh: Likewise.
6048 * config/vax/vax.mh: Likewise.
6049 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
6050 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
6051 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
6052 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
6053 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
6054 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
6055 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
6056 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
6057 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
6058 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
6059 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
6060 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
6061 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
6062 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
6063 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
6064 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
6065 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
6066 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
6067 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
6068 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
6069 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
6070 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
6071 corelow.o from gdb_target_obs.
6072 * corefile.c (core_target): Update the comment on NULL value.
6073 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
6074 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
6075 MATCHES. Drop YUMMY set on NULL.
6076 (core_close): Do not call exit_inferior_silent on zero PID. Do not
6077 reclaim CORE_DATA if it is already NULL.
6079 2012-01-09 Doug Evans <dje@google.com>
6081 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
6082 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
6084 2012-01-09 Keith Seitz <keiths@redhat.com>
6086 * breakpoint.c (wrapper.h): Don't include.
6088 2012-01-09 Keith Seitz <keiths@redhat.com>
6090 * Makefile.in (SFILES): Remove wrapper.c.
6091 (HFILES_NO_SRCDIR): Remove wrapper.h.
6092 (COMMON_OBS): Remove wrapper.o.
6093 * cli/cli-interp.c: Don't inlude wrapper.h.
6094 * corelow.c: Likewise.
6095 (core_open): Replace gdb_target_find_new_threads with
6096 TRY_CATCH around target_find_new_threads.
6097 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
6098 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
6099 * varobj.c (varobj_create): Likewise for parse_exp_1 and
6100 evaluate_expression.
6101 (varobj_set_value): Likewise for evaluate_expression and
6103 (install_new_variable): Likewise for value_fetch_lazy.
6104 (adjust_value_for_child_access): Likewise for value_ind.
6105 (c_describe_child): Likewise for value_subscript and
6107 (c_value_of_root): Likewise for evaluate_expression.
6108 * wrapper.c: Remove.
6109 * wrapper.h: Remove.
6111 2012-01-09 Doug Evans <dje@google.com>
6113 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
6114 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
6115 "abfd" args with "section". All callers updated.
6116 Error checking code moved ...
6117 (error_check_comp_unit_head): ... here. New function.
6118 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
6119 Delete arg "abfd". New arg "type_offset". All callers updated.
6120 (create_debug_types_hash_table): Simplify by using
6121 read_and_check_type_unit_head.
6123 * parser-defs.h (namecopy): Delete.
6124 * parse.c (namecopy, namecopy_size): Move into copy_name.
6126 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6128 Partially fix duplicate .o files after omitting libbfd.a.
6129 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
6130 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6131 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
6132 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6133 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
6134 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
6135 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6137 2012-01-09 Pedro Alves <palves@redhat.com>
6139 * MAINTAINERS: Update my email address.
6141 2012-01-08 Doug Evans <dje@google.com>
6143 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
6144 n_type_units. Rename type_comp_units to all_type_units.
6146 (add_signatured_type_cu_to_table): Renamed from
6147 add_signatured_type_cu_to_list. All callers updated.
6149 * gdbtypes.h (struct cplus_struct_type): Delete member
6150 nfn_fields_total. All uses removed.
6152 2012-01-06 Doug Evans <dje@google.com>
6154 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
6156 (dwarf2_find_comp_unit): Delete.
6157 (process_psymtab_comp_unit): Make result "void".
6158 Delete args buffer, info_ptr, buffer_size, and replace with
6159 "section". All callers updated.
6160 (dwarf2_build_psymtabs_hard): Simplify.
6162 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
6163 Thiago Jung Bauermann <bauerman@br.ibm.com>
6165 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
6166 before `struct gdb_exception'.
6167 * breakpoint.c (update_global_location_list_nothrow)
6168 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
6169 * cp-abi.c (value_rtti_type): Likewise.
6170 * cp-support.c (cp_validate_operator): Likewise.
6171 * infrun.c (insert_exception_resume_breakpoint)
6172 (check_exception_resume, keep_going): Likewise.
6173 * mi-interp.c (mi_breakpoint_created)
6174 (mi_breakpoint_modified): Likewise.
6175 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
6176 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
6177 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
6179 2012-01-05 Doug Evans <dje@google.com>
6181 * dwarf2read.c (statement_prologue): Delete, unused.
6183 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
6184 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
6186 * dwarf2read.c (comp_unit_header): Delete, unused.
6188 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
6190 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
6191 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
6193 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
6195 * infrun.c (normal_stop): Don't skip calling the normal_stop
6196 observers if the thread was doing a multi-step, but stopped for
6197 some reason other than stepping.
6199 2012-01-05 Pedro Alves <alves.ped@gmail.com>
6201 * cli/cli-decode.h: Add comments.
6202 (CMD_LIST_AMBIGUOUS): Moved to command.h
6203 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
6204 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
6205 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
6206 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
6207 (add_com, add_com_alias, add_info, add_info_alias)
6208 (complete_on_cmdlist, complete_on_enum, help_list): Remove
6210 * command.h: Add and adjust comments.
6211 (CMD_LIST_AMBIGUOUS): Moved here.
6212 (help_cmd, help_cmd_list): Delete declarations.
6214 2012-01-04 Doug Evans <dje@google.com>
6216 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
6217 All callers updated.
6218 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
6219 Replace all arguments with "per_cu". All callers updated.
6221 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
6223 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
6224 New arg "per_cu". All callers updated.
6226 Delete #if 0'd out code.
6227 * language.c (binop_result_type): Delete.
6228 (simple_type, ordered_type, same_type, integral_type): Delete.
6229 (numeric_type, character_type, string_type, boolean_type): Delete.
6230 (float_type, structured_type): Delete.
6231 * language.h: Update.
6233 2012-01-04 Tom Tromey <tromey@redhat.com>
6235 * python/py-value.c (valpy_binop): Initialize 'res_val'.
6237 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6239 * corefile.c (close_exec_file): Delete.
6240 (reopen_exec_file): Remove commented out code that seems related
6241 to close_exec_file, which is being deleted here.
6242 * inferior.h (close_exec_file): Delete.
6243 * fork-child.c (fork_inferior): Remove call to fork_inferior.
6245 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6247 * ada-lang.c: #include "cli/cli-utils.h".
6248 (get_selections): Use skip_spaces.
6249 (ada_get_next_arg): Use skip_spaces and skip_to_space.
6250 (catch_ada_exception_command_split): Use skip_spaces.
6251 (ada_decode_assert_location): Likewise.
6253 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6255 * linespec.c (decode_line_internal): Check for C++ or Java
6256 compound constructs only if the current language is C, C++
6259 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6262 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6263 Joel Brobecker <brobecker@adacore.com>
6264 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
6265 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
6267 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
6268 fall through into AT_ENTRY_POINT.
6269 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
6271 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
6272 PPC_INSN_SIZE skip to 3 times.
6274 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6276 * linespec.c (add_minsym): Preserve function descriptors.
6278 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
6280 * breakpoint.c (all_locations_are_pending): Consider locations
6281 in program spaces executing during startup pending as well.
6283 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6285 Copyright year update in most files of the GDB Project.
6287 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6289 * copyright.sh: Delete.
6290 * copyright.py: Rewrite.
6292 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6294 * gnulib/extra/update-copyright: New file, imported from gnulib.
6296 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6298 * README (Copyright and License Notices): New section.
6300 2012-01-03 Tom Tromey <tromey@redhat.com>
6303 * python/py-value.c (valpy_dereference, valpy_get_address
6304 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
6305 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
6306 (valpy_absolute, valpy_richcompare): Free intermediate values.
6308 2011-01-03 Joel Brobecker <brobecker@adacore.com>
6310 * ada-lang.c: Reformat the copyright notice.
6312 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6314 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
6315 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
6316 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
6317 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
6318 Revert this part of:
6319 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6320 Build gdb directly from *.o files not using libgdb.a.
6321 * Makefile.in (COMMON_OBS): Remove solib-target.o.
6323 2012-01-02 Joel Brobecker <brobecker@adacore.com>
6325 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
6326 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
6327 Reformat the copyright header.
6329 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6331 Revert this part of:
6332 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6333 Remove the gdbtui binary.
6334 * gdb.c (main): Remove args.interpreter_p initialization.
6335 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
6336 * main.h (struct captured_main_args): Remove interpreter_p.
6338 2012-01-02 Joel Brobecker <brobecker@adacore.com>
6340 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
6342 2012-01-02 Joel Brobecker <brobecker@adacore.com>
6344 * top.c (print_gdb_version): Update copyright year.
6346 2012-01-02 Yao Qi <yao@codesourcery.com>
6348 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
6350 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6351 Joel Brobecker <brobecker@adacore.com>
6353 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
6354 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
6356 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
6357 fall through into AT_ENTRY_POINT.
6358 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
6360 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
6361 PPC_INSN_SIZE skip to 3 times.
6363 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6365 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
6367 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
6369 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6371 Build gdb directly from *.o files not using libgdb.a.
6372 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
6373 (COMMON_OBS): Remove solib-target.o.
6374 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
6375 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
6376 (LIBGDB_OBS, libgdb.a): Move it above.
6377 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
6378 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
6379 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
6380 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
6381 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
6382 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
6383 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
6384 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
6385 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
6386 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
6387 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
6388 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
6389 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
6390 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
6391 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
6392 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
6393 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
6394 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
6395 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
6396 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
6397 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
6398 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
6399 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
6400 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
6401 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
6402 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
6403 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
6405 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6407 Remove the gdbtui binary.
6408 * .gitignore (/gdbtui): Remove.
6409 * Makefile.in (TUI): Remove.
6410 (SUBDIR_TUI_OBS): Remove tui-main.o.
6411 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
6412 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
6413 (tui-main.o): Remove.
6414 (all_object_files): Remove tui-main.o.
6415 * NEWS: New note for the gdbtui removal.
6416 * configure: Rebuilt.
6417 * configure.ac: No longer add all-tui, clean-tui, install-tui and
6418 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
6419 CONFIG_UNINSTALL respectively.
6420 * gdb.c (main): Remove args.interpreter_p initialization.
6421 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
6422 * main.h (struct captured_main_args): Remove interpreter_p.
6423 * tui/tui-main.c: Remove.
6425 2012-01-01 Doug Evans <dje@google.com>
6427 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
6428 (dwarf2_physname, read_import_statement): Ditto.
6429 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
6430 (process_structure_scope read_subroutine_type): Ditto.
6431 (read_typedef, load_partial_dies, read_partial_die): Ditto.
6432 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
6433 (dwarf2_fetch_die_location_block): Ditto.
6434 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
6436 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
6437 All callers updated.
6438 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
6439 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
6440 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
6442 * dwarf2read.c (load_cu): Move assert to more useful location.
6444 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
6445 All callers updated.
6447 * dwarf2read.c (dwarf2_per_objfile): Add comment.
6448 (dwarf2_elf_names): Minor reformat.
6449 (dwarf2_per_cu_data): Tweak comment.
6450 (dwarf2_read_section): Fix comment.
6451 (create_all_comp_units): Fix comment.
6452 (load_full_comp_unit): Fix comment.
6453 (process_full_comp_unit): Fix comment.
6454 (read_signatured_type): Fix comment.
6456 For older changes see ChangeLog-2011.
6462 version-control: never