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