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