* mips-linux-nat.c (mips_linux_read_description): Use a more
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
837a1b32
MR
12012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2
3 * mips-linux-nat.c (mips_linux_read_description): Use a more
4 verbose error message.
5
d0e64392
MR
62012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
7
8 * NEWS: Add MIPS/Linux DSP support.
9 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
10 (SIGCONTEXT_DSPCTL): New macro.
11 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
12 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
13 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
14 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
15 (N64_SIGCONTEXT_HI3): Likewise.
16 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
17 (N64_SIGCONTEXT_LO3): Likewise.
18 (N64_SIGCONTEXT_DSPCTL): Likewise.
19 (N64_SIGCONTEXT_FPCSR): Clarify definition.
20 (mips_linux_o32_sigframe_init): Handle DSP registers.
21 (mips_linux_n32n64_sigframe_init): Likewise.
22
8bea7ed1
PM
232012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
24
25 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
26 call to abort.
27
dab06dbe
PA
282012-05-22 Pedro Alves <palves@redhat.com>
29
30 * target.h (store_waitstatus): Move declaration ...
31 * inf-child.h (store_waitstatus): ... here.
32 * target.c: Move inclusion of gdb_wait.h, and ...
33 (store_waitstatus): ... this ...
34 * inf-child.c: ... here.
35 * linux-nat.c: Include inf-child.h.
36 * rs6000-nat.c: Include inf-child.h.
37 * spu-linux-nat.c: Include inf-child.h.
38
43011e52
PM
392012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
40
41 * tracepoint.c (start_tracing): Add missing i18n markup.
42 (stop_tracing, set_trace_user): Ditto.
43 (set_trace_notes, set_trace_stop_notes): Ditto.
44
b1af9e97
TT
452012-05-21 Tom Tromey <tromey@redhat.com>
46
47 PR c++/7173:
48 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
49 types.
50 * value.h (value_cast_pointers): Update.
51 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
52 (value_cast): Update.
53 (update_search_result): New function.
54 (do_search_struct_field): New, from search_struct_field. Check
55 for ambiguous results.
56 (search_struct_field): Rewrite.
57 * infcall.c (value_arg_coerce): Update.
58 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
59 value_cast_pointers.
60 * ada-lang.c (ada_convert_actual): Update.
61
e9e5e6b3
TT
622012-05-21 Tom Tromey <tromey@redhat.com>
63
64 * macroexp.c (macro_stringify): Terminate the string.
65
1564a261
JK
662012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
67
68 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
69 Describe it.
70 * auto-load.c (auto_load_expand_dir_vars): New function.
71 (auto_load_safe_path_vec_update): Use it, remove the
72 substitute_path_component call thanks to it.
73 (auto_load_objfile_script): Remove the debug_file_directory processing.
74 Use auto_load_expand_dir_vars, remove the substitute_path_component
75 call thanks to it.
76 * configure: Regenerate.
77 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
78 path. Escape $ also for $debugdir.
79 (--with_auto_load_safe_path): Escape $ also for $debugdir.
80 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
81
a3ec0bb1
DE
822012-05-20 Doug Evans <dje@google.com>
83
84 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
85 before use. Check for symtab->includes == NULL before scanning it.
86
d467df4e
MR
872012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
88
89 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
90
4cc0665f
MR
912012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
92
93 * NEWS: Add microMIPS support and "set mips compression",
94 "show mips compression" commands.
95 * mips-tdep.h (mips_isa): New enum.
96 (gdbarch_tdep): Add mips_isa.
97 (mips_pc_is_mips16): Update prototype.
98 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
99 * mips-tdep.c (mips_compression_mips16): New variable.
100 (mips_compression_micromips): Likewise.
101 (mips_compression_strings): Likewise.
102 (mips_compression_string): Likewise.
103 (is_mips16_isa, is_micromips_isa): New functions.
104 (is_mips16_addr): Rename to...
105 (is_compact_addr): ... this.
106 (unmake_mips16_addr): Likewise to...
107 (unmake_compact_addr): ... this.
108 (make_mips16_addr): Likewise to...
109 (make_compact_addr): ... this.
110 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
111 functions.
112 (mips_elf_make_msymbol_special): Handle microMIPS code.
113 (msymbol_is_special): Rename to...
114 (msymbol_is_mips16): ... this.
115 (mips_make_symbol_special, mips_pc_is_mips16): Update
116 accordingly.
117 (msymbol_is_mips, msymbol_is_micromips): New functions.
118 (mips16_to_32_reg): Rename to...
119 (mips_reg3_to_reg): ... this.
120 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
121 (mips_pc_isa): Likewise.
122 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
123 code.
124 (mips_fetch_instruction): Pass return status instead of printing
125 an error message if requested. Handle microMIPS code. Bail out
126 on an invalid ISA.
127 (micromips_op): New macro.
128 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
129 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
130 (b6s4_op, b7s3_reg): Likewise.
131 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
132 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
133 (mips_insn_size): New function.
134 (mips32_next_pc): Update mips_fetch_instruction call.
135 (micromips_relative_offset7): New function.
136 (micromips_relative_offset10): Likewise.
137 (micromips_relative_offset16): Likewise.
138 (micromips_pc_insn_size): Likewise.
139 (micromips_bc1_pc): Likewise.
140 (micromips_next_pc): Likewise.
141 (unpack_mips16): Update mips_fetch_instruction call.
142 (extended_mips16_next_pc): Update according to change to
143 mips16_to_32_reg.
144 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
145 code.
146 (mips16_scan_prologue): Update mips_fetch_instruction call.
147 Update according to change to mips16_to_32_reg.
148 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
149 (mips_insn16_frame_base_sniffer): Likewise.
150 (micromips_decode_imm9): New function.
151 (micromips_scan_prologue): Likewise.
152 (mips_micro_frame_cache): Likewise.
153 (mips_micro_frame_this_id): Likewise.
154 (mips_micro_frame_prev_register): Likewise.
155 (mips_micro_frame_sniffer): Likewise.
156 (mips_micro_frame_unwind): New variable.
157 (mips_micro_frame_base_address): New function.
158 (mips_micro_frame_base): New variable.
159 (mips_micro_frame_base_sniffer): New function.
160 (mips32_scan_prologue): Update mips_fetch_instruction call.
161 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
162 rather than for MIPS16.
163 (mips_insn32_frame_base_sniffer): Likewise.
164 (mips_addr_bits_remove): Handle microMIPS code.
165 (deal_with_atomic_sequence): Rename to...
166 (mips_deal_with_atomic_sequence): ... this. Update the type
167 of the variable used to hold an instruction. Remove the ISA bit
168 check. Update mips_fetch_instruction call.
169 (micromips_deal_with_atomic_sequence): New function.
170 (deal_with_atomic_sequence): Likewise.
171 (mips_about_to_return): Handle microMIPS code. Update
172 mips_fetch_instruction call.
173 (heuristic_proc_start): Check for the standard MIPS ISA rather
174 than for MIPS16. Update mips_pc_is_mips16 and
175 mips_fetch_instruction calls. Handle microMIPS code.
176 (mips_push_dummy_code): Handle microMIPS code.
177 (mips_eabi_push_dummy_call): Likewise.
178 (mips_o32_return_value): Update mips_pc_is_mips16 call.
179 (mips_o64_push_dummy_call): Handle microMIPS code.
180 (mips_o64_return_value): Update mips_pc_is_mips16 call.
181 (is_delayed): Remove function.
182 (mips_single_step_through_delay): Replace the call to is_delayed
183 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
184 Handle microMIPS code.
185 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
186 microMIPS code.
187 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
188 call.
189 (micromips_in_function_epilogue_p): New function.
190 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
191 call.
192 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
193 Handle microMIPS.
194 (gdb_print_insn_mips): Likewise.
195 (mips_breakpoint_from_pc): Likewise.
196 (mips_remote_breakpoint_from_pc): New function.
197 (mips32_instruction_has_delay_slot): Simplify making use of the
198 updated mips_fetch_instruction interface.
199 (micromips_instruction_has_delay_slot): New function.
200 (mips16_instruction_has_delay_slot): Simplify making use of the
201 updated mips_fetch_instruction interface.
202 (mips_adjust_breakpoint_address): Check for the standard MIPS
203 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
204 calls. Handle microMIPS code.
205 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
206 (mips_skip_trampoline_code): Handle microMIPS code.
207 (global_mips_compression): New function.
208 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
209 file flags. Register the microMIPS remote breakpoint handler
210 and heuristic frame unwinder.
211 (show_mips_compression): New function.
212 (_initialize_mips_tdep): Add the "set mips compression" and
213 "show mips compression" commands.
214
22e048c9
SDJ
2152012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
216
217 * ada-lang.c:
218 * ada-tasks.c:
219 * ada-varobj.c:
220 * amd64-darwin-tdep.c:
221 * arm-symbian-tdep.c:
222 * arm-tdep.c:
223 * avr-tdep.c:
224 * ax-gdb.c:
225 * bfin-linux-tdep.c:
226 * breakpoint.c:
227 * c-valprint.c:
228 * cli/cli-cmds.c:
229 * coffread.c:
230 * cp-support.c:
231 * cris-tdep.c:
232 * dwarf2-frame-tailcall.c:
233 * dwarf2-frame.c:
234 * dwarf2expr.c:
235 * dwarf2loc.c:
236 * dwarf2read.c:
237 * elfread.c:
238 * eval.c:
239 * expprint.c:
240 * f-valprint.c:
241 * frv-tdep.c:
242 * h8300-tdep.c:
243 * hppa-hpux-tdep.c:
244 * hppa-tdep.c:
245 * hppanbsd-tdep.c:
246 * i386-nto-tdep.c:
247 * i386-tdep.c:
248 * i387-tdep.c:
249 * ia64-tdep.c:
250 * jit.c:
251 * linespec.c:
252 * linux-tdep.c:
253 * lm32-tdep.c:
254 * m2-valprint.c:
255 * m32c-tdep.c:
256 * m32r-rom.c:
257 * m32r-tdep.c:
258 * m68k-tdep.c:
259 * m68klinux-tdep.c:
260 * mi/mi-main.c:
261 * microblaze-tdep.c:
262 * mips-linux-tdep.c:
263 * mips-tdep.c:
264 * mn10300-tdep.c:
265 * p-valprint.c:
266 * parse.c:
267 * ppc-linux-tdep.c:
268 * ppc-sysv-tdep.c:
269 * printcmd.c:
270 * python/py-finishbreakpoint.c:
271 * python/py-inferior.c:
272 * python/py-infthread.c:
273 * python/py-type.c:
274 * python/python.c:
275 * remote-fileio.c:
276 * remote-m32r-sdi.c:
277 * remote-mips.c:
278 * reverse.c:
279 * rl78-tdep.c:
280 * rs6000-aix-tdep.c:
281 * rs6000-tdep.c:
282 * s390-tdep.c:
283 * score-tdep.c:
284 * sh64-tdep.c:
285 * skip.c:
286 * solib-darwin.c:
287 * solib-dsbt.c:
288 * solib-frv.c:
289 * sparc-tdep.c:
290 * spu-multiarch.c:
291 * spu-tdep.c:
292 * stack.c:
293 * symfile.c:
294 * symtab.c:
295 * tic6x-tdep.c:
296 * tracepoint.c:
297 * v850-tdep.c:
298 * valarith.c:
299 * valprint.c:
300 * value.c:
301 * xcoffread.c:
302 * xtensa-tdep.c:
303 * ada-lang.c:
304 * ada-tasks.c:
305 * ada-varobj.c:
306 * amd64-darwin-tdep.c:
307 * arm-symbian-tdep.c:
308 * arm-tdep.c: Delete unused variables.
309
aff139ff
JK
3102012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
311
312 Rename $ddir to $datadir.
313 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
314 * auto-load.c (auto_load_safe_path_vec_update)
315 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
316 * configure: Regenerate.
317 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
318 Likewise. Remove the 'use $ddir' help string.
319
f7bfa992
JK
3202012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
321
322 * auto-load.c (show_auto_load_safe_path): Accept any combination of
323 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
324
9cb709b6
TT
3252012-05-18 Tom Tromey <tromey@redhat.com>
326
327 PR exp/13907:
328 * valprint.h (struct value_print_options) <symbol_print>: New
329 field.
330 * valprint.c (user_print_options): Add default for symbol_print.
331 (show_symbol_print): New function.
332 (generic_val_print): Respect symbol_print.
333 (_initialize_valprint): Add "print symbol" setting.
334 * f-valprint.c (f_val_print): Respect symbol_print.
335 * c-valprint.c (c_val_print): Respect symbol_print.
336 * NEWS: Update.
337 * printcmd.c (print_address_symbolic): Return int. Ignore some
338 zero-size symbols.
339 (print_address_demangle): Return int.
340 * defs.h: (print_address_symbolic): Return int.
341 * value.h (print_address_demangle): Return int.
342
b012acdd
TT
3432012-05-18 Tom Tromey <tromey@redhat.com>
344
345 * valprint.c (val_print_string): Don't print leading space.
346 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
347 print space before string or vtbl.
348 * m2-valprint.c (print_unpacked_pointer): Optionally print space
349 before string.
350 * jv-valprint.c (java_value_print): Print space before string.
351 * go-valprint.c (print_go_string): Print space before string.
352 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
353 space before string.
354 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
355 space before string or vtbl.
356 * auxv.c (fprint_target_auxv): Print space after address.
357
1d51a733
TT
3582012-05-18 Tom Tromey <tromey@redhat.com>
359
360 * printcmd.c (print_address_demangle): Remove special case for 0.
361
edf0c1b7
TT
3622012-05-18 Tom Tromey <tromey@redhat.com>
363
364 * printcmd.c (print_address_demangle): Add 'opts' argument.
365 * p-valprint.c (pascal_val_print): Update.
366 * jv-valprint.c (java_val_print): Update.
367 * value.h: Update.
368 * valprint.c (generic_val_print): Update.
369 (print_function_pointer_address): Add 'options' argument. Remove
370 'addressprint' argument. Update.
371 * m2-valprint.c (print_unpacked_pointer): Update.
372 * gnu-v3-abi.c (print_one_vtable): Update.
373 (gnuv3_print_method_ptr): Update.
374 * f-valprint.c (f_val_print): Update.
375 * cp-valprint.c (cp_print_value_fields): Update.
376 * valprint.h (print_function_pointer_address): Update.
377 * c-valprint.c (c_val_print): Update.
378
9703b513
TT
3792012-05-18 Tom Tromey <tromey@redhat.com>
380
381 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
382 directly corresponding to the found psymtab.
383 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
384 (dw2_find_pc_sect_symtab): Use it.
385 * block.h (blockvector_contains_pc): Declare.
386 * block.c (find_block_in_blockvector): New function.
387 (blockvector_for_pc_sect): Use it.
388 (blockvector_contains_pc): New function.
389
5a439849
MR
3902012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
391
392 * mips-tdep.h (mips_write_pc): New prototype.
393 * mips-tdep.c (mips_write_pc): Make external, add description.
394 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
395 add description.
396
8376de04
MR
3972012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
398
399 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
400 mips_regnum->pc.
401 (mips_unwind_pc, mips_write_pc): Likewise.
402 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
403 gdbarch_read_pc.
404
d3581e61
JB
4052012-05-17 Joel Brobecker <brobecker@adacore.com>
406
407 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
408 proc_warn, proc_error, proc_get_status, proc_flags,
409 proc_why, proc_what, proc_nsysarg, proc_sysargs,
410 proc_set_run_on_last_close, proc_unset_run_on_last_close,
411 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
412 proc_stop_process, proc_wait_for_stop, proc_run_process,
413 proc_set_traced_signals, proc_set_traced_faults,
414 proc_set_traced_sysentry, proc_set_traced_sysexit,
415 proc_set_held_signals, proc_get_held_signals,
416 proc_get_traced_signals, proc_get_traced_faults,
417 proc_get_traced_sysentry, proc_get_traced_sysexit,
418 proc_clear_current_fault, proc_set_current_signal,
419 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
420 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
421 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
422 proc_get_current_thread, proc_get_current_thread,
423 proc_get_current_thread, proc_update_threads,
424 proc_update_threads, proc_update_threads, proc_update_threads,
425 proc_iterate_over_threads, procfs_find_new_threads,
426 procfs_pid_to_str): Make static. Remove advance declaration.
427 (proc_cursig): Make static. Conditionalized defintion on
428 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
429 (proc_syscall, proc_set_kill_on_last_close,
430 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
431 proc_get_pending_signals, proc_get_signal_actions,
432 proc_trace_signal, proc_ignore_signal): Delete.
433
81b9b86e
SDJ
4342012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
435
436 * coffread.c (cs_section_address): Passing proper argument for
437 `bfd_get_section_vma'.
438 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
439 `bfd_get_section_flags'.
440 * remote.c (remote_trace_set_readonly_regions): Likewise, for
441 `bfd_get_section_vma'.
442
abc9d0dc
TT
4432012-05-16 Tom Tromey <tromey@redhat.com>
444
445 PR macros/13205:
446 * macrotab.h: (macro_define_special): Declare.
447 (enum macro_special_kind): New.
448 (struct macro_definition) <argc, replacement>: Update comments.
449 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
450 (macro_define_object_internal): New function.
451 (macro_define_object): Use it.
452 (macro_define_special): New function.
453 (fixup_definition): New function.
454 (macro_lookup_definition, foreach_macro_in_scope)
455 (foreach_macro): Use fixup_definition.
456 * macroexp.h (macro_stringify): Declare.
457 * macroexp.c (free_buffer_return_text): New function.
458 (stringify): Constify "arg".
459 (macro_stringify): New function.
460 * dwarf2read.c (macro_start_file): Call macro_define_special.
461
6a3a010b
MR
4622012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
463 Maciej W. Rozycki <macro@mips.com>
464
465 * breakpoint.h (bp_location): Add related_address member.
466 * inferior.h (get_return_value): Take a pointer to struct value
467 instead of struct type for the function requested.
468 * value.h (using_struct_return): Likewise.
469 * gdbarch.sh (return_value): Take a pointer to struct value
470 instead of struct type for the function requested.
471 * breakpoint.c (set_breakpoint_location_function): Initialize
472 related_address for bp_gnu_ifunc_resolver breakpoints.
473 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
474 requested function's address to gdbarch_return_value.
475 * eval.c (evaluate_subexp_standard): Pass the requested
476 function's address to using_struct_return.
477 * infcall.c (call_function_by_hand): Pass the requested
478 function's address to using_struct_return and
479 gdbarch_return_value.
480 * infcmd.c (get_return_value): Take a pointer to struct value
481 instead of struct type for the function requested.
482 (print_return_value): Update accordingly.
483 (finish_command_continuation): Likewise.
484 * stack.c (return_command): Pass the requested function's
485 address to using_struct_return and gdbarch_return_value.
486 * value.c (using_struct_return): Take a pointer to struct value
487 instead of struct type for the function requested. Pass the
488 requested function's address to gdbarch_return_value.
489 * python/py-finishbreakpoint.c (finish_breakpoint_object):
490 New function_value member, replacing function_type.
491 (bpfinishpy_dealloc): Update accordingly.
492 (bpfinishpy_pre_stop_hook): Likewise.
493 (bpfinishpy_init): Likewise. Record the requested function's
494 address.
495 * mips-tdep.c (mips_fval_reg): New enum.
496 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
497 words put in GP registers.
498 (mips_o64_push_dummy_call): Update a comment.
499 (mips_o32_return_value): Take a pointer to struct value instead
500 of struct type for the function requested and use it to check if
501 using the MIPS16 calling convention. Return the designated
502 general purpose registers for floating-point values returned in
503 MIPS16 mode.
504 (mips_o64_return_value): Likewise.
505 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
506 (ppc_sysv_abi_broken_return_value): Likewise.
507 (ppc64_sysv_abi_return_value): Likewise.
508 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
509 value instead of struct type for the function requested.
510 * amd64-tdep.c (amd64_return_value): Likewise.
511 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
512 * arm-tdep.c (arm_return_value): Likewise.
513 * avr-tdep.c (avr_return_value): Likewise.
514 * bfin-tdep.c (bfin_return_value): Likewise.
515 * cris-tdep.c (cris_return_value): Likewise.
516 * frv-tdep.c (frv_return_value): Likewise.
517 * h8300-tdep.c (h8300_return_value): Likewise.
518 (h8300h_return_value): Likewise.
519 * hppa-tdep.c (hppa32_return_value): Likewise.
520 (hppa64_return_value): Likewise.
521 * i386-tdep.c (i386_return_value): Likewise.
522 * ia64-tdep.c (ia64_return_value): Likewise.
523 * iq2000-tdep.c (iq2000_return_value): Likewise.
524 * lm32-tdep.c (lm32_return_value): Likewise.
525 * m32c-tdep.c (m32c_return_value): Likewise.
526 * m32r-tdep.c (m32r_return_value): Likewise.
527 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
528 * m68k-tdep.c (m68k_return_value): Likewise.
529 (m68k_svr4_return_value): Likewise.
530 * m88k-tdep.c (m88k_return_value): Likewise.
531 * mep-tdep.c (mep_return_value): Likewise.
532 * microblaze-tdep.c (microblaze_return_value): Likewise.
533 * mn10300-tdep.c (mn10300_return_value): Likewise.
534 * moxie-tdep.c (moxie_return_value): Likewise.
535 * mt-tdep.c (mt_return_value): Likewise.
536 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
537 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
538 (ppc_sysv_abi_broken_return_value): Likewise.
539 (ppc64_sysv_abi_return_value): Likewise.
540 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
541 * rl78-tdep.c (rl78_return_value): Likewise.
542 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
543 * rx-tdep.c (rx_return_value): Likewise.
544 * s390-tdep.c (s390_return_value): Likewise.
545 * score-tdep.c (score_return_value): Likewise.
546 * sh-tdep.c (sh_return_value_nofpu): Likewise.
547 (sh_return_value_fpu): Likewise.
548 * sh64-tdep.c (sh64_return_value): Likewise.
549 * sparc-tdep.c (sparc32_return_value): Likewise.
550 * sparc64-tdep.c (sparc64_return_value): Likewise.
551 * spu-tdep.c (spu_return_value): Likewise.
552 * tic6x-tdep.c (tic6x_return_value): Likewise.
553 * v850-tdep.c (v850_return_value): Likewise.
554 * vax-tdep.c (vax_return_value): Likewise.
555 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
556 * xtensa-tdep.c (xtensa_return_value): Likewise.
557 * gdbarch.c: Regenerate.
558 * gdbarch.h: Regenerate.
559
29ca12b3
TT
5602012-05-15 Tom Tromey <tromey@redhat.com>
561
562 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
563
588ae58c
JB
5642012-05-15 Joel Brobecker <brobecker@adacore.com>
565
566 * breakpoint.c (init_breakpoint_sal): Add quotes around part
567 of command in two error message.
568
855a6e68
JB
5692012-05-15 Joel Brobecker <brobecker@adacore.com>
570
571 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
572
d634f2de
JB
5732012-05-15 Joel Brobecker <brobecker@adacore.com>
574
575 * breakpoint.c (find_condition_and_thread): Minor reformatting.
576
9cc815f5
JK
5772012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
578
579 * NEWS (show auto-load scripts-directory): Add forgotten command.
580
6a609e58
JK
5812012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
582
583 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
584 parameters.
585
ac1438b5
L
5862012-05-14 H.J. Lu <hongjiu.lu@intel.com>
587
588 * amd64-tdep.c: Include features/i386/x32.c and
589 features/i386/x32-avx.c.
590 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
591 initialize_tdesc_x32_avx.
592
e7e0cddf
SS
5932012-05-14 Stan Shebs <stan@codesourcery.com>
594
595 Add dynamic printf.
596 * breakpoint.h (enum bptype): New type bp_dprintf.
597 (struct breakpoint): New field extra_string.
598 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
599 (create_breakpoint): Add extra_string arg.
600 * breakpoint.c (dprintf_breakpoint_ops): New.
601 (is_breakpoint): Add bp_dprintf.
602 (bpstat_what): Add dprintf case.
603 (bptype_string): Ditto.
604 (print_one_breakpoint_location): Ditto.
605 (init_bp_location): Ditto.
606 (bkpt_print_mention): Ditto.
607 (dprintf_style_enums): New array.
608 (dprintf_style): New global.
609 (dprintf_function): New global.
610 (dprintf_channel): New global.
611 (update_dprintf_command_list): New function.
612 (update_dprintf_commands): New function.
613 (init_breakpoint_sal): Add extra_string argument, handle it.
614 (create_breakpoint_sal): Add extra_string argument.
615 (create_breakpoints_sal): Add extra_string argument, update callers.
616 (find_condition_and_thread): Add extra argument.
617 (create_breakpoint): Add extra_string argument, record it.
618 (dprintf_command): New function.
619 (break_command_1): Add arg to create_breakpoint call.
620 (handle_gnu_v3_exceptions): Ditto.
621 (trace_command): Ditto.
622 (ftrace_command): Ditto.
623 (strace_command): Ditto.
624 (bkpt_print_mention): Add dprintf case.
625 (create_breakpoint_sal_default): Add extra_string argument.
626 (_initialize_breakpoint): Add new commands.
627 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
628 * python/py-breakpoint.c (bppy_init): Ditto.
629 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
630
8ae38c14
MR
6312012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
632
633 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
634
9f676e66
SCR
6352012-05-14 Siva Chandra Reddy <sivachandra@google.com>
636
637 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
638 unsigned long long.
639
7efc75aa
SCR
6402012-05-13 Siva Chandra Reddy <sivachandra@google.com>
641
642 Add a new function gdb.find_pc_line to the Python API.
643 * NEWS (Python Scripting): Add entry about the new function.
644 * python/python.c (gdbpy_find_pc_line): New function which
645 implements gdb.find_pc_line.
646 (GdbMethods): Add entry for the new function.
647
70af3797
PA
6482012-05-12 Pedro Alves <palves@redhat.com>
649
650 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
651 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
652
06da564e
EZ
6532012-05-12 Eli Zaretskii <eliz@gnu.org>
654
655 * inferior.c: Include completer.h
656 (initialize_inferiors): Set completer of add-inferior to
657 filename_completer.
658
0288cee2
L
6592012-05-11 H.J. Lu <hongjiu.lu@intel.com>
660
661 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
662 gdbarch_ptr_bit for x32 core dump.
663
f6537a2c
L
6642012-05-11 H.J. Lu <hongjiu.lu@intel.com>
665
666 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
667 and features/i386/x32-avx-linux.c.
668
85d4a676
SS
6692012-05-11 Stan Shebs <stan@codesourcery.com>
670 Kwok Cheung Yeung <kcy@codesourcery.com>
671
672 * NEWS: Describe new info os commands.
673 * common/linux-osdata.c (PID_T, TIME_T): Define.
674 (MAX_PID_T_STRLEN): New.
675 (linux_common_core_of_thread): Add comment. Change to use PID_T and
676 MAX_PID_T_STRLEN.
677 (command_from_pid): Add comment. Change to use PID_T.
678 (commandline_from_pid): Change to use PID_T.
679 (user_from_pid): Add comment.
680 (get_process_owner): Add comment. Change to use PID_T and
681 MAX_PID_T_STRLEN.
682 (get_number_of_cpu_cores): Add comment.
683 (get_cores_used_by_process): Add comment. Change to use PID_T and
684 MAX_PID_T_STRLEN.
685 (linux_xfer_osdata_processes): Change to use PID_T and
686 MAX_PID_T_STRLEN.
687 (compare_processes): New function.
688 (linux_xfer_osdata_processgroups): New function.
689 (linux_xfer_osdata_threads): Change to use PID_T.
690 (linux_xfer_osdata_fds): New function.
691 (format_socket_state, print_sockets): New functions.
692 (union socket_addr): New union.
693 (linux_xfer_osdata_isockets): New function.
694 (time_from_time_t, group_from_gid): New functions.
695 (linux_xfer_osdata_shm): New function.
696 (linux_xfer_osdata_sem): New function.
697 (linux_xfer_osdata_msg): New function.
698 (linux_xfer_osdata_modules): New function.
699 (osdata_table): Add new entries.
700 * common/buffer.c (buffer_xml_printf): Add support for long and
701 long long format specifiers.
702
f24afd6d
L
7032012-05-11 H.J. Lu <hongjiu.lu@intel.com>
704
705 * amd64-linux-tdep.h (tdesc_x32_linux): New.
706 (tdesc_x32_avx_linux): Likewise.
707
7349ff92
JK
7082012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
709
710 Implement multi-component --with-auto-load-dir.
711 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
712 entries.
713 (--with-auto-load-safe-path): Update the default value description.
714 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
715 New.
716 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
717 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
718 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
719 (_initialize_auto_load): Initialize also auto_load_dir. Install new
720 "set auto-load scripts-directory".
721 * config.in: Regenerate.
722 * configure: Regenerate.
723 * configure.ac (--with-auto-load-dir): New configure option.
724 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
725
6dea1fbd
JK
7262012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
727
728 Provide $ddir substitution for --with-auto-load-safe-path.
729 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
730 entries.
731 * auto-load.c: Include observer.h.
732 (auto_load_safe_path_vec_update): Call substitute_path_component for
733 each component. New variable ddir_subst.
734 (auto_load_gdb_datadir_changed): New function.
735 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
736 AUTO_LOAD_SAFE_PATH. New comment.
737 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
738 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
739 * config.in: Regenerate.
740 * configure: Regenerate.
741 * configure.ac (--auto-load-safe-path): Rename
742 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
743 GDB_DATADIR/auto-load.
744 * defs.h (substitute_path_component): New declaration.
745 * top.c: Include observer.h.
746 (set_gdb_datadir): New function.
747 (init_main): Install it for "set data-directory".
748 * utils.c (substitute_path_component): New function.
749
b09aca3a
JK
7502012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
751
752 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
753 * auto-load.c (auto_load_objfile_script): Remove check for NULL
754 DEBUG_FILE_DIRECTORY. Handle multiple components of
755 DEBUG_FILE_DIRECTORY.
756
95554aad
TT
7572012-05-10 Tom Tromey <tromey@redhat.com>
758
759 * dwarf2read.c (recursively_write_psymbols): New function.
760 (write_psymtabs_to_index): Use it.
761
762 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
763 field.
764 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
765 (load_partial_comp_unit): Update.
766 (queue_comp_unit): Add argument 'pretend_language'.
767 (process_queue): Update.
768 (psymtab_to_symtab_1): Skip dependencies that have a user.
769 (load_partial_comp_unit_reader): Give meaning to the 'data'
770 argument.
771 (load_full_comp_unit): Add 'pretend_language' argument.
772 (process_full_comp_unit): Add 'pretend_language' argument. Set
773 language on CU.
774 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
775 Update.
776 (maybe_queue_comp_unit): Add 'pretend_language' argument.
777 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
778 Update.
779 (prepare_one_comp_unit): Add 'pretend_language' argument.
780
781 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
782 (struct dwarf2_per_objfile) <just_read_cus>: New field.
783 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
784 (dw2_do_instantiate_symtab): Check whether symtab was read in
785 before queueing.
786 (dw2_instantiate_symtab): Add assertion. Call
787 process_cu_includes.
788 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
789 (partial_symtab_p): New typedef.
790 (set_partial_user): New function.
791 (dwarf2_build_psymtabs_hard): Use set_partial_user.
792 (scan_partial_symbols): Add imported CU to imported_symtabs.
793 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
794 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
795 (get_symtab, recursively_compute_inclusions)
796 (compute_symtab_includes, process_cu_includes)
797 (process_imported_unit_die): New functions.
798 (process_die) <DW_TAG_imported_unit>: New case.
799 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
800
801 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
802 comment.
803 (struct partial_die_info) <locdesc>: Remove.
804 <d>: New field.
805 (process_psymtab_comp_unit): Add 'read_partial' argument.
806 Update.
807 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
808 (scan_partial_symbols): Handle DW_TAG_imported_unit.
809 (add_partial_symbol): Update.
810 (process_die): Handle DW_TAG_partial_unit.
811 (read_file_scope): Update comment.
812 (load_partial_dies): Handle DW_TAG_imported_unit.
813 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
814 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
815
e871fbb9
TT
8162012-05-10 Tom Tromey <tromey@redhat.com>
817
818 * cc-with-dwz.sh: New file.
819
b5b04b5b
TT
8202012-05-10 Tom Tromey <tromey@redhat.com>
821
822 * symtab.h (struct symtab) <includes, user>: New fields.
823 * block.h (struct block_iterator) <d, idx, which>: New fields.
824 * block.c (initialize_block_iterator, find_iterator_symtab)
825 (block_iterator_step, block_iter_name_step)
826 (block_iter_match_step): New functions.
827 (block_iterator_first, block_iterator_next)
828 (block_iter_name_first, block_iter_name_next)
829 (block_iter_match_first, block_iter_match_next): Rewrite.
830 (get_block_symtab): New function.
831
84a146c9
TT
8322012-05-10 Tom Tromey <tromey@redhat.com>
833
834 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
835 set_block_symtab.
836 * jit.c (finalize_symtab): Use allocate_global_block,
837 set_block_symtab.
838 * buildsym.c (finish_block_internal): New function, from old
839 finish_block.
840 (finish_block): Rewrite.
841 (end_symtab): Use finish_block_internal, set_block_symtab.
842 * block.h (struct global_block): New.
843 (allocate_global_block, set_block_symtab): Declare.
844 * block.c (allocate_global_block, set_block_symtab): New
845 functions.
846
9439a077
TT
8472012-05-10 Tom Tromey <tromey@redhat.com>
848
849 * psymtab.c (partial_map_expand_apply): Add assertion.
850 (partial_map_symtabs_matching_filename): Skip included psymtabs.
851 (psymtab_to_symtab): Find unshared psymtab.
852 (dump_psymtab): Print including psymtabs.
853 (recursively_search_psymtabs): New function.
854 (expand_symtabs_matching_via_partial): Use it.
855 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
856 fields.
857 (enum psymtab_search_status): New.
858
8157b174
TT
8592012-05-10 Tom Tromey <tromey@redhat.com>
860
861 * tracepoint.c (scope_info): Update.
862 * symtab.c (lookup_block_symbol, iterate_over_symbols)
863 (find_pc_sect_symtab, search_symbols)
864 (default_make_symbol_completion_list_break_on)
865 (make_file_symbol_completion_list): Update.
866 * symmisc.c (dump_symtab_1): Update.
867 * stack.c (print_frame_args, iterate_over_block_locals)
868 (print_frame_labels, iterate_over_block_arg_vars): Update.
869 * python/py-block.c (block_object) <dict>: Remove.
870 <block>: New field.
871 <iter>: Change type.
872 (blpy_iter): Update.
873 (blpy_block_syms_iternext): Update.
874 * psymtab.c (map_block): Use block iterators.
875 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
876 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
877 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
878 * infrun.c (check_exception_resume): Update.
879 * cp-support.c (make_symbol_overload_list_block): Update.
880 * coffread.c (patch_opaque_types): Update.
881 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
882 * block.h (struct block_iterator): New.
883 (block_iterator_first, block_iterator_next, block_iter_name_first)
884 (block_iter_name_next, block_iter_match_first)
885 (block_iter_match_next): Declare.
886 (ALL_BLOCK_SYMBOLS): Redefine.
887 * block.c (block_iterator_first, block_iterator_next)
888 (block_iter_name_first, block_iter_name_next)
889 (block_iter_match_first, block_iter_match_next): New functions.
890 * ada-lang.c (ada_add_block_symbols)
891 (ada_make_symbol_completion_list): Use block iterator.
892
a2ca7a52
TT
8932012-05-10 Tom Tromey <tromey@redhat.com>
894
895 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
896 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
897 (lookup_partial_symbol, find_last_source_symtab_from_partial)
898 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
899 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
900 Update.
901
64ea88dc
JB
9022012-05-10 Joel Brobecker <brobecker@adacore.com>
903
904 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
905 print-file-var-lib2.c, print-file-var-main.c and
906 print-file-var.exp (located in gdb/testsuite/gdb.base).
907
99a547d6
JB
9082012-05-10 Joel Brobecker <brobecker@adacore.com>
909
910 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
911 try locating the symbol in the symbol's own objfile first, before
912 extending the search to all objfiles.
913 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
914 out of lookup_symbol_aux_symtabs.
915 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
916 Replace extracted-out code by call to lookup_symbol_aux_objfile.
917 Do not search EXCLUDE_OBJFILE.
918 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
919 (lookup_symbol_global): Search for matches in the block's objfile
920 first, before searching all other objfiles.
921
0ece64fd
TG
9222012-05-10 Tristan Gingold <gingold@adacore.com>
923
924 * printcmd.c (set_command): Add pre/post inc/dec.
925
3d16a105
FCE
9262012-05-09 Frank Ch. Eigler <fche@redhat.com>
927
928 * gdb.1: Document -ex option.
929
2efbc0f7
JB
9302012-05-09 Joel Brobecker <brobecker@adacore.com>
931
932 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
933 * inferior.h (AT_SYMBOL): Delete.
934
2c76a0c7
JB
9352012-05-09 Joel Brobecker <brobecker@adacore.com>
936
937 * mips-tdep.c (mips_push_dummy_code): New function.
938 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
939 ON_STACK and install mips_push_dummy_code as our gdbarch
940 push_dummy_code routine.
941
9401a810
PA
9422012-05-09 Pedro Alves <palves@redhat.com>
943
944 * target.c (set_maintenance_target_async_permitted): Rename to ...
945 (set_target_async_command): ... this.
946 (show_maintenance_target_async_permitted): Rename to ...
947 (show_target_async_command): ... this.
948 (initialize_targets): Adjust.
949
3929b321
DE
9502012-05-08 Doug Evans <dje@google.com>
951
952 * go-exp.y (classify_name): Add missing assignment of fields of
953 yylval.ssym.
954
c41535fd
EZ
9552012-05-08 Eli Zaretskii <eliz@gnu.org>
956
957 Display the ">" prompt in interactive mode while reading canned
958 commands, even when the current interpreter is MI.
959
960 * interps.c (interp_set_temp): New function.
961
962 * interps.h (interp_set_temp): Add prototype.
963
964 * cli/cli-script.c (restore_interp): New cleanup function.
965 (read_command_lines): Temporarily override the current interpreter
966 with CLI and arrange for restoring the original one.
967
c0749c4d
JS
9682012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
969
970 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
971
d7333987
SDJ
9722012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
973
974 * probe.c (parse_probes): Move conditional to check for
975 debuginfo files from here...
976 * stap-probe.c (stap_get_probes): ... to here.
977
649e6d92
MK
9782012-05-07 Mark Kettenis <kettenis@gnu.org>
979 H.J. Lu <hongjiu.lu@intel.com>
980
981 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
982 `movl %esp, %ebp' for the X32 ABI.
983
f39c6ffd
TT
9842012-05-07 Tom Tromey <tromey@redhat.com>
985
986 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
987 get_DW_TAG_name.
988 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
989 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
990 (dwarf_stack_op_name): Remove.
991 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
992 (decode_locdesc): Use get_DW_OP_name.
993 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
994 (dwarf2_compile_expr_to_ax): Likewise.
995 (disassemble_dwarf_expression): Likewise.
996 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
997
1e1f6591
CLT
9982012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
999
1000 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
1001 (sh_linux_sigtramp_cache): New function.
1002 (sh_linux_sigreturn_init): New function.
1003 (sh_linux_rt_sigreturn_init): New function.
1004 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
1005 patterns.
1006 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
1007 syscall codes.
1008 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
1009 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
1010 (sh_linux_init_abi): Add init calls to register new tramp_frame
1011 definitions under 32-bit SH, update comments.
1012
545c08b4
PA
10132012-05-07 Pedro Alves <palves@redhat.com>
1014
daac165e
PA
1015 PR gdb/10952
1016
545c08b4
PA
1017 * amd64-linux-tdep.c: Include glibc-tdep.h.
1018 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
1019 gdbarch_skip_solib_resolver callback.
1020
af2c1515
JK
10212012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1022
1023 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
1024 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
1025 (show_auto_load_safe_path): Check any-directory by comparison with "/".
1026 (add_auto_load_safe_path): Change the error message.
1027 (_initialize_auto_load): Change the "safe-path" help text.
1028 * configure: Regenerate
1029 * configure.ac (--without-auto-load-safe-path): Set
1030 WITH_AUTO_LOAD_SAFE_PATH to /.
1031
1067f998
SDJ
10322012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
1033
1034 * stap-probe.h: Do not include unecessary `probe.h'.
1035
45dfa85a
AM
10362012-05-05 Alan Modra <amodra@gmail.com>
1037
1038 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
1039 bfd_und_section_ptr.
1040 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
1041 and bfd_com_section_ptr.
1042
cf093994
JB
10432012-05-04 Joel Brobecker <brobecker@adacore.com>
1044
762ebb75 1045 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 1046
d40dc7a8
JB
10472012-05-04 Joel Brobecker <brobecker@adacore.com>
1048
1049 * windows-nat.h (segment_register_p_ftype): New typedef.
1050 (windows_set_segment_register_p): Add declaration.
1051 * windows-nat.c (segment_register_p): New static global.
1052 (windows_set_segment_register_p): New function.
1053 (do_windows_fetch_inferior_registers): Add special handling
1054 for segment registers.
1055 * amd64-windows-nat.c: #include "amd64-tdep.h".
1056 (amd64_windows_segment_register_p): New function.
1057 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
1058 * i386-windows-nat.c: #include "i386-tdep.h".
1059 (i386_windows_segment_register_p): New function.
1060 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
1061
52b3699b
TG
10622012-05-04 Tristan Gingold <gingold@adacore.com>
1063
1064 * printcmd.c (set_command): Emit a warning if the expression is not
1065 an assignment.
1066
94c74239
JB
10672012-05-03 Joel Brobecker <brobecker@adacore.com>
1068
1069 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
1070 Make static.
1071
fcf57f19
SDJ
10722012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
1073
1074 * stap-probe.c (stap_is_operator): Change declaration.
1075 (stap_get_opcode): Change return value.
1076 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
1077 `stap_parse_argument_1'.
1078
27d2932e
PA
10792012-05-03 Pedro Alves <pedro@codesourcery.com>
1080
1081 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
1082 debug log.
1083
a20ee7a4
SCR
10842012-05-03 Siva Chandra Reddy <sivachandra@google.com>
1085
1086 Add two new methods global_block and static_block to gdb.Symtab
1087 objects.
1088 * NEWS (Python scripting): Add entry about the new methods.
1089 * python/py-symtab.c (stpy_global_block): New function which
1090 implements the gdb.Symtab.global_block() method.
1091 (stpy_static_block): New function which implements the
1092 gdb.Symtab.static_block() method.
1093 (symtab_object_methods): Add entries for the two new methods.
1094
943cb756
DE
10952012-05-03 Doug Evans <dje@google.com>
1096
1097 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
1098 files.
1099
f4644a3f
YQ
11002012-05-03 Yao Qi <yao@codesourcery.com>
1101
1102 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
1103 space.
1104 (i386_process_record): Ditto.
1105
ef61f180
JB
11062012-05-02 Joel Brobecker <brobecker@adacore.com>
1107
1108 * infcall.c (unwind_on_signal_p): Make static.
1109
02f1df11
JB
11102012-05-02 Joel Brobecker <brobecker@adacore.com>
1111
1112 * sol-thread.c (solaris_pid_to_str): Make static.
1113 (_initialize_sol_thread): Add prototype.
1114
39023530
JB
11152012-05-02 Joel Brobecker <brobecker@adacore.com>
1116
1117 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
1118
c6b0c501
CF
11192012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
1120
1121 * MAINTAINERS: Remove myself.
1122
1ef71717
JK
11232012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1124
1125 Fix --without-auto-load-safe-path for MS-Windows host platform.
1126 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
1127
b31b86a7
EZ
11282012-05-02 Eli Zaretskii <eliz@gnu.org>
1129
1130 * gdb_curses.h: Undefine KEY_EVENT before including curses
1131 headers. Move "#undef MOUSE_MOVED" before any curses header
1132 inclusion.
1133
777532fc
SDJ
11342012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
1135
1136 * features/i386/i386-mmx-linux.c: Regenerate.
1137 * features/rs6000/powerpc-32.c: Likewise.
1138 * features/rs6000/powerpc-32l.c: Likewise.
1139 * features/rs6000/powerpc-403.c: Likewise.
1140 * features/rs6000/powerpc-403gc.c: Likewise.
1141 * features/rs6000/powerpc-405.c: Likewise.
1142 * features/rs6000/powerpc-505.c: Likewise.
1143 * features/rs6000/powerpc-601.c: Likewise.
1144 * features/rs6000/powerpc-602.c: Likewise.
1145 * features/rs6000/powerpc-603.c: Likewise.
1146 * features/rs6000/powerpc-604.c: Likewise.
1147 * features/rs6000/powerpc-64.c: Likewise.
1148 * features/rs6000/powerpc-64l.c: Likewise.
1149 * features/rs6000/powerpc-750.c: Likewise.
1150 * features/rs6000/powerpc-860.c: Likewise.
1151 * features/rs6000/powerpc-e500.c: Likewise.
1152 * features/rs6000/powerpc-e500l.c: Likewise.
1153 * features/rs6000/powerpc-isa205-32l.c: Likewise.
1154 * features/rs6000/powerpc-isa205-64l.c: Likewise.
1155 * features/rs6000/rs6000.c: Likewise.
1156
d71871bc
SDJ
11572012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
1158
1159 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
1160 variable.
1161 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
1162 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
1163 (stap_parse_argument) <e>: Likewise.
1164 (handle_stap_probe) <byte_order>: Likewise.
1165
fd820528
DE
11662012-04-30 Doug Evans <dje@google.com>
1167
1168 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
1169 init_and_read_dies_worker. All callers updated.
1170 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
1171 replaced with init_cutu_and_read_dies.
1172 (load_partial_comp_unit): Pass 1 for use_existing_cu.
1173 (find_partial_die): Remove FIXME. Don't free current CU.
1174
ec3f619d 11752012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
1176
1177 * contrib: New directory.
1178 * contrib/test_pubnames_and_indexes.py: New file.
1179
fceca515
DE
11802012-04-30 Doug Evans <dje@google.com>
1181
1182 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
1183 All callers updated.
1184 (init_cu_die_reader): Verify the section is non-empty.
1185 (dwarf_decode_line_header): Don't dereference section->asection
1186 until we know the section is present.
1187
311fe7e1
SDJ
11882012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
1189
1190 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
1191 probes.
1192
5977971a
YQ
11932012-04-29 Yao Qi <yao@codesourcery.com>
1194
1195 * gdb-code-style.el: New hook gdb-markup-hook
1196 and gdb-comment-hook.
1197
dee91e82
DE
11982012-04-28 Doug Evans <dje@google.com>
1199
3019eac3
DE
1200 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
1201 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
1202 objfile->obfd.
1203 * symfile.h (dwarf2_debug_sections): New member addr.
1204 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
1205 (ctx_no_get_addr_index): New function.
1206 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
1207 (ctx_no_get_addr_index): Declare.
1208 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
1209 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
1210 (dwarf_expr_ctx_funcs): Update.
1211 (needs_get_addr_index): New function.
1212 (needs_frame_ctx_funcs): Update.
1213 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
1214 * dwarf2read.c: #include "gdbcore.h".
1215 (dwarf2_per_objfile): New members addr, dwo_files.
1216 (dwarf2_elf_names): Add entry for addr.
1217 (struct dwo_section_names): New type.
1218 (dwo_section_names): New static global.
1219 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
1220 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
1221 old debug_types_section member updated to use this.
1222 Rename member debug_types_section to info_or_types_section,
1223 all uses updated.
1224 (signatured_type): Rename member type_offset to type_offset_in_tu,
1225 all uses updated. New member type_offset_in_section.
1226 (struct dwo_sections): New type.
1227 (struct dwo_unit): New type.
1228 (struct dwo_file): New type.
1229 (die_reader_specs): New member dwo_file.
1230 (dwarf2_locate_sections): Watch for .debug_addr.
1231 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
1232 (dwarf2_read_section): Get bfd of section from bfd's asection,
1233 instead of objfile.
1234 (create_cus_from_index): Initialize the_cu->info_or_types_section.
1235 (create_signatured_type_table_from_index): Initialize
1236 sig_type->info_or_types_section.
1237 (dw2_get_file_names): Statement lists for type units with DWO files
1238 live in the DWO file.
1239 (create_debug_types_hash_table): New function.
1240 (create_all_type_units): Rewrite.
1241 (init_cu_die_reader): New arg dwo_file, all callers updated.
1242 (init_and_read_dies_worker): Get section from
1243 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
1244 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
1245 continue reading the CU/TU from there.
1246 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
1247 updated. Get section from this_cu->info_or_types_section.
1248 (create_all_comp_units): Initialize this_cu->info_or_types_section.
1249 (skip_one_die): New cases DW_FORM_GNU_addr_index,
1250 DW_FORM_GNU_str_index.
1251 (hash_dwo_file, eq_dwo_file): New functions.
1252 (allocate_dwo_file_hash_table): New function.
1253 (hash_dwo_unit, eq_dwo_unit): New functions.
1254 (allocate_dwo_unit_table): New function.
1255 (dwarf2_locate_dwo_sections): New function.
1256 (struct create_dwo_info_table_data): New type.
1257 (create_debug_info_hash_table_reader): New function.
1258 (create_debug_info_hash_table): New function.
1259 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
1260 (lookup_dwo_file): New function.
1261 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
1262 (free_dwo_file, free_dwo_file_cleanup): New functions.
1263 (free_dwo_file_from_slot, free_dwo_files): New functions.
1264 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
1265 (dwarf2_record_block_ranges): Ditto.
1266 (read_partial_die): Ditto.
1267 (process_enumeration_scope): Update to use type_offset_in_section.
1268 (read_full_die_1): New function.
1269 (read_full_die): Rewrite.
1270 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
1271 DW_FORM_GNU_str_index.
1272 (read_addr_index_1, read_addr_index): New functions.
1273 (read_addr_index_from_leb128): New function.
1274 (struct dwarf2_read_addr_index_data): New type.
1275 (dwarf2_read_addr_index_reader): New function.
1276 (dwarf2_read_addr_index): New function.
1277 (read_str_index): New function.
1278 (leb128_size): New function.
1279 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
1280 If processing a type unit from a DWO file, get the line section
1281 from the DWO file.
1282 (var_decode_location): Watch for DW_OP_GNU_addr_index.
1283 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
1284 DW_FORM_GNU_str_index.
1285 (lookup_die_type): Check whether section offset of type's die is
1286 known before looking it up. Remove assert. Condition can
1287 legimately happen for inter-cu type references.
1288 (dwarf_attr_name): Handle Fission attributes.
1289 (dwarf_form_name): Handle Fission forms.
1290 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
1291 DW_FORM_GNU_str_index.
1292 (follow_die_sig): Update to use type_offset_in_section.
1293 (decode_locdesc): New case DW_OP_GNU_addr_index.
1294 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
1295 DW_FORM_GNU_str_index.
1296 (cu_debug_loc_section): New function.
1297 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
1298 (dwarf2_per_objfile_free): Unmap .debug_addr section.
1299 Free DWO files if present.
1300 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
1301
dee91e82
DE
1302 Refactor DIE reading.
1303 * dwarf2read.c (dwarf2_per_objfile): Replace members
1304 debug_info_type_hash and debug_types_type_hash with die_type_hash.
1305 (die_reader_specs): New member "die_section". Temporarily make
1306 member "buffer" non-const, pending constifying all info_ptr uses.
1307 (die_reader_func_ftype): New typedef.
1308 (dw2_get_file_names_reader): New function.
1309 (dw2_get_file_names): Rewrite.
1310 (read_and_check_type_unit_head): Rename arg type_offset to
1311 type_offset_in_tu.
1312 (create_all_type_units): Improve debugging message.
1313 Improve dummy type unit check.
1314 (init_cu_die_reader): New arg "section". All callers updated.
1315 (init_and_read_dies_worker): New function.
1316 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
1317 (init_cutu_and_read_dies_no_follow): New function.
1318 (init_cutu_and_read_dies_simple): New function.
1319 (process_psymtab_comp_unit_reader): New function.
1320 (process_psymtab_comp_unit): Delete args section,
1321 is_debug_types_section. Rewrite. All callers updated.
1322 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
1323 All callers updated. Rewrite.
1324 (load_partial_comp_unit_reader): New function.
1325 (load_partial_comp_unit): Rewrite.
1326 (skip_children): New arg reader. Delete args buffer, cu.
1327 All callers updated.
1328 (skip_one_die): New arg reader. Delete args buffer, cu.
1329 All callers updated.
1330 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
1331 All callers updated.
1332 (load_full_comp_unit_reader): New function.
1333 (load_full_comp_unit): Rewrite.
1334 (read_comp_unit): Delete.
1335 (read_die_and_children_1): Delete, contents moved ...
1336 (read_die_and_children): ... here.
1337 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
1338 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
1339 All callers updated.
1340 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
1341 All callers updated.
1342 (find_partial_die): Rewrite load_all_dies support.
1343 (read_attribute_value): New arg reader. Delete args abfd, cu.
1344 All callers updated.
1345 (read_attribute): New arg reader. Delete args abfd, cu.
1346 All callers updated.
1347 (load_full_type_unit): Add assert.
1348 (read_signatured_type_reader): New function.
1349 (read_signatured_type): Rewrite.
1350 (free_stack_comp_unit): Remove call to age_cached_comp_units.
1351 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
1352 All callers updated. Set per_cu->cu = NULL after freeing it.
1353 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
1354 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
1355 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
1356 (set_die_type): Update.
1357 (get_die_type_at_offset): Update.
1358 (read_file_scope): Call prepare_one_comp_unit.
1359 (read_type_unit_scope): Ditto.
1360 (prepare_one_comp_unit): Set producer if present.
1361
72d59e0d
SDJ
13622012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
1363
1364 * probe.c (compile_rx_or_error): Silence ARI warning about missing
1365 gettext function on `error'.
1366
0fefef59
DE
13672012-04-27 Doug Evans <dje@google.com>
1368
1369 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
1370 is empty.
1371
28106bc2
SDJ
13722012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
1373 Tom Tromey <tromey@redhat.com>
1374
1375 * breakpoint.c (struct breakpoint_objfile_data)
1376 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
1377 <exception_probes>: New fields.
1378 (free_breakpoint_probes): New function.
1379 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
1380 `_Unwind_DebugHook'.
1381 (create_exception_master_breakpoint): Likewise.
1382 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
1383 * infrun.c: Including necessary header files for handling SystemTap
1384 probes.
1385 (handle_inferior_event): Handling longjmp breakpoint and exceptions
1386 via SystemTap probes.
1387 (check_exception_resume): Remove `func' argument. Handle exception
1388 unwinding breakpoint set via a SystemTap probe.
1389 (insert_exception_resume_from_probe): New function.
1390
55aa24fb
SDJ
13912012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
1392 Tom Tromey <tromey@redhat.com>
1393 Jan Kratochvil <jan.kratochvil@redhat.com>
1394
1395 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
1396 (COMMON_OBS): Likewise.
1397 (HFILES_NO_SRCDIR): Add `probe'.
1398 * NEWS: Mention support for static and SystemTap probes.
1399 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
1400 SystemTap probes' arguments parser.
1401 * arm-linux-tdep.c: Including headers needed to perform the parsing
1402 of SystemTap probes' arguments.
1403 (arm_stap_is_single_operand): New function.
1404 (arm_stap_parse_special_token): Likewise.
1405 (arm_linux_init_abi): Initializing proper fields used by SystemTap
1406 probes' arguments parser.
1407 * ax-gdb.c (require_rvalue): Removing static declaration.
1408 (gen_expr): Likewise.
1409 * ax-gdb.h (gen_expr): Declaring function.
1410 (require_rvalue): Likewise.
1411 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
1412 (bkpt_probe_breakpoint_ops): New variable.
1413 (momentary_breakpoint_from_master): Set the `probe' value.
1414 (add_location_to_breakpoint): Likewise.
1415 (break_command_1): Using proper breakpoint_ops according to the
1416 argument passed by the user in the command line.
1417 (bkpt_probe_insert_location): New function.
1418 (bkpt_probe_remove_location): Likewise.
1419 (bkpt_probe_create_sals_from_address): Likewise.
1420 (bkpt_probe_decode_linespec): Likewise.
1421 (tracepoint_probe_create_sals_from_address): Likewise.
1422 (tracepoint_probe_decode_linespec): Likewise.
1423 (tracepoint_probe_breakpoint_ops): New variable.
1424 (trace_command): Using proper breakpoint_ops according to the
1425 argument passed by the user in the command line.
1426 (initialize_breakpoint_ops): Initializing breakpoint_ops for
1427 static probes on breakpoints and tracepoints.
1428 * breakpoint.h (struct bp_location) <probe>: New field.
1429 * cli-utils.c (skip_spaces_const): New function.
1430 (extract_arg): Likewise.
1431 * cli-utils.h (skip_spaces_const): Likewise.
1432 (extract_arg): Likewise.
1433 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
1434 * configure.ac: Append `stap-probe.o' to be generated when ELF
1435 support is present.
1436 * configure: Regenerate.
1437 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
1438 * elfread.c: Include `probe.h' and `arch-utils.h'.
1439 (probe_key): New variable.
1440 (elf_get_probes): New function.
1441 (elf_get_probe_argument_count): Likewise.
1442 (elf_evaluate_probe_argument): Likewise.
1443 (elf_compile_to_ax): Likewise.
1444 (elf_symfile_relocate_probe): Likewise.
1445 (stap_probe_key_free): Likewise.
1446 (elf_probe_fns): New variable.
1447 (elf_sym_fns): Add `sym_probe_fns' value.
1448 (elf_sym_fns_lazy_psyms): Likewise.
1449 (elf_sym_fns_gdb_index): Likewise.
1450 (_initialize_elfread): Initialize objfile cache for static
1451 probes.
1452 * gdb_vecs.h (struct probe): New forward declaration.
1453 (probe_p): New VEC declaration.
1454 * gdbarch.c: Regenerate.
1455 * gdbarch.h: Regenerate.
1456 * gdbarch.sh (stap_integer_prefix): New variable.
1457 (stap_integer_suffix): Likewise.
1458 (stap_register_prefix): Likewise.
1459 (stap_register_suffix): Likewise.
1460 (stap_register_indirection_prefix): Likewise.
1461 (stap_register_indirection_suffix): Likewise.
1462 (stap_gdb_register_prefix): Likewise.
1463 (stap_gdb_register_suffix): Likewise.
1464 (stap_is_single_operand): New function.
1465 (stap_parse_special_token): Likewise.
1466 (struct stap_parse_info): Forward declaration.
1467 * i386-tdep.c: Including headers needed to perform the parsing
1468 of SystemTap probes' arguments.
1469 (i386_stap_is_single_operand): New function.
1470 (i386_stap_parse_special_token): Likewise.
1471 (i386_elf_init_abi): Initializing proper fields used by SystemTap
1472 probes' arguments parser.
1473 * i386-tdep.h (i386_stap_is_single_operand): New function.
1474 (i386_stap_parse_special_token): Likewise.
1475 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
1476 * mipsread.c (ecoff_sym_fns): Likewise.
1477 * objfiles.c (objfile_relocate1): Support relocation for static
1478 probes.
1479 * parse.c (prefixify_expression): Remove static declaration.
1480 (initialize_expout): Likewise.
1481 (reallocate_expout): Likewise.
1482 * parser-defs.h (initialize_expout): Declare function.
1483 (reallocate_expout): Likewise.
1484 (prefixify_expression): Likewise.
1485 * ppc-linux-tdep.c: Including headers needed to perform the parsing
1486 of SystemTap probes' arguments.
1487 (ppc_stap_is_single_operand): New function.
1488 (ppc_stap_parse_special_token): Likewise.
1489 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
1490 probes' arguments parser.
1491 * probe.c: New file, for generic statically defined probe support.
1492 * probe.h: Likewise.
1493 * s390-tdep.c: Including headers needed to perform the parsing of
1494 SystemTap probes' arguments.
1495 (s390_stap_is_single_operand): New function.
1496 (s390_gdbarch_init): Initializing proper fields used by SystemTap
1497 probes' arguments parser.
1498 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
1499 * stap-probe.c: New file, for SystemTap probe support.
1500 * stap-probe.h: Likewise.
1501 * symfile.h: Include `gdb_vecs.h'.
1502 (struct sym_probe_fns): New struct.
1503 (struct sym_fns) <sym_probe_fns>: New field.
1504 * symtab.c (init_sal): Initialize `probe' field.
1505 * symtab.h (struct probe): Forward declaration.
1506 (struct symtab_and_line) <probe>: New field.
1507 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
1508 locations.
1509 (stop_tracing): Likewise.
1510 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
1511
22d2b532
SDJ
15122012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
1513 Tom Tromey <tromey@redhat.com>
1514
1515 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
1516 and to compile agent expressions.
1517 * infrun.c (siginfo_make_value): New argument `ignore'.
1518 (siginfo_funcs): New struct.
1519 (_initialize_infrun): New argument when calling
1520 `create_internalvar_type_lazy'.
1521 * thread.c (thread_id_make_value): New argument `ignore'.
1522 (thread_funcs): New struct.
1523 (_initialize_thread): New argument when calling
1524 `create_internalvar_type_lazy'.
1525 * tracepoint.c (sdata_make_value): New argument `ignore'.
1526 (sdata_funcs): New struct.
1527 (_initialize_tracepoint): New argument when calling
1528 `create_internalvar_type_lazy'.
1529 * value.c (make_value): New struct.
1530 (create_internalvar_type_lazy): New argument `data'.
1531 (compile_internalvar_to_ax): New function.
1532 (value_of_internalvar): Properly handling `make_value' case.
1533 (clear_internalvar): Likewise.
1534 (show_convenience): Adding `TRY_CATCH' block.
1535 * value.h (internalvar_make_value): Delete, replace by...
1536 (struct internalvar_funcs): ... this.
1537 (create_internalvar_type_lazy) <fun>: Delete argument.
1538 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
1539 (compile_internalvar_to_ax): New function.
1540 * windows-tdep.c (tlb_make_value): New argument `ignore'.
1541 (tlb_funcs): New struct.
1542 (_initialize_windows_tdep): New argument when calling
1543 `create_internalvar_type_lazy'.
1544
91da1414
MW
15452012-04-27 Mark Wielaard <mjw@redhat.com>
1546
1547 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
1548 see whether it is an address or a constant offset from DW_AT_low_pc.
1549 (dwarf2_record_block_ranges): Likewise.
1550 (read_partial_die): Likewise.
1551
4ab9d8ec
MW
15522012-04-26 Mark Wielaard <mjw@redhat.com>
1553
1554 * MAINTAINERS (Write After Approval): Add myself to the list.
1555
a0911fd0
MR
15562012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
1557
1558 * proc-utils.h (proc_prettyprint_signalset): New prototype.
1559 (proc_prettyprint_signal): Likewise.
1560 (proc_prettyprint_faultset): Likewise.
1561 (proc_prettyprint_fault): Likewise.
1562 (proc_prettyprint_actionset): Likewise.
1563 (proc_prettyprint_flags): Move to new proc-flags.c section.
1564 (proc_prettyfprint_flags): New prototype.
1565 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
1566 (proc_syscall, proc_cursig): Likewise.
1567 (proc_set_kill_on_last_close): Likewise.
1568 (proc_unset_kill_on_last_close): Likewise.
1569 (proc_set_watchpoint): Make static.
1570 (proc_delete_dead_threads): Likewise.
1571 (procfs_set_watchpoint): Likewise.
1572 (_initialize_procfs): Add prototype.
1573 * proc-events.c: Include proc-utils.h.
1574 (init_syscall_table): Make static.
1575 * proc-api.c (_initialize_proc_api): Add prototype.
1576 * proc-flags.c: Include proc-utils.h.
1577
9009e1ae
MR
15782012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
1579
1580 * configure.ac: Add AC_ARG_PROGRAM.
1581 * configure: Regenerate.
1582
4fae6e18
JK
15832012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1584
1585 Fix DW_AT_lower_bound defaults for DWARF-4+.
1586 * dwarf2read.c (read_subrange_type): Remove initialization of low and
1587 high. New variable low_default_is_valid. Implement DWARF-4+
1588 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
1589 no default by the DWARF standard.
1590
14132e89
MR
15912012-04-26 Maciej W. Rozycki <macro@mips.com>
1592 Maciej W. Rozycki <macro@codesourcery.com>
1593
1594 * infrun.c (handle_inferior_event): Move the check for return
1595 trampolines ahead of the check for function trampolines.
1596 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
1597 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
1598 (mips_str_mips16_ret_stub): Likewise.
1599 (mips_str_call_fp_stub): Likewise.
1600 (mips_str_call_stub): Likewise.
1601 (mips_str_fn_stub): Likewise.
1602 (mips_str_pic): Likewise.
1603 (mips_in_frame_stub): New function.
1604 (mips_unwind_pc): Return the return address rather than the PC
1605 if the PC of an intermediate frame is inside a call thunk.
1606 (mips_is_stub_suffix): New function.
1607 (mips_is_stub_mode): Likewise.
1608 (mips_get_mips16_fn_stub_pc): Likewise.
1609 (mips_skip_mips16_trampoline_code): Update to handle all the
1610 currently generated stub types. Don't recurse into __fn_stub
1611 thunks. Remove heuristics to handle stubs beyond etext/_etext.
1612 Use cooked register accesses.
1613 (mips_in_return_stub): Reintroduce function.
1614 (mips_skip_trampoline_code): Traverse trampolines recursively.
1615 (mips_gdbarch_init): Handle MIPS16 return trampolines.
1616
518f0db5 16172012-04-26 Joel Brobecker <brobecker@adacore.com>
1618
1619 GDB 7.4.1 released.
1620
3184d3f9
JL
16212012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
1622
1623 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
1624 * features/arm-with-m-vfp-d16.xml: New file. Describes
1625 Cortex-M with VFPv4-sp-d16 FPU register layout.
1626 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
1627 * features/arm-with-m-vfp-d16.c: New. Generated from above.
1628 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
1629 (arm-register_g_packet_guesses): Add vfp-d16 guess.
1630 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
1631
b6201d44
DE
16322012-04-25 Doug Evans <dje@google.com>
1633
1634 * cli/cli-decode.c (print_doc_line): Use stream instead of
1635 current_uiout.
1636
4e2f8df6
SDJ
16372012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1638
1639 * features/arm-with-iwmmxt.c: Regenerate.
1640 * features/arm-with-m-fpa-layout.c: Likewise.
1641 * features/arm-with-m.c: Likewise.
1642 * features/arm-with-neon.c: Likewise.
1643 * features/arm-with-vfpv2.c: Likewise.
1644 * features/arm-with-vfpv3.c: Likewise.
1645 * features/mips-dsp-linux.c: Likewise.
1646 * features/mips-linux.c: Likewise.
1647 * features/mips64-dsp-linux.c: Likewise.
1648 * features/mips64-linux.c: Likewise.
1649 * features/s390-linux32.c: Likewise.
1650 * features/s390-linux32v1.c: Likewise.
1651 * features/s390-linux32v2.c: Likewise.
1652 * features/s390-linux64.c: Likewise.
1653 * features/s390-linux64v1.c: Likewise.
1654 * features/s390-linux64v2.c: Likewise.
1655 * features/s390x-linux64.c: Likewise.
1656 * features/s390x-linux64v1.c: Likewise.
1657 * features/s390x-linux64v2.c: Likewise.
1658 * features/tic6x-c62x-linux.c: Likewise.
1659 * features/tic6x-c62x.c: Likewise.
1660 * features/tic6x-c64x-linux.c: Likewise.
1661 * features/tic6x-c64x.c: Likewise.
1662 * features/tic6x-c64xp-linux.c: Likewise.
1663 * features/tic6x-c64xp.c: Likewise.
1664 * target-descriptions.c: Only generate `field_type' and `type'
1665 variables when needed.
1666
2def3e66
JB
16672012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
1668
1669 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
1670
a766d390
DE
16712012-04-25 Doug Evans <dje@google.com>
1672
1673 Initial pass at Go language support.
1674 * NEWS: Mention Go.
1675 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
1676 go-valprint.c.
1677 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
1678 (YYFILES): Add go-exp.c.
1679 (YYOBJ): Add go-exp.o.
1680 (local-maintainer-clean): Delete go-exp.c.
1681 * defs.h (enum language): Add language_go.
1682 * dwarf2read.c: #include "go-lang.h".
1683 (fixup_go_packaging): New function.
1684 (process_full_comp_unit): Call it when processing Go CUs.
1685 (dwarf2_physname): Add Go support.
1686 (read_file_scope): Handle missing language spec for GNU Go.
1687 (set_cu_language): Handle DW_LANG_Go.
1688 * go-exp.y: New file.
1689 * go-lang.h: New file.
1690 * go-lang.c: New file.
1691 * go-typeprint.c: New file.
1692 * go-valprint.c: New file.
1693 * symtab.c: #include "go-lang.h".
1694 (symbol_set_language): Handle language_go.
1695 (symbol_find_demangled_name, symbol_set_names): Ditto.
1696 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
1697
4e2af517
JM
16982012-04-24 Jim Meyering <meyering@redhat.com>
1699
1700 avoid a few strncpy-induced buffer overruns
1701 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
1702 fname and psargs before trying to concatenate.
1703 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
1704 "name" before applying strchr.
1705
b77b7f52
SCR
17062012-04-25 Siva Chandra Reddy <sivachandra@google.com>
1707
1708 * CONTRIBUTE: Use unified diff instead of context diff when
1709 generating patches.
1710
6321c22a
MR
17112012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
1712
1713 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
1714 code. Handle JR.HB correctly.
1715
742c84f6
MR
17162012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
1717
1718 * mips-tdep.c
1719 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
1720 with the other MIPS16 helpers.
1721
7fc7e0c3
SDJ
17222012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1723
1724 * observer.sh: Conditionally declare `args', thus cleaning up
1725 unused instances of this variable.
1726
20388dd6
YQ
17272012-04-24 Yao Qi <yao@codesourcery.com>
1728
1729 Revert this patch to allow breakpoint always-inserted
1730 in record target.
1731 2011-12-05 Pedro Alves <pedro@codesourcery.com>
1732 * breakpoint.c: Include record.h.
1733 (breakpoints_always_inserted_mode): Return false when the record
1734 target is in use.
1735
1736 * breakpoint.c (iterate_over_bp_locations): New.
1737 * breakpoint.h: Declare.
1738 New typedef walk_bp_location_callback.
1739 * record.c (record_open): Call record_init_record_breakpoints.
1740 (record_sync_record_breakpoints): New.
1741 (record_init_record_breakpoints): New.
1742 * NEWS: Mention supporting breakpoint always-inserted mode in
1743 record target.
1744
4734f50e
MK
17452012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
1746
1747 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
1748 any thread.
1749
c326b90e
YQ
17502012-04-24 Yao Qi <yao@codesourcery.com>
1751
1752 * breakpoint.c (ep_is_catchpoint): Renamed to ...
1753 (is_catchpoint): ... it.
1754 (print_one_breakpoint_location): Caller update.
1755 * breakpoint.h: Update declaration.
1756
d8fb5a1e
DM
17572012-04-23 David S. Miller <davem@davemloft.net>
1758
1759 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
1760
34431a2a
TT
17612012-04-23 Tom Tromey <tromey@redhat.com>
1762
1763 * buildsym.c (add_free_pendings): Remove.
1764 * buildsym.h (add_free_pendings): Remove.
1765
4568ecf9
DE
17662012-04-23 Doug Evans <dje@google.com>
1767
1768 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
1769 attr.u.unsnd instead of attr.u.addr.
1770 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
1771 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
1772 DW_FORM_ref_udata.
1773 (dump_die_shallow): Update cases DW_FORM_ref_addr,
1774 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
1775 DW_FORM_ref_udata.
1776 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
1777
dca9aa3a
MR
17782012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
1779
1780 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
1781 (mips_o32_return_value): Likewise.
1782 (mips_o64_return_value): Likewise.
1783
c8ea1972
PH
17842012-04-21 Paul Hilfinger <hilfinger@adacore.com>
1785
1786 * ada-lang.c (ada_evaluate_subexp): Add cases for
1787 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
1788 their treatment in eval.c.
1789
8d1b3521
DM
17902012-04-21 David S. Miller <davem@davemloft.net>
1791
1792 * sparc-tdep.c (X_DISP10): Define.
1793 (sparc_analyze_control_transfer): Handle compare-and-branch.
1794
03145bf4
JL
17952012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
1796
1797 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
1798 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
1799
004159a2
MR
18002012-04-20 Nigel Stephens <nigel@mips.com>
1801 Maciej W. Rozycki <macro@codesourcery.com>
1802
1803 * mips-tdep.c (mips_float_register_p): New function.
1804 (mips_convert_register_float_case_p): Use mips_float_register_p.
1805 (mips_register_type): Likewise.
1806 (mips_print_register): Likewise.
1807 (print_gp_register_row): Likewise.
1808 (mips_print_registers_info): Likewise.
1809
7f0e6aae
MR
18102012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
1811
1812 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
1813 of mips16 symbols.
1814
bc17beea
AP
18152012-04-20 Andrew Pinski <apinski@cavium.com>
1816
1817 * MAINTAINERS (Write After Approval): Add myself to the list.
1818
1730a5a5
SDJ
18192012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
1820
1821 * MAINTAINERS: Update my e-mail address.
1822
38ea300a
PA
18232012-04-20 Pedro Alves <palves@redhat.com>
1824
1825 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
1826 $srcdir.
1827 * configure: Regenerate.
1828
111dfaae
SDJ
18292012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
1830
1831 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
1832 declaration.
1833 * gdb_vecs.h: Declare `const_char_ptr' VEC.
1834
4fb2c64a
JK
18352012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1836
1837 Fix compilation compatibility with python-2.4
1838 * python/py-type.c (convert_field): Cast ADDRSTRING for
1839 PyObject_SetAttrString as non-const. New comment.
1840
6328eb38
TT
18412012-04-19 Tom Tromey <tromey@redhat.com>
1842
1843 * top.c (quit_target): Use all_cleanups.
1844 * main.c (captured_command_loop): Use all_cleanups.
1845 * exceptions.c (throw_exception): Use all_cleanups.
1846
c971b7fa
PA
18472012-04-19 Pedro Alves <palves@redhat.com>
1848
1849 * Makefile.in (GNULIB_BUILDDIR): New.
1850 (LIBGNU, INCGNU, GNULIB_H): Adjust.
1851 (SUBDIRS): Add $(GNULIB_BUILDDIR).
1852 (CLEANDIRS). Remove gnulib/import.
1853 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
1854 (all-lib): Ditto.
1855 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
1856 (gnulib/import/Makefile): Replace gnulib/import with
1857 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
1858 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
1859 (aclocal_m4_deps): Remove the gnulib dependencies. Add
1860 acx_configure_dir.m4.
1861 * acinclude.m4: Include acx_configure_dir.m4.
1862 * acx_configure_dir.m4: New file.
1863 * aclocal.m4: Regenerate.
a09130f9
PA
1864 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
1865 calls. Configure gnulib using ACX_CONFIGURE_DIR.
1866 (GNULIB): New variable.
1867 (GNULIB_STDINT_H): Adjust.
1868 (AC_OUTPUT): Don't output gnulib/Makefile.
1869 * gdb/defs.h: Include build-gnulib/config.h.
1870 * aclocal.m4: Regenerate.
1871 * config.in: Regenerate.
1872 * configure: Regenerate.
1873
1874 * gnulib/Makefile.in: New file.
1875 * gnulib/configure.ac: New file.
1876 * gnulib/aclocal.m4: New file.
1877 * gnulib/config.in: New file.
1878 * gnulib/configure: New file.
c971b7fa
PA
1879 * gnulib/: Re-run gnulib-tool to adjust.
1880
b10faa68
DE
18812012-04-19 Doug Evans <dje@google.com>
1882
1883 * cleanups.h (struct cleanup): Move to cleanups.c.
1884 (make_cleanup_dtor_ftype): New typedef.
1885 (make_cleanup_dtor): Use it.
1886 (ALL_CLEANUPS): Replace with ...
1887 (all_cleanups): ... this. Declare. All uses updated.
1888 * cleanups.c: #include "gdb_assert.h".
1889 (sentinel_cleanup): New static global.
1890 (SENTINEL_CLEANUP): Define.
1891 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
1892 (make_my_cleanup2): Assert result is non-NULL.
1893 (all_cleanups): New function.
1894 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
1895 of NULL.
1896
d8c267cc
PA
18972012-04-19 Pedro Alves <palves@redhat.com>
1898
1899 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
1900 Adjust paths to gnulib imported files.
1901
809277f8
PA
19022012-04-19 Pedro Alves <palves@redhat.com>
1903
1904 * gnulib/: Move whole directory ...
1905 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
1906 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
1907 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
1908 (aclocal_m4_deps): Adjust.
1909 * aclocal.m4: Regenerate.
1910 * configure: Regenerate.
1911 * configure.ac: Adjust AC_OUTPUT output.
1912
aad9eab9
YQ
19132012-04-19 Yao Qi <yao@codesourcery.com>
1914
1915 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
1916 (vec.o): New rule.
1917 * vec.c: Move it ...
1918 * common/vec.c: ... here.
1919 * vec.h: Move it ...
1920 * common/vec.h: ... here.
1921
48fe4669
YQ
19222012-04-19 Yao Qi <yao@codesourcery.com>
1923
1924 * gdb-code-style.el: New.
1925
770d76d7
PA
19262012-04-18 Pedro Alves <palves@redhat.com>
1927
1928 Update gnulib from latest git.
1929 (639ea5ae15e39fe48d43e04864b2997301e4b969)
1930
1931 * gnulib/Makefile.am: Update.
1932 * gnulib/dummy.c: Update.
1933 * gnulib/extra/arg-nonnull.h: Update.
1934 * gnulib/extra/c++defs.h: Update.
1935 * gnulib/extra/update-copyright: Update.
1936 * gnulib/extra/warn-on-use.h: Update.
1937 * gnulib/inttypes.in.h: Update.
1938 * gnulib/m4/00gnulib.m4: Update.
1939 * gnulib/m4/extensions.m4: Update.
1940 * gnulib/m4/gnulib-cache.m4: Update.
1941 * gnulib/m4/gnulib-common.m4: Update.
1942 * gnulib/m4/gnulib-comp.m4: Update.
1943 * gnulib/m4/gnulib-tool.m4: Update.
1944 * gnulib/m4/include_next.m4: Update.
1945 * gnulib/m4/inttypes-pri.m4: Update.
1946 * gnulib/m4/inttypes.m4: Update.
1947 * gnulib/m4/longlong.m4: Update.
1948 * gnulib/m4/memchr.m4: Update.
1949 * gnulib/m4/memmem.m4: Update.
1950 * gnulib/m4/mmap-anon.m4: Update.
1951 * gnulib/m4/multiarch.m4: Update.
1952 * gnulib/m4/onceonly.m4: Update.
1953 * gnulib/m4/stddef_h.m4: Update.
1954 * gnulib/m4/stdint.m4: Update.
1955 * gnulib/m4/string_h.m4: Update.
1956 * gnulib/m4/warn-on-use.m4: Update.
1957 * gnulib/m4/wchar_h.m4: Update.
1958 * gnulib/m4/wchar_t.m4: Update.
1959 * gnulib/m4/wint_t.m4: Update.
1960 * gnulib/memchr.c: Update.
1961 * gnulib/memmem.c: Update.
1962 * gnulib/stddef.in.h: Update.
1963 * gnulib/stdint.in.h: Update.
1964 * gnulib/str-two-way.h: Update.
1965 * gnulib/string.in.h: Update.
1966 * gnulib/wchar.in.h: Update.
1967
1968 * gnulib/extra/arg-nonnull.h: Delete.
1969 * gnulib/extra/c++defs.h: Delete.
1970 * gnulib/extra/warn-on-use.h: Delete.
1971 * gnulib/m4/wchar_h.m4: Delete.
1972 * gnulib/m4/wint_t.m4: Delete.
1973 * gnulib/wchar.in.h: Delete.
1974
1975 * gnulib/extra/snippets/arg-nonnull.h: New.
1976 * gnulib/extra/snippets/c++defs.h: New.
1977 * gnulib/extra/snippets/warn-on-use.h: New.
1978
1979 * aclocal.m4: Regenerate.
1980 * config.in: Regenerate.
1981 * configure: Regenerate.
1982 * gnulib/Makefile.in: Regenerate.
1983
174e088e
PA
19842012-04-18 Pedro Alves <palves@redhat.com>
1985
1986 Reimport the update-copyright module from gnulib
1987 (250b80067c1e1d8faa0c42fb572f721975b929c5).
1988
1989 * configure: Regenerate.
1990 * gnulib/Makefile.am: Update.
1991 * gnulib/Makefile.in: Regenerate.
1992 * gnulib/extra/update-copyright: Update.
1993 * gnulib/m4/gnulib-cache.m4: Update.
1994 * gnulib/m4/gnulib-comp.m4: Update.
1995
7f533142
JB
19962012-04-18 Tristan Gingold <gingold@adacore.com>
1997
1998 * configure.ac (aix): Put -lpthread into libs.
1999 * configure: Regenerate.
2000
001822aa
TT
20012012-04-18 Tom Tromey <tromey@redhat.com>
2002
2003 * linespec.c (convert_linespec_to_sals): Don't use
2004 SYMBOL_OBJ_SECTION.
2005 (compare_msymbols): Arguments are minsym_and_objfile, not
2006 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
2007
db026a31
PA
20082012-04-18 Pedro Alves <palves@redhat.com>
2009
2010 Revert gnulib/ part of:
2011 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2012 Copyright year update in most files (performed by copyright.sh).
2013
12df843f
JK
20142012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2015
2016 Fix 64-bit constants on 32-bit hosts.
2017 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
2018 from unsigned long to ULONGEST.
2019 (read_signed_leb128): Change declaration return type from long to
2020 LONGEST.
2021 (dwarf2_const_value_attr): Change declaration parameter value from long
2022 to LONGEST.
2023 (dwarf2_compute_name): Change variable value from long to LONGEST.
2024 (read_unsigned_leb128): Change return type, variable result and some
2025 casts from unsigned long to ULONGEST.
2026 (read_signed_leb128): Change return type, variable result and some
2027 casts from long to LONGEST.
2028 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
2029 value from long to LONGEST.
2030 (dwarf2_const_value): Change variable value from long to LONGEST.
2031 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
2032 plongest and hex_string.
2033 * symtab.h (struct general_symbol_info): Change ivalue from long to
2034 LONGEST, remove the comment.
2035 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
2036 Change SYMBOL_VALUE format strings to use plongest and hex_string.
2037
14e75d8e
JK
20382012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
2039
2040 PR symtab/7259:
2041 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
2042 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
2043 (ada_discrete_type_low_bound): Fix function comment. Use
2044 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
2045 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
2046 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2047 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
2048 Use TYPE_FIELD_ENUMVAL.
2049 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
2050 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2051 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
2052 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
2053 TYPE_CODE_ENUM.
2054 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
2055 * dwarf2read.c (process_enumeration_scope): Likewise.
2056 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
2057 field.bitpos.
2058 (class StructMainTypePrettyPrinter): Support also
2059 FIELD_LOC_KIND_ENUMVAL.
2060 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
2061 TYPE_CODE_ENUM.
2062 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2063 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
2064 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
2065 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
2066 field enumval.
2067 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
2068 accommodate enumval.
2069 (struct call_site): Adjust loc_kind to accommodate enumval.
2070 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
2071 (TYPE_FIELD_ENUMVAL): New macros.
2072 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
2073 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
2074 TYPE_CODE_ENUM.
2075 * p-typeprint.c (pascal_type_print_base): Likewise.
2076 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
2077 enumval.
2078 * python/lib/gdb/types.py (make_enum_dict): Likewise.
2079 * python/py-type.c (convert_field): New variable addrstring. Use
2080 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2081 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
2082 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
2083 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
2084 TYPE_CODE_ENUM.
2085 * valprint.c (generic_val_print): Likewise.
2086
380bca97
DE
20872012-04-17 Doug Evans <dje@google.com>
2088
dcc07052
DE
2089 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
2090
380bca97
DE
2091 * dwarf2read.c: Whitespace fixes.
2092 (lookup_signatured_type): Tweak comment.
2093 (get_die_type_at_offset): Fix comment.
2094
ec92004f
JB
20952012-04-17 Joel Brobecker <brobecker@adacore.com>
2096
2097 * xcoffread.c (xcoff_secnum_to_sections): New function.
2098 (secnum_to_section, secnum_to_bfd_section): Reimplement
2099 using xcoff_secnum_to_sections. Rename "secnum" parameter
2100 into "n_scnum".
2101 (RECORD_MINIMAL_SYMBOL): Delete.
2102 (record_minimal_symbol): New function.
2103 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
2104 by call to record_minimal_symbol and set misc_func_recorded
2105 to 1. Set last_csect_sec to the XCOFF section index instead
2106 of GDB's section_offset index. Update calls to
2107 prim_record_minimal_symbol_and_info to pass the BFD section
2108 as well.
2109
40301fb7
JB
21102012-04-17 Joel Brobecker <brobecker@adacore.com>
2111
2112 * xcoffread.c (read_xcoff_symtab): Delete variables
2113 last_csect_val and last_csect_sec and associated code.
2114
e0088cfd
DE
21152012-04-17 Doug Evans <dje@google.com>
2116
58d5e2c3
DE
2117 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
2118 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2119 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
2120 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
2121
c27f5738
DE
2122 * cleanups.h: New file.
2123 * cleanups.c: New file.
2124 * Makefile.in (SFILES): Add cleanups.c.
2125 (HFILES_NO_SRCDIR): Add cleanups.h.
2126 (COMMON_OBS): Add cleanups.o.
2127 * defs.h (struct cleanup): Moved to cleanups.h.
2128 (do_cleanups,do_final_cleanups): Ditto.
2129 (discard_cleanups,discard_final_cleanups): Ditto
2130 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
2131 (save_cleanups,save_final_cleanups): Ditto.
2132 (restore_cleanups,restore_final_cleanups): Ditto.
2133 (null_cleanup): Ditto.
2134 (make_my_cleanup,make_my_cleanup2): Ditto.
2135 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2136 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
2137 (do_cleanups,do_final_cleanups): Ditto.
2138 (discard_cleanups,discard_final_cleanups): Ditto
2139 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
2140 (save_cleanups,save_final_cleanups): Ditto.
2141 (restore_cleanups,restore_final_cleanups): Ditto.
2142 (null_cleanup): Ditto.
2143 (make_my_cleanup,make_my_cleanup2): Ditto.
2144 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2145
e0088cfd
DE
2146 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
2147 make_my_cleanup.
2148 (make_cleanup_dyn_string_delete): Ditto.
2149 (make_cleanup_ui_file_delete): Ditto.
2150 (make_cleanup_ui_out_redirect_pop): Ditto.
2151 (make_cleanup_free_section_addr_info): Ditto.
2152 (make_cleanup_restore_integer): Ditto.
2153 (make_cleanup_unpush_target): Ditto.
2154 (make_cleanup_value_free_to_mark): Ditto.
2155 (make_cleanup_value_free): Ditto.
2156 (make_cleanup_free_so): Ditto.
2157
4dc84fd1
JK
21582012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2159
2160 New option "set debug auto-load".
2161 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
2162 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
2163 (auto_load_safe_path_vec_update)
2164 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
2165 if DEBUG_AUTO_LOAD.
2166 (file_is_auto_load_safe): New parameters debug_fmt and ....
2167 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
2168 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
2169 caller by explanatory string.
2170 (_initialize_auto_load): Register "set debug auto-load".
2171 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
2172 and ....
2173 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
2174 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
2175 by explanatory string.
2176 * main.c (captured_main): Likewise.
2177 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2178 (source_section_scripts): Likewise.
2179
bccbefd2
JK
21802012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2181
2182 New option "set auto-load safe-path".
2183 * NEWS: New commands "set auto-load safe-path"
2184 and "show auto-load safe-path".
2185 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
2186 (auto_load_safe_path, auto_load_safe_path_vec)
2187 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
2188 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
2189 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
2190 (source_gdb_script_for_objfile): New variable is_safe. Call
2191 file_is_auto_load_safe. Return if it is not.
2192 (struct loaded_script): New field loaded.
2193 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
2194 (print_script): Use LOADED indicator instead of FULL_PATH. Change
2195 output "Missing" to "No".
2196 (_initialize_auto_load): New variable cmd. Initialize
2197 auto_load_safe_path. Register "set auto-load safe-path",
2198 "show auto-load safe-path" and "add-auto-load-safe-path".
2199 * auto-load.h (maybe_add_script): Add parameter loaded.
2200 (file_is_auto_load_safe): New declaration.
2201 * config.in: Regenerate.
2202 * configure: Regenerate.
2203 * configure.ac: New parameters --with-auto-load-safe-path
2204 and --without-auto-load-safe-path.
2205 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
2206 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
2207 * main.c (captured_main): Check file_is_auto_load_safe for
2208 LOCAL_GDBINIT.
2209 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
2210 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
2211 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
2212 not.
2213
bf88dd68
JK
22142012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2215
2216 auto-load: Implementation.
2217 * NEWS: New descriptions for "info auto-load",
2218 "info auto-load gdb-scripts", "info auto-load python-scripts",
2219 "info auto-load local-gdbinit" and "info auto-load libthread-db".
2220 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
2221 and "show auto-load-scripts". New description for "set auto-load",
2222 "show auto-load", "set auto-load gdb-scripts",
2223 "show auto-load gdb-scripts", "set auto-load python-scripts",
2224 "show auto-load python-scripts", "set auto-load local-gdbinit",
2225 "show auto-load local-gdbinit", "set auto-load libthread-db" and
2226 "show auto-load libthread-db".
2227 * auto-load.c: Remove include python/python-internal.h. Add includes
2228 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
2229 cli/cli-setshow.h.
2230 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
2231 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
2232 (gdbpy_global_auto_load): Rename to ...
2233 (global_auto_load): ... here.
2234 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
2235 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
2236 (script_language_gdb, source_gdb_script_for_objfile): New.
2237 (struct loaded_script): New field language.
2238 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
2239 LANGUAGE.
2240 (maybe_add_script): Add parameter language. Drop redundant
2241 entry.full_path initialization. Initialize entry.language and
2242 (*slot)->language.
2243 (auto_load_objfile_script): Change parameter suffix to language.
2244 Remove the call of maybe_add_script.
2245 Call language->source_script_for_objfile.
2246 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
2247 New.
2248 (collect_matching_scripts): Adjust it for
2249 struct collect_matching_scripts_data.
2250 (auto_load_info_scripts_pattern_nl): New variable.
2251 (info_auto_load_scripts): Rename to ...
2252 (auto_load_info_scripts): ... here, add parameter language. Adjust it
2253 for struct collect_matching_scripts_data.
2254 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
2255 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
2256 (auto_load_show_cmdlist_get, info_auto_load_cmd)
2257 (auto_load_info_cmdlist_get): New.
2258 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
2259 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
2260 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
2261 "info auto-load local-gdbinit".
2262 * auto-load.h (struct script_language): New.
2263 (gdbpy_global_auto_load): Rename to ...
2264 (global_auto_load): ... here.
2265 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
2266 (auto_load_local_gdbinit_loaded): New declarations.
2267 (maybe_add_script): New parameter language.
2268 (auto_load_objfile_script): Change parameter suffix to language.
2269 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
2270 (auto_load_info_scripts, auto_load_set_cmdlist_get)
2271 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
2272 declarations.
2273 * linux-thread-db.c: Include auto-load.h and ctype.h.
2274 (auto_load_thread_db, show_auto_load_thread_db): New.
2275 (struct thread_db_info): New field filename.
2276 (delete_thread_db_info): Call xfree for FILENAME.
2277 (try_thread_db_load): Initialize FILENAME.
2278 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
2279 if !AUTO_LOAD_THREAD_DB.
2280 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
2281 (_initialize_thread_db): Install auto_load_thread_db
2282 as "set auto-load libthread-db" and install info_auto_load_libthread_db
2283 as "info auto-load libthread-db".
2284 * main.c (captured_main): Rename gdbpy_global_auto_load to
2285 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
2286 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
2287 (print_gdb_help): Extend the help for 'local init file'.
2288 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
2289 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
2290 (auto_load_scripts): Rename to ...
2291 (auto_load_python_scripts): ... here, update the comment.
2292 (gdbpy_load_auto_script_for_objfile): New declaration.
2293 (show_auto_load_python_scripts, script_language_python)
2294 (gdbpy_load_auto_script_for_objfile): New.
2295 (source_section_scripts): Refactor the code.
2296 (load_auto_scripts_for_objfile): Rename to ...
2297 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
2298 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
2299 (info_auto_load_python_scripts): New.
2300 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
2301 Rename "set auto-load-scripts" to "set auto-load python-scripts".
2302 Register "set auto-load-scripts" as its deprecated alias. Register
2303 "info auto-load python-scripts". Register "info auto-load-scripts" as
2304 its deprecated alias.
2305 (load_auto_scripts_for_objfile): Rename to ...
2306 (gdbpy_load_auto_scripts_for_objfile): ... here.
2307 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
2308 (gdbpy_load_auto_scripts_for_objfile): ... here.
2309
e2207b9a
JK
23102012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2311
2312 auto-load: Move files.
2313 * Makefile.in (SFILES): Add auto-load.c.
2314 (HFILES_NO_SRCDIR): Add auto-load.h.
2315 (COMMON_OBS): Add auto-load.o.
2316 (distclean): Change .gdbinit for gdb-gdb.gdb.
2317 * auto-load.c: New file, with parts from python/py-auto-load.c.
2318 * auto-load.h: New file, with parts from python/python.h.
2319 * configure: Regenerate.
2320 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
2321 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
2322 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
2323 * main.c: Include auto-load.h.
2324 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
2325 command.h, observer.h and progspace.h to auto-load.c. Add include
2326 auto-load.h.
2327 (gdbpy_global_auto_load, struct auto_load_pspace_info)
2328 (struct loaded_script, auto_load_pspace_data)
2329 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
2330 (hash_loaded_script_entry, eq_loaded_script_entry)
2331 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
2332 (maybe_add_script): Move to auto-load.c.
2333 (source_section_scripts): Change maybe_add_script parameters passing,
2334 use script_not_found_warning_print.
2335 (clear_section_scripts, auto_load_objfile_script)
2336 (auto_load_new_objfile, loaded_script_ptr)
2337 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
2338 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
2339 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
2340 auto_load_new_objfile and info_auto_load_scripts initizations to
2341 auto-load.c.
2342 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
2343
e4ab2fad
JK
23442012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2345
2346 Code cleanup.
2347 * charset.c (find_charset_names): Remove variables ix and elt.
2348 Use free_char_ptr_vec.
2349 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
2350 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
2351 debugdir_end. New variable debugdir_len.
2352 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
2353 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
2354 declarations.
2355 * progspace.c (clear_program_space_solib_cache): Remove variables ix
2356 and elt. Use free_char_ptr_vec.
2357 * source.c (add_path): Remove variables argv, arg and argv_index.
2358 New variables dir_vec, back_to, ix and name.
2359 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
2360 make_cleanup_freeargv. Remove variable separator. Simplify the code
2361 no longer expecting DIRNAME_SEPARATOR.
2362 (openp): Remove variable p, p1 and len. New variables dir_vec,
2363 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
2364 no longer expecting DIRNAME_SEPARATOR.
2365 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
2366 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
2367 debugdir_end.
2368 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
2369 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
2370 (dirnames_to_char_ptr_vec): New functions.
2371
5ee4ed9f
JK
23722012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2373
2374 Code cleanup.
2375 * source.c (add_path): Remove always true conditional 'p == 0' and
2376 unindent its code block.
2377
f41f5e61
PA
23782012-04-17 Pedro Alves <palves@redhat.com>
2379
2380 * gdbtypes.h (FIELD_BITPOS): Rename to ...
2381 (FIELD_BITPOS_LVAL): ... this.
2382 (FIELD_BITPOS): New.
2383 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
2384 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
2385 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
2386 SET_FIELD_BITPOS.
2387 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
2388 SET_FIELD_BITPOS.
2389 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
2390 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
2391 * target-descriptions.c (tdesc_gdb_type): Adjust to use
2392 SET_FIELD_BITPOS.
2393
945b3a32
JK
23942012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2395
2396 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
2397 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
2398 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
2399 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
2400 * jv-lang.c (java_link_class_type): Likewise, once.
2401 * stabsread.c (read_enum_type): Likewise.
2402
42476b70
YQ
24032012-04-16 Yao Qi <yao@codesourcery.com>
2404
2405 * common/agent.c (agent_run_command): Add one more parameter `len'.
2406 Update callers.
2407 * common/agent.h: Update declaration.
2408 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2409 Update.
2410 (linux_child_static_tracepoint_markers_by_strid): Ditto.
2411
8264ba82
AG
24122012-04-14 Anton Gorenkov <xgsa@yandex.ru>
2413
2414 PR mi/13393
2415 * value.c (value_actual_type): New function.
2416 * value.h (value_actual_type): New declaration.
2417 * varobj.c (update_type_if_necessary): New function.
2418 (varobj_create): Call value_actual_type instead of
2419 value_type.
2420 (install_dynamic_child): distinct changed and type changed MI variable
2421 objects.
2422 (update_dynamic_varobj_children): Updated for install_dynamic_child
2423 change. All callers updated.
a09130f9 2424 (varobj_update): Support for MI variable object type change if
8264ba82
AG
2425 the value changed and RTTI is used to determine the type.
2426 (create_child_with_value): Call value_actual_type instead of
2427 value_type.
a09130f9 2428 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
2429 specify whether the given value should be casted to enclosing type.
2430 All callers updated.
2431
55a8c076
YQ
24322012-04-14 Yao Qi <yao@codesourcery.com>
2433
2434 Import gnulib module inttypes from git
2435 (250b80067c1e1d8faa0c42fb572f721975b929c5)
2436 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
2437 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
2438 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
2439 * aclocal.m4, config.in, configure: Regenerated.
2440 * gnulib/Makefile.am: Update.
2441 * gnulib/Makefile.in: Update.
2442 * gnulib/m4/gnulib-cache.m4: Update.
2443 * gnulib/m4/gnulib-comp.m4: Update.
2444 * gnulib/inttypes.in.h: New.
2445 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 2446 * gnulib/m4/inttypes.m4: New.
55a8c076 2447
ca7781d2
LM
24482012-04-13 Luis Machado <lgustavo@codesourcery.com>
2449
2450 * infrun.c (resume): Update PC address to the real PC after
2451 preparing to do displaced stepping.
2452
e319fa28
DE
24532012-04-12 Doug Evans <dje@google.com>
2454
2455 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
2456 All callers updated.
2457
15add3f5
MK
24582012-04-12 Mark Kettenis <kettenis@gnu.org>
2459
2460 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
2461
52dc124a
DE
24622012-04-12 Doug Evans <dje@google.com>
2463
0e50663e
DE
2464 * dwarf2read.c (create_all_type_units): Renamed from
2465 create_debug_types_hash_table. All callers updated.
2466
52dc124a
DE
2467 * dwarf2read.c (create_signatured_type_table_from_index): Rename
2468 local type_sig to sig_type, type_offset to type_offset_in_tu.
2469 (hash_signatured_type): Renamed from hash_type_signature,
2470 all callers updated.
2471 (eq_signatured_type): Renamed from eq_type_signature,
2472 all callers updated.
2473 (create_debug_types_hash_table): Rename local type_sig to sig_type.
2474 (process_enumeration_scope): Ditto.
2475 (lookup_signatured_type_at_offset): Ditto.
2476 (load_full_type_unit, read_signatured_type): Ditto.
2477
248fd3bf
YQ
24782012-04-12 Yao Qi <yao@codesourcery.com>
2479
2480 * remote.c (async_remote_interrupt): Correct function name in
2481 debug message.
2482 (async_remote_interrupt_twice): Ditto.
2483
bc3aa6c3
DE
24842012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
2485
2486 * source.c (find_and_open_source): Consistently pass resulting
2487 full path through xfullpath.
2488
9e529e1d
JK
24892012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2490
2491 Provide more specific displaced-stepping memory error message.
2492 * infrun.c (displaced_step_prepare): New variable status. Call
2493 target_read_memory instead of read_memory, provide more specific
2494 error message.
2495
82e0cec1
TG
24962012-04-11 Tristan Gingold <gingold@adacore.com>
2497
2498 PR gdb/13901
2499 * darwin-nat.c (darwin_execvp): Revert previous patch.
2500
d987a266
TG
25012012-04-11 Tristan Gingold <gingold@adacore.com>
2502
2503 PR gdb/13901
2504 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
2505 in case of change.
2506
016b7430
TG
25072012-04-11 Tristan Gingold <gingold@adacore.com>
2508
2509 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
2510 warning.
2511
06fc020f
SCR
25122012-04-11 Siva Chandra Reddy <sivachandra@google.com>
2513
2514 New command 'explore' which helps explore values and types in
2515 scope.
2516 * NEWS: Add an entry about the new 'explore' command.
2517 * data-directory/Makefile.in: Add gdb/command/explore.py
2518 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 2519 command using the GDB Python API.
06fc020f 2520
de0919f8 25212012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
2522
2523 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
2524 extension in jump target calculation.
2525
de0919f8 25262012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
2527
2528 * mips-tdep.c (mips32_next_pc): Handle JALX.
2529
2f26ef89
YQ
25302012-04-10 Yao Qi <yao@codesourcery.com>
2531
2532 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
2533
2e505b66
YQ
25342012-04-10 Yao Qi <yao@codesourcery.com>
2535
2536 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
2537 and gnulib/m4/gnulib-tool.m4.
2538
0d99eb77
DE
25392012-04-10 Doug Evans <dje@google.com>
2540
2541 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
2542 (load_partial_dies): Clarify comment.
2543 (find_partial_die): Support rereading type units.
2544 Clarify CU handling, if we know offset is in CU, don't search for the
2545 containing CU. Add comment regarding memory waste.
2546
9a82b8ff
L
25472012-04-10 H.J. Lu <hongjiu.lu@intel.com>
2548
2549 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
2550 i386/x32-avx and i386/x32-avx-linux.
2551 (i386/x32-expedite): New.
2552 (i386/x32-linux-expedite): Likewise.
2553 (i386/x32-avx-expedite): Likewise.
2554 (i386/x32-avx-linux-expedite): Likewise.
2555 ($(outdir)/i386/x32.dat): Likewise.
2556 ($(outdir)/i386/x32-linux.dat): Likewise.
2557 ($(outdir)/i386/x32-avx.dat): Likewise.
2558 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
2559
2560 * features/i386/x32-avx-linux.xml: New file.
2561 * features/i386/x32-avx.xml: Likewise.
2562 * features/i386/x32-core.xml: Likewise.
2563 * features/i386/x32-linux.xml: Likewise.
2564 * features/i386/x32.xml: Likewise.
2565
2566 * features/i386/x32-avx-linux.c: New. Generated.
2567 * features/i386/x32-avx.c: Likewise.
2568 * features/i386/x32-linux.c: Likewise.
2569 * features/i386/x32.c: Likewise.
2570 * regformats/i386/x32-avx-linux.dat: Likewise.
2571 * regformats/i386/x32-avx.dat: Likewise.
2572 * regformats/i386/x32-linux.dat: Likewise.
2573 * regformats/i386/x32.dat: Likewise.
2574
ee41036f
TG
25752012-04-10 Tristan Gingold <gingold@adacore.com>
2576
2577 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
2578 code to kill the inferior.
2579
a7aa5b8a
MK
25802012-04-09 Mark Kettenis <kettenis@gnu.org>
2581
2582 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2583 defines.
2584 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2585 defines.
a09130f9 2586 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
2587 (yyvsp): New defines.
2588 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2589 defines.
2590 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2591 defines.
2592 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2593 defines.
2594 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2595 defines.
2596 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2597 defines.
2598
fb57d452
MK
25992012-04-09 Mark Kettenis <kettenis@gnu.org>
2600
a09130f9 2601 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
2602 (sparc64_store_arguments): Fix coding style.
2603
cdc7b32f
MK
26042012-04-07 Mark Kettenis <kettenis@gnu.org>
2605
2606 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
2607 complex floats, adjust some related comments and tighten a related
2608 assertion.
2609 (sparc64_extract_return_value): Handle complex floats.
2610
7adf1e79
DE
26112012-04-07 Doug Evans <dje@google.com>
2612
2613 * dwarf2read.c (load_partial_dies): Change condition to assert.
2614
50f1ae7b
DE
26152012-04-06 Doug Evans <dje@google.com>
2616
2617 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
2618 "mov %rsp,%rbp".
2619
55fa75c3
KB
26202012-04-05 Kevin Buettner <kevinb@redhat.com>
2621
2622 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
2623 fencepost error.
2624 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
2625 (v850_gdbarch_init): Set `num_regs' as appropriate for the
2626 architecture.
2627
40e084e1
KS
26282012-04-05 Keith Seitz <keiths@redhat.com>
2629
2630 * linespec.c (decode_compound): Remove.
2631 (enum offset_relative_sign): New enum.
2632 (struct line_offset): New struct.
2633 (struct linespec): New struct.
2634 (struct linespec_state): Move file_symtabs,
2635 user_filename, and user_function into struct linespec.
2636 Make result an anonymous struct holding vectors of
2637 symbolp and minsym_and_objfile_d.
2638 Add language member.
2639 (enum ls_token_type): New enum.
2640 (linespec_keywords): New array.
2641 (struct ls_token): New struct.
2642 (struct ls_parser): New struct.
2643 (linespec_lexer_lex_number): New function.
2644 (linespec_lexer_lex_keyword): New function.
2645 (is_ada_operator): New function.
2646 (skip_quote_char): New function.
2647 (copy_token_string): New function.
2648 (is_closing_quote_enclosed): New function.
2649 (find_parameter_list_end): New function.
2650 (linespec_lexer_lex_string): New function.
2651 (linespec_lexer_lex_one): New function.
2652 (linespec_lexer_consume_token): New function.
2653 (linespec_lexer_peek_token): New function.
2654 (cplusplus_error): Remove unused function.
2655 (find_methods): Update comment.
2656 (find_toplevel_char): Return const.
2657 (is_objc_method_format): Remove unused function.
2658 (find_toplevel_string): New function.
2659 (is_linespec_boundary): Remove.
2660 (symbol_not_found_error): New function.
2661 (find_method_overload_end): Remove function.
2662 (unexpected_linespec_error): New function.
2663 (keep_name_info): Remove.
2664 (linespec_parse_line_offset): New function.
2665 (linespec_parse_basic): New function.
2666 (canonicalize_linespec): New function.
2667 (decode_line_internal): Remove.
2668 (create_sals_line_offset): New function adapted from
2669 decode_all_digits.
2670 (convert_linespec_to_sals): New function.
2671 (parse_linespec): New function.
2672 (linespec_parser_new): New function.
2673 (linespec_state_destructor): Change parameter type to
2674 struct linespec_state *.
2675 Add language parameter.
2676 Remove freeing of moved members.
2677 (linespec_parser_delete): New function.
2678 (decode_line_full): Use parse_linespec and linespec_parser_new.
2679 (decode_line_1): Likewise.
2680 (decode_indirect): Rename to ...
2681 (linespec_expression_to_pc): ... this and rewrite
2682 to simply find CORE_ADDR, storing this result for later
2683 conversion to SALs.
2684 (locate_first_half): Remove.
2685 (deocde_objc): Add parameter LS.
2686 Initialize new struct collect_info members.
2687 Handle minimal symbols, too.
2688 (decode_compound): Delete.
2689 (lookup_prefix_sym): Rewrite.
2690 (compare_msymbols): New function.
2691 (find_method): Rewrite.
2692 Do not call cplusplus_error.
2693 (symtabs_from_filename): Rewrite.
2694 (collect_function_symbols): Delete.
2695 (find_function_symbols): Rewrite without ARGPTR-style
2696 processing.
2697 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
2698 (decode_dollar): Adapted and renamed to ...
2699 (linespec_parse_variable): ... this.
2700 (find_linespec_symbols): New function.
2701 (decode_label): Adapted and renamed to ...
2702 (find_label_symbols): ... this.
2703 (decode_digits_list_mode): Add and use LS argument.
2704 (decode_digits_ordinary): Likewise.
2705 (collect_symbols): Do not collect SALs, just symbols and msymbols.
2706 If in list mode, allow any symbol class. Otherwise, only
2707 permit LOC_BLOCK symbols.
2708 (minsym_found): Update comments.
2709 (search_minsyms_for_name): Do not convert the matching symbol
2710 into a SAL. Simply push the symbol and objfile into the
2711 result vector.
2712 (decode_variable): Delete. Contents adapted into
2713 find_linespec_symbols.
2714
2715 * cp-support.c (SKIP_SPACE): Remove.
2716 (operator_tokens): Remove unused global.
2717 (cp_validate_operator): Remove.
2718 * cp-support.h (cp_validate_operator): Remove declaration.
2719
a72c8f6a
JK
27202012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2721
2722 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
2723 for TYPE_VPTR_FIELDNO.
2724 * valprint.c (valprint_check_validity): Make it global, move the
2725 function comment ...
2726 * value.h (valprint_check_validity): ... to this new declaration.
2727
cf9bb588
TG
27282012-04-02 Tristan Gingold <gingold@adacore.com>
2729
2730 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
2731 the STATE32 api for i386 state.
2732 (i386_darwin_store_inferior_registers): Likewise.
2733
17092398
TG
27342012-04-02 Tristan Gingold <gingold@adacore.com>
2735
2736 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
2737 SS offset.
2738 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
2739 format_string.
2740
ece0061f
TG
27412012-04-02 Tristan Gingold <gingold@adacore.com>
2742
2743 PR gdb/13901
d987a266 2744 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 2745
cf65ecd3
JK
27462012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2747
2748 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
2749
9bc3523d
TT
27502012-03-30 Tom Tromey <tromey@redhat.com>
2751
2752 * python/python.c (gdbpy_decode_line): Move cleanup creation out
2753 of TRY_CATCH. Fix error handling.
2754 * python/py-value.c (convert_value_from_python): Move 'old'
2755 declaration to innermost scope.
2756
b1ed564a
JB
27572012-03-29 Joel Brobecker <brobecker@adacore.com>
2758 Andrey Smirnov <andrew.smirnov@gmail.com>
2759
2760 -Wshadow warning fix.
2761 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
2762 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
2763 Adjust code accordingly.
2764
cb8e9b97
JB
27652012-03-29 Joel Brobecker <brobecker@adacore.com>
2766
2767 * ada-lang.c (symbol_completion_add): Rename parameter
2768 "encoded" into "encoded_p". Ajust code and documentation
2769 accordingly.
2770
c0af1706
JB
27712012-03-29 Joel Brobecker <brobecker@adacore.com>
2772 Andrey Smirnov <andrew.smirnov@gmail.com>
2773
2774 -Wshadow warning fix.
2775 * ada-lang.c (symbol_completion_add): Rename parameter
2776 "wild_match" into wild_match_p. Update code and documentation
2777 accordingly.
2778
6ea35997
JB
27792012-03-29 Joel Brobecker <brobecker@adacore.com>
2780
2781 * ada-lang.c (symbol_completion_match): Rename parameter
2782 "encoded" into "encoded_p". Ajust code and documentation
2783 accordingly.
2784
e701b3c0
JB
27852012-03-29 Joel Brobecker <brobecker@adacore.com>
2786 Andrey Smirnov <andrew.smirnov@gmail.com>
2787
2788 -Wshadow warning fix.
2789 * ada-lang.c (symbol_completion_match): Rename parameter
2790 "wild_match" into "wild_match_p". Adjust code and function
2791 documentation accordingly.
2792
5e2336be
JB
27932012-03-29 Joel Brobecker <brobecker@adacore.com>
2794 Andrey Smirnov <andrew.smirnov@gmail.com>
2795
2796 -Wshadow warning fix.
2797 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
2798 "symbol_info" into "info". Adjust code accordingly.
2799 (ada_lookup_symbol): Likewise.
2800
9f88c959
JB
28012012-03-29 Joel Brobecker <brobecker@adacore.com>
2802
2803 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
2804 of this function's documentation.
2805
82ccd55e
JB
28062012-03-29 Joel Brobecker <brobecker@adacore.com>
2807 Andrey Smirnov <andrew.smirnov@gmail.com>
2808
2809 -Wshadow warning fix.
2810 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
2811 variable into "wild_match_p". Adjust code accordingly.
2812
d0a8ab18
JB
28132012-03-29 Joel Brobecker <brobecker@adacore.com>
2814 Andrey Smirnov <andrew.smirnov@gmail.com>
2815
2816 -Wshadow warning fix.
2817 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
2818 parameter into "wild_match_p". Adjust code accordingly.
2819 Document this parameter in the function description.
2820
48b78332
JB
28212012-03-29 Joel Brobecker <brobecker@adacore.com>
2822 Andrey Smirnov <andrew.smirnov@gmail.com>
2823
2824 -Wshadow warning fix.
2825 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
2826 "wild_match" parameter to "wild_match_p" (-Wshadow).
2827
2e6e0353
JB
28282012-03-29 Joel Brobecker <brobecker@adacore.com>
2829
2830 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
2831 in function documentation.
2832
dc4024cd
JB
28332012-03-29 Joel Brobecker <brobecker@adacore.com>
2834 Andrey Smirnov <andrew.smirnov@gmail.com>
2835
2836 -Wshadow warning fix.
2837 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
2838 variable into wild_match_p. Adjust code accordingly.
2839
6c88661c
JB
28402012-03-29 Joel Brobecker <brobecker@adacore.com>
2841 Andrey Smirnov <andrew.smirnov@gmail.com>
2842
2843 * ada-valprint.c (ada_val_print_1): Move the code handling
2844 TYPE_CODE_ENUM inside its own lexical block. Declare
2845 variables len and val there, instead of in the function's
2846 top level block. Avoid declaring deref_val again in a way
2847 that shadows another variable of the same name declared
2848 in one of the up-level blocks. Just re-use the up-level
2849 variable instead.
2850
4e5c77fe
JB
28512012-03-29 Joel Brobecker <brobecker@adacore.com>
2852
2853 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
2854 Replace block_found argument by symbol_info. Adjust
2855 implementation accordingly. Add function documentation.
2856 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
2857 Fix documentation.
2858 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
2859 * ada-exp.y (write_object_renaming): Adjust to new
2860 ada_lookup_encoded_symbol API.
2861
1c0ac8c7
JB
28622012-03-29 Joel Brobecker <brobecker@adacore.com>
2863
2864 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
2865 documentation.
2866
2aaed979
KB
28672012-03-28 Rathish C <rathish.c@kpitcummins.com>
2868
2869 * v850-tdep.c: Add the enum values for mpu and fpu registers.
2870 (v850_register_name): Add the mpu and fpu register names.
2871 (v850e_register_name): Add the mpu and fpu register names.
2872 (v850e2_register_name): New function.
a09130f9 2873 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
2874 bfd_mach_v850e2v3.
2875
927fbba6
JB
28762012-03-28 Joel Brobecker <brobecker@adacore.com>
2877
2878 * NEWS: Add entry for Ada varobj support.
2879
d32cafc7
JB
28802012-03-28 Joel Brobecker <brobecker@adacore.com>
2881
2882 * varobj.c (default_value_is_changeable_p): New function,
2883 extracted from varobj_value_is_changeable_p. Add declaration.
2884 (ada_value_is_changeable_p): New function, extracted from
2885 varobj_value_is_changeable_p. Add declaration.
2886 (struct language_specific): New field "value_is_changeable_p".
2887 (languages): Add entries for new field.
2888 (varobj_create): Set language before calling install_new_value.
2889 (varobj_value_is_changeable_p): Reimplement to call the varobj's
2890 "value_is_changeable_p" language callback.
2891
181875a4
JB
28922012-03-28 Joel Brobecker <brobecker@adacore.com>
2893
2894 * ada-varobj.h, ada-varobj.c: New files.
2895 * Makefile.in (SFILES): Add ada-varobj.c.
2896 (HFILES_NO_SRCDIR): Add ada-varobj.h.
2897 (COMMON_OBS): Add ada-varobj.o.
2898
7a290c40
JB
28992012-03-28 Joel Brobecker <brobecker@adacore.com>
2900
2901 * varobj.c (ada_value_has_mutated): Add declaration. New function.
2902 (struct language_specific): New field "value_has_mutated".
2903 (languages): Set field "value_has_mutated" in each entry of array.
2904 (varobj_value_has_mutated): New function.
2905 (varobj_udpdate): Add handling of type mutation.
2906 (value_of_root): Add handling of type mutation.
2907 (ada_value_has_mutated): New function.
2908
ca9b8b9c
PA
29092012-03-28 Pedro Alves <palves@redhat.com>
2910
2911 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
2912 Always supply $fr0 as 0.0 and $fr1 as 1.0.
2913
cc0265cd
TT
29142012-03-28 Tom Tromey <tromey@redhat.com>
2915
2916 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
2917 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
2918 before returning.
2919
3ad2ec6f
TT
29202012-03-28 Tom Tromey <tromey@redhat.com>
2921
2922 * .dir-locals.el: New file.
2923
4a6510ba
PA
29242012-03-28 Pedro Alves <palves@redhat.com>
2925
2926 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
2927
5a75128f
JB
29282012-03-28 Joel Brobecker <brobecker@adacore.com>
2929
2930 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
2931 handling for r0.
2932
f99d8bf4
PA
29332012-03-27 Pedro Alves <palves@redhat.com>
2934
2935 Eliminate struct ui_stream.
2936
2937 * ui-out.h (struct ui_stream): Delete.
2938 (ui_out_field_stream): Adjust prototype.
2939 (ui_out_stream_new, ui_out_stream_delete)
2940 (make_cleanup_ui_out_stream_delete): Delete declarations.
2941 * ui-out.c (ui_out_field_stream): Change prototype to take a
2942 ui_file instead of a ui_stream. Adjust.
2943 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
2944 (make_cleanup_ui_out_stream_delete): Delete.
2945 * breakpoint.c (print_breakpoint_location)
2946 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
2947 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
2948 * disasm.c (dump_insns): Ditto.
2949 (do_mixed_source_and_assembly, do_assembly_only): Adjust
2950 prototype.
2951 (gdb_disassembly): Use ui_file/mem_fileopen instead of
2952 ui_stream/ui_out_stream_new.
2953 * infcmd.c (print_return_value): Ditto.
2954 * osdata.c (info_osdata_command): Don't allocate a local
2955 ui_stream.
2956 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
2957 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
2958 * tracepoint.c (print_one_static_tracepoint_marker): Don't
2959 allocate a local ui_stream.
2960 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
2961 instead of ui_stream/ui_out_stream_new.
2962 (list_args_or_locals): Don't allocate a local ui_stream.
2963 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
2964 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
2965 ui_stream/ui_out_stream_new.
2966 * cli/cli-setshow.c (do_setshow_command): Ditto.
2967
6350a066 29682012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 2969
6350a066
PA
2970 * arm-linux-tdep.c (arm_linux_init_abi): Call
2971 set_gdbarch_process_record. Initialize `arm_swi_record' field.
2972 * arm-tdep.c (arm_process_record): New function.
2973 (deallocate_reg_mem): New function.
2974 (decode_insn): New function.
2975 (thumb_record_branch): New function.
2976 (thumb_record_ldm_stm_swi(): New function.
2977 (thumb_record_misc): New function.
2978 (thumb_record_ld_st_stack): New function.
2979 (thumb_record_ld_st_imm_offset): New function.
2980 (thumb_record_ld_st_reg_offset(): New function.
2981 (thumb_record_add_sub_cmp_mov): New function.
2982 (thumb_record_shift_add_sub): New function.
2983 (arm_record_coproc_data_proc): New function.
2984 (arm_record_coproc): New function.
2985 (arm_record_b_bl): New function.
2986 (arm_record_ld_st_multiple): New function.
2987 (arm_record_ld_st_reg_offset): New function.
2988 (arm_record_ld_st_imm_offset): New function.
2989 (arm_record_data_proc_imm): New function.
2990 (arm_record_data_proc_misc_ld_str): New function.
2991 (arm_record_extension_space): New function.
2992 (arm_record_strx): New function.
2993 (sbo_sbz): New function.
2994 (struct insn_decode_record): New structure for arm insn record.
2995 (REG_ALLOC): New macro for reg allocations.
2996 (MEM_ALLOC): New macro for memory allocations.
2997 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 2998
89e028e2
AS
29992012-03-27 Andreas Schwab <schwab@linux-m68k.org>
3000
3001 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
3002 (store_register): Likewise.
3003
6350a066 30042012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 3005
6350a066 3006 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 3007
5b43fab2
JK
30082012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3009
3010 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
3011 Describe also the option "auto".
3012
b5453b95
RH
30132012-03-22 Richard Henderson <rth@redhat.com>
3014
3015 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
3016 * sparc-nat.c (sparc_xfer_wcookie): Make static.
3017
227ee7fc
RH
30182012-03-22 Richard Henderson <rth@redhat.com>
3019
3020 * jit.c (jit_read_code_entry): Compute alignment and offset of
3021 int64_t member before computing entry_size.
3022
7b282c5a
SCR
30232012-03-22 Siva Chandra Reddy <sivachandra@google.com>
3024
3025 Python scripting: Add new method Value.referenced_value to
3026 gdb.Value which can dereference pointer as well as reference
3027 values.
3028 * NEWS: Add entry under 'Python scripting' about the new method
3029 Value.referenced_value on gdb.Value objects.
3030 * python/py-value.c (valpy_referenced_value): New function
3031 defining a new method on gdb.Value objects which can dereference
3032 pointer and reference values.
3033
0c83539f
SCR
30342012-03-22 Siva Chandra Reddy <sivachandra@google.com>
3035
3036 * MAINTAINERS (Write After Approval): Add myself to the list.
3037
7ccffd7c
KB
30382012-03-21 Kevin Buettner <kevinb@redhat.com>
3039
3040 * symtab.c (skip_prologue_sal): Change test to check for "main()"
3041 in addition to "main".
3042
bd0b9f9e
JB
30432012-03-21 Joel Brobecker <brobecker@adacore.com>
3044
3045 * expression.h (op_name): Add declaration.
3046 * expprint.c (op_name): Remove declaration. Make non-static.
3047 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
3048
a5362b9a
TS
30492012-03-21 Thomas Schwinge <thomas@codesourcery.com>
3050
3051 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
3052 of struct siginfo.
3053 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
3054 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3055 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
3056 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
3057 (linux_nat_get_siginfo): Likewise.
3058 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
3059 (linux_nat_get_siginfo): Likewise.
3060 * linux-tdep.c (linux_get_siginfo_type): Likewise.
3061 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
3062 * procfs.c (gdb_siginfo_t): Likewise.
3063
adcadaab
MF
30642012-03-21 Mike Frysinger <vapier@gentoo.org>
3065
3066 * .gitignore: Ignore more files.
3067
e278ad5b
PA
30682012-03-20 Pedro Alves <palves@redhat.com>
3069
3070 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
3071 returns.
3072
741e63d7
YQ
30732012-03-20 Yao Qi <yao@codesourcery.com>
3074
3075 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
3076 comment.
3077
b64f50a1
JK
30782012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3079
3080 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
3081 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
3082 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
3083 sect_offset.
3084 * dwarf2expr.h (cu_offset, sect_offset): New types.
3085 (struct dwarf_expr_context_funcs) <dwarf_call>
3086 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
3087 sect_offset.
3088 (struct dwarf_expr_context) <len>: Improve the comment.
3089 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
3090 cu_offset and sect_offset.
3091 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
3092 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
3093 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
3094 * dwarf2loc.h: Include dwarf2expr.h.
3095 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
3096 and sect_offset.
3097 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
3098 Improve the comment.
3099 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
3100 (struct signatured_type, struct line_header, struct partial_die_info)
3101 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
3102 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
3103 (get_die_type_at_offset, create_cus_from_index)
3104 (create_signatured_type_table_from_index, dw2_get_file_names)
3105 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
3106 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
3107 (create_debug_types_hash_table, process_psymtab_comp_unit)
3108 (load_partial_comp_unit, create_all_comp_units)
3109 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
3110 (load_full_comp_unit, dwarf2_physname, read_import_statement)
3111 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
3112 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
3113 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
3114 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
3115 (find_partial_die, read_attribute_value, lookup_die_type)
3116 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
3117 (is_ref_attr): New function comment.
3118 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
3119 Use cu_offset and sect_offset.
3120 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
3121 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
3122 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
3123 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
3124 (offset_and_type_hash, offset_and_type_eq, set_die_type)
3125 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
3126 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
3127 sect_offset.
3128
e97a38f7
JK
31292012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3130
3131 Code cleanup.
3132 * python/py-auto-load.c (source_section_scripts): New variable back_to.
3133 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
3134 with xfree.
3135 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
3136
8320cc4f
JK
31372012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3138
3139 * NEWS: Describe new options --init-command=FILE, -ix and
3140 --init-eval-command=COMMAND, -iex.
3141 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
3142 CMDARG_INIT_COMMAND.
3143 (captured_main): New enum items OPT_IX and OPT_IEX. Add
3144 "init-command", "init-eval-command", "ix" and "iex" to the variable
3145 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
3146 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
3147 (print_gdb_help): Describe --init-command=FILE, -ix and
3148 --init-eval-command=COMMAND, -iex.
3149
26743505
JK
31502012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3151
3152 Code cleanup.
3153 * main.c (struct cmdarg): Move it here from main. Add more comments.
3154 (cmdarg_s, VEC (cmdarg_s)): New.
3155 (main): Move struct cmdarg from here. New variables cmdarg_vec and
3156 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
3157 Install cleanup for cmdarg_vec. Update filling for options 'x' and
3158 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
3159 of CMDARG.
3160
5ff5c7b4
TT
31612012-03-19 Tom Tromey <tromey@redhat.com>
3162
3163 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
3164
ab260dad
JK
31652012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3166
3167 PR symtab/13777
3168 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
3169 GCC >=4.5.
3170
c366c1f0
TT
31712012-03-16 Chris January <chris.january@allinea.com>
3172
3173 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
3174 of clear.
3175
e16edb45
TT
31762012-03-16 Chris January <chris.january@allinea.com>
3177
3178 * source.c (add_path): Use memmove instead of strcpy because the
3179 strings overlap.
3180
53ba8333
JB
31812012-03-16 Joel Brobecker <brobecker@adacore.com>
3182
3183 * value.h (set_value_parent): Add declaration.
3184 * value.c (set_value_parent): New function.
3185 (value_address): If VALUE->PARENT is not NULL, then use it as
3186 the base address instead of VALUE->LOCATION.address.
3187 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
3188 the same as OBJ's address. Adjust V's offset accordingly.
3189 Set V's parent.
3190
481860b3
GB
31912012-03-16 Gary Benson <gbenson@redhat.com>
3192
3193 PR breakpoints/10738
3194 * dwarf2read.c (use_deprecated_index_sections): New global.
3195 (struct partial_die_info): New member may_be_inlined.
3196 (read_partial_die): Set may_be_inlined where appropriate.
3197 (add_partial_subprogram): Add partial symbols for partial
3198 DIEs that may be inlined.
3199 (new_symbol_full): Add inlined subroutines to the current
3200 scope.
3201 (write_psymtabs_to_index): Bump version number.
3202 (dwarf2_read_index): Read only version 6 indices unless
3203 use_deprecated_index_sections is set.
3204 * linespec.c (symbol_and_data_callback): New structure.
3205 (iterate_inline_only): New function.
3206 (iterate_over_all_matching_symtabs): New argument
3207 "include_inline". If nonzero, also call the callback for
3208 symbols representing inlined subroutines.
3209 (lookup_prefix_sym): Pass extra argument to the above.
3210 (find_function_symbols): Likewise.
3211 (add_matching_symbols_to_info): Likewise.
3212 * NEWS: Mention that GDB can now set breakpoints on inlined
3213 functions.
3214
d0e7e15a
PM
32152012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3216
3217 * p-typeprint.c (pascal_type_print_method_args):
3218 Fix display of parameter of methods.
3219
3d354654
PM
32202012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3221
3222 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
3223 Add missing prototype.
3224
cafe75b0
JK
32252012-03-16 Yao Qi <yao@codesourcery.com>
3226 Jan Kratochvil <jan.kratochvil@redhat.com>
3227
3228 Fix false compilation warning.
3229 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
3230
25f8c692
JL
32312012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
3232 Pedro Alves <pedro@codesourcery.com>
3233
3234 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
3235 (arm_register_g_packet_guesses): New function.
3236 (arm_gdbarch_init): Don't force a target description with
3237 registers when the executable is detected as M-profile. Instead
3238 set gdbarch->tdep->is_m. Register `g' packet guesses.
3239 (_initialize_arm_tdep): Initialize the new target description.
3240 * features/arm-with-m-fpa-layout.xml: New description.
3241 * features/arm-with-m-fpa-layout.c: New, generated.
3242
35c63cd8
JB
32432012-03-15 Joel Brobecker <brobecker@adacore.com>
3244
3245 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
3246 Update function description.
3247 (insert_bp_location): Do not wipe bl->target_info out.
3248 * mem-break.c: #include "gdb_string.h".
3249 (default_memory_insert_breakpoint): Do not call target_read_memory
3250 with a pointer to the breakpoint's shadow_contents buffer. Use
3251 a local buffer instead.
3252 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
3253
57651221
TT
32542012-03-15 Tom Tromey <tromey@redhat.com>
3255
3256 * NEWS: Mention "info vtbl", not "info vtable".
3257 * cp-support.c (info_vtbl_command): Fix comment.
3258 (_initialize_cp_support): Fix text.
3259
410528f0
TT
32602012-03-15 Tom Tromey <tromey@redhat.com>
3261
3262 * cp-valprint.c (cp_print_value_fields): Use
3263 print_function_pointer_address for vtable slot.
3264
c4aeac85
TT
32652012-03-15 Tom Tromey <tromey@redhat.com>
3266
3267 * gnu-v3-abi.c (struct value_and_voffset): New.
3268 (hash_value_and_voffset, eq_value_and_voffset)
3269 (compare_value_and_voffset, compute_vtable_size)
3270 (print_one_vtable, gnuv3_print_vtable): New functions.
3271 (init_gnuv3_ops): Initialize 'print_vtable' field.
3272 * cp-support.c (info_vtbl_command): New function.
3273 (_initialize_cp_support): Add "info vtbl".
3274 * cp-abi.h (cplus_print_vtable): Declare.
3275 (struct cp_abi_ops) <print_vtable>: New field.
3276 * cp-abi.c (cplus_print_vtable): New function.
3277 * NEWS: Update.
3278
95cbceff
TT
32792012-03-15 Tom Tromey <tromey@redhat.com>
3280
3281 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
3282 iterate_over_symbols.
3283
589b4a32
DE
32842012-03-14 Doug Evans <dje@google.com>
3285
3286 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
3287 DW_OP_GNU_parameter_ref.
3288
e837f12a
JK
32892012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3290
3291 Fix double prompt of 'interpreter-exec mi'.
3292 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
3293 (mi_interpreter_resume): use it.
3294 (mi_execute_command_input_handler): New function.
3295 * mi/mi-main.c (mi_execute_command): Move prompt printing to
3296 mi_execute_command_input_handler.
3297
ff1e4526 32982012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
3299
3300 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
3301 prototype.
3302 (darwin_debug_port_info): Make static.
3303 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
3304 * machoread.c (_initialize_machoread): Add prototype.
3305 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
3306 (i386_darwin_set_control, i386_darwin_get_control)
3307 i386_darwin_dr_set_addr, i386_darwin_get_addr)
3308 i386_darwin_get_status, i386_darwin_get_control):
3309 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
3310
d8a5d6ee
JB
33112012-03-13 Joel Brobecker <brobecker@adacore.com>
3312
3313 * ax-gdb.c (gen_usual_unary): Remove special handling of
3314 enum and bool types.
3315
af381b8c
JB
33162012-03-13 Joel Brobecker <brobecker@adacore.com>
3317
3318 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
3319
786c562f
JB
33202012-03-13 Joel Brobecker <brobecker@adacore.com>
3321
3322 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
3323
e3ebf1bb
JB
33242012-03-13 Chris January <chris.january@allinea.com>
3325
3326 * aix-thread.c (fill_sprs): Store the floating point registers
3327 at the correct offsets into vals.
3328
c5b7e1cb
DE
33292012-03-13 Doug Evans <dje@google.com>
3330
16899756
DE
3331 * NEWS: Mention symbol-reloading has been deleted.
3332 * symfile.c (symbol_reloading): Delete.
3333 (show_symbol_reloading): Delete.
3334 (_initialize_symfile): Delete set/show symbol-reloading.
3335
c5b7e1cb
DE
3336 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
3337 read_in_chain until we have successfully read it in.
3338 (load_full_comp_unit): Ditto.
3339 (read_signatured_type): Add comment.
3340
46cb6474
JB
33412012-03-13 Chris January <chris.january@allinea.com>
3342
3343 * stabsread.c (fix_common_block): Change type of valu argument
3344 to CORE_ADDR.
3345
76219d77
JB
33462012-03-13 Chris January <chris.january@allinea.com>
3347
3348 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
3349 instruction.
3350
87b0bb13
JK
33512012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3352
3353 * common/linux-procfs.c (linux_proc_get_int): New, from
3354 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
3355 field.
3356 (linux_proc_get_tgid): Only call linux_proc_get_int.
3357 (linux_proc_get_tracerpid): New.
3358 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
3359 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
3360 linux_proc_pid_has_state.
3361 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
3362 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
3363 (linux_ptrace_attach_warnings): New.
3364 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
3365 New declaration.
3366 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
3367 (linux_nat_attach): New variables ex, buffer, message and message_s.
3368 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
3369
5f572dec
JK
33702012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3371
3372 * Makefile.in (linux-ptrace.o): New.
3373 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
3374 from linux-nat.c.
3375 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
3376 * common/linux-ptrace.c: New file.
3377 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
3378 * config/arm/linux.mh: Likewise.
3379 * config/i386/linux.mh: Likewise.
3380 * config/i386/linux64.mh: Likewise.
3381 * config/ia64/linux.mh: Likewise.
3382 * config/m32r/linux.mh: Likewise.
3383 * config/m68k/linux.mh: Likewise.
3384 * config/mips/linux.mh: Likewise.
3385 * config/pa/linux.mh: Likewise.
3386 * config/powerpc/linux.mh: Likewise.
3387 * config/powerpc/ppc64-linux.mh: Likewise.
3388 * config/powerpc/spu-linux.mh: Likewise.
3389 * config/s390/s390.mh: Likewise.
3390 * config/sparc/linux.mh: Likewise.
3391 * config/sparc/linux64.mh: Likewise.
3392 * config/xtensa/linux.mh: Likewise.
3393 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
3394 common/linux-procfs.c.
3395 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
3396
44f238bb
PA
33972012-03-13 Hui Zhu <teawater@gmail.com>
3398 Pedro Alves <palves@redhat.com>
3399
3400 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
3401 CREATE_BREAKPOINT_FLAGS_INSERTED.
3402 (create_breakpoint_sal, create_breakpoints_sal)
3403 (base_breakpoint_create_breakpoints_sal)
3404 (tracepoint_create_breakpoints_sal)
3405 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
3406 down.
3407 (break_command_1, handle_gnu_v3_exceptions, trace_command)
3408 (ftrace_command, strace_command): Adjust.
3409 (create_tracepoint_from_upload): Pass
3410 CREATE_BREAKPOINT_FLAGS_INSERTED.
3411 * breakpoint.h (enum breakpoint_create_flags): New.
3412 (create_breakpoint): New flags parameter.
3413 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3414 * python/py-breakpoint.c (bppy_init): Adjust.
3415 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
3416 * spu-tdep.c (spu_catch_start): Adjust.
3417
1e51243a
PA
34182012-03-13 Pedro Alves <palves@redhat.com>
3419 Hui Zhu <teawater@gmail.com>
3420 Yao Qi <yao@codesourcery.com>
3421
3422 * remote.c (struct remote_state): New field `starting_up'.
3423 (remote_start_remote): Set and clear it.
3424 (remote_can_download_tracepoint): If starting up, return false.
3425
fa3064dd
YQ
34262012-03-13 Yao Qi <yao@codesourcery.com>
3427
3428 * inferior.h (struct inferior): Remove fields any_syscall_count,
3429 syscalls_counts and total_syscalls_count. Move them to new
3430 struct catch_syscall_inferior_data in breakpoint.c.
3431 * breakpoint.c: Call DEF_VEC_I(int).
3432 (struct catch_syscall_inferior_data): New.
3433 (get_catch_syscall_inferior_data): New.
3434 (catch_syscall_inferior_data_cleanup): New.
3435 (insert_catch_syscall): Update to access data in
3436 struct catch_syscall_inferior_data.
3437 (insert_catch_syscall): Likewise.
3438 (remove_catch_syscall): Likewise.
3439 (remove_catch_syscall): Likewise.
3440 (is_syscall_catchpoint_enabled): Likewise.
3441 (add_catch_command): Likewise.
3442 (_initialize_breakpoint): Register cleanup.
3443 * breakpoint.h: Removed DEF_VEC_I(int).
3444 * dwarf2loc.c: Call DEF_VEC_I(int).
3445 * mi/mi-main.c: Likewise.
3446
460fac3c
MK
34472012-03-12 Mark Kettenis <kettenis@gnu.org>
3448
3449 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
3450
e1aca11e
JB
34512012-03-12 Chris January <chris.january@allinea.com>
3452
3453 * aix-thread.c (_initialize_aix_thread): Add prototype.
3454 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
3455 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
3456
649c7061
JB
34572012-03-12 Joel Brobecker <brobecker@adacore.com>
3458
3459 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
3460 include of "amd64-nat.h".
3461
0b49e518
TT
34622012-03-12 Tom Tromey <tromey@redhat.com>
3463
3464 * buildsym.c (record_pending_block): Now static.
3465 * buildsym.h: (record_pending_block): Remove.
3466
fd24fa94
AT
34672012-03-12 Andreas Tobler <andreast@fgznet.ch>
3468
3469 * amd64bsd-nat.c: Include amd64bsd-nat.h.
3470
ba919b58
TT
34712012-03-09 Tom Tromey <tromey@redhat.com>
3472
3473 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
3474 producer_is_gxx_lt_4_6>: New fields.
3475 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
3476
a48e046c
TT
34772012-03-09 Tom Tromey <tromey@redhat.com>
3478
3479 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
3480
6f5e9362
JB
34812012-03-08 Joel Brobecker <brobecker@adacore.com>
3482
3483 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
3484 prototype.
3485
8d037db9
JB
34862012-03-08 Joel Brobecker <brobecker@adacore.com>
3487
3488 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
3489
4e841acf
JK
34902012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3491
3492 Fix -Wmissing-prototypes build.
3493 * arm-linux-nat.c (get_thread_id): Make it static.
3494 * xtensa-linux-nat.c (get_thread_id): Likewise.
3495
c6030312
JB
34962012-03-08 Joel Brobecker <brobecker@adacore.com>
3497
3498 * server.c (process_point_options): If a conditional expression
3499 is found, only print a message if remote_debug is nonzero.
3500
52323be9
LM
35012012-03-08 Luis Machado <lgustavo@codesourcery.com>
3502
3503 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
3504 of internal error for unknown/unsupported types.
3505
7fe25d9b
JK
35062012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3507
3508 Fix CU relative vs. absolute DIE offsets.
3509 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
3510 offset to offset_in_cu.
3511 * dwarf2read.c (process_enumeration_scope): Add CU offset to
3512 TYPE_OFFSET.
3513 (dwarf2_fetch_die_location_block): Rename parameter offset to
3514 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
3515
05e7c244
JK
35162012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3517
3518 * libunwind-frame.c: Rename to ...
3519 * ia64-libunwind-tdep.c: ... here.
3520 * libunwind-frame.h: Rename to ...
3521 * ia64-libunwind-tdep.h: ... here.
3522 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
3523 ia64-libunwind-tdep.h.
3524 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
3525 * README (--with-libunwind): Rename to ...
3526 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
3527 * config.in: Regenerate.
3528 * configure: Regenerate.
3529 * configure.ac: New option --with-libunwind-ia64, make the
3530 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
3531 Remove AC_DEFINE for HAVE_LIBUNWIND.
3532 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
3533 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
3534 Rename libunwind-frame in the general comment.
3535 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
3536 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
3537 Move forward declarations inside #ifndef. Rename libunwind-frame in
3538 the general comment.
3539 * ia64-tdep.c: Rename libunwind-frame.h #include to
3540 ia64-libunwind-tdep.h.
3541 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
3542 (ia64_libunwind_descr): Rename libunwind-frame to
3543 ia64-libunwind-tdep in these function comments.
3544 * ia64-tdep.h: Rename libunwind-frame.h #include to
3545 ia64-libunwind-tdep.h.
3546 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
3547 ia64-libunwind-tdep in that data comment.
3548
3755cbfd
JK
35492012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3550
3551 * libunwind-frame.h (struct frame_unwind): New declaration.
3552
d1cda5d9
JB
35532012-03-08 Joel Brobecker <brobecker@adacore.com>
3554
3555 * breakpoint.c (_initialize_breakpoint): Fix error in help of
3556 "set breakpoint condition-evaluation" command.
3557
a0ba0aa2
TG
35582012-03-08 Tristan Gingold <gingold@adacore.com>
3559
3560 * sparc-stub.c: Move to stubs/
3561 * sh-stub.c: Likewise.
3562 * m68k-stub.c: Likewise.
3563 * m32r-stub.c: Likewise.
3564 * i386-stub.c: Likewise.
3565
7b8b6d6d
AS
35662012-03-08 Andreas Schwab <schwab@linux-m68k.org>
3567
007cafee
AS
3568 * m68klinux-tdep.c (m68k_linux_init_abi): Register
3569 linux_get_siginfo_type.
3570
7b8b6d6d
AS
3571 * m68klinux-nat.c: Include "gdb_proc_service.h".
3572 (PTRACE_GET_THREAD_AREA): Define.
3573 (ps_get_thread_area): New function.
3574
bba74b36
YQ
35752012-03-08 Yao Qi <yao@codesourcery.com>
3576
3577 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
3578 `xsnprintf'.
3579 (remote_query_attached): Likewise.
3580 (remote_static_tracepoint_marker_at): Likewise.
3581 (remote_set_permissions): Likewise.
3582 (remote_detach_1, extended_remote_attach_1): Likewise.
3583 (send_g_packet, remote_vkill): Likewise.
3584 (extended_remote_disable_randomization): Likewise.
3585 (remote_add_target_side_condition): Likewise.
3586 (remote_insert_breakpoint): Likewise.
3587 (remote_remove_breakpoint): Likewise.
3588 (remote_insert_watchpoint): Likewise.
3589 (remote_remove_watchpoint): Likewise.
3590 (remote_insert_hw_breakpoint): Likewise.
3591 (remote_insert_hw_breakpoint): Likewise.
3592 (remote_remove_hw_breakpoint): Likewise.
3593 (remote_download_command_source): Likewise.
3594 (remote_download_tracepoint): Likewise.
3595 (remote_download_trace_state_variable): Likewise.
3596 (remote_disable_tracepoint): Likewise.
3597 (remote_trace_set_readonly_regions): Likewise.
3598 (remote_get_tracepoint_status): Likewise.
3599 (remote_trace_find): Likewise.
3600 (remote_get_trace_state_variable_value): Likewise.
3601 (remote_set_disconnected_tracing): Likewise.
3602 (remote_set_circular_trace_buffer): Likewise.
3603 (remote_get_min_fast_tracepoint_insn_len): Likewise.
3604 (remote_use_agent): Likewise.
3605 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
3606 Update callers.
3607
9b224c5e
PA
36082012-03-07 Pedro Alves <palves@redhat.com>
3609
3610 * NEWS: Mention QProgramSignals.
3611 * inferior.h (update_signals_program_target): Declare.
3612 * infrun.c: (update_signals_program_target): New.
3613 (handle_command): Update the target of the new program signals
3614 array changes.
3615 * remote.c (PACKET_QProgramSignals): New enum.
3616 (last_program_signals_packet): New global.
3617 (remote_program_signals): New.
3618 (remote_start_remote): Update the target with the program signals
3619 list.
3620 (remote_protocol_features): Add entry for QPassSignals.
3621 (remote_open_1): Free anc clear last_program_signals_packet.
3622 (init_remote_ops): Install remote_program_signals.
3623 * target.c (update_current_target): Adjust.
3624 (target_program_signals): New.
3625 * target.h (struct target_ops) <to_program_signals>: New field.
3626 (target_program_signals): Declare.
3627
74c48cbb
PA
36282012-03-07 Pedro Alves <palves@redhat.com>
3629
3630 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
3631 extensions.
3632
0c13fc49
AS
36332012-03-07 Andreas Schwab <schwab@linux-m68k.org>
3634
3635 * m68klinux-nat.c (getregs_supplies): Make static.
3636 (getfpregs_supplies): Likewise.
3637 (have_ptrace_getregs): Likewise.
3638
1281d2a3
JB
36392012-03-06 Joel Brobecker <brobecker@adacore.com>
3640
3641 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
3642 in call to get_die_type_at_offset.
3643
2b03b41d
SS
36442012-03-06 Stan Shebs <stan@codesourcery.com>
3645
3646 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
3647 * mi/mi-cmd-disas.c: Ditto.
3648 * mi/mi-cmd-env.c: Ditto.
3649 * mi/mi-cmd-file.c: Ditto.
3650 * mi/mi-cmd-stack.c: Ditto.
3651 * mi/mi-cmd-target.c: Ditto.
3652 * mi/mi-cmd-var.c: Ditto.
3653 * mi/mi-cmds.c: Ditto.
3654 * mi/mi-cmds.h: Ditto.
3655 * mi/mi-console.c: Ditto.
3656 * mi/mi-getopt.c: Ditto.
3657 * mi/mi-getopt.h: Ditto.
3658 * mi/mi-interp.c: Ditto.
3659 * mi/mi-main.c: Ditto.
3660 * mi/mi-out.c: Ditto.
3661 * mi/mi-parse.c: Ditto.
3662 * mi/mi-parse.h: Ditto.
3663 * mi/mi-symbol-cmds.c: Ditto.
3664
3665 * mi/mi-getopt.h: Move mi_opt struct up.
3666 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
3667 return.
3668 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
3669
c988ad87
TT
36702012-03-06 Tom Tromey <tromey@redhat.com>
3671
3672 * proc-service.c (ps_pglobal_lookup): Set the current program
3673 space.
3674
1b7c1b10
PA
36752012-03-06 Pedro Alves <palves@redhat.com>
3676
3677 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
3678
3c182069
JB
36792012-03-05 Joel Brobecker <brobecker@adacore.com>
3680
3681 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
3682
2e794194
JK
36832012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3684
3685 Code cleanup.
3686 * common/linux-osdata.c (linux_common_core_of_thread): New function
3687 comment.
3688 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
3689 call by linux_common_core_of_thread.
3690 (linux_nat_core_of_thread_1): Remove.
3691 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
3692 * linux-thread-db.c: Include linux-osdata.h.
3693 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
3694 linux_common_core_of_thread.
3695
9f9f1f31
TT
36962012-03-05 Tom Tromey <tromey@redhat.com>
3697
3698 * value.c (value_primitive_field): Don't fetch contents for
3699 non-virtual bases.
3700
b7b189f3
TT
37012012-03-05 Tom Tromey <tromey@redhat.com>
3702
3703 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
3704
05b8a789 37052012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 3706
5538f557
JB
3707 * s390-nat.c: Include "gregset.h".
3708
75528772
JK
37092012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3710
3711 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
3712 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
3713 (libunwind_load): New variable so_error, use it for dlerror. Try to
3714 load also LIBUNWIND_SO_7.
3715
275418ae
PA
37162012-03-05 Pedro Alves <palves@redhat.com>
3717
3718 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
3719 is not NULL, and remove resulting dead code.
3720
5cbb9812
TS
37212012-03-05 Thomas Schwinge <thomas@codesourcery.com>
3722
3723 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
3724 prologue to sh_analyze_prologue.
3725 (sh_analyze_prologue): Make better use of such an upper limit, and
3726 generally be more cautious about accessing memory.
3727
541515ad
TT
37282012-03-05 Tom Tromey <tromey@redhat.com>
3729
3730 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
3731 _initialize_ia64_hpux_tdep.
3732
b4d36fb8
PA
37332012-03-05 Pedro Alves <palves@redhat.com>
3734
24490249
PA
3735 PR gdb/13766
3736
b4d36fb8
PA
3737 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
3738 the register state is clear, supply explicit zero, instead of
3739 marking the register unavailable.
3740
60c9a3c0
TG
37412012-03-05 Tristan Gingold <gingold@adacore.com>
3742
3743 * NEWS: Mention OpenVMS ia64 new target.
3744
696759ad
TG
37452012-03-05 Tristan Gingold <gingold@adacore.com>
3746
3747 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
3748 (ia64_unw_accessors, ia64_unw_rse_accessors)
3749 (ia64_libunwind_descr): Declare.
3750 * ia64-vms-tdep.c: New file.
3751 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
3752 (ia64_libunwind_descr): Make them public.
3753 * configure.tgt: Add ia64-*-*vms*.
3754 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
3755 (ALLDEPFILES): Add ia64-vms-tdep.c
3756
34864976
TG
37572012-03-05 Tristan Gingold <gingold@adacore.com>
3758
169081d0
TG
3759 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
3760 * remote.c (PACKET_qXfer_uib): New enum value.
3761 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
3762 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
3763 (_initialize_remote): Call add_packet_config_cmd for
3764 xfer:uib packet.
3765
37662012-03-05 Tristan Gingold <gingold@adacore.com>
3767
3768 * osabi.c (gdb_osabi_names): Add OpenVMS.
3769 (generic_elf_osabi_sniffer): Likewise.
3770 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 3771
6597b100
JK
37722012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3773
3774 Removed unused code.
3775 * libunwind-frame.c (libunwind_frame_unwind)
3776 (libunwind_frame_base_address): Remove.
3777 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
3778
87399aa1
YQ
37792012-03-04 Yao Qi <yao@codesourcery.com>
3780
3781 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
3782 remove trailing new line.
3783 (agent_run_command, agent_run_command): Add _ markup.
3784 (agent_capability_check): Likewise.
3785
abf1152a
JK
37862012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3787
3788 * breakpoint.c (set_condition_evaluation_mode): Set
3789 CONDITION_EVALUATION_MODE unconditionally.
3790
5808517f
YQ
37912012-03-03 Yao Qi <yao@codesourcery.com>
3792
3793 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
3794 * common/agent.h: Update declaration.
3795 * inf-child.c (inf_child_use_agent): New.
3796 (inf_child_can_use_agent): New.
3797 (inf_child_target): Initialize fields `to_use_agent'
3798 and `to_can_use_agent'.
3799 * agent.c (agent_new_objfile): New.
89b7509a 3800 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
3801 observer.
3802
3803 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3804 New.
89b7509a 3805 (linux_target_install_ops): Initialize field
5808517f
YQ
3806 `to_static_tracepoint_markers_by_strid'.
3807 * remote.c (free_current_marker): Move it to ...
3808 * tracepoint.c (free_current_marker): ... here. New.
3809 (cleanup_target_stop): New.
3810 * tracepoint.h: Declare free_current_marker.
3811 * NEWS: Add one entry about `info static-tracepoint-marker'.
3812
58b4daa5
YQ
38132012-03-03 Yao Qi <yao@codesourcery.com>
3814
3815 * common/agent.c (agent_loaded_p): New.
89b7509a 3816 (agent_look_up_symbols): New global.
58b4daa5
YQ
3817 * common/agent.h: Declare agent_loaded_p.
3818
8ffcbaaf
YQ
38192012-03-03 Yao Qi <yao@codesourcery.com>
3820
3821 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
3822 (agent_capability_check, agent_capability_invalidate): New.
3823 (symbol_list): New array element.
3824 * common/agent.h (enum agent_capa): New.
3825 * target.c (target_pre_inferior): Call agent_capability_invalidate.
3826
d1feda86
YQ
38272012-03-03 Yao Qi <yao@codesourcery.com>
3828
3829 * target.h (struct target_ops) <to_use_agent>: New field.
3830 (struct target_ops) <to_can_use_agent>: New field.
3831 (target_use_agent, target_can_use_agent): New macro.
3832 * target.c (update_current_target): Update.
3833 * remote.c: New enum `PACKET_QAgent'.
3834 (remote_protocol_features): Add a new element.
3835 (remote_use_agent, remote_can_use_agent): New.
3836 (init_remote_ops): Initialize field `can_use_agent' with
3837 remote_can_use_agent. Intiailize field `use_agent' with
3838 remote_use_agent.
3839 * common/agent.c (use_agent): New global.
3840 * common/agent.h: Declare it.
3841 * tracepoint.c (info_static_tracepoint_markers_command): Add
3842 comment.
3843 * Makefile.in (SFILES): Add common/agent.c and agent.c.
3844 (COMMON_OBS): Add common/agent.o and agent.o
3845 (common-agent.o): New rule.
3846 * agent.c: New.
3847
2fa291ac
YQ
38482012-03-03 Yao Qi <yao@codesourcery.com>
3849
3850 * common/agent.c: New.
3851 * common/agent.h: New.
3852 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
3853 AC_CHECK_HEADERS.
3854 * configure, configh.in: Regenerated.
3855
9fc05685
KB
38562012-03-02 Kevin Buettner <kevinb@redhat.com>
3857
3858 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
3859 unless it exists for this architecture.
3860
a5ee536b
JB
38612012-03-02 Joel Brobecker <brobecker@adacore.com>
3862
3863 * language.h (struct language_defn): New "method" la_read_var_value.
3864 * findvar.c: #include "language.h".
3865 (default_read_var_value): Renames read_var_value. Rewrite
3866 function description.
3867 (read_var_value): New function.
3868 * value.h (default_read_var_value): Add prototype.
3869 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
3870 New functions.
3871 (ada_language_defn): Add entry for la_read_var_value.
3872 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
3873 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
3874 language_defn structures to add entry for new la_read_var_value
3875 field.
3876
f59f708a
PA
38772012-03-02 Tom Tromey <tromey@redhat.com>
3878 Pedro Alves <palves@redhat.com>
3879
3880 PR breakpoints/13776:
3881 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
3882 breakpoints.
3883 (delete_longjmp_breakpoint_at_next_stop): New.
3884 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
3885 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
3886 before deleting the inferior. Add comments.
3887 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
3888 breakpoints immediately, but only on next stop. Move that code
3889 next to where we mark other breakpoints for deletion.
3890
44099a67
JB
38912012-03-02 Joel Brobecker <brobecker@adacore.com>
3892
3893 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
3894 marker.
3895 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
3896 violation.
3897
2a2ef594
PA
38982012-03-02 Pedro Alves <palves@redhat.com>
3899
3900 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
3901
b261e0c5
UW
39022012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
3903
3904 Fix -Wmissing-prototypes build.
3905 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
3906 * remote-sim.c (gdbsim_has_all_memory): Likewise.
3907 (gdbsim_has_memory): Likewise.
3908
a95babbf
YQ
39092012-03-02 Yao Qi <yao@codesourcery.com>
3910
3911 Fix -Wmissing-prototypes build.
3912 * charset.c (phony_iconv_open): Make static.
3913 (phony_iconv_close, phony_iconv): Likewise.
3914 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
3915 * i386-windows-nat.c (_initialize_i386_windows_nat): New
3916 prototype.
3917 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
3918 * ser-mingw.c (create_select_thread): Make static.
3919 * windows-termcap.c (tgetent): New prototype.
3920 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
3921
d603d4b3
JK
39222012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
3923
3924 Fix -Wmissing-prototypes build.
3925 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
3926 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
3927 (_initialize_loadable): New prototypes.
3928
7fb3ad1f
DE
39292012-03-02 Doug Evans <dje@google.com>
3930
3931 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
3932 abbrev table, read_comp_unit will do it.
3933
693be288
JK
39342012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3935
3936 Fix -Wmissing-prototypes build.
3937 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
3938 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
3939 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
3940 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
3941 (_initialize_arm_symbian_tdep): New prototype.
3942 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
3943 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
3944 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
3945 static.
3946 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
3947 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
3948 prototype.
3949 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
3950 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
3951 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
3952 static.
3953 * moxie-tdep.c (moxie_process_record): Likewise.
3954 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
3955 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
3956 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
3957 (_initialize_rl78_tdep): New prototype.
3958 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
3959 (_initialize_rx_tdep): New prototype.
3960 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
3961 (_initialize_darwin_solib): New prototype.
3962 * solib-spu.c: Include solib-spu.h.
3963 (_initialize_spu_solib): New prototype.
3964 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
3965 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
3966 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
3967 (tic6x_software_single_step): Make it static.
3968 (_initialize_tic6x_tdep): New prototype.
3969
638234e5
JK
39702012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3971
3972 Fix -Wmissing-prototypes build.
3973 * cris-tdep.c (cris_can_use_hardware_watchpoint)
3974 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
3975
f4a6f16d
JK
39762012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3977
3978 Fix -Wmissing-prototypes build.
3979 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
3980 (frv_have_stopped_data_address): Remove.
3981
04dcf5fa
JK
39822012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3983
3984 Fix -Wmissing-prototypes build.
3985 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
3986 * sh-tdep.c: Include sh64-tdep.h.
3987 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
3988 * sh64-tdep.c: Include sh64-tdep.h.
3989 * sh64-tdep.h: New file.
3990
19080931
MR
39912012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
3992
3993 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
3994
9aac7884
MR
39952012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
3996
3997 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
3998 sp_regnum once the gdbarch_init_osabi hook has been called.
3999
a385295e
MR
40002012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4001
4002 * mips-tdep.c (mips32_bc1_pc): New function.
4003 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
4004 BPOSGE32 and BPOSGE64 instructions.
4005 (deal_with_atomic_sequence): Likewise.
4006 (mips32_instruction_has_delay_slot): Likewise.
4007
1faeff08 40082012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
4009 Chris Dearman <chris@mips.com>
4010 Maciej W. Rozycki <macro@codesourcery.com>
4011 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
4012
4013 * features/mips-dsp.xml: New file.
4014 * features/mips64-dsp.xml: New file.
4015 * features/mips-dsp-linux.xml: New file.
4016 * features/mips64-dsp-linux.xml: New file.
4017 * features/Makefile (WHICH): Add mips-dsp-linux and
4018 mips64-dsp-linux.
4019 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
4020 * features/mips-dsp-linux.c: New file.
4021 * features/mips64-dsp-linux.c: New file.
4022 * regformats/mips-dsp-linux.dat: New file.
4023 * regformats/mips64-dsp-linux.dat: New file.
4024 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
4025 registers.
4026 (mips64_linux_register_addr): Likewise.
4027 (mips64_linux_regsets_fetch_registers): Likewise.
4028 (mips64_linux_regsets_store_registers): Likewise.
4029 (mips64_linux_fetch_registers): Update call to
4030 mips64_linux_regsets_fetch_registers.
4031 (mips64_linux_store_registers): Update call to
4032 mips64_linux_regsets_store_registers.
4033 (mips_linux_read_description): Probe for DSP registers.
4034 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
4035 and initialize_tdesc_mips64_dsp_linux.
4036 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
4037 Remove padding of no longer used embedded register slots.
4038 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
4039 (MIPS_RESTART_REGNUM): Redefine enum value.
4040 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
4041 strings.
4042 (mips_tx39_reg_names): Likewise.
4043 (mips_linux_reg_names): New array of register names for Linux
4044 targets.
4045 (mips_register_name): Check for a null pointer in
4046 mips_processor_reg_names and return an empty string.
4047 (mips_register_type): Exclude embedded registers for the IRIX
4048 and Linux ABIs.
4049 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
4050 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
4051 DSP registers.
4052 (mips_stab_reg_to_regnum): Handle DSP accumulators.
4053 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
4054 (mips_gdbarch_init): Likewise. Initialize internal register
4055 indices for the Linux ABI. Use dynamic numbers to refer to
4056 registers, as applicable, while parsing the target description.
4057 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
4058
263689d8
JB
40592012-03-01 Joel Brobecker <brobecker@adacore.com>
4060
4061 * frame.h (read_frame_register_unsigned): Fix typo in function
4062 description.
4063
f3b4f45c
PA
40642012-03-01 Pedro Alves <palves@redhat.com>
4065
4066 * jit-reader.in [!__cplusplus]
4067 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
4068
b03a2011
PA
40692012-03-01 Pedro Alves <palves@redhat.com>
4070
4071 * configure.ac (build_warnings): Add -Wmissing-prototypes.
4072 * configure: Regenerate.
4073
70221824
PA
40742012-03-01 Pedro Alves <palves@redhat.com>
4075
4076 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
4077 * breakpoint.c (create_exception_master_breakpoint, trace_command)
4078 (ftrace_command, strace_command): Make static.
4079 * d-lang.c (_initialize_d_language): Declare.
4080 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
4081 * dwarf2loc.c (_initialize_dwarf2loc):
4082 * dwarf2read.c (process_psymtab_comp_unit): Make static.
4083 * exec.c (exec_get_section_table): Make static.
4084 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
4085 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
4086 * inferior.c (remove_inferior_command, add_inferior_command)
4087 (clone_inferior_command): Make static.
4088 * linux-nat.c (linux_nat_thread_address_space)
4089 (linux_nat_core_of_thread): Make static.
4090 * linux-tdep.c (_initialize_linux_tdep): Declare.
4091 * objc-lang.c (_initialize_objc_lang): Declare.
4092 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
4093 Make static.
4094 (_initialize_opencl_language): Declare.
4095 * record.c (_initialize_record): Declare.
4096 * remote.c (demand_private_info, remote_get_tib_address)
4097 (remote_supports_cond_tracepoints)
4098 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
4099 Make static.
4100 * skip.c (_initialize_step_skip): Declare.
4101 * symtab.c (skip_prologue_using_lineinfo): Make static.
4102 * tracepoint.c (delete_trace_state_variable)
4103 (trace_variable_command, delete_trace_variable_command)
4104 (get_uploaded_tsv, find_matching_tracepoint_location)
4105 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
4106 Make static.
4107 * value.c (pack_unsigned_long): Make static.
4108 * varobj.c (varobj_ensure_python_env): Make static.
4109 * windows-tdep.c (_initialize_windows_tdep): Declare.
4110 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
4111
33fbcbee
PA
41122012-03-01 Pedro Alves <palves@redhat.com>
4113
4114 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
4115 gdbarch parameter.
4116 (linux_init_abi): Install it as has_shared_address_space gdbarch
4117 callback.
4118
44d0cd3b
PA
41192012-03-01 Pedro Alves <palves@redhat.com>
4120
4121 * observer.c (observer_test_first_notification_function)
4122 (observer_test_second_notification_function)
4123 (observer_test_third_notification_function): Add declarations.
4124
ed01b82c
PA
41252012-03-01 Pedro Alves <palves@redhat.com>
4126
4127 * common/signals.c (default_target_signal_to_host)
4128 (default_target_signal_from_host): Move ...
4129 * arch-utils.c: ... here.
4130 * arch-utils.h (default_target_signal_to_host)
4131 (default_target_signal_from_host): Declare.
4132
4133 * common/signals.c (target_signal_from_command): Move ...
4134 * infrun.c: ... here.
4135 * inferior.h (target_signal_from_command): Declare.
4136 * target.h (target_signal_from_command)
4137 (default_target_signal_from_host, default_target_signal_to_host):
4138 Delete declarations.
4139
4140 * common/signals.c (_initialize_signals): Delete.
4141
c9b87335
PA
41422012-03-01 Pedro Alves <palves@redhat.com>
4143
4144 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
4145 both __cplusplus and !__cplusplus.
4146
9340a6c0
PA
41472012-03-01 Pedro Alves <palves@redhat.com>
4148
4149 * psymtab.c (find_and_open_source): Delete declaration.
4150 * source.c (find_and_open_source): Move comment ...
4151 * source.h (find_and_open_source): ... to this new declaration.
4152
e451c4a1
PA
41532012-03-01 Pedro Alves <palves@redhat.com>
4154
4155 * inline-frame.c: Include inline-frame.h.
4156
983fb104
PA
41572012-03-01 Pedro Alves <palves@redhat.com>
4158
4159 * tui/tui-data.c (set_gen_win_origin): Delete.
4160 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
4161 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
4162
5fbce5df
PA
41632012-03-01 Pedro Alves <palves@redhat.com>
4164
4165 * remote.c (encode_actions): Delete declaration.
4166 * tracepoint.c (encode_actions): Make extern.
4167 * tracepoint.h (encode_actions): Declare.
4168
49a8461d
PA
41692012-03-01 Pedro Alves <palves@redhat.com>
4170
4171 * python/py-breakpoint.c: Include python.h.
4172 * python/py-continueevent.c (create_continue_event_object): Make
4173 static.
4174 * python/py-lazy-string.c (stpy_get_type): Make static.
4175 * python/py-newobjfileevent.c (create_new_objfile_event_object):
4176 Make static.
4177 * python/py-utils.c (unicode_to_target_python_string): Make
4178 static.
4179 * python/py-value.c: Include python.h.
4180
9079102f
PA
41812012-03-01 Pedro Alves <palves@redhat.com>
4182
4183 * inferior.c (delete_threads_of_inferior): Delete.
4184
a298c5e8
PA
41852012-03-01 Pedro Alves <palves@redhat.com>
4186
4187 Import fallback definitions from glibc.
4188
4189 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
4190 ps_prochandle): Forward declare.
4191 (ps_err_e): Use glibc's comments.
4192 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
4193 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4194 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
4195 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
4196 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
4197 (struct ps_prochandle): Adjust comment.
4198
e3084549
PA
41992012-03-01 Pedro Alves <palves@redhat.com>
4200
4201 * ada-lang.c (ada_modulus_from_name): Delete.
4202 * ada-lex.l (lexer_init): Make static.
4203
ad5f7d6e
PA
42042012-03-01 Pedro Alves <palves@redhat.com>
4205
4206 PR gdb/13767
4207
4208 * frame.c (read_frame_register_unsigned): New.
4209 * frame.h (read_frame_register_unsigned): Declare.
4210 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
4211 Handle it.
4212 (print_i387_control_word): New parameter `control_p'. Handle it.
4213 (i387_print_float_info): Handle unavailable float registers.
4214
e0a4d108
KS
42152012-03-01 Keith Seitz <keiths@redhat.com>
4216
4217 * linespec.c (decode_line_2): Sort the list of methods
4218 alphabetically before presenting the user with a selection
4219 menu.
4220
122d1940
DE
42212012-03-01 Doug Evans <dje@google.com>
4222
4223 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
4224 has_namespace_info.
4225 (dwarf2_read_abbrevs): Remove corresponding initialization.
4226
7d74f244
DE
42272012-03-01 Scott J. Goldman <scottjg@vmware.com>
4228
4229 * NEWS: Mention new python command class gdb.COMMAND_USER.
4230 * cli/cli-cmds.c (show_user): Print error when used on a python
4231 command.
4232 (init_cli_cmds): Update documentation strings for "show user" and
4233 "set/show max-user-call-depth" to clarify that it does not apply to
4234 python commands.
4235 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
4236 error check.
4237 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
4238 gdb python api.
4239 * top.c (execute_command): Only execute a user-defined command as a
4240 legacy macro if c->user_commands is set.
4241
e88acd96
TT
42422012-03-01 Tom Tromey <tromey@redhat.com>
4243
4244 * valprint.h (struct generic_val_print_decorations): New.
4245 (generic_val_print): Declare.
4246 * valprint.c (generic_val_print): New function.
4247 * p-valprint.c (p_decorations): New global.
4248 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
4249 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
4250 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
4251 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
4252 * m2-valprint.c (m2_decorations): New global.
4253 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
4254 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
4255 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
4256 TYPE_CODE_ERROR>: Call generic_val_print.
4257 * f-valprint.c (f_decorations): New global.
4258 (f_val_print): Use print_function_pointer_address.
4259 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
4260 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
4261 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
4262 generic_val_print.
4263 * c-valprint.c (c_decorations): New global.
4264 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
4265 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
4266 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
4267 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
4268 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
4269 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
4270 case.
4271
d3eab38a
TT
42722012-03-01 Tom Tromey <tromey@redhat.com>
4273
4274 * valprint.c (val_print): Update.
4275 * p-valprint (pascal_val_print): Return void.
4276 * p-lang.h (pascal_val_print): Return void.
4277 * m2-valprint.c (m2_val_print): Return void.
4278 * m2-lang.h (m2_val_print): Return void.
4279 * language.h (struct language_defn) <la_val_print>: Return void.
4280 * language.c (unk_lang_val_print): Return void.
4281 * jv-valprint.c (java_val_print): Return void.
4282 * jv-lang.h (java_val_print): Return void.
4283 * f-valprint.c (f_val_print): Return void.
4284 * f-lang.h (f_val_print): Return void.
4285 * d-valprint.c (d_val_print): Return void.
4286 (dynamic_array_type): Update.
4287 * d-lang.h (d_val_print): Return void.
4288 * c-valprint.c (c_val_print): Return void.
4289 * c-lang.h (c_val_print): Return void.
4290 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
4291 void.
4292 * ada-lang.h (ada_val_print): Return void.
4293
35c0084b
TT
42942012-03-01 Tom Tromey <tromey@redhat.com>
4295
4296 * value.h (val_print): Return void.
4297 * valprint.c (val_print): Return void.
4298
a1f5dd1b
TT
42992012-03-01 Tom Tromey <tromey@redhat.com>
4300
4301 * value.h (common_val_print): Return void.
4302 * valprint.c (common_val_print): Return void.
4303
8e069a98
TT
43042012-03-01 Tom Tromey <tromey@redhat.com>
4305
4306 * value.h (value_print): Return void.
4307 * valprint.c (value_print): Return void.
4308 * p-valprint.c (pascal_value_print): Return void.
4309 * p-lang.h (pascal_value_print): Return void.
4310 * language.h (struct language_defn) <la_value_print>: Return
4311 void.
4312 * language.c (unk_lang_value_print): Return void.
4313 * jv-valprint.c (java_value_print): Return void.
4314 * jv-lang.h (java_value_print): Return void.
4315 * f-valprint.c (c_value_print): Don't declare.
4316 Include c-lang.h.
4317 * c-valprint.c (c_value_print): Return void.
4318 * c-lang.h (c_value_print): Return void.
4319 * ada-valprint.c (ada_value_print): Return void.
4320 * ada-lang.h (ada_value_print): Return void.
4321
be335936
TT
43222012-03-01 Tom Tromey <tromey@redhat.com>
4323
4324 * value.c (value_primitive_field): Handle virtual base classes.
4325
b0db66a7
TT
43262012-03-01 Tom Tromey <tromey@redhat.com>
4327
4328 * gdbtypes.h (struct vbase): Remove.
4329
132c57b4
TT
43302012-03-01 Tom Tromey <tromey@redhat.com>
4331
4332 * c-valprint.c (print_function_pointer_address): Move...
4333 * valprint.c: ... here. Make non-static.
4334 * m2-valprint.c (print_function_pointer_address): Remove.
4335 * valprint.h (print_function_pointer_address): Declare.
4336
e41eec66
JB
43372012-03-01 Joel Brobecker <brobecker@adacore.com>
4338
4339 * NEWS: Document the fact that one can provide a condition when
4340 creating an Ada exception catchpoint.
4341
19c37f24
TT
43422012-03-01 Tom Tromey <tromey@redhat.com>
4343
4344 * valprint.c (val_print_type_code_flags): Fix placement of
4345 trailing brace.
4346
f0fed3a3
JB
43472012-03-01 Joel Brobecker <brobecker@adacore.com>
4348
4349 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
4350 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
4351 environment variable before calling update-copyright.
4352
8ba85d85
JB
43532012-03-01 Joel Brobecker <brobecker@adacore.com>
4354
4355 * gnulib/extra/update-copyright: Update to the latest from
4356 gnulib's git repository.
4357 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
4358 variable to 2 instead of 1.
4359
8219b1e8
JB
43602012-02-29 Joel Brobecker <brobecker@adacore.com>
4361
4362 * varobj.c (c_value_of_variable): Remove dead code.
4363
718cb7da
JB
43642012-02-29 Joel Brobecker <brobecker@adacore.com>
4365
4366 * ada-lex.p (processId): Do not modify already encoded IDs.
4367 Update function documentation.
4368
739593e0
JB
43692012-02-29 Joel Brobecker <brobecker@adacore.com>
4370
4371 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
4372 "name" with "struct symbol *name_sym".
4373 * ada-exp.y (write_var_or_type): Update call to
4374 ada_find_renaming_symbol.
4375 "name" with "struct symbol *name_sym". Adjust Implementation
4376 accordingly. Adjust the function documentation.
4377
852dff6c
JB
43782012-02-29 Joel Brobecker <brobecker@adacore.com>
4379
4380 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
4381 * ada-lang.c (ada_find_any_type): Add advance declaration.
4382 Make static. Replace ada_find_any_symbol by
4383 ada_find_any_type_symbol.
4384 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
4385 Improve function description. Make static.
4386 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
4387 Replace ada_find_any_symbol by ada_find_any_type_symbol.
4388
1b611343
JB
43892012-02-29 Joel Brobecker <brobecker@adacore.com>
4390
4391 * ada-lang.c (struct tag_args): Delete.
4392 (ada_get_tsd_type): Function body moved up in source file.
4393 (ada_tag_name_1, ada_tag_name_2): Delete.
4394 (ada_get_tsd_from_tag): New function.
4395 (ada_tag_name_from_tsd): New function.
4396 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
4397 to determine the tag name.
4398
41246937
JB
43992012-02-29 Joel Brobecker <brobecker@adacore.com>
4400
4401 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
4402 declaration.
4403 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
4404 function.
4405
ffde82bf
JB
44062012-02-29 Joel Brobecker <brobecker@adacore.com>
4407
4408 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
4409
2ad01556
JB
44102012-02-29 Joel Brobecker <brobecker@adacore.com>
4411
4412 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
4413 full searches.
4414
99b1c762
JB
44152012-02-29 Joel Brobecker <brobecker@adacore.com>
4416
4417 * ada-lang.c (constrained_packed_array_type): If there is a
4418 parallel XA type, use it to determine the array index type.
4419
2d4a02ee
JB
44202012-02-29 Joel Brobecker <brobecker@adacore.com>
4421
4422 * ada-valprint.c (ada_val_print_1): If our value is a reference
4423 to an array descriptor, dereference it before converting it
4424 to a simple array.
4425
c48db5ca
JB
44262012-02-29 Joel Brobecker <brobecker@adacore.com>
4427
4428 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
4429 creating fixed value.
4430 (ada_value_ind, ada_coerce_ref, assign_component)
4431 (ada_evaluate_subexp): Remove call to unwrap_value before
4432 call to ada_to_fixed_value.
4433
2e6fda7d
JB
44342012-02-29 Joel Brobecker <brobecker@adacore.com>
4435
4436 * ada-lang.c (to_fixed_array_type): Set result's type name.
4437
5845583d
JB
44382012-02-29 Joel Brobecker <brobecker@adacore.com>
4439
4440 * ada-lang.c (catch_ada_exception_command_split): Add new
4441 argument cond_string. Add support for condition at end of
4442 "catch exception" commands.
4443 (ada_decode_exception_location): Add new argument cond_string.
4444 Update call to catch_ada_exception_command_split.
4445 (create_ada_exception_catchpoint): Add new argument cond_string.
4446 Set the breakpoint condition if needed.
4447 (catch_ada_exception_command): Update call to
4448 ada_decode_exception_location.
4449 (ada_decode_assert_location): Add function documentation.
4450 Add support for condition at end of "catch assert" command.
4451 (catch_assert_command): Update calls to ada_decode_assert_location
4452 and create_ada_exception_catchpoint.
4453
9a7f938f
JK
44542012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4455
4456 Fix disp-step-syscall.exp: fork: single step over fork.
4457 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
4458 (i386_linux_get_syscall_number_from_regcache): ... here, new function
4459 comment, change parameters gdbarch and ptid to regcache. Remove
4460 parameter regcache, initialize gdbarch from regcache here.
4461 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
4462 New functions.
4463 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
4464 instead.
4465 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
4466 'syscall'. Make the 'int' check more strict.
4467
ffdf6de5
JK
44682012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4469
4470 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
4471 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
4472 (i386_linux_intx80_sysenter_syscall_record): ... here.
4473 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
4474 Use the renamed function name.
4475
c70a6932
JK
44762012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4477
4478 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
4479 * breakpoint.c (until_break_command): Likewise.
4480 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
4481 * infcall.c (call_function_by_hand): Likewise.
4482 * infcmd.c (finish_forward): Likewise.
4483 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4484
05b8a789 44852012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 4486
d4cd3da9
JB
4487 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
4488 avoid variable assignments inside condition.
4489
6425366c
JK
44902012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4491
4492 Fix static analysis issue found by cppcheck.
4493 * microblaze-tdep.c (microblaze_extract_return_value): Fix
4494 uninitialized BUF for size 2.
4495
c8cef75f 44962012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
4497 Nathan Froyd <froydnj@codesourcery.com>
4498 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
4499
4500 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
4501 (mips16_instruction_has_delay_slot): Likewise.
4502 (mips_segment_boundary): Likewise.
4503 (mips_adjust_breakpoint_address): Likewise.
4504 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
4505
473347ad 45062012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 4507 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
4508
4509 * infrun.c (handle_inferior_event): Don't proceed through
4510 shared library trampolines if stepping at the machine
4511 instruction level.
4512
cf233303
MR
45132012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
4514
4515 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
4516 too.
4517
cb2cf4ce
TS
45182012-02-27 Thomas Schwinge <thomas@codesourcery.com>
4519
4520 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
4521 (sh_stub_unwind_sniffer): New functions.
4522 (sh_stub_unwind): New variable.
4523 (sh_gdbarch_init): Wire everything.
4524
644cebc9
PA
45252012-02-27 Pedro Alves <palves@redhat.com>
4526
4527 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
4528 (linux_nat_post_attach_wait): Adjust to use
4529 linux_proc_pid_is_stopped.
4530 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
4531 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
4532 based on pid_is_stopped from both linux-nat.c and
4533 gdbserver/linux-low.c, and renamed.
4534
283002cf
MR
45352012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
4536
4537 * remote.c (remote_watchpoint_addr_within_range): New function.
4538 (init_remote_ops): Use it.
4539
9b3e86b1
MR
45402012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
4541
4542 * target.h (target_watchpoint_addr_within_range): Document macro.
4543
e36930bb
PA
45442012-02-24 Pedro Alves <palves@redhat.com>
4545
4546 * stack.c (set_last_displayed_sal): Issue internal_error instead
4547 of warning, and issue it after clearing the last displayed sal.
4548
883bc8d1
PA
45492012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4550 Pedro Alves <palves@redhat.com>
4551
4552 * breakpoint.c (until_break_command): Install breakpoints after
4553 all frame manipulations.
4554
b775012e
LM
45552012-02-24 Luis Machado <lgustavo@codesourcery.com>
4556
4557 * remote.c (remote_supports_cond_breakpoints): New forward
4558 declaration.
4559 (remote_add_target_side_condition): New function.
4560 (remote_insert_breakpoint): Add target-side breakpoint
4561 conditional if supported.
4562 (remote_insert_hw_breakpoint): Likewise.
4563 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
4564 hook.
4565
4566 * target.c (update_current_target): Inherit
4567 to_supports_evaluation_of_breakpoint_conditions.
4568 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
4569
4570 * target.h (struct target_ops)
4571 <to_supports_evaluation_of_breakpoint_conditions>: New field.
4572 (target_supports_evaluation_of_breakpoint_conditions): New #define.
4573
4574 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
4575 (condition_evaluation_both, condition_evaluation_auto,
4576 condition_evaluation_host, condition_evaluation_target,
4577 condition_evaluation_enums, condition_evaluation_mode_1,
4578 condition_evaluation_mode): New static globals.
4579 (translate_condition_evaluation_mode): New function.
4580 (breakpoint_condition_evaluation_mode): New function.
4581 (gdb_evaluates_breakpoint_condition_p): New function.
4582 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
4583 (mark_breakpoint_modified): New function.
4584 (mark_breakpoint_location_modified): New function.
4585 (set_condition_evaluation_mode): New function.
4586 (show_condition_evaluation_mode): New function.
4587 (bp_location_compare_addrs): New function.
4588 (get_first_location_gte_addr): New helper function.
4589 (set_breakpoint_condition): Free condition bytecode if locations
4590 has become unconditional. Call mark_breakpoint_modified (...).
4591 (condition_command): Call update_global_location_list (1) for
4592 breakpoints.
4593 (breakpoint_xfer_memory): Use is_breakpoint (...).
4594 (is_breakpoint): New function.
4595 (parse_cond_to_aexpr): New function.
4596 (build_target_condition_list): New function.
4597 (insert_bp_location): Handle target-side conditional
4598 breakpoints and call build_target_condition_list (...).
4599 (update_inserted_breakpoint_locations): New function.
4600 (insert_breakpoint_locations): Handle target-side conditional
4601 breakpoints.
4602 (bpstat_check_breakpoint_conditions): Add comment.
4603 (bp_condition_evaluator): New function.
4604 (bp_location_condition_evaluator): New function.
4605 (print_breakpoint_location): Print information on where the condition
4606 will be evaluated.
4607 (print_one_breakpoint_location): Likewise.
4608 (init_bp_location): Call mark_breakpoint_location_modified (...) for
4609 breakpoint location.
4610 (force_breakpoint_reinsertion): New functions.
4611 (update_global_location_list): Handle target-side breakpoint
4612 conditions.
4613 Reinsert locations that are already inserted if conditions have
4614 changed.
4615 (bp_location_dtor): Free agent expression bytecode.
4616 (disable_breakpoint): Call mark_breakpoint_modified (...).
4617 Call update_global_location_list (...) with parameter 1 for breakpoints.
4618 (disable_command): Call mark_breakpoint_location_modified (...).
4619 Call update_global_location_list (...) with parameter 1 for breakpoints.
4620 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
4621 (enable_command): mark_breakpoint_location_modified (...).
4622 (_initialize_breakpoint): Update documentation and add
4623 condition-evaluation breakpoint subcommand.
4624
4625 * breakpoint.h: Include ax.h.
4626 (condition_list): New data structure.
4627 (condition_status): New enum.
4628 (bp_target_info) <cond_list>: New field.
4629 (bp_location) <condition_changed, cond_bytecode>: New fields.
4630 (is_breakpoint): New prototype.
4631
3788aec7
LM
46322012-02-24 Luis Machado <lgustavo@codesourcery.com>
4633
4634 * remote.c (remote_state) <cond_breakpoints>: New field.
4635 (PACKET_ConditionalBreakpoints): New enum.
4636 (remote_cond_breakpoint_feature): New function.
4637 (remote_protocol_features): Add new ConditionalBreakpoints entry.
4638 (remote_supports_cond_breakpoints): New function.
4639 (_initialize_remote): Add new packet configuration for
4640 target-side conditional breakpoints.
4641
72895ff6
LM
46422012-02-24 Luis Machado <lgustavo@codesourcery.com>
4643
4644 * NEWS: Mention target-side conditional breakpoint support,
4645 new condition-evaluation breakpoint subcommand and remote
4646 packet extensions.
4647
dea2aa5f
LM
46482012-02-24 Luis Machado <lgustavo@codesourcery.com>
4649
4650 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
4651 number.
4652
8a8bc27f
TS
46532012-02-24 Thomas Schwinge <thomas@codesourcery.com>
4654
4655 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
4656 (after_prologue): Remove.
4657
6b446fdf
TT
46582012-02-23 Tom Tromey <tromey@redhat.com>
4659
4660 * jv-valprint.c (java_val_print): Remove dead code.
4661
ef59abfb
TG
46622012-02-23 Tristan Gingold <gingold@adacore.com>
4663
a09130f9
PA
4664 * ada-tasks.c (struct ada_tasks_inferior_data): Add
4665 known_tasks_element and known_tasks_length fields.
4666 (read_known_tasks_array): Change argument type. Use pointer type
4667 and number of elements from DATA. Adjust.
4668 (read_known_tasks_list): Likewise.
4669 (get_known_tasks_addr): Remove.
4670 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
4671 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
4672 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 4673
def166f6
JK
46742012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4675
4676 PR backtrace/13716
4677 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
4678 it after set_momentary_breakpoint.
4679
aeaa2474
SA
46802012-02-22 Sterling Augustine <saugustine@google.com>
4681
4682 PR 13689:
4683 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
4684
feea76c2
GB
46852012-02-22 Gary Benson <gbenson@redhat.com>
4686
4687 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
4688 (find_slot_in_mapped_hash): Likewise.
4689
f06e05e0
JK
46902012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4691
4692 PR build/13638
4693 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
4694 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
4695 * configure: Regenerate.
4696
b54a8fd7
PA
46972012-02-21 Tristan Gingold <gingold@adacore.com>
4698 Pedro Alves <palves@redhat.com>
4699
4700 * ia64-tdep.c: Do not include libunwind-ia64.h.
4701 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
4702 Include libunwind-ia64.h instead of libunwind.h.
4703 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
4704 for libunwind.h existence.
4705 * configure, config.in: Regenerate.
4706
dfcee124
AG
47072012-02-21 Anton Gorenkov <xgsa@yandex.ru>
4708
4709 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
4710 instead of value_rtti_target_type.
4711 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
4712 instead of value_rtti_target_type.
4713 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
4714 value_rtti_target_type.
4715 * valops.c (value_ind): Extract function readjust_indirect_value_type.
4716 (value_rtti_target_type): Rename to ...
4717 (value_rtti_indirect_type): ... here and make it indirect. Update
4718 function comment.
4719 * value.c (readjust_indirect_value_type): New function.
4720 (coerce_ref): Support for enclosing type setting for references
4721 with readjust_indirect_value_type.
4722 * value.h (readjust_value_type): New declaration.
4723 (value_rtti_target_type): Rename to ...
4724 (value_rtti_indirect_type): ... here.
4725
02568277
AG
47262012-02-21 Anton Gorenkov <xgsa@yandex.ru>
4727
4728 * MAINTAINERS (Write After Approval): Add myself to the list.
4729
10c07b7e 47302012-02-20 Doug Evans <dje@google.com>
28ee876a 4731
d82ea6a8
DE
4732 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
4733 Rename objfile_p_char parameter to objfilep.
4734 (build_objfile_section_table): Result is now void. All callers
4735 updated.
4736 * objfiles.h (struct objfile): Tweak comments, whitespace.
4737 (build_objfile_section_table): Update.
4738
28ee876a
DE
4739 * elfread.c (elf_symfile_segments): Fix warning text.
4740
24c79950
TT
47412012-02-20 Tom Tromey <tromey@redhat.com>
4742
4743 PR gdb/13498:
4744 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
4745 particular set of file names once.
4746 (dw2_map_symbol_filenames): Likewise.
4747
3a9b40b6
JK
47482012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4749
4750 Code cleanup.
4751 * main.c (write_files): Remove the declaration.
4752 (external_editor_command): Move the declaration ...
4753 [GDBTK] (external_editor_command): ... here. Fix the comment.
4754
4d0795ca
TT
47552012-02-20 Tom Tromey <tromey@redhat.com>
4756
4757 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
4758 extraneous block.
4759
637fd620
TG
47602012-02-20 Tristan Gingold <gingold@adacore.com>
4761
4762 * darwin-nat.h (enum darwin_msg_state): Add comments.
4763
6f124894
TG
47642012-02-20 Tristan Gingold <gingold@adacore.com>
4765
4766 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
4767 value.
4768
2e6e3d9c
JB
47692012-20-18 Joel Brobecker <brobecker@adacore.com>
4770
4771 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
4772 between function description and implementation.
4773
2e8265fd
TT
47742012-02-17 Tom Tromey <tromey@redhat.com>
4775
4776 PR python/12070:
4777 * python/py-event.c (event_object_getset): New global.
4778 (event_object_type): Reference it.
4779 * python/py-type.c (field_object_getset): New global.
4780 (field_object_type): Reference it.
4781 * python/python-internal.h (gdb_py_generic_dict): Declare.
4782 * python/py-utils.c (gdb_py_generic_dict): New function.
4783
8544a150 47842012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 4785
8544a150 4786 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 4787
ca193e27
TS
47882012-02-17 Thomas Schwinge <thomas@codesourcery.com>
4789
4790 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
4791 TYPE_CALLING_CONVENTION annotation.
4792
e5586183
KB
47932012-02-16 Kevin Buettner <kevinb@redhat.com>
4794
4795 * MAINTAINERS: Add rx to target ISA section.
4796 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
4797 (ALLDEPFILES): Add rx-tdep.c.
4798
7dcd53a0
TT
47992012-02-16 Tom Tromey <tromey@redhat.com>
4800
4801 * symfile.c (symbol_file_add_main_1): Use inferior's
4802 symfile_flags.
4803 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
4804 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
4805 inferior.
4806 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
4807 inferior.
4808 (follow_exec): Use inferior's symfile_flags.
4809 * inferior.h (struct inferior) <symfile_flags>: New field.
4810
ddd60447
MF
48112012-02-16 Mike Frysinger <vapier@gentoo.org>
4812
4813 PR gdb/9734:
4814 * remote-sim.c (gdbsim_create_inferior): Call error() when
4815 sim_create_inferior() fails.
4816
b0d32fb6
TG
48172012-02-16 Josh Matthews <josh@joshmatthews.net>
4818
4819 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
4820
9addecb9
TT
48212012-02-16 Tom Tromey <tromey@redhat.com>
4822
4823 PR c++/13653:
4824 * thread.c (struct current_thread_cleanup) <was_removable>: New
4825 field.
4826 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
4827 (make_cleanup_restore_current_thread): Initialize new field.
4828
a58b110a
KB
48292012-02-15 Kevin Buettner <kevinb@redhat.com>
4830
4831 * MAINTAINERS: Add rl78 to target ISA section.
4832 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
4833 (ALLDEPFILES): Add rl78-tdep.c.
4834 * NEWS: Mention rl78 as a new target.
4835
4cb6da1c
AR
48362012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
4837
4838 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
4839 data.
4840 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
4841
3af2590d
TT
48422012-02-15 Tom Tromey <tromey@redhat.com>
4843
4844 PR gdb/12659:
4845 * infcmd.c (registers_info): Print just the current register's
4846 name.
4847
c6910659
TT
48482012-02-15 Tom Tromey <tromey@redhat.com>
4849
4850 * python/py-symbol.c (sympy_value): Use _().
4851
7cee1e54
PA
48522012-02-15 Pedro Alves <palves@redhat.com>
4853
4854 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
4855 output to be like native targets'.
4856 (remote_pid_to_str): Special case the null ptid.
4857
816338b5
SS
48582012-02-14 Stan Shebs <stan@codesourcery.com>
4859
4860 * NEWS: Mention enable count command.
4861 * breakpoint.h (struct breakpoint): New field enable_count.
4862 * breakpoint.c (enable_breakpoint_disp): Add count argument.
4863 (enable_breakpoint): Add arg to call.
4864 (struct disp_data): New struct.
4865 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
4866 (do_map_enable_once_breakpoint): Create a struct and pass it.
4867 (do_map_enable_delete_breakpoint): Ditto.
4868 (do_map_enable_count_breakpoint): New function.
4869 (enable_count_command): New function.
4870 (bpstat_stop_status): Decrement enable_count.
4871 (print_one_breakpoint_location): Report enable count.
4872 (_initialize_breakpoint): Add enable count command.
4873
c47a44f4
KB
48742012-02-14 Kevin Buettner <kevinb@redhat.com>
4875
4876 * rl78-tdep.c (reggroups.h): Include.
4877 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
4878 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
4879 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
4880 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
4881 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
4882 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
4883 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
4884 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
4885 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
4886 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
4887 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
4888 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
4889 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
4890 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
4891 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
4892 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
4893 beginning of register list.
4894 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
4895 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
4896 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
4897 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
4898 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
4899 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
4900 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
4901 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
4902 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
4903 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
4904 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
4905 the pseudo registers. Rearrange other pseudo registers too so
4906 that the bank registers appear at the end.
4907 (rl78_register_type): Account for the fact that the byte sized
4908 bank registers are now pseudo-registers.
4909 (rl78_register_name): Rearrange the register name array. Make
4910 initial set of raw banked registers inaccessible.
4911 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
4912 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
4913 case for copying bytes back and forth between raw and pseudo
4914 versions of the banked registers. Update other cases to reflect
4915 the changed names.
4916 (rl78_return_value): Update to account for changed names of
4917 raw registers.
4918 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
4919 rl78_register_sim_regno().
4920
e4569f1e
KB
49212012-02-14 Kevin Buettner <kevinb@redhat.com>
4922
4923 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
4924 the name parameter being passed to find_pc_partial_function().
4925
7a05aae7
JK
49262012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4927
4928 * MAINTAINERS: Step down from being ia64 target maintainer.
4929
11fde611
JK
49302012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4931
4932 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
4933 compilation warning.
4934
57008375
JK
49352012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4936
4937 Fix crash on loaded shlibs without loaded exec_bfd.
4938 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
4939 (set_section_command): Replace exec_bfd by p->bfd.
4940
ff3c9849
TT
49412012-02-10 Tom Tromey <tromey@redhat.com>
4942
4943 * linespec.c (decode_line_internal): Skip symtabs_from_filename
4944 when we have a C++ qualified name.
4945
db2b9fdd
PA
49462012-02-10 Pedro Alves <palves@redhat.com>
4947
4948 * inferior.c (inferior_pid_to_str): New.
4949 (print_inferior, inferior_command): Use it.
4950
12cd34f3
PA
49512012-02-10 Pedro Alves <palves@redhat.com>
4952
4953 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
4954 the test CFLAGS.
4955 * configure: Regenerate.
4956
e871429d
JK
49572012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4958
4959 * linespec.c (decode_line_internal): Fix comment correctness.
4960
1916efaf
PA
49612012-02-09 Valery Khromov <valery.khromov@gmail.com>
4962
4963 PR gdb/12953
4964 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
4965 * amd64bsd-nat.c: Add support for debug registers (adapted from
4966 i386bsd-nat.c).
4967 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
4968 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
4969 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
4970 (amd64bsd_dr_get_control): New functions.
4971 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
4972 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
4973 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
4974 watchpoints initialization.
4975 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
4976
f4859d94
JK
49772012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4978
4979 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
4980 flds_bnds.fields.
4981 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
4982
c56a97f9
JK
49832012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4984
4985 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
4986
1a119f36
JB
49872012-02-08 Joel Brobecker <brobecker@adacore.com>
4988
4989 * language.h (symbol_name_cmp_ftype): Renames
4990 symbol_name_match_p_ftype.
4991 (struct language_defn)[la_get_symbol_name_cmp]: Renames
4992 la_get_symbol_name_match_p.
4993 * ada-lang.c (ada_get_symbol_name_cmp): Renames
4994 ada_get_symbol_name_match_p. Update comment.
4995 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
4996 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
4997 Renames symbol_name_match_p. Update field type.
4998 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
4999 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
5000 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
5001 "la_get_symbol_name_cmp" in comments.
5002 * language.c: Likewise.
5003
c71bb1cf
RO
50042012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5005
5006 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
5007 %eflags offset.
5008 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
5009 (amd64_sol2_gregset32_reg_offs): Likewise.
5010
4b2d20a5
TG
50112012-02-08 Joel Brobecker <brobecker@adacore.com>
5012
5013 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
5014 of the returned BFD is allocated by GDB.
5015
f0823d2c
TT
50162012-02-07 Tom Tromey <tromey@redhat.com>
5017
5018 PR python/12027:
5019 * python/python-internal.h (frame_object_type): Declare.
5020 * python/py-symbol.c (sympy_needs_frame): New function.
5021 (sympy_value): New function.
5022 (symbol_object_getset): Add "needs_frame".
5023 (symbol_object_methods): Add "value".
5024 * python/py-frame.c (frame_object_type): No longer static.
5025
64e7d9dd
TT
50262012-02-07 Tom Tromey <tromey@redhat.com>
5027
5028 PR python/13599:
5029 * python/py-symbol.c (sympy_line): New function.
5030 (symbol_object_getset): Add "line".
5031
1d6b2d2b
TT
50322012-02-07 Tom Tromey <tromey@redhat.com>
5033
5034 * charset.c (find_charset_names): Check 'in' against NULL.
5035
0d5cff50
DE
50362012-02-06 Doug Evans <dje@google.com>
5037
5038 * gdbtypes.h (struct main_type): Change type of name,tag_name,
5039 and fields.name members from char * to const char *. All uses updated.
5040 (struct cplus_struct_type): Change type of fn_fieldlists.name member
5041 from char * to const char *. All uses updated.
5042 (type_name_no_tag): Update.
5043 (lookup_unsigned_typename, lookup_signed_typename): Update.
5044 * gdbtypes.c (type_name_no_tag): Change result type
5045 from char * to const char *. All callers updated.
5046 (lookup_unsigned_typename, lookup_signed_typename): Change type of
5047 name parameter from char * to const char *.
5048 * symtab.h (struct cplus_specific): Change type of demangled_name
5049 member from char * to const char *. All uses updated.
5050 (struct general_symbol_info): Change type of name and
5051 mangled_lang.demangled_name members from char * to const char *.
5052 All uses updated.
5053 (symbol_get_demangled_name, symbol_natural_name): Update.
5054 (symbol_demangled_name, symbol_search_name): Update.
5055 * symtab.c (symbol_get_demangled_name): Change result type
5056 from char * to const char *. All callers updated.
5057 (symbol_natural_name, symbol_demangled_name): Ditto.
5058 (symbol_search_name): Ditto.
5059 (completion_list_add_name): Change type of symname,sym_text,
5060 text,word parameters from char * to const char *.
5061 (completion_list_objc_symbol): Change type of sym_text,
5062 text,word parameters from char * to const char *.
5063 * ada-lang.c (find_struct_field): Change type of name parameter
5064 from char * to const char *.
5065 (encoded_ordered_before): Similarly for N0,N1 parameters.
5066 (old_renaming_is_invisible): Similarly for function_name parameter.
5067 (ada_type_name): Change result type from char * to const char *.
5068 All callers updated.
5069 * ada-lang.h (ada_type_name): Update.
5070 * buildsym.c (hashname): Change type of name parameter
5071 from char * to const char *.
5072 * buildsym.h (hashname): Update.
5073 * dbxread.c (end_psymtab): Change type of include_list parameter
5074 from char ** to const char **.
5075 * dwarf2read.c (determine_prefix): Change result type
5076 from char * to const char *. All callers updated.
5077 * f-lang.c (find_common_for_function): Change type of name, funcname
5078 parameters from char * to const char *.
5079 * f-lang.c (find_common_for_function): Update.
5080 * f-valprint.c (list_all_visible_commons): Change type of funcname
5081 parameters from char * to const char *.
5082 * gdbarch.sh (static_transform_name): Change type of name parameter
5083 and result from char * to const char *.
5084 * gdbarch.c: Regenerate.
5085 * gdbarch.h: Regenerate.
5086 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
5087 of name parameter from char * to const char *.
5088 * jv-lang.c (java_primitive_type_from_name): Ditto.
5089 (java_demangled_signature_length): Similarly for signature parameter.
5090 (java_demangled_signature_copy): Ditto.
5091 (java_demangle_type_signature): Ditto.
5092 * jv-lang.h (java_primitive_type_from_name): Update.
5093 (java_demangle_type_signature): Update.
5094 * objc-lang.c (specialcmp): Change type of a,b parameters
5095 from char * to const char *.
5096 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
5097 from char * to const char *. All callers updated.
5098 * p-lang.h (is_pascal_string_type): Update.
5099 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
5100 of name parameter from char * to const char *.
5101 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
5102 * utils.c (fprintf_symbol_filtered): Ditto.
5103 * defs.h (fprintf_symbol_filtered): Update.
5104 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
5105 * stabsread.h (end_psymtab): Update.
5106 * stack.c (find_frame_funname): Change type of funname parameter
5107 from char ** to const char **.
5108 * stack.h (find_frame_funname): Update.
5109 * typeprint.c (type_print): Change type of varstring parameter
5110 from char * to const char *.
5111 * value.h (type_print): Update.
5112 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
5113 from char * to const char *. All callers updated.
5114 (xcoff_end_psymtab): Change type of include_list parameter
5115 from char ** to const char **. All callers updated.
5116 (swap_sym): Similarly for name parameter. All callers updated.
5117 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
5118 Use xstrdup.
5119 (process_coff_symbol): Use xstrdup.
5120 * stabsread.c (stabs_method_name_from_physname): Renamed from
5121 update_method_name_from_physname. Change result type from void
5122 to char *. All callers updated.
5123 (read_member_functions): In has_destructor case, store name in objfile
5124 obstack instead of malloc space. In !has_stub case, fix mem leak.
5125
5579a92e
TT
51262012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
5127
5128 * configure: Rebuild.
5129 * configure.ac: Put -L../bfd and -L../libiberty at the front of
5130 LDFLAGS.
5131
9058f767
KB
51322012-02-03 Kevin Buettner <kevinb@redhat.com>
5133
5134 * configure.tgt (rl78-*-elf): New target.
5135 * rl78-tdep.c: New file.
5136
5b37825d
PW
51372012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5138
5139 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
5140 and continue the loop. Add QUIT statement.
5141
e009ee71
TT
51422012-02-03 Tom Tromey <tromey@redhat.com>
5143
5144 PR gdb/13596:
5145 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
5146 bfd_lookup_symbol_from_symtab.
5147 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
5148 gdb_bfd_lookup_symbol_from_symtab.
5149
f7e44f65
JB
51502012-02-03 Joel Brobecker <brobecker@adacore.com>
5151
5152 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
5153 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
5154 symbol. Add assertion that sym2 is never NULL.
5155
2c02bd72
DE
51562012-02-02 Doug Evans <dje@google.com>
5157
5158 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
5159 "name" parameter to const char ** from char **. All callers updated.
5160 (find_pc_partial_function): Ditto.
5161 (cache_pc_function_name): Change type to const char * from char *.
5162 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
5163 (find_pc_partial_function): Update.
5164 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
5165 type of "name" parameter to const char * from char *.
5166 All uses updated.
5167 * arch-utils.c (generic_in_solib_return_trampoline): Change
5168 type of "name" parameter to const char * from char *.
5169 * arch-utils.h (generic_in_solib_return_trampoline): Update.
5170 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
5171 type of "name" parameter to const char * from char *.
5172 * gdbarch.sh (in_solib_return_trampoline): Ditto.
5173 * gdbarch.c: Regenerate.
5174 * gdbarch.h: Regenerate.
5175 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
5176 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
5177 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
5178 type of "name" parameter to const char * from char *.
5179 * skip.c (skip_function_pc): Ditto.
5180 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
5181 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
5182 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
5183 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
5184 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
5185 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
5186 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
5187 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
5188 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
5189
e886a173
PA
51902012-02-02 Pedro Alves <palves@redhat.com>
5191
5192 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
5193 the current inferior has no execution. Make sure the current
5194 remote process matches gdb's current inferior.
5195
c709a7c2
TT
51962012-02-02 Tom Tromey <tromey@redhat.com>
5197
5198 PR gdb/13405:
5199 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
5200 read-only memory.
5201
f149aabd
TT
52022012-02-02 Tom Tromey <tromey@redhat.com>
5203
5204 PR gdb/9307:
5205 * symtab.c (lookup_language_this): Set block_found.
5206
03bef283
TT
52072012-02-01 Tom Tromey <tromey@redhat.com>
5208
5209 PR gdb/13431:
5210 * jit.c (struct jit_inferior_data): Rewrite.
5211 (struct jit_objfile_data): New.
5212 (get_jit_objfile_data): New function.
5213 (add_objfile_entry): Update.
5214 (jit_read_descriptor): Return int. Replace descriptor_addr
5215 argument with inf_data. Update. Don't call error.
5216 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
5217 descriptor here.
5218 (jit_inferior_init): Don't look up descriptor. Don't call error.
5219 (jit_reset_inferior_data_and_breakpoints)
5220 (jit_inferior_created_observer): Remove.
5221 (jit_inferior_exit_hook): Update.
5222 (jit_executable_changed_observer): Remove.
5223 (jit_event_handler): Update.
5224 (free_objfile_data): Reset inferior data if needed.
5225 (_initialize_jit): Update.
5226
f0bbc364
TT
52272012-02-01 Tom Tromey <tromey@redhat.com>
5228
5229 * jit.c (bfd_open_from_target_memory): Move higher in file.
5230
47c1316c
TG
52312012-02-01 Tristan Gingold <gingold@adacore.com>
5232
5233 * libunwind-frame.c (libunwind_load): Display message if dlopen
5234 failed.
5235
8e704927
GB
52362012-02-01 Gary Benson <gbenson@redhat.com>
5237
09c7a31f 5238 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
5239 (iterate_over_symbols): Use the above.
5240 * symtab.c (iterate_over_symbols): Likewise.
5241 * language.h (language_defn->la_iterate_over_symbols): Likewise.
5242 * ada-lang.c (ada_iterate_over_symbols): Likewise.
5243 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
5244 (iterate_name_matcher): Document return values.
5245 (collect_one_symbol): Likewise.
5246 (collect_function_symbols): Likewise.
5247 (collect_symbols): Likewise.
5248
d9680e73
TT
52492012-02-01 Tom Tromey <tromey@redhat.com>
5250
5251 * ada-lang.c (resolve_subexp): Update.
5252 (ada_lookup_symbol_list): Add 'full_search' argument.
5253 (ada_iterate_over_symbols): Pass 0 as full_search argument to
5254 ada_lookup_symbol_list.
5255 (ada_lookup_encoded_symbol): Update.
5256 (get_var_value): Update.
5257 * ada-exp.y (block_lookup): Update.
5258 (write_var_or_type): Update.
5259 (write_name_assoc): Update.
5260 * ada-lang.h (ada_lookup_symbol_list): Update.
5261
72e1143f
TT
52622012-01-31 Tom Tromey <tromey@redhat.com>
5263
5264 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
5265 comment.
5266
ab2d2ad3
DE
52672012-01-31 Doug Evans <dje@google.com>
5268
5269 * symtab.h: Remove outdated comment.
e9111bf7 5270 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 5271
bc884eba
JB
52722012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
5273
5274 Fix build error in Darwin port.
5275 * i386-darwin-nat.c: Include i386-nat.h.
5276
8fc3fc34
TT
52772012-01-30 Tom Tromey <tromey@redhat.com>
5278
5279 PR breakpoints/13568:
5280 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
5281 argument. Check for recursive includes.
5282 (dwarf_decode_macros): Create an include hash.
5283
5d853008
ME
52842012-01-30 Michael Eager <eager@eagercon.com>
5285
5286 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
5287 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 5288 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
5289 (powerpc_linux_in_plt_stub): New function.
5290 (powerpc_linux_in_dynsym_resolve_code): New function.
5291 (ppc_skip_trampoline_code): New function.
5292 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
5293 Use glibc_skip_solib_resolver.
5294
40478521
JK
52952012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5296
5297 Code cleanup: Make 1440 bytes of data segment read-only.
5298 * arch-utils.c (endian_enum): Make it const char *const [].
5299 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
5300 Likewise.
5301 * breakpoint.c (always_inserted_enums): Likewise.
5302 * cli/cli-cmds.c (script_ext_enums): Likewise.
5303 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
5304 enumlist parameter const char *const *.
5305 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
5306 const char *const *.
5307 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
5308 parameter const char *const *.
5309 * cris-tdep.c (cris_modes): Make it const char *const [].
5310 * filesystem.c (target_file_system_kinds): Likewise.
5311 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
5312 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
5313 (can_use_displaced_stepping_enum, scheduler_enums)
5314 (exec_direction_names): Likewise.
5315 * language.c (_initialize_language): Make the type_or_range_names and
5316 case_sensitive_names variables const char *const [].
5317 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
5318 * python/python.c (python_excp_enums): Likewise.
5319 * remote.c (interrupt_sequence_modes): Likewise.
5320 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
5321 * serial.c (logbase_enums): Likewise.
5322 * sh-tdep.c (sh_cc_enum): Likewise.
5323 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
5324 Likewise.
5325 * symtab.c (multiple_symbols_modes): Likewise.
5326 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
5327 Likewise.
5328 * utils.c (internal_problem_modes): Likewise.
5329
b3b8b934
JK
53302012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5331
5332 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
5333 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
5334 result.
5335
8c85a4e2
DE
53362012-01-27 Doug Evans <dje@google.com>
5337
5338 * configure.ac (with_python): Fix absolute path handling for win32.
5339 * configure: Regenerate.
5340
78d8b4d7
DE
53412012-01-26 Doug Evans <dje@google.com>
5342
eca864fe
DE
5343 * symtab.c: Whitespace cleanup, no code changes.
5344
7e082072
DE
5345 * symtab.c (lookup_symbol_in_language): Improve comment.
5346 (lookup_symbol_aux): Fix comment.
5347
7dc25483
DE
5348 * psymtab.c (add_psymbol_to_list): Result is now "void".
5349 * psympriv.h (add_psymbol_to_list): Update.
5350
78d8b4d7
DE
5351 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
5352
4c63965b
JK
53532012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5354
5355 Do not open script filenames twice.
5356 * cli/cli-cmds.c (source_script_from_stream): Pass to
5357 source_python_script also STREAM.
5358 * python/py-auto-load.c (source_section_scripts): Pass to
5359 source_python_script_for_objfile also STREAM.
5360 (auto_load_objfile_script): Pass to source_python_script_for_objfile
5361 also INPUT.
5362 * python/python-internal.h (source_python_script_for_objfile): New
5363 parameter file, rename parameter file to filename.
5364 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
5365 instead if !_WIN32. Update the function comment.
5366 (source_python_script, source_python_script_for_objfile)
5367 (source_python_script): New parameter file, rename parameter file to
5368 filename. Pass FILENAME to python_run_simple_file.
5369 * python/python.h (source_python_script): New parameter file, rename
5370 parameter file to filename.
5371
88f38a04
PA
53722012-01-26 Pedro Alves <palves@redhat.com>
5373
5374 * corelow.c (core_has_fake_pid): Delete.
5375 (core_close): Delete references to `core_has_fake_pid'.
5376 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
5377 (core_open): Delete references to `core_has_fake_pid'.
5378 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
5379 the removed global.
5380
e078317b
JB
53812012-01-26 Joel Brobecker <brobecker@adacore.com>
5382
5383 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
5384 Remove language parameter from name_matcher. Adjust the comment.
5385 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
5386 Remove language parameter.
5387 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
5388 * linespec.c (iterate_name_matcher): Likewise.
5389 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
5390 name_matcher. Adjust call accordingly.
5391 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
5392 (maintenance_check_symtabs): Adjust type of parameter "fun".
5393 * psymtab.h (maintenance_check_symtabs): Likewise.
5394
74ccd7f5
JB
53952012-01-26 Joel Brobecker <brobecker@adacore.com>
5396
5397 * language.h (symbol_name_match_p_ftype): New typedef.
5398 (struct language_defn): Replace field la_symbol_name_compare
5399 by la_get_symbol_name_match_p.
5400 * ada-lang.c (ada_get_symbol_name_match_p): New function.
5401 (ada_language_defn): Use it.
5402 * linespec.c (struct symbol_matcher_data): New type.
5403 (iterate_name_matcher): Rewrite.
5404 (iterate_over_all_matching_symtabs): Pass a pointer to
5405 a symbol_matcher_data struct to expand_symtabs_matching
5406 instead of just the lookup name.
5407 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
5408 opencl-lang.c, p-lang.c, language.c: Delete field
5409 la_symbol_name_compare, and replace by NULL for new field
5410 la_get_symbol_name_match_p.
5411 * symfile.h (struct quick_symbol_functions): Update comment.
5412
5d268276
TT
54132012-01-25 Tom Tromey <tromey@redhat.com>
5414
5415 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
5416 dereferencing.
5417
edcc5120
TT
54182012-01-24 Tom Tromey <tromey@redhat.com>
5419
5420 PR symtab/12406:
5421 * solib.c (update_solib_list): Update the program space's
5422 added_solibs and deleted_solibs fields.
5423 * progspace.h (struct program_space) <added_solibs,
5424 deleted_solibs>: New fields.
5425 (clear_program_space_solib_cache): Declare.
5426 * progspace.c (release_program_space): Call
5427 clear_program_space_solib_cache.
5428 (clear_program_space_solib_cache): New function.
5429 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
5430 bpstat_stop_status. Use handle_solib_event.
5431 * breakpoint.c: Include gdb_regex.h.
5432 (print_solib_event): New function.
5433 (bpstat_print): Use print_solib_event.
5434 (bpstat_stop_status): Add special case for bp_shlib_event.
5435 (handle_solib_event): New function.
5436 (bpstat_what): Use handle_solib_event.
5437 (struct solib_catchpoint): New.
5438 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
5439 (breakpoint_hit_catch_solib, check_status_catch_solib)
5440 (print_it_catch_solib, print_one_catch_solib)
5441 (print_mention_catch_solib, print_recreate_catch_solib): New
5442 functions.
5443 (catch_solib_breakpoint_ops): New global.
5444 (catch_load_or_unload, catch_load_command_1)
5445 (catch_unload_command_1): New functions.
5446 (internal_bkpt_check_status): Add special case for
5447 bp_shlib_event.
5448 (internal_bkpt_print_it): Use print_solib_event.
5449 (initialize_breakpoint_ops): Initialize
5450 catch_solib_breakpoint_ops.
5451 (_initialize_breakpoint): Register "catch load" and "catch
5452 unload".
5453 * breakpoint.h (handle_solib_event): Declare.
5454 * NEWS: Add entry for "catch load" and "catch unload".
5455
fa864999
TT
54562012-01-24 Tom Tromey <tromey@redhat.com>
5457
5458 * ada-lang.c: Include gdb_vecs.h.
5459 * charset.c: Include gdb_vecs.h.
5460 * tracepoint.h: Include gdb_vecs.h.
5461 * gdb_vecs.h: New file.
5462
f90263c1
TT
54632012-01-24 Pedro Alves <pedro@codesourcery.com>
5464
5465 * breakpoint.c (breakpoint_hit_catch_fork)
5466 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
5467 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
5468 * infrun.c (inferior_has_forked, inferior_has_vforked)
5469 (inferior_has_execd, inferior_has_called_syscall): Delete.
5470 (handle_syscall_event): Get syscall_number from the execution
5471 control state's wait status.
5472 (wait_for_inferior): Don't clear syscall_number.
5473
09ac7c10
TT
54742012-01-24 Pedro Alves <palves@redhat.com>
5475
5476 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
5477 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
5478 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
5479 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
5480 `ws' parameter.
5481 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
5482 false for events other than TARGET_SIGNAL_TRAP.
5483 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
5484 Add `ws' parameter.
5485 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
5486 events other than TARGET_SIGNAL_TRAP.
5487 (tracepoint_breakpoint_hit): Add `ws' parameter.
5488 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
5489 parameter.
5490 (bpstat_stop_status): Same.
5491 (pc_at_non_inline_function): Same.
5492 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
5493 to pass the current event's waitstatus to bpstat_stop_status
5494 and pc_at_non_inline_function.
5495
86eb7e95
JK
54962012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5497
5498 Code cleanup.
5499 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
5500 Update the function comment for it.
5501 (source_script_with_search): Call make_cleanup_fclose for STREAM.
5502 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
5503 for STREAM.
5504
a9b3a50f
PA
55052012-01-24 Pedro Alves <palves@redhat.com>
5506
5507 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
5508 outside `bs->stop' block.
5509 (bpstat_what): Rework bp_shlib_event handling.
5510 (internal_bkpt_check_status): If the breakpoint is a
5511 bp_shlib_event, then set bs->stop and bs->print if
5512 stop_on_solib_events is set.
5513
53fe1783
GB
55142012-01-24 Gary Benson <gbenson@redhat.com>
5515
5516 Delete #if 0'd out code.
5517 * stack.c (print_frame_label_vars): Remove.
5518 (catch_info): Likewise.
5519 (_initialize_stack): Remove "info catch" command.
5520 * NEWS: Mention the above.
5521
49c62f2e
PA
55222012-01-24 Pedro Alves <palves@redhat.com>
5523
5524 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
5525 it.
5526 (remote_notice_new_inferior): If the remote end doesn't support
5527 the multiprocess extensions, then the PID is fake.
5528 (add_current_inferior_and_thread): New.
5529 (remote_start_remote): Use it.
5530 (extended_remote_attach_1): Adjust.
5531 (extended_remote_create_inferior_1): Use
5532 add_current_inferior_and_thread.
5533
d0d8b0c6
JK
55342012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5535
5536 Fix watchpoints to be specific for each inferior.
5537 * breakpoint.c (watchpoint_in_thread_scope): Verify also
5538 current_program_space.
5539 * i386-nat.c (i386_inferior_data_cleanup): New.
5540 (i386_inferior_data_get): Replace variable inf_data_local by an
5541 inferior_data call.
5542 (i386_use_watchpoints): Initialize i386_inferior_data.
5543 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
5544 specific iterate_over_lwps.
5545
4403d8e9
JK
55462012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5547
5548 Fix watchpoints across inferior fork.
5549 * amd64-linux-nat.c (update_debug_registers_callback): Update the
5550 comment for linux_nat_iterate_watchpoint_lwps.
5551 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
5552 linux_nat_iterate_watchpoint_lwps.
5553 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
5554 * i386-linux-nat.c (update_debug_registers_callback): Update the
5555 comment for linux_nat_iterate_watchpoint_lwps.
5556 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
5557 linux_nat_iterate_watchpoint_lwps.
5558 (i386_linux_prepare_to_resume): New comment on Linux kernel.
5559 * i386-nat.c: Include inferior.h.
5560 (dr_mirror): Remove.
5561 (i386_inferior_data, struct i386_inferior_data)
5562 (i386_inferior_data_get): New.
5563 (i386_debug_reg_state): Use i386_inferior_data_get.
5564 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
5565 (i386_insert_watchpoint, i386_remove_watchpoint)
5566 (i386_stopped_data_address, i386_insert_hw_breakpoint)
5567 (i386_remove_hw_breakpoint): New variable state, use
5568 i386_debug_reg_state instead of DR_MIRROR.
5569 * linux-nat.c (delete_lwp): New declaration.
5570 (num_lwps): Move here from downwards.
5571 (delete_lwp_cleanup): New.
5572 (linux_child_follow_fork): Create new child_lp, call
5573 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
5574 PTRACE_DETACH.
5575 (num_lwps): Move upwards.
5576 (linux_nat_iterate_watchpoint_lwps): New.
5577 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
5578 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
5579
2992c9a7 55802012-01-24 Joel Brobecker <brobecker@adacore.com>
5581
5582 GDB 7.4 released.
5583
e360902b
PA
55842012-01-23 Pedro Alves <palves@redhat.com>
5585
5586 * top.c (caution): Rename to ...
5587 (confirm): ... this.
5588 (show_caution): Rename to ...
5589 (show_confirm): ... this.
5590 (quit_cover): Adjust.
5591 (init_main): Adjust.
5592 * top.h (caution): Rename to ...
5593 (confirm): ... this.
5594 * utils.c (internal_vproblem, defaulted_query): Adjust.
5595
050a2e1d
PA
55962012-01-23 Pedro Alves <palves@redhat.com>
5597
5598 * top.c (caution): Update comment.
5599 (execute_command): Don't consider the current value of `caution'.
5600
77a35dd8
JK
56012012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5602
5603 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
5604
a71b5a38
UW
56052012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
5606
5607 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
5608 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
5609 * target.c (target_fileio_pwrite): Remove buffer address from
5610 debug output.
5611 (target_fileio_pread): Likewise.
5612
d99bd577
UW
56132012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5614
5615 * NEWS: Document remote "info proc" and "generate-core-file".
5616
35c2fab7
UW
56172012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5618
5619 * gdbarch.sh (find_memory_regions): New callback.
5620 * gdbarch.c, gdbarch.h: Regenerate.
5621
5622 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
5623 callback before falling back to target method.
5624
5625 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
5626 (linux_target_install_ops): No longer install it.
5627
5628 * linux-tdep.c (linux_find_memory_regions): New function.
5629 (linux_init_abi): Install it.
5630
6432734d
UW
56312012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5632
5633 * gdbarch.sh (make_corefile_notes): New architecture callback.
5634 * gdbarch.c: Regenerate.
5635 * gdbarch.h: Likewise.
5636
5637 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
5638 before target_make_corefile_notes. If NULL is returned, the
5639 target does not support core file generation.
5640
5641 * linux-nat.c: Include "linux-tdep.h".
5642 (find_signalled_thread, find_stop_signal): Remove.
5643 (linux_nat_do_thread_registers): Likewise.
5644 (struct linux_nat_corefile_thread_data): Likewise.
5645 (linux_nat_corefile_thread_callback): Likewise.
5646 (iterate_over_spus): Likewise.
5647 (struct linux_spu_corefile_data): Likewise.
5648 (linux_spu_corefile_callback): Likewise.
5649 (linux_spu_make_corefile_notes): Likewise.
5650 (linux_nat_collect_thread_registers): New function.
5651 (linux_nat_make_corefile_notes): Replace contents by call to
5652 linux_make_corefile_notes passing linux_nat_collect_thread_registers
5653 as native-only callback.
5654
5655 * linux-tdep.h: Include "bfd.h".
5656 (struct regcache): Add forward declaration.
5657 (linux_collect_thread_registers_ftype): New typedef.
5658 (linux_make_corefile_notes): Add prototype.
5659 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
5660 "regset.h", and "elf-bfd.h".
5661 (find_signalled_thread, find_stop_signal): New functions.
5662 (linux_spu_make_corefile_notes): Likewise.
5663 (linux_collect_thread_registers): Likewise.
5664 (struct linux_corefile_thread_data): New data structure.
5665 (linux_corefile_thread_callback): New funcion.
5666 (linux_make_corefile_notes): Likewise.
5667 (linux_make_corefile_notes_1): Likewise.
5668 (linux_init_abi): Install it.
5669
3030c96e
UW
56702012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5671
5672 * gdbarch.sh (info_proc): New callback.
5673 * gdbarch.c, gdbarch.h: Regenerate.
5674
5675 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
5676 before falling back to the target info_proc callback.
5677
5678 * linux-nat.c: Do not include "cli/cli-utils.h".
5679 (linux_nat_info_proc): Remove.
5680 (linux_target_install_ops): No longer install it.
5681
5682 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
5683 (read_mapping): New function.
5684 (linux_info_proc): Likewise.
5685 (linux_init_abi): Install it.
5686
145b16a9
UW
56872012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5688
5689 * defs.h (enum info_proc_what): Moved here from linux-nat.c
5690 * infcmd.c: (info_proc_cmd_1): New function.
5691 (info_proc_cmd): New function, moved here from equivalent routine
5692 orignally in linux-nat.c.
5693 (info_proc_cmd_mappings): Likewise.
5694 (info_proc_cmd_stat): Likewise.
5695 (info_proc_cmd_status): Likewise.
5696 (info_proc_cmd_cwd): Likewise.
5697 (info_proc_cmd_cmdline): Likewise.
5698 (info_proc_cmd_exe): Likewise.
5699 (info_proc_cmd_all): Likewise.
5700 (_initialize_infcmd): Install "info proc" command and subcommands.
5701
5702 * target.h (struct target_ops): Add to_info_proc.
5703 (target_info_proc): Add prototype.
5704 * target.c (target_info_proc): New function.
5705
5706 * procfs.c (procfs_info_proc): Add prototype.
5707 (info_proc_cmd): Rename into ...
5708 (procfs_info_proc): ... this. Update argument types as appropriate
5709 for a to_info_proc implementation. Handle "what" argument.
5710 (procfs_target): Install procfs_info_proc.
5711 (_initialize_procfs): No longer install "info proc" command.
5712
5713 * linux-nat.c: (enum info_proc_what): Remove.
5714 (linux_nat_info_proc_cmd_1): Rename into ...
5715 (linux_nat_info_proc): ... this. Update argument types as appropriate
5716 for a to_info_proc implementation.
5717 (linux_nat_info_proc_cmd): Remove.
5718 (linux_nat_info_proc_cmd_mappings): Likewise.
5719 (linux_nat_info_proc_cmd_stat): Likewise.
5720 (linux_nat_info_proc_cmd_status): Likewise.
5721 (linux_nat_info_proc_cmd_cwd): Likewise.
5722 (linux_nat_info_proc_cmd_cmdline): Likewise.
5723 (linux_nat_info_proc_cmd_exe): Likewise.
5724 (linux_nat_info_proc_cmd_all): Likewise.
5725 (linux_target_install_ops): Install linux_nat_info_proc.
5726 (_initialize_linux_nat): No longer install "info proc" command
5727 and subcommands.
5728
b9e7b9c3
UW
57292012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5730
5731 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
5732 * config.in, configure: Regenerate.
5733
5734 * target.h (struct target_ops): Add to_fileio_readlink.
5735 (target_fileio_readlink): Add prototype.
5736 * target.c (target_fileio_readlink): New function.
5737
5738 * inf-child.c: Conditionally include <sys/param.h>.
5739 (inf_child_fileio_readlink): New function.
5740 (inf_child_target): Install it.
5741
5742 * remote.c (PACKET_vFile_readlink): New enum value.
5743 (remote_hostio_readlink): New function.
5744 (init_remote_ops): Install it.
5745 (_initialize_remote): Handle vFile:readlink packet type.
5746
7313baad
UW
57472012-01-20 Pedro Alves <palves@redhat.com>
5748 Ulrich Weigand <ulrich.weigand@linaro.org>
5749
5750 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
5751 * config.in, configure: Regenerate.
5752
5753 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
5754 to_fileio_pread, to_fileio_close, to_fileio_unlink.
5755 (target_fileio_open): Add prototype.
5756 (target_fileio_pwrite): Likewise.
5757 (target_fileio_pread): Likewise.
5758 (target_fileio_close): Likewise.
5759 (target_fileio_unlink): Likewise.
5760 (target_fileio_read_alloc): Likewise.
5761 (target_fileio_read_stralloc): Likewise.
5762
5763 * target.c: Include "gdb/fileio.h".
5764 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
5765 (default_fileio_target): New function.
5766 (target_fileio_open): Likewise.
5767 (target_fileio_pwrite): Likewise.
5768 (target_fileio_pread): Likewise.
5769 (target_fileio_close): Likewise.
5770 (target_fileio_unlink): Likewise.
5771 (target_fileio_close_cleanup): Likewise.
5772 (target_fileio_read_alloc_1): Likewise.
5773 (target_fileio_read_alloc): Likewise.
5774 (target_fileio_read_stralloc): Likewise.
5775
5776 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
5777 <fcntl.h>, and <unistd.h>.
5778 (inf_child_fileio_open_flags_to_host): New function.
5779 (inf_child_errno_to_fileio_error): Likewise.
5780 (inf_child_fileio_open): Likewise.
5781 (inf_child_fileio_pwrite): Likewise.
5782 (inf_child_fileio_pread): Likewise.
5783 (inf_child_fileio_close): Likewise.
5784 (inf_child_fileio_unlink): Likewise.
5785 (inf_child_target): Install to_fileio routines.
5786
5787 * remote.c (init_remote_ops): Install to_fileio routines.
5788
901f9912
UW
57892012-01-20 Pedro Alves <palves@redhat.com>
5790 Ulrich Weigand <ulrich.weigand@linaro.org>
5791
5792 * remote.c (remote_multi_process_p): Only check for multi-process
5793 protocol feature, do not check for extended protocol.
5794 (remote_supports_multi_process): Check for extended protocol here.
5795 (set_general_process): Likewise.
5796 (extended_remote_kill): Likewise.
5797 (remote_pid_to_str): Likewise.
5798 (remote_query_supported): Always query multiprocess mode.
5799
e714e1bf
UW
58002012-01-20 Pedro Alves <palves@redhat.com>
5801 Ulrich Weigand <ulrich.weigand@linaro.org>
5802
5803 * inferior.h (struct inferior): Add fake_pid_p.
5804 * inferior.c (exit_inferior_1): Clear fake_pid_p.
5805 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
5806 magic_null_ptid since the remote side doesn't provide a real PID.
5807
50897289
TT
58082012-01-19 Tom Tromey <tromey@redhat.com>
5809
5810 * NEWS: Combine the two Python sections.
5811
1afc2033
JK
58122012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5813
5814 * target.h (target_close): Update comment on the target's unpush state.
5815
305436e0
PA
58162012-01-19 Pedro Alves <palves@redhat.com>
5817
5818 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
5819 linux_nat_async directly instead of going through the target
5820 vector.
5821 * target.c (unpush_target): Close target after unpushing it, not
5822 before.
5823
49323895
GB
58242012-01-19 Gary Benson <gbenson@redhat.com>
5825
5826 * mdebugread.c (sort_blocks): Replace integer constants with ones
5827 derived from FIRST_LOCAL_BLOCK.
5828
1db33378
PP
58292012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
5830 Jan Kratochvil <jan.kratochvil@redhat.com>
5831
5832 PR gdb/9538
5833 * symfile.c (find_separate_debug_file): New function.
5834 (terminate_after_last_dir_separator): Likewise.
5835 (find_separate_debug_file_by_debuglink): Also try realpath.
5836 * configure.ac (AC_CHECK_FUNCS): Add lstat.
5837 * configure: Regenerate.
5838 * config.in: Regenerate.
5839
f83d8a90
DE
58402012-01-18 Doug Evans <dje@google.com>
5841
5842 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
5843 (main.o): Remove rule.
5844 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
5845 (--with-sysroot): Rewrite.
5846 * configure: Regenerate.
5847 * config.in: Regenerate.
5848
2dbca4d6
SDJ
58492012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
5850
5851 * parse.c (initialize_expout): New function.
5852 (reallocate_expout): Likewise.
5853 (parse_exp_in_context): Use `initialize_expout' and
5854 `reallocate_expout' when appropriate.
5855
0695b514
PA
58562012-01-18 Pedro Alves <palves@redhat.com>
5857
5858 * record.c (struct record_breakpoint, record_breakpoint_p)
5859 (record_breakpoints): New.
5860 (record_insert_breakpoint, record_remove_breakpoint): Manage
5861 record breakpoints list. Only remove breakpoints from the
5862 inferior if they had been inserted there in the first place.
5863
136e1c30
DE
58642012-01-17 Doug Evans <dje@google.com>
5865
5866 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
5867 if we know we don't have a file name to look for.
5868
c0bf857d
PA
58692012-01-17 Pedro Alves <palves@redhat.com>
5870
5871 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
5872 the frame's stop reason is UNWIND_UNAVAILABLE.
5873
b486de60
JK
58742012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5875
5876 Fix compilation error.
5877 * m2-exp.y (yyerror): Use ANSI C prototype.
5878
d04550a6
SDJ
58792012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
5880
5881 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
5882 (growbuf_by_size): Likewise.
5883 (yyerror): Likewise.
5884 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
5885 (modblock): Remove variable (was #if 0'ed).
5886 (parse_number): Convert prototype from K&R to ANSI C.
5887 (yyerror): Likewise.
5888 * objc-exp.y (parse_number): Likewise.
5889 (yyerror): Likewise.
5890 (yylex): Remove #if 0'ed code.
5891 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
5892 (yyerror): Likewise.
5893
4aac40c8
TT
58942012-01-16 Tom Tromey <tromey@redhat.com>
5895
5896 * NEWS: Add item.
5897 * symtab.h (compare_filenames_for_search): Declare.
5898 * symtab.c (compare_filenames_for_search): New function.
5899 (iterate_over_some_symtabs): Use it.
5900 * symfile.h (struct quick_symbol_functions)
5901 <map_symtabs_matching_filename>: Change spec.
5902 * psymtab.c (partial_map_symtabs_matching_filename): Use
5903 compare_filenames_for_search. Update for new spec.
5904 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
5905 compare_filenames_for_search. Update for new spec.
5906 * breakpoint.c (clear_command): Use compare_filenames_for_search.
5907
cafec441
TT
59082012-01-16 Tom Tromey <tromey@redhat.com>
5909
5910 PR python/13281:
5911 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
5912 (struct main_type) <flag_flag_enum>: New field.
5913 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
5914 * NEWS: Add entries.
5915 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
5916 enums.
5917 * python/lib/gdb/printing.py (_EnumInstance): New class.
5918 (FlagEnumerationPrinter): Likewise.
5919
983af33b
SDJ
59202012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
5921
5922 * breakpoint.c (create_sals_from_address_default): New function.
5923 (create_breakpoints_sal_default): Likewise.
5924 (decode_linespec_default): Likewise.
5925 (is_marker_spec): Removed.
5926 (strace_marker_p): New function.
5927 (init_breakpoint_sal): Using `strace_marker_p' instead of
5928 `is_marker_spec'.
5929 (create_breakpoint): Call method `create_sals_from_address' from
5930 breakpoint_ops, replacing code that created SALs conditionally
5931 on the type of the breakpoint. Call method `create_breakpoints_sal',
5932 replacing code that created breakpoints conditionally on the type
5933 wanted.
5934 (base_breakpoint_create_sals_from_address): New function.
5935 (base_breakpoint_create_breakpoints_sal): Likewise.
5936 (base_breakpoint_decode_linespec): Likewise.
5937 (base_breakpoint_ops): Add methods
5938 `base_breakpoint_create_sals_from_address',
5939 `base_breakpoint_create_breakpoints_sal' and
5940 `base_breakpoint_decode_linespec'.
5941 (bkpt_create_sals_from_address): New function.
5942 (bkpt_create_breakpoints_sal): Likewise.
5943 (bkpt_decode_linespec): Likewise.
5944 (tracepoint_create_sals_from_address): Likewise.
5945 (tracepoint_create_breakpoints_sal): Likewise.
5946 (tracepoint_decode_linespec): Likewise.
5947 (strace_marker_create_sals_from_address): Likewise.
5948 (strace_marker_create_breakpoints_sal): Likewise.
5949 (strace_marker_decode_linespec): Likewise.
5950 (strace_marker_breakpoint_ops): New variable.
5951 (addr_string_to_sals): Remove `marker_spec'. Call method
5952 `decode_linespec' from breakpoint_ops, replacing code that decoded
5953 an address string into a SAL. Use `strace_marker_p' instead of
5954 `marker_spec'.
5955 (strace_command): Decide whether we are dealing with a static
5956 tracepoint with marker or not. Use the appropriate breakpoint_ops.
5957 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
5958 * breakpoint.h (linespec_result, linespec_sals): New forward
5959 declarations.
5960 (breakpoint_ops) <create_sals_from_address>,
5961 <create_breakpoints_sal>, <decode_linespec>: New methods.
5962
4795f398
DE
59632012-01-14 Doug Evans <dje@google.com>
5964
5965 * NEWS: Update text for "maint set python print-stack".
5966 It is deprecated in gdb 7.4 and deleted in 7.5.
5967
ee5106fe
EZ
59682012-01-13 Eli Zaretskii <eliz@gnu.org>
5969
5970 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
5971 including curses.h.
5972
b161e06f
JK
59732012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5974
5975 * configure: Regenerate.
5976 * config.in: Regenerate.
5977
85254831
KS
59782012-01-12 Keith Seitz <keiths@redhat.com>
5979
5980 PR mi/10586
5981 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
5982 (ANONYMOUS_UNION_NAME): Define.
5983 (is_path_expr_parent): New function.
5984 (get_path_expr_parent): New function.
5985 (is_anonymous_child): New function.
5986 (create_child_with_value): If the child is anonymous and without
5987 a name, assign an object name to it.
5988 (c_describe_child): Use get_path_expr_parent to determine
5989 the parent expression.
5990 If there field represents an anonymous struct or union and
5991 has no name, set an appropriate display name and expression.
5992 (cplus_describe_child): Likewise.
5993
620fa63a
PA
59942012-01-12 Pedro Alves <palves@redhat.com>
5995
5996 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
5997 available when %ebp is found to be zero (outermost).
5998
2efa2c79
AT
59992012-01-11 Andreas Tobler <andreast@fgznet.ch>
6000
6001 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
6002 an internal gdb_static_assert.
6003 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
6004
88e7d25d
TT
60052012-01-11 Tom Tromey <tromey@redhat.com>
6006
6007 PR gdb/9598:
6008 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
6009 catch" and "catch throw".
6010
72384ba3
PH
60112012-01-11 Paul Hilfinger <hilfingr@adacore.com>
6012
6013 * blockframe.c (block_innermost_frame): Start search from selected
6014 frame, if present, or otherwise the current frame.
6015
6016 * c-exp.y (variable): Update innermost_block for
6017 'block COLONCOLON NAME' clause.
6018 * m2-exp.y (variable): Ditto.
6019 * objc-exp.y (variable): Ditto.
6020
065a711f
TT
60212012-01-10 Tom Tromey <tromey@redhat.com>
6022
6023 PR python/13199:
6024 * python/python.c (finish_python_initialization): Set sys.argv.
6025
f3f5162e
DE
60262012-01-10 Doug Evans <dje@google.com>
6027
6028 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
6029 "want_line_info". All callers updated.
6030 (dwarf_decode_lines_1): New function.
6031 (handle_DW_AT_stmt_list): Add function comment.
6032 New arg "want_line_info". All callers updated.
6033 (read_file_scope,read_type_unit_scope): Move comment from
6034 handle_DW_AT_stmt_list to here.
6035
9934703b
JK
60362012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6037
6038 Fix regression after libiberty/ update for GCC PR 6057 and others.
6039 * c-exp.y (operator) <OPERATOR DELETE>
6040 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
6041 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
6042 (make_builtin_type, make_name): New variable i, add gdb_assert.
6043 (operator) <OPERATOR NEW>: Update ARGS to 3.
6044 (operator) <OPERATOR DELETE>: Add trailing space.
6045 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
6046 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
6047 * cp-support.c (cp_canonicalize_string): Check NULL from
6048 cp_comp_to_string, call warning and return.
6049
06b9f45f
JK
60502012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6051
6052 Fix duplicate .o files after omitting libbfd.a.
6053 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
6054 (SFILES): Add corelow.c.
6055 (COMMON_OBS): Add corelow.o.
6056 (ALLDEPFILES): Remove corelow.c.
6057 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
6058 * config/alpha/alpha-osf3.mh: Likewise.
6059 * config/alpha/fbsd.mh: Likewise.
6060 * config/arm/nbsdaout.mh: Likewise.
6061 * config/arm/nbsdelf.mh: Likewise.
6062 * config/i386/i386gnu.mh: Likewise.
6063 * config/ia64/hpux.mh: Likewise.
6064 * config/ia64/linux.mh: Likewise.
6065 * config/m32r/linux.mh: Likewise.
6066 * config/m68k/linux.mh: Likewise.
6067 * config/mips/irix5.mh: Likewise.
6068 * config/mips/irix6.mh: Likewise.
6069 * config/pa/hpux.mh: Likewise.
6070 * config/pa/linux.mh: Likewise.
6071 * config/powerpc/aix.mh: Likewise.
6072 * config/sparc/linux.mh: Likewise.
6073 * config/sparc/linux64.mh: Likewise.
6074 * config/sparc/sol2.mh: Likewise.
6075 * config/vax/vax.mh: Likewise.
6076 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
6077 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
6078 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
6079 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
6080 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
6081 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
6082 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
6083 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
6084 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
6085 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
6086 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
6087 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
6088 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
6089 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
6090 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
6091 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
6092 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
6093 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
6094 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
6095 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
6096 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
6097 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
6098 corelow.o from gdb_target_obs.
6099 * corefile.c (core_target): Update the comment on NULL value.
6100 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
6101 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
6102 MATCHES. Drop YUMMY set on NULL.
6103 (core_close): Do not call exit_inferior_silent on zero PID. Do not
6104 reclaim CORE_DATA if it is already NULL.
6105
34365054
DE
61062012-01-09 Doug Evans <dje@google.com>
6107
6108 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
6109 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
6110
696166a3
KS
61112012-01-09 Keith Seitz <keiths@redhat.com>
6112
6113 * breakpoint.c (wrapper.h): Don't include.
6114
8e7b59a5
KS
61152012-01-09 Keith Seitz <keiths@redhat.com>
6116
6117 * Makefile.in (SFILES): Remove wrapper.c.
6118 (HFILES_NO_SRCDIR): Remove wrapper.h.
6119 (COMMON_OBS): Remove wrapper.o.
6120 * cli/cli-interp.c: Don't inlude wrapper.h.
6121 * corelow.c: Likewise.
6122 (core_open): Replace gdb_target_find_new_threads with
6123 TRY_CATCH around target_find_new_threads.
6124 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
6125 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
6126 * varobj.c (varobj_create): Likewise for parse_exp_1 and
6127 evaluate_expression.
6128 (varobj_set_value): Likewise for evaluate_expression and
6129 value_assign.
6130 (install_new_variable): Likewise for value_fetch_lazy.
6131 (adjust_value_for_child_access): Likewise for value_ind.
6132 (c_describe_child): Likewise for value_subscript and
6133 value_ind.
6134 (c_value_of_root): Likewise for evaluate_expression.
6135 * wrapper.c: Remove.
6136 * wrapper.h: Remove.
6137
1a4eeb98
DE
61382012-01-09 Doug Evans <dje@google.com>
6139
9ff913ba
DE
6140 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
6141 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
6142 "abfd" args with "section". All callers updated.
6143 Error checking code moved ...
6144 (error_check_comp_unit_head): ... here. New function.
6145 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
6146 Delete arg "abfd". New arg "type_offset". All callers updated.
6147 (create_debug_types_hash_table): Simplify by using
6148 read_and_check_type_unit_head.
6149
1a4eeb98
DE
6150 * parser-defs.h (namecopy): Delete.
6151 * parse.c (namecopy, namecopy_size): Move into copy_name.
6152
2e6af8c0
JK
61532012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6154
6155 Partially fix duplicate .o files after omitting libbfd.a.
6156 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
6157 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6158 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
6159 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6160 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
6161 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
6162 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6163
9f2f828a
PA
61642012-01-09 Pedro Alves <palves@redhat.com>
6165
6166 * MAINTAINERS: Update my email address.
6167
4d72c0bc
DE
61682012-01-08 Doug Evans <dje@google.com>
6169
d467dd73
DE
6170 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
6171 n_type_units. Rename type_comp_units to all_type_units.
6172 All uses updated.
6173 (add_signatured_type_cu_to_table): Renamed from
6174 add_signatured_type_cu_to_list. All callers updated.
6175
4d72c0bc
DE
6176 * gdbtypes.h (struct cplus_struct_type): Delete member
6177 nfn_fields_total. All uses removed.
6178
21b2bd31
DE
61792012-01-06 Doug Evans <dje@google.com>
6180
6181 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
6182 to top of file.
6183 (dwarf2_find_comp_unit): Delete.
6184 (process_psymtab_comp_unit): Make result "void".
6185 Delete args buffer, info_ptr, buffer_size, and replace with
6186 "section". All callers updated.
6187 (dwarf2_build_psymtabs_hard): Simplify.
6188
bfd189b1
SDJ
61892012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
6190 Thiago Jung Bauermann <bauerman@br.ibm.com>
6191
6192 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
6193 before `struct gdb_exception'.
6194 * breakpoint.c (update_global_location_list_nothrow)
6195 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
6196 * cp-abi.c (value_rtti_type): Likewise.
6197 * cp-support.c (cp_validate_operator): Likewise.
6198 * infrun.c (insert_exception_resume_breakpoint)
6199 (check_exception_resume, keep_going): Likewise.
6200 * mi-interp.c (mi_breakpoint_created)
6201 (mi_breakpoint_modified): Likewise.
6202 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
6203 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
6204 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
6205
6b07635f
DE
62062012-01-05 Doug Evans <dje@google.com>
6207
0b30b85c
DE
6208 * dwarf2read.c (statement_prologue): Delete, unused.
6209
98714339
DE
6210 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
6211 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
6212
6b07635f
DE
6213 * dwarf2read.c (comp_unit_header): Delete, unused.
6214
761f4555
UW
62152012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
6216
6217 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
6218 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
6219
2ca0b532
PA
62202012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
6221
6222 * infrun.c (normal_stop): Don't skip calling the normal_stop
6223 observers if the thread was doing a multi-step, but stopped for
6224 some reason other than stepping.
6225
50aeff07
PA
62262012-01-05 Pedro Alves <alves.ped@gmail.com>
6227
6228 * cli/cli-decode.h: Add comments.
6229 (CMD_LIST_AMBIGUOUS): Moved to command.h
6230 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
6231 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
6232 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
6233 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
6234 (add_com, add_com_alias, add_info, add_info_alias)
6235 (complete_on_cmdlist, complete_on_enum, help_list): Remove
6236 declarations.
6237 * command.h: Add and adjust comments.
6238 (CMD_LIST_AMBIGUOUS): Moved here.
6239 (help_cmd, help_cmd_list): Delete declarations.
6240
5953832c
DE
62412012-01-04 Doug Evans <dje@google.com>
6242
e5fe5e75
DE
6243 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
6244 All callers updated.
6245 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
6246 Replace all arguments with "per_cu". All callers updated.
6247
28dee7f5
DE
6248 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
6249
23745b47
DE
6250 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
6251 New arg "per_cu". All callers updated.
6252
5953832c
DE
6253 Delete #if 0'd out code.
6254 * language.c (binop_result_type): Delete.
6255 (simple_type, ordered_type, same_type, integral_type): Delete.
6256 (numeric_type, character_type, string_type, boolean_type): Delete.
6257 (float_type, structured_type): Delete.
6258 * language.h: Update.
6259
0f5b7562
TT
62602012-01-04 Tom Tromey <tromey@redhat.com>
6261
6262 * python/py-value.c (valpy_binop): Initialize 'res_val'.
6263
78218f56
JB
62642012-01-04 Joel Brobecker <brobecker@adacore.com>
6265
6266 * corefile.c (close_exec_file): Delete.
6267 (reopen_exec_file): Remove commented out code that seems related
6268 to close_exec_file, which is being deleted here.
6269 * inferior.h (close_exec_file): Delete.
6270 * fork-child.c (fork_inferior): Remove call to fork_inferior.
6271
0fcd72ba
JB
62722012-01-04 Joel Brobecker <brobecker@adacore.com>
6273
6274 * ada-lang.c: #include "cli/cli-utils.h".
6275 (get_selections): Use skip_spaces.
6276 (ada_get_next_arg): Use skip_spaces and skip_to_space.
6277 (catch_ada_exception_command_split): Use skip_spaces.
6278 (ada_decode_assert_location): Likewise.
6279
1dabb4c4
JB
62802012-01-04 Joel Brobecker <brobecker@adacore.com>
6281
6282 * linespec.c (decode_line_internal): Check for C++ or Java
6283 compound constructs only if the current language is C, C++
6284 or Java.
6285
5931a2fa
JK
62862012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6287
6288 Revert:
6289 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6290 Joel Brobecker <brobecker@adacore.com>
6291 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
6292 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
6293 3 times.
6294 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
6295 fall through into AT_ENTRY_POINT.
6296 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
6297 DUMMY_ADDR with it.
6298 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
6299 PPC_INSN_SIZE skip to 3 times.
6300
1a2da5ee
JB
63012012-01-04 Joel Brobecker <brobecker@adacore.com>
6302
6303 * linespec.c (add_minsym): Preserve function descriptors.
6304
8645ff69
UW
63052012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
6306
6307 * breakpoint.c (all_locations_are_pending): Consider locations
6308 in program spaces executing during startup pending as well.
6309
0b302171
JB
63102012-01-04 Joel Brobecker <brobecker@adacore.com>
6311
6312 Copyright year update in most files of the GDB Project.
6313
8ba098ad
JB
63142012-01-04 Joel Brobecker <brobecker@adacore.com>
6315
6316 * copyright.sh: Delete.
6317 * copyright.py: Rewrite.
6318
09c01c30
JB
63192012-01-04 Joel Brobecker <brobecker@adacore.com>
6320
6321 * gnulib/extra/update-copyright: New file, imported from gnulib.
6322
3c36c0af
JB
63232012-01-04 Joel Brobecker <brobecker@adacore.com>
6324
6325 * README (Copyright and License Notices): New section.
6326
888fe1e1
TT
63272012-01-03 Tom Tromey <tromey@redhat.com>
6328
6329 PR python/12533:
6330 * python/py-value.c (valpy_dereference, valpy_get_address
6331 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
6332 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
6333 (valpy_absolute, valpy_richcompare): Free intermediate values.
6334
6e681866
JB
63352011-01-03 Joel Brobecker <brobecker@adacore.com>
6336
6337 * ada-lang.c: Reformat the copyright notice.
6338
0cd09acb
JK
63392012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6340
6341 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
6342 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
6343 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
6344 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
6345 Revert this part of:
6346 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6347 Build gdb directly from *.o files not using libgdb.a.
6348 * Makefile.in (COMMON_OBS): Remove solib-target.o.
6349
12c3e59c
JB
63502012-01-02 Joel Brobecker <brobecker@adacore.com>
6351
6352 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
6353 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
6354 Reformat the copyright header.
6355
11bf1490
JK
63562012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6357
6358 Revert this part of:
6359 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6360 Remove the gdbtui binary.
6361 * gdb.c (main): Remove args.interpreter_p initialization.
6362 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
6363 * main.h (struct captured_main_args): Remove interpreter_p.
6364
1fef196f
JB
63652012-01-02 Joel Brobecker <brobecker@adacore.com>
6366
6367 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
6368
67827812
JB
63692012-01-02 Joel Brobecker <brobecker@adacore.com>
6370
6371 * top.c (print_gdb_version): Update copyright year.
6372
a4d0b831
YQ
63732012-01-02 Yao Qi <yao@codesourcery.com>
6374
6375 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
6376
b5914469
JK
63772012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6378 Joel Brobecker <brobecker@adacore.com>
6379
6380 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
6381 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
6382 3 times.
6383 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
6384 fall through into AT_ENTRY_POINT.
6385 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
6386 DUMMY_ADDR with it.
6387 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
6388 PPC_INSN_SIZE skip to 3 times.
6389
8da828f7
JK
63902012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6391
6392 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
6393 the return value.
6394 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
6395
8574e74b
JK
63962012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6397
6398 Build gdb directly from *.o files not using libgdb.a.
6399 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
6400 (COMMON_OBS): Remove solib-target.o.
6401 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
6402 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
6403 (LIBGDB_OBS, libgdb.a): Move it above.
6404 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
6405 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
6406 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
6407 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
6408 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
6409 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
6410 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
6411 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
6412 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
6413 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
6414 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
6415 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
6416 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
6417 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
6418 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
6419 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
6420 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
6421 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
6422 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
6423 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
6424 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
6425 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
6426 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
6427 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
6428 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
6429 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
6430 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
6431
217bff3e
JK
64322012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6433
6434 Remove the gdbtui binary.
6435 * .gitignore (/gdbtui): Remove.
6436 * Makefile.in (TUI): Remove.
6437 (SUBDIR_TUI_OBS): Remove tui-main.o.
6438 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
6439 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
6440 (tui-main.o): Remove.
6441 (all_object_files): Remove tui-main.o.
6442 * NEWS: New note for the gdbtui removal.
6443 * configure: Rebuilt.
6444 * configure.ac: No longer add all-tui, clean-tui, install-tui and
6445 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
6446 CONFIG_UNINSTALL respectively.
6447 * gdb.c (main): Remove args.interpreter_p initialization.
6448 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
6449 * main.h (struct captured_main_args): Remove interpreter_p.
6450 * tui/tui-main.c: Remove.
6451
9cdd5dbd
DE
64522012-01-01 Doug Evans <dje@google.com>
6453
bb5ed363
DE
6454 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
6455 (dwarf2_physname, read_import_statement): Ditto.
6456 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
6457 (process_structure_scope read_subroutine_type): Ditto.
6458 (read_typedef, load_partial_dies, read_partial_die): Ditto.
6459 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
6460 (dwarf2_fetch_die_location_block): Ditto.
6461 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
6462
a0f42c21
DE
6463 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
6464 All callers updated.
6465 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
6466 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
6467 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
6468
2dc860c0
DE
6469 * dwarf2read.c (load_cu): Move assert to more useful location.
6470
68dc6402
DE
6471 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
6472 All callers updated.
6473
9cdd5dbd
DE
6474 * dwarf2read.c (dwarf2_per_objfile): Add comment.
6475 (dwarf2_elf_names): Minor reformat.
6476 (dwarf2_per_cu_data): Tweak comment.
6477 (dwarf2_read_section): Fix comment.
6478 (create_all_comp_units): Fix comment.
6479 (load_full_comp_unit): Fix comment.
6480 (process_full_comp_unit): Fix comment.
6481 (read_signatured_type): Fix comment.
6482
0c10e53e 6483For older changes see ChangeLog-2011.
c906108c
SS
6484\f
6485Local Variables:
6486mode: change-log
6487left-margin: 8
6488fill-column: 74
6489version-control: never
57da7796 6490coding: utf-8
c906108c 6491End:
This page took 1.603272 seconds and 4 git commands to generate.