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