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