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