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