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