1 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5 * auto-load.c (auto_load_expand_dir_vars): New function.
6 (auto_load_safe_path_vec_update): Use it, remove the
7 substitute_path_component call thanks to it.
8 (auto_load_objfile_script): Remove the debug_file_directory processing.
9 Use auto_load_expand_dir_vars, remove the substitute_path_component
11 * configure: Regenerate.
12 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
13 path. Escape $ also for $debugdir.
14 (--with_auto_load_safe_path): Escape $ also for $debugdir.
15 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
17 2012-05-20 Doug Evans <dje@google.com>
19 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
20 before use. Check for symtab->includes == NULL before scanning it.
22 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
24 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
26 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
28 * NEWS: Add microMIPS support and "set mips compression",
29 "show mips compression" commands.
30 * mips-tdep.h (mips_isa): New enum.
31 (gdbarch_tdep): Add mips_isa.
32 (mips_pc_is_mips16): Update prototype.
33 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
34 * mips-tdep.c (mips_compression_mips16): New variable.
35 (mips_compression_micromips): Likewise.
36 (mips_compression_strings): Likewise.
37 (mips_compression_string): Likewise.
38 (is_mips16_isa, is_micromips_isa): New functions.
39 (is_mips16_addr): Rename to...
40 (is_compact_addr): ... this.
41 (unmake_mips16_addr): Likewise to...
42 (unmake_compact_addr): ... this.
43 (make_mips16_addr): Likewise to...
44 (make_compact_addr): ... this.
45 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
47 (mips_elf_make_msymbol_special): Handle microMIPS code.
48 (msymbol_is_special): Rename to...
49 (msymbol_is_mips16): ... this.
50 (mips_make_symbol_special, mips_pc_is_mips16): Update
52 (msymbol_is_mips, msymbol_is_micromips): New functions.
53 (mips16_to_32_reg): Rename to...
54 (mips_reg3_to_reg): ... this.
55 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
56 (mips_pc_isa): Likewise.
57 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
59 (mips_fetch_instruction): Pass return status instead of printing
60 an error message if requested. Handle microMIPS code. Bail out
62 (micromips_op): New macro.
63 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
64 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
65 (b6s4_op, b7s3_reg): Likewise.
66 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
67 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
68 (mips_insn_size): New function.
69 (mips32_next_pc): Update mips_fetch_instruction call.
70 (micromips_relative_offset7): New function.
71 (micromips_relative_offset10): Likewise.
72 (micromips_relative_offset16): Likewise.
73 (micromips_pc_insn_size): Likewise.
74 (micromips_bc1_pc): Likewise.
75 (micromips_next_pc): Likewise.
76 (unpack_mips16): Update mips_fetch_instruction call.
77 (extended_mips16_next_pc): Update according to change to
79 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
81 (mips16_scan_prologue): Update mips_fetch_instruction call.
82 Update according to change to mips16_to_32_reg.
83 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
84 (mips_insn16_frame_base_sniffer): Likewise.
85 (micromips_decode_imm9): New function.
86 (micromips_scan_prologue): Likewise.
87 (mips_micro_frame_cache): Likewise.
88 (mips_micro_frame_this_id): Likewise.
89 (mips_micro_frame_prev_register): Likewise.
90 (mips_micro_frame_sniffer): Likewise.
91 (mips_micro_frame_unwind): New variable.
92 (mips_micro_frame_base_address): New function.
93 (mips_micro_frame_base): New variable.
94 (mips_micro_frame_base_sniffer): New function.
95 (mips32_scan_prologue): Update mips_fetch_instruction call.
96 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
97 rather than for MIPS16.
98 (mips_insn32_frame_base_sniffer): Likewise.
99 (mips_addr_bits_remove): Handle microMIPS code.
100 (deal_with_atomic_sequence): Rename to...
101 (mips_deal_with_atomic_sequence): ... this. Update the type
102 of the variable used to hold an instruction. Remove the ISA bit
103 check. Update mips_fetch_instruction call.
104 (micromips_deal_with_atomic_sequence): New function.
105 (deal_with_atomic_sequence): Likewise.
106 (mips_about_to_return): Handle microMIPS code. Update
107 mips_fetch_instruction call.
108 (heuristic_proc_start): Check for the standard MIPS ISA rather
109 than for MIPS16. Update mips_pc_is_mips16 and
110 mips_fetch_instruction calls. Handle microMIPS code.
111 (mips_push_dummy_code): Handle microMIPS code.
112 (mips_eabi_push_dummy_call): Likewise.
113 (mips_o32_return_value): Update mips_pc_is_mips16 call.
114 (mips_o64_push_dummy_call): Handle microMIPS code.
115 (mips_o64_return_value): Update mips_pc_is_mips16 call.
116 (is_delayed): Remove function.
117 (mips_single_step_through_delay): Replace the call to is_delayed
118 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
119 Handle microMIPS code.
120 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
122 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
124 (micromips_in_function_epilogue_p): New function.
125 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
127 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
129 (gdb_print_insn_mips): Likewise.
130 (mips_breakpoint_from_pc): Likewise.
131 (mips_remote_breakpoint_from_pc): New function.
132 (mips32_instruction_has_delay_slot): Simplify making use of the
133 updated mips_fetch_instruction interface.
134 (micromips_instruction_has_delay_slot): New function.
135 (mips16_instruction_has_delay_slot): Simplify making use of the
136 updated mips_fetch_instruction interface.
137 (mips_adjust_breakpoint_address): Check for the standard MIPS
138 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
139 calls. Handle microMIPS code.
140 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
141 (mips_skip_trampoline_code): Handle microMIPS code.
142 (global_mips_compression): New function.
143 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
144 file flags. Register the microMIPS remote breakpoint handler
145 and heuristic frame unwinder.
146 (show_mips_compression): New function.
147 (_initialize_mips_tdep): Add the "set mips compression" and
148 "show mips compression" commands.
150 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
155 * amd64-darwin-tdep.c:
156 * arm-symbian-tdep.c:
167 * dwarf2-frame-tailcall.c:
205 * python/py-finishbreakpoint.c:
206 * python/py-inferior.c:
207 * python/py-infthread.c:
241 * amd64-darwin-tdep.c:
242 * arm-symbian-tdep.c:
243 * arm-tdep.c: Delete unused variables.
245 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
247 Rename $ddir to $datadir.
248 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
249 * auto-load.c (auto_load_safe_path_vec_update)
250 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
251 * configure: Regenerate.
252 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
253 Likewise. Remove the 'use $ddir' help string.
255 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
257 * auto-load.c (show_auto_load_safe_path): Accept any combination of
258 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
260 2012-05-18 Tom Tromey <tromey@redhat.com>
263 * valprint.h (struct value_print_options) <symbol_print>: New
265 * valprint.c (user_print_options): Add default for symbol_print.
266 (show_symbol_print): New function.
267 (generic_val_print): Respect symbol_print.
268 (_initialize_valprint): Add "print symbol" setting.
269 * f-valprint.c (f_val_print): Respect symbol_print.
270 * c-valprint.c (c_val_print): Respect symbol_print.
272 * printcmd.c (print_address_symbolic): Return int. Ignore some
274 (print_address_demangle): Return int.
275 * defs.h: (print_address_symbolic): Return int.
276 * value.h (print_address_demangle): Return int.
278 2012-05-18 Tom Tromey <tromey@redhat.com>
280 * valprint.c (val_print_string): Don't print leading space.
281 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
282 print space before string or vtbl.
283 * m2-valprint.c (print_unpacked_pointer): Optionally print space
285 * jv-valprint.c (java_value_print): Print space before string.
286 * go-valprint.c (print_go_string): Print space before string.
287 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
289 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
290 space before string or vtbl.
291 * auxv.c (fprint_target_auxv): Print space after address.
293 2012-05-18 Tom Tromey <tromey@redhat.com>
295 * printcmd.c (print_address_demangle): Remove special case for 0.
297 2012-05-18 Tom Tromey <tromey@redhat.com>
299 * printcmd.c (print_address_demangle): Add 'opts' argument.
300 * p-valprint.c (pascal_val_print): Update.
301 * jv-valprint.c (java_val_print): Update.
303 * valprint.c (generic_val_print): Update.
304 (print_function_pointer_address): Add 'options' argument. Remove
305 'addressprint' argument. Update.
306 * m2-valprint.c (print_unpacked_pointer): Update.
307 * gnu-v3-abi.c (print_one_vtable): Update.
308 (gnuv3_print_method_ptr): Update.
309 * f-valprint.c (f_val_print): Update.
310 * cp-valprint.c (cp_print_value_fields): Update.
311 * valprint.h (print_function_pointer_address): Update.
312 * c-valprint.c (c_val_print): Update.
314 2012-05-18 Tom Tromey <tromey@redhat.com>
316 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
317 directly corresponding to the found psymtab.
318 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
319 (dw2_find_pc_sect_symtab): Use it.
320 * block.h (blockvector_contains_pc): Declare.
321 * block.c (find_block_in_blockvector): New function.
322 (blockvector_for_pc_sect): Use it.
323 (blockvector_contains_pc): New function.
325 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
327 * mips-tdep.h (mips_write_pc): New prototype.
328 * mips-tdep.c (mips_write_pc): Make external, add description.
329 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
332 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
334 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
336 (mips_unwind_pc, mips_write_pc): Likewise.
337 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
340 2012-05-17 Joel Brobecker <brobecker@adacore.com>
342 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
343 proc_warn, proc_error, proc_get_status, proc_flags,
344 proc_why, proc_what, proc_nsysarg, proc_sysargs,
345 proc_set_run_on_last_close, proc_unset_run_on_last_close,
346 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
347 proc_stop_process, proc_wait_for_stop, proc_run_process,
348 proc_set_traced_signals, proc_set_traced_faults,
349 proc_set_traced_sysentry, proc_set_traced_sysexit,
350 proc_set_held_signals, proc_get_held_signals,
351 proc_get_traced_signals, proc_get_traced_faults,
352 proc_get_traced_sysentry, proc_get_traced_sysexit,
353 proc_clear_current_fault, proc_set_current_signal,
354 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
355 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
356 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
357 proc_get_current_thread, proc_get_current_thread,
358 proc_get_current_thread, proc_update_threads,
359 proc_update_threads, proc_update_threads, proc_update_threads,
360 proc_iterate_over_threads, procfs_find_new_threads,
361 procfs_pid_to_str): Make static. Remove advance declaration.
362 (proc_cursig): Make static. Conditionalized defintion on
363 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
364 (proc_syscall, proc_set_kill_on_last_close,
365 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
366 proc_get_pending_signals, proc_get_signal_actions,
367 proc_trace_signal, proc_ignore_signal): Delete.
369 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
371 * coffread.c (cs_section_address): Passing proper argument for
372 `bfd_get_section_vma'.
373 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
374 `bfd_get_section_flags'.
375 * remote.c (remote_trace_set_readonly_regions): Likewise, for
376 `bfd_get_section_vma'.
378 2012-05-16 Tom Tromey <tromey@redhat.com>
381 * macrotab.h: (macro_define_special): Declare.
382 (enum macro_special_kind): New.
383 (struct macro_definition) <argc, replacement>: Update comments.
384 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
385 (macro_define_object_internal): New function.
386 (macro_define_object): Use it.
387 (macro_define_special): New function.
388 (fixup_definition): New function.
389 (macro_lookup_definition, foreach_macro_in_scope)
390 (foreach_macro): Use fixup_definition.
391 * macroexp.h (macro_stringify): Declare.
392 * macroexp.c (free_buffer_return_text): New function.
393 (stringify): Constify "arg".
394 (macro_stringify): New function.
395 * dwarf2read.c (macro_start_file): Call macro_define_special.
397 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
398 Maciej W. Rozycki <macro@mips.com>
400 * breakpoint.h (bp_location): Add related_address member.
401 * inferior.h (get_return_value): Take a pointer to struct value
402 instead of struct type for the function requested.
403 * value.h (using_struct_return): Likewise.
404 * gdbarch.sh (return_value): Take a pointer to struct value
405 instead of struct type for the function requested.
406 * breakpoint.c (set_breakpoint_location_function): Initialize
407 related_address for bp_gnu_ifunc_resolver breakpoints.
408 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
409 requested function's address to gdbarch_return_value.
410 * eval.c (evaluate_subexp_standard): Pass the requested
411 function's address to using_struct_return.
412 * infcall.c (call_function_by_hand): Pass the requested
413 function's address to using_struct_return and
414 gdbarch_return_value.
415 * infcmd.c (get_return_value): Take a pointer to struct value
416 instead of struct type for the function requested.
417 (print_return_value): Update accordingly.
418 (finish_command_continuation): Likewise.
419 * stack.c (return_command): Pass the requested function's
420 address to using_struct_return and gdbarch_return_value.
421 * value.c (using_struct_return): Take a pointer to struct value
422 instead of struct type for the function requested. Pass the
423 requested function's address to gdbarch_return_value.
424 * python/py-finishbreakpoint.c (finish_breakpoint_object):
425 New function_value member, replacing function_type.
426 (bpfinishpy_dealloc): Update accordingly.
427 (bpfinishpy_pre_stop_hook): Likewise.
428 (bpfinishpy_init): Likewise. Record the requested function's
430 * mips-tdep.c (mips_fval_reg): New enum.
431 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
432 words put in GP registers.
433 (mips_o64_push_dummy_call): Update a comment.
434 (mips_o32_return_value): Take a pointer to struct value instead
435 of struct type for the function requested and use it to check if
436 using the MIPS16 calling convention. Return the designated
437 general purpose registers for floating-point values returned in
439 (mips_o64_return_value): Likewise.
440 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
441 (ppc_sysv_abi_broken_return_value): Likewise.
442 (ppc64_sysv_abi_return_value): Likewise.
443 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
444 value instead of struct type for the function requested.
445 * amd64-tdep.c (amd64_return_value): Likewise.
446 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
447 * arm-tdep.c (arm_return_value): Likewise.
448 * avr-tdep.c (avr_return_value): Likewise.
449 * bfin-tdep.c (bfin_return_value): Likewise.
450 * cris-tdep.c (cris_return_value): Likewise.
451 * frv-tdep.c (frv_return_value): Likewise.
452 * h8300-tdep.c (h8300_return_value): Likewise.
453 (h8300h_return_value): Likewise.
454 * hppa-tdep.c (hppa32_return_value): Likewise.
455 (hppa64_return_value): Likewise.
456 * i386-tdep.c (i386_return_value): Likewise.
457 * ia64-tdep.c (ia64_return_value): Likewise.
458 * iq2000-tdep.c (iq2000_return_value): Likewise.
459 * lm32-tdep.c (lm32_return_value): Likewise.
460 * m32c-tdep.c (m32c_return_value): Likewise.
461 * m32r-tdep.c (m32r_return_value): Likewise.
462 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
463 * m68k-tdep.c (m68k_return_value): Likewise.
464 (m68k_svr4_return_value): Likewise.
465 * m88k-tdep.c (m88k_return_value): Likewise.
466 * mep-tdep.c (mep_return_value): Likewise.
467 * microblaze-tdep.c (microblaze_return_value): Likewise.
468 * mn10300-tdep.c (mn10300_return_value): Likewise.
469 * moxie-tdep.c (moxie_return_value): Likewise.
470 * mt-tdep.c (mt_return_value): Likewise.
471 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
472 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
473 (ppc_sysv_abi_broken_return_value): Likewise.
474 (ppc64_sysv_abi_return_value): Likewise.
475 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
476 * rl78-tdep.c (rl78_return_value): Likewise.
477 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
478 * rx-tdep.c (rx_return_value): Likewise.
479 * s390-tdep.c (s390_return_value): Likewise.
480 * score-tdep.c (score_return_value): Likewise.
481 * sh-tdep.c (sh_return_value_nofpu): Likewise.
482 (sh_return_value_fpu): Likewise.
483 * sh64-tdep.c (sh64_return_value): Likewise.
484 * sparc-tdep.c (sparc32_return_value): Likewise.
485 * sparc64-tdep.c (sparc64_return_value): Likewise.
486 * spu-tdep.c (spu_return_value): Likewise.
487 * tic6x-tdep.c (tic6x_return_value): Likewise.
488 * v850-tdep.c (v850_return_value): Likewise.
489 * vax-tdep.c (vax_return_value): Likewise.
490 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
491 * xtensa-tdep.c (xtensa_return_value): Likewise.
492 * gdbarch.c: Regenerate.
493 * gdbarch.h: Regenerate.
495 2012-05-15 Tom Tromey <tromey@redhat.com>
497 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
499 2012-05-15 Joel Brobecker <brobecker@adacore.com>
501 * breakpoint.c (init_breakpoint_sal): Add quotes around part
502 of command in two error message.
504 2012-05-15 Joel Brobecker <brobecker@adacore.com>
506 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
508 2012-05-15 Joel Brobecker <brobecker@adacore.com>
510 * breakpoint.c (find_condition_and_thread): Minor reformatting.
512 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
514 * NEWS (show auto-load scripts-directory): Add forgotten command.
516 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
518 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
521 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
523 * amd64-tdep.c: Include features/i386/x32.c and
524 features/i386/x32-avx.c.
525 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
526 initialize_tdesc_x32_avx.
528 2012-05-14 Stan Shebs <stan@codesourcery.com>
531 * breakpoint.h (enum bptype): New type bp_dprintf.
532 (struct breakpoint): New field extra_string.
533 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
534 (create_breakpoint): Add extra_string arg.
535 * breakpoint.c (dprintf_breakpoint_ops): New.
536 (is_breakpoint): Add bp_dprintf.
537 (bpstat_what): Add dprintf case.
538 (bptype_string): Ditto.
539 (print_one_breakpoint_location): Ditto.
540 (init_bp_location): Ditto.
541 (bkpt_print_mention): Ditto.
542 (dprintf_style_enums): New array.
543 (dprintf_style): New global.
544 (dprintf_function): New global.
545 (dprintf_channel): New global.
546 (update_dprintf_command_list): New function.
547 (update_dprintf_commands): New function.
548 (init_breakpoint_sal): Add extra_string argument, handle it.
549 (create_breakpoint_sal): Add extra_string argument.
550 (create_breakpoints_sal): Add extra_string argument, update callers.
551 (find_condition_and_thread): Add extra argument.
552 (create_breakpoint): Add extra_string argument, record it.
553 (dprintf_command): New function.
554 (break_command_1): Add arg to create_breakpoint call.
555 (handle_gnu_v3_exceptions): Ditto.
556 (trace_command): Ditto.
557 (ftrace_command): Ditto.
558 (strace_command): Ditto.
559 (bkpt_print_mention): Add dprintf case.
560 (create_breakpoint_sal_default): Add extra_string argument.
561 (_initialize_breakpoint): Add new commands.
562 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
563 * python/py-breakpoint.c (bppy_init): Ditto.
564 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
566 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
568 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
570 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
572 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
575 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
577 Add a new function gdb.find_pc_line to the Python API.
578 * NEWS (Python Scripting): Add entry about the new function.
579 * python/python.c (gdbpy_find_pc_line): New function which
580 implements gdb.find_pc_line.
581 (GdbMethods): Add entry for the new function.
583 2012-05-12 Pedro Alves <palves@redhat.com>
585 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
586 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
588 2012-05-12 Eli Zaretskii <eliz@gnu.org>
590 * inferior.c: Include completer.h
591 (initialize_inferiors): Set completer of add-inferior to
594 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
596 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
597 gdbarch_ptr_bit for x32 core dump.
599 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
601 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
602 and features/i386/x32-avx-linux.c.
604 2012-05-11 Stan Shebs <stan@codesourcery.com>
605 Kwok Cheung Yeung <kcy@codesourcery.com>
607 * NEWS: Describe new info os commands.
608 * common/linux-osdata.c (PID_T, TIME_T): Define.
609 (MAX_PID_T_STRLEN): New.
610 (linux_common_core_of_thread): Add comment. Change to use PID_T and
612 (command_from_pid): Add comment. Change to use PID_T.
613 (commandline_from_pid): Change to use PID_T.
614 (user_from_pid): Add comment.
615 (get_process_owner): Add comment. Change to use PID_T and
617 (get_number_of_cpu_cores): Add comment.
618 (get_cores_used_by_process): Add comment. Change to use PID_T and
620 (linux_xfer_osdata_processes): Change to use PID_T and
622 (compare_processes): New function.
623 (linux_xfer_osdata_processgroups): New function.
624 (linux_xfer_osdata_threads): Change to use PID_T.
625 (linux_xfer_osdata_fds): New function.
626 (format_socket_state, print_sockets): New functions.
627 (union socket_addr): New union.
628 (linux_xfer_osdata_isockets): New function.
629 (time_from_time_t, group_from_gid): New functions.
630 (linux_xfer_osdata_shm): New function.
631 (linux_xfer_osdata_sem): New function.
632 (linux_xfer_osdata_msg): New function.
633 (linux_xfer_osdata_modules): New function.
634 (osdata_table): Add new entries.
635 * common/buffer.c (buffer_xml_printf): Add support for long and
636 long long format specifiers.
638 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
640 * amd64-linux-tdep.h (tdesc_x32_linux): New.
641 (tdesc_x32_avx_linux): Likewise.
643 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
645 Implement multi-component --with-auto-load-dir.
646 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
648 (--with-auto-load-safe-path): Update the default value description.
649 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
651 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
652 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
653 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
654 (_initialize_auto_load): Initialize also auto_load_dir. Install new
655 "set auto-load scripts-directory".
656 * config.in: Regenerate.
657 * configure: Regenerate.
658 * configure.ac (--with-auto-load-dir): New configure option.
659 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
661 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
663 Provide $ddir substitution for --with-auto-load-safe-path.
664 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
666 * auto-load.c: Include observer.h.
667 (auto_load_safe_path_vec_update): Call substitute_path_component for
668 each component. New variable ddir_subst.
669 (auto_load_gdb_datadir_changed): New function.
670 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
671 AUTO_LOAD_SAFE_PATH. New comment.
672 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
673 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
674 * config.in: Regenerate.
675 * configure: Regenerate.
676 * configure.ac (--auto-load-safe-path): Rename
677 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
678 GDB_DATADIR/auto-load.
679 * defs.h (substitute_path_component): New declaration.
680 * top.c: Include observer.h.
681 (set_gdb_datadir): New function.
682 (init_main): Install it for "set data-directory".
683 * utils.c (substitute_path_component): New function.
685 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
687 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
688 * auto-load.c (auto_load_objfile_script): Remove check for NULL
689 DEBUG_FILE_DIRECTORY. Handle multiple components of
690 DEBUG_FILE_DIRECTORY.
692 2012-05-10 Tom Tromey <tromey@redhat.com>
694 * dwarf2read.c (recursively_write_psymbols): New function.
695 (write_psymtabs_to_index): Use it.
697 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
699 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
700 (load_partial_comp_unit): Update.
701 (queue_comp_unit): Add argument 'pretend_language'.
702 (process_queue): Update.
703 (psymtab_to_symtab_1): Skip dependencies that have a user.
704 (load_partial_comp_unit_reader): Give meaning to the 'data'
706 (load_full_comp_unit): Add 'pretend_language' argument.
707 (process_full_comp_unit): Add 'pretend_language' argument. Set
709 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
711 (maybe_queue_comp_unit): Add 'pretend_language' argument.
712 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
714 (prepare_one_comp_unit): Add 'pretend_language' argument.
716 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
717 (struct dwarf2_per_objfile) <just_read_cus>: New field.
718 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
719 (dw2_do_instantiate_symtab): Check whether symtab was read in
721 (dw2_instantiate_symtab): Add assertion. Call
723 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
724 (partial_symtab_p): New typedef.
725 (set_partial_user): New function.
726 (dwarf2_build_psymtabs_hard): Use set_partial_user.
727 (scan_partial_symbols): Add imported CU to imported_symtabs.
728 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
729 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
730 (get_symtab, recursively_compute_inclusions)
731 (compute_symtab_includes, process_cu_includes)
732 (process_imported_unit_die): New functions.
733 (process_die) <DW_TAG_imported_unit>: New case.
734 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
736 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
738 (struct partial_die_info) <locdesc>: Remove.
740 (process_psymtab_comp_unit): Add 'read_partial' argument.
742 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
743 (scan_partial_symbols): Handle DW_TAG_imported_unit.
744 (add_partial_symbol): Update.
745 (process_die): Handle DW_TAG_partial_unit.
746 (read_file_scope): Update comment.
747 (load_partial_dies): Handle DW_TAG_imported_unit.
748 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
749 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
751 2012-05-10 Tom Tromey <tromey@redhat.com>
753 * cc-with-dwz.sh: New file.
755 2012-05-10 Tom Tromey <tromey@redhat.com>
757 * symtab.h (struct symtab) <includes, user>: New fields.
758 * block.h (struct block_iterator) <d, idx, which>: New fields.
759 * block.c (initialize_block_iterator, find_iterator_symtab)
760 (block_iterator_step, block_iter_name_step)
761 (block_iter_match_step): New functions.
762 (block_iterator_first, block_iterator_next)
763 (block_iter_name_first, block_iter_name_next)
764 (block_iter_match_first, block_iter_match_next): Rewrite.
765 (get_block_symtab): New function.
767 2012-05-10 Tom Tromey <tromey@redhat.com>
769 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
771 * jit.c (finalize_symtab): Use allocate_global_block,
773 * buildsym.c (finish_block_internal): New function, from old
775 (finish_block): Rewrite.
776 (end_symtab): Use finish_block_internal, set_block_symtab.
777 * block.h (struct global_block): New.
778 (allocate_global_block, set_block_symtab): Declare.
779 * block.c (allocate_global_block, set_block_symtab): New
782 2012-05-10 Tom Tromey <tromey@redhat.com>
784 * psymtab.c (partial_map_expand_apply): Add assertion.
785 (partial_map_symtabs_matching_filename): Skip included psymtabs.
786 (psymtab_to_symtab): Find unshared psymtab.
787 (dump_psymtab): Print including psymtabs.
788 (recursively_search_psymtabs): New function.
789 (expand_symtabs_matching_via_partial): Use it.
790 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
792 (enum psymtab_search_status): New.
794 2012-05-10 Tom Tromey <tromey@redhat.com>
796 * tracepoint.c (scope_info): Update.
797 * symtab.c (lookup_block_symbol, iterate_over_symbols)
798 (find_pc_sect_symtab, search_symbols)
799 (default_make_symbol_completion_list_break_on)
800 (make_file_symbol_completion_list): Update.
801 * symmisc.c (dump_symtab_1): Update.
802 * stack.c (print_frame_args, iterate_over_block_locals)
803 (print_frame_labels, iterate_over_block_arg_vars): Update.
804 * python/py-block.c (block_object) <dict>: Remove.
808 (blpy_block_syms_iternext): Update.
809 * psymtab.c (map_block): Use block iterators.
810 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
811 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
812 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
813 * infrun.c (check_exception_resume): Update.
814 * cp-support.c (make_symbol_overload_list_block): Update.
815 * coffread.c (patch_opaque_types): Update.
816 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
817 * block.h (struct block_iterator): New.
818 (block_iterator_first, block_iterator_next, block_iter_name_first)
819 (block_iter_name_next, block_iter_match_first)
820 (block_iter_match_next): Declare.
821 (ALL_BLOCK_SYMBOLS): Redefine.
822 * block.c (block_iterator_first, block_iterator_next)
823 (block_iter_name_first, block_iter_name_next)
824 (block_iter_match_first, block_iter_match_next): New functions.
825 * ada-lang.c (ada_add_block_symbols)
826 (ada_make_symbol_completion_list): Use block iterator.
828 2012-05-10 Tom Tromey <tromey@redhat.com>
830 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
831 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
832 (lookup_partial_symbol, find_last_source_symtab_from_partial)
833 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
834 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
837 2012-05-10 Joel Brobecker <brobecker@adacore.com>
839 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
840 print-file-var-lib2.c, print-file-var-main.c and
841 print-file-var.exp (located in gdb/testsuite/gdb.base).
843 2012-05-10 Joel Brobecker <brobecker@adacore.com>
845 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
846 try locating the symbol in the symbol's own objfile first, before
847 extending the search to all objfiles.
848 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
849 out of lookup_symbol_aux_symtabs.
850 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
851 Replace extracted-out code by call to lookup_symbol_aux_objfile.
852 Do not search EXCLUDE_OBJFILE.
853 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
854 (lookup_symbol_global): Search for matches in the block's objfile
855 first, before searching all other objfiles.
857 2012-05-10 Tristan Gingold <gingold@adacore.com>
859 * printcmd.c (set_command): Add pre/post inc/dec.
861 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
863 * gdb.1: Document -ex option.
865 2012-05-09 Joel Brobecker <brobecker@adacore.com>
867 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
868 * inferior.h (AT_SYMBOL): Delete.
870 2012-05-09 Joel Brobecker <brobecker@adacore.com>
872 * mips-tdep.c (mips_push_dummy_code): New function.
873 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
874 ON_STACK and install mips_push_dummy_code as our gdbarch
875 push_dummy_code routine.
877 2012-05-09 Pedro Alves <palves@redhat.com>
879 * target.c (set_maintenance_target_async_permitted): Rename to ...
880 (set_target_async_command): ... this.
881 (show_maintenance_target_async_permitted): Rename to ...
882 (show_target_async_command): ... this.
883 (initialize_targets): Adjust.
885 2012-05-08 Doug Evans <dje@google.com>
887 * go-exp.y (classify_name): Add missing assignment of fields of
890 2012-05-08 Eli Zaretskii <eliz@gnu.org>
892 Display the ">" prompt in interactive mode while reading canned
893 commands, even when the current interpreter is MI.
895 * interps.c (interp_set_temp): New function.
897 * interps.h (interp_set_temp): Add prototype.
899 * cli/cli-script.c (restore_interp): New cleanup function.
900 (read_command_lines): Temporarily override the current interpreter
901 with CLI and arrange for restoring the original one.
903 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
905 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
907 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
909 * probe.c (parse_probes): Move conditional to check for
910 debuginfo files from here...
911 * stap-probe.c (stap_get_probes): ... to here.
913 2012-05-07 Mark Kettenis <kettenis@gnu.org>
914 H.J. Lu <hongjiu.lu@intel.com>
916 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
917 `movl %esp, %ebp' for the X32 ABI.
919 2012-05-07 Tom Tromey <tromey@redhat.com>
921 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
923 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
924 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
925 (dwarf_stack_op_name): Remove.
926 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
927 (decode_locdesc): Use get_DW_OP_name.
928 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
929 (dwarf2_compile_expr_to_ax): Likewise.
930 (disassemble_dwarf_expression): Likewise.
931 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
933 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
935 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
936 (sh_linux_sigtramp_cache): New function.
937 (sh_linux_sigreturn_init): New function.
938 (sh_linux_rt_sigreturn_init): New function.
939 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
941 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
943 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
944 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
945 (sh_linux_init_abi): Add init calls to register new tramp_frame
946 definitions under 32-bit SH, update comments.
948 2012-05-07 Pedro Alves <palves@redhat.com>
952 * amd64-linux-tdep.c: Include glibc-tdep.h.
953 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
954 gdbarch_skip_solib_resolver callback.
956 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
958 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
959 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
960 (show_auto_load_safe_path): Check any-directory by comparison with "/".
961 (add_auto_load_safe_path): Change the error message.
962 (_initialize_auto_load): Change the "safe-path" help text.
963 * configure: Regenerate
964 * configure.ac (--without-auto-load-safe-path): Set
965 WITH_AUTO_LOAD_SAFE_PATH to /.
967 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
969 * stap-probe.h: Do not include unecessary `probe.h'.
971 2012-05-05 Alan Modra <amodra@gmail.com>
973 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
975 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
976 and bfd_com_section_ptr.
978 2012-05-04 Joel Brobecker <brobecker@adacore.com>
980 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
982 2012-05-04 Joel Brobecker <brobecker@adacore.com>
984 * windows-nat.h (segment_register_p_ftype): New typedef.
985 (windows_set_segment_register_p): Add declaration.
986 * windows-nat.c (segment_register_p): New static global.
987 (windows_set_segment_register_p): New function.
988 (do_windows_fetch_inferior_registers): Add special handling
989 for segment registers.
990 * amd64-windows-nat.c: #include "amd64-tdep.h".
991 (amd64_windows_segment_register_p): New function.
992 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
993 * i386-windows-nat.c: #include "i386-tdep.h".
994 (i386_windows_segment_register_p): New function.
995 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
997 2012-05-04 Tristan Gingold <gingold@adacore.com>
999 * printcmd.c (set_command): Emit a warning if the expression is not
1002 2012-05-03 Joel Brobecker <brobecker@adacore.com>
1004 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
1007 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
1009 * stap-probe.c (stap_is_operator): Change declaration.
1010 (stap_get_opcode): Change return value.
1011 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
1012 `stap_parse_argument_1'.
1014 2012-05-03 Pedro Alves <pedro@codesourcery.com>
1016 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
1019 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
1021 Add two new methods global_block and static_block to gdb.Symtab
1023 * NEWS (Python scripting): Add entry about the new methods.
1024 * python/py-symtab.c (stpy_global_block): New function which
1025 implements the gdb.Symtab.global_block() method.
1026 (stpy_static_block): New function which implements the
1027 gdb.Symtab.static_block() method.
1028 (symtab_object_methods): Add entries for the two new methods.
1030 2012-05-03 Doug Evans <dje@google.com>
1032 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
1035 2012-05-03 Yao Qi <yao@codesourcery.com>
1037 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
1039 (i386_process_record): Ditto.
1041 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1043 * infcall.c (unwind_on_signal_p): Make static.
1045 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1047 * sol-thread.c (solaris_pid_to_str): Make static.
1048 (_initialize_sol_thread): Add prototype.
1050 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1052 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
1054 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
1056 * MAINTAINERS: Remove myself.
1058 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1060 Fix --without-auto-load-safe-path for MS-Windows host platform.
1061 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
1063 2012-05-02 Eli Zaretskii <eliz@gnu.org>
1065 * gdb_curses.h: Undefine KEY_EVENT before including curses
1066 headers. Move "#undef MOUSE_MOVED" before any curses header
1069 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
1071 * features/i386/i386-mmx-linux.c: Regenerate.
1072 * features/rs6000/powerpc-32.c: Likewise.
1073 * features/rs6000/powerpc-32l.c: Likewise.
1074 * features/rs6000/powerpc-403.c: Likewise.
1075 * features/rs6000/powerpc-403gc.c: Likewise.
1076 * features/rs6000/powerpc-405.c: Likewise.
1077 * features/rs6000/powerpc-505.c: Likewise.
1078 * features/rs6000/powerpc-601.c: Likewise.
1079 * features/rs6000/powerpc-602.c: Likewise.
1080 * features/rs6000/powerpc-603.c: Likewise.
1081 * features/rs6000/powerpc-604.c: Likewise.
1082 * features/rs6000/powerpc-64.c: Likewise.
1083 * features/rs6000/powerpc-64l.c: Likewise.
1084 * features/rs6000/powerpc-750.c: Likewise.
1085 * features/rs6000/powerpc-860.c: Likewise.
1086 * features/rs6000/powerpc-e500.c: Likewise.
1087 * features/rs6000/powerpc-e500l.c: Likewise.
1088 * features/rs6000/powerpc-isa205-32l.c: Likewise.
1089 * features/rs6000/powerpc-isa205-64l.c: Likewise.
1090 * features/rs6000/rs6000.c: Likewise.
1092 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
1094 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
1096 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
1097 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
1098 (stap_parse_argument) <e>: Likewise.
1099 (handle_stap_probe) <byte_order>: Likewise.
1101 2012-04-30 Doug Evans <dje@google.com>
1103 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
1104 init_and_read_dies_worker. All callers updated.
1105 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
1106 replaced with init_cutu_and_read_dies.
1107 (load_partial_comp_unit): Pass 1 for use_existing_cu.
1108 (find_partial_die): Remove FIXME. Don't free current CU.
1110 2012-04-30 Sterling Augustine <saugustine@google.com>
1112 * contrib: New directory.
1113 * contrib/test_pubnames_and_indexes.py: New file.
1115 2012-04-30 Doug Evans <dje@google.com>
1117 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
1118 All callers updated.
1119 (init_cu_die_reader): Verify the section is non-empty.
1120 (dwarf_decode_line_header): Don't dereference section->asection
1121 until we know the section is present.
1123 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
1125 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
1128 2012-04-29 Yao Qi <yao@codesourcery.com>
1130 * gdb-code-style.el: New hook gdb-markup-hook
1131 and gdb-comment-hook.
1133 2012-04-28 Doug Evans <dje@google.com>
1135 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
1136 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
1138 * symfile.h (dwarf2_debug_sections): New member addr.
1139 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
1140 (ctx_no_get_addr_index): New function.
1141 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
1142 (ctx_no_get_addr_index): Declare.
1143 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
1144 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
1145 (dwarf_expr_ctx_funcs): Update.
1146 (needs_get_addr_index): New function.
1147 (needs_frame_ctx_funcs): Update.
1148 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
1149 * dwarf2read.c: #include "gdbcore.h".
1150 (dwarf2_per_objfile): New members addr, dwo_files.
1151 (dwarf2_elf_names): Add entry for addr.
1152 (struct dwo_section_names): New type.
1153 (dwo_section_names): New static global.
1154 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
1155 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
1156 old debug_types_section member updated to use this.
1157 Rename member debug_types_section to info_or_types_section,
1159 (signatured_type): Rename member type_offset to type_offset_in_tu,
1160 all uses updated. New member type_offset_in_section.
1161 (struct dwo_sections): New type.
1162 (struct dwo_unit): New type.
1163 (struct dwo_file): New type.
1164 (die_reader_specs): New member dwo_file.
1165 (dwarf2_locate_sections): Watch for .debug_addr.
1166 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
1167 (dwarf2_read_section): Get bfd of section from bfd's asection,
1169 (create_cus_from_index): Initialize the_cu->info_or_types_section.
1170 (create_signatured_type_table_from_index): Initialize
1171 sig_type->info_or_types_section.
1172 (dw2_get_file_names): Statement lists for type units with DWO files
1173 live in the DWO file.
1174 (create_debug_types_hash_table): New function.
1175 (create_all_type_units): Rewrite.
1176 (init_cu_die_reader): New arg dwo_file, all callers updated.
1177 (init_and_read_dies_worker): Get section from
1178 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
1179 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
1180 continue reading the CU/TU from there.
1181 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
1182 updated. Get section from this_cu->info_or_types_section.
1183 (create_all_comp_units): Initialize this_cu->info_or_types_section.
1184 (skip_one_die): New cases DW_FORM_GNU_addr_index,
1185 DW_FORM_GNU_str_index.
1186 (hash_dwo_file, eq_dwo_file): New functions.
1187 (allocate_dwo_file_hash_table): New function.
1188 (hash_dwo_unit, eq_dwo_unit): New functions.
1189 (allocate_dwo_unit_table): New function.
1190 (dwarf2_locate_dwo_sections): New function.
1191 (struct create_dwo_info_table_data): New type.
1192 (create_debug_info_hash_table_reader): New function.
1193 (create_debug_info_hash_table): New function.
1194 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
1195 (lookup_dwo_file): New function.
1196 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
1197 (free_dwo_file, free_dwo_file_cleanup): New functions.
1198 (free_dwo_file_from_slot, free_dwo_files): New functions.
1199 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
1200 (dwarf2_record_block_ranges): Ditto.
1201 (read_partial_die): Ditto.
1202 (process_enumeration_scope): Update to use type_offset_in_section.
1203 (read_full_die_1): New function.
1204 (read_full_die): Rewrite.
1205 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
1206 DW_FORM_GNU_str_index.
1207 (read_addr_index_1, read_addr_index): New functions.
1208 (read_addr_index_from_leb128): New function.
1209 (struct dwarf2_read_addr_index_data): New type.
1210 (dwarf2_read_addr_index_reader): New function.
1211 (dwarf2_read_addr_index): New function.
1212 (read_str_index): New function.
1213 (leb128_size): New function.
1214 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
1215 If processing a type unit from a DWO file, get the line section
1217 (var_decode_location): Watch for DW_OP_GNU_addr_index.
1218 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
1219 DW_FORM_GNU_str_index.
1220 (lookup_die_type): Check whether section offset of type's die is
1221 known before looking it up. Remove assert. Condition can
1222 legimately happen for inter-cu type references.
1223 (dwarf_attr_name): Handle Fission attributes.
1224 (dwarf_form_name): Handle Fission forms.
1225 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
1226 DW_FORM_GNU_str_index.
1227 (follow_die_sig): Update to use type_offset_in_section.
1228 (decode_locdesc): New case DW_OP_GNU_addr_index.
1229 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
1230 DW_FORM_GNU_str_index.
1231 (cu_debug_loc_section): New function.
1232 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
1233 (dwarf2_per_objfile_free): Unmap .debug_addr section.
1234 Free DWO files if present.
1235 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
1237 Refactor DIE reading.
1238 * dwarf2read.c (dwarf2_per_objfile): Replace members
1239 debug_info_type_hash and debug_types_type_hash with die_type_hash.
1240 (die_reader_specs): New member "die_section". Temporarily make
1241 member "buffer" non-const, pending constifying all info_ptr uses.
1242 (die_reader_func_ftype): New typedef.
1243 (dw2_get_file_names_reader): New function.
1244 (dw2_get_file_names): Rewrite.
1245 (read_and_check_type_unit_head): Rename arg type_offset to
1247 (create_all_type_units): Improve debugging message.
1248 Improve dummy type unit check.
1249 (init_cu_die_reader): New arg "section". All callers updated.
1250 (init_and_read_dies_worker): New function.
1251 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
1252 (init_cutu_and_read_dies_no_follow): New function.
1253 (init_cutu_and_read_dies_simple): New function.
1254 (process_psymtab_comp_unit_reader): New function.
1255 (process_psymtab_comp_unit): Delete args section,
1256 is_debug_types_section. Rewrite. All callers updated.
1257 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
1258 All callers updated. Rewrite.
1259 (load_partial_comp_unit_reader): New function.
1260 (load_partial_comp_unit): Rewrite.
1261 (skip_children): New arg reader. Delete args buffer, cu.
1262 All callers updated.
1263 (skip_one_die): New arg reader. Delete args buffer, cu.
1264 All callers updated.
1265 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
1266 All callers updated.
1267 (load_full_comp_unit_reader): New function.
1268 (load_full_comp_unit): Rewrite.
1269 (read_comp_unit): Delete.
1270 (read_die_and_children_1): Delete, contents moved ...
1271 (read_die_and_children): ... here.
1272 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
1273 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
1274 All callers updated.
1275 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
1276 All callers updated.
1277 (find_partial_die): Rewrite load_all_dies support.
1278 (read_attribute_value): New arg reader. Delete args abfd, cu.
1279 All callers updated.
1280 (read_attribute): New arg reader. Delete args abfd, cu.
1281 All callers updated.
1282 (load_full_type_unit): Add assert.
1283 (read_signatured_type_reader): New function.
1284 (read_signatured_type): Rewrite.
1285 (free_stack_comp_unit): Remove call to age_cached_comp_units.
1286 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
1287 All callers updated. Set per_cu->cu = NULL after freeing it.
1288 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
1289 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
1290 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
1291 (set_die_type): Update.
1292 (get_die_type_at_offset): Update.
1293 (read_file_scope): Call prepare_one_comp_unit.
1294 (read_type_unit_scope): Ditto.
1295 (prepare_one_comp_unit): Set producer if present.
1297 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
1299 * probe.c (compile_rx_or_error): Silence ARI warning about missing
1300 gettext function on `error'.
1302 2012-04-27 Doug Evans <dje@google.com>
1304 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
1307 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
1308 Tom Tromey <tromey@redhat.com>
1310 * breakpoint.c (struct breakpoint_objfile_data)
1311 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
1312 <exception_probes>: New fields.
1313 (free_breakpoint_probes): New function.
1314 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
1315 `_Unwind_DebugHook'.
1316 (create_exception_master_breakpoint): Likewise.
1317 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
1318 * infrun.c: Including necessary header files for handling SystemTap
1320 (handle_inferior_event): Handling longjmp breakpoint and exceptions
1321 via SystemTap probes.
1322 (check_exception_resume): Remove `func' argument. Handle exception
1323 unwinding breakpoint set via a SystemTap probe.
1324 (insert_exception_resume_from_probe): New function.
1326 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
1327 Tom Tromey <tromey@redhat.com>
1328 Jan Kratochvil <jan.kratochvil@redhat.com>
1330 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
1331 (COMMON_OBS): Likewise.
1332 (HFILES_NO_SRCDIR): Add `probe'.
1333 * NEWS: Mention support for static and SystemTap probes.
1334 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
1335 SystemTap probes' arguments parser.
1336 * arm-linux-tdep.c: Including headers needed to perform the parsing
1337 of SystemTap probes' arguments.
1338 (arm_stap_is_single_operand): New function.
1339 (arm_stap_parse_special_token): Likewise.
1340 (arm_linux_init_abi): Initializing proper fields used by SystemTap
1341 probes' arguments parser.
1342 * ax-gdb.c (require_rvalue): Removing static declaration.
1343 (gen_expr): Likewise.
1344 * ax-gdb.h (gen_expr): Declaring function.
1345 (require_rvalue): Likewise.
1346 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
1347 (bkpt_probe_breakpoint_ops): New variable.
1348 (momentary_breakpoint_from_master): Set the `probe' value.
1349 (add_location_to_breakpoint): Likewise.
1350 (break_command_1): Using proper breakpoint_ops according to the
1351 argument passed by the user in the command line.
1352 (bkpt_probe_insert_location): New function.
1353 (bkpt_probe_remove_location): Likewise.
1354 (bkpt_probe_create_sals_from_address): Likewise.
1355 (bkpt_probe_decode_linespec): Likewise.
1356 (tracepoint_probe_create_sals_from_address): Likewise.
1357 (tracepoint_probe_decode_linespec): Likewise.
1358 (tracepoint_probe_breakpoint_ops): New variable.
1359 (trace_command): Using proper breakpoint_ops according to the
1360 argument passed by the user in the command line.
1361 (initialize_breakpoint_ops): Initializing breakpoint_ops for
1362 static probes on breakpoints and tracepoints.
1363 * breakpoint.h (struct bp_location) <probe>: New field.
1364 * cli-utils.c (skip_spaces_const): New function.
1365 (extract_arg): Likewise.
1366 * cli-utils.h (skip_spaces_const): Likewise.
1367 (extract_arg): Likewise.
1368 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
1369 * configure.ac: Append `stap-probe.o' to be generated when ELF
1371 * configure: Regenerate.
1372 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
1373 * elfread.c: Include `probe.h' and `arch-utils.h'.
1374 (probe_key): New variable.
1375 (elf_get_probes): New function.
1376 (elf_get_probe_argument_count): Likewise.
1377 (elf_evaluate_probe_argument): Likewise.
1378 (elf_compile_to_ax): Likewise.
1379 (elf_symfile_relocate_probe): Likewise.
1380 (stap_probe_key_free): Likewise.
1381 (elf_probe_fns): New variable.
1382 (elf_sym_fns): Add `sym_probe_fns' value.
1383 (elf_sym_fns_lazy_psyms): Likewise.
1384 (elf_sym_fns_gdb_index): Likewise.
1385 (_initialize_elfread): Initialize objfile cache for static
1387 * gdb_vecs.h (struct probe): New forward declaration.
1388 (probe_p): New VEC declaration.
1389 * gdbarch.c: Regenerate.
1390 * gdbarch.h: Regenerate.
1391 * gdbarch.sh (stap_integer_prefix): New variable.
1392 (stap_integer_suffix): Likewise.
1393 (stap_register_prefix): Likewise.
1394 (stap_register_suffix): Likewise.
1395 (stap_register_indirection_prefix): Likewise.
1396 (stap_register_indirection_suffix): Likewise.
1397 (stap_gdb_register_prefix): Likewise.
1398 (stap_gdb_register_suffix): Likewise.
1399 (stap_is_single_operand): New function.
1400 (stap_parse_special_token): Likewise.
1401 (struct stap_parse_info): Forward declaration.
1402 * i386-tdep.c: Including headers needed to perform the parsing
1403 of SystemTap probes' arguments.
1404 (i386_stap_is_single_operand): New function.
1405 (i386_stap_parse_special_token): Likewise.
1406 (i386_elf_init_abi): Initializing proper fields used by SystemTap
1407 probes' arguments parser.
1408 * i386-tdep.h (i386_stap_is_single_operand): New function.
1409 (i386_stap_parse_special_token): Likewise.
1410 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
1411 * mipsread.c (ecoff_sym_fns): Likewise.
1412 * objfiles.c (objfile_relocate1): Support relocation for static
1414 * parse.c (prefixify_expression): Remove static declaration.
1415 (initialize_expout): Likewise.
1416 (reallocate_expout): Likewise.
1417 * parser-defs.h (initialize_expout): Declare function.
1418 (reallocate_expout): Likewise.
1419 (prefixify_expression): Likewise.
1420 * ppc-linux-tdep.c: Including headers needed to perform the parsing
1421 of SystemTap probes' arguments.
1422 (ppc_stap_is_single_operand): New function.
1423 (ppc_stap_parse_special_token): Likewise.
1424 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
1425 probes' arguments parser.
1426 * probe.c: New file, for generic statically defined probe support.
1427 * probe.h: Likewise.
1428 * s390-tdep.c: Including headers needed to perform the parsing of
1429 SystemTap probes' arguments.
1430 (s390_stap_is_single_operand): New function.
1431 (s390_gdbarch_init): Initializing proper fields used by SystemTap
1432 probes' arguments parser.
1433 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
1434 * stap-probe.c: New file, for SystemTap probe support.
1435 * stap-probe.h: Likewise.
1436 * symfile.h: Include `gdb_vecs.h'.
1437 (struct sym_probe_fns): New struct.
1438 (struct sym_fns) <sym_probe_fns>: New field.
1439 * symtab.c (init_sal): Initialize `probe' field.
1440 * symtab.h (struct probe): Forward declaration.
1441 (struct symtab_and_line) <probe>: New field.
1442 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
1444 (stop_tracing): Likewise.
1445 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
1447 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
1448 Tom Tromey <tromey@redhat.com>
1450 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
1451 and to compile agent expressions.
1452 * infrun.c (siginfo_make_value): New argument `ignore'.
1453 (siginfo_funcs): New struct.
1454 (_initialize_infrun): New argument when calling
1455 `create_internalvar_type_lazy'.
1456 * thread.c (thread_id_make_value): New argument `ignore'.
1457 (thread_funcs): New struct.
1458 (_initialize_thread): New argument when calling
1459 `create_internalvar_type_lazy'.
1460 * tracepoint.c (sdata_make_value): New argument `ignore'.
1461 (sdata_funcs): New struct.
1462 (_initialize_tracepoint): New argument when calling
1463 `create_internalvar_type_lazy'.
1464 * value.c (make_value): New struct.
1465 (create_internalvar_type_lazy): New argument `data'.
1466 (compile_internalvar_to_ax): New function.
1467 (value_of_internalvar): Properly handling `make_value' case.
1468 (clear_internalvar): Likewise.
1469 (show_convenience): Adding `TRY_CATCH' block.
1470 * value.h (internalvar_make_value): Delete, replace by...
1471 (struct internalvar_funcs): ... this.
1472 (create_internalvar_type_lazy) <fun>: Delete argument.
1473 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
1474 (compile_internalvar_to_ax): New function.
1475 * windows-tdep.c (tlb_make_value): New argument `ignore'.
1476 (tlb_funcs): New struct.
1477 (_initialize_windows_tdep): New argument when calling
1478 `create_internalvar_type_lazy'.
1480 2012-04-27 Mark Wielaard <mjw@redhat.com>
1482 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
1483 see whether it is an address or a constant offset from DW_AT_low_pc.
1484 (dwarf2_record_block_ranges): Likewise.
1485 (read_partial_die): Likewise.
1487 2012-04-26 Mark Wielaard <mjw@redhat.com>
1489 * MAINTAINERS (Write After Approval): Add myself to the list.
1491 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
1493 * proc-utils.h (proc_prettyprint_signalset): New prototype.
1494 (proc_prettyprint_signal): Likewise.
1495 (proc_prettyprint_faultset): Likewise.
1496 (proc_prettyprint_fault): Likewise.
1497 (proc_prettyprint_actionset): Likewise.
1498 (proc_prettyprint_flags): Move to new proc-flags.c section.
1499 (proc_prettyfprint_flags): New prototype.
1500 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
1501 (proc_syscall, proc_cursig): Likewise.
1502 (proc_set_kill_on_last_close): Likewise.
1503 (proc_unset_kill_on_last_close): Likewise.
1504 (proc_set_watchpoint): Make static.
1505 (proc_delete_dead_threads): Likewise.
1506 (procfs_set_watchpoint): Likewise.
1507 (_initialize_procfs): Add prototype.
1508 * proc-events.c: Include proc-utils.h.
1509 (init_syscall_table): Make static.
1510 * proc-api.c (_initialize_proc_api): Add prototype.
1511 * proc-flags.c: Include proc-utils.h.
1513 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
1515 * configure.ac: Add AC_ARG_PROGRAM.
1516 * configure: Regenerate.
1518 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1520 Fix DW_AT_lower_bound defaults for DWARF-4+.
1521 * dwarf2read.c (read_subrange_type): Remove initialization of low and
1522 high. New variable low_default_is_valid. Implement DWARF-4+
1523 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
1524 no default by the DWARF standard.
1526 2012-04-26 Maciej W. Rozycki <macro@mips.com>
1527 Maciej W. Rozycki <macro@codesourcery.com>
1529 * infrun.c (handle_inferior_event): Move the check for return
1530 trampolines ahead of the check for function trampolines.
1531 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
1532 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
1533 (mips_str_mips16_ret_stub): Likewise.
1534 (mips_str_call_fp_stub): Likewise.
1535 (mips_str_call_stub): Likewise.
1536 (mips_str_fn_stub): Likewise.
1537 (mips_str_pic): Likewise.
1538 (mips_in_frame_stub): New function.
1539 (mips_unwind_pc): Return the return address rather than the PC
1540 if the PC of an intermediate frame is inside a call thunk.
1541 (mips_is_stub_suffix): New function.
1542 (mips_is_stub_mode): Likewise.
1543 (mips_get_mips16_fn_stub_pc): Likewise.
1544 (mips_skip_mips16_trampoline_code): Update to handle all the
1545 currently generated stub types. Don't recurse into __fn_stub
1546 thunks. Remove heuristics to handle stubs beyond etext/_etext.
1547 Use cooked register accesses.
1548 (mips_in_return_stub): Reintroduce function.
1549 (mips_skip_trampoline_code): Traverse trampolines recursively.
1550 (mips_gdbarch_init): Handle MIPS16 return trampolines.
1552 2012-04-26 Joel Brobecker <brobecker@adacore.com>
1556 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
1558 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
1559 * features/arm-with-m-vfp-d16.xml: New file. Describes
1560 Cortex-M with VFPv4-sp-d16 FPU register layout.
1561 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
1562 * features/arm-with-m-vfp-d16.c: New. Generated from above.
1563 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
1564 (arm-register_g_packet_guesses): Add vfp-d16 guess.
1565 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
1567 2012-04-25 Doug Evans <dje@google.com>
1569 * cli/cli-decode.c (print_doc_line): Use stream instead of
1572 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1574 * features/arm-with-iwmmxt.c: Regenerate.
1575 * features/arm-with-m-fpa-layout.c: Likewise.
1576 * features/arm-with-m.c: Likewise.
1577 * features/arm-with-neon.c: Likewise.
1578 * features/arm-with-vfpv2.c: Likewise.
1579 * features/arm-with-vfpv3.c: Likewise.
1580 * features/mips-dsp-linux.c: Likewise.
1581 * features/mips-linux.c: Likewise.
1582 * features/mips64-dsp-linux.c: Likewise.
1583 * features/mips64-linux.c: Likewise.
1584 * features/s390-linux32.c: Likewise.
1585 * features/s390-linux32v1.c: Likewise.
1586 * features/s390-linux32v2.c: Likewise.
1587 * features/s390-linux64.c: Likewise.
1588 * features/s390-linux64v1.c: Likewise.
1589 * features/s390-linux64v2.c: Likewise.
1590 * features/s390x-linux64.c: Likewise.
1591 * features/s390x-linux64v1.c: Likewise.
1592 * features/s390x-linux64v2.c: Likewise.
1593 * features/tic6x-c62x-linux.c: Likewise.
1594 * features/tic6x-c62x.c: Likewise.
1595 * features/tic6x-c64x-linux.c: Likewise.
1596 * features/tic6x-c64x.c: Likewise.
1597 * features/tic6x-c64xp-linux.c: Likewise.
1598 * features/tic6x-c64xp.c: Likewise.
1599 * target-descriptions.c: Only generate `field_type' and `type'
1600 variables when needed.
1602 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
1604 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
1606 2012-04-25 Doug Evans <dje@google.com>
1608 Initial pass at Go language support.
1610 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
1612 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
1613 (YYFILES): Add go-exp.c.
1614 (YYOBJ): Add go-exp.o.
1615 (local-maintainer-clean): Delete go-exp.c.
1616 * defs.h (enum language): Add language_go.
1617 * dwarf2read.c: #include "go-lang.h".
1618 (fixup_go_packaging): New function.
1619 (process_full_comp_unit): Call it when processing Go CUs.
1620 (dwarf2_physname): Add Go support.
1621 (read_file_scope): Handle missing language spec for GNU Go.
1622 (set_cu_language): Handle DW_LANG_Go.
1623 * go-exp.y: New file.
1624 * go-lang.h: New file.
1625 * go-lang.c: New file.
1626 * go-typeprint.c: New file.
1627 * go-valprint.c: New file.
1628 * symtab.c: #include "go-lang.h".
1629 (symbol_set_language): Handle language_go.
1630 (symbol_find_demangled_name, symbol_set_names): Ditto.
1631 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
1633 2012-04-24 Jim Meyering <meyering@redhat.com>
1635 avoid a few strncpy-induced buffer overruns
1636 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
1637 fname and psargs before trying to concatenate.
1638 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
1639 "name" before applying strchr.
1641 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
1643 * CONTRIBUTE: Use unified diff instead of context diff when
1646 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
1648 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
1649 code. Handle JR.HB correctly.
1651 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
1654 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
1655 with the other MIPS16 helpers.
1657 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1659 * observer.sh: Conditionally declare `args', thus cleaning up
1660 unused instances of this variable.
1662 2012-04-24 Yao Qi <yao@codesourcery.com>
1664 Revert this patch to allow breakpoint always-inserted
1666 2011-12-05 Pedro Alves <pedro@codesourcery.com>
1667 * breakpoint.c: Include record.h.
1668 (breakpoints_always_inserted_mode): Return false when the record
1671 * breakpoint.c (iterate_over_bp_locations): New.
1672 * breakpoint.h: Declare.
1673 New typedef walk_bp_location_callback.
1674 * record.c (record_open): Call record_init_record_breakpoints.
1675 (record_sync_record_breakpoints): New.
1676 (record_init_record_breakpoints): New.
1677 * NEWS: Mention supporting breakpoint always-inserted mode in
1680 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
1682 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
1685 2012-04-24 Yao Qi <yao@codesourcery.com>
1687 * breakpoint.c (ep_is_catchpoint): Renamed to ...
1688 (is_catchpoint): ... it.
1689 (print_one_breakpoint_location): Caller update.
1690 * breakpoint.h: Update declaration.
1692 2012-04-23 David S. Miller <davem@davemloft.net>
1694 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
1696 2012-04-23 Tom Tromey <tromey@redhat.com>
1698 * buildsym.c (add_free_pendings): Remove.
1699 * buildsym.h (add_free_pendings): Remove.
1701 2012-04-23 Doug Evans <dje@google.com>
1703 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
1704 attr.u.unsnd instead of attr.u.addr.
1705 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
1706 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
1708 (dump_die_shallow): Update cases DW_FORM_ref_addr,
1709 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
1711 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
1713 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
1715 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
1716 (mips_o32_return_value): Likewise.
1717 (mips_o64_return_value): Likewise.
1719 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
1721 * ada-lang.c (ada_evaluate_subexp): Add cases for
1722 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
1723 their treatment in eval.c.
1725 2012-04-21 David S. Miller <davem@davemloft.net>
1727 * sparc-tdep.c (X_DISP10): Define.
1728 (sparc_analyze_control_transfer): Handle compare-and-branch.
1730 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
1732 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
1733 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
1735 2012-04-20 Nigel Stephens <nigel@mips.com>
1736 Maciej W. Rozycki <macro@codesourcery.com>
1738 * mips-tdep.c (mips_float_register_p): New function.
1739 (mips_convert_register_float_case_p): Use mips_float_register_p.
1740 (mips_register_type): Likewise.
1741 (mips_print_register): Likewise.
1742 (print_gp_register_row): Likewise.
1743 (mips_print_registers_info): Likewise.
1745 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
1747 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
1750 2012-04-20 Andrew Pinski <apinski@cavium.com>
1752 * MAINTAINERS (Write After Approval): Add myself to the list.
1754 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
1756 * MAINTAINERS: Update my e-mail address.
1758 2012-04-20 Pedro Alves <palves@redhat.com>
1760 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
1762 * configure: Regenerate.
1764 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
1766 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
1768 * gdb_vecs.h: Declare `const_char_ptr' VEC.
1770 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1772 Fix compilation compatibility with python-2.4
1773 * python/py-type.c (convert_field): Cast ADDRSTRING for
1774 PyObject_SetAttrString as non-const. New comment.
1776 2012-04-19 Tom Tromey <tromey@redhat.com>
1778 * top.c (quit_target): Use all_cleanups.
1779 * main.c (captured_command_loop): Use all_cleanups.
1780 * exceptions.c (throw_exception): Use all_cleanups.
1782 2012-04-19 Pedro Alves <palves@redhat.com>
1784 * Makefile.in (GNULIB_BUILDDIR): New.
1785 (LIBGNU, INCGNU, GNULIB_H): Adjust.
1786 (SUBDIRS): Add $(GNULIB_BUILDDIR).
1787 (CLEANDIRS). Remove gnulib/import.
1788 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
1790 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
1791 (gnulib/import/Makefile): Replace gnulib/import with
1792 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
1793 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
1794 (aclocal_m4_deps): Remove the gnulib dependencies. Add
1795 acx_configure_dir.m4.
1796 * acinclude.m4: Include acx_configure_dir.m4.
1797 * acx_configure_dir.m4: New file.
1798 * aclocal.m4: Regenerate.
1799 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
1800 calls. Configure gnulib using ACX_CONFIGURE_DIR.
1801 (GNULIB): New variable.
1802 (GNULIB_STDINT_H): Adjust.
1803 (AC_OUTPUT): Don't output gnulib/Makefile.
1804 * gdb/defs.h: Include build-gnulib/config.h.
1805 * aclocal.m4: Regenerate.
1806 * config.in: Regenerate.
1807 * configure: Regenerate.
1809 * gnulib/Makefile.in: New file.
1810 * gnulib/configure.ac: New file.
1811 * gnulib/aclocal.m4: New file.
1812 * gnulib/config.in: New file.
1813 * gnulib/configure: New file.
1814 * gnulib/: Re-run gnulib-tool to adjust.
1816 2012-04-19 Doug Evans <dje@google.com>
1818 * cleanups.h (struct cleanup): Move to cleanups.c.
1819 (make_cleanup_dtor_ftype): New typedef.
1820 (make_cleanup_dtor): Use it.
1821 (ALL_CLEANUPS): Replace with ...
1822 (all_cleanups): ... this. Declare. All uses updated.
1823 * cleanups.c: #include "gdb_assert.h".
1824 (sentinel_cleanup): New static global.
1825 (SENTINEL_CLEANUP): Define.
1826 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
1827 (make_my_cleanup2): Assert result is non-NULL.
1828 (all_cleanups): New function.
1829 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
1832 2012-04-19 Pedro Alves <palves@redhat.com>
1834 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
1835 Adjust paths to gnulib imported files.
1837 2012-04-19 Pedro Alves <palves@redhat.com>
1839 * gnulib/: Move whole directory ...
1840 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
1841 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
1842 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
1843 (aclocal_m4_deps): Adjust.
1844 * aclocal.m4: Regenerate.
1845 * configure: Regenerate.
1846 * configure.ac: Adjust AC_OUTPUT output.
1848 2012-04-19 Yao Qi <yao@codesourcery.com>
1850 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
1852 * vec.c: Move it ...
1853 * common/vec.c: ... here.
1854 * vec.h: Move it ...
1855 * common/vec.h: ... here.
1857 2012-04-19 Yao Qi <yao@codesourcery.com>
1859 * gdb-code-style.el: New.
1861 2012-04-18 Pedro Alves <palves@redhat.com>
1863 Update gnulib from latest git.
1864 (639ea5ae15e39fe48d43e04864b2997301e4b969)
1866 * gnulib/Makefile.am: Update.
1867 * gnulib/dummy.c: Update.
1868 * gnulib/extra/arg-nonnull.h: Update.
1869 * gnulib/extra/c++defs.h: Update.
1870 * gnulib/extra/update-copyright: Update.
1871 * gnulib/extra/warn-on-use.h: Update.
1872 * gnulib/inttypes.in.h: Update.
1873 * gnulib/m4/00gnulib.m4: Update.
1874 * gnulib/m4/extensions.m4: Update.
1875 * gnulib/m4/gnulib-cache.m4: Update.
1876 * gnulib/m4/gnulib-common.m4: Update.
1877 * gnulib/m4/gnulib-comp.m4: Update.
1878 * gnulib/m4/gnulib-tool.m4: Update.
1879 * gnulib/m4/include_next.m4: Update.
1880 * gnulib/m4/inttypes-pri.m4: Update.
1881 * gnulib/m4/inttypes.m4: Update.
1882 * gnulib/m4/longlong.m4: Update.
1883 * gnulib/m4/memchr.m4: Update.
1884 * gnulib/m4/memmem.m4: Update.
1885 * gnulib/m4/mmap-anon.m4: Update.
1886 * gnulib/m4/multiarch.m4: Update.
1887 * gnulib/m4/onceonly.m4: Update.
1888 * gnulib/m4/stddef_h.m4: Update.
1889 * gnulib/m4/stdint.m4: Update.
1890 * gnulib/m4/string_h.m4: Update.
1891 * gnulib/m4/warn-on-use.m4: Update.
1892 * gnulib/m4/wchar_h.m4: Update.
1893 * gnulib/m4/wchar_t.m4: Update.
1894 * gnulib/m4/wint_t.m4: Update.
1895 * gnulib/memchr.c: Update.
1896 * gnulib/memmem.c: Update.
1897 * gnulib/stddef.in.h: Update.
1898 * gnulib/stdint.in.h: Update.
1899 * gnulib/str-two-way.h: Update.
1900 * gnulib/string.in.h: Update.
1901 * gnulib/wchar.in.h: Update.
1903 * gnulib/extra/arg-nonnull.h: Delete.
1904 * gnulib/extra/c++defs.h: Delete.
1905 * gnulib/extra/warn-on-use.h: Delete.
1906 * gnulib/m4/wchar_h.m4: Delete.
1907 * gnulib/m4/wint_t.m4: Delete.
1908 * gnulib/wchar.in.h: Delete.
1910 * gnulib/extra/snippets/arg-nonnull.h: New.
1911 * gnulib/extra/snippets/c++defs.h: New.
1912 * gnulib/extra/snippets/warn-on-use.h: New.
1914 * aclocal.m4: Regenerate.
1915 * config.in: Regenerate.
1916 * configure: Regenerate.
1917 * gnulib/Makefile.in: Regenerate.
1919 2012-04-18 Pedro Alves <palves@redhat.com>
1921 Reimport the update-copyright module from gnulib
1922 (250b80067c1e1d8faa0c42fb572f721975b929c5).
1924 * configure: Regenerate.
1925 * gnulib/Makefile.am: Update.
1926 * gnulib/Makefile.in: Regenerate.
1927 * gnulib/extra/update-copyright: Update.
1928 * gnulib/m4/gnulib-cache.m4: Update.
1929 * gnulib/m4/gnulib-comp.m4: Update.
1931 2012-04-18 Tristan Gingold <gingold@adacore.com>
1933 * configure.ac (aix): Put -lpthread into libs.
1934 * configure: Regenerate.
1936 2012-04-18 Tom Tromey <tromey@redhat.com>
1938 * linespec.c (convert_linespec_to_sals): Don't use
1940 (compare_msymbols): Arguments are minsym_and_objfile, not
1941 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
1943 2012-04-18 Pedro Alves <palves@redhat.com>
1945 Revert gnulib/ part of:
1946 2011-01-01 Joel Brobecker <brobecker@adacore.com>
1947 Copyright year update in most files (performed by copyright.sh).
1949 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1951 Fix 64-bit constants on 32-bit hosts.
1952 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
1953 from unsigned long to ULONGEST.
1954 (read_signed_leb128): Change declaration return type from long to
1956 (dwarf2_const_value_attr): Change declaration parameter value from long
1958 (dwarf2_compute_name): Change variable value from long to LONGEST.
1959 (read_unsigned_leb128): Change return type, variable result and some
1960 casts from unsigned long to ULONGEST.
1961 (read_signed_leb128): Change return type, variable result and some
1962 casts from long to LONGEST.
1963 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
1964 value from long to LONGEST.
1965 (dwarf2_const_value): Change variable value from long to LONGEST.
1966 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
1967 plongest and hex_string.
1968 * symtab.h (struct general_symbol_info): Change ivalue from long to
1969 LONGEST, remove the comment.
1970 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
1971 Change SYMBOL_VALUE format strings to use plongest and hex_string.
1973 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
1976 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
1977 * ada-lang.c (ada_discrete_type_high_bound)
1978 (ada_discrete_type_low_bound): Fix function comment. Use
1979 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1980 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
1981 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1982 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
1983 Use TYPE_FIELD_ENUMVAL.
1984 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
1985 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1986 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
1987 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
1989 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
1990 * dwarf2read.c (process_enumeration_scope): Likewise.
1991 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
1993 (class StructMainTypePrettyPrinter): Support also
1994 FIELD_LOC_KIND_ENUMVAL.
1995 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
1997 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1998 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
1999 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
2000 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
2002 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
2003 accommodate enumval.
2004 (struct call_site): Adjust loc_kind to accommodate enumval.
2005 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
2006 (TYPE_FIELD_ENUMVAL): New macros.
2007 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
2008 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
2010 * p-typeprint.c (pascal_type_print_base): Likewise.
2011 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
2013 * python/lib/gdb/types.py (make_enum_dict): Likewise.
2014 * python/py-type.c (convert_field): New variable addrstring. Use
2015 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2016 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
2017 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
2018 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
2020 * valprint.c (generic_val_print): Likewise.
2022 2012-04-17 Doug Evans <dje@google.com>
2024 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
2026 * dwarf2read.c: Whitespace fixes.
2027 (lookup_signatured_type): Tweak comment.
2028 (get_die_type_at_offset): Fix comment.
2030 2012-04-17 Joel Brobecker <brobecker@adacore.com>
2032 * xcoffread.c (xcoff_secnum_to_sections): New function.
2033 (secnum_to_section, secnum_to_bfd_section): Reimplement
2034 using xcoff_secnum_to_sections. Rename "secnum" parameter
2036 (RECORD_MINIMAL_SYMBOL): Delete.
2037 (record_minimal_symbol): New function.
2038 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
2039 by call to record_minimal_symbol and set misc_func_recorded
2040 to 1. Set last_csect_sec to the XCOFF section index instead
2041 of GDB's section_offset index. Update calls to
2042 prim_record_minimal_symbol_and_info to pass the BFD section
2045 2012-04-17 Joel Brobecker <brobecker@adacore.com>
2047 * xcoffread.c (read_xcoff_symtab): Delete variables
2048 last_csect_val and last_csect_sec and associated code.
2050 2012-04-17 Doug Evans <dje@google.com>
2052 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
2053 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2054 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
2055 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
2057 * cleanups.h: New file.
2058 * cleanups.c: New file.
2059 * Makefile.in (SFILES): Add cleanups.c.
2060 (HFILES_NO_SRCDIR): Add cleanups.h.
2061 (COMMON_OBS): Add cleanups.o.
2062 * defs.h (struct cleanup): Moved to cleanups.h.
2063 (do_cleanups,do_final_cleanups): Ditto.
2064 (discard_cleanups,discard_final_cleanups): Ditto
2065 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
2066 (save_cleanups,save_final_cleanups): Ditto.
2067 (restore_cleanups,restore_final_cleanups): Ditto.
2068 (null_cleanup): Ditto.
2069 (make_my_cleanup,make_my_cleanup2): Ditto.
2070 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2071 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
2072 (do_cleanups,do_final_cleanups): Ditto.
2073 (discard_cleanups,discard_final_cleanups): Ditto
2074 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
2075 (save_cleanups,save_final_cleanups): Ditto.
2076 (restore_cleanups,restore_final_cleanups): Ditto.
2077 (null_cleanup): Ditto.
2078 (make_my_cleanup,make_my_cleanup2): Ditto.
2079 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2081 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
2083 (make_cleanup_dyn_string_delete): Ditto.
2084 (make_cleanup_ui_file_delete): Ditto.
2085 (make_cleanup_ui_out_redirect_pop): Ditto.
2086 (make_cleanup_free_section_addr_info): Ditto.
2087 (make_cleanup_restore_integer): Ditto.
2088 (make_cleanup_unpush_target): Ditto.
2089 (make_cleanup_value_free_to_mark): Ditto.
2090 (make_cleanup_value_free): Ditto.
2091 (make_cleanup_free_so): Ditto.
2093 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2095 New option "set debug auto-load".
2096 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
2097 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
2098 (auto_load_safe_path_vec_update)
2099 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
2101 (file_is_auto_load_safe): New parameters debug_fmt and ....
2102 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
2103 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
2104 caller by explanatory string.
2105 (_initialize_auto_load): Register "set debug auto-load".
2106 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
2108 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
2109 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
2110 by explanatory string.
2111 * main.c (captured_main): Likewise.
2112 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2113 (source_section_scripts): Likewise.
2115 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2117 New option "set auto-load safe-path".
2118 * NEWS: New commands "set auto-load safe-path"
2119 and "show auto-load safe-path".
2120 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
2121 (auto_load_safe_path, auto_load_safe_path_vec)
2122 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
2123 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
2124 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
2125 (source_gdb_script_for_objfile): New variable is_safe. Call
2126 file_is_auto_load_safe. Return if it is not.
2127 (struct loaded_script): New field loaded.
2128 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
2129 (print_script): Use LOADED indicator instead of FULL_PATH. Change
2130 output "Missing" to "No".
2131 (_initialize_auto_load): New variable cmd. Initialize
2132 auto_load_safe_path. Register "set auto-load safe-path",
2133 "show auto-load safe-path" and "add-auto-load-safe-path".
2134 * auto-load.h (maybe_add_script): Add parameter loaded.
2135 (file_is_auto_load_safe): New declaration.
2136 * config.in: Regenerate.
2137 * configure: Regenerate.
2138 * configure.ac: New parameters --with-auto-load-safe-path
2139 and --without-auto-load-safe-path.
2140 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
2141 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
2142 * main.c (captured_main): Check file_is_auto_load_safe for
2144 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
2145 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
2146 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
2149 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2151 auto-load: Implementation.
2152 * NEWS: New descriptions for "info auto-load",
2153 "info auto-load gdb-scripts", "info auto-load python-scripts",
2154 "info auto-load local-gdbinit" and "info auto-load libthread-db".
2155 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
2156 and "show auto-load-scripts". New description for "set auto-load",
2157 "show auto-load", "set auto-load gdb-scripts",
2158 "show auto-load gdb-scripts", "set auto-load python-scripts",
2159 "show auto-load python-scripts", "set auto-load local-gdbinit",
2160 "show auto-load local-gdbinit", "set auto-load libthread-db" and
2161 "show auto-load libthread-db".
2162 * auto-load.c: Remove include python/python-internal.h. Add includes
2163 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
2165 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
2166 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
2167 (gdbpy_global_auto_load): Rename to ...
2168 (global_auto_load): ... here.
2169 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
2170 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
2171 (script_language_gdb, source_gdb_script_for_objfile): New.
2172 (struct loaded_script): New field language.
2173 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
2175 (maybe_add_script): Add parameter language. Drop redundant
2176 entry.full_path initialization. Initialize entry.language and
2178 (auto_load_objfile_script): Change parameter suffix to language.
2179 Remove the call of maybe_add_script.
2180 Call language->source_script_for_objfile.
2181 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
2183 (collect_matching_scripts): Adjust it for
2184 struct collect_matching_scripts_data.
2185 (auto_load_info_scripts_pattern_nl): New variable.
2186 (info_auto_load_scripts): Rename to ...
2187 (auto_load_info_scripts): ... here, add parameter language. Adjust it
2188 for struct collect_matching_scripts_data.
2189 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
2190 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
2191 (auto_load_show_cmdlist_get, info_auto_load_cmd)
2192 (auto_load_info_cmdlist_get): New.
2193 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
2194 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
2195 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
2196 "info auto-load local-gdbinit".
2197 * auto-load.h (struct script_language): New.
2198 (gdbpy_global_auto_load): Rename to ...
2199 (global_auto_load): ... here.
2200 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
2201 (auto_load_local_gdbinit_loaded): New declarations.
2202 (maybe_add_script): New parameter language.
2203 (auto_load_objfile_script): Change parameter suffix to language.
2204 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
2205 (auto_load_info_scripts, auto_load_set_cmdlist_get)
2206 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
2208 * linux-thread-db.c: Include auto-load.h and ctype.h.
2209 (auto_load_thread_db, show_auto_load_thread_db): New.
2210 (struct thread_db_info): New field filename.
2211 (delete_thread_db_info): Call xfree for FILENAME.
2212 (try_thread_db_load): Initialize FILENAME.
2213 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
2214 if !AUTO_LOAD_THREAD_DB.
2215 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
2216 (_initialize_thread_db): Install auto_load_thread_db
2217 as "set auto-load libthread-db" and install info_auto_load_libthread_db
2218 as "info auto-load libthread-db".
2219 * main.c (captured_main): Rename gdbpy_global_auto_load to
2220 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
2221 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
2222 (print_gdb_help): Extend the help for 'local init file'.
2223 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
2224 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
2225 (auto_load_scripts): Rename to ...
2226 (auto_load_python_scripts): ... here, update the comment.
2227 (gdbpy_load_auto_script_for_objfile): New declaration.
2228 (show_auto_load_python_scripts, script_language_python)
2229 (gdbpy_load_auto_script_for_objfile): New.
2230 (source_section_scripts): Refactor the code.
2231 (load_auto_scripts_for_objfile): Rename to ...
2232 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
2233 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
2234 (info_auto_load_python_scripts): New.
2235 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
2236 Rename "set auto-load-scripts" to "set auto-load python-scripts".
2237 Register "set auto-load-scripts" as its deprecated alias. Register
2238 "info auto-load python-scripts". Register "info auto-load-scripts" as
2239 its deprecated alias.
2240 (load_auto_scripts_for_objfile): Rename to ...
2241 (gdbpy_load_auto_scripts_for_objfile): ... here.
2242 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
2243 (gdbpy_load_auto_scripts_for_objfile): ... here.
2245 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2247 auto-load: Move files.
2248 * Makefile.in (SFILES): Add auto-load.c.
2249 (HFILES_NO_SRCDIR): Add auto-load.h.
2250 (COMMON_OBS): Add auto-load.o.
2251 (distclean): Change .gdbinit for gdb-gdb.gdb.
2252 * auto-load.c: New file, with parts from python/py-auto-load.c.
2253 * auto-load.h: New file, with parts from python/python.h.
2254 * configure: Regenerate.
2255 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
2256 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
2257 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
2258 * main.c: Include auto-load.h.
2259 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
2260 command.h, observer.h and progspace.h to auto-load.c. Add include
2262 (gdbpy_global_auto_load, struct auto_load_pspace_info)
2263 (struct loaded_script, auto_load_pspace_data)
2264 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
2265 (hash_loaded_script_entry, eq_loaded_script_entry)
2266 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
2267 (maybe_add_script): Move to auto-load.c.
2268 (source_section_scripts): Change maybe_add_script parameters passing,
2269 use script_not_found_warning_print.
2270 (clear_section_scripts, auto_load_objfile_script)
2271 (auto_load_new_objfile, loaded_script_ptr)
2272 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
2273 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
2274 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
2275 auto_load_new_objfile and info_auto_load_scripts initizations to
2277 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
2279 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2282 * charset.c (find_charset_names): Remove variables ix and elt.
2283 Use free_char_ptr_vec.
2284 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
2285 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
2286 debugdir_end. New variable debugdir_len.
2287 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
2288 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
2290 * progspace.c (clear_program_space_solib_cache): Remove variables ix
2291 and elt. Use free_char_ptr_vec.
2292 * source.c (add_path): Remove variables argv, arg and argv_index.
2293 New variables dir_vec, back_to, ix and name.
2294 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
2295 make_cleanup_freeargv. Remove variable separator. Simplify the code
2296 no longer expecting DIRNAME_SEPARATOR.
2297 (openp): Remove variable p, p1 and len. New variables dir_vec,
2298 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
2299 no longer expecting DIRNAME_SEPARATOR.
2300 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
2301 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
2303 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
2304 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
2305 (dirnames_to_char_ptr_vec): New functions.
2307 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2310 * source.c (add_path): Remove always true conditional 'p == 0' and
2311 unindent its code block.
2313 2012-04-17 Pedro Alves <palves@redhat.com>
2315 * gdbtypes.h (FIELD_BITPOS): Rename to ...
2316 (FIELD_BITPOS_LVAL): ... this.
2317 (FIELD_BITPOS): New.
2318 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
2319 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
2320 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
2322 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
2324 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
2325 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
2326 * target-descriptions.c (tdesc_gdb_type): Adjust to use
2329 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2331 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
2332 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
2333 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
2334 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
2335 * jv-lang.c (java_link_class_type): Likewise, once.
2336 * stabsread.c (read_enum_type): Likewise.
2338 2012-04-16 Yao Qi <yao@codesourcery.com>
2340 * common/agent.c (agent_run_command): Add one more parameter `len'.
2342 * common/agent.h: Update declaration.
2343 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2345 (linux_child_static_tracepoint_markers_by_strid): Ditto.
2347 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
2350 * value.c (value_actual_type): New function.
2351 * value.h (value_actual_type): New declaration.
2352 * varobj.c (update_type_if_necessary): New function.
2353 (varobj_create): Call value_actual_type instead of
2355 (install_dynamic_child): distinct changed and type changed MI variable
2357 (update_dynamic_varobj_children): Updated for install_dynamic_child
2358 change. All callers updated.
2359 (varobj_update): Support for MI variable object type change if
2360 the value changed and RTTI is used to determine the type.
2361 (create_child_with_value): Call value_actual_type instead of
2363 (adjust_value_for_child_access): Extended with a new parameter which
2364 specify whether the given value should be casted to enclosing type.
2365 All callers updated.
2367 2012-04-14 Yao Qi <yao@codesourcery.com>
2369 Import gnulib module inttypes from git
2370 (250b80067c1e1d8faa0c42fb572f721975b929c5)
2371 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
2372 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
2373 gnulib/m4/inttypes-pri.m4
2374 * aclocal.m4, config.in, configure: Regenerated.
2375 * gnulib/Makefile.am: Update.
2376 * gnulib/Makefile.in: Update.
2377 * gnulib/m4/gnulib-cache.m4: Update.
2378 * gnulib/m4/gnulib-comp.m4: Update.
2379 * gnulib/inttypes.in.h: New.
2380 * gnulib/m4/inttypes-pri.m4: New.
2381 * gnulib/m4/inttypes.m4: New.
2383 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
2385 * infrun.c (resume): Update PC address to the real PC after
2386 preparing to do displaced stepping.
2388 2012-04-12 Doug Evans <dje@google.com>
2390 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
2391 All callers updated.
2393 2012-04-12 Mark Kettenis <kettenis@gnu.org>
2395 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
2397 2012-04-12 Doug Evans <dje@google.com>
2399 * dwarf2read.c (create_all_type_units): Renamed from
2400 create_debug_types_hash_table. All callers updated.
2402 * dwarf2read.c (create_signatured_type_table_from_index): Rename
2403 local type_sig to sig_type, type_offset to type_offset_in_tu.
2404 (hash_signatured_type): Renamed from hash_type_signature,
2405 all callers updated.
2406 (eq_signatured_type): Renamed from eq_type_signature,
2407 all callers updated.
2408 (create_debug_types_hash_table): Rename local type_sig to sig_type.
2409 (process_enumeration_scope): Ditto.
2410 (lookup_signatured_type_at_offset): Ditto.
2411 (load_full_type_unit, read_signatured_type): Ditto.
2413 2012-04-12 Yao Qi <yao@codesourcery.com>
2415 * remote.c (async_remote_interrupt): Correct function name in
2417 (async_remote_interrupt_twice): Ditto.
2419 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
2421 * source.c (find_and_open_source): Consistently pass resulting
2422 full path through xfullpath.
2424 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2426 Provide more specific displaced-stepping memory error message.
2427 * infrun.c (displaced_step_prepare): New variable status. Call
2428 target_read_memory instead of read_memory, provide more specific
2431 2012-04-11 Tristan Gingold <gingold@adacore.com>
2434 * darwin-nat.c (darwin_execvp): Revert previous patch.
2436 2012-04-11 Tristan Gingold <gingold@adacore.com>
2439 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
2442 2012-04-11 Tristan Gingold <gingold@adacore.com>
2444 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
2447 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
2449 New command 'explore' which helps explore values and types in
2451 * NEWS: Add an entry about the new 'explore' command.
2452 * data-directory/Makefile.in: Add gdb/command/explore.py
2453 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
2454 command using the GDB Python API.
2456 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
2458 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
2459 extension in jump target calculation.
2461 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
2463 * mips-tdep.c (mips32_next_pc): Handle JALX.
2465 2012-04-10 Yao Qi <yao@codesourcery.com>
2467 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
2469 2012-04-10 Yao Qi <yao@codesourcery.com>
2471 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
2472 and gnulib/m4/gnulib-tool.m4.
2474 2012-04-10 Doug Evans <dje@google.com>
2476 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
2477 (load_partial_dies): Clarify comment.
2478 (find_partial_die): Support rereading type units.
2479 Clarify CU handling, if we know offset is in CU, don't search for the
2480 containing CU. Add comment regarding memory waste.
2482 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
2484 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
2485 i386/x32-avx and i386/x32-avx-linux.
2486 (i386/x32-expedite): New.
2487 (i386/x32-linux-expedite): Likewise.
2488 (i386/x32-avx-expedite): Likewise.
2489 (i386/x32-avx-linux-expedite): Likewise.
2490 ($(outdir)/i386/x32.dat): Likewise.
2491 ($(outdir)/i386/x32-linux.dat): Likewise.
2492 ($(outdir)/i386/x32-avx.dat): Likewise.
2493 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
2495 * features/i386/x32-avx-linux.xml: New file.
2496 * features/i386/x32-avx.xml: Likewise.
2497 * features/i386/x32-core.xml: Likewise.
2498 * features/i386/x32-linux.xml: Likewise.
2499 * features/i386/x32.xml: Likewise.
2501 * features/i386/x32-avx-linux.c: New. Generated.
2502 * features/i386/x32-avx.c: Likewise.
2503 * features/i386/x32-linux.c: Likewise.
2504 * features/i386/x32.c: Likewise.
2505 * regformats/i386/x32-avx-linux.dat: Likewise.
2506 * regformats/i386/x32-avx.dat: Likewise.
2507 * regformats/i386/x32-linux.dat: Likewise.
2508 * regformats/i386/x32.dat: Likewise.
2510 2012-04-10 Tristan Gingold <gingold@adacore.com>
2512 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
2513 code to kill the inferior.
2515 2012-04-09 Mark Kettenis <kettenis@gnu.org>
2517 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2519 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2521 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
2522 (yyvsp): New defines.
2523 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2525 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2527 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2529 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2531 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2534 2012-04-09 Mark Kettenis <kettenis@gnu.org>
2536 * sparc64-tdep.c (sparc64_store_arguments)
2537 (sparc64_store_arguments): Fix coding style.
2539 2012-04-07 Mark Kettenis <kettenis@gnu.org>
2541 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
2542 complex floats, adjust some related comments and tighten a related
2544 (sparc64_extract_return_value): Handle complex floats.
2546 2012-04-07 Doug Evans <dje@google.com>
2548 * dwarf2read.c (load_partial_dies): Change condition to assert.
2550 2012-04-06 Doug Evans <dje@google.com>
2552 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
2555 2012-04-05 Kevin Buettner <kevinb@redhat.com>
2557 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
2559 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
2560 (v850_gdbarch_init): Set `num_regs' as appropriate for the
2563 2012-04-05 Keith Seitz <keiths@redhat.com>
2565 * linespec.c (decode_compound): Remove.
2566 (enum offset_relative_sign): New enum.
2567 (struct line_offset): New struct.
2568 (struct linespec): New struct.
2569 (struct linespec_state): Move file_symtabs,
2570 user_filename, and user_function into struct linespec.
2571 Make result an anonymous struct holding vectors of
2572 symbolp and minsym_and_objfile_d.
2573 Add language member.
2574 (enum ls_token_type): New enum.
2575 (linespec_keywords): New array.
2576 (struct ls_token): New struct.
2577 (struct ls_parser): New struct.
2578 (linespec_lexer_lex_number): New function.
2579 (linespec_lexer_lex_keyword): New function.
2580 (is_ada_operator): New function.
2581 (skip_quote_char): New function.
2582 (copy_token_string): New function.
2583 (is_closing_quote_enclosed): New function.
2584 (find_parameter_list_end): New function.
2585 (linespec_lexer_lex_string): New function.
2586 (linespec_lexer_lex_one): New function.
2587 (linespec_lexer_consume_token): New function.
2588 (linespec_lexer_peek_token): New function.
2589 (cplusplus_error): Remove unused function.
2590 (find_methods): Update comment.
2591 (find_toplevel_char): Return const.
2592 (is_objc_method_format): Remove unused function.
2593 (find_toplevel_string): New function.
2594 (is_linespec_boundary): Remove.
2595 (symbol_not_found_error): New function.
2596 (find_method_overload_end): Remove function.
2597 (unexpected_linespec_error): New function.
2598 (keep_name_info): Remove.
2599 (linespec_parse_line_offset): New function.
2600 (linespec_parse_basic): New function.
2601 (canonicalize_linespec): New function.
2602 (decode_line_internal): Remove.
2603 (create_sals_line_offset): New function adapted from
2605 (convert_linespec_to_sals): New function.
2606 (parse_linespec): New function.
2607 (linespec_parser_new): New function.
2608 (linespec_state_destructor): Change parameter type to
2609 struct linespec_state *.
2610 Add language parameter.
2611 Remove freeing of moved members.
2612 (linespec_parser_delete): New function.
2613 (decode_line_full): Use parse_linespec and linespec_parser_new.
2614 (decode_line_1): Likewise.
2615 (decode_indirect): Rename to ...
2616 (linespec_expression_to_pc): ... this and rewrite
2617 to simply find CORE_ADDR, storing this result for later
2619 (locate_first_half): Remove.
2620 (deocde_objc): Add parameter LS.
2621 Initialize new struct collect_info members.
2622 Handle minimal symbols, too.
2623 (decode_compound): Delete.
2624 (lookup_prefix_sym): Rewrite.
2625 (compare_msymbols): New function.
2626 (find_method): Rewrite.
2627 Do not call cplusplus_error.
2628 (symtabs_from_filename): Rewrite.
2629 (collect_function_symbols): Delete.
2630 (find_function_symbols): Rewrite without ARGPTR-style
2632 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
2633 (decode_dollar): Adapted and renamed to ...
2634 (linespec_parse_variable): ... this.
2635 (find_linespec_symbols): New function.
2636 (decode_label): Adapted and renamed to ...
2637 (find_label_symbols): ... this.
2638 (decode_digits_list_mode): Add and use LS argument.
2639 (decode_digits_ordinary): Likewise.
2640 (collect_symbols): Do not collect SALs, just symbols and msymbols.
2641 If in list mode, allow any symbol class. Otherwise, only
2642 permit LOC_BLOCK symbols.
2643 (minsym_found): Update comments.
2644 (search_minsyms_for_name): Do not convert the matching symbol
2645 into a SAL. Simply push the symbol and objfile into the
2647 (decode_variable): Delete. Contents adapted into
2648 find_linespec_symbols.
2650 * cp-support.c (SKIP_SPACE): Remove.
2651 (operator_tokens): Remove unused global.
2652 (cp_validate_operator): Remove.
2653 * cp-support.h (cp_validate_operator): Remove declaration.
2655 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2657 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
2658 for TYPE_VPTR_FIELDNO.
2659 * valprint.c (valprint_check_validity): Make it global, move the
2660 function comment ...
2661 * value.h (valprint_check_validity): ... to this new declaration.
2663 2012-04-02 Tristan Gingold <gingold@adacore.com>
2665 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
2666 the STATE32 api for i386 state.
2667 (i386_darwin_store_inferior_registers): Likewise.
2669 2012-04-02 Tristan Gingold <gingold@adacore.com>
2671 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
2673 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
2676 2012-04-02 Tristan Gingold <gingold@adacore.com>
2679 * darwin-nat.c (darwin_execvp): Set binary preference.
2681 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2683 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
2685 2012-03-30 Tom Tromey <tromey@redhat.com>
2687 * python/python.c (gdbpy_decode_line): Move cleanup creation out
2688 of TRY_CATCH. Fix error handling.
2689 * python/py-value.c (convert_value_from_python): Move 'old'
2690 declaration to innermost scope.
2692 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2693 Andrey Smirnov <andrew.smirnov@gmail.com>
2695 -Wshadow warning fix.
2696 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
2697 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
2698 Adjust code accordingly.
2700 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2702 * ada-lang.c (symbol_completion_add): Rename parameter
2703 "encoded" into "encoded_p". Ajust code and documentation
2706 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2707 Andrey Smirnov <andrew.smirnov@gmail.com>
2709 -Wshadow warning fix.
2710 * ada-lang.c (symbol_completion_add): Rename parameter
2711 "wild_match" into wild_match_p. Update code and documentation
2714 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2716 * ada-lang.c (symbol_completion_match): Rename parameter
2717 "encoded" into "encoded_p". Ajust code and documentation
2720 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2721 Andrey Smirnov <andrew.smirnov@gmail.com>
2723 -Wshadow warning fix.
2724 * ada-lang.c (symbol_completion_match): Rename parameter
2725 "wild_match" into "wild_match_p". Adjust code and function
2726 documentation accordingly.
2728 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2729 Andrey Smirnov <andrew.smirnov@gmail.com>
2731 -Wshadow warning fix.
2732 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
2733 "symbol_info" into "info". Adjust code accordingly.
2734 (ada_lookup_symbol): Likewise.
2736 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2738 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
2739 of this function's documentation.
2741 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2742 Andrey Smirnov <andrew.smirnov@gmail.com>
2744 -Wshadow warning fix.
2745 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
2746 variable into "wild_match_p". Adjust code accordingly.
2748 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2749 Andrey Smirnov <andrew.smirnov@gmail.com>
2751 -Wshadow warning fix.
2752 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
2753 parameter into "wild_match_p". Adjust code accordingly.
2754 Document this parameter in the function description.
2756 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2757 Andrey Smirnov <andrew.smirnov@gmail.com>
2759 -Wshadow warning fix.
2760 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
2761 "wild_match" parameter to "wild_match_p" (-Wshadow).
2763 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2765 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
2766 in function documentation.
2768 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2769 Andrey Smirnov <andrew.smirnov@gmail.com>
2771 -Wshadow warning fix.
2772 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
2773 variable into wild_match_p. Adjust code accordingly.
2775 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2776 Andrey Smirnov <andrew.smirnov@gmail.com>
2778 * ada-valprint.c (ada_val_print_1): Move the code handling
2779 TYPE_CODE_ENUM inside its own lexical block. Declare
2780 variables len and val there, instead of in the function's
2781 top level block. Avoid declaring deref_val again in a way
2782 that shadows another variable of the same name declared
2783 in one of the up-level blocks. Just re-use the up-level
2786 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2788 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
2789 Replace block_found argument by symbol_info. Adjust
2790 implementation accordingly. Add function documentation.
2791 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
2793 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
2794 * ada-exp.y (write_object_renaming): Adjust to new
2795 ada_lookup_encoded_symbol API.
2797 2012-03-29 Joel Brobecker <brobecker@adacore.com>
2799 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
2802 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
2804 * v850-tdep.c: Add the enum values for mpu and fpu registers.
2805 (v850_register_name): Add the mpu and fpu register names.
2806 (v850e_register_name): Add the mpu and fpu register names.
2807 (v850e2_register_name): New function.
2808 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2811 2012-03-28 Joel Brobecker <brobecker@adacore.com>
2813 * NEWS: Add entry for Ada varobj support.
2815 2012-03-28 Joel Brobecker <brobecker@adacore.com>
2817 * varobj.c (default_value_is_changeable_p): New function,
2818 extracted from varobj_value_is_changeable_p. Add declaration.
2819 (ada_value_is_changeable_p): New function, extracted from
2820 varobj_value_is_changeable_p. Add declaration.
2821 (struct language_specific): New field "value_is_changeable_p".
2822 (languages): Add entries for new field.
2823 (varobj_create): Set language before calling install_new_value.
2824 (varobj_value_is_changeable_p): Reimplement to call the varobj's
2825 "value_is_changeable_p" language callback.
2827 2012-03-28 Joel Brobecker <brobecker@adacore.com>
2829 * ada-varobj.h, ada-varobj.c: New files.
2830 * Makefile.in (SFILES): Add ada-varobj.c.
2831 (HFILES_NO_SRCDIR): Add ada-varobj.h.
2832 (COMMON_OBS): Add ada-varobj.o.
2834 2012-03-28 Joel Brobecker <brobecker@adacore.com>
2836 * varobj.c (ada_value_has_mutated): Add declaration. New function.
2837 (struct language_specific): New field "value_has_mutated".
2838 (languages): Set field "value_has_mutated" in each entry of array.
2839 (varobj_value_has_mutated): New function.
2840 (varobj_udpdate): Add handling of type mutation.
2841 (value_of_root): Add handling of type mutation.
2842 (ada_value_has_mutated): New function.
2844 2012-03-28 Pedro Alves <palves@redhat.com>
2846 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
2847 Always supply $fr0 as 0.0 and $fr1 as 1.0.
2849 2012-03-28 Tom Tromey <tromey@redhat.com>
2851 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
2852 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
2855 2012-03-28 Tom Tromey <tromey@redhat.com>
2857 * .dir-locals.el: New file.
2859 2012-03-28 Pedro Alves <palves@redhat.com>
2861 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
2863 2012-03-28 Joel Brobecker <brobecker@adacore.com>
2865 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
2868 2012-03-27 Pedro Alves <palves@redhat.com>
2870 Eliminate struct ui_stream.
2872 * ui-out.h (struct ui_stream): Delete.
2873 (ui_out_field_stream): Adjust prototype.
2874 (ui_out_stream_new, ui_out_stream_delete)
2875 (make_cleanup_ui_out_stream_delete): Delete declarations.
2876 * ui-out.c (ui_out_field_stream): Change prototype to take a
2877 ui_file instead of a ui_stream. Adjust.
2878 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
2879 (make_cleanup_ui_out_stream_delete): Delete.
2880 * breakpoint.c (print_breakpoint_location)
2881 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
2882 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
2883 * disasm.c (dump_insns): Ditto.
2884 (do_mixed_source_and_assembly, do_assembly_only): Adjust
2886 (gdb_disassembly): Use ui_file/mem_fileopen instead of
2887 ui_stream/ui_out_stream_new.
2888 * infcmd.c (print_return_value): Ditto.
2889 * osdata.c (info_osdata_command): Don't allocate a local
2891 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
2892 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
2893 * tracepoint.c (print_one_static_tracepoint_marker): Don't
2894 allocate a local ui_stream.
2895 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
2896 instead of ui_stream/ui_out_stream_new.
2897 (list_args_or_locals): Don't allocate a local ui_stream.
2898 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
2899 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
2900 ui_stream/ui_out_stream_new.
2901 * cli/cli-setshow.c (do_setshow_command): Ditto.
2903 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
2905 * arm-linux-tdep.c (arm_linux_init_abi): Call
2906 set_gdbarch_process_record. Initialize `arm_swi_record' field.
2907 * arm-tdep.c (arm_process_record): New function.
2908 (deallocate_reg_mem): New function.
2909 (decode_insn): New function.
2910 (thumb_record_branch): New function.
2911 (thumb_record_ldm_stm_swi(): New function.
2912 (thumb_record_misc): New function.
2913 (thumb_record_ld_st_stack): New function.
2914 (thumb_record_ld_st_imm_offset): New function.
2915 (thumb_record_ld_st_reg_offset(): New function.
2916 (thumb_record_add_sub_cmp_mov): New function.
2917 (thumb_record_shift_add_sub): New function.
2918 (arm_record_coproc_data_proc): New function.
2919 (arm_record_coproc): New function.
2920 (arm_record_b_bl): New function.
2921 (arm_record_ld_st_multiple): New function.
2922 (arm_record_ld_st_reg_offset): New function.
2923 (arm_record_ld_st_imm_offset): New function.
2924 (arm_record_data_proc_imm): New function.
2925 (arm_record_data_proc_misc_ld_str): New function.
2926 (arm_record_extension_space): New function.
2927 (arm_record_strx): New function.
2928 (sbo_sbz): New function.
2929 (struct insn_decode_record): New structure for arm insn record.
2930 (REG_ALLOC): New macro for reg allocations.
2931 (MEM_ALLOC): New macro for memory allocations.
2932 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
2934 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
2936 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
2937 (store_register): Likewise.
2939 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
2941 * MAINTAINERS (Write After Approval): Add myself to the list.
2943 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2945 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
2946 Describe also the option "auto".
2948 2012-03-22 Richard Henderson <rth@redhat.com>
2950 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
2951 * sparc-nat.c (sparc_xfer_wcookie): Make static.
2953 2012-03-22 Richard Henderson <rth@redhat.com>
2955 * jit.c (jit_read_code_entry): Compute alignment and offset of
2956 int64_t member before computing entry_size.
2958 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
2960 Python scripting: Add new method Value.referenced_value to
2961 gdb.Value which can dereference pointer as well as reference
2963 * NEWS: Add entry under 'Python scripting' about the new method
2964 Value.referenced_value on gdb.Value objects.
2965 * python/py-value.c (valpy_referenced_value): New function
2966 defining a new method on gdb.Value objects which can dereference
2967 pointer and reference values.
2969 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
2971 * MAINTAINERS (Write After Approval): Add myself to the list.
2973 2012-03-21 Kevin Buettner <kevinb@redhat.com>
2975 * symtab.c (skip_prologue_sal): Change test to check for "main()"
2976 in addition to "main".
2978 2012-03-21 Joel Brobecker <brobecker@adacore.com>
2980 * expression.h (op_name): Add declaration.
2981 * expprint.c (op_name): Remove declaration. Make non-static.
2982 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
2984 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
2986 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
2988 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
2989 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2990 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
2991 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
2992 (linux_nat_get_siginfo): Likewise.
2993 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
2994 (linux_nat_get_siginfo): Likewise.
2995 * linux-tdep.c (linux_get_siginfo_type): Likewise.
2996 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
2997 * procfs.c (gdb_siginfo_t): Likewise.
2999 2012-03-21 Mike Frysinger <vapier@gentoo.org>
3001 * .gitignore: Ignore more files.
3003 2012-03-20 Pedro Alves <palves@redhat.com>
3005 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
3008 2012-03-20 Yao Qi <yao@codesourcery.com>
3010 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
3013 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3015 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
3016 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
3017 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
3019 * dwarf2expr.h (cu_offset, sect_offset): New types.
3020 (struct dwarf_expr_context_funcs) <dwarf_call>
3021 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
3023 (struct dwarf_expr_context) <len>: Improve the comment.
3024 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
3025 cu_offset and sect_offset.
3026 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
3027 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
3028 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
3029 * dwarf2loc.h: Include dwarf2expr.h.
3030 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
3032 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
3033 Improve the comment.
3034 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
3035 (struct signatured_type, struct line_header, struct partial_die_info)
3036 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
3037 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
3038 (get_die_type_at_offset, create_cus_from_index)
3039 (create_signatured_type_table_from_index, dw2_get_file_names)
3040 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
3041 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
3042 (create_debug_types_hash_table, process_psymtab_comp_unit)
3043 (load_partial_comp_unit, create_all_comp_units)
3044 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
3045 (load_full_comp_unit, dwarf2_physname, read_import_statement)
3046 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
3047 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
3048 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
3049 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
3050 (find_partial_die, read_attribute_value, lookup_die_type)
3051 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
3052 (is_ref_attr): New function comment.
3053 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
3054 Use cu_offset and sect_offset.
3055 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
3056 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
3057 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
3058 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
3059 (offset_and_type_hash, offset_and_type_eq, set_die_type)
3060 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
3061 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
3064 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3067 * python/py-auto-load.c (source_section_scripts): New variable back_to.
3068 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
3070 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
3072 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3074 * NEWS: Describe new options --init-command=FILE, -ix and
3075 --init-eval-command=COMMAND, -iex.
3076 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
3077 CMDARG_INIT_COMMAND.
3078 (captured_main): New enum items OPT_IX and OPT_IEX. Add
3079 "init-command", "init-eval-command", "ix" and "iex" to the variable
3080 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
3081 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
3082 (print_gdb_help): Describe --init-command=FILE, -ix and
3083 --init-eval-command=COMMAND, -iex.
3085 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3088 * main.c (struct cmdarg): Move it here from main. Add more comments.
3089 (cmdarg_s, VEC (cmdarg_s)): New.
3090 (main): Move struct cmdarg from here. New variables cmdarg_vec and
3091 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
3092 Install cleanup for cmdarg_vec. Update filling for options 'x' and
3093 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
3096 2012-03-19 Tom Tromey <tromey@redhat.com>
3098 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
3100 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3103 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
3106 2012-03-16 Chris January <chris.january@allinea.com>
3108 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
3111 2012-03-16 Chris January <chris.january@allinea.com>
3113 * source.c (add_path): Use memmove instead of strcpy because the
3116 2012-03-16 Joel Brobecker <brobecker@adacore.com>
3118 * value.h (set_value_parent): Add declaration.
3119 * value.c (set_value_parent): New function.
3120 (value_address): If VALUE->PARENT is not NULL, then use it as
3121 the base address instead of VALUE->LOCATION.address.
3122 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
3123 the same as OBJ's address. Adjust V's offset accordingly.
3126 2012-03-16 Gary Benson <gbenson@redhat.com>
3128 PR breakpoints/10738
3129 * dwarf2read.c (use_deprecated_index_sections): New global.
3130 (struct partial_die_info): New member may_be_inlined.
3131 (read_partial_die): Set may_be_inlined where appropriate.
3132 (add_partial_subprogram): Add partial symbols for partial
3133 DIEs that may be inlined.
3134 (new_symbol_full): Add inlined subroutines to the current
3136 (write_psymtabs_to_index): Bump version number.
3137 (dwarf2_read_index): Read only version 6 indices unless
3138 use_deprecated_index_sections is set.
3139 * linespec.c (symbol_and_data_callback): New structure.
3140 (iterate_inline_only): New function.
3141 (iterate_over_all_matching_symtabs): New argument
3142 "include_inline". If nonzero, also call the callback for
3143 symbols representing inlined subroutines.
3144 (lookup_prefix_sym): Pass extra argument to the above.
3145 (find_function_symbols): Likewise.
3146 (add_matching_symbols_to_info): Likewise.
3147 * NEWS: Mention that GDB can now set breakpoints on inlined
3150 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3152 * p-typeprint.c (pascal_type_print_method_args):
3153 Fix display of parameter of methods.
3155 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3157 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
3158 Add missing prototype.
3160 2012-03-16 Yao Qi <yao@codesourcery.com>
3161 Jan Kratochvil <jan.kratochvil@redhat.com>
3163 Fix false compilation warning.
3164 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
3166 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
3167 Pedro Alves <pedro@codesourcery.com>
3169 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
3170 (arm_register_g_packet_guesses): New function.
3171 (arm_gdbarch_init): Don't force a target description with
3172 registers when the executable is detected as M-profile. Instead
3173 set gdbarch->tdep->is_m. Register `g' packet guesses.
3174 (_initialize_arm_tdep): Initialize the new target description.
3175 * features/arm-with-m-fpa-layout.xml: New description.
3176 * features/arm-with-m-fpa-layout.c: New, generated.
3178 2012-03-15 Joel Brobecker <brobecker@adacore.com>
3180 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
3181 Update function description.
3182 (insert_bp_location): Do not wipe bl->target_info out.
3183 * mem-break.c: #include "gdb_string.h".
3184 (default_memory_insert_breakpoint): Do not call target_read_memory
3185 with a pointer to the breakpoint's shadow_contents buffer. Use
3186 a local buffer instead.
3187 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
3189 2012-03-15 Tom Tromey <tromey@redhat.com>
3191 * NEWS: Mention "info vtbl", not "info vtable".
3192 * cp-support.c (info_vtbl_command): Fix comment.
3193 (_initialize_cp_support): Fix text.
3195 2012-03-15 Tom Tromey <tromey@redhat.com>
3197 * cp-valprint.c (cp_print_value_fields): Use
3198 print_function_pointer_address for vtable slot.
3200 2012-03-15 Tom Tromey <tromey@redhat.com>
3202 * gnu-v3-abi.c (struct value_and_voffset): New.
3203 (hash_value_and_voffset, eq_value_and_voffset)
3204 (compare_value_and_voffset, compute_vtable_size)
3205 (print_one_vtable, gnuv3_print_vtable): New functions.
3206 (init_gnuv3_ops): Initialize 'print_vtable' field.
3207 * cp-support.c (info_vtbl_command): New function.
3208 (_initialize_cp_support): Add "info vtbl".
3209 * cp-abi.h (cplus_print_vtable): Declare.
3210 (struct cp_abi_ops) <print_vtable>: New field.
3211 * cp-abi.c (cplus_print_vtable): New function.
3214 2012-03-15 Tom Tromey <tromey@redhat.com>
3216 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
3217 iterate_over_symbols.
3219 2012-03-14 Doug Evans <dje@google.com>
3221 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
3222 DW_OP_GNU_parameter_ref.
3224 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3226 Fix double prompt of 'interpreter-exec mi'.
3227 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
3228 (mi_interpreter_resume): use it.
3229 (mi_execute_command_input_handler): New function.
3230 * mi/mi-main.c (mi_execute_command): Move prompt printing to
3231 mi_execute_command_input_handler.
3233 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
3235 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
3237 (darwin_debug_port_info): Make static.
3238 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
3239 * machoread.c (_initialize_machoread): Add prototype.
3240 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
3241 (i386_darwin_set_control, i386_darwin_get_control)
3242 i386_darwin_dr_set_addr, i386_darwin_get_addr)
3243 i386_darwin_get_status, i386_darwin_get_control):
3244 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
3246 2012-03-13 Joel Brobecker <brobecker@adacore.com>
3248 * ax-gdb.c (gen_usual_unary): Remove special handling of
3249 enum and bool types.
3251 2012-03-13 Joel Brobecker <brobecker@adacore.com>
3253 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
3255 2012-03-13 Joel Brobecker <brobecker@adacore.com>
3257 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
3259 2012-03-13 Chris January <chris.january@allinea.com>
3261 * aix-thread.c (fill_sprs): Store the floating point registers
3262 at the correct offsets into vals.
3264 2012-03-13 Doug Evans <dje@google.com>
3266 * NEWS: Mention symbol-reloading has been deleted.
3267 * symfile.c (symbol_reloading): Delete.
3268 (show_symbol_reloading): Delete.
3269 (_initialize_symfile): Delete set/show symbol-reloading.
3271 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
3272 read_in_chain until we have successfully read it in.
3273 (load_full_comp_unit): Ditto.
3274 (read_signatured_type): Add comment.
3276 2012-03-13 Chris January <chris.january@allinea.com>
3278 * stabsread.c (fix_common_block): Change type of valu argument
3281 2012-03-13 Chris January <chris.january@allinea.com>
3283 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
3286 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3288 * common/linux-procfs.c (linux_proc_get_int): New, from
3289 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
3291 (linux_proc_get_tgid): Only call linux_proc_get_int.
3292 (linux_proc_get_tracerpid): New.
3293 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
3294 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
3295 linux_proc_pid_has_state.
3296 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
3297 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
3298 (linux_ptrace_attach_warnings): New.
3299 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
3301 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
3302 (linux_nat_attach): New variables ex, buffer, message and message_s.
3303 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
3305 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3307 * Makefile.in (linux-ptrace.o): New.
3308 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
3310 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
3311 * common/linux-ptrace.c: New file.
3312 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
3313 * config/arm/linux.mh: Likewise.
3314 * config/i386/linux.mh: Likewise.
3315 * config/i386/linux64.mh: Likewise.
3316 * config/ia64/linux.mh: Likewise.
3317 * config/m32r/linux.mh: Likewise.
3318 * config/m68k/linux.mh: Likewise.
3319 * config/mips/linux.mh: Likewise.
3320 * config/pa/linux.mh: Likewise.
3321 * config/powerpc/linux.mh: Likewise.
3322 * config/powerpc/ppc64-linux.mh: Likewise.
3323 * config/powerpc/spu-linux.mh: Likewise.
3324 * config/s390/s390.mh: Likewise.
3325 * config/sparc/linux.mh: Likewise.
3326 * config/sparc/linux64.mh: Likewise.
3327 * config/xtensa/linux.mh: Likewise.
3328 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
3329 common/linux-procfs.c.
3330 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
3332 2012-03-13 Hui Zhu <teawater@gmail.com>
3333 Pedro Alves <palves@redhat.com>
3335 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
3336 CREATE_BREAKPOINT_FLAGS_INSERTED.
3337 (create_breakpoint_sal, create_breakpoints_sal)
3338 (base_breakpoint_create_breakpoints_sal)
3339 (tracepoint_create_breakpoints_sal)
3340 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
3342 (break_command_1, handle_gnu_v3_exceptions, trace_command)
3343 (ftrace_command, strace_command): Adjust.
3344 (create_tracepoint_from_upload): Pass
3345 CREATE_BREAKPOINT_FLAGS_INSERTED.
3346 * breakpoint.h (enum breakpoint_create_flags): New.
3347 (create_breakpoint): New flags parameter.
3348 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3349 * python/py-breakpoint.c (bppy_init): Adjust.
3350 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
3351 * spu-tdep.c (spu_catch_start): Adjust.
3353 2012-03-13 Pedro Alves <palves@redhat.com>
3354 Hui Zhu <teawater@gmail.com>
3355 Yao Qi <yao@codesourcery.com>
3357 * remote.c (struct remote_state): New field `starting_up'.
3358 (remote_start_remote): Set and clear it.
3359 (remote_can_download_tracepoint): If starting up, return false.
3361 2012-03-13 Yao Qi <yao@codesourcery.com>
3363 * inferior.h (struct inferior): Remove fields any_syscall_count,
3364 syscalls_counts and total_syscalls_count. Move them to new
3365 struct catch_syscall_inferior_data in breakpoint.c.
3366 * breakpoint.c: Call DEF_VEC_I(int).
3367 (struct catch_syscall_inferior_data): New.
3368 (get_catch_syscall_inferior_data): New.
3369 (catch_syscall_inferior_data_cleanup): New.
3370 (insert_catch_syscall): Update to access data in
3371 struct catch_syscall_inferior_data.
3372 (insert_catch_syscall): Likewise.
3373 (remove_catch_syscall): Likewise.
3374 (remove_catch_syscall): Likewise.
3375 (is_syscall_catchpoint_enabled): Likewise.
3376 (add_catch_command): Likewise.
3377 (_initialize_breakpoint): Register cleanup.
3378 * breakpoint.h: Removed DEF_VEC_I(int).
3379 * dwarf2loc.c: Call DEF_VEC_I(int).
3380 * mi/mi-main.c: Likewise.
3382 2012-03-12 Mark Kettenis <kettenis@gnu.org>
3384 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
3386 2012-03-12 Chris January <chris.january@allinea.com>
3388 * aix-thread.c (_initialize_aix_thread): Add prototype.
3389 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
3390 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
3392 2012-03-12 Joel Brobecker <brobecker@adacore.com>
3394 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
3395 include of "amd64-nat.h".
3397 2012-03-12 Tom Tromey <tromey@redhat.com>
3399 * buildsym.c (record_pending_block): Now static.
3400 * buildsym.h: (record_pending_block): Remove.
3402 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
3404 * amd64bsd-nat.c: Include amd64bsd-nat.h.
3406 2012-03-09 Tom Tromey <tromey@redhat.com>
3408 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
3409 producer_is_gxx_lt_4_6>: New fields.
3410 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
3412 2012-03-09 Tom Tromey <tromey@redhat.com>
3414 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
3416 2012-03-08 Joel Brobecker <brobecker@adacore.com>
3418 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
3421 2012-03-08 Joel Brobecker <brobecker@adacore.com>
3423 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
3425 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3427 Fix -Wmissing-prototypes build.
3428 * arm-linux-nat.c (get_thread_id): Make it static.
3429 * xtensa-linux-nat.c (get_thread_id): Likewise.
3431 2012-03-08 Joel Brobecker <brobecker@adacore.com>
3433 * server.c (process_point_options): If a conditional expression
3434 is found, only print a message if remote_debug is nonzero.
3436 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
3438 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
3439 of internal error for unknown/unsupported types.
3441 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3443 Fix CU relative vs. absolute DIE offsets.
3444 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
3445 offset to offset_in_cu.
3446 * dwarf2read.c (process_enumeration_scope): Add CU offset to
3448 (dwarf2_fetch_die_location_block): Rename parameter offset to
3449 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
3451 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3453 * libunwind-frame.c: Rename to ...
3454 * ia64-libunwind-tdep.c: ... here.
3455 * libunwind-frame.h: Rename to ...
3456 * ia64-libunwind-tdep.h: ... here.
3457 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
3458 ia64-libunwind-tdep.h.
3459 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
3460 * README (--with-libunwind): Rename to ...
3461 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
3462 * config.in: Regenerate.
3463 * configure: Regenerate.
3464 * configure.ac: New option --with-libunwind-ia64, make the
3465 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
3466 Remove AC_DEFINE for HAVE_LIBUNWIND.
3467 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
3468 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
3469 Rename libunwind-frame in the general comment.
3470 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
3471 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
3472 Move forward declarations inside #ifndef. Rename libunwind-frame in
3473 the general comment.
3474 * ia64-tdep.c: Rename libunwind-frame.h #include to
3475 ia64-libunwind-tdep.h.
3476 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
3477 (ia64_libunwind_descr): Rename libunwind-frame to
3478 ia64-libunwind-tdep in these function comments.
3479 * ia64-tdep.h: Rename libunwind-frame.h #include to
3480 ia64-libunwind-tdep.h.
3481 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
3482 ia64-libunwind-tdep in that data comment.
3484 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3486 * libunwind-frame.h (struct frame_unwind): New declaration.
3488 2012-03-08 Joel Brobecker <brobecker@adacore.com>
3490 * breakpoint.c (_initialize_breakpoint): Fix error in help of
3491 "set breakpoint condition-evaluation" command.
3493 2012-03-08 Tristan Gingold <gingold@adacore.com>
3495 * sparc-stub.c: Move to stubs/
3496 * sh-stub.c: Likewise.
3497 * m68k-stub.c: Likewise.
3498 * m32r-stub.c: Likewise.
3499 * i386-stub.c: Likewise.
3501 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
3503 * m68klinux-tdep.c (m68k_linux_init_abi): Register
3504 linux_get_siginfo_type.
3506 * m68klinux-nat.c: Include "gdb_proc_service.h".
3507 (PTRACE_GET_THREAD_AREA): Define.
3508 (ps_get_thread_area): New function.
3510 2012-03-08 Yao Qi <yao@codesourcery.com>
3512 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
3514 (remote_query_attached): Likewise.
3515 (remote_static_tracepoint_marker_at): Likewise.
3516 (remote_set_permissions): Likewise.
3517 (remote_detach_1, extended_remote_attach_1): Likewise.
3518 (send_g_packet, remote_vkill): Likewise.
3519 (extended_remote_disable_randomization): Likewise.
3520 (remote_add_target_side_condition): Likewise.
3521 (remote_insert_breakpoint): Likewise.
3522 (remote_remove_breakpoint): Likewise.
3523 (remote_insert_watchpoint): Likewise.
3524 (remote_remove_watchpoint): Likewise.
3525 (remote_insert_hw_breakpoint): Likewise.
3526 (remote_insert_hw_breakpoint): Likewise.
3527 (remote_remove_hw_breakpoint): Likewise.
3528 (remote_download_command_source): Likewise.
3529 (remote_download_tracepoint): Likewise.
3530 (remote_download_trace_state_variable): Likewise.
3531 (remote_disable_tracepoint): Likewise.
3532 (remote_trace_set_readonly_regions): Likewise.
3533 (remote_get_tracepoint_status): Likewise.
3534 (remote_trace_find): Likewise.
3535 (remote_get_trace_state_variable_value): Likewise.
3536 (remote_set_disconnected_tracing): Likewise.
3537 (remote_set_circular_trace_buffer): Likewise.
3538 (remote_get_min_fast_tracepoint_insn_len): Likewise.
3539 (remote_use_agent): Likewise.
3540 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
3543 2012-03-07 Pedro Alves <palves@redhat.com>
3545 * NEWS: Mention QProgramSignals.
3546 * inferior.h (update_signals_program_target): Declare.
3547 * infrun.c: (update_signals_program_target): New.
3548 (handle_command): Update the target of the new program signals
3550 * remote.c (PACKET_QProgramSignals): New enum.
3551 (last_program_signals_packet): New global.
3552 (remote_program_signals): New.
3553 (remote_start_remote): Update the target with the program signals
3555 (remote_protocol_features): Add entry for QPassSignals.
3556 (remote_open_1): Free anc clear last_program_signals_packet.
3557 (init_remote_ops): Install remote_program_signals.
3558 * target.c (update_current_target): Adjust.
3559 (target_program_signals): New.
3560 * target.h (struct target_ops) <to_program_signals>: New field.
3561 (target_program_signals): Declare.
3563 2012-03-07 Pedro Alves <palves@redhat.com>
3565 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
3568 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
3570 * m68klinux-nat.c (getregs_supplies): Make static.
3571 (getfpregs_supplies): Likewise.
3572 (have_ptrace_getregs): Likewise.
3574 2012-03-06 Joel Brobecker <brobecker@adacore.com>
3576 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
3577 in call to get_die_type_at_offset.
3579 2012-03-06 Stan Shebs <stan@codesourcery.com>
3581 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
3582 * mi/mi-cmd-disas.c: Ditto.
3583 * mi/mi-cmd-env.c: Ditto.
3584 * mi/mi-cmd-file.c: Ditto.
3585 * mi/mi-cmd-stack.c: Ditto.
3586 * mi/mi-cmd-target.c: Ditto.
3587 * mi/mi-cmd-var.c: Ditto.
3588 * mi/mi-cmds.c: Ditto.
3589 * mi/mi-cmds.h: Ditto.
3590 * mi/mi-console.c: Ditto.
3591 * mi/mi-getopt.c: Ditto.
3592 * mi/mi-getopt.h: Ditto.
3593 * mi/mi-interp.c: Ditto.
3594 * mi/mi-main.c: Ditto.
3595 * mi/mi-out.c: Ditto.
3596 * mi/mi-parse.c: Ditto.
3597 * mi/mi-parse.h: Ditto.
3598 * mi/mi-symbol-cmds.c: Ditto.
3600 * mi/mi-getopt.h: Move mi_opt struct up.
3601 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
3603 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
3605 2012-03-06 Tom Tromey <tromey@redhat.com>
3607 * proc-service.c (ps_pglobal_lookup): Set the current program
3610 2012-03-06 Pedro Alves <palves@redhat.com>
3612 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
3614 2012-03-05 Joel Brobecker <brobecker@adacore.com>
3616 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
3618 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3621 * common/linux-osdata.c (linux_common_core_of_thread): New function
3623 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
3624 call by linux_common_core_of_thread.
3625 (linux_nat_core_of_thread_1): Remove.
3626 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
3627 * linux-thread-db.c: Include linux-osdata.h.
3628 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
3629 linux_common_core_of_thread.
3631 2012-03-05 Tom Tromey <tromey@redhat.com>
3633 * value.c (value_primitive_field): Don't fetch contents for
3636 2012-03-05 Tom Tromey <tromey@redhat.com>
3638 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
3640 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
3642 * s390-nat.c: Include "gregset.h".
3644 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3646 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
3647 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
3648 (libunwind_load): New variable so_error, use it for dlerror. Try to
3649 load also LIBUNWIND_SO_7.
3651 2012-03-05 Pedro Alves <palves@redhat.com>
3653 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
3654 is not NULL, and remove resulting dead code.
3656 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
3658 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
3659 prologue to sh_analyze_prologue.
3660 (sh_analyze_prologue): Make better use of such an upper limit, and
3661 generally be more cautious about accessing memory.
3663 2012-03-05 Tom Tromey <tromey@redhat.com>
3665 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
3666 _initialize_ia64_hpux_tdep.
3668 2012-03-05 Pedro Alves <palves@redhat.com>
3672 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
3673 the register state is clear, supply explicit zero, instead of
3674 marking the register unavailable.
3676 2012-03-05 Tristan Gingold <gingold@adacore.com>
3678 * NEWS: Mention OpenVMS ia64 new target.
3680 2012-03-05 Tristan Gingold <gingold@adacore.com>
3682 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
3683 (ia64_unw_accessors, ia64_unw_rse_accessors)
3684 (ia64_libunwind_descr): Declare.
3685 * ia64-vms-tdep.c: New file.
3686 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
3687 (ia64_libunwind_descr): Make them public.
3688 * configure.tgt: Add ia64-*-*vms*.
3689 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
3690 (ALLDEPFILES): Add ia64-vms-tdep.c
3692 2012-03-05 Tristan Gingold <gingold@adacore.com>
3694 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
3695 * remote.c (PACKET_qXfer_uib): New enum value.
3696 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
3697 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
3698 (_initialize_remote): Call add_packet_config_cmd for
3701 2012-03-05 Tristan Gingold <gingold@adacore.com>
3703 * osabi.c (gdb_osabi_names): Add OpenVMS.
3704 (generic_elf_osabi_sniffer): Likewise.
3705 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
3707 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3709 Removed unused code.
3710 * libunwind-frame.c (libunwind_frame_unwind)
3711 (libunwind_frame_base_address): Remove.
3712 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
3714 2012-03-04 Yao Qi <yao@codesourcery.com>
3716 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
3717 remove trailing new line.
3718 (agent_run_command, agent_run_command): Add _ markup.
3719 (agent_capability_check): Likewise.
3721 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3723 * breakpoint.c (set_condition_evaluation_mode): Set
3724 CONDITION_EVALUATION_MODE unconditionally.
3726 2012-03-03 Yao Qi <yao@codesourcery.com>
3728 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
3729 * common/agent.h: Update declaration.
3730 * inf-child.c (inf_child_use_agent): New.
3731 (inf_child_can_use_agent): New.
3732 (inf_child_target): Initialize fields `to_use_agent'
3733 and `to_can_use_agent'.
3734 * agent.c (agent_new_objfile): New.
3735 (_initialize_agent): Add agent_new_objfile to new_objfile
3738 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3740 (linux_target_install_ops): Initialize field
3741 `to_static_tracepoint_markers_by_strid'.
3742 * remote.c (free_current_marker): Move it to ...
3743 * tracepoint.c (free_current_marker): ... here. New.
3744 (cleanup_target_stop): New.
3745 * tracepoint.h: Declare free_current_marker.
3746 * NEWS: Add one entry about `info static-tracepoint-marker'.
3748 2012-03-03 Yao Qi <yao@codesourcery.com>
3750 * common/agent.c (agent_loaded_p): New.
3751 (agent_look_up_symbols): New global.
3752 * common/agent.h: Declare agent_loaded_p.
3754 2012-03-03 Yao Qi <yao@codesourcery.com>
3756 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
3757 (agent_capability_check, agent_capability_invalidate): New.
3758 (symbol_list): New array element.
3759 * common/agent.h (enum agent_capa): New.
3760 * target.c (target_pre_inferior): Call agent_capability_invalidate.
3762 2012-03-03 Yao Qi <yao@codesourcery.com>
3764 * target.h (struct target_ops) <to_use_agent>: New field.
3765 (struct target_ops) <to_can_use_agent>: New field.
3766 (target_use_agent, target_can_use_agent): New macro.
3767 * target.c (update_current_target): Update.
3768 * remote.c: New enum `PACKET_QAgent'.
3769 (remote_protocol_features): Add a new element.
3770 (remote_use_agent, remote_can_use_agent): New.
3771 (init_remote_ops): Initialize field `can_use_agent' with
3772 remote_can_use_agent. Intiailize field `use_agent' with
3774 * common/agent.c (use_agent): New global.
3775 * common/agent.h: Declare it.
3776 * tracepoint.c (info_static_tracepoint_markers_command): Add
3778 * Makefile.in (SFILES): Add common/agent.c and agent.c.
3779 (COMMON_OBS): Add common/agent.o and agent.o
3780 (common-agent.o): New rule.
3783 2012-03-03 Yao Qi <yao@codesourcery.com>
3785 * common/agent.c: New.
3786 * common/agent.h: New.
3787 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
3789 * configure, configh.in: Regenerated.
3791 2012-03-02 Kevin Buettner <kevinb@redhat.com>
3793 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
3794 unless it exists for this architecture.
3796 2012-03-02 Joel Brobecker <brobecker@adacore.com>
3798 * language.h (struct language_defn): New "method" la_read_var_value.
3799 * findvar.c: #include "language.h".
3800 (default_read_var_value): Renames read_var_value. Rewrite
3801 function description.
3802 (read_var_value): New function.
3803 * value.h (default_read_var_value): Add prototype.
3804 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
3806 (ada_language_defn): Add entry for la_read_var_value.
3807 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
3808 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
3809 language_defn structures to add entry for new la_read_var_value
3812 2012-03-02 Tom Tromey <tromey@redhat.com>
3813 Pedro Alves <palves@redhat.com>
3815 PR breakpoints/13776:
3816 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
3818 (delete_longjmp_breakpoint_at_next_stop): New.
3819 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
3820 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
3821 before deleting the inferior. Add comments.
3822 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
3823 breakpoints immediately, but only on next stop. Move that code
3824 next to where we mark other breakpoints for deletion.
3826 2012-03-02 Joel Brobecker <brobecker@adacore.com>
3828 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
3830 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
3833 2012-03-02 Pedro Alves <palves@redhat.com>
3835 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
3837 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
3839 Fix -Wmissing-prototypes build.
3840 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
3841 * remote-sim.c (gdbsim_has_all_memory): Likewise.
3842 (gdbsim_has_memory): Likewise.
3844 2012-03-02 Yao Qi <yao@codesourcery.com>
3846 Fix -Wmissing-prototypes build.
3847 * charset.c (phony_iconv_open): Make static.
3848 (phony_iconv_close, phony_iconv): Likewise.
3849 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
3850 * i386-windows-nat.c (_initialize_i386_windows_nat): New
3852 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
3853 * ser-mingw.c (create_select_thread): Make static.
3854 * windows-termcap.c (tgetent): New prototype.
3855 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
3857 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
3859 Fix -Wmissing-prototypes build.
3860 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
3861 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
3862 (_initialize_loadable): New prototypes.
3864 2012-03-02 Doug Evans <dje@google.com>
3866 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
3867 abbrev table, read_comp_unit will do it.
3869 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3871 Fix -Wmissing-prototypes build.
3872 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
3873 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
3874 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
3875 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
3876 (_initialize_arm_symbian_tdep): New prototype.
3877 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
3878 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
3879 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
3881 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
3882 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
3884 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
3885 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
3886 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
3888 * moxie-tdep.c (moxie_process_record): Likewise.
3889 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
3890 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
3891 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
3892 (_initialize_rl78_tdep): New prototype.
3893 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
3894 (_initialize_rx_tdep): New prototype.
3895 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
3896 (_initialize_darwin_solib): New prototype.
3897 * solib-spu.c: Include solib-spu.h.
3898 (_initialize_spu_solib): New prototype.
3899 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
3900 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
3901 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
3902 (tic6x_software_single_step): Make it static.
3903 (_initialize_tic6x_tdep): New prototype.
3905 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3907 Fix -Wmissing-prototypes build.
3908 * cris-tdep.c (cris_can_use_hardware_watchpoint)
3909 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
3911 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3913 Fix -Wmissing-prototypes build.
3914 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
3915 (frv_have_stopped_data_address): Remove.
3917 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3919 Fix -Wmissing-prototypes build.
3920 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
3921 * sh-tdep.c: Include sh64-tdep.h.
3922 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
3923 * sh64-tdep.c: Include sh64-tdep.h.
3924 * sh64-tdep.h: New file.
3926 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
3928 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
3930 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
3932 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
3933 sp_regnum once the gdbarch_init_osabi hook has been called.
3935 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
3937 * mips-tdep.c (mips32_bc1_pc): New function.
3938 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
3939 BPOSGE32 and BPOSGE64 instructions.
3940 (deal_with_atomic_sequence): Likewise.
3941 (mips32_instruction_has_delay_slot): Likewise.
3943 2012-03-01 Maciej W. Rozycki <macro@mips.com>
3944 Chris Dearman <chris@mips.com>
3945 Maciej W. Rozycki <macro@codesourcery.com>
3946 Joseph Myers <joseph@codesourcery.com>
3948 * features/mips-dsp.xml: New file.
3949 * features/mips64-dsp.xml: New file.
3950 * features/mips-dsp-linux.xml: New file.
3951 * features/mips64-dsp-linux.xml: New file.
3952 * features/Makefile (WHICH): Add mips-dsp-linux and
3954 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
3955 * features/mips-dsp-linux.c: New file.
3956 * features/mips64-dsp-linux.c: New file.
3957 * regformats/mips-dsp-linux.dat: New file.
3958 * regformats/mips64-dsp-linux.dat: New file.
3959 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
3961 (mips64_linux_register_addr): Likewise.
3962 (mips64_linux_regsets_fetch_registers): Likewise.
3963 (mips64_linux_regsets_store_registers): Likewise.
3964 (mips64_linux_fetch_registers): Update call to
3965 mips64_linux_regsets_fetch_registers.
3966 (mips64_linux_store_registers): Update call to
3967 mips64_linux_regsets_store_registers.
3968 (mips_linux_read_description): Probe for DSP registers.
3969 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
3970 and initialize_tdesc_mips64_dsp_linux.
3971 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
3972 Remove padding of no longer used embedded register slots.
3973 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
3974 (MIPS_RESTART_REGNUM): Redefine enum value.
3975 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
3977 (mips_tx39_reg_names): Likewise.
3978 (mips_linux_reg_names): New array of register names for Linux
3980 (mips_register_name): Check for a null pointer in
3981 mips_processor_reg_names and return an empty string.
3982 (mips_register_type): Exclude embedded registers for the IRIX
3984 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
3985 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
3987 (mips_stab_reg_to_regnum): Handle DSP accumulators.
3988 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
3989 (mips_gdbarch_init): Likewise. Initialize internal register
3990 indices for the Linux ABI. Use dynamic numbers to refer to
3991 registers, as applicable, while parsing the target description.
3992 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
3994 2012-03-01 Joel Brobecker <brobecker@adacore.com>
3996 * frame.h (read_frame_register_unsigned): Fix typo in function
3999 2012-03-01 Pedro Alves <palves@redhat.com>
4001 * jit-reader.in [!__cplusplus]
4002 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
4004 2012-03-01 Pedro Alves <palves@redhat.com>
4006 * configure.ac (build_warnings): Add -Wmissing-prototypes.
4007 * configure: Regenerate.
4009 2012-03-01 Pedro Alves <palves@redhat.com>
4011 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
4012 * breakpoint.c (create_exception_master_breakpoint, trace_command)
4013 (ftrace_command, strace_command): Make static.
4014 * d-lang.c (_initialize_d_language): Declare.
4015 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
4016 * dwarf2loc.c (_initialize_dwarf2loc):
4017 * dwarf2read.c (process_psymtab_comp_unit): Make static.
4018 * exec.c (exec_get_section_table): Make static.
4019 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
4020 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
4021 * inferior.c (remove_inferior_command, add_inferior_command)
4022 (clone_inferior_command): Make static.
4023 * linux-nat.c (linux_nat_thread_address_space)
4024 (linux_nat_core_of_thread): Make static.
4025 * linux-tdep.c (_initialize_linux_tdep): Declare.
4026 * objc-lang.c (_initialize_objc_lang): Declare.
4027 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
4029 (_initialize_opencl_language): Declare.
4030 * record.c (_initialize_record): Declare.
4031 * remote.c (demand_private_info, remote_get_tib_address)
4032 (remote_supports_cond_tracepoints)
4033 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
4035 * skip.c (_initialize_step_skip): Declare.
4036 * symtab.c (skip_prologue_using_lineinfo): Make static.
4037 * tracepoint.c (delete_trace_state_variable)
4038 (trace_variable_command, delete_trace_variable_command)
4039 (get_uploaded_tsv, find_matching_tracepoint_location)
4040 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
4042 * value.c (pack_unsigned_long): Make static.
4043 * varobj.c (varobj_ensure_python_env): Make static.
4044 * windows-tdep.c (_initialize_windows_tdep): Declare.
4045 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
4047 2012-03-01 Pedro Alves <palves@redhat.com>
4049 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
4051 (linux_init_abi): Install it as has_shared_address_space gdbarch
4054 2012-03-01 Pedro Alves <palves@redhat.com>
4056 * observer.c (observer_test_first_notification_function)
4057 (observer_test_second_notification_function)
4058 (observer_test_third_notification_function): Add declarations.
4060 2012-03-01 Pedro Alves <palves@redhat.com>
4062 * common/signals.c (default_target_signal_to_host)
4063 (default_target_signal_from_host): Move ...
4064 * arch-utils.c: ... here.
4065 * arch-utils.h (default_target_signal_to_host)
4066 (default_target_signal_from_host): Declare.
4068 * common/signals.c (target_signal_from_command): Move ...
4069 * infrun.c: ... here.
4070 * inferior.h (target_signal_from_command): Declare.
4071 * target.h (target_signal_from_command)
4072 (default_target_signal_from_host, default_target_signal_to_host):
4073 Delete declarations.
4075 * common/signals.c (_initialize_signals): Delete.
4077 2012-03-01 Pedro Alves <palves@redhat.com>
4079 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
4080 both __cplusplus and !__cplusplus.
4082 2012-03-01 Pedro Alves <palves@redhat.com>
4084 * psymtab.c (find_and_open_source): Delete declaration.
4085 * source.c (find_and_open_source): Move comment ...
4086 * source.h (find_and_open_source): ... to this new declaration.
4088 2012-03-01 Pedro Alves <palves@redhat.com>
4090 * inline-frame.c: Include inline-frame.h.
4092 2012-03-01 Pedro Alves <palves@redhat.com>
4094 * tui/tui-data.c (set_gen_win_origin): Delete.
4095 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
4096 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
4098 2012-03-01 Pedro Alves <palves@redhat.com>
4100 * remote.c (encode_actions): Delete declaration.
4101 * tracepoint.c (encode_actions): Make extern.
4102 * tracepoint.h (encode_actions): Declare.
4104 2012-03-01 Pedro Alves <palves@redhat.com>
4106 * python/py-breakpoint.c: Include python.h.
4107 * python/py-continueevent.c (create_continue_event_object): Make
4109 * python/py-lazy-string.c (stpy_get_type): Make static.
4110 * python/py-newobjfileevent.c (create_new_objfile_event_object):
4112 * python/py-utils.c (unicode_to_target_python_string): Make
4114 * python/py-value.c: Include python.h.
4116 2012-03-01 Pedro Alves <palves@redhat.com>
4118 * inferior.c (delete_threads_of_inferior): Delete.
4120 2012-03-01 Pedro Alves <palves@redhat.com>
4122 Import fallback definitions from glibc.
4124 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
4125 ps_prochandle): Forward declare.
4126 (ps_err_e): Use glibc's comments.
4127 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
4128 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4129 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
4130 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
4131 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
4132 (struct ps_prochandle): Adjust comment.
4134 2012-03-01 Pedro Alves <palves@redhat.com>
4136 * ada-lang.c (ada_modulus_from_name): Delete.
4137 * ada-lex.l (lexer_init): Make static.
4139 2012-03-01 Pedro Alves <palves@redhat.com>
4143 * frame.c (read_frame_register_unsigned): New.
4144 * frame.h (read_frame_register_unsigned): Declare.
4145 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
4147 (print_i387_control_word): New parameter `control_p'. Handle it.
4148 (i387_print_float_info): Handle unavailable float registers.
4150 2012-03-01 Keith Seitz <keiths@redhat.com>
4152 * linespec.c (decode_line_2): Sort the list of methods
4153 alphabetically before presenting the user with a selection
4156 2012-03-01 Doug Evans <dje@google.com>
4158 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
4160 (dwarf2_read_abbrevs): Remove corresponding initialization.
4162 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
4164 * NEWS: Mention new python command class gdb.COMMAND_USER.
4165 * cli/cli-cmds.c (show_user): Print error when used on a python
4167 (init_cli_cmds): Update documentation strings for "show user" and
4168 "set/show max-user-call-depth" to clarify that it does not apply to
4170 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
4172 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
4174 * top.c (execute_command): Only execute a user-defined command as a
4175 legacy macro if c->user_commands is set.
4177 2012-03-01 Tom Tromey <tromey@redhat.com>
4179 * valprint.h (struct generic_val_print_decorations): New.
4180 (generic_val_print): Declare.
4181 * valprint.c (generic_val_print): New function.
4182 * p-valprint.c (p_decorations): New global.
4183 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
4184 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
4185 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
4186 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
4187 * m2-valprint.c (m2_decorations): New global.
4188 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
4189 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
4190 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
4191 TYPE_CODE_ERROR>: Call generic_val_print.
4192 * f-valprint.c (f_decorations): New global.
4193 (f_val_print): Use print_function_pointer_address.
4194 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
4195 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
4196 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
4198 * c-valprint.c (c_decorations): New global.
4199 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
4200 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
4201 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
4202 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
4203 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
4204 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
4207 2012-03-01 Tom Tromey <tromey@redhat.com>
4209 * valprint.c (val_print): Update.
4210 * p-valprint (pascal_val_print): Return void.
4211 * p-lang.h (pascal_val_print): Return void.
4212 * m2-valprint.c (m2_val_print): Return void.
4213 * m2-lang.h (m2_val_print): Return void.
4214 * language.h (struct language_defn) <la_val_print>: Return void.
4215 * language.c (unk_lang_val_print): Return void.
4216 * jv-valprint.c (java_val_print): Return void.
4217 * jv-lang.h (java_val_print): Return void.
4218 * f-valprint.c (f_val_print): Return void.
4219 * f-lang.h (f_val_print): Return void.
4220 * d-valprint.c (d_val_print): Return void.
4221 (dynamic_array_type): Update.
4222 * d-lang.h (d_val_print): Return void.
4223 * c-valprint.c (c_val_print): Return void.
4224 * c-lang.h (c_val_print): Return void.
4225 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
4227 * ada-lang.h (ada_val_print): Return void.
4229 2012-03-01 Tom Tromey <tromey@redhat.com>
4231 * value.h (val_print): Return void.
4232 * valprint.c (val_print): Return void.
4234 2012-03-01 Tom Tromey <tromey@redhat.com>
4236 * value.h (common_val_print): Return void.
4237 * valprint.c (common_val_print): Return void.
4239 2012-03-01 Tom Tromey <tromey@redhat.com>
4241 * value.h (value_print): Return void.
4242 * valprint.c (value_print): Return void.
4243 * p-valprint.c (pascal_value_print): Return void.
4244 * p-lang.h (pascal_value_print): Return void.
4245 * language.h (struct language_defn) <la_value_print>: Return
4247 * language.c (unk_lang_value_print): Return void.
4248 * jv-valprint.c (java_value_print): Return void.
4249 * jv-lang.h (java_value_print): Return void.
4250 * f-valprint.c (c_value_print): Don't declare.
4252 * c-valprint.c (c_value_print): Return void.
4253 * c-lang.h (c_value_print): Return void.
4254 * ada-valprint.c (ada_value_print): Return void.
4255 * ada-lang.h (ada_value_print): Return void.
4257 2012-03-01 Tom Tromey <tromey@redhat.com>
4259 * value.c (value_primitive_field): Handle virtual base classes.
4261 2012-03-01 Tom Tromey <tromey@redhat.com>
4263 * gdbtypes.h (struct vbase): Remove.
4265 2012-03-01 Tom Tromey <tromey@redhat.com>
4267 * c-valprint.c (print_function_pointer_address): Move...
4268 * valprint.c: ... here. Make non-static.
4269 * m2-valprint.c (print_function_pointer_address): Remove.
4270 * valprint.h (print_function_pointer_address): Declare.
4272 2012-03-01 Joel Brobecker <brobecker@adacore.com>
4274 * NEWS: Document the fact that one can provide a condition when
4275 creating an Ada exception catchpoint.
4277 2012-03-01 Tom Tromey <tromey@redhat.com>
4279 * valprint.c (val_print_type_code_flags): Fix placement of
4282 2012-03-01 Joel Brobecker <brobecker@adacore.com>
4284 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
4285 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
4286 environment variable before calling update-copyright.
4288 2012-03-01 Joel Brobecker <brobecker@adacore.com>
4290 * gnulib/extra/update-copyright: Update to the latest from
4291 gnulib's git repository.
4292 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
4293 variable to 2 instead of 1.
4295 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4297 * varobj.c (c_value_of_variable): Remove dead code.
4299 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4301 * ada-lex.p (processId): Do not modify already encoded IDs.
4302 Update function documentation.
4304 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4306 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
4307 "name" with "struct symbol *name_sym".
4308 * ada-exp.y (write_var_or_type): Update call to
4309 ada_find_renaming_symbol.
4310 "name" with "struct symbol *name_sym". Adjust Implementation
4311 accordingly. Adjust the function documentation.
4313 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4315 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
4316 * ada-lang.c (ada_find_any_type): Add advance declaration.
4317 Make static. Replace ada_find_any_symbol by
4318 ada_find_any_type_symbol.
4319 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
4320 Improve function description. Make static.
4321 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
4322 Replace ada_find_any_symbol by ada_find_any_type_symbol.
4324 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4326 * ada-lang.c (struct tag_args): Delete.
4327 (ada_get_tsd_type): Function body moved up in source file.
4328 (ada_tag_name_1, ada_tag_name_2): Delete.
4329 (ada_get_tsd_from_tag): New function.
4330 (ada_tag_name_from_tsd): New function.
4331 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
4332 to determine the tag name.
4334 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4336 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
4338 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
4341 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4343 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
4345 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4347 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
4350 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4352 * ada-lang.c (constrained_packed_array_type): If there is a
4353 parallel XA type, use it to determine the array index type.
4355 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4357 * ada-valprint.c (ada_val_print_1): If our value is a reference
4358 to an array descriptor, dereference it before converting it
4361 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4363 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
4364 creating fixed value.
4365 (ada_value_ind, ada_coerce_ref, assign_component)
4366 (ada_evaluate_subexp): Remove call to unwrap_value before
4367 call to ada_to_fixed_value.
4369 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4371 * ada-lang.c (to_fixed_array_type): Set result's type name.
4373 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4375 * ada-lang.c (catch_ada_exception_command_split): Add new
4376 argument cond_string. Add support for condition at end of
4377 "catch exception" commands.
4378 (ada_decode_exception_location): Add new argument cond_string.
4379 Update call to catch_ada_exception_command_split.
4380 (create_ada_exception_catchpoint): Add new argument cond_string.
4381 Set the breakpoint condition if needed.
4382 (catch_ada_exception_command): Update call to
4383 ada_decode_exception_location.
4384 (ada_decode_assert_location): Add function documentation.
4385 Add support for condition at end of "catch assert" command.
4386 (catch_assert_command): Update calls to ada_decode_assert_location
4387 and create_ada_exception_catchpoint.
4389 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4391 Fix disp-step-syscall.exp: fork: single step over fork.
4392 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
4393 (i386_linux_get_syscall_number_from_regcache): ... here, new function
4394 comment, change parameters gdbarch and ptid to regcache. Remove
4395 parameter regcache, initialize gdbarch from regcache here.
4396 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
4398 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
4400 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
4401 'syscall'. Make the 'int' check more strict.
4403 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4405 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
4406 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
4407 (i386_linux_intx80_sysenter_syscall_record): ... here.
4408 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
4409 Use the renamed function name.
4411 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4413 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
4414 * breakpoint.c (until_break_command): Likewise.
4415 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
4416 * infcall.c (call_function_by_hand): Likewise.
4417 * infcmd.c (finish_forward): Likewise.
4418 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4420 2012-02-28 Tristan Gingold <gingold@adacore.com>
4422 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
4423 avoid variable assignments inside condition.
4425 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4427 Fix static analysis issue found by cppcheck.
4428 * microblaze-tdep.c (microblaze_extract_return_value): Fix
4429 uninitialized BUF for size 2.
4431 2012-02-27 Chris Dearman <chris@mips.com>
4432 Nathan Froyd <froydnj@codesourcery.com>
4433 Maciej W. Rozycki <macro@codesourcery.com>
4435 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
4436 (mips16_instruction_has_delay_slot): Likewise.
4437 (mips_segment_boundary): Likewise.
4438 (mips_adjust_breakpoint_address): Likewise.
4439 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
4441 2012-02-27 Maciej W. Rozycki <macro@mips.com>
4442 Maciej W. Rozycki <macro@codesourcery.com>
4444 * infrun.c (handle_inferior_event): Don't proceed through
4445 shared library trampolines if stepping at the machine
4448 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
4450 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
4453 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
4455 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
4456 (sh_stub_unwind_sniffer): New functions.
4457 (sh_stub_unwind): New variable.
4458 (sh_gdbarch_init): Wire everything.
4460 2012-02-27 Pedro Alves <palves@redhat.com>
4462 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
4463 (linux_nat_post_attach_wait): Adjust to use
4464 linux_proc_pid_is_stopped.
4465 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
4466 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
4467 based on pid_is_stopped from both linux-nat.c and
4468 gdbserver/linux-low.c, and renamed.
4470 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
4472 * remote.c (remote_watchpoint_addr_within_range): New function.
4473 (init_remote_ops): Use it.
4475 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
4477 * target.h (target_watchpoint_addr_within_range): Document macro.
4479 2012-02-24 Pedro Alves <palves@redhat.com>
4481 * stack.c (set_last_displayed_sal): Issue internal_error instead
4482 of warning, and issue it after clearing the last displayed sal.
4484 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4485 Pedro Alves <palves@redhat.com>
4487 * breakpoint.c (until_break_command): Install breakpoints after
4488 all frame manipulations.
4490 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
4492 * remote.c (remote_supports_cond_breakpoints): New forward
4494 (remote_add_target_side_condition): New function.
4495 (remote_insert_breakpoint): Add target-side breakpoint
4496 conditional if supported.
4497 (remote_insert_hw_breakpoint): Likewise.
4498 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
4501 * target.c (update_current_target): Inherit
4502 to_supports_evaluation_of_breakpoint_conditions.
4503 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
4505 * target.h (struct target_ops)
4506 <to_supports_evaluation_of_breakpoint_conditions>: New field.
4507 (target_supports_evaluation_of_breakpoint_conditions): New #define.
4509 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
4510 (condition_evaluation_both, condition_evaluation_auto,
4511 condition_evaluation_host, condition_evaluation_target,
4512 condition_evaluation_enums, condition_evaluation_mode_1,
4513 condition_evaluation_mode): New static globals.
4514 (translate_condition_evaluation_mode): New function.
4515 (breakpoint_condition_evaluation_mode): New function.
4516 (gdb_evaluates_breakpoint_condition_p): New function.
4517 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
4518 (mark_breakpoint_modified): New function.
4519 (mark_breakpoint_location_modified): New function.
4520 (set_condition_evaluation_mode): New function.
4521 (show_condition_evaluation_mode): New function.
4522 (bp_location_compare_addrs): New function.
4523 (get_first_location_gte_addr): New helper function.
4524 (set_breakpoint_condition): Free condition bytecode if locations
4525 has become unconditional. Call mark_breakpoint_modified (...).
4526 (condition_command): Call update_global_location_list (1) for
4528 (breakpoint_xfer_memory): Use is_breakpoint (...).
4529 (is_breakpoint): New function.
4530 (parse_cond_to_aexpr): New function.
4531 (build_target_condition_list): New function.
4532 (insert_bp_location): Handle target-side conditional
4533 breakpoints and call build_target_condition_list (...).
4534 (update_inserted_breakpoint_locations): New function.
4535 (insert_breakpoint_locations): Handle target-side conditional
4537 (bpstat_check_breakpoint_conditions): Add comment.
4538 (bp_condition_evaluator): New function.
4539 (bp_location_condition_evaluator): New function.
4540 (print_breakpoint_location): Print information on where the condition
4542 (print_one_breakpoint_location): Likewise.
4543 (init_bp_location): Call mark_breakpoint_location_modified (...) for
4544 breakpoint location.
4545 (force_breakpoint_reinsertion): New functions.
4546 (update_global_location_list): Handle target-side breakpoint
4548 Reinsert locations that are already inserted if conditions have
4550 (bp_location_dtor): Free agent expression bytecode.
4551 (disable_breakpoint): Call mark_breakpoint_modified (...).
4552 Call update_global_location_list (...) with parameter 1 for breakpoints.
4553 (disable_command): Call mark_breakpoint_location_modified (...).
4554 Call update_global_location_list (...) with parameter 1 for breakpoints.
4555 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
4556 (enable_command): mark_breakpoint_location_modified (...).
4557 (_initialize_breakpoint): Update documentation and add
4558 condition-evaluation breakpoint subcommand.
4560 * breakpoint.h: Include ax.h.
4561 (condition_list): New data structure.
4562 (condition_status): New enum.
4563 (bp_target_info) <cond_list>: New field.
4564 (bp_location) <condition_changed, cond_bytecode>: New fields.
4565 (is_breakpoint): New prototype.
4567 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
4569 * remote.c (remote_state) <cond_breakpoints>: New field.
4570 (PACKET_ConditionalBreakpoints): New enum.
4571 (remote_cond_breakpoint_feature): New function.
4572 (remote_protocol_features): Add new ConditionalBreakpoints entry.
4573 (remote_supports_cond_breakpoints): New function.
4574 (_initialize_remote): Add new packet configuration for
4575 target-side conditional breakpoints.
4577 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
4579 * NEWS: Mention target-side conditional breakpoint support,
4580 new condition-evaluation breakpoint subcommand and remote
4583 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
4585 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
4588 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
4590 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
4591 (after_prologue): Remove.
4593 2012-02-23 Tom Tromey <tromey@redhat.com>
4595 * jv-valprint.c (java_val_print): Remove dead code.
4597 2012-02-23 Tristan Gingold <gingold@adacore.com>
4599 * ada-tasks.c (struct ada_tasks_inferior_data): Add
4600 known_tasks_element and known_tasks_length fields.
4601 (read_known_tasks_array): Change argument type. Use pointer type
4602 and number of elements from DATA. Adjust.
4603 (read_known_tasks_list): Likewise.
4604 (get_known_tasks_addr): Remove.
4605 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
4606 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
4607 type and array length. Merge former get_known_tasks_addr code.
4609 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4612 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
4613 it after set_momentary_breakpoint.
4615 2012-02-22 Sterling Augustine <saugustine@google.com>
4618 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
4620 2012-02-22 Gary Benson <gbenson@redhat.com>
4622 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
4623 (find_slot_in_mapped_hash): Likewise.
4625 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4628 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
4629 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
4630 * configure: Regenerate.
4632 2012-02-21 Tristan Gingold <gingold@adacore.com>
4633 Pedro Alves <palves@redhat.com>
4635 * ia64-tdep.c: Do not include libunwind-ia64.h.
4636 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
4637 Include libunwind-ia64.h instead of libunwind.h.
4638 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
4639 for libunwind.h existence.
4640 * configure, config.in: Regenerate.
4642 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
4644 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
4645 instead of value_rtti_target_type.
4646 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
4647 instead of value_rtti_target_type.
4648 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
4649 value_rtti_target_type.
4650 * valops.c (value_ind): Extract function readjust_indirect_value_type.
4651 (value_rtti_target_type): Rename to ...
4652 (value_rtti_indirect_type): ... here and make it indirect. Update
4654 * value.c (readjust_indirect_value_type): New function.
4655 (coerce_ref): Support for enclosing type setting for references
4656 with readjust_indirect_value_type.
4657 * value.h (readjust_value_type): New declaration.
4658 (value_rtti_target_type): Rename to ...
4659 (value_rtti_indirect_type): ... here.
4661 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
4663 * MAINTAINERS (Write After Approval): Add myself to the list.
4665 2012-02-20 Doug Evans <dje@google.com>
4667 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
4668 Rename objfile_p_char parameter to objfilep.
4669 (build_objfile_section_table): Result is now void. All callers
4671 * objfiles.h (struct objfile): Tweak comments, whitespace.
4672 (build_objfile_section_table): Update.
4674 * elfread.c (elf_symfile_segments): Fix warning text.
4676 2012-02-20 Tom Tromey <tromey@redhat.com>
4679 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
4680 particular set of file names once.
4681 (dw2_map_symbol_filenames): Likewise.
4683 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4686 * main.c (write_files): Remove the declaration.
4687 (external_editor_command): Move the declaration ...
4688 [GDBTK] (external_editor_command): ... here. Fix the comment.
4690 2012-02-20 Tom Tromey <tromey@redhat.com>
4692 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
4695 2012-02-20 Tristan Gingold <gingold@adacore.com>
4697 * darwin-nat.h (enum darwin_msg_state): Add comments.
4699 2012-02-20 Tristan Gingold <gingold@adacore.com>
4701 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
4704 2012-20-18 Joel Brobecker <brobecker@adacore.com>
4706 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
4707 between function description and implementation.
4709 2012-02-17 Tom Tromey <tromey@redhat.com>
4712 * python/py-event.c (event_object_getset): New global.
4713 (event_object_type): Reference it.
4714 * python/py-type.c (field_object_getset): New global.
4715 (field_object_type): Reference it.
4716 * python/python-internal.h (gdb_py_generic_dict): Declare.
4717 * python/py-utils.c (gdb_py_generic_dict): New function.
4719 2012-02-17 Tristan Gingold <gingold@adacore.com>
4721 * solib-darwin.c (darwin_current_sos): Check magic and filetype
4723 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
4725 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
4726 TYPE_CALLING_CONVENTION annotation.
4728 2012-02-16 Kevin Buettner <kevinb@redhat.com>
4730 * MAINTAINERS: Add rx to target ISA section.
4731 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
4732 (ALLDEPFILES): Add rx-tdep.c.
4734 2012-02-16 Tom Tromey <tromey@redhat.com>
4736 * symfile.c (symbol_file_add_main_1): Use inferior's
4738 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
4739 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
4741 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
4743 (follow_exec): Use inferior's symfile_flags.
4744 * inferior.h (struct inferior) <symfile_flags>: New field.
4746 2012-02-16 Mike Frysinger <vapier@gentoo.org>
4749 * remote-sim.c (gdbsim_create_inferior): Call error() when
4750 sim_create_inferior() fails.
4752 2012-02-16 Josh Matthews <josh@joshmatthews.net>
4754 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
4756 2012-02-16 Tom Tromey <tromey@redhat.com>
4759 * thread.c (struct current_thread_cleanup) <was_removable>: New
4761 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
4762 (make_cleanup_restore_current_thread): Initialize new field.
4764 2012-02-15 Kevin Buettner <kevinb@redhat.com>
4766 * MAINTAINERS: Add rl78 to target ISA section.
4767 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
4768 (ALLDEPFILES): Add rl78-tdep.c.
4769 * NEWS: Mention rl78 as a new target.
4771 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
4773 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
4775 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
4777 2012-02-15 Tom Tromey <tromey@redhat.com>
4780 * infcmd.c (registers_info): Print just the current register's
4783 2012-02-15 Tom Tromey <tromey@redhat.com>
4785 * python/py-symbol.c (sympy_value): Use _().
4787 2012-02-15 Pedro Alves <palves@redhat.com>
4789 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
4790 output to be like native targets'.
4791 (remote_pid_to_str): Special case the null ptid.
4793 2012-02-14 Stan Shebs <stan@codesourcery.com>
4795 * NEWS: Mention enable count command.
4796 * breakpoint.h (struct breakpoint): New field enable_count.
4797 * breakpoint.c (enable_breakpoint_disp): Add count argument.
4798 (enable_breakpoint): Add arg to call.
4799 (struct disp_data): New struct.
4800 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
4801 (do_map_enable_once_breakpoint): Create a struct and pass it.
4802 (do_map_enable_delete_breakpoint): Ditto.
4803 (do_map_enable_count_breakpoint): New function.
4804 (enable_count_command): New function.
4805 (bpstat_stop_status): Decrement enable_count.
4806 (print_one_breakpoint_location): Report enable count.
4807 (_initialize_breakpoint): Add enable count command.
4809 2012-02-14 Kevin Buettner <kevinb@redhat.com>
4811 * rl78-tdep.c (reggroups.h): Include.
4812 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
4813 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
4814 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
4815 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
4816 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
4817 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
4818 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
4819 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
4820 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
4821 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
4822 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
4823 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
4824 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
4825 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
4826 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
4827 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
4828 beginning of register list.
4829 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
4830 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
4831 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
4832 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
4833 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
4834 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
4835 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
4836 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
4837 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
4838 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
4839 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
4840 the pseudo registers. Rearrange other pseudo registers too so
4841 that the bank registers appear at the end.
4842 (rl78_register_type): Account for the fact that the byte sized
4843 bank registers are now pseudo-registers.
4844 (rl78_register_name): Rearrange the register name array. Make
4845 initial set of raw banked registers inaccessible.
4846 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
4847 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
4848 case for copying bytes back and forth between raw and pseudo
4849 versions of the banked registers. Update other cases to reflect
4851 (rl78_return_value): Update to account for changed names of
4853 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
4854 rl78_register_sim_regno().
4856 2012-02-14 Kevin Buettner <kevinb@redhat.com>
4858 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
4859 the name parameter being passed to find_pc_partial_function().
4861 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4863 * MAINTAINERS: Step down from being ia64 target maintainer.
4865 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4867 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
4868 compilation warning.
4870 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4872 Fix crash on loaded shlibs without loaded exec_bfd.
4873 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
4874 (set_section_command): Replace exec_bfd by p->bfd.
4876 2012-02-10 Tom Tromey <tromey@redhat.com>
4878 * linespec.c (decode_line_internal): Skip symtabs_from_filename
4879 when we have a C++ qualified name.
4881 2012-02-10 Pedro Alves <palves@redhat.com>
4883 * inferior.c (inferior_pid_to_str): New.
4884 (print_inferior, inferior_command): Use it.
4886 2012-02-10 Pedro Alves <palves@redhat.com>
4888 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
4890 * configure: Regenerate.
4892 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4894 * linespec.c (decode_line_internal): Fix comment correctness.
4896 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
4899 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
4900 * amd64bsd-nat.c: Add support for debug registers (adapted from
4902 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
4903 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
4904 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
4905 (amd64bsd_dr_get_control): New functions.
4906 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
4907 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
4908 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
4909 watchpoints initialization.
4910 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
4912 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4914 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
4916 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
4918 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4920 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
4922 2012-02-08 Joel Brobecker <brobecker@adacore.com>
4924 * language.h (symbol_name_cmp_ftype): Renames
4925 symbol_name_match_p_ftype.
4926 (struct language_defn)[la_get_symbol_name_cmp]: Renames
4927 la_get_symbol_name_match_p.
4928 * ada-lang.c (ada_get_symbol_name_cmp): Renames
4929 ada_get_symbol_name_match_p. Update comment.
4930 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
4931 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
4932 Renames symbol_name_match_p. Update field type.
4933 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
4934 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
4935 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
4936 "la_get_symbol_name_cmp" in comments.
4937 * language.c: Likewise.
4939 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4941 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
4943 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
4944 (amd64_sol2_gregset32_reg_offs): Likewise.
4946 2012-02-08 Joel Brobecker <brobecker@adacore.com>
4948 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
4949 of the returned BFD is allocated by GDB.
4951 2012-02-07 Tom Tromey <tromey@redhat.com>
4954 * python/python-internal.h (frame_object_type): Declare.
4955 * python/py-symbol.c (sympy_needs_frame): New function.
4956 (sympy_value): New function.
4957 (symbol_object_getset): Add "needs_frame".
4958 (symbol_object_methods): Add "value".
4959 * python/py-frame.c (frame_object_type): No longer static.
4961 2012-02-07 Tom Tromey <tromey@redhat.com>
4964 * python/py-symbol.c (sympy_line): New function.
4965 (symbol_object_getset): Add "line".
4967 2012-02-07 Tom Tromey <tromey@redhat.com>
4969 * charset.c (find_charset_names): Check 'in' against NULL.
4971 2012-02-06 Doug Evans <dje@google.com>
4973 * gdbtypes.h (struct main_type): Change type of name,tag_name,
4974 and fields.name members from char * to const char *. All uses updated.
4975 (struct cplus_struct_type): Change type of fn_fieldlists.name member
4976 from char * to const char *. All uses updated.
4977 (type_name_no_tag): Update.
4978 (lookup_unsigned_typename, lookup_signed_typename): Update.
4979 * gdbtypes.c (type_name_no_tag): Change result type
4980 from char * to const char *. All callers updated.
4981 (lookup_unsigned_typename, lookup_signed_typename): Change type of
4982 name parameter from char * to const char *.
4983 * symtab.h (struct cplus_specific): Change type of demangled_name
4984 member from char * to const char *. All uses updated.
4985 (struct general_symbol_info): Change type of name and
4986 mangled_lang.demangled_name members from char * to const char *.
4988 (symbol_get_demangled_name, symbol_natural_name): Update.
4989 (symbol_demangled_name, symbol_search_name): Update.
4990 * symtab.c (symbol_get_demangled_name): Change result type
4991 from char * to const char *. All callers updated.
4992 (symbol_natural_name, symbol_demangled_name): Ditto.
4993 (symbol_search_name): Ditto.
4994 (completion_list_add_name): Change type of symname,sym_text,
4995 text,word parameters from char * to const char *.
4996 (completion_list_objc_symbol): Change type of sym_text,
4997 text,word parameters from char * to const char *.
4998 * ada-lang.c (find_struct_field): Change type of name parameter
4999 from char * to const char *.
5000 (encoded_ordered_before): Similarly for N0,N1 parameters.
5001 (old_renaming_is_invisible): Similarly for function_name parameter.
5002 (ada_type_name): Change result type from char * to const char *.
5003 All callers updated.
5004 * ada-lang.h (ada_type_name): Update.
5005 * buildsym.c (hashname): Change type of name parameter
5006 from char * to const char *.
5007 * buildsym.h (hashname): Update.
5008 * dbxread.c (end_psymtab): Change type of include_list parameter
5009 from char ** to const char **.
5010 * dwarf2read.c (determine_prefix): Change result type
5011 from char * to const char *. All callers updated.
5012 * f-lang.c (find_common_for_function): Change type of name, funcname
5013 parameters from char * to const char *.
5014 * f-lang.c (find_common_for_function): Update.
5015 * f-valprint.c (list_all_visible_commons): Change type of funcname
5016 parameters from char * to const char *.
5017 * gdbarch.sh (static_transform_name): Change type of name parameter
5018 and result from char * to const char *.
5019 * gdbarch.c: Regenerate.
5020 * gdbarch.h: Regenerate.
5021 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
5022 of name parameter from char * to const char *.
5023 * jv-lang.c (java_primitive_type_from_name): Ditto.
5024 (java_demangled_signature_length): Similarly for signature parameter.
5025 (java_demangled_signature_copy): Ditto.
5026 (java_demangle_type_signature): Ditto.
5027 * jv-lang.h (java_primitive_type_from_name): Update.
5028 (java_demangle_type_signature): Update.
5029 * objc-lang.c (specialcmp): Change type of a,b parameters
5030 from char * to const char *.
5031 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
5032 from char * to const char *. All callers updated.
5033 * p-lang.h (is_pascal_string_type): Update.
5034 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
5035 of name parameter from char * to const char *.
5036 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
5037 * utils.c (fprintf_symbol_filtered): Ditto.
5038 * defs.h (fprintf_symbol_filtered): Update.
5039 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
5040 * stabsread.h (end_psymtab): Update.
5041 * stack.c (find_frame_funname): Change type of funname parameter
5042 from char ** to const char **.
5043 * stack.h (find_frame_funname): Update.
5044 * typeprint.c (type_print): Change type of varstring parameter
5045 from char * to const char *.
5046 * value.h (type_print): Update.
5047 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
5048 from char * to const char *. All callers updated.
5049 (xcoff_end_psymtab): Change type of include_list parameter
5050 from char ** to const char **. All callers updated.
5051 (swap_sym): Similarly for name parameter. All callers updated.
5052 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
5054 (process_coff_symbol): Use xstrdup.
5055 * stabsread.c (stabs_method_name_from_physname): Renamed from
5056 update_method_name_from_physname. Change result type from void
5057 to char *. All callers updated.
5058 (read_member_functions): In has_destructor case, store name in objfile
5059 obstack instead of malloc space. In !has_stub case, fix mem leak.
5061 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
5063 * configure: Rebuild.
5064 * configure.ac: Put -L../bfd and -L../libiberty at the front of
5067 2012-02-03 Kevin Buettner <kevinb@redhat.com>
5069 * configure.tgt (rl78-*-elf): New target.
5070 * rl78-tdep.c: New file.
5072 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5074 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
5075 and continue the loop. Add QUIT statement.
5077 2012-02-03 Tom Tromey <tromey@redhat.com>
5080 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
5081 bfd_lookup_symbol_from_symtab.
5082 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
5083 gdb_bfd_lookup_symbol_from_symtab.
5085 2012-02-03 Joel Brobecker <brobecker@adacore.com>
5087 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
5088 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
5089 symbol. Add assertion that sym2 is never NULL.
5091 2012-02-02 Doug Evans <dje@google.com>
5093 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
5094 "name" parameter to const char ** from char **. All callers updated.
5095 (find_pc_partial_function): Ditto.
5096 (cache_pc_function_name): Change type to const char * from char *.
5097 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
5098 (find_pc_partial_function): Update.
5099 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
5100 type of "name" parameter to const char * from char *.
5102 * arch-utils.c (generic_in_solib_return_trampoline): Change
5103 type of "name" parameter to const char * from char *.
5104 * arch-utils.h (generic_in_solib_return_trampoline): Update.
5105 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
5106 type of "name" parameter to const char * from char *.
5107 * gdbarch.sh (in_solib_return_trampoline): Ditto.
5108 * gdbarch.c: Regenerate.
5109 * gdbarch.h: Regenerate.
5110 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
5111 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
5112 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
5113 type of "name" parameter to const char * from char *.
5114 * skip.c (skip_function_pc): Ditto.
5115 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
5116 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
5117 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
5118 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
5119 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
5120 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
5121 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
5122 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
5123 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
5125 2012-02-02 Pedro Alves <palves@redhat.com>
5127 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
5128 the current inferior has no execution. Make sure the current
5129 remote process matches gdb's current inferior.
5131 2012-02-02 Tom Tromey <tromey@redhat.com>
5134 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
5137 2012-02-02 Tom Tromey <tromey@redhat.com>
5140 * symtab.c (lookup_language_this): Set block_found.
5142 2012-02-01 Tom Tromey <tromey@redhat.com>
5145 * jit.c (struct jit_inferior_data): Rewrite.
5146 (struct jit_objfile_data): New.
5147 (get_jit_objfile_data): New function.
5148 (add_objfile_entry): Update.
5149 (jit_read_descriptor): Return int. Replace descriptor_addr
5150 argument with inf_data. Update. Don't call error.
5151 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
5153 (jit_inferior_init): Don't look up descriptor. Don't call error.
5154 (jit_reset_inferior_data_and_breakpoints)
5155 (jit_inferior_created_observer): Remove.
5156 (jit_inferior_exit_hook): Update.
5157 (jit_executable_changed_observer): Remove.
5158 (jit_event_handler): Update.
5159 (free_objfile_data): Reset inferior data if needed.
5160 (_initialize_jit): Update.
5162 2012-02-01 Tom Tromey <tromey@redhat.com>
5164 * jit.c (bfd_open_from_target_memory): Move higher in file.
5166 2012-02-01 Tristan Gingold <gingold@adacore.com>
5168 * libunwind-frame.c (libunwind_load): Display message if dlopen
5171 2012-02-01 Gary Benson <gbenson@redhat.com>
5173 * symtab.h (symbol_found_callback_ftype): New typedef.
5174 (iterate_over_symbols): Use the above.
5175 * symtab.c (iterate_over_symbols): Likewise.
5176 * language.h (language_defn->la_iterate_over_symbols): Likewise.
5177 * ada-lang.c (ada_iterate_over_symbols): Likewise.
5178 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
5179 (iterate_name_matcher): Document return values.
5180 (collect_one_symbol): Likewise.
5181 (collect_function_symbols): Likewise.
5182 (collect_symbols): Likewise.
5184 2012-02-01 Tom Tromey <tromey@redhat.com>
5186 * ada-lang.c (resolve_subexp): Update.
5187 (ada_lookup_symbol_list): Add 'full_search' argument.
5188 (ada_iterate_over_symbols): Pass 0 as full_search argument to
5189 ada_lookup_symbol_list.
5190 (ada_lookup_encoded_symbol): Update.
5191 (get_var_value): Update.
5192 * ada-exp.y (block_lookup): Update.
5193 (write_var_or_type): Update.
5194 (write_name_assoc): Update.
5195 * ada-lang.h (ada_lookup_symbol_list): Update.
5197 2012-01-31 Tom Tromey <tromey@redhat.com>
5199 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
5202 2012-01-31 Doug Evans <dje@google.com>
5204 * symtab.h: Remove outdated comment.
5205 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
5207 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
5209 Fix build error in Darwin port.
5210 * i386-darwin-nat.c: Include i386-nat.h.
5212 2012-01-30 Tom Tromey <tromey@redhat.com>
5214 PR breakpoints/13568:
5215 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
5216 argument. Check for recursive includes.
5217 (dwarf_decode_macros): Create an include hash.
5219 2012-01-30 Michael Eager <eager@eagercon.com>
5221 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
5222 * ppc-linux-tdep.c: Include glibc-tdep.h.
5223 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5224 (powerpc_linux_in_plt_stub): New function.
5225 (powerpc_linux_in_dynsym_resolve_code): New function.
5226 (ppc_skip_trampoline_code): New function.
5227 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
5228 Use glibc_skip_solib_resolver.
5230 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5232 Code cleanup: Make 1440 bytes of data segment read-only.
5233 * arch-utils.c (endian_enum): Make it const char *const [].
5234 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
5236 * breakpoint.c (always_inserted_enums): Likewise.
5237 * cli/cli-cmds.c (script_ext_enums): Likewise.
5238 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
5239 enumlist parameter const char *const *.
5240 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
5241 const char *const *.
5242 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
5243 parameter const char *const *.
5244 * cris-tdep.c (cris_modes): Make it const char *const [].
5245 * filesystem.c (target_file_system_kinds): Likewise.
5246 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
5247 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
5248 (can_use_displaced_stepping_enum, scheduler_enums)
5249 (exec_direction_names): Likewise.
5250 * language.c (_initialize_language): Make the type_or_range_names and
5251 case_sensitive_names variables const char *const [].
5252 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
5253 * python/python.c (python_excp_enums): Likewise.
5254 * remote.c (interrupt_sequence_modes): Likewise.
5255 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
5256 * serial.c (logbase_enums): Likewise.
5257 * sh-tdep.c (sh_cc_enum): Likewise.
5258 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
5260 * symtab.c (multiple_symbols_modes): Likewise.
5261 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
5263 * utils.c (internal_problem_modes): Likewise.
5265 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5267 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
5268 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
5271 2012-01-27 Doug Evans <dje@google.com>
5273 * configure.ac (with_python): Fix absolute path handling for win32.
5274 * configure: Regenerate.
5276 2012-01-26 Doug Evans <dje@google.com>
5278 * symtab.c: Whitespace cleanup, no code changes.
5280 * symtab.c (lookup_symbol_in_language): Improve comment.
5281 (lookup_symbol_aux): Fix comment.
5283 * psymtab.c (add_psymbol_to_list): Result is now "void".
5284 * psympriv.h (add_psymbol_to_list): Update.
5286 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
5288 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5290 Do not open script filenames twice.
5291 * cli/cli-cmds.c (source_script_from_stream): Pass to
5292 source_python_script also STREAM.
5293 * python/py-auto-load.c (source_section_scripts): Pass to
5294 source_python_script_for_objfile also STREAM.
5295 (auto_load_objfile_script): Pass to source_python_script_for_objfile
5297 * python/python-internal.h (source_python_script_for_objfile): New
5298 parameter file, rename parameter file to filename.
5299 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
5300 instead if !_WIN32. Update the function comment.
5301 (source_python_script, source_python_script_for_objfile)
5302 (source_python_script): New parameter file, rename parameter file to
5303 filename. Pass FILENAME to python_run_simple_file.
5304 * python/python.h (source_python_script): New parameter file, rename
5305 parameter file to filename.
5307 2012-01-26 Pedro Alves <palves@redhat.com>
5309 * corelow.c (core_has_fake_pid): Delete.
5310 (core_close): Delete references to `core_has_fake_pid'.
5311 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
5312 (core_open): Delete references to `core_has_fake_pid'.
5313 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
5316 2012-01-26 Joel Brobecker <brobecker@adacore.com>
5318 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
5319 Remove language parameter from name_matcher. Adjust the comment.
5320 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
5321 Remove language parameter.
5322 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
5323 * linespec.c (iterate_name_matcher): Likewise.
5324 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
5325 name_matcher. Adjust call accordingly.
5326 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
5327 (maintenance_check_symtabs): Adjust type of parameter "fun".
5328 * psymtab.h (maintenance_check_symtabs): Likewise.
5330 2012-01-26 Joel Brobecker <brobecker@adacore.com>
5332 * language.h (symbol_name_match_p_ftype): New typedef.
5333 (struct language_defn): Replace field la_symbol_name_compare
5334 by la_get_symbol_name_match_p.
5335 * ada-lang.c (ada_get_symbol_name_match_p): New function.
5336 (ada_language_defn): Use it.
5337 * linespec.c (struct symbol_matcher_data): New type.
5338 (iterate_name_matcher): Rewrite.
5339 (iterate_over_all_matching_symtabs): Pass a pointer to
5340 a symbol_matcher_data struct to expand_symtabs_matching
5341 instead of just the lookup name.
5342 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
5343 opencl-lang.c, p-lang.c, language.c: Delete field
5344 la_symbol_name_compare, and replace by NULL for new field
5345 la_get_symbol_name_match_p.
5346 * symfile.h (struct quick_symbol_functions): Update comment.
5348 2012-01-25 Tom Tromey <tromey@redhat.com>
5350 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
5353 2012-01-24 Tom Tromey <tromey@redhat.com>
5356 * solib.c (update_solib_list): Update the program space's
5357 added_solibs and deleted_solibs fields.
5358 * progspace.h (struct program_space) <added_solibs,
5359 deleted_solibs>: New fields.
5360 (clear_program_space_solib_cache): Declare.
5361 * progspace.c (release_program_space): Call
5362 clear_program_space_solib_cache.
5363 (clear_program_space_solib_cache): New function.
5364 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
5365 bpstat_stop_status. Use handle_solib_event.
5366 * breakpoint.c: Include gdb_regex.h.
5367 (print_solib_event): New function.
5368 (bpstat_print): Use print_solib_event.
5369 (bpstat_stop_status): Add special case for bp_shlib_event.
5370 (handle_solib_event): New function.
5371 (bpstat_what): Use handle_solib_event.
5372 (struct solib_catchpoint): New.
5373 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
5374 (breakpoint_hit_catch_solib, check_status_catch_solib)
5375 (print_it_catch_solib, print_one_catch_solib)
5376 (print_mention_catch_solib, print_recreate_catch_solib): New
5378 (catch_solib_breakpoint_ops): New global.
5379 (catch_load_or_unload, catch_load_command_1)
5380 (catch_unload_command_1): New functions.
5381 (internal_bkpt_check_status): Add special case for
5383 (internal_bkpt_print_it): Use print_solib_event.
5384 (initialize_breakpoint_ops): Initialize
5385 catch_solib_breakpoint_ops.
5386 (_initialize_breakpoint): Register "catch load" and "catch
5388 * breakpoint.h (handle_solib_event): Declare.
5389 * NEWS: Add entry for "catch load" and "catch unload".
5391 2012-01-24 Tom Tromey <tromey@redhat.com>
5393 * ada-lang.c: Include gdb_vecs.h.
5394 * charset.c: Include gdb_vecs.h.
5395 * tracepoint.h: Include gdb_vecs.h.
5396 * gdb_vecs.h: New file.
5398 2012-01-24 Pedro Alves <pedro@codesourcery.com>
5400 * breakpoint.c (breakpoint_hit_catch_fork)
5401 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
5402 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
5403 * infrun.c (inferior_has_forked, inferior_has_vforked)
5404 (inferior_has_execd, inferior_has_called_syscall): Delete.
5405 (handle_syscall_event): Get syscall_number from the execution
5406 control state's wait status.
5407 (wait_for_inferior): Don't clear syscall_number.
5409 2012-01-24 Pedro Alves <palves@redhat.com>
5411 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
5412 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
5413 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
5414 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
5416 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
5417 false for events other than TARGET_SIGNAL_TRAP.
5418 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
5420 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
5421 events other than TARGET_SIGNAL_TRAP.
5422 (tracepoint_breakpoint_hit): Add `ws' parameter.
5423 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
5425 (bpstat_stop_status): Same.
5426 (pc_at_non_inline_function): Same.
5427 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
5428 to pass the current event's waitstatus to bpstat_stop_status
5429 and pc_at_non_inline_function.
5431 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5434 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
5435 Update the function comment for it.
5436 (source_script_with_search): Call make_cleanup_fclose for STREAM.
5437 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
5440 2012-01-24 Pedro Alves <palves@redhat.com>
5442 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
5443 outside `bs->stop' block.
5444 (bpstat_what): Rework bp_shlib_event handling.
5445 (internal_bkpt_check_status): If the breakpoint is a
5446 bp_shlib_event, then set bs->stop and bs->print if
5447 stop_on_solib_events is set.
5449 2012-01-24 Gary Benson <gbenson@redhat.com>
5451 Delete #if 0'd out code.
5452 * stack.c (print_frame_label_vars): Remove.
5453 (catch_info): Likewise.
5454 (_initialize_stack): Remove "info catch" command.
5455 * NEWS: Mention the above.
5457 2012-01-24 Pedro Alves <palves@redhat.com>
5459 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
5461 (remote_notice_new_inferior): If the remote end doesn't support
5462 the multiprocess extensions, then the PID is fake.
5463 (add_current_inferior_and_thread): New.
5464 (remote_start_remote): Use it.
5465 (extended_remote_attach_1): Adjust.
5466 (extended_remote_create_inferior_1): Use
5467 add_current_inferior_and_thread.
5469 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5471 Fix watchpoints to be specific for each inferior.
5472 * breakpoint.c (watchpoint_in_thread_scope): Verify also
5473 current_program_space.
5474 * i386-nat.c (i386_inferior_data_cleanup): New.
5475 (i386_inferior_data_get): Replace variable inf_data_local by an
5477 (i386_use_watchpoints): Initialize i386_inferior_data.
5478 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
5479 specific iterate_over_lwps.
5481 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5483 Fix watchpoints across inferior fork.
5484 * amd64-linux-nat.c (update_debug_registers_callback): Update the
5485 comment for linux_nat_iterate_watchpoint_lwps.
5486 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
5487 linux_nat_iterate_watchpoint_lwps.
5488 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
5489 * i386-linux-nat.c (update_debug_registers_callback): Update the
5490 comment for linux_nat_iterate_watchpoint_lwps.
5491 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
5492 linux_nat_iterate_watchpoint_lwps.
5493 (i386_linux_prepare_to_resume): New comment on Linux kernel.
5494 * i386-nat.c: Include inferior.h.
5495 (dr_mirror): Remove.
5496 (i386_inferior_data, struct i386_inferior_data)
5497 (i386_inferior_data_get): New.
5498 (i386_debug_reg_state): Use i386_inferior_data_get.
5499 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
5500 (i386_insert_watchpoint, i386_remove_watchpoint)
5501 (i386_stopped_data_address, i386_insert_hw_breakpoint)
5502 (i386_remove_hw_breakpoint): New variable state, use
5503 i386_debug_reg_state instead of DR_MIRROR.
5504 * linux-nat.c (delete_lwp): New declaration.
5505 (num_lwps): Move here from downwards.
5506 (delete_lwp_cleanup): New.
5507 (linux_child_follow_fork): Create new child_lp, call
5508 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
5510 (num_lwps): Move upwards.
5511 (linux_nat_iterate_watchpoint_lwps): New.
5512 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
5513 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
5515 2012-01-24 Joel Brobecker <brobecker@adacore.com>
5519 2012-01-23 Pedro Alves <palves@redhat.com>
5521 * top.c (caution): Rename to ...
5522 (confirm): ... this.
5523 (show_caution): Rename to ...
5524 (show_confirm): ... this.
5525 (quit_cover): Adjust.
5526 (init_main): Adjust.
5527 * top.h (caution): Rename to ...
5528 (confirm): ... this.
5529 * utils.c (internal_vproblem, defaulted_query): Adjust.
5531 2012-01-23 Pedro Alves <palves@redhat.com>
5533 * top.c (caution): Update comment.
5534 (execute_command): Don't consider the current value of `caution'.
5536 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5538 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
5540 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
5542 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
5543 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
5544 * target.c (target_fileio_pwrite): Remove buffer address from
5546 (target_fileio_pread): Likewise.
5548 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5550 * NEWS: Document remote "info proc" and "generate-core-file".
5552 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5554 * gdbarch.sh (find_memory_regions): New callback.
5555 * gdbarch.c, gdbarch.h: Regenerate.
5557 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
5558 callback before falling back to target method.
5560 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
5561 (linux_target_install_ops): No longer install it.
5563 * linux-tdep.c (linux_find_memory_regions): New function.
5564 (linux_init_abi): Install it.
5566 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5568 * gdbarch.sh (make_corefile_notes): New architecture callback.
5569 * gdbarch.c: Regenerate.
5570 * gdbarch.h: Likewise.
5572 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
5573 before target_make_corefile_notes. If NULL is returned, the
5574 target does not support core file generation.
5576 * linux-nat.c: Include "linux-tdep.h".
5577 (find_signalled_thread, find_stop_signal): Remove.
5578 (linux_nat_do_thread_registers): Likewise.
5579 (struct linux_nat_corefile_thread_data): Likewise.
5580 (linux_nat_corefile_thread_callback): Likewise.
5581 (iterate_over_spus): Likewise.
5582 (struct linux_spu_corefile_data): Likewise.
5583 (linux_spu_corefile_callback): Likewise.
5584 (linux_spu_make_corefile_notes): Likewise.
5585 (linux_nat_collect_thread_registers): New function.
5586 (linux_nat_make_corefile_notes): Replace contents by call to
5587 linux_make_corefile_notes passing linux_nat_collect_thread_registers
5588 as native-only callback.
5590 * linux-tdep.h: Include "bfd.h".
5591 (struct regcache): Add forward declaration.
5592 (linux_collect_thread_registers_ftype): New typedef.
5593 (linux_make_corefile_notes): Add prototype.
5594 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
5595 "regset.h", and "elf-bfd.h".
5596 (find_signalled_thread, find_stop_signal): New functions.
5597 (linux_spu_make_corefile_notes): Likewise.
5598 (linux_collect_thread_registers): Likewise.
5599 (struct linux_corefile_thread_data): New data structure.
5600 (linux_corefile_thread_callback): New funcion.
5601 (linux_make_corefile_notes): Likewise.
5602 (linux_make_corefile_notes_1): Likewise.
5603 (linux_init_abi): Install it.
5605 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5607 * gdbarch.sh (info_proc): New callback.
5608 * gdbarch.c, gdbarch.h: Regenerate.
5610 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
5611 before falling back to the target info_proc callback.
5613 * linux-nat.c: Do not include "cli/cli-utils.h".
5614 (linux_nat_info_proc): Remove.
5615 (linux_target_install_ops): No longer install it.
5617 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
5618 (read_mapping): New function.
5619 (linux_info_proc): Likewise.
5620 (linux_init_abi): Install it.
5622 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5624 * defs.h (enum info_proc_what): Moved here from linux-nat.c
5625 * infcmd.c: (info_proc_cmd_1): New function.
5626 (info_proc_cmd): New function, moved here from equivalent routine
5627 orignally in linux-nat.c.
5628 (info_proc_cmd_mappings): Likewise.
5629 (info_proc_cmd_stat): Likewise.
5630 (info_proc_cmd_status): Likewise.
5631 (info_proc_cmd_cwd): Likewise.
5632 (info_proc_cmd_cmdline): Likewise.
5633 (info_proc_cmd_exe): Likewise.
5634 (info_proc_cmd_all): Likewise.
5635 (_initialize_infcmd): Install "info proc" command and subcommands.
5637 * target.h (struct target_ops): Add to_info_proc.
5638 (target_info_proc): Add prototype.
5639 * target.c (target_info_proc): New function.
5641 * procfs.c (procfs_info_proc): Add prototype.
5642 (info_proc_cmd): Rename into ...
5643 (procfs_info_proc): ... this. Update argument types as appropriate
5644 for a to_info_proc implementation. Handle "what" argument.
5645 (procfs_target): Install procfs_info_proc.
5646 (_initialize_procfs): No longer install "info proc" command.
5648 * linux-nat.c: (enum info_proc_what): Remove.
5649 (linux_nat_info_proc_cmd_1): Rename into ...
5650 (linux_nat_info_proc): ... this. Update argument types as appropriate
5651 for a to_info_proc implementation.
5652 (linux_nat_info_proc_cmd): Remove.
5653 (linux_nat_info_proc_cmd_mappings): Likewise.
5654 (linux_nat_info_proc_cmd_stat): Likewise.
5655 (linux_nat_info_proc_cmd_status): Likewise.
5656 (linux_nat_info_proc_cmd_cwd): Likewise.
5657 (linux_nat_info_proc_cmd_cmdline): Likewise.
5658 (linux_nat_info_proc_cmd_exe): Likewise.
5659 (linux_nat_info_proc_cmd_all): Likewise.
5660 (linux_target_install_ops): Install linux_nat_info_proc.
5661 (_initialize_linux_nat): No longer install "info proc" command
5664 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5666 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
5667 * config.in, configure: Regenerate.
5669 * target.h (struct target_ops): Add to_fileio_readlink.
5670 (target_fileio_readlink): Add prototype.
5671 * target.c (target_fileio_readlink): New function.
5673 * inf-child.c: Conditionally include <sys/param.h>.
5674 (inf_child_fileio_readlink): New function.
5675 (inf_child_target): Install it.
5677 * remote.c (PACKET_vFile_readlink): New enum value.
5678 (remote_hostio_readlink): New function.
5679 (init_remote_ops): Install it.
5680 (_initialize_remote): Handle vFile:readlink packet type.
5682 2012-01-20 Pedro Alves <palves@redhat.com>
5683 Ulrich Weigand <ulrich.weigand@linaro.org>
5685 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
5686 * config.in, configure: Regenerate.
5688 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
5689 to_fileio_pread, to_fileio_close, to_fileio_unlink.
5690 (target_fileio_open): Add prototype.
5691 (target_fileio_pwrite): Likewise.
5692 (target_fileio_pread): Likewise.
5693 (target_fileio_close): Likewise.
5694 (target_fileio_unlink): Likewise.
5695 (target_fileio_read_alloc): Likewise.
5696 (target_fileio_read_stralloc): Likewise.
5698 * target.c: Include "gdb/fileio.h".
5699 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
5700 (default_fileio_target): New function.
5701 (target_fileio_open): Likewise.
5702 (target_fileio_pwrite): Likewise.
5703 (target_fileio_pread): Likewise.
5704 (target_fileio_close): Likewise.
5705 (target_fileio_unlink): Likewise.
5706 (target_fileio_close_cleanup): Likewise.
5707 (target_fileio_read_alloc_1): Likewise.
5708 (target_fileio_read_alloc): Likewise.
5709 (target_fileio_read_stralloc): Likewise.
5711 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
5712 <fcntl.h>, and <unistd.h>.
5713 (inf_child_fileio_open_flags_to_host): New function.
5714 (inf_child_errno_to_fileio_error): Likewise.
5715 (inf_child_fileio_open): Likewise.
5716 (inf_child_fileio_pwrite): Likewise.
5717 (inf_child_fileio_pread): Likewise.
5718 (inf_child_fileio_close): Likewise.
5719 (inf_child_fileio_unlink): Likewise.
5720 (inf_child_target): Install to_fileio routines.
5722 * remote.c (init_remote_ops): Install to_fileio routines.
5724 2012-01-20 Pedro Alves <palves@redhat.com>
5725 Ulrich Weigand <ulrich.weigand@linaro.org>
5727 * remote.c (remote_multi_process_p): Only check for multi-process
5728 protocol feature, do not check for extended protocol.
5729 (remote_supports_multi_process): Check for extended protocol here.
5730 (set_general_process): Likewise.
5731 (extended_remote_kill): Likewise.
5732 (remote_pid_to_str): Likewise.
5733 (remote_query_supported): Always query multiprocess mode.
5735 2012-01-20 Pedro Alves <palves@redhat.com>
5736 Ulrich Weigand <ulrich.weigand@linaro.org>
5738 * inferior.h (struct inferior): Add fake_pid_p.
5739 * inferior.c (exit_inferior_1): Clear fake_pid_p.
5740 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
5741 magic_null_ptid since the remote side doesn't provide a real PID.
5743 2012-01-19 Tom Tromey <tromey@redhat.com>
5745 * NEWS: Combine the two Python sections.
5747 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5749 * target.h (target_close): Update comment on the target's unpush state.
5751 2012-01-19 Pedro Alves <palves@redhat.com>
5753 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
5754 linux_nat_async directly instead of going through the target
5756 * target.c (unpush_target): Close target after unpushing it, not
5759 2012-01-19 Gary Benson <gbenson@redhat.com>
5761 * mdebugread.c (sort_blocks): Replace integer constants with ones
5762 derived from FIRST_LOCAL_BLOCK.
5764 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
5765 Jan Kratochvil <jan.kratochvil@redhat.com>
5768 * symfile.c (find_separate_debug_file): New function.
5769 (terminate_after_last_dir_separator): Likewise.
5770 (find_separate_debug_file_by_debuglink): Also try realpath.
5771 * configure.ac (AC_CHECK_FUNCS): Add lstat.
5772 * configure: Regenerate.
5773 * config.in: Regenerate.
5775 2012-01-18 Doug Evans <dje@google.com>
5777 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
5778 (main.o): Remove rule.
5779 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
5780 (--with-sysroot): Rewrite.
5781 * configure: Regenerate.
5782 * config.in: Regenerate.
5784 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
5786 * parse.c (initialize_expout): New function.
5787 (reallocate_expout): Likewise.
5788 (parse_exp_in_context): Use `initialize_expout' and
5789 `reallocate_expout' when appropriate.
5791 2012-01-18 Pedro Alves <palves@redhat.com>
5793 * record.c (struct record_breakpoint, record_breakpoint_p)
5794 (record_breakpoints): New.
5795 (record_insert_breakpoint, record_remove_breakpoint): Manage
5796 record breakpoints list. Only remove breakpoints from the
5797 inferior if they had been inserted there in the first place.
5799 2012-01-17 Doug Evans <dje@google.com>
5801 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
5802 if we know we don't have a file name to look for.
5804 2012-01-17 Pedro Alves <palves@redhat.com>
5806 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
5807 the frame's stop reason is UNWIND_UNAVAILABLE.
5809 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5811 Fix compilation error.
5812 * m2-exp.y (yyerror): Use ANSI C prototype.
5814 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
5816 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
5817 (growbuf_by_size): Likewise.
5818 (yyerror): Likewise.
5819 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
5820 (modblock): Remove variable (was #if 0'ed).
5821 (parse_number): Convert prototype from K&R to ANSI C.
5822 (yyerror): Likewise.
5823 * objc-exp.y (parse_number): Likewise.
5824 (yyerror): Likewise.
5825 (yylex): Remove #if 0'ed code.
5826 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
5827 (yyerror): Likewise.
5829 2012-01-16 Tom Tromey <tromey@redhat.com>
5832 * symtab.h (compare_filenames_for_search): Declare.
5833 * symtab.c (compare_filenames_for_search): New function.
5834 (iterate_over_some_symtabs): Use it.
5835 * symfile.h (struct quick_symbol_functions)
5836 <map_symtabs_matching_filename>: Change spec.
5837 * psymtab.c (partial_map_symtabs_matching_filename): Use
5838 compare_filenames_for_search. Update for new spec.
5839 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
5840 compare_filenames_for_search. Update for new spec.
5841 * breakpoint.c (clear_command): Use compare_filenames_for_search.
5843 2012-01-16 Tom Tromey <tromey@redhat.com>
5846 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
5847 (struct main_type) <flag_flag_enum>: New field.
5848 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
5849 * NEWS: Add entries.
5850 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
5852 * python/lib/gdb/printing.py (_EnumInstance): New class.
5853 (FlagEnumerationPrinter): Likewise.
5855 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
5857 * breakpoint.c (create_sals_from_address_default): New function.
5858 (create_breakpoints_sal_default): Likewise.
5859 (decode_linespec_default): Likewise.
5860 (is_marker_spec): Removed.
5861 (strace_marker_p): New function.
5862 (init_breakpoint_sal): Using `strace_marker_p' instead of
5864 (create_breakpoint): Call method `create_sals_from_address' from
5865 breakpoint_ops, replacing code that created SALs conditionally
5866 on the type of the breakpoint. Call method `create_breakpoints_sal',
5867 replacing code that created breakpoints conditionally on the type
5869 (base_breakpoint_create_sals_from_address): New function.
5870 (base_breakpoint_create_breakpoints_sal): Likewise.
5871 (base_breakpoint_decode_linespec): Likewise.
5872 (base_breakpoint_ops): Add methods
5873 `base_breakpoint_create_sals_from_address',
5874 `base_breakpoint_create_breakpoints_sal' and
5875 `base_breakpoint_decode_linespec'.
5876 (bkpt_create_sals_from_address): New function.
5877 (bkpt_create_breakpoints_sal): Likewise.
5878 (bkpt_decode_linespec): Likewise.
5879 (tracepoint_create_sals_from_address): Likewise.
5880 (tracepoint_create_breakpoints_sal): Likewise.
5881 (tracepoint_decode_linespec): Likewise.
5882 (strace_marker_create_sals_from_address): Likewise.
5883 (strace_marker_create_breakpoints_sal): Likewise.
5884 (strace_marker_decode_linespec): Likewise.
5885 (strace_marker_breakpoint_ops): New variable.
5886 (addr_string_to_sals): Remove `marker_spec'. Call method
5887 `decode_linespec' from breakpoint_ops, replacing code that decoded
5888 an address string into a SAL. Use `strace_marker_p' instead of
5890 (strace_command): Decide whether we are dealing with a static
5891 tracepoint with marker or not. Use the appropriate breakpoint_ops.
5892 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
5893 * breakpoint.h (linespec_result, linespec_sals): New forward
5895 (breakpoint_ops) <create_sals_from_address>,
5896 <create_breakpoints_sal>, <decode_linespec>: New methods.
5898 2012-01-14 Doug Evans <dje@google.com>
5900 * NEWS: Update text for "maint set python print-stack".
5901 It is deprecated in gdb 7.4 and deleted in 7.5.
5903 2012-01-13 Eli Zaretskii <eliz@gnu.org>
5905 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
5908 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5910 * configure: Regenerate.
5911 * config.in: Regenerate.
5913 2012-01-12 Keith Seitz <keiths@redhat.com>
5916 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
5917 (ANONYMOUS_UNION_NAME): Define.
5918 (is_path_expr_parent): New function.
5919 (get_path_expr_parent): New function.
5920 (is_anonymous_child): New function.
5921 (create_child_with_value): If the child is anonymous and without
5922 a name, assign an object name to it.
5923 (c_describe_child): Use get_path_expr_parent to determine
5924 the parent expression.
5925 If there field represents an anonymous struct or union and
5926 has no name, set an appropriate display name and expression.
5927 (cplus_describe_child): Likewise.
5929 2012-01-12 Pedro Alves <palves@redhat.com>
5931 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
5932 available when %ebp is found to be zero (outermost).
5934 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
5936 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
5937 an internal gdb_static_assert.
5938 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
5940 2012-01-11 Tom Tromey <tromey@redhat.com>
5943 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
5944 catch" and "catch throw".
5946 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
5948 * blockframe.c (block_innermost_frame): Start search from selected
5949 frame, if present, or otherwise the current frame.
5951 * c-exp.y (variable): Update innermost_block for
5952 'block COLONCOLON NAME' clause.
5953 * m2-exp.y (variable): Ditto.
5954 * objc-exp.y (variable): Ditto.
5956 2012-01-10 Tom Tromey <tromey@redhat.com>
5959 * python/python.c (finish_python_initialization): Set sys.argv.
5961 2012-01-10 Doug Evans <dje@google.com>
5963 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
5964 "want_line_info". All callers updated.
5965 (dwarf_decode_lines_1): New function.
5966 (handle_DW_AT_stmt_list): Add function comment.
5967 New arg "want_line_info". All callers updated.
5968 (read_file_scope,read_type_unit_scope): Move comment from
5969 handle_DW_AT_stmt_list to here.
5971 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5973 Fix regression after libiberty/ update for GCC PR 6057 and others.
5974 * c-exp.y (operator) <OPERATOR DELETE>
5975 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
5976 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
5977 (make_builtin_type, make_name): New variable i, add gdb_assert.
5978 (operator) <OPERATOR NEW>: Update ARGS to 3.
5979 (operator) <OPERATOR DELETE>: Add trailing space.
5980 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
5981 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
5982 * cp-support.c (cp_canonicalize_string): Check NULL from
5983 cp_comp_to_string, call warning and return.
5985 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5987 Fix duplicate .o files after omitting libbfd.a.
5988 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
5989 (SFILES): Add corelow.c.
5990 (COMMON_OBS): Add corelow.o.
5991 (ALLDEPFILES): Remove corelow.c.
5992 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
5993 * config/alpha/alpha-osf3.mh: Likewise.
5994 * config/alpha/fbsd.mh: Likewise.
5995 * config/arm/nbsdaout.mh: Likewise.
5996 * config/arm/nbsdelf.mh: Likewise.
5997 * config/i386/i386gnu.mh: Likewise.
5998 * config/ia64/hpux.mh: Likewise.
5999 * config/ia64/linux.mh: Likewise.
6000 * config/m32r/linux.mh: Likewise.
6001 * config/m68k/linux.mh: Likewise.
6002 * config/mips/irix5.mh: Likewise.
6003 * config/mips/irix6.mh: Likewise.
6004 * config/pa/hpux.mh: Likewise.
6005 * config/pa/linux.mh: Likewise.
6006 * config/powerpc/aix.mh: Likewise.
6007 * config/sparc/linux.mh: Likewise.
6008 * config/sparc/linux64.mh: Likewise.
6009 * config/sparc/sol2.mh: Likewise.
6010 * config/vax/vax.mh: Likewise.
6011 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
6012 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
6013 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
6014 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
6015 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
6016 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
6017 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
6018 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
6019 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
6020 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
6021 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
6022 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
6023 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
6024 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
6025 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
6026 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
6027 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
6028 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
6029 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
6030 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
6031 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
6032 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
6033 corelow.o from gdb_target_obs.
6034 * corefile.c (core_target): Update the comment on NULL value.
6035 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
6036 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
6037 MATCHES. Drop YUMMY set on NULL.
6038 (core_close): Do not call exit_inferior_silent on zero PID. Do not
6039 reclaim CORE_DATA if it is already NULL.
6041 2012-01-09 Doug Evans <dje@google.com>
6043 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
6044 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
6046 2012-01-09 Keith Seitz <keiths@redhat.com>
6048 * breakpoint.c (wrapper.h): Don't include.
6050 2012-01-09 Keith Seitz <keiths@redhat.com>
6052 * Makefile.in (SFILES): Remove wrapper.c.
6053 (HFILES_NO_SRCDIR): Remove wrapper.h.
6054 (COMMON_OBS): Remove wrapper.o.
6055 * cli/cli-interp.c: Don't inlude wrapper.h.
6056 * corelow.c: Likewise.
6057 (core_open): Replace gdb_target_find_new_threads with
6058 TRY_CATCH around target_find_new_threads.
6059 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
6060 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
6061 * varobj.c (varobj_create): Likewise for parse_exp_1 and
6062 evaluate_expression.
6063 (varobj_set_value): Likewise for evaluate_expression and
6065 (install_new_variable): Likewise for value_fetch_lazy.
6066 (adjust_value_for_child_access): Likewise for value_ind.
6067 (c_describe_child): Likewise for value_subscript and
6069 (c_value_of_root): Likewise for evaluate_expression.
6070 * wrapper.c: Remove.
6071 * wrapper.h: Remove.
6073 2012-01-09 Doug Evans <dje@google.com>
6075 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
6076 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
6077 "abfd" args with "section". All callers updated.
6078 Error checking code moved ...
6079 (error_check_comp_unit_head): ... here. New function.
6080 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
6081 Delete arg "abfd". New arg "type_offset". All callers updated.
6082 (create_debug_types_hash_table): Simplify by using
6083 read_and_check_type_unit_head.
6085 * parser-defs.h (namecopy): Delete.
6086 * parse.c (namecopy, namecopy_size): Move into copy_name.
6088 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6090 Partially fix duplicate .o files after omitting libbfd.a.
6091 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
6092 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6093 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
6094 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6095 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
6096 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
6097 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6099 2012-01-09 Pedro Alves <palves@redhat.com>
6101 * MAINTAINERS: Update my email address.
6103 2012-01-08 Doug Evans <dje@google.com>
6105 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
6106 n_type_units. Rename type_comp_units to all_type_units.
6108 (add_signatured_type_cu_to_table): Renamed from
6109 add_signatured_type_cu_to_list. All callers updated.
6111 * gdbtypes.h (struct cplus_struct_type): Delete member
6112 nfn_fields_total. All uses removed.
6114 2012-01-06 Doug Evans <dje@google.com>
6116 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
6118 (dwarf2_find_comp_unit): Delete.
6119 (process_psymtab_comp_unit): Make result "void".
6120 Delete args buffer, info_ptr, buffer_size, and replace with
6121 "section". All callers updated.
6122 (dwarf2_build_psymtabs_hard): Simplify.
6124 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
6125 Thiago Jung Bauermann <bauerman@br.ibm.com>
6127 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
6128 before `struct gdb_exception'.
6129 * breakpoint.c (update_global_location_list_nothrow)
6130 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
6131 * cp-abi.c (value_rtti_type): Likewise.
6132 * cp-support.c (cp_validate_operator): Likewise.
6133 * infrun.c (insert_exception_resume_breakpoint)
6134 (check_exception_resume, keep_going): Likewise.
6135 * mi-interp.c (mi_breakpoint_created)
6136 (mi_breakpoint_modified): Likewise.
6137 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
6138 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
6139 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
6141 2012-01-05 Doug Evans <dje@google.com>
6143 * dwarf2read.c (statement_prologue): Delete, unused.
6145 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
6146 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
6148 * dwarf2read.c (comp_unit_header): Delete, unused.
6150 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
6152 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
6153 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
6155 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
6157 * infrun.c (normal_stop): Don't skip calling the normal_stop
6158 observers if the thread was doing a multi-step, but stopped for
6159 some reason other than stepping.
6161 2012-01-05 Pedro Alves <alves.ped@gmail.com>
6163 * cli/cli-decode.h: Add comments.
6164 (CMD_LIST_AMBIGUOUS): Moved to command.h
6165 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
6166 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
6167 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
6168 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
6169 (add_com, add_com_alias, add_info, add_info_alias)
6170 (complete_on_cmdlist, complete_on_enum, help_list): Remove
6172 * command.h: Add and adjust comments.
6173 (CMD_LIST_AMBIGUOUS): Moved here.
6174 (help_cmd, help_cmd_list): Delete declarations.
6176 2012-01-04 Doug Evans <dje@google.com>
6178 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
6179 All callers updated.
6180 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
6181 Replace all arguments with "per_cu". All callers updated.
6183 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
6185 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
6186 New arg "per_cu". All callers updated.
6188 Delete #if 0'd out code.
6189 * language.c (binop_result_type): Delete.
6190 (simple_type, ordered_type, same_type, integral_type): Delete.
6191 (numeric_type, character_type, string_type, boolean_type): Delete.
6192 (float_type, structured_type): Delete.
6193 * language.h: Update.
6195 2012-01-04 Tom Tromey <tromey@redhat.com>
6197 * python/py-value.c (valpy_binop): Initialize 'res_val'.
6199 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6201 * corefile.c (close_exec_file): Delete.
6202 (reopen_exec_file): Remove commented out code that seems related
6203 to close_exec_file, which is being deleted here.
6204 * inferior.h (close_exec_file): Delete.
6205 * fork-child.c (fork_inferior): Remove call to fork_inferior.
6207 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6209 * ada-lang.c: #include "cli/cli-utils.h".
6210 (get_selections): Use skip_spaces.
6211 (ada_get_next_arg): Use skip_spaces and skip_to_space.
6212 (catch_ada_exception_command_split): Use skip_spaces.
6213 (ada_decode_assert_location): Likewise.
6215 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6217 * linespec.c (decode_line_internal): Check for C++ or Java
6218 compound constructs only if the current language is C, C++
6221 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6224 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6225 Joel Brobecker <brobecker@adacore.com>
6226 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
6227 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
6229 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
6230 fall through into AT_ENTRY_POINT.
6231 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
6233 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
6234 PPC_INSN_SIZE skip to 3 times.
6236 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6238 * linespec.c (add_minsym): Preserve function descriptors.
6240 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
6242 * breakpoint.c (all_locations_are_pending): Consider locations
6243 in program spaces executing during startup pending as well.
6245 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6247 Copyright year update in most files of the GDB Project.
6249 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6251 * copyright.sh: Delete.
6252 * copyright.py: Rewrite.
6254 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6256 * gnulib/extra/update-copyright: New file, imported from gnulib.
6258 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6260 * README (Copyright and License Notices): New section.
6262 2012-01-03 Tom Tromey <tromey@redhat.com>
6265 * python/py-value.c (valpy_dereference, valpy_get_address
6266 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
6267 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
6268 (valpy_absolute, valpy_richcompare): Free intermediate values.
6270 2011-01-03 Joel Brobecker <brobecker@adacore.com>
6272 * ada-lang.c: Reformat the copyright notice.
6274 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6276 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
6277 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
6278 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
6279 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
6280 Revert this part of:
6281 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6282 Build gdb directly from *.o files not using libgdb.a.
6283 * Makefile.in (COMMON_OBS): Remove solib-target.o.
6285 2012-01-02 Joel Brobecker <brobecker@adacore.com>
6287 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
6288 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
6289 Reformat the copyright header.
6291 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6293 Revert this part of:
6294 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6295 Remove the gdbtui binary.
6296 * gdb.c (main): Remove args.interpreter_p initialization.
6297 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
6298 * main.h (struct captured_main_args): Remove interpreter_p.
6300 2012-01-02 Joel Brobecker <brobecker@adacore.com>
6302 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
6304 2012-01-02 Joel Brobecker <brobecker@adacore.com>
6306 * top.c (print_gdb_version): Update copyright year.
6308 2012-01-02 Yao Qi <yao@codesourcery.com>
6310 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
6312 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6313 Joel Brobecker <brobecker@adacore.com>
6315 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
6316 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
6318 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
6319 fall through into AT_ENTRY_POINT.
6320 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
6322 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
6323 PPC_INSN_SIZE skip to 3 times.
6325 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6327 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
6329 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
6331 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6333 Build gdb directly from *.o files not using libgdb.a.
6334 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
6335 (COMMON_OBS): Remove solib-target.o.
6336 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
6337 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
6338 (LIBGDB_OBS, libgdb.a): Move it above.
6339 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
6340 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
6341 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
6342 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
6343 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
6344 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
6345 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
6346 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
6347 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
6348 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
6349 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
6350 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
6351 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
6352 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
6353 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
6354 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
6355 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
6356 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
6357 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
6358 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
6359 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
6360 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
6361 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
6362 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
6363 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
6364 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
6365 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
6367 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6369 Remove the gdbtui binary.
6370 * .gitignore (/gdbtui): Remove.
6371 * Makefile.in (TUI): Remove.
6372 (SUBDIR_TUI_OBS): Remove tui-main.o.
6373 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
6374 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
6375 (tui-main.o): Remove.
6376 (all_object_files): Remove tui-main.o.
6377 * NEWS: New note for the gdbtui removal.
6378 * configure: Rebuilt.
6379 * configure.ac: No longer add all-tui, clean-tui, install-tui and
6380 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
6381 CONFIG_UNINSTALL respectively.
6382 * gdb.c (main): Remove args.interpreter_p initialization.
6383 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
6384 * main.h (struct captured_main_args): Remove interpreter_p.
6385 * tui/tui-main.c: Remove.
6387 2012-01-01 Doug Evans <dje@google.com>
6389 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
6390 (dwarf2_physname, read_import_statement): Ditto.
6391 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
6392 (process_structure_scope read_subroutine_type): Ditto.
6393 (read_typedef, load_partial_dies, read_partial_die): Ditto.
6394 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
6395 (dwarf2_fetch_die_location_block): Ditto.
6396 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
6398 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
6399 All callers updated.
6400 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
6401 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
6402 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
6404 * dwarf2read.c (load_cu): Move assert to more useful location.
6406 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
6407 All callers updated.
6409 * dwarf2read.c (dwarf2_per_objfile): Add comment.
6410 (dwarf2_elf_names): Minor reformat.
6411 (dwarf2_per_cu_data): Tweak comment.
6412 (dwarf2_read_section): Fix comment.
6413 (create_all_comp_units): Fix comment.
6414 (load_full_comp_unit): Fix comment.
6415 (process_full_comp_unit): Fix comment.
6416 (read_signatured_type): Fix comment.
6418 For older changes see ChangeLog-2011.
6424 version-control: never