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