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